forked from github/server
49493fa630
package is a standard lua module, not a good variable name. log name of script.
20 lines
432 B
Lua
20 lines
432 B
Lua
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
|
|
|
|
local pkg = {}
|
|
|
|
function pkg.update()
|
|
local localechange = { de = { 'ii' } }
|
|
change_locales(localechange)
|
|
end
|
|
|
|
return pkg
|