From 9abfecf05efdc2eea8e374df251b6fede31881f3 Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Thu, 18 Oct 2012 22:57:55 +0200 Subject: Hardcoded dropdown menu for language selection --- src/fe-gtk/setup.c | 50 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) (limited to 'src/fe-gtk/setup.c') 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 -- cgit 1.4.1