summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/resindvd/plugin.c9
-rw-r--r--ext/resindvd/resindvdsrc.c3
-rw-r--r--ext/twolame/gsttwolame.c1
3 files changed, 10 insertions, 3 deletions
diff --git a/ext/resindvd/plugin.c b/ext/resindvd/plugin.c
index bc0a9640..33b95003 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 7f07f0bf..bf4d033d 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"
diff --git a/ext/twolame/gsttwolame.c b/ext/twolame/gsttwolame.c
index 3700aa35..81b865bf 100644
--- a/ext/twolame/gsttwolame.c
+++ b/ext/twolame/gsttwolame.c
@@ -1024,6 +1024,7 @@ plugin_init (GstPlugin * plugin)
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 /* ENABLE_NLS */
if (!gst_element_register (plugin, "twolame", GST_RANK_NONE,