forked from ShuriZma/suyu
service: ns, set: Add PT_BR (Brazilian Portuguese)
This commit is contained in:
parent
db07ca6c7f
commit
21ff0a3d6e
|
@ -339,6 +339,7 @@ std::optional<ApplicationLanguage> ConvertToApplicationLanguage(
|
||||||
case Set::LanguageCode::FR_CA:
|
case Set::LanguageCode::FR_CA:
|
||||||
return ApplicationLanguage::CanadianFrench;
|
return ApplicationLanguage::CanadianFrench;
|
||||||
case Set::LanguageCode::PT:
|
case Set::LanguageCode::PT:
|
||||||
|
case Set::LanguageCode::PT_BR:
|
||||||
return ApplicationLanguage::Portuguese;
|
return ApplicationLanguage::Portuguese;
|
||||||
case Set::LanguageCode::RU:
|
case Set::LanguageCode::RU:
|
||||||
return ApplicationLanguage::Russian;
|
return ApplicationLanguage::Russian;
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
namespace Service::Set {
|
namespace Service::Set {
|
||||||
namespace {
|
namespace {
|
||||||
constexpr std::array<LanguageCode, 17> available_language_codes = {{
|
constexpr std::array<LanguageCode, 18> available_language_codes = {{
|
||||||
LanguageCode::JA,
|
LanguageCode::JA,
|
||||||
LanguageCode::EN_US,
|
LanguageCode::EN_US,
|
||||||
LanguageCode::FR,
|
LanguageCode::FR,
|
||||||
|
@ -30,6 +30,7 @@ constexpr std::array<LanguageCode, 17> available_language_codes = {{
|
||||||
LanguageCode::ES_419,
|
LanguageCode::ES_419,
|
||||||
LanguageCode::ZH_HANS,
|
LanguageCode::ZH_HANS,
|
||||||
LanguageCode::ZH_HANT,
|
LanguageCode::ZH_HANT,
|
||||||
|
LanguageCode::PT_BR,
|
||||||
}};
|
}};
|
||||||
|
|
||||||
enum class KeyboardLayout : u64 {
|
enum class KeyboardLayout : u64 {
|
||||||
|
@ -50,7 +51,7 @@ enum class KeyboardLayout : u64 {
|
||||||
ChineseTraditional = 14,
|
ChineseTraditional = 14,
|
||||||
};
|
};
|
||||||
|
|
||||||
constexpr std::array<std::pair<LanguageCode, KeyboardLayout>, 17> language_to_layout{{
|
constexpr std::array<std::pair<LanguageCode, KeyboardLayout>, 18> language_to_layout{{
|
||||||
{LanguageCode::JA, KeyboardLayout::Japanese},
|
{LanguageCode::JA, KeyboardLayout::Japanese},
|
||||||
{LanguageCode::EN_US, KeyboardLayout::EnglishUs},
|
{LanguageCode::EN_US, KeyboardLayout::EnglishUs},
|
||||||
{LanguageCode::FR, KeyboardLayout::French},
|
{LanguageCode::FR, KeyboardLayout::French},
|
||||||
|
@ -68,6 +69,7 @@ constexpr std::array<std::pair<LanguageCode, KeyboardLayout>, 17> language_to_la
|
||||||
{LanguageCode::ES_419, KeyboardLayout::SpanishLatin},
|
{LanguageCode::ES_419, KeyboardLayout::SpanishLatin},
|
||||||
{LanguageCode::ZH_HANS, KeyboardLayout::ChineseSimplified},
|
{LanguageCode::ZH_HANS, KeyboardLayout::ChineseSimplified},
|
||||||
{LanguageCode::ZH_HANT, KeyboardLayout::ChineseTraditional},
|
{LanguageCode::ZH_HANT, KeyboardLayout::ChineseTraditional},
|
||||||
|
{LanguageCode::PT_BR, KeyboardLayout::Portuguese},
|
||||||
}};
|
}};
|
||||||
|
|
||||||
constexpr std::size_t pre4_0_0_max_entries = 15;
|
constexpr std::size_t pre4_0_0_max_entries = 15;
|
||||||
|
|
|
@ -31,6 +31,7 @@ enum class LanguageCode : u64 {
|
||||||
ES_419 = 0x00003931342D7365,
|
ES_419 = 0x00003931342D7365,
|
||||||
ZH_HANS = 0x00736E61482D687A,
|
ZH_HANS = 0x00736E61482D687A,
|
||||||
ZH_HANT = 0x00746E61482D687A,
|
ZH_HANT = 0x00746E61482D687A,
|
||||||
|
PT_BR = 0x00000052422D7470,
|
||||||
};
|
};
|
||||||
LanguageCode GetLanguageCodeFromIndex(std::size_t idx);
|
LanguageCode GetLanguageCodeFromIndex(std::size_t idx);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue