[Padre-dev] Padre::Locale 2.0 lands on trunk

Adam Kennedy adamkennedybackup at gmail.com
Mon Jan 5 05:26:24 PST 2009


Since we've paused for a day to clean things up before 0.24, I've
taken the opportunity to (probably) break all the language stuff and
landed the new locale implementation.

This does three interesting things the old one doesn't.

1. It knows that Brazillian isn't the same as Portugese.

2. If you are Portugese, it knows to fall back and show you Brazillian anyway.

3. Even though it's showing you Brazillian, it knows that you what you
ACTUALLY wanted was Portugese, and so if a better translation option
or a better fallback shows up later, it will use that instead.

We need to add more of these entries in still (lots more) but
theoretically, we now SHOULD be able to reach a point where Padre
could start up in just about any locale in the world and correctly
guess the right fallback language to use, but without permanently
locking anyone into it.

Of course, since I don't know any other language except a little bit
of French, and I can't generate the .mo files anyway, I have no idea
if I've utterly broken everything.

Please show a little attention and make sure that I haven't broken
anything you care about... again... today... :)

Adam K


More information about the Padre-dev mailing list