qt: Fix type error

This commit is contained in:
ts-korhonen
2022-01-08 13:40:45 +02:00
parent f2f06aa958
commit 34de2d15cf

View File

@@ -374,8 +374,10 @@ void set_language(uint32_t id) {
lang_id = id;
}
QMap<uint32_t, QPair<QString, QString>> ProgSettings::lcid_langcode =
extern "C++"
{
QMap<uint32_t, QPair<QString, QString>> ProgSettings::lcid_langcode =
{
{0x0405, {"cs-CZ", "Czech (Czech Republic)"} },
{0x0407, {"de-DE", "German (Germany)"} },
{0x0408, {"en-US", "English (United States)"} },
@@ -395,7 +397,8 @@ QMap<uint32_t, QPair<QString, QString>> ProgSettings::lcid_langcode =
{0x041F, {"tr-TR", "Turkish (Turkey)"} },
{0x0804, {"zh-CN", "Chinese (China)"} },
{0xFFFF, {"system", "(System Default)"} },
};
};
}
/* Sets up the program language before initialization. */
uint32_t plat_language_code(char* langcode) {