[orca] Get the commands in the correct language with profile-based language switching
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Get the commands in the correct language with profile-based language switching
- Date: Tue, 5 Mar 2013 00:11:46 +0000 (UTC)
commit b2ee6817c50b6ac4abe04f1bcfdd5fd42615cadb
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Mar 4 19:11:10 2013 -0500
Get the commands in the correct language with profile-based language switching
src/orca/orca_gui_prefs.py | 1 +
src/orca/orca_i18n.py.in | 3 ++-
src/orca/scripts/default.py | 4 ++++
3 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/orca_gui_prefs.py b/src/orca/orca_gui_prefs.py
index ed77a11..a6f5fd3 100644
--- a/src/orca/orca_gui_prefs.py
+++ b/src/orca/orca_gui_prefs.py
@@ -2080,6 +2080,7 @@ class OrcaSetupGUI(orca_gtkbuilder.GtkBuilderWrapper):
#
if not self.kbindings:
self.kbindings = keybindings.KeyBindings()
+ defScript.setupInputEventHandlers()
self.defKeyBindings = defScript.getKeyBindings()
for kb in self.defKeyBindings.keyBindings:
if not self.kbindings.hasKeyBinding(kb, "strict"):
diff --git a/src/orca/orca_i18n.py.in b/src/orca/orca_i18n.py.in
index 23b5b80..6778f89 100644
--- a/src/orca/orca_i18n.py.in
+++ b/src/orca/orca_i18n.py.in
@@ -78,7 +78,8 @@ def setLocaleForMessages(newLocale=None):
def setLocaleForNames(newLocale=None):
modules = ['orca.chnames', 'orca.keynames', 'orca.phonnames',
- 'orca.text_attribute_names', 'orca.object_properties']
+ 'orca.text_attribute_names', 'orca.object_properties',
+ 'orca.cmdnames']
for module in modules:
setModuleLocale(module, newLocale)
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index c14a040..ec9f261 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -2067,6 +2067,10 @@ class Script(script.Script):
# for now we'll hack.
self.voices = _settingsManager.getSetting('voices')
+ # TODO: This is another "too close to code freeze" hack to cause the
+ # command names to be presented in the correct language.
+ self.setupInputEventHandlers()
+
self.presentMessage(messages.PROFILE_CHANGED % name, name)
return True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]