Add support for new languages in the language selector
This commit is contained in:
parent
89cf271024
commit
d90ae8012a
|
@ -963,141 +963,163 @@ main (int argc, char *argv[])
|
||||||
/* we MUST do this after load_config () AND before fe_init (thus gtk_init) otherwise it will fail */
|
/* we MUST do this after load_config () AND before fe_init (thus gtk_init) otherwise it will fail */
|
||||||
strcpy (hexchat_lang, "LC_ALL=");
|
strcpy (hexchat_lang, "LC_ALL=");
|
||||||
|
|
||||||
|
/* this must be ordered EXACTLY as langsmenu[] */
|
||||||
switch (prefs.gui_lang)
|
switch (prefs.gui_lang)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
strcat (hexchat_lang, "sq");
|
strcat (hexchat_lang, "af");
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
strcat (hexchat_lang, "am");
|
strcat (hexchat_lang, "sq");
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
strcat (hexchat_lang, "az");
|
strcat (hexchat_lang, "am");
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
strcat (hexchat_lang, "eu");
|
strcat (hexchat_lang, "ast");
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
strcat (hexchat_lang, "be");
|
strcat (hexchat_lang, "az");
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
strcat (hexchat_lang, "bg");
|
strcat (hexchat_lang, "eu");
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
strcat (hexchat_lang, "ca");
|
strcat (hexchat_lang, "be");
|
||||||
break;
|
break;
|
||||||
case 7:
|
case 7:
|
||||||
strcat (hexchat_lang, "zh_CN");
|
strcat (hexchat_lang, "bg");
|
||||||
break;
|
break;
|
||||||
case 8:
|
case 8:
|
||||||
strcat (hexchat_lang, "zh_TW");
|
strcat (hexchat_lang, "ca");
|
||||||
break;
|
break;
|
||||||
case 9:
|
case 9:
|
||||||
strcat (hexchat_lang, "cs");
|
strcat (hexchat_lang, "zh_CN");
|
||||||
break;
|
break;
|
||||||
case 10:
|
case 10:
|
||||||
strcat (hexchat_lang, "nl");
|
strcat (hexchat_lang, "zh_TW");
|
||||||
break;
|
break;
|
||||||
case 11:
|
case 11:
|
||||||
strcat (hexchat_lang, "en_GB");
|
strcat (hexchat_lang, "cs");
|
||||||
break;
|
break;
|
||||||
case 12:
|
case 12:
|
||||||
strcat (hexchat_lang, "en_US");
|
strcat (hexchat_lang, "da");
|
||||||
break;
|
break;
|
||||||
case 13:
|
case 13:
|
||||||
strcat (hexchat_lang, "et");
|
strcat (hexchat_lang, "nl");
|
||||||
break;
|
break;
|
||||||
case 14:
|
case 14:
|
||||||
strcat (hexchat_lang, "fi");
|
strcat (hexchat_lang, "en_GB");
|
||||||
break;
|
break;
|
||||||
case 15:
|
case 15:
|
||||||
strcat (hexchat_lang, "fr");
|
strcat (hexchat_lang, "en_US");
|
||||||
break;
|
break;
|
||||||
case 16:
|
case 16:
|
||||||
strcat (hexchat_lang, "gl");
|
strcat (hexchat_lang, "et");
|
||||||
break;
|
break;
|
||||||
case 17:
|
case 17:
|
||||||
strcat (hexchat_lang, "de");
|
strcat (hexchat_lang, "fi");
|
||||||
break;
|
break;
|
||||||
case 18:
|
case 18:
|
||||||
strcat (hexchat_lang, "el");
|
strcat (hexchat_lang, "fr");
|
||||||
break;
|
break;
|
||||||
case 19:
|
case 19:
|
||||||
strcat (hexchat_lang, "hi");
|
strcat (hexchat_lang, "gl");
|
||||||
break;
|
break;
|
||||||
case 20:
|
case 20:
|
||||||
strcat (hexchat_lang, "hu_HU");
|
strcat (hexchat_lang, "de");
|
||||||
break;
|
break;
|
||||||
case 21:
|
case 21:
|
||||||
strcat (hexchat_lang, "it");
|
strcat (hexchat_lang, "el");
|
||||||
break;
|
break;
|
||||||
case 22:
|
case 22:
|
||||||
strcat (hexchat_lang, "ja");
|
strcat (hexchat_lang, "gu");
|
||||||
break;
|
break;
|
||||||
case 23:
|
case 23:
|
||||||
strcat (hexchat_lang, "kn");
|
strcat (hexchat_lang, "he");
|
||||||
break;
|
break;
|
||||||
case 24:
|
case 24:
|
||||||
strcat (hexchat_lang, "ko");
|
strcat (hexchat_lang, "hi");
|
||||||
break;
|
break;
|
||||||
case 25:
|
case 25:
|
||||||
strcat (hexchat_lang, "lv");
|
strcat (hexchat_lang, "hu_HU");
|
||||||
break;
|
break;
|
||||||
case 26:
|
case 26:
|
||||||
strcat (hexchat_lang, "lt");
|
strcat (hexchat_lang, "id");
|
||||||
break;
|
break;
|
||||||
case 27:
|
case 27:
|
||||||
strcat (hexchat_lang, "mk");
|
strcat (hexchat_lang, "it");
|
||||||
break;
|
break;
|
||||||
case 28:
|
case 28:
|
||||||
strcat (hexchat_lang, "ms");
|
strcat (hexchat_lang, "ja");
|
||||||
break;
|
break;
|
||||||
case 29:
|
case 29:
|
||||||
strcat (hexchat_lang, "nb");
|
strcat (hexchat_lang, "kn");
|
||||||
break;
|
break;
|
||||||
case 30:
|
case 30:
|
||||||
strcat (hexchat_lang, "no");
|
strcat (hexchat_lang, "rw");
|
||||||
break;
|
break;
|
||||||
case 31:
|
case 31:
|
||||||
strcat (hexchat_lang, "pl");
|
strcat (hexchat_lang, "ko");
|
||||||
break;
|
break;
|
||||||
case 32:
|
case 32:
|
||||||
strcat (hexchat_lang, "pt");
|
strcat (hexchat_lang, "lv");
|
||||||
break;
|
break;
|
||||||
case 33:
|
case 33:
|
||||||
strcat (hexchat_lang, "pt_BR");
|
strcat (hexchat_lang, "lt");
|
||||||
break;
|
break;
|
||||||
case 34:
|
case 34:
|
||||||
strcat (hexchat_lang, "pa");
|
strcat (hexchat_lang, "mk");
|
||||||
break;
|
break;
|
||||||
case 35:
|
case 35:
|
||||||
strcat (hexchat_lang, "ru");
|
strcat (hexchat_lang, "ms");
|
||||||
break;
|
break;
|
||||||
case 36:
|
case 36:
|
||||||
strcat (hexchat_lang, "sr");
|
strcat (hexchat_lang, "nb");
|
||||||
break;
|
break;
|
||||||
case 37:
|
case 37:
|
||||||
strcat (hexchat_lang, "sk");
|
strcat (hexchat_lang, "no");
|
||||||
break;
|
break;
|
||||||
case 38:
|
case 38:
|
||||||
strcat (hexchat_lang, "sl");
|
strcat (hexchat_lang, "pl");
|
||||||
break;
|
break;
|
||||||
case 39:
|
case 39:
|
||||||
strcat (hexchat_lang, "es");
|
strcat (hexchat_lang, "pt");
|
||||||
break;
|
break;
|
||||||
case 40:
|
case 40:
|
||||||
strcat (hexchat_lang, "sv");
|
strcat (hexchat_lang, "pt_BR");
|
||||||
break;
|
break;
|
||||||
case 41:
|
case 41:
|
||||||
strcat (hexchat_lang, "th");
|
strcat (hexchat_lang, "pa");
|
||||||
break;
|
break;
|
||||||
case 42:
|
case 42:
|
||||||
strcat (hexchat_lang, "uk");
|
strcat (hexchat_lang, "ru");
|
||||||
break;
|
break;
|
||||||
case 43:
|
case 43:
|
||||||
strcat (hexchat_lang, "vi");
|
strcat (hexchat_lang, "sr");
|
||||||
break;
|
break;
|
||||||
case 44:
|
case 44:
|
||||||
|
strcat (hexchat_lang, "sk");
|
||||||
|
break;
|
||||||
|
case 45:
|
||||||
|
strcat (hexchat_lang, "sl");
|
||||||
|
break;
|
||||||
|
case 46:
|
||||||
|
strcat (hexchat_lang, "es");
|
||||||
|
break;
|
||||||
|
case 47:
|
||||||
|
strcat (hexchat_lang, "sv");
|
||||||
|
break;
|
||||||
|
case 48:
|
||||||
|
strcat (hexchat_lang, "th");
|
||||||
|
break;
|
||||||
|
case 49:
|
||||||
|
strcat (hexchat_lang, "uk");
|
||||||
|
break;
|
||||||
|
case 50:
|
||||||
|
strcat (hexchat_lang, "vi");
|
||||||
|
break;
|
||||||
|
case 51:
|
||||||
strcat (hexchat_lang, "wa");
|
strcat (hexchat_lang, "wa");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -102,8 +102,10 @@ typedef struct
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
static const char *const langsmenu[] =
|
static const char *const langsmenu[] =
|
||||||
{
|
{
|
||||||
|
N_("Afrikaans"),
|
||||||
N_("Albanian"),
|
N_("Albanian"),
|
||||||
N_("Amharic"),
|
N_("Amharic"),
|
||||||
|
N_("Asturian"),
|
||||||
N_("Azerbaijani"),
|
N_("Azerbaijani"),
|
||||||
N_("Basque"),
|
N_("Basque"),
|
||||||
N_("Belarusian"),
|
N_("Belarusian"),
|
||||||
|
@ -112,6 +114,7 @@ static const char *const langsmenu[] =
|
||||||
N_("Chinese (Simplified)"),
|
N_("Chinese (Simplified)"),
|
||||||
N_("Chinese (Traditional)"),
|
N_("Chinese (Traditional)"),
|
||||||
N_("Czech"),
|
N_("Czech"),
|
||||||
|
N_("Danish"),
|
||||||
N_("Dutch"),
|
N_("Dutch"),
|
||||||
N_("English (UK)"),
|
N_("English (UK)"),
|
||||||
N_("English (US)"),
|
N_("English (US)"),
|
||||||
|
@ -121,11 +124,15 @@ static const char *const langsmenu[] =
|
||||||
N_("Galician"),
|
N_("Galician"),
|
||||||
N_("German"),
|
N_("German"),
|
||||||
N_("Greek"),
|
N_("Greek"),
|
||||||
|
N_("Gujarati"),
|
||||||
|
N_("Hebrew"),
|
||||||
N_("Hindi"),
|
N_("Hindi"),
|
||||||
N_("Hungarian"),
|
N_("Hungarian"),
|
||||||
|
N_("Indonesian"),
|
||||||
N_("Italian"),
|
N_("Italian"),
|
||||||
N_("Japanese"),
|
N_("Japanese"),
|
||||||
N_("Kannada"),
|
N_("Kannada"),
|
||||||
|
N_("Kinyarwanda"),
|
||||||
N_("Korean"),
|
N_("Korean"),
|
||||||
N_("Latvian"),
|
N_("Latvian"),
|
||||||
N_("Lithuanian"),
|
N_("Lithuanian"),
|
||||||
|
|
Loading…
Reference in New Issue