[gtk+] Mark strings as translable in bloatpad



commit c064bdb00c10c2b494727194b22a88b685fc24f6
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Feb 5 19:12:41 2012 -0500

    Mark strings as translable in bloatpad
    
    We don't have any intention of actually translating bloatpad,
    but this ends up as example in the docs.

 examples/bloatpad.c |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/examples/bloatpad.c b/examples/bloatpad.c
index 4178580..3b5654e 100644
--- a/examples/bloatpad.c
+++ b/examples/bloatpad.c
@@ -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>"



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