From 39f89df7a1f1c3fd08539eb024816c2394a7d58b Mon Sep 17 00:00:00 2001 From: Leonard de Ruijter Date: Wed, 27 Jul 2016 10:08:35 +0200 Subject: [PATCH] In keyboard help for emulated system keyboard keys, the translated version of a key is now spoken instead of the raw, untranslated version (#6212) --- source/scriptHandler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/scriptHandler.py b/source/scriptHandler.py index 83ff1c3..9c88885 100644 --- a/source/scriptHandler.py +++ b/source/scriptHandler.py @@ -17,6 +17,7 @@ from logHandler import log import inputCore import globalPluginHandler import braille +import keyLabels _numScriptsQueued=0 #Number of scripts that are queued to be executed #: Number of scripts that send their gestures on that are queued to be executed or are currently being executed. @@ -35,7 +36,7 @@ def _makeKbEmulateScript(scriptName): # __name__ must be str; i.e. can't be unicode. scriptName = scriptName.encode("mbcs") func.__name__ = "script_%s" % scriptName - func.__doc__ = _("Emulates pressing %s on the system keyboard") % keyName + func.__doc__ = _("Emulates pressing %s on the system keyboard") % keyLabels.localizedKeyLabels[keyName.lower()] return func def _getObjScript(obj, gesture, globalMapScripts): -- 2.9.0.windows.1