mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
Make sure gettext returns translations in UTF-8 encoding rather than in the current locale encoding (#546822).
Original commit message from CVS: Patch by: Frederic Crozat <fcrozat@mandriva.org> * ext/esd/gstesd.c: (plugin_init): * ext/flac/gstflac.c: (plugin_init): * ext/shout2/gstshout2.c: (plugin_init): * ext/wavpack/gstwavpack.c: (plugin_init): * sys/oss/gstossaudio.c: (plugin_init): * sys/v4l2/gstv4l2.c: (plugin_init): Make sure gettext returns translations in UTF-8 encoding rather than in the current locale encoding (#546822).
This commit is contained in:
parent
701bb29b16
commit
426721f717
7 changed files with 19 additions and 0 deletions
13
ChangeLog
13
ChangeLog
|
@ -1,3 +1,16 @@
|
|||
2008-08-07 Tim-Philipp Müller <tim.muller at collabora co uk>
|
||||
|
||||
Patch by: Frederic Crozat <fcrozat@mandriva.org>
|
||||
|
||||
* ext/esd/gstesd.c: (plugin_init):
|
||||
* ext/flac/gstflac.c: (plugin_init):
|
||||
* ext/shout2/gstshout2.c: (plugin_init):
|
||||
* ext/wavpack/gstwavpack.c: (plugin_init):
|
||||
* sys/oss/gstossaudio.c: (plugin_init):
|
||||
* sys/v4l2/gstv4l2.c: (plugin_init):
|
||||
Make sure gettext returns translations in UTF-8 encoding rather
|
||||
than in the current locale encoding (#546822).
|
||||
|
||||
2008-08-07 Sebastian Dröge <sebastian.droege@collabora.co.uk>
|
||||
|
||||
* ext/flac/gstflacdec.c:
|
||||
|
|
|
@ -47,6 +47,7 @@ plugin_init (GstPlugin * plugin)
|
|||
#ifdef ENABLE_NLS
|
||||
setlocale (LC_ALL, "");
|
||||
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
|
||||
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
||||
#endif /* ENABLE_NLS */
|
||||
|
||||
return TRUE;
|
||||
|
|
|
@ -35,6 +35,7 @@ plugin_init (GstPlugin * plugin)
|
|||
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, "flacenc", GST_RANK_NONE,
|
||||
|
|
|
@ -758,6 +758,7 @@ plugin_init (GstPlugin * plugin)
|
|||
#ifdef ENABLE_NLS
|
||||
setlocale (LC_ALL, "");
|
||||
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
|
||||
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
||||
#endif /* ENABLE_NLS */
|
||||
|
||||
return gst_element_register (plugin, "shout2send", GST_RANK_NONE,
|
||||
|
|
|
@ -41,6 +41,7 @@ plugin_init (GstPlugin * plugin)
|
|||
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
|
||||
|
||||
return (gst_wavpack_parse_plugin_init (plugin)
|
||||
|
|
|
@ -48,6 +48,7 @@ plugin_init (GstPlugin * plugin)
|
|||
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 */
|
||||
|
||||
return TRUE;
|
||||
|
|
|
@ -56,6 +56,7 @@ plugin_init (GstPlugin * plugin)
|
|||
#ifdef ENABLE_NLS
|
||||
setlocale (LC_ALL, "");
|
||||
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
|
||||
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
||||
#endif /* ENABLE_NLS */
|
||||
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in a new issue