]> Pileus Git - ~andy/gtk/commitdiff
Mark strings as translable in bloatpad
authorMatthias Clasen <mclasen@redhat.com>
Mon, 6 Feb 2012 00:12:41 +0000 (19:12 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 6 Feb 2012 00:12:41 +0000 (19:12 -0500)
We don't have any intention of actually translating bloatpad,
but this ends up as example in the docs.

examples/bloatpad.c

index 417858026203d498d56fa22354d89255338de646..3b5654e957a82193b66e056c41a910b01e10600e 100644 (file)
@@ -276,20 +276,20 @@ bloat_pad_startup (GApplication *application)
                                "  <menu id='app-menu'>"
                                "    <section>"
                                "      <item>"
-                               "        <attribute name='label'>_New Window</attribute>"
+                               "        <attribute name='label' translatable='yes'>_New Window</attribute>"
                                "        <attribute name='action'>app.new</attribute>"
                                "        <attribute name='accel'>&lt;Primary&gt;n</attribute>"
                                "      </item>"
                                "    </section>"
                                "    <section>"
                                "      <item>"
-                               "        <attribute name='label'>_About Bloatpad</attribute>"
+                               "        <attribute name='label' translatable='yes'>_About Bloatpad</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>"
@@ -297,25 +297,25 @@ bloat_pad_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>"
                                "          <attribute name='accel'>&lt;Primary&gt;c</attribute>"
                                "        </item>"
                                "        <item>"
-                               "          <attribute name='label'>_Parse</attribute>"
+                               "          <attribute name='label' translatable='yes'>_Parse</attribute>"
                                "          <attribute name='action'>win.parse</attribute>"
                                "          <attribute name='accel'>&lt;Primary&gt;v</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>"
                                "          <attribute name='accel'>F11</attribute>"
                                "        </item>"