share/hedgewars/Data/Scripts/Locale.lua
changeset 8824 fe9eacd390f2
parent 8349 a1dbe148f10f
child 12013 3e615852f36e
--- a/share/hedgewars/Data/Scripts/Locale.lua	Sat Mar 30 08:11:09 2013 -0400
+++ b/share/hedgewars/Data/Scripts/Locale.lua	Sun Mar 31 14:20:40 2013 -0400
@@ -2,17 +2,8 @@
 
 local lang = HedgewarsScriptLoad("Locale/" .. tostring(L) .. ".lua")
 
-if lang ~= nil then
-    lang()
-else
-    lang = HedgewarsScriptLoad("Locale/" .. tostring(L) .. ".lua")
-    if lang ~= nil then
-        lang()
-    end
-end
-
 function loc(text)
-    if lang ~= nil and locale ~= nil and locale[text] ~= nil then return locale[text]
+    if locale ~= nil and locale[text] ~= nil then return locale[text]
     else return text
     end
 end