[gnome-games] UI strings non translated after GTKBuilder migration (Claude Paroz, Bug #586176)



commit bdfa713f8c192c5de2d41651b08c51f26c1f0338
Author: Robert Ancell <robert ancell gmail com>
Date:   Thu Jun 18 18:11:14 2009 +1000

    UI strings non translated after GTKBuilder migration (Claude Paroz, Bug #586176)

 glchess/data/glchess.ui        |    8 ++++----
 glchess/src/lib/gtkui/gtkui.py |    1 +
 2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/glchess/data/glchess.ui b/glchess/data/glchess.ui
index cf502e9..bab62fc 100644
--- a/glchess/data/glchess.ui
+++ b/glchess/data/glchess.ui
@@ -73,7 +73,7 @@
                     </child>
                     <child>
                       <object class="GtkImageMenuItem" id="menu_play_online_item">
-                        <property name="label">Network _Game</property>
+                        <property name="label" translatable="yes">Network _Game</property>
                         <property name="visible">True</property>
                         <property name="use_underline">True</property>
                         <property name="image">image2</property>
@@ -90,7 +90,7 @@
                     </child>
                     <child>
                       <object class="GtkImageMenuItem" id="menu_undo_move">
-                        <property name="label">_Undo Move</property>
+                        <property name="label" translatable="yes">_Undo Move</property>
                         <property name="visible">True</property>
                         <property name="use_underline">True</property>
                         <property name="image">image1</property>
@@ -102,7 +102,7 @@
                     </child>
                     <child>
                       <object class="GtkImageMenuItem" id="menu_resign">
-                        <property name="label">_Resign</property>
+                        <property name="label" translatable="yes">_Resign</property>
                         <property name="visible">True</property>
                         <property name="use_underline">True</property>
                         <property name="image">image3</property>
@@ -216,7 +216,7 @@
                   <object class="GtkMenu" id="help2_menu">
                     <child>
                       <object class="GtkImageMenuItem" id="menu_help">
-                        <property name="label">_Contents</property>
+                        <property name="label" translatable="yes">_Contents</property>
                         <property name="visible">True</property>
                         <property name="use_underline">True</property>
                         <property name="image">image4</property>
diff --git a/glchess/src/lib/gtkui/gtkui.py b/glchess/src/lib/gtkui/gtkui.py
index 9353003..08e0121 100644
--- a/glchess/src/lib/gtkui/gtkui.py
+++ b/glchess/src/lib/gtkui/gtkui.py
@@ -38,6 +38,7 @@ gtk.window_set_default_icon_name(ICON_NAME)
 
 def loadUIFile(name, root = None):
     ui = gtk.Builder()
+    ui.set_translation_domain(DOMAIN)
     ui.add_from_file(os.path.join(UI_DIR, name))
     return ui
 



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