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:
authorMatthieu Aubry <matt@piwik.org>2015-10-30 02:42:52 +0300
committerMatthieu Aubry <matt@piwik.org>2015-10-30 02:42:52 +0300
commitfe36f931407ba99f3f8f708143e283f6846bb2f7 (patch)
tree155a0c9afc0cfddd98eddabe00024ac955ea15b0 /core/Period.php
parent2de7fef4d2176dc435a7dd9c1932b7cf6fdcf77c (diff)
parentc485c086be538e87ba92f26c1f3edd585c55bd46 (diff)
Merge pull request #9093 from piwik/timeformats
Allow user to change time formats (12/24-hour clock)
Diffstat (limited to 'core/Period.php')
-rw-r--r--core/Period.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/core/Period.php b/core/Period.php
index 70a47d2905..aecf6362bf 100644
--- a/core/Period.php
+++ b/core/Period.php
@@ -371,12 +371,9 @@ abstract class Period
$maxDifference = 'M';
}
- return $this->translator->translate(
- sprintf(
- 'Intl_Format_Interval_%s_%s',
- $short ? 'Short' : 'Long',
- $maxDifference
- ));
+ $dateTimeFormatProvider = StaticContainer::get('Piwik\Intl\Data\Provider\DateTimeFormatProvider');
+
+ return $dateTimeFormatProvider->getRangeFormatPattern($short, $maxDifference);
}
/**