--- a/share/hedgewars/Data/Scripts/Locale.lua Sun Aug 21 13:06:23 2011 +0400
+++ b/share/hedgewars/Data/Scripts/Locale.lua Sun Aug 21 08:52:19 2011 -0400
@@ -1,9 +1,14 @@
-- Library for localizing strings in lua scripts
-local lang = loadfile(GetDataPath() .. "Locale/" .. tostring(L) .. ".lua")
+local lang = loadfile(GetUserDataPath() .. "Locale/" .. tostring(L) .. ".lua")
if lang ~= nil then
lang()
+else
+ lang = loadfile(GetDataPath() .. "Locale/" .. tostring(L) .. ".lua")
+ if lang ~= nil then
+ lang()
+ end
end
function loc(text)