to hugo:
In Changeset 841 you are stripping anything after a '-'. This would make a huge problem for translation based on language sub-tag. OTOH you can use _expand_lang from gettext to retrieve *list* of normalized language names for requested locale. You only must replace '-' with '_' before calling it.
i.e. >>> from gettext import _expand_lang >>> _expand_lang('en') ['en_US.ISO8859-1', 'en_US', 'en.ISO8859-1', 'en'] >>> _expand_lang('de_de') ['de_DE.ISO8859-1', 'de_DE', 'de.ISO8859-1', 'de'] >>> _expand_lang('sr_latin') ['sr_latin', 'sr'] >>> _expand_lang('sr_cyrillic') ['sr_cyrillic', 'sr'] --- Nebojša Đorđević - nesh Studio Quattro - Niš - SCG http://djnesh.blogspot.com/ | http://djnesh-django.blogspot.com/ Registered Linux User 282159 [http://counter.li.org]