[orca] More work on bgo#589362 - After migrate libglade to gtkbuilder, lot of translation strings get a #~
- From: Joanmarie Diggs <joanied src gnome org>
- To: svn-commits-list gnome org
- Subject: [orca] More work on bgo#589362 - After migrate libglade to gtkbuilder, lot of translation strings get a #~
- Date: Sat, 25 Jul 2009 02:15:42 +0000 (UTC)
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]