author | koda |
Wed, 06 Mar 2013 02:52:17 +0100 | |
changeset 8660 | 6370e545fd5f |
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