Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <tsteur@users.noreply.github.com>2018-02-19 10:55:20 +0300
committerGitHub <noreply@github.com>2018-02-19 10:55:20 +0300
commit3b8a0990784e16ed149000b527a0841523799017 (patch)
treeb680406465b1efa7acfa4b8f1b0ae4c7259b5a02 /plugins/VisitTime
parent8716e8d20253ec81469bc0fb8532584c8ca3d57c (diff)
Add more date segments (#12521)
* Add more date segments * fix segment name * fix compatibility with php 5.6 * fix some tests * make sure to not get random failures * fix more tests * fix suggested values for year * Fix dimension translation was using wrong key * fix some tests * fix test
Diffstat (limited to 'plugins/VisitTime')
-rw-r--r--plugins/VisitTime/functions.php11
-rw-r--r--plugins/VisitTime/lang/en.json9
2 files changed, 20 insertions, 0 deletions
diff --git a/plugins/VisitTime/functions.php b/plugins/VisitTime/functions.php
index 14625ceebf..0a83bd9a29 100644
--- a/plugins/VisitTime/functions.php
+++ b/plugins/VisitTime/functions.php
@@ -47,3 +47,14 @@ function translateDayOfWeek($dayOfWeek)
{
return Piwik::translate('Intl_Day_Long_StandAlone_' . $dayOfWeek);
}
+
+/**
+ * Returns translated long name for month.
+ *
+ * @param int $month 1-12, for January-December
+ * @return string
+ */
+function translateMonth($month)
+{
+ return Piwik::translate('Intl_Month_Long_StandAlone_' . $month);
+}
diff --git a/plugins/VisitTime/lang/en.json b/plugins/VisitTime/lang/en.json
index e2cba5062a..36aefd4217 100644
--- a/plugins/VisitTime/lang/en.json
+++ b/plugins/VisitTime/lang/en.json
@@ -9,6 +9,15 @@
"ColumnVisitEndServerMinute": "Server time - minute (End of visit)",
"ColumnVisitStartServerHour": "Server time - hour (Start of visit)",
"ColumnVisitStartServerMinute": "Server time - minute (Start of visit)",
+ "ColumnVisitEndServerDate": "Server time - date (End of visit)",
+ "ColumnVisitEndServerDayOfMonth": "Server time - day of month (End of visit)",
+ "ColumnVisitEndServerDayOfWeek": "Server time - day of week (End of visit)",
+ "ColumnVisitEndServerDayOfYear": "Server time - day of year (End of visit)",
+ "ColumnVisitEndServerQuarter": "Server time - quarter (End of visit)",
+ "ColumnVisitEndServerSecond": "Server time - second (End of visit)",
+ "ColumnVisitEndServerWeekOfYear": "Server time - week of year (End of visit)",
+ "ColumnVisitEndServerMonth": "Server time - month (End of visit)",
+ "ColumnVisitEndServerYear": "Server time - year (End of visit)",
"ColumnServerMinute": "Server time - minute",
"DayOfWeek": "Day of the week",
"LocalTime": "Visits per local time",