diff --git a/launcher/languages.cpp b/launcher/languages.cpp index fbe23cc86..2c3bc2498 100644 --- a/launcher/languages.cpp +++ b/launcher/languages.cpp @@ -18,18 +18,22 @@ #include // list of language names, for generation of translations. Do not use directly, use Languages namespace instead -static const std::array languageTranslatedNamesGenerator = { +static const std::array languageTranslatedNamesGenerator = { { QT_TRANSLATE_NOOP("Language", "Czech"), QT_TRANSLATE_NOOP("Language", "Chinese"), QT_TRANSLATE_NOOP("Language", "English"), + QT_TRANSLATE_NOOP("Language", "Finnish"), QT_TRANSLATE_NOOP("Language", "French"), QT_TRANSLATE_NOOP("Language", "German"), QT_TRANSLATE_NOOP("Language", "Italian"), QT_TRANSLATE_NOOP("Language", "Korean"), QT_TRANSLATE_NOOP("Language", "Polish"), + QT_TRANSLATE_NOOP("Language", "Portuguese"), QT_TRANSLATE_NOOP("Language", "Russian"), QT_TRANSLATE_NOOP("Language", "Spanish"), + QT_TRANSLATE_NOOP("Language", "Swedish"), + QT_TRANSLATE_NOOP("Language", "Turkish"), QT_TRANSLATE_NOOP("Language", "Ukrainian"), QT_TRANSLATE_NOOP("Language", "Other (East European)"), QT_TRANSLATE_NOOP("Language", "Other (Cyrillic Script)"), diff --git a/lib/Languages.h b/lib/Languages.h index b0e37ff73..79724c1d1 100644 --- a/lib/Languages.h +++ b/lib/Languages.h @@ -17,13 +17,17 @@ enum class ELanguages CZECH, CHINESE, ENGLISH, + FINNISH, FRENCH, GERMAN, ITALIAN, KOREAN, POLISH, + PORTUGUESE, RUSSIAN, SPANISH, + SWEDISH, + TURKISH, UKRAINIAN, // Pseudo-languages, that have no translations but can define H3 encoding to use @@ -57,19 +61,23 @@ struct Options inline const auto & getLanguageList() { - static const std::array languages + static const std::array languages { { - { "czech", "Czech", "Čeština", "CP1250", "cs", true }, - { "chinese", "Chinese", "简体中文", "GBK", "zh", true }, // Note: actually Simplified Chinese - { "english", "English", "English", "CP1252", "en", true }, - { "french", "French", "Français", "CP1252", "fr", true }, - { "german", "German", "Deutsch", "CP1252", "de", true }, - { "italian", "Italian", "Italiano", "CP1250", "it", true }, - { "korean", "Korean", "한국어", "CP949", "ko", true }, - { "polish", "Polish", "Polski", "CP1250", "pl", true }, - { "russian", "Russian", "Русский", "CP1251", "ru", true }, - { "spanish", "Spanish", "Español", "CP1252", "es", true }, - { "ukrainian", "Ukrainian", "Українська", "CP1251", "uk", true }, + { "czech", "Czech", "Čeština", "CP1250", "cs", true }, + { "chinese", "Chinese", "简体中文", "GBK", "zh", true }, // Note: actually Simplified Chinese + { "english", "English", "English", "CP1252", "en", true }, + { "finnish", "Finnish", "Suomi", "CP1252", "fi", true }, + { "french", "French", "Français", "CP1252", "fr", true }, + { "german", "German", "Deutsch", "CP1252", "de", true }, + { "italian", "Italian", "Italiano", "CP1250", "it", true }, + { "korean", "Korean", "한국어", "CP949", "ko", true }, + { "polish", "Polish", "Polski", "CP1250", "pl", true }, + { "portuguese", "Portuguese", "Português", "CP1252", "pt", true }, // Note: actually Brazilian Portuguese + { "russian", "Russian", "Русский", "CP1251", "ru", true }, + { "spanish", "Spanish", "Español", "CP1252", "es", true }, + { "swedish", "Swedish", "Svenska", "CP1252", "sv", true }, + { "turkish", "Turkish", "Türkçe", "CP1254", "tr", true }, + { "ukrainian", "Ukrainian", "Українська", "CP1251", "uk", true }, { "other_cp1250", "Other (East European)", "", "CP1251", "", false }, { "other_cp1251", "Other (Cyrillic Script)", "", "CP1250", "", false },