mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
Make custom error messages translatable.
Original commit message from CVS: * ext/dvdread/dvdreadsrc.c: (plugin_init): * po/POTFILES.in: Make custom error messages translatable. * gst/asfdemux/gstasf.c: (plugin_init): Remove setlocale() call, doesn't seem to be needed or recommended for plugins, at least not according to gstreamer/docs/random/i18n.
This commit is contained in:
parent
7a4e25d6e2
commit
e8b7c2a3e9
5 changed files with 21 additions and 5 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
2006-07-29 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* ext/dvdread/dvdreadsrc.c: (plugin_init):
|
||||
* po/POTFILES.in:
|
||||
Make custom error messages translatable.
|
||||
|
||||
* gst/asfdemux/gstasf.c: (plugin_init):
|
||||
Remove setlocale() call, doesn't seem to be needed or recommended for
|
||||
plugins, at least not according to gstreamer/docs/random/i18n.
|
||||
|
||||
2006-07-28 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* gst/asfdemux/Makefile.am:
|
||||
|
|
2
common
2
common
|
@ -1 +1 @@
|
|||
Subproject commit ef97fb3278d98a1fdb32e5c6b2a7467116ffc160
|
||||
Subproject commit e9ea99f6e89d7e1af3a0a859bfeb0ed6ecf2e3a9
|
|
@ -32,9 +32,7 @@
|
|||
|
||||
#include "dvdreadsrc.h"
|
||||
|
||||
/* #include <gst/gst-i18n-plugin.h> */
|
||||
/* FIXME: remove once GETTEXT_PACKAGE etc. is set */
|
||||
#define _(s) s
|
||||
#include <gst/gst-i18n-plugin.h>
|
||||
|
||||
GST_DEBUG_CATEGORY_STATIC (gstgst_dvd_read_src_debug);
|
||||
#define GST_CAT_DEFAULT (gstgst_dvd_read_src_debug)
|
||||
|
@ -1403,6 +1401,12 @@ gst_dvd_read_src_do_init (GType dvdreadsrc_type)
|
|||
static gboolean
|
||||
plugin_init (GstPlugin * plugin)
|
||||
{
|
||||
#ifdef ENABLE_NLS
|
||||
GST_DEBUG ("binding text domain %s to locale dir %s", GETTEXT_PACKAGE,
|
||||
LOCALEDIR);
|
||||
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
|
||||
#endif /* ENABLE_NLS */
|
||||
|
||||
GST_DEBUG_CATEGORY_INIT (gstgst_dvd_read_src_debug, "dvdreadsrc", 0,
|
||||
"DVD reader element based on dvdreadsrc");
|
||||
|
||||
|
|
|
@ -32,7 +32,8 @@ static gboolean
|
|||
plugin_init (GstPlugin * plugin)
|
||||
{
|
||||
#ifdef ENABLE_NLS
|
||||
setlocale (LC_ALL, "");
|
||||
GST_DEBUG ("binding text domain %s to locale dir %s", GETTEXT_PACKAGE,
|
||||
LOCALEDIR);
|
||||
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
|
||||
#endif /* ENABLE_NLS */
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
# not activated yet:
|
||||
# ext/dvdnav/dvdnavsrc.c
|
||||
|
||||
ext/dvdread/dvdreadsrc.c
|
||||
gst/asfdemux/gstasfdemux.c
|
||||
|
|
Loading…
Reference in a new issue