[orca] Display the Orca prefs dialogs using the active profile language



commit 6c5cc71902bf12742bdc38ac71319ff8ea52159c
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Tue Feb 19 03:00:51 2013 -0500

    Display the Orca prefs dialogs using the active profile language

 src/orca/app_gui_prefs.py   |    7 ++-----
 src/orca/messages.py        |    9 +++++++++
 src/orca/orca_gui_prefs.py  |    5 ++---
 src/orca/scripts/default.py |    2 +-
 4 files changed, 14 insertions(+), 9 deletions(-)
---
diff --git a/src/orca/app_gui_prefs.py b/src/orca/app_gui_prefs.py
index 956598a..6b39050 100644
--- a/src/orca/app_gui_prefs.py
+++ b/src/orca/app_gui_prefs.py
@@ -35,6 +35,7 @@ from . import braille
 from . import debug
 from . import input_event
 from . import keybindings
+from . import messages
 from . import orca_gui_prefs
 from . import orca_state
 from . import orca_platform
@@ -287,11 +288,7 @@ def showPreferencesUI():
     #
     applicationName = orca_state.activeScript.app.name
     if not orca_state.appOS and not orca_state.orcaOS:
-        # Translators: Orca Preferences in this case, is a configuration GUI
-        # for allowing users to set application specific settings from within
-        # Orca for the application that currently has focus.
-        #
-        line = _("Starting Orca Preferences for %s.") % applicationName
+        line = messages.STARTING_ORCA_APP_PREFS % applicationName
         appScript.presentMessage(line)
 
         prefsDict = {}
diff --git a/src/orca/messages.py b/src/orca/messages.py
index ed340fa..222dc39 100644
--- a/src/orca/messages.py
+++ b/src/orca/messages.py
@@ -750,6 +750,15 @@ SPEECH_LOWER  = _("lower.")
 # Translators: This message is presented to the user when Orca is launched.
 START_ORCA = _("Welcome to Orca.")
 
+# Translators: Orca Preferences is the configuration GUI for Orca. This message
+# is presented immediately before the GUI is shown.
+STARTING_ORCA_PREFS = _("Starting Orca Preferences.")
+
+# Translators: Orca Preferences in this case, is a configuration GUI for
+# allowing users to set application specific settings from within Orca for
+# the application that currently has focus.
+STARTING_ORCA_APP_PREFS = _("Starting Orca Preferences for %s.")
+
 # Translators: This message is presented to the user when Orca is quit.
 STOP_ORCA = _("Goodbye.")
 
diff --git a/src/orca/orca_gui_prefs.py b/src/orca/orca_gui_prefs.py
index b0508c8..05f3021 100644
--- a/src/orca/orca_gui_prefs.py
+++ b/src/orca/orca_gui_prefs.py
@@ -38,6 +38,7 @@ import time
 
 from . import acss
 from . import debug
+from . import messages
 from . import orca
 from . import orca_gtkbuilder
 from . import orca_gui_profile
@@ -3466,9 +3467,7 @@ class WarningDialogGUI(Gtk.MessageDialog):
 
 def showPreferencesUI():
     if not orca_state.appOS and not orca_state.orcaOS:
-        # Translators: Orca Preferences is the configuration GUI for Orca.
-        #
-        line = _("Starting Orca Preferences.")
+        line = messages.STARTING_ORCA_PREFS
         defScript = _scriptManager.getDefaultScript()
         defScript.speakMessage(line)
         try:
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index 126617a..f2a1387 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -2594,7 +2594,7 @@ class Script(script.Script):
         if oldVoiceLocale != newVoiceLocale:
             modules = ['orca.chnames', 'orca.keynames', 'orca.phonnames',
                        'orca.text_attribute_names.py', 'orca.tutorialgenerator',
-                       'orca.messages']
+                       'orca.orca_gtkbuilder', 'orca.messages']
             for module in modules:
                 orca_i18n.setModuleLocale(module, newVoiceLocale)
 


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