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/include/functions_category.inc.php

    r1624 r1637  
    374374  if ($count > 0)
    375375  {
    376     $display_text.= sprintf(l10n(($count > 1 ? 'images_available' : 'image_available')), $count);
     376    $display_text.= l10n_dec('image_available', 'images_available', $count);
    377377
    378378    if ($cat_nb_images > 0)
     
    385385    else
    386386    {
    387       $display_text.= ' '.sprintf(l10n(($cat_count_categories > 1 ? 'images_available_cats' : 'images_available_cat')), $cat_count_categories);
     387      $display_text.= ' '.l10n_dec('images_available_cat', 'images_available_cats', $cat_count_categories);
    388388    }
    389389  }
Note: See TracChangeset for help on using the changeset viewer.