1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Complete support, read .DAT entries from correct table

This commit is contained in:
Gymnasiast
2015-06-21 15:13:40 +02:00
parent d10d38a128
commit 0dfdb33028
3 changed files with 5 additions and 1 deletions

View File

@@ -136,6 +136,7 @@ config_enum_definition _languageEnum[] = {
{ "es-ES", LANGUAGE_SPANISH },
{ "sv-SE", LANGUAGE_SWEDISH },
{ "it-IT", LANGUAGE_ITALIAN },
{ "pt-BR", LANGUAGE_PORTUGUESE_BR },
END_OF_ENUM
};

View File

@@ -270,7 +270,7 @@ static void language_close(language_data *language)
}
const int OpenRCT2LangIdToObjectLangId[] = {
0, 0, 1, 3, 6, 2, 0, 0, 4, 7, 5, 11
0, 0, 1, 3, 6, 2, 0, 0, 4, 7, 5, 13
};
/* rct2: 0x0098DA16 */

View File

@@ -635,6 +635,9 @@ uint16 platform_get_locale_language(){
else if (strcmp(langCode, "ITA") == 0){
return LANGUAGE_ITALIAN;
}
else if (strcmp(langCode, "POR") == 0){
return LANGUAGE_PORTUGUESE_BR;
}
return LANGUAGE_UNDEFINED;
}