hedgewars/hwengine.pas
branchwebgl
changeset 8018 091293bc974f
parent 7981 aac257b77842
parent 7984 619a399bece8
child 8026 4a4f21070479
--- a/hedgewars/hwengine.pas	Sun Nov 11 14:59:22 2012 +0100
+++ b/hedgewars/hwengine.pas	Sun Nov 11 15:14:18 2012 +0100
@@ -386,7 +386,7 @@
     if cLocaleFName <> 'en.txt' then
         begin
         // Try two letter locale first before trying specific locale overrides
-        if (Length(cLocale) > 2) and (Copy(cLocale,1,2) <> 'en') then
+        if (Length(cLocale) > 3) and (Copy(cLocale,1,2) <> 'en') then
             begin
             LoadLocale(UserPathz[ptLocale] + '/' + Copy(cLocale,1,2)+'.txt');
             LoadLocale(Pathz[ptLocale] + '/' + Copy(cLocale,1,2)+'.txt')