Changeset 1637 for trunk/feed.php


Ignore:
Timestamp:
Dec 7, 2006, 12:56:24 AM (17 years ago)
Author:
rub
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/feed.php

    r1636 r1637  
    189189}
    190190
    191 // build items for new images/albums
     191// build items for last images/albums
    192192$query = '
    193193SELECT date_available,
     
    212212  $exploded_date = explode_mysqldt($date);
    213213  $item = new FeedItem();
    214   $item->title = sprintf(l10n('%d new elements'), $date_detail['nb_images']);
     214  $item->title = l10n_dec('%d element added', '%d elements added', $date_detail['nb_images']);
    215215  $item->title .= ' ('.$lang['month'][(int)$exploded_date['month']].' '.$exploded_date['day'].')';
    216216  $item->link = make_index_url(
     
    228228  $item->description .=
    229229        '<li>'
    230         .sprintf(l10n('%d new elements'), $date_detail['nb_images'])
     230        .l10n_dec('%d element added', '%d elements added', $date_detail['nb_images'])
    231231        .' ('
    232232        .'<a href="'.make_index_url(array('section'=>'recent_pics')).'">'
     
    255255  $item->description .=
    256256        '<li>'
    257         .sprintf(l10n('%d categories updated'), $date_detail['nb_cats'])
     257        .l10n_dec('%d category updated', '%d categories updated',
     258                  $date_detail['nb_cats'])
    258259        .'</li>';
    259260  // get some categories ...
     
    275276          '<li>'
    276277          .get_cat_display_name_cache($row['uppercats'])
    277           .' ('.sprintf(l10n('%d new elements'), $row['img_count']).')'
     278          .' ('.
     279          l10n_dec('%d element added',
     280                   '%d elements added', $row['img_count']).')'
    278281          .'</li>';
    279282  }
Note: See TracChangeset for help on using the changeset viewer.