From bea7f00011b68657e9338c2888f40762d51bf72b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Sat, 24 Nov 2007 11:10:57 +0000 Subject: [PATCH] svn: r9393 --- ChangeLog | 5 +++++ src/TipOfDay.py | 9 +++++++-- src/glade/gramps.glade | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 472181332..398b90a6f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-11-24 Jerome Rapinat + * src/DataViews/_PersonView.py: TransUtils issue with gettext context + * src/glade/gramps.glade: Inconsistent label in "Associations", issue #1390 + * src/TipOfDay.py: display bold tags, issue #1368 + 2007-11-23 Benny Malengier * src/plugins/rel_nl.py: new half sibling types * src/plugins/rel_it.py: new half sibling types diff --git a/src/TipOfDay.py b/src/TipOfDay.py index 0d5eef360..4295ffad8 100644 --- a/src/TipOfDay.py +++ b/src/TipOfDay.py @@ -98,9 +98,14 @@ class TipOfDay(ManagedWindow.ManagedWindow): window.show_all() + def escape(self,text): + text = text.replace('&','&'); # Must be first + text = text.replace(' > ',' > '); # Replace standalone > char + text = text.replace('"','"') # quotes + return text + def next_tip_cb(self, dummy=None): - tip_text = escape(self.tip_list[self.new_index[self.index]], - { '"' : '"' }) + tip_text = self.escape(self.tip_list[self.new_index[self.index]]) self.tip.set_text(_(tip_text)) self.tip.set_use_markup(True) if self.index >= len(self.tip_list)-1: diff --git a/src/glade/gramps.glade b/src/glade/gramps.glade index cdaee1781..4a3c860aa 100644 --- a/src/glade/gramps.glade +++ b/src/glade/gramps.glade @@ -13862,7 +13862,7 @@ Very High True - _Relationship: + _Association: True False GTK_JUSTIFY_CENTER