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:
Diffstat (limited to 'core/MetricsFormatter.php')
-rw-r--r--core/MetricsFormatter.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/MetricsFormatter.php b/core/MetricsFormatter.php
index b86453d682..29c2e71c49 100644
--- a/core/MetricsFormatter.php
+++ b/core/MetricsFormatter.php
@@ -78,15 +78,15 @@ class MetricsFormatter
$seconds = round($seconds, $precision);
if ($years > 0) {
- $return = sprintf(Piwik_Translate('General_YearsDays'), $years, $days);
+ $return = sprintf(Piwik::translate('General_YearsDays'), $years, $days);
} elseif ($days > 0) {
- $return = sprintf(Piwik_Translate('General_DaysHours'), $days, $hours);
+ $return = sprintf(Piwik::translate('General_DaysHours'), $days, $hours);
} elseif ($hours > 0) {
- $return = sprintf(Piwik_Translate('General_HoursMinutes'), $hours, $minutes);
+ $return = sprintf(Piwik::translate('General_HoursMinutes'), $hours, $minutes);
} elseif ($minutes > 0) {
- $return = sprintf(Piwik_Translate('General_MinutesSeconds'), $minutes, $seconds);
+ $return = sprintf(Piwik::translate('General_MinutesSeconds'), $minutes, $seconds);
} else {
- $return = sprintf(Piwik_Translate('General_Seconds'), $seconds);
+ $return = sprintf(Piwik::translate('General_Seconds'), $seconds);
}
if ($isHtml) {
return str_replace(' ', ' ', $return);