hedgewars/hwengine.pas
branchphysfslayer
changeset 8019 b216953c2617
parent 7959 644b757d20e6
parent 7984 619a399bece8
child 8025 07862ab415c8
equal deleted inserted replaced
7971:fcbaa236a2d5 8019:b216953c2617
   385     LoadLocale(UserPathz[ptLocale] + '/en.txt');  // Do an initial load with english
   385     LoadLocale(UserPathz[ptLocale] + '/en.txt');  // Do an initial load with english
   386     LoadLocale(Pathz[ptLocale] + '/en.txt');  // Do an initial load with english
   386     LoadLocale(Pathz[ptLocale] + '/en.txt');  // Do an initial load with english
   387     if cLocaleFName <> 'en.txt' then
   387     if cLocaleFName <> 'en.txt' then
   388         begin
   388         begin
   389         // Try two letter locale first before trying specific locale overrides
   389         // Try two letter locale first before trying specific locale overrides
   390         if (Length(cLocale) > 2) and (Copy(cLocale,1,2) <> 'en') then
   390         if (Length(cLocale) > 3) and (Copy(cLocale,1,2) <> 'en') then
   391             begin
   391             begin
   392             LoadLocale(UserPathz[ptLocale] + '/' + Copy(cLocale,1,2)+'.txt');
   392             LoadLocale(UserPathz[ptLocale] + '/' + Copy(cLocale,1,2)+'.txt');
   393             LoadLocale(Pathz[ptLocale] + '/' + Copy(cLocale,1,2)+'.txt')
   393             LoadLocale(Pathz[ptLocale] + '/' + Copy(cLocale,1,2)+'.txt')
   394             end;
   394             end;
   395         LoadLocale(UserPathz[ptLocale] + '/' + cLocaleFName);
   395         LoadLocale(UserPathz[ptLocale] + '/' + cLocaleFName);