Last modified: 2010-05-29 15:17:50 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T9309, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 7309 - {{plural:}} is false in French: zero has to be singular...
{{plural:}} is false in French: zero has to be singular...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-09-13 12:39 UTC by Ethaniel.Robotik
Modified: 2010-05-29 15:17 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Ethaniel.Robotik 2006-09-13 12:39:58 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.
Comment 1 Jimmy Collins 2006-09-14 22:59:09 UTC
Fixed in r16517.
Comment 2 Helder 2010-05-29 15:06:36 UTC
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
Comment 3 Casey Brown 2010-05-29 15:10:47 UTC
(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).
Comment 4 Helder 2010-05-29 15:17:50 UTC
Sorry for that...
I've created bug 23707 for this request.

Helder

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links