-- Library for localizing strings in lua scripts local lang = nil function lua_loc(text) if locale ~= nil and locale[text] ~= nil then return locale[text] else return text end end if loc == nil then lang = HedgewarsScriptLoad("Locale/" .. tostring(L) .. ".lua") loc = lua_loc end