@@ -54,9 +54,9 @@ public function __construct()
5454
5555 parent ::__construct ();
5656
57- $ this ->displayName = $ this ->l ('Google Analytics ' , array (), ' Modules.GAnalytics.Admin ' );
58- $ this ->description = $ this ->l ('Gain clear insights into important metrics about your customers, using Google Analytics ' , array (), ' Modules.GAnalytics.Admin ' );
59- $ this ->confirmUninstall = $ this ->l ('Are you sure you want to uninstall Google Analytics? You will lose all the data related to this module. ' , array (), ' Modules.GAnalytics.Admin ' );
57+ $ this ->displayName = $ this ->l ('Google Analytics ' );
58+ $ this ->description = $ this ->l ('Gain clear insights into important metrics about your customers, using Google Analytics ' );
59+ $ this ->confirmUninstall = $ this ->l ('Are you sure you want to uninstall Google Analytics? You will lose all the data related to this module. ' );
6060 $ this ->psVersionIs17 = (bool ) version_compare (_PS_VERSION_ , '1.7 ' , '>= ' );
6161 }
6262 public function install ()
@@ -194,86 +194,86 @@ public function displayForm()
194194 $ helper ->toolbar_btn = array (
195195 'save ' =>
196196 array (
197- 'desc ' => $ this ->l ('Save ' , array (), ' Admin.Actions ' ),
197+ 'desc ' => $ this ->l ('Save ' ),
198198 'href ' => AdminController::$ currentIndex .'&configure= ' .$ this ->name .'&save ' .$ this ->name .
199199 '&token= ' .Tools::getAdminTokenLite ('AdminModules ' ),
200200 ),
201201 'back ' => array (
202202 'href ' => AdminController::$ currentIndex .'&token= ' .Tools::getAdminTokenLite ('AdminModules ' ),
203- 'desc ' => $ this ->l ('Back to list ' , array (), ' Admin.Actions ' )
203+ 'desc ' => $ this ->l ('Back to list ' )
204204 )
205205 );
206206
207207 $ fields_form = array ();
208208 // Init Fields form array
209209 $ fields_form [0 ]['form ' ] = array (
210210 'legend ' => array (
211- 'title ' => $ this ->l ('Settings ' , array (), ' Admin.Global ' ),
211+ 'title ' => $ this ->l ('Settings ' ),
212212 ),
213213 'input ' => array (
214214 array (
215215 'type ' => 'text ' ,
216- 'label ' => $ this ->l ('Google Analytics Tracking ID ' , array (), ' Modules.GAnalytics.Admin ' ),
216+ 'label ' => $ this ->l ('Google Analytics Tracking ID ' ),
217217 'name ' => 'GA_ACCOUNT_ID ' ,
218218 'size ' => 20 ,
219219 'required ' => true ,
220- 'hint ' => $ this ->l ('This information is available in your Google Analytics account ' , array (), ' Modules.GAnalytics.Admin ' )
220+ 'hint ' => $ this ->l ('This information is available in your Google Analytics account ' )
221221 ),
222222 array (
223223 'type ' => 'switch ' ,
224- 'label ' => $ this ->l ('Enable User ID tracking ' , array (), ' Modules.GAnalytics.Admin ' ),
224+ 'label ' => $ this ->l ('Enable User ID tracking ' ),
225225 'name ' => 'GA_USERID_ENABLED ' ,
226226 'values ' => array (
227227 array (
228228 'id ' => 'ga_userid_enabled ' ,
229229 'value ' => 1 ,
230- 'label ' => $ this ->l ('Enabled ' , array (), ' Admin.Global ' )
230+ 'label ' => $ this ->l ('Enabled ' )
231231 ),
232232 array (
233233 'id ' => 'ga_userid_disabled ' ,
234234 'value ' => 0 ,
235- 'label ' => $ this ->l ('Disabled ' , array (), ' Admin.Global ' )
235+ 'label ' => $ this ->l ('Disabled ' )
236236 ))
237237 ),
238238 array (
239239 'type ' => 'switch ' ,
240- 'label ' => $ this ->l ('Anonymize IP ' , array (), ' Modules.GAnalytics.Admin ' ),
240+ 'label ' => $ this ->l ('Anonymize IP ' ),
241241 'name ' => 'GA_ANONYMIZE_ENABLED ' ,
242242 'hint ' => $ this ->l ('Use this option to anonymize the visitor’s IP to comply with data privacy laws in some countries ' ),
243243 'values ' => array (
244244 array (
245245 'id ' => 'ga_anonymize_enabled ' ,
246246 'value ' => 1 ,
247- 'label ' => $ this ->l ('Enabled ' , array (), ' Admin.Global ' )
247+ 'label ' => $ this ->l ('Enabled ' )
248248 ),
249249 array (
250250 'id ' => 'ga_anonymize_disabled ' ,
251251 'value ' => 0 ,
252- 'label ' => $ this ->l ('Disabled ' , array (), ' Admin.Global ' )
252+ 'label ' => $ this ->l ('Disabled ' )
253253 ),
254254 ),
255255 ),
256256 ),
257257 'submit ' => array (
258- 'title ' => $ this ->l ('Save ' , array (), ' Admin.Actions ' ),
258+ 'title ' => $ this ->l ('Save ' ),
259259 )
260260 );
261261
262262 if ($ is_multistore_active ) {
263263 $ fields_form [0 ]['form ' ]['input ' ][] = array (
264264 'type ' => 'switch ' ,
265- 'label ' => $ this ->l ('Enable Cross-Domain tracking ' , array (), ' Modules.GAnalytics.Admin ' ),
265+ 'label ' => $ this ->l ('Enable Cross-Domain tracking ' ),
266266 'name ' => 'GA_CROSSDOMAIN_ENABLED ' ,
267267 'values ' => array (
268268 array (
269269 'id ' => 'ga_crossdomain_enabled ' ,
270270 'value ' => 1 ,
271- 'label ' => $ this ->l ('Enabled ' , array (), ' Admin.Global ' )
271+ 'label ' => $ this ->l ('Enabled ' )
272272 ),
273273 array (
274274 'id ' => 'ga_crossdomain_disabled ' ,
275275 'value ' => 0 ,
276- 'label ' => $ this ->l ('Disabled ' , array (), ' Admin.Global ' )
276+ 'label ' => $ this ->l ('Disabled ' )
277277 )
278278 )
279279 );
@@ -299,24 +299,24 @@ public function getContent()
299299 if (!empty ($ ga_account_id )) {
300300 Configuration::updateValue ('GA_ACCOUNT_ID ' , $ ga_account_id );
301301 Configuration::updateValue ('GANALYTICS_CONFIGURATION_OK ' , true );
302- $ output .= $ this ->displayConfirmation ($ this ->l ('Account ID updated successfully ' , array (), ' Modules.GAnalytics.Admin ' ));
302+ $ output .= $ this ->displayConfirmation ($ this ->l ('Account ID updated successfully ' ));
303303 }
304304 $ ga_userid_enabled = Tools::getValue ('GA_USERID_ENABLED ' );
305305 if (null !== $ ga_userid_enabled ) {
306306 Configuration::updateValue ('GA_USERID_ENABLED ' , (bool )$ ga_userid_enabled );
307- $ output .= $ this ->displayConfirmation ($ this ->l ('Settings for User ID updated successfully ' , array (), ' Modules.GAnalytics.Admin ' ));
307+ $ output .= $ this ->displayConfirmation ($ this ->l ('Settings for User ID updated successfully ' ));
308308 }
309309
310310 $ ga_crossdomain_enabled = Tools::getValue ('GA_CROSSDOMAIN_ENABLED ' );
311311 if (null !== $ ga_crossdomain_enabled ) {
312312 Configuration::updateValue ('GA_CROSSDOMAIN_ENABLED ' , (bool )$ ga_crossdomain_enabled );
313- $ output .= $ this ->displayConfirmation ($ this ->l ('Settings for User ID updated successfully ' , array (), ' Modules.GAnalytics.Admin ' ));
313+ $ output .= $ this ->displayConfirmation ($ this ->l ('Settings for User ID updated successfully ' ));
314314 }
315315
316316 $ ga_anonymize_enabled = Tools::getValue ('GA_ANONYMIZE_ENABLED ' );
317317 if (null !== $ ga_anonymize_enabled ) {
318318 Configuration::updateValue ('GA_ANONYMIZE_ENABLED ' , (bool )$ ga_anonymize_enabled );
319- $ output .= $ this ->displayConfirmation ($ this ->l ('Settings for Anonymize IP updated successfully ' , array (), ' Modules.GAnalytics.Admin ' ));
319+ $ output .= $ this ->displayConfirmation ($ this ->l ('Settings for Anonymize IP updated successfully ' ));
320320 }
321321 }
322322
0 commit comments