On 28.07.2016 20:41, Stas Malyshev wrote:
Hi!
Good point. Could we not just have a monolingual
text string property
that gives the preferred writing of the unit when used after a number? I
don't think the plural/singular issue is very problematic, since you
would have plural almost everywhere, even for "1.0 metres". So maybe we
We have code to deal with that - note that "1 reference" and "2
references" are displayed properly. It's a matter of applying that code
and having it provided with proper configs.
You mean the MediaWiki message processing code? This would probably be
powerful enough for units as well, but it works based on message strings
that look a bit like MW template calls. Someone has to enter such
strings for all units (and languages). This would be doable but the
added power comes at the price of more difficult editing of such message
strings instead of plain labels.
As far as I know, the message parsing is available through the MW API,
so external consumers could take advantage of the same system if the
message strings were part of the data (we would like to have grammatical
units in SQID as well).
just need one alternative label for most
languages? Or are there
languages with more complex grammar rules for units?
Oh yes :) Russian is one, but I'm sure there are others.
Forgive my ignorance; I was not able to read the example you gave there.
Markus