On Sat, May 24, 2008 at 11:29 AM, Niklas Laxström
<niklas.laxstrom(a)gmail.com> wrote:
Building messages from lego blocks is usually a bad
idea and it feels
like no other languages was though about in the process. The right
messages start with a capital letter in English, and then there is the
following code:
$action_desc[0] = strtolower($action_desc[0]);
It is wrong in two ways. First it should be using proper language
specific functions in Language-class and secondly that thing should be
in the message itself ({{lcfirst:$1}}), unless you are sure every
other language uses same capitalisation rules as English does in this
case (I wouldn't count on that).
Just think about the languages that may need more complex changes than
lowercasing the first letter. I can't think of any right now, but even
in Finnish it requires that all right messages are translated using
the same infinitive verb form.
I'd like to hear from translators, if it is not possible to translate
this message properly to some languages.
My approach is when in doubt, add new messages, don't reuse old ones.
It increases the burden on translators, but at least it allows them to
actually translate things properly regardless of how odd their
language might be. :)