Skip to content

Commit e89f7a5

Browse files
authored
Merge pull request #82 from phpbb-extensions/release-1.0.5
Merge Release 1.0.5
2 parents 7997c2d + 57eeac4 commit e89f7a5

5 files changed

Lines changed: 63 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 1.0.5 - 2019-11-15
4+
5+
- Support added for Google Analytics new Global Site tag. Now there is an option to select whether you want to use the new Global Site tag (gtag.js), or the older Analytics tag (analytics.js). Existing installations will not be automatically switched over to the newer Global Site tag, however, fresh installs will default to the newer Global Site tag. Details about the new Global Site tag can be found in your Google Analytics Account Admin.
6+
- Fixed a bug where Google Analytics ACP Board settings could conflict with other extensions ACP Board settings that resulted in a PHP error.
7+
- Added Spanish casual honorifics translation.
8+
39
## 1.0.4 - 2018-05-17
410

511
- Added an option to enable visitor IP anonymization. This is recommended by Google to make the data collected for Analytics compliant with the EU‘s GDPR laws which go into effect May 25, 2018.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "phpbb-extension",
44
"description": "An extension that allows administrators to easily add their Google Analytics tracking code to their phpBB forum.",
55
"homepage": "https://www.phpbb.com",
6-
"version": "1.0.5-dev",
6+
"version": "1.0.5",
77
"keywords": ["phpbb", "extension", "google", "analytics"],
88
"license": "GPL-2.0-only",
99
"authors": [
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<?php
2+
/**
3+
*
4+
* Google Analytics extension for the phpBB Forum Software package.
5+
* Spanish translation by Raul [ThE KuKa] (www.phpbb-es.com)
6+
*
7+
* @copyright (c) 2014 phpBB Limited <https://www.phpbb.com>
8+
* @license GNU General Public License, version 2 (GPL-2.0)
9+
*
10+
*/
11+
12+
/**
13+
* DO NOT CHANGE
14+
*/
15+
if (!defined('IN_PHPBB'))
16+
{
17+
exit;
18+
}
19+
20+
if (empty($lang) || !is_array($lang))
21+
{
22+
$lang = array();
23+
}
24+
25+
// DEVELOPERS PLEASE NOTE
26+
//
27+
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
28+
//
29+
// Placeholders can now contain order information, e.g. instead of
30+
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
31+
// translators to re-order the output of data while ensuring it remains correct
32+
//
33+
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
34+
// equally where a string contains only two placeholders which are used to wrap text
35+
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
36+
//
37+
// Some characters you may want to copy&paste:
38+
// ’ « » “ ” …
39+
//
40+
41+
$lang = array_merge($lang, array(
42+
'ACP_GOOGLEANALYTICS' => 'Google Analytics',
43+
'ACP_GOOGLEANALYTICS_ID' => 'ID de Google Analytics',
44+
'ACP_GOOGLEANALYTICS_ID_EXPLAIN' => 'Introduce tu código ID de Google Analytics, por ejemplo: <samp>UA-0000000-00</samp>.<br /><br />Google Analytics puede realizar un seguimiento de tus usuarios registrados en varios dispositivos y sesiones, para obtener un número de usuarios más preciso en tus informes. Para habilitar esta función mejorada, el seguimiento de ID de usuario debe configurarse en tu cuenta de Google Analytics. <a href="https://support.google.com/analytics/answer/3123666">Clic para más información <i class="icon fa-external-link fa-fw" aria-hidden="true"></i></a>.',
45+
'ACP_GOOGLEANALYTICS_ID_INVALID' => '“%s” no es un código ID válido de Google Analytics.<br />Debería ser de esta forma “UA-0000000-00”.',
46+
'ACP_GA_ANONYMIZE_IP' => 'Activar anonimización de IP',
47+
'ACP_GA_ANONYMIZE_IP_EXPLAIN' => 'Activa esta opción si deseas que los datos recopilados por Google Analytics cumplan con el Reglamento general de protección de datos de la UE (GDPR). Ten en cuenta que habilitar esta opción puede reducir ligeramente la precisión de los informes geográficos.',
48+
'ACP_GOOGLEANALYTICS_TAG' => 'Google Analytics Script Tag',
49+
'ACP_GOOGLEANALYTICS_TAG_EXPLAIN' => 'Elije tu código preferido de Google Analytics. Global Site Tag (gtag.js) es el fragmento actual recomendado por Google. Google Analytics Tag (analytics.js) es el fragmento de código antiguo. <a href="https://developers.google.com/analytics/devguides/collection/gtagjs/migration">Clic para más información <i class="icon fa-external-link fa-fw" aria-hidden="true"></i></a>.',
50+
'ACP_GA_ANALYTICS_TAG' => 'Google Analytics Tag (analytics.js)',
51+
'ACP_GA_GTAGS_TAG' => 'Global Site Tag (gtag.js)',
52+
));

language/pl/googleanalytics_acp.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
'ACP_GOOGLEANALYTICS_ID' => 'Identyfikator śledzenia Google Analytics',
4444
'ACP_GOOGLEANALYTICS_ID_EXPLAIN' => 'Wprowadź swój identyfikator śledzenia Google Analytics, n.p.: <samp>UA-0000000-00</samp>.<br /><br />Google Analytics może śledzić zarejestrowanych użytkowników na wielu urządzeniach i sesji, bardziej dokładne liczby użytkowników w raportach. Aby włączyć tę zwiększona funkcjonalność śledzenia identyfikator użytkownika musi być skonfigurowana na koncie Google Analytics. <a href="https://support.google.com/analytics/answer/3123666">Kliknij, aby uzyskać więcej informacji <i class="icon fa-external-link fa-fw" aria-hidden="true"></i></a>.',
4545
'ACP_GOOGLEANALYTICS_ID_INVALID' => '“%s” nie jest prawidłowym identyfikatorem śledzenia Google Analytics.<br />Identyfikator śledzenia powinien mieć postać “UA-0000000-00”.',
46-
'ACP_GA_ANONYMIZE_IP' => 'Turn on IP Anonymization',
47-
'ACP_GA_ANONYMIZE_IP_EXPLAIN' => 'Enable this option if you want the data collected by Google Analytics to be compliant with the EU‘s General Data Protection Regulation (GDPR). Note that enabling this option may slightly reduce the accuracy of geographic reporting.',
46+
'ACP_GA_ANONYMIZE_IP' => 'Włącz anonimizację adresów IP',
47+
'ACP_GA_ANONYMIZE_IP_EXPLAIN' => 'Wybranie Tak spowoduje, że dane zbierane przez Google Analytics będą zgodne z ogólnym rozporządzeniem o ochronie danych osobowych (RODO). Włączenie tej opcji może wpłynąć na dokładność geograficznej lokalizacji użytkowników.',
4848
'ACP_GOOGLEANALYTICS_TAG' => 'Google Analytics Script Tag',
4949
'ACP_GOOGLEANALYTICS_TAG_EXPLAIN' => 'Wybierz preferowany kod Google Analytics. Global Site Tag (gtag.js) to aktualny kod zalecany przez Google. Google Analytics Tag (analytics.js) to stary kod. <a href="https://developers.google.com/analytics/devguides/collection/gtagjs/migration">Kliknij, aby uzyskać więcej informacji <i class="icon fa-external-link fa-fw" aria-hidden="true"></i></a>.',
5050
'ACP_GA_ANALYTICS_TAG' => 'Google Analytics Tag (analytics.js)',

language/pt_br/googleanalytics_acp.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
'ACP_GOOGLEANALYTICS_ID' => 'Google Analytics ID',
4444
'ACP_GOOGLEANALYTICS_ID_EXPLAIN' => 'Digite o seu código do Google Analytics ID, por exemplo : <samp>UA-0000000-00</samp>.<br /><br />O Google Analytics pode rastrear seus usuários registrados em vários dispositivos e sessões, para uma contagem de usuários mais precisa em seus relatórios. Para ativar essa funcionalidade aprimorada, o rastreamento de ID do usuário deve ser configurado em sua conta do Google Analytics. <a href="https://support.google.com/analytics/answer/3123666">Clique para obter mais informações <i class="icon fa-external-link fa-fw" aria-hidden="true"></i></a>.',
4545
'ACP_GOOGLEANALYTICS_ID_INVALID' => '“%s” não é um código ID Google Analytics válido.<br />Deve ser dessa forma “UA-0000000-00”.',
46-
'ACP_GA_ANONYMIZE_IP' => 'Turn on IP Anonymization',
47-
'ACP_GA_ANONYMIZE_IP_EXPLAIN' => 'Enable this option if you want the data collected by Google Analytics to be compliant with the EU‘s General Data Protection Regulation (GDPR). Note that enabling this option may slightly reduce the accuracy of geographic reporting.',
46+
'ACP_GA_ANONYMIZE_IP' => 'Ativar anonimização de IP',
47+
'ACP_GA_ANONYMIZE_IP_EXPLAIN' => 'Ative essa opção se quiser que os dados coletados pelo Google Analytics estejam em conformidade com o Regulamento Geral de Proteção de Dados da União Europeia (GDPR). Observe que a ativação dessa opção pode reduzir um pouco a precisão dos relatórios geográficos.',
4848
'ACP_GOOGLEANALYTICS_TAG' => 'Google Analytics Script Tag',
4949
'ACP_GOOGLEANALYTICS_TAG_EXPLAIN' => 'Choose your preferred Google Analytics code snippet. Global site tag (gtag.js) is the current snippet recommended by Google. Google Analytics tag (analytics.js) is the legacy code snippet. <a href="https://developers.google.com/analytics/devguides/collection/gtagjs/migration">Clique para obter mais informações <i class="icon fa-external-link fa-fw" aria-hidden="true"></i></a>.',
5050
'ACP_GA_ANALYTICS_TAG' => 'Google Analytics Tag (analytics.js)',

0 commit comments

Comments
 (0)