summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFrédéric Guillot <contact@fredericguillot.com>2014-01-25 15:51:48 -0500
committerFrédéric Guillot <contact@fredericguillot.com>2014-01-25 15:51:48 -0500
commitd5e428982076863ab7a59c1d69b39733af905938 (patch)
treeb85903aa22269632acfb462d52149afd8fb18bd6 /lib
parent9383a15af699ede77142d040b65118e15754a2ca (diff)
Fix bug: default date format
Diffstat (limited to 'lib')
-rw-r--r--lib/translator.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/translator.php b/lib/translator.php
index c485a94c..d9d9a84a 100644
--- a/lib/translator.php
+++ b/lib/translator.php
@@ -34,14 +34,12 @@ namespace Translator {
$str = '';
if ($position === 'before') {
-
$str .= $symbol;
}
$str .= number($amount);
if ($position === 'after') {
-
$str .= ' '.$symbol;
}
@@ -50,7 +48,7 @@ namespace Translator {
function datetime($format, $timestamp)
{
- return strftime(get($format), (int) $timestamp);
+ return strftime(get($format, $format), (int) $timestamp);
}
function get($identifier, $default = '')
@@ -58,11 +56,9 @@ namespace Translator {
$locales = container();
if (isset($locales[$identifier])) {
-
return $locales[$identifier];
}
else {
-
return $default;
}
}