share/hedgewars/Data/Scripts/Locale.lua
author nemo
Thu, 23 Dec 2010 23:46:14 -0500
changeset 4659 ce5897f53072
parent 4502 759c1a3bb156
child 4854 881c8232b66a
permissions -rw-r--r--
more fiddling with graphics to try and satisfy both fire and snow

local lang = loadfile(GetDataPath() .. "Locale/" .. tostring(L) .. ".lua")
if lang ~= nil then
    lang()
end

function loc(text)
    if lang ~= nil and locale ~= nil and locale[text] ~= nil then return locale[text]
    else return text
    end
end