[Mediawiki-i18n] Pfunc and plural

Amir E. Aharoni amir.aharoni at mail.huji.ac.il
Thu Aug 18 16:12:56 UTC 2011


Messages such as these:
* MediaWiki:Pfunc-convert-unit-length-metre
* MediaWiki:Pfunc-convert-unit-length-angstrom
* MediaWiki:Pfunc-convert-unit-length-mile

all have a problem: they only take the plural of the word itself, but
the number is left out. For example,
MediaWiki:Pfunc-convert-unit-length-mile is {{PLURAL:$1|mile|miles}}.

Usually in such messages the number itself is not only an argument,
but also a part of the return value and for a good reason: in some
languages one is treated differently from plural. For example, in
Hebrew the number 1 comes after the noun and all the other numbers
come before it.

These messages must be re-written as {{PLURAL:$1|$1 mile|$1 miles}}.
In Hebrew it would be something like {{PLURAL:$1|mile $1|$1 miles}}.


Amir Elisha Aharoni · אָמִיר אֱלִישָׁע אַהֲרוֹנִי
‪“We're living in pieces,
I want to live in peace.” – T. Moore‬

More information about the Mediawiki-i18n mailing list