pulse: when constructing a stream title from tag data make sure it is translatable
authorLennart Poettering <lennart@poettering.net>
Fri, 16 Oct 2009 22:09:36 +0000 (00:09 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 17 Oct 2009 06:48:23 +0000 (08:48 +0200)
ext/pulse/pulsesink.c
po/POTFILES.in

index d84c49d..7303324 100644 (file)
@@ -49,6 +49,7 @@
 #include <gst/base/gstbasesink.h>
 #include <gst/gsttaglist.h>
 #include <gst/interfaces/streamvolume.h>
+#include <gst/gst-i18n-plugin.h>
 
 #include "pulsesink.h"
 #include "pulseutil.h"
@@ -2172,7 +2173,7 @@ gst_pulsesink_event (GstBaseSink * sink, GstEvent * event)
 
       if (title && artist)
         t = buf =
-            g_strdup_printf ("'%s' by '%s'", g_strstrip (title),
+            g_strdup_printf (_("'%s' by '%s'"), g_strstrip (title),
             g_strstrip (artist));
       else if (title)
         t = g_strstrip (title);
index 7ee3258..98253c4 100644 (file)
@@ -1,4 +1,5 @@
 ext/esd/esdsink.c
+ext/pulse/pulsesink.c
 ext/flac/gstflacdec.c
 ext/jpeg/gstjpegdec.c
 ext/libpng/gstpngdec.c