equal
deleted
inserted
replaced
|
1 local lang = loadfile(GetDataPath() .. "Locale/" .. tostring(L) .. ".lua") |
|
2 if lang ~= nil then |
|
3 lang() |
|
4 end |
|
5 |
|
6 function loc(text) |
|
7 if lang ~= nil and locale ~= nil and locale[text] ~= nil then return locale[text] |
|
8 else return text |
|
9 end |
|
10 end |