summaryrefslogtreecommitdiffstats
path: root/ext/sndfile
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/sndfile
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/sndfile')
-rw-r--r--ext/sndfile/gstsf.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/sndfile/gstsf.c b/ext/sndfile/gstsf.c
index 7c00cff2..18100d8c 100644
--- a/ext/sndfile/gstsf.c
+++ b/ext/sndfile/gstsf.c
@@ -790,7 +790,7 @@ gst_sf_loop (GstElement *element)
written = sf_writef_float (this->file, buf, num_to_write);
if (written != num_to_write)
gst_element_error (element, RESOURCE, WRITE,
- (_("Error while writing to file \"%s\""), this->filename),
+ (_("Could not write to file \"%s\""), this->filename),
("soundfile error: %s", sf_strerror (this->file)));
}
@@ -818,6 +818,12 @@ plugin_init (GstPlugin *plugin)
if (!gst_element_register (plugin, "sfsink", GST_RANK_NONE, GST_TYPE_SFSINK))
return FALSE;
+#ifdef ENABLE_NLS
+ setlocale (LC_ALL, "");
+ bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+ textdomain (GETTEXT_PACKAGE);
+#endif /* ENABLE_NLS */
+
return TRUE;
}