curl: Add i18n

This commit is contained in:
Edward Hervey 2017-11-21 16:30:17 +01:00 committed by Edward Hervey
parent d4bf5aeae9
commit 69d794b004
2 changed files with 10 additions and 0 deletions

View file

@ -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))

View file

@ -77,6 +77,8 @@
#include <config.h>
#endif
#include <gst/gst-i18n-plugin.h>
#include "gstcurlhttpsrc.h"
#include "gstcurlqueue.h"
#include "gstcurldefaults.h"