-- Library for localizing strings in lua scriptslocal lang = loadfile(GetDataPath() .. "Locale/" .. tostring(L) .. ".lua")if lang ~= nil then lang()endfunction loc(text) if lang ~= nil and locale ~= nil and locale[text] ~= nil then return locale[text] else return text endend