[orca] Move a forgotten messages string into messages.py
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Move a forgotten messages string into messages.py
- Date: Tue, 18 Jun 2013 11:07:19 +0000 (UTC)
commit 9896f0d52e2aa0d06aeec15d3d98efdcc49c4166
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Jun 18 07:06:40 2013 -0400
Move a forgotten messages string into messages.py
src/orca/messages.py | 7 +++++++
src/orca/orca_gui_prefs.py | 5 +----
2 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/src/orca/messages.py b/src/orca/messages.py
index c08cae3..b3a74b9 100644
--- a/src/orca/messages.py
+++ b/src/orca/messages.py
@@ -1302,6 +1302,13 @@ PARAGRAPH_UNSELECTED_DOWN = _("paragraph unselected down from cursor position")
# pressing Ctrl+Shift+UP.
PARAGRAPH_UNSELECTED_UP = _("paragraph unselected up from cursor position")
+# Translators: This message appears in a warning dialog when the user performs
+# the command to get into Orca's preferences dialog when the preferences dialog
+# is already open.
+PREFERENCES_WARNING_DIALOG = \
+ _('You already have an instance of an Orca preferences dialog ' \
+ 'open.\nPlease close it before opening a new one.')
+
# Translators: This message is an indication of the position of the focused
# slide and the total number of slides in the presentation.
PRESENTATION_SLIDE_POSITION = _("slide %(position)d of %(count)d")
diff --git a/src/orca/orca_gui_prefs.py b/src/orca/orca_gui_prefs.py
index 4df894e..518571e 100644
--- a/src/orca/orca_gui_prefs.py
+++ b/src/orca/orca_gui_prefs.py
@@ -3132,10 +3132,7 @@ class WarningDialogGUI(Gtk.MessageDialog):
def __init__(self):
Gtk.MessageDialog.__init__(self)
self.set_property('message-type', Gtk.MessageType.INFO)
- msg = _('You already have an instance of an Orca preferences dialog ' \
- 'open.\nPlease close it before opening a new one.')
- self.set_property('text', msg)
-
+ self.set_property('text', messages.PREFERENCES_WARNING_DIALOG)
self.add_button('gtk-ok', Gtk.ResponseType.OK)
self.connect('response', self.onResponse)
self.connect('destroy', self.onDestroy)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]