Finished stable implementation (as far as tested), still requires more testing.

This commit is contained in:
BenDol
2014-04-01 16:27:33 +13:00
parent 61059e66ec
commit b295053662
22 changed files with 180 additions and 177 deletions

View File

@@ -64,7 +64,7 @@ function init()
installLocales('/locales')
local userLocaleName = g_settings.get('locale', 'false')
local userLocaleName = g_settings:get('locale', 'false')
if userLocaleName ~= 'false' and setLocale(userLocaleName) then
pdebug('Using configured locale: ' .. userLocaleName)
else
@@ -150,7 +150,7 @@ function setLocale(name)
sendLocale(locale.name)
end
currentLocale = locale
g_settings.set('locale', name)
g_settings:set('locale', name)
if onLocaleChanged then onLocaleChanged(name) end
return true
end