[orca] Fix for bgo#590219 - Incorrect text displayed with Orca quit confirmation dialog when the user using
- From: William Walker <wwalker src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [orca] Fix for bgo#590219 - Incorrect text displayed with Orca quit confirmation dialog when the user using
- Date: Thu, 30 Jul 2009 16:32:28 +0000 (UTC)
commit 9732c0f6df5567d346d722c397a8b1496a815dfa
Author: Willie Walker <william walker sun com>
Date: Thu Jul 30 12:29:52 2009 -0400
Fix for bgo#590219 - Incorrect text displayed with Orca quit confirmation dialog when the user using non english locale
Prevent the empty string from being passed to gettext.
src/orca/orca_gtkbuilder.py | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/src/orca/orca_gtkbuilder.py b/src/orca/orca_gtkbuilder.py
index 6f4c779..ddff3b5 100644
--- a/src/orca/orca_gtkbuilder.py
+++ b/src/orca/orca_gtkbuilder.py
@@ -135,17 +135,20 @@ class GtkBuilderWrapper:
return
try:
- obj.set_title(_(obj.get_title()))
+ title = obj.get_title()
+ if title and len(title):
+ obj.set_title(_(title))
except:
try:
text = obj.get_label()
except:
return False
- if useMarkup:
- obj.set_markup(_(text))
- else:
- obj.set_label(_(text))
+ if text and len(text):
+ if useMarkup:
+ obj.set_markup(_(text))
+ else:
+ obj.set_label(_(text))
if useUnderline:
obj.set_use_underline(True)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]