google-code-export / globalite

Automatically exported from code.google.com/p/globalite
1 stars 0 forks source link

Locale.set_code ignoring changes if only language is set (breaks with Danish locales and firefox). #37

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am trying to add a Danish Locale to Globalite and am testing it by
letting firefox language settings set to "da" (not there is no country
specified for Danish browser). This is a problem as Globalites
Locale.set_code(locale) assumes that locale has both a country and a
language set (f.x. en-US) or it won't work. Unfortunately this will not
work as firefox does not specify a country for Danish. Hence
Locale.set_code should be modified so Locale.set_code('da') will work.

Original issue reported on code.google.com by morte...@gmail.com on 22 Jul 2008 at 9:38