]> Pileus Git - ~andy/gtk/blobdiff - examples/plugman.c
Update Arabic translations
[~andy/gtk] / examples / plugman.c
index 6f0ed2ad20622c131cb3aa0333496698f6e276b1..c074aa93933321998a844b725f6e94685a47989e 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>"
@@ -465,8 +465,6 @@ plug_man_class_init (PlugManClass *class)
 PlugMan *
 plug_man_new (void)
 {
-  g_type_init ();
-
   return g_object_new (plug_man_get_type (),
                        "application-id", "org.gtk.Test.plugman",
                        "flags", G_APPLICATION_HANDLES_OPEN,