2014-11-06 07:15:53 +01:00
|
|
|
local function change_locales(localechange)
|
|
|
|
for loc, flist in pairs(localechange) do
|
|
|
|
for index, name in pairs(flist) do
|
|
|
|
f = get_faction(atoi36(name))
|
|
|
|
if f ~= nil and f.locale ~= loc then
|
|
|
|
print("LOCALECHANGE ", f, f.locale, loc)
|
|
|
|
f.locale = loc
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2014-11-06 07:53:15 +01:00
|
|
|
local pkg = {}
|
2014-11-06 07:15:53 +01:00
|
|
|
|
2014-11-06 07:53:15 +01:00
|
|
|
function pkg.update()
|
2014-11-06 07:15:53 +01:00
|
|
|
local localechange = { de = { 'ii' } }
|
|
|
|
change_locales(localechange)
|
|
|
|
end
|
|
|
|
|
2014-11-06 07:53:15 +01:00
|
|
|
return pkg
|