[gtk+] Mark strings in embedded XML code in plugman.c as translatable



commit 601e10b0c1428a9d05703285a6c408dbe71852c6
Author: Piotr DrÄg <piotrdrag gmail com>
Date:   Fri May 18 18:25:03 2012 +0200

    Mark strings in embedded XML code in plugman.c as translatable
    
    Just like bloadpad's. Also add plugman.c to POTFILES.skip
    to *not* actually translate it.

 examples/plugman.c          |   22 +++++++++++-----------
 po-properties/POTFILES.skip |    1 +
 po/POTFILES.skip            |    1 +
 3 files changed, 13 insertions(+), 11 deletions(-)
---
diff --git a/examples/plugman.c b/examples/plugman.c
index 6f0ed2a..7efeeae 100644
--- a/examples/plugman.c
+++ b/examples/plugman.c
@@ -322,13 +322,13 @@ configure_plugins (GSimpleAction *action,
                                "        <property name='visible'>True</property>"
                                "        <child>"
                                "          <object class='GtkCheckButton' id='red-plugin'>"
-                               "            <property name='label'>Red Plugin - turn your text red</property>"
+                               "            <property name='label' translatable='yes'>Red Plugin - turn your text red</property>"
                                "            <property name='visible'>True</property>"
                                "          </object>"
                                "        </child>"
                                "        <child>"
                                "          <object class='GtkCheckButton' id='black-plugin'>"
-                               "            <property name='label'>Black Plugin - turn your text black</property>"
+                               "            <property name='label' translatable='yes'>Black Plugin - turn your text black</property>"
                                "            <property name='visible'>True</property>"
                                "          </object>"
                                "        </child>"
@@ -339,7 +339,7 @@ configure_plugins (GSimpleAction *action,
                                "        <property name='visible'>True</property>"
                                "        <child>"
                                "          <object class='GtkButton' id='close-button'>"
-                               "            <property name='label'>Close</property>"
+                               "            <property name='label' translatable='yes'>Close</property>"
                                "            <property name='visible'>True</property>"
                                "          </object>"
                                "        </child>"
@@ -392,13 +392,13 @@ plug_man_startup (GApplication *application)
                                "  <menu id='app-menu'>"
                                "    <section>"
                                "      <item>"
-                               "        <attribute name='label'>_About Plugman</attribute>"
+                               "        <attribute name='label' translatable='yes'>_About Plugman</attribute>"
                                "        <attribute name='action'>app.about</attribute>"
                                "      </item>"
                                "    </section>"
                                "    <section>"
                                "      <item>"
-                               "        <attribute name='label'>_Quit</attribute>"
+                               "        <attribute name='label' translatable='yes'>_Quit</attribute>"
                                "        <attribute name='action'>app.quit</attribute>"
                                "        <attribute name='accel'>&lt;Primary&gt;q</attribute>"
                                "      </item>"
@@ -406,14 +406,14 @@ plug_man_startup (GApplication *application)
                                "  </menu>"
                                "  <menu id='menubar'>"
                                "    <submenu>"
-                               "      <attribute name='label'>_Edit</attribute>"
+                               "      <attribute name='label' translatable='yes'>_Edit</attribute>"
                                "      <section>"
                                "        <item>"
-                               "          <attribute name='label'>_Copy</attribute>"
+                               "          <attribute name='label' translatable='yes'>_Copy</attribute>"
                                "          <attribute name='action'>win.copy</attribute>"
                                "        </item>"
                                "        <item>"
-                               "          <attribute name='label'>_Paste</attribute>"
+                               "          <attribute name='label' translatable='yes'>_Paste</attribute>"
                                "          <attribute name='action'>win.paste</attribute>"
                                "        </item>"
                                "      </section>"
@@ -421,16 +421,16 @@ plug_man_startup (GApplication *application)
                                "      </link></item>"
                                "      <section>"
                                "        <item>"
-                               "          <attribute name='label'>Plugins</attribute>"
+                               "          <attribute name='label' translatable='yes'>Plugins</attribute>"
                                "          <attribute name='action'>app.plugins</attribute>"
                                "        </item>"
                                "      </section>"
                                "    </submenu>"
                                "    <submenu>"
-                               "      <attribute name='label'>_View</attribute>"
+                               "      <attribute name='label' translatable='yes'>_View</attribute>"
                                "      <section>"
                                "        <item>"
-                               "          <attribute name='label'>_Fullscreen</attribute>"
+                               "          <attribute name='label' translatable='yes'>_Fullscreen</attribute>"
                                "          <attribute name='action'>win.fullscreen</attribute>"
                                "        </item>"
                                "      </section>"
diff --git a/po-properties/POTFILES.skip b/po-properties/POTFILES.skip
index ff6e291..586cd61 100644
--- a/po-properties/POTFILES.skip
+++ b/po-properties/POTFILES.skip
@@ -3,6 +3,7 @@ demos/gtk-demo/menus.ui
 demos/gtk-demo/theming.ui
 demos/widget-factory/widget-factory.ui
 examples/bloatpad.c
+examples/plugman.c
 tests/a11y/accessible-name.ui
 tests/a11y/assistant.ui
 tests/a11y/buttons.ui
diff --git a/po/POTFILES.skip b/po/POTFILES.skip
index cc60b38..f659c4c 100644
--- a/po/POTFILES.skip
+++ b/po/POTFILES.skip
@@ -3,6 +3,7 @@ demos/gtk-demo/menus.ui
 demos/gtk-demo/theming.ui
 demos/widget-factory/widget-factory.ui
 examples/bloatpad.c
+examples/plugman.c
 gtk/paper_names.c
 tests/a11y/accessible-name.ui
 tests/a11y/assistant.ui



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