From 71fddecd6a326ac62036a50cf157cd35fd0b25ac Mon Sep 17 00:00:00 2001 From: Vincent de Wit Date: Sun, 6 May 2018 16:00:53 +0200 Subject: [PATCH 1/4] Added permission setting --- src/GoogleAnalyticsExtension.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/GoogleAnalyticsExtension.php b/src/GoogleAnalyticsExtension.php index 69b361e..27539ce 100644 --- a/src/GoogleAnalyticsExtension.php +++ b/src/GoogleAnalyticsExtension.php @@ -35,6 +35,7 @@ protected function registerMenuEntries() $menu = (new MenuEntry('google', 'google-analytics')) ->setLabel(Trans::__('Statistics')) + ->setPermission('googleanalytics') ->setIcon('fa:area-chart'); return [$menu]; From 658088927d00901c9e1f9672c533b4fc2b35ffd2 Mon Sep 17 00:00:00 2001 From: Vincent de Wit Date: Sun, 6 May 2018 16:12:30 +0200 Subject: [PATCH 2/4] Added Dutch translations and updated English translations --- translations/en.yml | 2 ++ translations/nl.yml | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 translations/nl.yml diff --git a/translations/en.yml b/translations/en.yml index 96bde88..8b578ed 100644 --- a/translations/en.yml +++ b/translations/en.yml @@ -2,6 +2,8 @@ Statistics: Statistics "Unique visitors this month compared to last month": "Unique visitors this month compared to last month" "Unique visitors this year compared to last year": "Unique visitors this year compared to last year" City: City +"Pageviews last week": "Pageviews last week" +"Pageviews this week": "Pageviews this week" "Visitor type": "Visitor type" "Device type": "Device type" "Active visitors right now": "Active visitors right now" diff --git a/translations/nl.yml b/translations/nl.yml new file mode 100644 index 0000000..1e0112a --- /dev/null +++ b/translations/nl.yml @@ -0,0 +1,37 @@ +Statistics: Statistieken +"Unique visitors this month compared to last month": "Unieke bezoekers deze maand vergeleken met vorige maand" +"Unique visitors this year compared to last year": "Unieke bezoekers dit jaar in vergelijking met vorig jaar" +City: Plaats +"Visitor type": "Soort bezoekers" +"Device type": "Apparaat type" +"Active visitors right now": "Actieve bezoekers" +"Last month": "Vorige maand" +"This month": "Deze maand" +"Last year": "Vorig jaar" +"This year": "Dit jaar" +"New visitors": "Nieuwe bezoekers " +"Returning visitors": "Terugkerende bezoekers" +"Computer": "Computer" +"Pageviews last week": "Paginaweergaven vorige week" +"Pageviews this week": "Paginaweergaven deze week" +"Visits last week": "Bezoekers vorige week" +"Visits this week": "Bezoekers deze week" +"More statistics": "Meer statistieken" +"Visitors/Pageviews in the last 7 days.": "Bezoekers/Paginaweergaven" +"Visitors in the last 7 days, compared to the previous week": "Bezoekers in de afgelopen 7 dagen, vergeleken met vorige week" +"Tablet": "Tablet" +"Phone": "Mobiel" +"No data": "No data" +"Months": + "Jan": "Jan" + "Feb": "Feb" + "Mar": "Mrt" + "Apr": "Apr" + "May": "Mei" + "Jun": "Jun" + "Jul": "Jul" + "Aug": "Aug" + "Sep": "Sep" + "Oct": "Okt" + "Nov": "Nov" + "Dec": "Dec" From f81fd802fb054fa08aadae684deb6d3f44148880 Mon Sep 17 00:00:00 2001 From: Vincent de Wit Date: Sun, 6 May 2018 16:13:22 +0200 Subject: [PATCH 3/4] Added More statistics button translation --- templates/widget.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/widget.twig b/templates/widget.twig index f22b9f4..ee5416a 100644 --- a/templates/widget.twig +++ b/templates/widget.twig @@ -11,7 +11,7 @@

{% if statisticspage %} - More statistics + {{__("More statistics")}} {% endif %} From 476f536f49b5d4173a9bfe78d27ba4bfe066a953 Mon Sep 17 00:00:00 2001 From: Vincent de Wit Date: Sun, 6 May 2018 16:17:00 +0200 Subject: [PATCH 4/4] Added missing translations for English language file --- translations/en.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/translations/en.yml b/translations/en.yml index 8b578ed..63368ed 100644 --- a/translations/en.yml +++ b/translations/en.yml @@ -2,8 +2,6 @@ Statistics: Statistics "Unique visitors this month compared to last month": "Unique visitors this month compared to last month" "Unique visitors this year compared to last year": "Unique visitors this year compared to last year" City: City -"Pageviews last week": "Pageviews last week" -"Pageviews this week": "Pageviews this week" "Visitor type": "Visitor type" "Device type": "Device type" "Active visitors right now": "Active visitors right now" @@ -14,6 +12,13 @@ City: City "New visitors": "New visitors" "Returning visitors": "Returning visitors" "Computer": "Computer" +"Pageviews last week": "Pageviews last week" +"Pageviews this week": "Pageviews this week" +"Visits last week": "Visits last week" +"Visits this week": "Visits this week" +"More statistics": "More statistics" +"Visitors/Pageviews in the last 7 days.": "Visitors/Pageviews in the last 7 days." +"Visitors in the last 7 days, compared to the previous week": "Visitors in the last 7 days, compared to the previous week" "Tablet": "Tablet" "Phone": "Phone" "No data": "No data"