hedgewars/hwengine.pas
changeset 2722 d891285e500f
parent 2719 0efcaa69d30c
child 2723 eaa6ac1e95ea
equal deleted inserted replaced
2721:87067dcc208b 2722:d891285e500f
   278 
   278 
   279 	LoadLocale(Pathz[ptLocale] + '/en.txt');  // Do an initial load with english
   279 	LoadLocale(Pathz[ptLocale] + '/en.txt');  // Do an initial load with english
   280 	if cLocaleFName <> 'en.txt' then
   280 	if cLocaleFName <> 'en.txt' then
   281         begin
   281         begin
   282         // Try two letter locale first before trying specific locale overrides
   282         // Try two letter locale first before trying specific locale overrides
   283         if Length(cLocaleFName) <> 6 then LoadLocale(Pathz[ptLocale] + '/' + Copy(cLocaleFName,1,2)+'.txt');
   283         if (Length(cLocaleFName) > 6) and (Copy(cLocaleFName,1,2)+'.txt' <> 'en.txt') then 
       
   284             LoadLocale(Pathz[ptLocale] + '/' + Copy(cLocaleFName,1,2)+'.txt');
   284 	    LoadLocale(Pathz[ptLocale] + '/' + cLocaleFName);
   285 	    LoadLocale(Pathz[ptLocale] + '/' + cLocaleFName);
   285         end;
   286         end;
   286 
   287 
   287 	if recordFileName = '' then
   288 	if recordFileName = '' then
   288 		SendIPCAndWaitReply('C')        // ask for game config
   289 		SendIPCAndWaitReply('C')        // ask for game config