pluf2

pluf2 Commit Details


Date:2009-01-31 03:30:34 (15 years 10 months ago)
Author:Loic d'Anterroches
Branch:master
Commit:a43b17932753428f33fc54518f90821559a17851
Parents: e635e8f81d50d0c127ecd1d5cb3eb484b37221fa
Message:Fixed Issue 120, code Typo in pluf/src/Pluf/Translation.php.

Changes:

File differences

src/Pluf/Translation.php
4747
4848
4949
50
51
50
51
52
5253
5354
5455
......
6263
6364
6465
65
66
6667
6768
6869
......
118119
119120
120121
121
122
122123
123124
124125
125126
126
127
127128
128129
129130
{
public static $plural_forms = array(
'fr' => 'singular0and1',
'en' => 'pluralnot1', // This is the default.
'fr' => 'plural_2gt1',
'en' => 'plural_2not1', // This is the default.
'de' => 'plural_2not1',
);
/**
if (isset(self::$plural_forms[substr($locale, 0, 2)])) {
return self::$plural_forms[substr($locale, 0, 2)];
}
return '2pluralnot1';
return 'plural_2not1';
}
/**
/**
* French, Brazilian Portuguese
*/
public static function singular0and1($n)
public static function plural_2gt1($n)
{
return (int) ($n>1);
}
public static function pluralnot1($n)
public static function plural_2not1($n)
{
return (int) ($n!=1);
}

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.05591s using 14 queries.