diff options
author | rub <rub@piwigo.org> | 2006-04-14 21:11:56 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2006-04-14 21:11:56 +0000 |
commit | e1c0fd7f4c76ae6c343b21dcf904ad4ef0b87ece (patch) | |
tree | 44aa6d311437ae1f366106cf6ed5be72bf579766 /include | |
parent | 0d1eb2ecf3ce9ba580352f22179751a85a911e0f (diff) |
Issue ID 326:
o Fix none translations "pictures"
o Fix display 0 pictures
git-svn-id: http://piwigo.org/svn/trunk@1172 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/category_recent_cats.inc.php | 2 | ||||
-rw-r--r-- | include/category_subcats.inc.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/category_recent_cats.inc.php b/include/category_recent_cats.inc.php index ae98426bd..b9aebcf2c 100644 --- a/include/category_recent_cats.inc.php +++ b/include/category_recent_cats.inc.php @@ -99,7 +99,7 @@ if ($conf['subcatify']) ) ), 'NAME' => get_cat_display_name_cache($row['uppercats'], null, false), - 'NB_IMAGES' => $row['nb_images'], + 'CAPTION_NB_IMAGES' => (($row['nb_images'] == 0) ? '' : sprintf("%d ".l10n('pictures'), $row['nb_images'])), 'DESCRIPTION' => $comment, ) ); diff --git a/include/category_subcats.inc.php b/include/category_subcats.inc.php index 3e31ecc80..1fc6b2ac4 100644 --- a/include/category_subcats.inc.php +++ b/include/category_subcats.inc.php @@ -160,7 +160,7 @@ SELECT id, path, tn_ext ) ), 'NAME' => $category['name'], - 'NB_IMAGES' => $category['nb_images'], + 'CAPTION_NB_IMAGES' => (($category['nb_images'] == 0) ? '' : sprintf("%d ".l10n('pictures'), $category['nb_images'])), 'DESCRIPTION' => @$category['comment'], ) ); |