diff --git a/src/config.c b/src/config.c index 2acfd44095..a5521c2cf1 100644 --- a/src/config.c +++ b/src/config.c @@ -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 }; diff --git a/src/localisation/language.c b/src/localisation/language.c index 03f3c2abfc..05c7eae239 100644 --- a/src/localisation/language.c +++ b/src/localisation/language.c @@ -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 */ diff --git a/src/platform/windows.c b/src/platform/windows.c index b090bae968..52fb1000df 100644 --- a/src/platform/windows.c +++ b/src/platform/windows.c @@ -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; }