[gnome-menus] [misc] Do not make the string test-menu-spec.c translatable
- From: Vincent Untz <vuntz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-menus] [misc] Do not make the string test-menu-spec.c translatable
- Date: Mon, 22 Feb 2010 11:07:51 +0000 (UTC)
commit 25c10ed70c8125516537b3b731dff1c559bcab94
Author: Vincent Untz <vuntz gnome org>
Date: Mon Feb 22 12:06:48 2010 +0100
[misc] Do not make the string test-menu-spec.c translatable
This is only a test program that doesn't get installed, so there's no
point in making translators work on the strings there.
https://bugzilla.gnome.org/show_bug.cgi?id=609441
po/POTFILES.in | 1 -
po/POTFILES.skip | 3 +++
util/test-menu-spec.c | 7 ++++++-
3 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 1cbd430..d4366f6 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -25,4 +25,3 @@ simple-editor/gmenu-simple-editor.desktop.in
simple-editor/GMenuSimpleEditor/main.py
simple-editor/GMenuSimpleEditor/maindialog.py
simple-editor/GMenuSimpleEditor/menufilewriter.py
-util/test-menu-spec.c
diff --git a/po/POTFILES.skip b/po/POTFILES.skip
new file mode 100644
index 0000000..0185faf
--- /dev/null
+++ b/po/POTFILES.skip
@@ -0,0 +1,3 @@
+# List of source files containing translatable strings that should be skipped.
+# Please keep this file sorted alphabetically.
+util/test-menu-spec.c
diff --git a/util/test-menu-spec.c b/util/test-menu-spec.c
index c95c065..7dfa47f 100644
--- a/util/test-menu-spec.c
+++ b/util/test-menu-spec.c
@@ -21,9 +21,14 @@
#include "gmenu-tree.h"
-#include <glib/gi18n.h>
#include <string.h>
+/* 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. */
+#define _(x) x
+#define N_(x) x
+
static char *menu_file = NULL;
static gboolean monitor = FALSE;
static gboolean include_excluded = FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]