share/hedgewars/Data/Scripts/Locale.lua
author koda
Fri, 14 Jan 2011 00:31:21 +0100
branch0.9.15
changeset 4744 ecc2c757d0df
parent 4502 759c1a3bb156
child 4854 881c8232b66a
permissions -rw-r--r--
general uKey refactor in preparaiton of two new shortcuts

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