[libwnck] tests: Do not mark strings as translatable



commit b8463d7bd8c70b7b49c568b04284e9faf99d53ea
Author: Vincent Untz <vuntz gnome org>
Date:   Wed Sep 29 16:03:18 2010 +0200

    tests: Do not mark strings as translatable
    
    The tests don't get installed, so there is no point in translating the
    strings.
    
    As a side-effect, this fixes:
    https://bugzilla.gnome.org/show_bug.cgi?id=630904

 libwnck/test-pager.c    |   12 +++++-------
 libwnck/test-selector.c |    4 +---
 libwnck/test-tasklist.c |   14 ++++++--------
 po/POTFILES.in          |    3 ---
 4 files changed, 12 insertions(+), 21 deletions(-)
---
diff --git a/libwnck/test-pager.c b/libwnck/test-pager.c
index 7b5b58c..564c5c0 100644
--- a/libwnck/test-pager.c
+++ b/libwnck/test-pager.c
@@ -3,8 +3,6 @@
 #include <libwnck/libwnck.h>
 #include <gtk/gtk.h>
 
-#include <glib/gi18n.h>
-
 static int n_rows = 1;
 static gboolean only_current = FALSE;
 static gboolean rtl = FALSE;
@@ -12,11 +10,11 @@ static gboolean show_name = FALSE;
 static gboolean vertical = FALSE;
 
 static GOptionEntry entries[] = {
-	{"n-rows", 'n', 0, G_OPTION_ARG_INT, &n_rows, N_("Use N_ROWS rows"), N_("N_ROWS")},
-	{"only-current", 'c', 0, G_OPTION_ARG_NONE, &only_current, N_("Only show current workspace"), NULL},
-	{"rtl", 'r', 0, G_OPTION_ARG_NONE, &rtl, N_("Use RTL as default direction"), NULL},
-	{"show-name", 's', 0, G_OPTION_ARG_NONE, &show_name, N_("Show workspace names instead of workspace contents"), NULL},
-	{"vertical-orientation", 'v', 0, G_OPTION_ARG_NONE, &vertical, N_("Use a vertical orientation"), NULL},
+	{"n-rows", 'n', 0, G_OPTION_ARG_INT, &n_rows, "Use N_ROWS rows", "N_ROWS"},
+	{"only-current", 'c', 0, G_OPTION_ARG_NONE, &only_current, "Only show current workspace", NULL},
+	{"rtl", 'r', 0, G_OPTION_ARG_NONE, &rtl, "Use RTL as default direction", NULL},
+	{"show-name", 's', 0, G_OPTION_ARG_NONE, &show_name, "Show workspace names instead of workspace contents", NULL},
+	{"vertical-orientation", 'v', 0, G_OPTION_ARG_NONE, &vertical, "Use a vertical orientation", NULL},
 	{NULL }
 };
 
diff --git a/libwnck/test-selector.c b/libwnck/test-selector.c
index 2a5e68b..1ed52f6 100644
--- a/libwnck/test-selector.c
+++ b/libwnck/test-selector.c
@@ -3,14 +3,12 @@
 #include <libwnck/libwnck.h>
 #include <gtk/gtk.h>
 
-#include <glib/gi18n.h>
-
 static gboolean skip_tasklist = FALSE;
 
 static GOptionEntry entries[] = {
         /* Translators: "tasklist" is the list of running applications (the
          * window list) */
-	{"skip-tasklist", 's', 0, G_OPTION_ARG_NONE, &skip_tasklist, N_("Don't show window in tasklist"), NULL},
+	{"skip-tasklist", 's', 0, G_OPTION_ARG_NONE, &skip_tasklist, "Don't show window in tasklist", NULL},
 	{NULL }
 };
 
diff --git a/libwnck/test-tasklist.c b/libwnck/test-tasklist.c
index ea9577e..dd7e917 100644
--- a/libwnck/test-tasklist.c
+++ b/libwnck/test-tasklist.c
@@ -3,8 +3,6 @@
 #include <libwnck/libwnck.h>
 #include <gtk/gtk.h>
 
-#include <glib/gi18n.h>
-
 static gboolean display_all = FALSE;
 static gboolean never_group = FALSE;
 static gboolean always_group = FALSE;
@@ -13,12 +11,12 @@ static gboolean skip_tasklist = FALSE;
 static gboolean transparent = FALSE;
 
 static GOptionEntry entries[] = {
-	{"always-group", 'g', 0, G_OPTION_ARG_NONE, &always_group, N_("Always group windows"), NULL},
-	{"never-group", 'n', 0, G_OPTION_ARG_NONE, &never_group, N_("Never group windows"), NULL},
-	{"display-all", 'a', 0, G_OPTION_ARG_NONE, &display_all, N_("Display windows from all workspaces"), NULL},
-	{"rtl", 'r', 0, G_OPTION_ARG_NONE, &rtl, N_("Use RTL as default direction"), NULL},
-	{"skip-tasklist", 's', 0, G_OPTION_ARG_NONE, &skip_tasklist, N_("Don't show window in tasklist"), NULL},
-	{"transparent", 't', 0, G_OPTION_ARG_NONE, &transparent, N_("Enable Transparency"), NULL},
+	{"always-group", 'g', 0, G_OPTION_ARG_NONE, &always_group, "Always group windows", NULL},
+	{"never-group", 'n', 0, G_OPTION_ARG_NONE, &never_group, "Never group windows", NULL},
+	{"display-all", 'a', 0, G_OPTION_ARG_NONE, &display_all, "Display windows from all workspaces", NULL},
+	{"rtl", 'r', 0, G_OPTION_ARG_NONE, &rtl, "Use RTL as default direction", NULL},
+	{"skip-tasklist", 's', 0, G_OPTION_ARG_NONE, &skip_tasklist, "Don't show window in tasklist", NULL},
+	{"transparent", 't', 0, G_OPTION_ARG_NONE, &transparent, "Enable Transparency", NULL},
 	{NULL }
 };
 
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 011905b..7a7cb42 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -5,9 +5,6 @@ libwnck/pager-accessible.c
 libwnck/pager.c
 libwnck/selector.c
 libwnck/tasklist.c
-libwnck/test-pager.c
-libwnck/test-selector.c
-libwnck/test-tasklist.c
 libwnck/window-action-menu.c
 libwnck/window.c
 libwnck/wnckprop.c



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]