pulsesink: Initialize gettext for the translated strings in plugin_init()

This commit is contained in:
Sebastian Dröge 2009-10-17 08:55:16 +02:00
parent 89b0c2fc4f
commit 92fd59024b

View file

@ -23,6 +23,8 @@
#include "config.h"
#endif
#include <gst/gst-i18n-plugin.h>
#include "pulsesink.h"
#include "pulsesrc.h"
#include "pulsemixer.h"
@ -32,6 +34,12 @@ GST_DEBUG_CATEGORY (pulse_debug);
static gboolean
plugin_init (GstPlugin * plugin)
{
#if 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
if (!gst_element_register (plugin, "pulsesink", GST_RANK_PRIMARY,
GST_TYPE_PULSESINK))