From fec44b7f888783afeb99f256a07cfcef185d2110 Mon Sep 17 00:00:00 2001 From: rub Date: Tue, 27 Feb 2007 23:24:53 +0000 Subject: Missing one change flat_hint to mode_flat_hint Review a little l10n_dec git-svn-id: http://piwigo.org/svn/trunk@1864 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions.inc.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'include/functions.inc.php') diff --git a/include/functions.inc.php b/include/functions.inc.php index 46651c284..6b44c81dc 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -1012,12 +1012,14 @@ 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); + + return + sprintf( + l10n(( + (($decimal > 1) or ($decimal == 0 and $lang_info['zero_plural'])) + ? $plural_fmt_key + : $singular_fmt_key + )), $decimal); } /** -- cgit v1.2.3