Hi,
While reading a bug pointed by the i18n triage
<https://bugzilla.wikimedia.org/show_bug.cgi?id=16026>, Happy-melon says
"A more general bug (which might well exist, I didn't check thoroughly)
would be "ALL MediaWiki messages should be either plaintext or accept
wikimarkup."
So I had the idea of censusing the wfMsg calls in the MW code and try to
detect which ones accept wikimarkup or other dialects (it depends of the
wfMsg function and of the parameters of that function). So I wrote
yesterday a Python script to census the wfMsg calls in one side and the
messages in another side. The latter is not very useful in fact but the
former gives some interesting results.
I’ve done some statistics about the wfMsg calls on
<http://www.mediawiki.org/wiki/WfMsg_statistics>. There are also the raw
data and the link to the script (output to CSV).
If you find it useful I would be happy, but it was also an exercise for
extracting and manipulating data.
Seb35
Hi,
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}}.
Thanks.
--
Amir Elisha Aharoni · אָמִיר אֱלִישָׁע אַהֲרוֹנִי
http://aharoni.wordpress.com
“We're living in pieces,
I want to live in peace.” – T. Moore