share/hedgewars/Data/Scripts/Locale.lua
author Henek
Tue, 21 Dec 2010 14:42:47 +0100 (2010-12-21)
changeset 4594 5645462cc78f
parent 4502 759c1a3bb156
child 4854 881c8232b66a
permissions -rw-r--r--
removing all " " in filenames under share and replacing "_" with " " in missions
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