server/scripts/eressea/locales.lua
Enno Rehling 49493fa630 fix typo in last commit.
package is a standard lua module, not a good variable name.
log name of script.
2014-11-06 07:53:15 +01:00

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