summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}
}