Changeset 1862 for trunk/include


Ignore:
Timestamp:
Feb 27, 2007, 7:22:17 AM (18 years ago)
Author:
vdigital
Message:

Bug: English plural rule is slightly different from French (0 is plural, not in French)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions.inc.php

    r1861 r1862  
    10121012function l10n_dec($singular_fmt_key, $plural_fmt_key, $decimal)
    10131013{
     1014  global $lang_info;
     1015  if ( $lang_info['zero_plural'] and $decimal == 0 )
     1016  {
     1017    return sprintf(l10n($plural_fmt_key), 0);
     1018  }
    10141019  return sprintf(l10n(($decimal > 1 ? $plural_fmt_key :
    10151020                                      $singular_fmt_key)), $decimal);
Note: See TracChangeset for help on using the changeset viewer.