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.inc.php

    r1631 r1637  
    936936
    937937/**
     938 * returns the prinft value for strings including %d
     939 * return is concorded with decimal value (singular, plural)
     940 *
     941 * @param singular string key
     942 * @param plural string key
     943 * @param decimal value
     944 * @return string
     945 */
     946function l10n_dec($singular_fmt_key, $plural_fmt_key, $decimal)
     947{
     948  return sprintf(l10n(($decimal > 1 ? $plural_fmt_key :
     949                                      $singular_fmt_key)), $decimal);
     950}
     951
     952/**
    938953 * Translate string in string ascii7bits
    939954 * It's possible to do that with iconv_substr
Note: See TracChangeset for help on using the changeset viewer.