diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/audiofile/gstafsink.c | 7 | ||||
-rw-r--r-- | ext/audiofile/gstafsrc.c | 8 | ||||
-rw-r--r-- | ext/sndfile/gstsf.c | 8 |
3 files changed, 20 insertions, 3 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; } 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; } |