diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-09-15 22:35:56 +0200 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-09-15 22:35:56 +0200 |
commit | e1ddf7f0127e9745f94e5ff9f76ea828e9058720 (patch) | |
tree | 46ae9b2397162cff54813dd840c340e85aaf53fe /app/translator.php | |
parent | 5f962bf4cd7ef69f2a0873cbebdce83d35b086a5 (diff) |
Run unit tests across different database backends + fix bugs
Diffstat (limited to 'app/translator.php')
-rw-r--r-- | app/translator.php | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/app/translator.php b/app/translator.php deleted file mode 100644 index ac4d72e2..00000000 --- a/app/translator.php +++ /dev/null @@ -1,43 +0,0 @@ -<?php - -use Core\Translator; - -// Get a translation -function t() -{ - $t = new Translator; - return call_user_func_array(array($t, 'translate'), func_get_args()); -} - -// translate with no html escaping -function e() -{ - $t = new Translator; - return call_user_func_array(array($t, 'translateNoEscaping'), func_get_args()); -} - -// Get a locale currency -function c($value) -{ - $t = new Translator; - return $t->currency($value); -} - -// Get a formatted number -function n($value) -{ - $t = new Translator; - return $t->number($value); -} - -// Get a locale date -function dt($format, $timestamp) -{ - $t = new Translator; - return $t->datetime($format, $timestamp); -} - -// Plurals, return $t2 if $value > 1 -function p($value, $t1, $t2) { - return $value > 1 ? $t2 : $t1; -} |