diff --git a/src/cata_imgui.cpp b/src/cata_imgui.cpp index ae7b31986a385..89bc9c4c38be9 100644 --- a/src/cata_imgui.cpp +++ b/src/cata_imgui.cpp @@ -330,9 +330,9 @@ static void AddGlyphRangesFromCLDR( ImFontGlyphRangesBuilder *b, const std::stri AddGlyphRangesFromCLDRForNL( b ); } else if( lang == "pl" ) { AddGlyphRangesFromCLDRForPL( b ); - } else if( lang == "pt_BR" ) { + } else if( lang == "pt" ) { AddGlyphRangesFromCLDRForPT( b ); - } else if( lang == "pt_PT" ) { + } else if( lang == "pt_BR" ) { AddGlyphRangesFromCLDRForPT( b ); } else if( lang == "ru" ) { AddGlyphRangesFromCLDRForRU( b ); diff --git a/src/options.cpp b/src/options.cpp index 803c5eb2942fd..584fc9455f03e 100644 --- a/src/options.cpp +++ b/src/options.cpp @@ -1360,8 +1360,8 @@ std::vector options_manager::get_lang_options() { "nb", R"(Norsk)" }, { "nl", R"(Nederlands)" }, { "pl", R"(Polski)" }, + { "pt", R"(Português (Portugal))" }, { "pt_BR", R"(Português (Brasil))" }, - { "pt_PT", R"(Português (Portugal))" }, { "ru", R"(Русский)" }, { "sr", R"(Српски)" }, { "tr", R"(Türkçe)" }, @@ -4243,10 +4243,10 @@ void options_manager::update_global_locale() std::locale::global( std::locale( "nl_NL.UTF-8" ) ); } else if( lang == "pl" ) { std::locale::global( std::locale( "pl_PL.UTF-8" ) ); + } else if( lang == "pt" ) { + std::locale::global( std::locale( "pt_PT.UTF-8" ) ); } else if( lang == "pt_BR" ) { std::locale::global( std::locale( "pt_BR.UTF-8" ) ); - } else if( lang == "pt_PT" ) { - std::locale::global( std::locale( "pt_PT.UTF-8" ) ); } else if( lang == "ru" ) { std::locale::global( std::locale( "ru_RU.UTF-8" ) ); } else if( lang == "sr" ) { diff --git a/src/system_locale.cpp b/src/system_locale.cpp index de62f8482d73a..1fd8b06d20303 100644 --- a/src/system_locale.cpp +++ b/src/system_locale.cpp @@ -72,7 +72,8 @@ std::optional Language() {"nb", {{ 1044, 2068 }} }, {"nl", { 1043 } }, {"pl", { 1045 } }, - {"pt_BR", {{ 1046, 2070 }} }, + {"pt", { 2070 } }, + {"pt_BR", { 1046 } }, {"ru", {{ 25, 1049, 2073 }} }, {"sr", { 3098 } }, {"tr", { 1055 } },