[Spice-devel] [spice-gtk 2/3] spicy: Mark top-level menus for translation

Christophe Fergeau cfergeau at redhat.com
Tue Jun 16 05:34:24 PDT 2015


These entries (File, Edit, View, ...) currently do not appear in the po
files and thus cannot be translated.
---
 src/spicy.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/spicy.c b/src/spicy.c
index 15ef377..0fae4f6 100644
--- a/src/spicy.c
+++ b/src/spicy.c
@@ -611,25 +611,25 @@ static void restore_configuration(SpiceWindow *win)
 static const GtkActionEntry entries[] = {
     {
         .name        = "FileMenu",
-        .label       = "_File",
+        .label       = N_("_File"),
     },{
         .name        = "FileRecentMenu",
-        .label       = "_Recent",
+        .label       = N_("_Recent"),
     },{
         .name        = "EditMenu",
-        .label       = "_Edit",
+        .label       = N_("_Edit"),
     },{
         .name        = "ViewMenu",
-        .label       = "_View",
+        .label       = N_("_View"),
     },{
         .name        = "InputMenu",
-        .label       = "_Input",
+        .label       = N_("_Input"),
     },{
         .name        = "OptionMenu",
-        .label       = "_Options",
+        .label       = N_("_Options"),
     },{
         .name        = "HelpMenu",
-        .label       = "_Help",
+        .label       = N_("_Help"),
     },{
 
         /* File menu */
-- 
2.4.3



More information about the Spice-devel mailing list