hedgewars/hwengine.pas
changeset 2722 d891285e500f
parent 2719 0efcaa69d30c
child 2723 eaa6ac1e95ea
--- a/hedgewars/hwengine.pas	Thu Jan 28 19:01:57 2010 +0000
+++ b/hedgewars/hwengine.pas	Thu Jan 28 20:36:24 2010 +0000
@@ -280,7 +280,8 @@
 	if cLocaleFName <> 'en.txt' then
         begin
         // Try two letter locale first before trying specific locale overrides
-        if Length(cLocaleFName) <> 6 then LoadLocale(Pathz[ptLocale] + '/' + Copy(cLocaleFName,1,2)+'.txt');
+        if (Length(cLocaleFName) > 6) and (Copy(cLocaleFName,1,2)+'.txt' <> 'en.txt') then 
+            LoadLocale(Pathz[ptLocale] + '/' + Copy(cLocaleFName,1,2)+'.txt');
 	    LoadLocale(Pathz[ptLocale] + '/' + cLocaleFName);
         end;