Due to ticket #7461 an issue was raised about uppercase language names.
In English, languages are written with the first letter being uppercase
while other languages like 'es' and 'ca' write them lowercased unless
they're the begining of a sentence or single words.
This is currently impossible to distinguish with the current msgid's. So
two questions for everybody:
* Which languages are affected by the same thing? (That is, which
languages type language names lowercase unless beggining sentences or
single words).
* Any idea on how to get that information from the msgid's?
For the idea, one option would be having both msgid's (lower and
uppercase) so translation would be easy, but that would need the 'en'
locale to be up-to-date and having both msgstr set to uppercase. But
it's one possible solution. Ideas?
Thanks,
Marc
--
http://www.marcfargas.com -- will be finished some day.
On Mon, Jun 16, 2008 at 3:49 AM, Marc Fargas <tele...@telenieko.com> wrote:
> * Which languages are affected by the same thing? (That is, which
> languages type language names lowercase unless beggining sentences or
> single words).
At least French, Italian and Portuguese use initial lower-case and I'm
fairly sure that Danish, Icelandic, Norwegian, and Swedish do as well.
(In addition to English, German and Dutch use initial upper-case.)
FWIW, I think the solution would be to use the correct translation,
and filter through capfirst according to the use in the template. But
then, I would, since I brought this up in the ticket. ;-)
Arien
That's on the lines of Arien's suggestion also. And seems to be the
prefered way to handle this. The only question pending is if we'd like
to advise users (in the i18n docs) about that so those who do not know
that much of a language can be aware of this small thing and use
capitalize if needed.
i.e. you can "speak" spanish, but not be aware that language names are
written lowercase.
I'm going to ping django-users asking for help updating the languages
Ludvig pinged here before ("language maintenance ping" thread), I'll use
the same post asking for help lowercasing language names.
So, if possible, on the languages affected by this thing that have
language names uppercased, please post/commit diffs.
Thanks to all!
--
http://www.marcfargas.com -- will be finished some day.