share/hedgewars/Data/Scripts/Locale.lua
changeset 4854 881c8232b66a
parent 4502 759c1a3bb156
child 5616 a96231121eac
equal deleted inserted replaced
4853:afe24c4491ef 4854:881c8232b66a
       
     1 -- Library for localizing strings in lua scripts
       
     2 
     1 local lang = loadfile(GetDataPath() .. "Locale/" .. tostring(L) .. ".lua")
     3 local lang = loadfile(GetDataPath() .. "Locale/" .. tostring(L) .. ".lua")
       
     4 
     2 if lang ~= nil then
     5 if lang ~= nil then
     3     lang()
     6     lang()
     4 end
     7 end
     5 
     8 
     6 function loc(text)
     9 function loc(text)