summaryrefslogtreecommitdiffstats
path: root/ext/audiofile
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2004-01-19 15:45:55 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2004-01-19 15:45:55 +0000
commit22f4937e955a00d4fa099545ceb5523eafafd8a9 (patch)
tree323af199e73c709bd3f94c4e4ea3d344520fe119 /ext/audiofile
parentf83bd835e019c1f11adae83337bb9f00292b2365 (diff)
downloadgst-plugins-bad-22f4937e955a00d4fa099545ceb5523eafafd8a9.tar.gz
gst-plugins-bad-22f4937e955a00d4fa099545ceb5523eafafd8a9.tar.bz2
gst-plugins-bad-22f4937e955a00d4fa099545ceb5523eafafd8a9.zip
putting i18n in place for plugins
Original commit message from CVS: putting i18n in place for plugins
Diffstat (limited to 'ext/audiofile')
-rw-r--r--ext/audiofile/gstafsink.c7
-rw-r--r--ext/audiofile/gstafsrc.c8
2 files changed, 13 insertions, 2 deletions
diff --git a/ext/audiofile/gstafsink.c b/ext/audiofile/gstafsink.c
index 26d71cd3..9cd134e5 100644
--- a/ext/audiofile/gstafsink.c
+++ b/ext/audiofile/gstafsink.c
@@ -278,7 +278,12 @@ gst_afsink_plugin_init (GstPlugin *plugin)
{
if (!gst_element_register (plugin, "afsink", GST_RANK_NONE, GST_TYPE_AFSINK))
return FALSE;
-
+#ifdef ENABLE_NLS
+ setlocale (LC_ALL, "");
+ bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+ textdomain (GETTEXT_PACKAGE);
+#endif /* ENABLE_NLS */
+
return TRUE;
}
diff --git a/ext/audiofile/gstafsrc.c b/ext/audiofile/gstafsrc.c
index dc32d0c9..bffff45a 100644
--- a/ext/audiofile/gstafsrc.c
+++ b/ext/audiofile/gstafsrc.c
@@ -295,7 +295,13 @@ gst_afsrc_plugin_init (GstPlugin *plugin)
if (!gst_element_register (plugin, "afsrc", GST_RANK_NONE, GST_TYPE_AFSRC))
return FALSE;
-
+
+#ifdef ENABLE_NLS
+ setlocale (LC_ALL, "");
+ bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+ textdomain (GETTEXT_PACKAGE);
+#endif /* ENABLE_NLS */
+
return TRUE;
}