changeset 4502 | 759c1a3bb156 |
child 4854 | 881c8232b66a |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/share/hedgewars/Data/Scripts/Locale.lua Fri Dec 10 23:58:15 2010 +0100 @@ -0,0 +1,10 @@ +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