diff src/bar_keywords.c @ 1471:65a5c27823c2

update translated pane titles
author nadvornik
date Sat, 21 Mar 2009 17:47:50 +0000
parents 607c60506863
children 0e82a03c165b
line wrap: on
line diff
--- a/src/bar_keywords.c	Fri Mar 20 22:48:01 2009 +0000
+++ b/src/bar_keywords.c	Sat Mar 21 17:47:50 2009 +0000
@@ -1350,7 +1350,7 @@
 GtkWidget *bar_pane_keywords_new_from_config(const gchar **attribute_names, const gchar **attribute_values)
 {
 	gchar *id = g_strdup("keywords");
-	gchar *title = g_strdup(_("Keywords"));
+	gchar *title = NULL;
 	gchar *key = g_strdup(COMMENT_KEY);
 	gboolean expanded = TRUE;
 	GtkWidget *ret;
@@ -1369,6 +1369,7 @@
 		log_printf("unknown attribute %s = %s\n", option, value);
 		}
 	
+	bar_pane_translate_title(PANE_KEYWORDS, id, &title);
 	ret = bar_pane_keywords_new(id, title, key, expanded);
 	g_free(id);
 	g_free(title);
@@ -1401,6 +1402,7 @@
 
 	if (title)
 		{
+		bar_pane_translate_title(PANE_KEYWORDS, pkd->pane.id, &title);
 		gtk_label_set_text(GTK_LABEL(pkd->pane.title), title);
 		g_free(title);
 		}