share/hedgewars/Data/Scripts/Locale.lua
author Henek
Thu, 30 Dec 2010 16:21:14 +0100
changeset 4785 5047d270e7d3
parent 4502 759c1a3bb156
child 4854 881c8232b66a
permissions -rw-r--r--
some more themes updated, note comments on brick

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