aboutsummaryrefslogtreecommitdiffstats
path: root/feed.php
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2006-12-06 23:56:24 +0000
committerrub <rub@piwigo.org>2006-12-06 23:56:24 +0000
commitfddfd816a76e231ee02ec7fa58894e9e675f5021 (patch)
tree63c83e2e01d715347ad29f89a40e8bb094679403 /feed.php
parentf880be0609a63046c2f8fe961467f97a8a943f10 (diff)
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
Diffstat (limited to 'feed.php')
-rw-r--r--feed.php13
1 files changed, 8 insertions, 5 deletions
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 .=
'<li>'
- .sprintf(l10n('%d new elements'), $date_detail['nb_images'])
+ .l10n_dec('%d element added', '%d elements added', $date_detail['nb_images'])
.' ('
.'<a href="'.make_index_url(array('section'=>'recent_pics')).'">'
.l10n('recent_pics_cat').'</a>'
@@ -254,7 +254,8 @@ SELECT DISTINCT id, path, name, tn_ext
$item->description .=
'<li>'
- .sprintf(l10n('%d categories updated'), $date_detail['nb_cats'])
+ .l10n_dec('%d category updated', '%d categories updated',
+ $date_detail['nb_cats'])
.'</li>';
// get some categories ...
$query = '
@@ -274,7 +275,9 @@ SELECT DISTINCT c.uppercats, COUNT(DISTINCT i.id) img_count
$item->description .=
'<li>'
.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']).')'
.'</li>';
}
$item->description .= '</ul>';