share/hedgewars/Data/Scripts/Locale.lua
changeset 5616 a96231121eac
parent 4854 881c8232b66a
child 8349 a1dbe148f10f
--- 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)