-- Library for localizing strings in lua scriptslocal lang = nilfunction lua_loc(text) if locale ~= nil and locale[text] ~= nil then return locale[text] else return text endendif loc == nil then lang = HedgewarsScriptLoad("Locale/" .. tostring(L) .. ".lua") loc = lua_locend