Re: [Nautilus-list] small l18 patch



2000-12-13T20:32:47+0100, Martin Norbäck ->
> Patch to get the row titles correctly localized in the music view.

The patch was gcc specific (I think), here is a new one.

	n.

-- 
[ http://www.dtek.chalmers.se/~d95mback/ ] [ PGP: 0x453504F1 ] [ UIN: 4439498 ]
    Opinions expressed above are mine, and not those of my future employees.
<!-- If your reader parses HTML you won't see this, you stupid, ugly person -->
SIGBORE: Signature boring error, core dumped
Index: nautilus-music-view.c
===================================================================
RCS file: /cvs/gnome/nautilus/components/music/nautilus-music-view.c,v
retrieving revision 1.105
diff -u -w -r1.105 nautilus-music-view.c
--- nautilus-music-view.c	2000/12/13 04:06:11	1.105
+++ nautilus-music-view.c	2000/12/13 19:51:42
@@ -231,6 +231,7 @@
 	GtkWidget *button;
         /* FIXME: I think this is not portable. It works in gcc, but not other C compilers. */
 	char *titles[] = {N_("Track "), N_("Title"), N_("Artist"), N_("Year"), N_("Bitrate "), N_("Time "), N_("Album"),  N_("Comment"), N_("Channels"),  N_("Sample Rate"),};
+	int i;
 	
 	music_view->details = g_new0 (NautilusMusicViewDetails, 1);
 
@@ -263,6 +264,11 @@
 	gtk_box_pack_start (GTK_BOX (music_view->details->album_container), music_view->details->album_title, FALSE, FALSE, 0);	
 	gtk_widget_show (music_view->details->album_title);
 	
+        /* Localize the titles */
+        for (i = 0; i < 10; i++) {
+		titles[i] = _(titles[i]);
+	}
+
 	/* allocate a list widget to hold the song list */
 	music_view->details->song_list = gtk_clist_new_with_titles (10, titles);
 		


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]