summaryrefslogtreecommitdiff
path: root/ext/resindvd
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2008-09-02 09:56:44 +0000
committerTim-Philipp Müller <tim@centricular.net>2008-09-02 09:56:44 +0000
commitb7276b6f7c7c304bde4f3de30f09af200b4b1275 (patch)
tree8691d95711bccf0602d32d3c8737890e04cd7f87 /ext/resindvd
parentd5e8bc1472e8a3f1b79361347166ac0cb8c944a5 (diff)
downloadgstreamer-plugins-bad-b7276b6f7c7c304bde4f3de30f09af200b4b1275.tar.gz
Enable/fix up translations for these plugins.
Original commit message from CVS: * ext/resindvd/plugin.c: (plugin_init): * ext/resindvd/resindvdsrc.c: * ext/twolame/gsttwolame.c: (plugin_init): * gst/aiffparse/aiffparse.c: (plugin_init): Enable/fix up translations for these plugins. * po/LINGUAS: Add 'ca' to LINGUAS. * po/POTFILES.in: * po/POTFILES.skip: Add more files for translation and more files which tools should skip.
Diffstat (limited to 'ext/resindvd')
-rw-r--r--ext/resindvd/plugin.c9
-rw-r--r--ext/resindvd/resindvdsrc.c3
2 files changed, 9 insertions, 3 deletions
diff --git a/ext/resindvd/plugin.c b/ext/resindvd/plugin.c
index bc0a9640b..33b95003b 100644
--- a/ext/resindvd/plugin.c
+++ b/ext/resindvd/plugin.c
@@ -24,8 +24,8 @@
#include <gst/gst.h>
#include "resindvdbin.h"
-
#include "gstmpegdemux.h"
+#include <gst/gst-i18n-plugin.h>
GST_DEBUG_CATEGORY (resindvd_debug);
#define GST_CAT_DEFAULT resindvd_debug
@@ -38,6 +38,13 @@ plugin_init (GstPlugin * plugin)
GST_DEBUG_CATEGORY_INIT (resindvd_debug, "resindvd elements",
0, "DVD playback elements from resindvd");
+#ifdef ENABLE_NLS
+ GST_DEBUG ("binding text domain %s to locale dir %s", GETTEXT_PACKAGE,
+ LOCALEDIR);
+ bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+#endif
+
result &= gst_element_register (plugin, "rsndvdbin",
GST_RANK_PRIMARY, RESIN_TYPE_DVDBIN);
diff --git a/ext/resindvd/resindvdsrc.c b/ext/resindvd/resindvdsrc.c
index 7f07f0bfb..bf4d033d1 100644
--- a/ext/resindvd/resindvdsrc.c
+++ b/ext/resindvd/resindvdsrc.c
@@ -24,8 +24,7 @@
#include <string.h>
#include <gst/gst.h>
-// #include <gst/gst-i18n-plugin.h>
-#define _(s) s /* FIXME - add i18n bits to build */
+#include <gst/gst-i18n-plugin.h>
#include "resindvdsrc.h"