summaryrefslogtreecommitdiff
path: root/ext/curl
diff options
context:
space:
mode:
authorEdward Hervey <edward@centricular.com>2017-11-21 16:30:17 +0100
committerEdward Hervey <bilboed@bilboed.com>2017-11-21 16:30:17 +0100
commit69d794b004a3861cd5e9d7406553c1566bb832f1 (patch)
tree4433fb429136da2ec73d447400319d0026d1c853 /ext/curl
parentd4bf5aeae938c94a141f62aab2d0cbbba10a8306 (diff)
downloadgstreamer-plugins-bad-69d794b004a3861cd5e9d7406553c1566bb832f1.tar.gz
curl: Add i18n
Diffstat (limited to 'ext/curl')
-rw-r--r--ext/curl/gstcurl.c8
-rw-r--r--ext/curl/gstcurlhttpsrc.c2
2 files changed, 10 insertions, 0 deletions
diff --git a/ext/curl/gstcurl.c b/ext/curl/gstcurl.c
index c0dd76b5d..982c6e092 100644
--- a/ext/curl/gstcurl.c
+++ b/ext/curl/gstcurl.c
@@ -20,6 +20,8 @@
#include <config.h>
#endif
+#include <gst/gst-i18n-plugin.h>
+
#include "gstcurlbasesink.h"
#include "gstcurltlssink.h"
#include "gstcurlhttpsink.h"
@@ -34,6 +36,12 @@
static gboolean
plugin_init (GstPlugin * plugin)
{
+#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 /* ENABLE_NLS */
if (!gst_element_register (plugin, "curlhttpsink", GST_RANK_NONE,
GST_TYPE_CURL_HTTP_SINK))
diff --git a/ext/curl/gstcurlhttpsrc.c b/ext/curl/gstcurlhttpsrc.c
index 995b78d8f..3933c4559 100644
--- a/ext/curl/gstcurlhttpsrc.c
+++ b/ext/curl/gstcurlhttpsrc.c
@@ -77,6 +77,8 @@
#include <config.h>
#endif
+#include <gst/gst-i18n-plugin.h>
+
#include "gstcurlhttpsrc.h"
#include "gstcurlqueue.h"
#include "gstcurldefaults.h"