diff src/xs_fileinfo.c @ 424:faf12767a6f1

Preparing for internationalization.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 31 Dec 2006 21:43:04 +0000
parents d2e6682d3ef8
children d787dae8c043
line wrap: on
line diff
--- a/src/xs_fileinfo.c	Sat Dec 30 07:40:05 2006 +0000
+++ b/src/xs_fileinfo.c	Sun Dec 31 21:43:04 2006 +0000
@@ -73,7 +73,7 @@
 }
 
 
-void xs_fileinfo_setsong(void)
+static void xs_fileinfo_setsong(void)
 {
 	gint n;
 
@@ -115,7 +115,7 @@
 
 
 
-void xs_fileinfo_subtune(GtkWidget * widget, void *data)
+static void xs_fileinfo_subtune(GtkWidget * widget, void *data)
 {
 	t_xs_stil_subnode *tmpNode;
 	GtkWidget *tmpItem, *tmpText;
@@ -167,7 +167,6 @@
 	GtkWidget *tmpMenuItem, *tmpMenu, *tmpOptionMenu;
 	t_xs_tuneinfo *tmpInfo;
 	t_xs_stil_subnode *tmpNode;
-	gchar tmpStr[64];
 	gint n;
 
 	/* Current implementation leaves old fileinfo window untouched if
@@ -216,15 +215,16 @@
 	tmpOptionMenu = LUW("fileinfo_sub_tune");
 	tmpMenu = GTK_OPTION_MENU(tmpOptionMenu)->menu;
 
-	tmpMenuItem = gtk_menu_item_new_with_label("General info");
+	tmpMenuItem = gtk_menu_item_new_with_label(_("General info"));
 	gtk_widget_show(tmpMenuItem);
 	gtk_menu_append(GTK_MENU(tmpMenu), tmpMenuItem);
 	gtk_signal_connect(GTK_OBJECT(tmpMenuItem), "activate", GTK_SIGNAL_FUNC(xs_fileinfo_subtune), tmpMenu);
 
 	/* Other menu items */
 	for (n = 1; n <= tmpInfo->nsubTunes; n++) {
+		gchar tmpStr[64];
 		if (xs_fileinfostil) {
-			g_snprintf(tmpStr, sizeof(tmpStr), "Tune #%i: ", n);
+			g_snprintf(tmpStr, sizeof(tmpStr), _("Tune #%i: "), n);
 			
 			tmpNode = xs_fileinfostil->subTunes[n];
 			
@@ -235,7 +235,7 @@
 			else
 				xs_pnstrcat(tmpStr, sizeof(tmpStr), "---");
 		} else {
-			g_snprintf(tmpStr, sizeof(tmpStr), "Tune #%i", n);
+			g_snprintf(tmpStr, sizeof(tmpStr), _("Tune #%i"), n);
 		}
 
 		tmpMenuItem = gtk_menu_item_new_with_label(tmpStr);