]> Pileus Git - ~andy/gtk/commitdiff
Mark strings in embedded XML code in plugman.c as translatable
authorPiotr Drąg <piotrdrag@gmail.com>
Fri, 18 May 2012 16:25:03 +0000 (18:25 +0200)
committerPiotr Drąg <piotrdrag@gmail.com>
Fri, 18 May 2012 16:25:03 +0000 (18:25 +0200)
Just like bloadpad's. Also add plugman.c to POTFILES.skip
to *not* actually translate it.

examples/plugman.c
po-properties/POTFILES.skip
po/POTFILES.skip

index 6f0ed2ad20622c131cb3aa0333496698f6e276b1..7efeeae26a43bc9cf9729ddf689d15481fefcbfa 100644 (file)
@@ -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>"
index ff6e29120196b25ab4f3193ad693be97093d8a89..586cd61cd916a628c79e0457118d1601ce4a7088 100644 (file)
@@ -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
index cc60b38b9e048285e433d343f13e6c1926ce77f6..f659c4c12a989fc202b4025f465871aed587ad97 100644 (file)
@@ -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