ext/flac/gstflac.c: Call bindtextdomain() to get localized strings.
authorSebastian Dröge <slomo@circular-chaos.org>
Wed, 2 May 2007 18:01:52 +0000 (18:01 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Wed, 2 May 2007 18:01:52 +0000 (18:01 +0000)
Original commit message from CVS:
* ext/flac/gstflac.c: (plugin_init):
Call bindtextdomain() to get localized strings.

ChangeLog
ext/flac/gstflac.c

index 3d8fac2..fb6a18b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-05-02  Sebastian Dröge  <slomo@circular-chaos.org>
+
+       * ext/flac/gstflac.c: (plugin_init):
+       Call bindtextdomain() to get localized strings.
+
 2007-05-02  Wim Taymans  <wim@fluendo.com>
 
        * gst/wavparse/gstwavparse.c: (gst_wavparse_perform_seek),
index 2124182..d07ec47 100644 (file)
 /* #include "gstflactag.h" */
 
 #include <gst/tag/tag.h>
+#include <gst/gst-i18n-plugin.h>
 
 static gboolean
 plugin_init (GstPlugin * plugin)
 {
+#if ENABLE_NLS
+  GST_DEBUG ("binding text domain %s to locale dir %s", GETTEXT_PACKAGE,
+      LOCALEDIR);
+  bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+#endif
+
   if (!gst_element_register (plugin, "flacenc", GST_RANK_NONE,
           GST_TYPE_FLAC_ENC))
     return FALSE;