From fddfd816a76e231ee02ec7fa58894e9e675f5021 Mon Sep 17 00:00:00 2001 From: rub Date: Wed, 6 Dec 2006 23:56:24 +0000 Subject: Proposition of translations about: A recent picture is a last picture but a last picture is not a recent picture. A recent category is a last category but a last category is not a recent category. So it's a proposition about last is not like recent. Improvement of string including decimal number in order to concord singular and plural. Now, function l10n_dec must be used. git-svn-id: http://piwigo.org/svn/trunk@1637 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_category.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/functions_category.inc.php') diff --git a/include/functions_category.inc.php b/include/functions_category.inc.php index ae8b617f7..e8a066923 100644 --- a/include/functions_category.inc.php +++ b/include/functions_category.inc.php @@ -373,7 +373,7 @@ function get_display_images_count($cat_nb_images, $cat_count_images, $cat_count_ if ($count > 0) { - $display_text.= sprintf(l10n(($count > 1 ? 'images_available' : 'image_available')), $count); + $display_text.= l10n_dec('image_available', 'images_available', $count); if ($cat_nb_images > 0) { @@ -384,7 +384,7 @@ function get_display_images_count($cat_nb_images, $cat_count_images, $cat_count_ } else { - $display_text.= ' '.sprintf(l10n(($cat_count_categories > 1 ? 'images_available_cats' : 'images_available_cat')), $cat_count_categories); + $display_text.= ' '.l10n_dec('images_available_cat', 'images_available_cats', $cat_count_categories); } } -- cgit v1.2.3