diff options
Diffstat (limited to 'core/translator.php')
-rw-r--r-- | core/translator.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/translator.php b/core/translator.php index 09480111..8adb1bfd 100644 --- a/core/translator.php +++ b/core/translator.php @@ -123,4 +123,8 @@ namespace { function dt() { return call_user_func_array('\Translator\datetime', func_get_args()); } + + function p($value, $t1, $t2) { + return $value > 1 ? $t2 : $t1; + } } |