aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/functions.inc.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index 50f247a47..46651c284 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -1011,6 +1011,11 @@ function l10n($key)
*/
function l10n_dec($singular_fmt_key, $plural_fmt_key, $decimal)
{
+ global $lang_info;
+ if ( $lang_info['zero_plural'] and $decimal == 0 )
+ {
+ return sprintf(l10n($plural_fmt_key), 0);
+ }
return sprintf(l10n(($decimal > 1 ? $plural_fmt_key :
$singular_fmt_key)), $decimal);
}