Index: trunk/phase3/languages/classes/LanguageUk.php |
— | — | @@ -71,7 +71,10 @@ |
72 | 72 | function convertPlural( $count, $forms ) { |
73 | 73 | if ( !count( $forms ) ) { return ''; } |
74 | 74 | |
75 | | - // if no number with word, then use $form[0] for singular and $form[1] for plural or zero |
| 75 | + // If the actual number is not mentioned in the expression, then just two forms are enough: |
| 76 | + // singular for $count == 1 |
| 77 | + // plural for $count != 0 |
| 78 | + // For example, "This user belongs to {{PLURAL:$1|one group|several groups}}." |
76 | 79 | if ( count( $forms ) === 2 ) return $count == 1 ? $forms[0] : $forms[1]; |
77 | 80 | |
78 | 81 | // @todo FIXME: CLDR defines 4 plural forms. Form for decimals is missing/ |
Index: trunk/phase3/languages/classes/LanguageRu.php |
— | — | @@ -82,7 +82,10 @@ |
83 | 83 | function convertPlural( $count, $forms ) { |
84 | 84 | if ( !count( $forms ) ) { return ''; } |
85 | 85 | |
86 | | - // if no number with word, then use $form[0] for singular and $form[1] for plural or zero |
| 86 | + // If the actual number is not mentioned in the expression, then just two forms are enough: |
| 87 | + // singular for $count == 1 |
| 88 | + // plural for $count != 0 |
| 89 | + // For example, "This user belongs to {{PLURAL:$1|one group|several groups}}." |
87 | 90 | if ( count( $forms ) === 2 ) return $count == 1 ? $forms[0] : $forms[1]; |
88 | 91 | |
89 | 92 | // @todo FIXME: CLDR defines 4 plural forms. Form with decimals missing. |
Index: trunk/phase3/languages/classes/LanguageBe_tarask.php |
— | — | @@ -27,7 +27,10 @@ |
28 | 28 | function convertPlural( $count, $forms ) { |
29 | 29 | if ( !count( $forms ) ) { return ''; } |
30 | 30 | |
31 | | - // if no number with word, then use $form[0] for singular and $form[1] for plural or zero |
| 31 | + // If the actual number is not mentioned in the expression, then just two forms are enough: |
| 32 | + // singular for $count == 1 |
| 33 | + // plural for $count != 0 |
| 34 | + // For example, "This user belongs to {{PLURAL:$1|one group|several groups}}." |
32 | 35 | if ( count( $forms ) === 2 ) return $count == 1 ? $forms[0] : $forms[1]; |
33 | 36 | |
34 | 37 | // @todo FIXME: CLDR defines 4 plural forms instead of 3 |
Index: trunk/phase3/languages/classes/LanguageSr.php |
— | — | @@ -238,7 +238,10 @@ |
239 | 239 | return ''; |
240 | 240 | } |
241 | 241 | |
242 | | - // if no number with word, then use $form[0] for singular and $form[1] for plural or zero |
| 242 | + // If the actual number is not mentioned in the expression, then just two forms are enough: |
| 243 | + // singular for $count == 1 |
| 244 | + // plural for $count != 0 |
| 245 | + // For example, "This user belongs to {{PLURAL:$1|one group|several groups}}." |
243 | 246 | if ( count( $forms ) === 2 ) { |
244 | 247 | return $count == 1 ? $forms[0] : $forms[1]; |
245 | 248 | } |