diff options
author | Pixel <pixel@nobis-crew.org> | 2009-11-09 11:09:12 -0800 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2009-11-09 11:09:12 -0800 |
commit | a1d517b09acc73d609eeaa5b2e77936305db9c14 (patch) | |
tree | 270eef8eaf5f404f49c8ded882b7e5917ef48189 /lua-interface-light.lua | |
parent | a104f40fd160f3023a03bdeefcff0c3f33b5fe7d (diff) |
Adding slightly better locale detection.
Diffstat (limited to 'lua-interface-light.lua')
-rw-r--r-- | lua-interface-light.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua-interface-light.lua b/lua-interface-light.lua index 0aaa762..ec0694d 100644 --- a/lua-interface-light.lua +++ b/lua-interface-light.lua @@ -4,8 +4,7 @@ loadmodule "luahandle" local equivalent_locales = { ["French"] = "frFR", ["FranÃais"] = "frFR", - ["fr_FR"] = "frFR", - ["fr_BE"] = "frFR", + ["fr"] = "frFR", } local invite_locale = { @@ -57,6 +56,7 @@ local function generate_dlg() local invite = invite_locale.default system_locale = iup.GetGlobal "SYSTEMLANGUAGE" if type(system_locale) == "string" then + system_locale = split(split(system_locale, "_")[1], " ")[1] local direct = invite_locale[system_locale] if direct then invite = direct |