Make custom error messages translatable.
authorTim-Philipp Müller <tim@centricular.net>
Sat, 29 Jul 2006 11:20:30 +0000 (11:20 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Sat, 29 Jul 2006 11:20:30 +0000 (11:20 +0000)
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.

ChangeLog
common
ext/dvdread/dvdreadsrc.c
gst/asfdemux/gstasf.c
po/POTFILES.in

index 3f5f020..7248fc4 100644 (file)
--- a/ChangeLog
+++ b/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:
diff --git a/common b/common
index ef97fb3..e9ea99f 160000 (submodule)
--- a/common
+++ b/common
@@ -1 +1 @@
-Subproject commit ef97fb3278d98a1fdb32e5c6b2a7467116ffc160
+Subproject commit e9ea99f6e89d7e1af3a0a859bfeb0ed6ecf2e3a9
index fd7f013..4cc0d09 100644 (file)
@@ -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");
 
index e7dcaec..3eedbd8 100644 (file)
@@ -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 */
 
index d464249..11f5230 100644 (file)
@@ -1,4 +1,5 @@
 # not activated yet:
 # ext/dvdnav/dvdnavsrc.c
 
+ext/dvdread/dvdreadsrc.c
 gst/asfdemux/gstasfdemux.c