summary refs log tree commit diff stats
path: root/src/fe-gtk/setup.c
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-10-18 22:57:55 +0200
committerBerke Viktor <bviktor@hexchat.org>2012-10-18 22:57:55 +0200
commit9abfecf05efdc2eea8e374df251b6fede31881f3 (patch)
treee610dc3dc6a8b765a4ee38b35db0812d37c6e043 /src/fe-gtk/setup.c
parentb686a24d3b39d08d0ff7515fbbe58003708cd964 (diff)
Hardcoded dropdown menu for language selection
Diffstat (limited to 'src/fe-gtk/setup.c')
-rw-r--r--src/fe-gtk/setup.c50
1 files changed, 49 insertions, 1 deletions
diff --git a/src/fe-gtk/setup.c b/src/fe-gtk/setup.c
index b664e008..2e167d5e 100644
--- a/src/fe-gtk/setup.c
+++ b/src/fe-gtk/setup.c
@@ -99,12 +99,60 @@ typedef struct
 	int extra;
 } setting;
 
+static const char *const langsmenu[] =
+{
+	N_("Albanian"),
+	N_("Amharic"),
+	N_("Azerbaijani"),
+	N_("Basque"),
+	N_("Belarusian"),
+	N_("Bulgarian"),
+	N_("Catalan"),
+	N_("Chinese (Simplified)"),
+	N_("Chinese (Traditional)"),
+	N_("Czech"),
+	N_("Dutch"),
+	N_("English (UK)"),
+	N_("English (US)"),
+	N_("Estonian"),
+	N_("Finnish"),
+	N_("French"),
+	N_("Galician"),
+	N_("German"),
+	N_("Greek"),
+	N_("Hindi"),
+	N_("Hungarian"),
+	N_("Italian"),
+	N_("Japanese"),
+	N_("Kannada"),
+	N_("Korean"),
+	N_("Latvian"),
+	N_("Lithuanian"),
+	N_("Macedonian"),
+	N_("Malay"),
+	N_("Norwegian"),
+	N_("Polish"),
+	N_("Portuguese"),
+	N_("Portuguese (Brazilian)"),
+	N_("Punjabi"),
+	N_("Russian"),
+	N_("Serbian"),
+	N_("Slovak"),
+	N_("Slovenian"),
+	N_("Spanish"),
+	N_("Swedish"),
+	N_("Thai"),
+	N_("Ukrainian"),
+	N_("Vietnamese"),
+	N_("Walloon"),
+	NULL
+};
 
 static const setting appearance_settings[] =
 {
 #ifdef WIN32
 	{ST_HEADER,	N_("Localization"),0,0,0},
-	{ST_ENTRY,  N_("HexChat language:"), P_OFFSETNL(gui_lang), 0, 0, sizeof prefs.gui_lang},
+	{ST_MENU,  N_("Interface language:"), P_OFFINTNL(gui_lang), 0, langsmenu, 0},
 #endif
 	{ST_HEADER,	N_("Text Box"),0,0,0},
 #ifdef WIN32