[orca] More work on bgo#589362 - After migrate libglade to gtkbuilder, lot of translation strings get a #~



commit ca2f139db1586e6d4fcd84a41578ee10c8bb5dee
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date:   Fri Jul 24 22:10:22 2009 -0400

    More work on bgo#589362 - After migrate libglade to gtkbuilder, lot of translation strings get a #~ mark

 src/orca/orca_gtkbuilder.py |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/orca_gtkbuilder.py b/src/orca/orca_gtkbuilder.py
index d58c328..6f4c779 100644
--- a/src/orca/orca_gtkbuilder.py
+++ b/src/orca/orca_gtkbuilder.py
@@ -125,6 +125,15 @@ class GtkBuilderWrapper:
             useMarkup = False
             useUnderline = False
 
+        if isinstance(obj, gtk.Frame):
+            # For some reason, if we localize the frame, which has a label
+            # but does not (itself) support use_markup, we get unmarked
+            # labels which are not bold but which do have <b></b>. If we
+            # skip the frames, the labels get processed as expected. And
+            # there was much rejoicing. Yea.
+            #
+            return
+
         try:
             obj.set_title(_(obj.get_title()))
         except:



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