? petch
? audio-properties-view/patch
? audio-properties-view/semantic.cache
? media-info/fixdecl.diff
Index: audio-properties-view/audio-properties-view.c
===================================================================
RCS file: /cvs/gnome/nautilus-media/audio-properties-view/audio-properties-view.c,v
retrieving revision 1.9
diff -u -r1.9 audio-properties-view.c
--- audio-properties-view/audio-properties-view.c	22 Jan 2003 11:01:19 -0000	1.9
+++ audio-properties-view/audio-properties-view.c	13 Jan 2004 02:23:27 -0000
@@ -186,6 +186,8 @@
 	GstMediaInfoTrack *track = NULL;
 	gchar *string = NULL;
 	gchar *c_string = NULL;
+	gchar *min_string = NULL;
+	gchar *sec_string = NULL;
 	gint channels;
 	gint min, sec, msec;
 
@@ -238,7 +240,8 @@
 	if (channels == 1) c_string = g_strdup (_("mono"));
 	else if (channels == 2) c_string = g_strdup (_("stereo"));
 	else if (channels == 0) c_string = g_strdup (_("unknown"));
-	else c_string = g_strdup_printf (_("%d channels"), channels);
+ 	else c_string = g_strdup_printf (ngettext("%d channel","%d channels", channels), 
+ 					 channels);
 	string = g_strdup_printf ("%d Hz/%s/%d bit",
 			          apv_get_format_int (track, "rate"),
 				  c_string,
@@ -252,13 +255,22 @@
 	min = sec / 60;
 	sec %= 60;
 
-	gtk_label_set_text (GTK_LABEL (view->length),
-			    g_strdup_printf (_("%d minutes %02d.%03d seconds"),
-				             min, sec, msec));
+	min_string = g_strdup_printf(ngettext("%d minute", "%d minutes", min), min);
+	/* Translators: plural form depends on the decimal part */
+	sec_string = g_strdup_printf(ngettext("%02d.%03d seconds", "%02d.%03d seconds", msec), sec, msec);
+	/* Translators: this is composed of '%d minute' and '%02d.%03d seconds'; change order if needed */
+	c_string = g_strdup_printf (_("%1$s %2$s"), min_string, sec_string);
+
+	g_free(min_string);
+	g_free(sec_string);
+
+	gtk_label_set_text (GTK_LABEL (view->length), c_string);
 	/* FIXME: start heated argument about k = 10^3 or 2^10 */
 	gtk_label_set_text (GTK_LABEL (view->bitrate),
 			    g_strdup_printf ("%.3f kbps",
 				             (double) stream->bitrate / 1024));
+
+	g_free (c_string);
 }
 
 GtkWidget *
