Last modified: 2010-05-29 15:17:50 UTC
Hello ! Since there is no http://svn.wikimedia.org/svnroot/mediawiki/trunk/phase3/languages/LanguageFr.php , the default english version http://svn.wikimedia.org/svnroot/mediawiki/trunk/phase3/languages/Language.php is used, especially for the plural form: > function convertPlural( $count, $w1, $w2, $w3) { > return $count == '1' ? $w1 : $w2; > } So, when $count == 0, the plural form $w2 is used. But as said in the [[plural]] article: > Languages having only a singular and plural form may still differ in their treatment of zero. For example, in English, German, Dutch, Italian, Spanish and European Portuguese, the plural form is used for zero or more than one, and the singular for one thing only. By contrast, in French and Brazilian Portuguese, the singular form is used for zero. Thus, the {{plural:}} fonction is false in French, and has to be, in LanguageFr.php: > function convertPlural( $count, $w1, $w2, $w3) { > return $count <= '1' ? $w1 : $w2; > } Thank you.
Fixed in r16517.
Hi!! This is wrong for pt-br. That information that "is used singular for zero in pt-br" was in the Wikipedia article on 2006 and is not there anymore. http://en.wikipedia.org/w/index.php?title=Plural&action=historysubmit&diff=85891644&oldid=85471591 The rule should be the same as in pt as noted here: * http://translatewiki.net/w/i.php?title=Support&offset=20100516214959#PLURAL_for_pt-br_268 * http://unicode.org/cldr/trac/ticket/2746 Thanks
(In reply to comment #2) > Hi!! > > This is wrong for pt-br. That information that "is used singular for zero in > pt-br" was in the Wikipedia article on 2006 and is not there anymore. > http://en.wikipedia.org/w/index.php?title=Plural&action=historysubmit&diff=85891644&oldid=85471591 > > The rule should be the same as in pt as noted here: > * > http://translatewiki.net/w/i.php?title=Support&offset=20100516214959#PLURAL_for_pt-br_268 > * http://unicode.org/cldr/trac/ticket/2746 > > Thanks This should be a new bug, please do not open old bugs for semi-related issues. Just create a new bug with a similar summary and link to this bug (just type bug 7309 and it will automatically link).
Sorry for that... I've created bug 23707 for this request. Helder