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:
authormattab <matthieu.aubry@gmail.com>2013-10-09 08:03:35 +0400
committermattab <matthieu.aubry@gmail.com>2013-10-09 08:03:35 +0400
commit81ccb29b440e98ed9147e84781df0fce34ee6542 (patch)
tree378a809d208f6a2cc188489017b87a98501023f2 /core/Date.php
parent98935b7cca73c74dac77d3661239a2055e6b8f8f (diff)
Refs #4202 removing functions Piwik_Translate and Piwik_TranslateException
Diffstat (limited to 'core/Date.php')
-rw-r--r--core/Date.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/Date.php b/core/Date.php
index 1b0d31e4d6..b60e0963ff 100644
--- a/core/Date.php
+++ b/core/Date.php
@@ -67,7 +67,7 @@ class Date
*/
public static function factory($dateString, $timezone = null)
{
- $invalidDateException = new Exception(Piwik_TranslateException('General_ExceptionInvalidDateFormat', array("YYYY-MM-DD, or 'today' or 'yesterday'", "strtotime", "http://php.net/strtotime")) . ": $dateString");
+ $invalidDateException = new Exception(Piwik::translateException('General_ExceptionInvalidDateFormat', array("YYYY-MM-DD, or 'today' or 'yesterday'", "strtotime", "http://php.net/strtotime")) . ": $dateString");
if ($dateString instanceof self) {
$dateString = $dateString->toString();
}
@@ -528,10 +528,10 @@ class Date
$monthOfYear = $this->toString('n');
$patternToValue = array(
"%day%" => $day,
- "%shortMonth%" => Piwik_Translate('General_ShortMonth_' . $monthOfYear),
- "%longMonth%" => Piwik_Translate('General_LongMonth_' . $monthOfYear),
- "%shortDay%" => Piwik_Translate('General_ShortDay_' . $dayOfWeek),
- "%longDay%" => Piwik_Translate('General_LongDay_' . $dayOfWeek),
+ "%shortMonth%" => Piwik::translate('General_ShortMonth_' . $monthOfYear),
+ "%longMonth%" => Piwik::translate('General_LongMonth_' . $monthOfYear),
+ "%shortDay%" => Piwik::translate('General_ShortDay_' . $dayOfWeek),
+ "%longDay%" => Piwik::translate('General_LongDay_' . $dayOfWeek),
"%longYear%" => $this->toString('Y'),
"%shortYear%" => $this->toString('y'),
"%time%" => $this->toString('H:i:s')