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 16:34:40 +0200
committerBerke Viktor <bviktor@hexchat.org>2012-10-18 16:34:40 +0200
commit5acd848f79b248511c298ae6321417e1488dc696 (patch)
treeeda7e2ef517d153a46c04debd189bf8edef23999 /src/fe-gtk/setup.c
parent4732505e3030574ccdacbefc1d0ef696813ff705 (diff)
Initial version of language selector GUI
Diffstat (limited to 'src/fe-gtk/setup.c')
-rw-r--r--src/fe-gtk/setup.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/fe-gtk/setup.c b/src/fe-gtk/setup.c
index fcc0a588..b664e008 100644
--- a/src/fe-gtk/setup.c
+++ b/src/fe-gtk/setup.c
@@ -100,9 +100,13 @@ typedef struct
 } setting;
 
 
-static const setting textbox_settings[] =
+static const setting appearance_settings[] =
 {
-	{ST_HEADER,	N_("Text Box Appearance"),0,0,0},
+#ifdef WIN32
+	{ST_HEADER,	N_("Localization"),0,0,0},
+	{ST_ENTRY,  N_("HexChat language:"), P_OFFSETNL(gui_lang), 0, 0, sizeof prefs.gui_lang},
+#endif
+	{ST_HEADER,	N_("Text Box"),0,0,0},
 #ifdef WIN32
 	{ST_EFONT,  N_("Main font:"), P_OFFSETNL(font_main), 0, 0, sizeof prefs.font_main},
 #else
@@ -1820,7 +1824,7 @@ setup_add_page (const char *title, GtkWidget *book, GtkWidget *tab)
 static const char *const cata[] =
 {
 	N_("Interface"),
-		N_("Text box"),
+		N_("Appearance"),
 		N_("Input box"),
 		N_("User list"),
 		N_("Channel switcher"),
@@ -1847,7 +1851,7 @@ setup_create_pages (GtkWidget *box)
 
 	book = gtk_notebook_new ();
 
-	setup_add_page (cata[1], book, setup_create_page (textbox_settings));
+	setup_add_page (cata[1], book, setup_create_page (appearance_settings));
 	setup_add_page (cata[2], book, setup_create_page (inputbox_settings));
 	setup_add_page (cata[3], book, setup_create_page (userlist_settings));
 	setup_add_page (cata[4], book, setup_create_page (tabs_settings));
@@ -2130,6 +2134,10 @@ setup_apply (struct xchatprefs *pr)
 
 #define DIFF(a) (pr->a != prefs.a)
 
+#ifdef WIN32
+	if (DIFF (gui_lang))
+		noapply = TRUE;
+#endif
 	if (DIFF (paned_userlist))
 		noapply = TRUE;
 	if (DIFF (lagometer))