From 0dfdb3302833d3cf69020d4e0b4915e6c5e2b26b Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sun, 21 Jun 2015 15:13:40 +0200 Subject: [PATCH] Complete support, read .DAT entries from correct table --- src/config.c | 1 + src/localisation/language.c | 2 +- src/platform/windows.c | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) 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; }