mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r6288) -Regression: Restore automatic language detection, which was broken in r4886 when the language codes got extended
This commit is contained in:
parent
cdf3972733
commit
718c0214bf
@ -1250,7 +1250,7 @@ void InitializeLanguagePacks(void)
|
|||||||
dl->ent[m].name = strdup(hdr.name);
|
dl->ent[m].name = strdup(hdr.name);
|
||||||
|
|
||||||
if (strcmp(hdr.name, "English") == 0) fallback = m;
|
if (strcmp(hdr.name, "English") == 0) fallback = m;
|
||||||
if (strcmp(hdr.isocode, lang) == 0) def = m;
|
if (strncmp(hdr.isocode, lang, 2) == 0) def = m;
|
||||||
|
|
||||||
m++;
|
m++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user