author | inu |
Fri, 18 Jan 2013 11:30:09 +0100 | |
changeset 8398 | d63a0f9d2ccb |
parent 8349 | a1dbe148f10f |
child 8824 | fe9eacd390f2 |
permissions | -rw-r--r-- |
-- Library for localizing strings in lua scripts local lang = HedgewarsScriptLoad("Locale/" .. tostring(L) .. ".lua") if lang ~= nil then lang() else lang = HedgewarsScriptLoad("Locale/" .. tostring(L) .. ".lua") if lang ~= nil then lang() end end function loc(text) if lang ~= nil and locale ~= nil and locale[text] ~= nil then return locale[text] else return text end end