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 --- feed.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'feed.php') diff --git a/feed.php b/feed.php index 64dc12aae..5ddf1d59a 100644 --- a/feed.php +++ b/feed.php @@ -188,7 +188,7 @@ UPDATE '.USER_FEED_TABLE.' pwg_query($query); } -// build items for new images/albums +// build items for last images/albums $query = ' SELECT date_available, COUNT(DISTINCT id) nb_images, @@ -211,7 +211,7 @@ foreach($dates as $date_detail) $date = $date_detail['date_available']; $exploded_date = explode_mysqldt($date); $item = new FeedItem(); - $item->title = sprintf(l10n('%d new elements'), $date_detail['nb_images']); + $item->title = l10n_dec('%d element added', '%d elements added', $date_detail['nb_images']); $item->title .= ' ('.$lang['month'][(int)$exploded_date['month']].' '.$exploded_date['day'].')'; $item->link = make_index_url( array( @@ -227,7 +227,7 @@ foreach($dates as $date_detail) $item->description .= '
  • ' - .sprintf(l10n('%d new elements'), $date_detail['nb_images']) + .l10n_dec('%d element added', '%d elements added', $date_detail['nb_images']) .' (' .'' .l10n('recent_pics_cat').'' @@ -254,7 +254,8 @@ SELECT DISTINCT id, path, name, tn_ext $item->description .= '
  • ' - .sprintf(l10n('%d categories updated'), $date_detail['nb_cats']) + .l10n_dec('%d category updated', '%d categories updated', + $date_detail['nb_cats']) .'
  • '; // get some categories ... $query = ' @@ -274,7 +275,9 @@ SELECT DISTINCT c.uppercats, COUNT(DISTINCT i.id) img_count $item->description .= '
  • ' .get_cat_display_name_cache($row['uppercats']) - .' ('.sprintf(l10n('%d new elements'), $row['img_count']).')' + .' ('. + l10n_dec('%d element added', + '%d elements added', $row['img_count']).')' .'
  • '; } $item->description .= ''; -- cgit v1.2.3