Windows: Add installer language support for rest of the translations (#1160)

Currently there are a lot of translated strings that are never seen
anywhere as the installer doesn't offer all the available languages
as options in the installer wizard (sans Burmese).
This commit is contained in:
Jertzukka 2023-07-29 17:31:40 +03:00 committed by GitHub
parent be5c28c481
commit 9b29eadc41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 156 additions and 0 deletions

View File

@ -86,6 +86,32 @@ IDR_LANG_RU LANGUAGES "..\\..\\Translations\\Language.
IDR_LANG_VI LANGUAGES "..\\..\\Translations\\Language.vi.xml" IDR_LANG_VI LANGUAGES "..\\..\\Translations\\Language.vi.xml"
IDR_LANG_ZHCN LANGUAGES "..\\..\\Translations\\Language.zh-cn.xml" IDR_LANG_ZHCN LANGUAGES "..\\..\\Translations\\Language.zh-cn.xml"
IDR_LANG_ZHHK LANGUAGES "..\\..\\Translations\\Language.zh-hk.xml" IDR_LANG_ZHHK LANGUAGES "..\\..\\Translations\\Language.zh-hk.xml"
IDR_LANG_BE LANGUAGES "..\\..\\Translations\\Language.be.xml"
IDR_LANG_BG LANGUAGES "..\\..\\Translations\\Language.bg.xml"
IDR_LANG_CA LANGUAGES "..\\..\\Translations\\Language.ca.xml"
IDR_LANG_CO LANGUAGES "..\\..\\Translations\\Language.co.xml"
IDR_LANG_DA LANGUAGES "..\\..\\Translations\\Language.da.xml"
IDR_LANG_EL LANGUAGES "..\\..\\Translations\\Language.el.xml"
IDR_LANG_ET LANGUAGES "..\\..\\Translations\\Language.et.xml"
IDR_LANG_EU LANGUAGES "..\\..\\Translations\\Language.eu.xml"
IDR_LANG_FA LANGUAGES "..\\..\\Translations\\Language.fa.xml"
IDR_LANG_FI LANGUAGES "..\\..\\Translations\\Language.fi.xml"
IDR_LANG_HE LANGUAGES "..\\..\\Translations\\Language.he.xml"
IDR_LANG_HU LANGUAGES "..\\..\\Translations\\Language.hu.xml"
IDR_LANG_ID LANGUAGES "..\\..\\Translations\\Language.id.xml"
IDR_LANG_KA LANGUAGES "..\\..\\Translations\\Language.ka.xml"
IDR_LANG_KO LANGUAGES "..\\..\\Translations\\Language.ko.xml"
IDR_LANG_LV LANGUAGES "..\\..\\Translations\\Language.lv.xml"
IDR_LANG_NN LANGUAGES "..\\..\\Translations\\Language.nn.xml"
IDR_LANG_PTBR LANGUAGES "..\\..\\Translations\\Language.pt-br.xml"
IDR_LANG_SK LANGUAGES "..\\..\\Translations\\Language.sk.xml"
IDR_LANG_SL LANGUAGES "..\\..\\Translations\\Language.sl.xml"
IDR_LANG_SV LANGUAGES "..\\..\\Translations\\Language.sv.xml"
IDR_LANG_TH LANGUAGES "..\\..\\Translations\\Language.th.xml"
IDR_LANG_TR LANGUAGES "..\\..\\Translations\\Language.tr.xml"
IDR_LANG_UK LANGUAGES "..\\..\\Translations\\Language.uk.xml"
IDR_LANG_UZ LANGUAGES "..\\..\\Translations\\Language.uz.xml"
IDR_LANG_ZHTW LANGUAGES "..\\..\\Translations\\Language.zh-tw.xml"
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// //

View File

@ -17,6 +17,32 @@
#define IDR_LANG_VI 31 #define IDR_LANG_VI 31
#define IDR_LANG_ZHCN 32 #define IDR_LANG_ZHCN 32
#define IDR_LANG_ZHHK 33 #define IDR_LANG_ZHHK 33
#define IDR_LANG_BE 34
#define IDR_LANG_BG 35
#define IDR_LANG_CA 36
#define IDR_LANG_CO 37
#define IDR_LANG_DA 38
#define IDR_LANG_EL 39
#define IDR_LANG_ET 40
#define IDR_LANG_EU 41
#define IDR_LANG_FA 42
#define IDR_LANG_FI 43
#define IDR_LANG_HE 44
#define IDR_LANG_HU 45
#define IDR_LANG_ID 46
#define IDR_LANG_KA 47
#define IDR_LANG_KO 48
#define IDR_LANG_LV 49
#define IDR_LANG_NN 50
#define IDR_LANG_PTBR 51
#define IDR_LANG_SK 52
#define IDR_LANG_SL 53
#define IDR_LANG_SV 54
#define IDR_LANG_TH 55
#define IDR_LANG_TR 56
#define IDR_LANG_UK 57
#define IDR_LANG_UZ 58
#define IDR_LANG_ZHTW 59
#define IDD_INSTALL 101 #define IDD_INSTALL 101
#define IDD_INSTALL_OPTIONS_PAGE_DLG 102 #define IDD_INSTALL_OPTIONS_PAGE_DLG 102
#define IDD_UNINSTALL 103 #define IDD_UNINSTALL 103

View File

@ -2580,20 +2580,46 @@ typedef struct
static tLanguageEntry g_languagesEntries[] = { static tLanguageEntry g_languagesEntries[] = {
{L"العربية", IDR_LANG_AR, LANG_ARABIC, "ar", NULL}, {L"العربية", IDR_LANG_AR, LANG_ARABIC, "ar", NULL},
{L"Беларуская", IDR_LANG_BE, LANG_BELARUSIAN, "be", NULL},
{L"Български", IDR_LANG_BG, LANG_BULGARIAN, "bg", NULL},
{L"Català", IDR_LANG_CA, LANG_CATALAN, "ca", NULL},
{L"Corsu", IDR_LANG_CO, LANG_CORSICAN, "co", NULL},
{L"Čeština", IDR_LANG_CS, LANG_CZECH, "cs", NULL}, {L"Čeština", IDR_LANG_CS, LANG_CZECH, "cs", NULL},
{L"Dansk", IDR_LANG_DA, LANG_DANISH, "da", NULL},
{L"Deutsch", IDR_LANG_DE, LANG_GERMAN, "de", NULL}, {L"Deutsch", IDR_LANG_DE, LANG_GERMAN, "de", NULL},
{L"Ελληνικά", IDR_LANG_EL, LANG_GREEK, "el", NULL},
{L"English", IDR_LANGUAGE, LANG_ENGLISH, "en", NULL}, {L"English", IDR_LANGUAGE, LANG_ENGLISH, "en", NULL},
{L"Español", IDR_LANG_ES, LANG_SPANISH, "es", NULL}, {L"Español", IDR_LANG_ES, LANG_SPANISH, "es", NULL},
{L"Eesti", IDR_LANG_ET, LANG_ESTONIAN, "et", NULL},
{L"Euskara", IDR_LANG_EU, LANG_BASQUE, "eu", NULL},
{L"فارسي", IDR_LANG_FA, LANG_PERSIAN, "fa", NULL},
{L"Suomi", IDR_LANG_FI, LANG_FINNISH, "fi", NULL},
{L"Français", IDR_LANG_FR, LANG_FRENCH, "fr", NULL}, {L"Français", IDR_LANG_FR, LANG_FRENCH, "fr", NULL},
{L"עברית", IDR_LANG_HE, LANG_HEBREW, "he", NULL},
{L"Magyar", IDR_LANG_HU, LANG_HUNGARIAN, "hu", NULL},
{L"Bahasa Indonesia", IDR_LANG_ID, LANG_INDONESIAN, "id", NULL},
{L"Italiano", IDR_LANG_IT, LANG_ITALIAN, "it", NULL}, {L"Italiano", IDR_LANG_IT, LANG_ITALIAN, "it", NULL},
{L"日本語", IDR_LANG_JA, LANG_JAPANESE, "ja", NULL}, {L"日本語", IDR_LANG_JA, LANG_JAPANESE, "ja", NULL},
{L"ქართული", IDR_LANG_KA, LANG_GEORGIAN, "ka", NULL},
{L"한국어", IDR_LANG_KO, LANG_KOREAN, "ko", NULL},
{L"Latviešu", IDR_LANG_LV, LANG_LATVIAN, "lv", NULL},
{L"Nederlands", IDR_LANG_NL, LANG_DUTCH, "nl", NULL}, {L"Nederlands", IDR_LANG_NL, LANG_DUTCH, "nl", NULL},
{L"Norsk Nynorsk", IDR_LANG_NN, LANG_NORWEGIAN, "nn", NULL},
{L"Polski", IDR_LANG_PL, LANG_POLISH, "pl", NULL}, {L"Polski", IDR_LANG_PL, LANG_POLISH, "pl", NULL},
{L"Română", IDR_LANG_RO, LANG_ROMANIAN, "ro", NULL}, {L"Română", IDR_LANG_RO, LANG_ROMANIAN, "ro", NULL},
{L"Русский", IDR_LANG_RU, LANG_RUSSIAN, "ru", NULL}, {L"Русский", IDR_LANG_RU, LANG_RUSSIAN, "ru", NULL},
{L"Português-Brasil", IDR_LANG_PTBR, LANG_PORTUGUESE, "pt-br", L"pt-BR"},
{L"Slovenčina", IDR_LANG_SK, LANG_SLOVAK, "sk", NULL},
{L"Slovenščina", IDR_LANG_SL, LANG_SLOVENIAN, "sl", NULL},
{L"Svenska", IDR_LANG_SV, LANG_SWEDISH, "sv", NULL},
{L"ภาษาไทย", IDR_LANG_TH, LANG_THAI, "th", NULL},
{L"Türkçe", IDR_LANG_TR, LANG_TURKISH, "tr", NULL},
{L"Українська", IDR_LANG_UK, LANG_UKRAINIAN, "uk", NULL},
{L"Ўзбекча", IDR_LANG_UZ, LANG_UZBEK, "uz", NULL},
{L"Tiếng Việt", IDR_LANG_VI, LANG_VIETNAMESE, "vi", NULL}, {L"Tiếng Việt", IDR_LANG_VI, LANG_VIETNAMESE, "vi", NULL},
{L"简体中文", IDR_LANG_ZHCN, LANG_CHINESE, "zh-cn", L"zh-CN"}, {L"简体中文", IDR_LANG_ZHCN, LANG_CHINESE, "zh-cn", L"zh-CN"},
{L"繁體中文", IDR_LANG_ZHHK, LANG_CHINESE, "zh-hk", L"zh-HK"}, {L"繁體中文", IDR_LANG_ZHHK, LANG_CHINESE, "zh-hk", L"zh-HK"},
{L"繁體中文", IDR_LANG_ZHTW, LANG_CHINESE, "zh-tw", L"zh-TW"},
}; };
typedef int (WINAPI *LCIDToLocaleNameFn)( typedef int (WINAPI *LCIDToLocaleNameFn)(

View File

@ -93,6 +93,32 @@ IDR_LANG_RU LANGUAGES "..\\..\\Translations\\Language.
IDR_LANG_VI LANGUAGES "..\\..\\Translations\\Language.vi.xml" IDR_LANG_VI LANGUAGES "..\\..\\Translations\\Language.vi.xml"
IDR_LANG_ZHCN LANGUAGES "..\\..\\Translations\\Language.zh-cn.xml" IDR_LANG_ZHCN LANGUAGES "..\\..\\Translations\\Language.zh-cn.xml"
IDR_LANG_ZHHK LANGUAGES "..\\..\\Translations\\Language.zh-hk.xml" IDR_LANG_ZHHK LANGUAGES "..\\..\\Translations\\Language.zh-hk.xml"
IDR_LANG_BE LANGUAGES "..\\..\\Translations\\Language.be.xml"
IDR_LANG_BG LANGUAGES "..\\..\\Translations\\Language.bg.xml"
IDR_LANG_CA LANGUAGES "..\\..\\Translations\\Language.ca.xml"
IDR_LANG_CO LANGUAGES "..\\..\\Translations\\Language.co.xml"
IDR_LANG_DA LANGUAGES "..\\..\\Translations\\Language.da.xml"
IDR_LANG_EL LANGUAGES "..\\..\\Translations\\Language.el.xml"
IDR_LANG_ET LANGUAGES "..\\..\\Translations\\Language.et.xml"
IDR_LANG_EU LANGUAGES "..\\..\\Translations\\Language.eu.xml"
IDR_LANG_FA LANGUAGES "..\\..\\Translations\\Language.fa.xml"
IDR_LANG_FI LANGUAGES "..\\..\\Translations\\Language.fi.xml"
IDR_LANG_HE LANGUAGES "..\\..\\Translations\\Language.he.xml"
IDR_LANG_HU LANGUAGES "..\\..\\Translations\\Language.hu.xml"
IDR_LANG_ID LANGUAGES "..\\..\\Translations\\Language.id.xml"
IDR_LANG_KA LANGUAGES "..\\..\\Translations\\Language.ka.xml"
IDR_LANG_KO LANGUAGES "..\\..\\Translations\\Language.ko.xml"
IDR_LANG_LV LANGUAGES "..\\..\\Translations\\Language.lv.xml"
IDR_LANG_NN LANGUAGES "..\\..\\Translations\\Language.nn.xml"
IDR_LANG_PTBR LANGUAGES "..\\..\\Translations\\Language.pt-br.xml"
IDR_LANG_SK LANGUAGES "..\\..\\Translations\\Language.sk.xml"
IDR_LANG_SL LANGUAGES "..\\..\\Translations\\Language.sl.xml"
IDR_LANG_SV LANGUAGES "..\\..\\Translations\\Language.sv.xml"
IDR_LANG_TH LANGUAGES "..\\..\\Translations\\Language.th.xml"
IDR_LANG_TR LANGUAGES "..\\..\\Translations\\Language.tr.xml"
IDR_LANG_UK LANGUAGES "..\\..\\Translations\\Language.uk.xml"
IDR_LANG_UZ LANGUAGES "..\\..\\Translations\\Language.uz.xml"
IDR_LANG_ZHTW LANGUAGES "..\\..\\Translations\\Language.zh-tw.xml"
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// //

View File

@ -17,6 +17,32 @@
#define IDR_LANG_VI 31 #define IDR_LANG_VI 31
#define IDR_LANG_ZHCN 32 #define IDR_LANG_ZHCN 32
#define IDR_LANG_ZHHK 33 #define IDR_LANG_ZHHK 33
#define IDR_LANG_BE 34
#define IDR_LANG_BG 35
#define IDR_LANG_CA 36
#define IDR_LANG_CO 37
#define IDR_LANG_DA 38
#define IDR_LANG_EL 39
#define IDR_LANG_ET 40
#define IDR_LANG_EU 41
#define IDR_LANG_FA 42
#define IDR_LANG_FI 43
#define IDR_LANG_HE 44
#define IDR_LANG_HU 45
#define IDR_LANG_ID 46
#define IDR_LANG_KA 47
#define IDR_LANG_KO 48
#define IDR_LANG_LV 49
#define IDR_LANG_NN 50
#define IDR_LANG_PTBR 51
#define IDR_LANG_SK 52
#define IDR_LANG_SL 53
#define IDR_LANG_SV 54
#define IDR_LANG_TH 55
#define IDR_LANG_TR 56
#define IDR_LANG_UK 57
#define IDR_LANG_UZ 58
#define IDR_LANG_ZHTW 59
#define IDD_INSTALL 101 #define IDD_INSTALL 101
#define IDD_INSTALL_OPTIONS_PAGE_DLG 102 #define IDD_INSTALL_OPTIONS_PAGE_DLG 102
#define IDD_UNINSTALL 103 #define IDD_UNINSTALL 103

View File

@ -93,6 +93,32 @@ IDR_LANG_RU LANGUAGES "..\\..\\Translations\\Language.
IDR_LANG_VI LANGUAGES "..\\..\\Translations\\Language.vi.xml" IDR_LANG_VI LANGUAGES "..\\..\\Translations\\Language.vi.xml"
IDR_LANG_ZHCN LANGUAGES "..\\..\\Translations\\Language.zh-cn.xml" IDR_LANG_ZHCN LANGUAGES "..\\..\\Translations\\Language.zh-cn.xml"
IDR_LANG_ZHHK LANGUAGES "..\\..\\Translations\\Language.zh-hk.xml" IDR_LANG_ZHHK LANGUAGES "..\\..\\Translations\\Language.zh-hk.xml"
IDR_LANG_BE LANGUAGES "..\\..\\Translations\\Language.be.xml"
IDR_LANG_BG LANGUAGES "..\\..\\Translations\\Language.bg.xml"
IDR_LANG_CA LANGUAGES "..\\..\\Translations\\Language.ca.xml"
IDR_LANG_CO LANGUAGES "..\\..\\Translations\\Language.co.xml"
IDR_LANG_DA LANGUAGES "..\\..\\Translations\\Language.da.xml"
IDR_LANG_EL LANGUAGES "..\\..\\Translations\\Language.el.xml"
IDR_LANG_ET LANGUAGES "..\\..\\Translations\\Language.et.xml"
IDR_LANG_EU LANGUAGES "..\\..\\Translations\\Language.eu.xml"
IDR_LANG_FA LANGUAGES "..\\..\\Translations\\Language.fa.xml"
IDR_LANG_FI LANGUAGES "..\\..\\Translations\\Language.fi.xml"
IDR_LANG_HE LANGUAGES "..\\..\\Translations\\Language.he.xml"
IDR_LANG_HU LANGUAGES "..\\..\\Translations\\Language.hu.xml"
IDR_LANG_ID LANGUAGES "..\\..\\Translations\\Language.id.xml"
IDR_LANG_KA LANGUAGES "..\\..\\Translations\\Language.ka.xml"
IDR_LANG_KO LANGUAGES "..\\..\\Translations\\Language.ko.xml"
IDR_LANG_LV LANGUAGES "..\\..\\Translations\\Language.lv.xml"
IDR_LANG_NN LANGUAGES "..\\..\\Translations\\Language.nn.xml"
IDR_LANG_PTBR LANGUAGES "..\\..\\Translations\\Language.pt-br.xml"
IDR_LANG_SK LANGUAGES "..\\..\\Translations\\Language.sk.xml"
IDR_LANG_SL LANGUAGES "..\\..\\Translations\\Language.sl.xml"
IDR_LANG_SV LANGUAGES "..\\..\\Translations\\Language.sv.xml"
IDR_LANG_TH LANGUAGES "..\\..\\Translations\\Language.th.xml"
IDR_LANG_TR LANGUAGES "..\\..\\Translations\\Language.tr.xml"
IDR_LANG_UK LANGUAGES "..\\..\\Translations\\Language.uk.xml"
IDR_LANG_UZ LANGUAGES "..\\..\\Translations\\Language.uz.xml"
IDR_LANG_ZHTW LANGUAGES "..\\..\\Translations\\Language.zh-tw.xml"
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
// //