diff options
Diffstat (limited to 'ext/curl')
-rw-r--r-- | ext/curl/gstcurl.c | 8 | ||||
-rw-r--r-- | ext/curl/gstcurlhttpsrc.c | 2 |
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" |