[gnome-menus] [misc] Do not call bindtextdomain() and friends in test-menu-spec.c
- From: Vincent Untz <vuntz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-menus] [misc] Do not call bindtextdomain() and friends in test-menu-spec.c
- Date: Thu, 4 Mar 2010 16:56:44 +0000 (UTC)
commit d3135a15585afcb8d597fae05beadfaf1c743238
Author: Vincent Untz <vuntz gnome org>
Date: Thu Mar 4 17:55:40 2010 +0100
[misc] Do not call bindtextdomain() and friends in test-menu-spec.c
We decided to not make this application translatable in commit
25c10ed7, so we don't need those calls.
util/test-menu-spec.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/util/test-menu-spec.c b/util/test-menu-spec.c
index 7dfa47f..550e9ec 100644
--- a/util/test-menu-spec.c
+++ b/util/test-menu-spec.c
@@ -25,7 +25,8 @@
/* This is only a test program, so we don't need translations. Still keep the
* infrastructure in place in case we suddenly decide we want to localize this
- * program. */
+ * program. Don't forget to reenable the call to bindtextdomain() if going back
+ * to real localization. */
#define _(x) x
#define N_(x) x
@@ -187,9 +188,12 @@ main (int argc, char **argv)
GMenuTreeDirectory *root;
GMenuTreeFlags flags;
+#if 0
+ /* See comment when defining _() at the top of this file. */
bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
+#endif
options_context = g_option_context_new (_("- test GNOME's implementation of the Desktop Menu Specification"));
g_option_context_add_main_entries (options_context, options, GETTEXT_PACKAGE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]