diff options
| -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 | 
