Skip to content

Commit 676b3b9

Browse files
committed
Add and load language file
1 parent a818701 commit 676b3b9

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

event/listener.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ public function load_google_analytics($event)
7979
*/
8080
public function add_googleanalytics_configs($event)
8181
{
82+
// Load language file
83+
$this->user->add_lang_ext('phpbb/googleanalytics', 'googleanalytics_acp');
84+
8285
// Add a config to the settings mode, after override_user_style
8386
if ($event['mode'] == 'settings' && isset($event['display_vars']['vars']['override_user_style']))
8487
{
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@
4040
$lang = array_merge($lang, array(
4141
'ACP_GOOGLEANALYTICS_ID' => 'Google Analytics ID',
4242
'ACP_GOOGLEANALYTICS_ID_EXPLAIN' => 'Enter your Google Analytics ID code, e.g.: <samp>UA-XXXXXXX-XX</samp>.',
43-
'ACP_GOOGLEANALYTICS_ID_INVALID' => '“%s” is not a valid Google Analytics ID code.',
43+
'ACP_GOOGLEANALYTICS_ID_INVALID' => '“%s” is not a valid Google Analytics ID code.<br />It should be in the form “UA-0000000-00”',
4444
));

0 commit comments

Comments
 (0)