hedgewars/hwengine.pas
branchphysfslayer
changeset 8019 b216953c2617
parent 7959 644b757d20e6
parent 7984 619a399bece8
child 8025 07862ab415c8
--- a/hedgewars/hwengine.pas	Tue Nov 13 23:16:21 2012 +0400
+++ b/hedgewars/hwengine.pas	Tue Nov 13 23:21:46 2012 +0400
@@ -387,7 +387,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')