hedgewars/hwengine.pas
branchwebgl
changeset 8018 091293bc974f
parent 7981 aac257b77842
parent 7984 619a399bece8
child 8026 4a4f21070479
equal deleted inserted replaced
8008:2ed42786aca7 8018:091293bc974f
   384     LoadLocale(UserPathz[ptLocale] + '/en.txt');  // Do an initial load with english
   384     LoadLocale(UserPathz[ptLocale] + '/en.txt');  // Do an initial load with english
   385     LoadLocale(Pathz[ptLocale] + '/en.txt');  // Do an initial load with english
   385     LoadLocale(Pathz[ptLocale] + '/en.txt');  // Do an initial load with english
   386     if cLocaleFName <> 'en.txt' then
   386     if cLocaleFName <> 'en.txt' then
   387         begin
   387         begin
   388         // Try two letter locale first before trying specific locale overrides
   388         // Try two letter locale first before trying specific locale overrides
   389         if (Length(cLocale) > 2) and (Copy(cLocale,1,2) <> 'en') then
   389         if (Length(cLocale) > 3) and (Copy(cLocale,1,2) <> 'en') then
   390             begin
   390             begin
   391             LoadLocale(UserPathz[ptLocale] + '/' + Copy(cLocale,1,2)+'.txt');
   391             LoadLocale(UserPathz[ptLocale] + '/' + Copy(cLocale,1,2)+'.txt');
   392             LoadLocale(Pathz[ptLocale] + '/' + Copy(cLocale,1,2)+'.txt')
   392             LoadLocale(Pathz[ptLocale] + '/' + Copy(cLocale,1,2)+'.txt')
   393             end;
   393             end;
   394         LoadLocale(UserPathz[ptLocale] + '/' + cLocaleFName);
   394         LoadLocale(UserPathz[ptLocale] + '/' + cLocaleFName);