more updates to help rewording.
This commit is contained in:
parent
e28096b1c7
commit
933cf962f0
@ -19,7 +19,7 @@ class command():
|
||||
|
||||
def run(self):
|
||||
if not self.env['commandBuffer']['Marks']['1']:
|
||||
self.env['runtime']['outputManager'].presentText(_("No Mark found"), interrupt=True)
|
||||
self.env['runtime']['outputManager'].presentText(_("No mark found"), interrupt=True)
|
||||
return
|
||||
currApp = self.env['runtime']['applicationManager'].getCurrentApplication()
|
||||
self.env['commandBuffer']['bookMarks'][self.ID][currApp] = {}
|
||||
|
@ -19,7 +19,7 @@ class command():
|
||||
|
||||
def run(self):
|
||||
if not self.env['commandBuffer']['Marks']['1']:
|
||||
self.env['runtime']['outputManager'].presentText(_("No Mark found"), interrupt=True)
|
||||
self.env['runtime']['outputManager'].presentText(_("No mark found"), interrupt=True)
|
||||
return
|
||||
currApp = self.env['runtime']['applicationManager'].getCurrentApplication()
|
||||
self.env['commandBuffer']['bookMarks'][self.ID][currApp] = {}
|
||||
|
@ -19,7 +19,7 @@ class command():
|
||||
|
||||
def run(self):
|
||||
if not self.env['commandBuffer']['Marks']['1']:
|
||||
self.env['runtime']['outputManager'].presentText(_("No Mark found"), interrupt=True)
|
||||
self.env['runtime']['outputManager'].presentText(_("No mark found"), interrupt=True)
|
||||
return
|
||||
currApp = self.env['runtime']['applicationManager'].getCurrentApplication()
|
||||
self.env['commandBuffer']['bookMarks'][self.ID][currApp] = {}
|
||||
|
@ -19,7 +19,7 @@ class command():
|
||||
|
||||
def run(self):
|
||||
if not self.env['commandBuffer']['Marks']['1']:
|
||||
self.env['runtime']['outputManager'].presentText(_("No Mark found"), interrupt=True)
|
||||
self.env['runtime']['outputManager'].presentText(_("No mark found"), interrupt=True)
|
||||
return
|
||||
currApp = self.env['runtime']['applicationManager'].getCurrentApplication()
|
||||
self.env['commandBuffer']['bookMarks'][self.ID][currApp] = {}
|
||||
|
@ -19,7 +19,7 @@ class command():
|
||||
|
||||
def run(self):
|
||||
if not self.env['commandBuffer']['Marks']['1']:
|
||||
self.env['runtime']['outputManager'].presentText(_("No Mark found"), interrupt=True)
|
||||
self.env['runtime']['outputManager'].presentText(_("No mark found"), interrupt=True)
|
||||
return
|
||||
currApp = self.env['runtime']['applicationManager'].getCurrentApplication()
|
||||
self.env['commandBuffer']['bookMarks'][self.ID][currApp] = {}
|
||||
|
@ -19,7 +19,7 @@ class command():
|
||||
|
||||
def run(self):
|
||||
if not self.env['commandBuffer']['Marks']['1']:
|
||||
self.env['runtime']['outputManager'].presentText(_("No Mark found"), interrupt=True)
|
||||
self.env['runtime']['outputManager'].presentText(_("No mark found"), interrupt=True)
|
||||
return
|
||||
currApp = self.env['runtime']['applicationManager'].getCurrentApplication()
|
||||
self.env['commandBuffer']['bookMarks'][self.ID][currApp] = {}
|
||||
|
@ -19,7 +19,7 @@ class command():
|
||||
|
||||
def run(self):
|
||||
if not self.env['commandBuffer']['Marks']['1']:
|
||||
self.env['runtime']['outputManager'].presentText(_("No Mark found"), interrupt=True)
|
||||
self.env['runtime']['outputManager'].presentText(_("No mark found"), interrupt=True)
|
||||
return
|
||||
currApp = self.env['runtime']['applicationManager'].getCurrentApplication()
|
||||
self.env['commandBuffer']['bookMarks'][self.ID][currApp] = {}
|
||||
|
@ -19,7 +19,7 @@ class command():
|
||||
|
||||
def run(self):
|
||||
if not self.env['commandBuffer']['Marks']['1']:
|
||||
self.env['runtime']['outputManager'].presentText(_("No Mark found"), interrupt=True)
|
||||
self.env['runtime']['outputManager'].presentText(_("No mark found"), interrupt=True)
|
||||
return
|
||||
currApp = self.env['runtime']['applicationManager'].getCurrentApplication()
|
||||
self.env['commandBuffer']['bookMarks'][self.ID][currApp] = {}
|
||||
|
@ -19,7 +19,7 @@ class command():
|
||||
|
||||
def run(self):
|
||||
if not self.env['commandBuffer']['Marks']['1']:
|
||||
self.env['runtime']['outputManager'].presentText(_("No Mark found"), interrupt=True)
|
||||
self.env['runtime']['outputManager'].presentText(_("No mark found"), interrupt=True)
|
||||
return
|
||||
currApp = self.env['runtime']['applicationManager'].getCurrentApplication()
|
||||
self.env['commandBuffer']['bookMarks'][self.ID][currApp] = {}
|
||||
|
@ -19,7 +19,7 @@ class command():
|
||||
|
||||
def run(self):
|
||||
if not self.env['commandBuffer']['Marks']['1']:
|
||||
self.env['runtime']['outputManager'].presentText(_("No Mark found"), interrupt=True)
|
||||
self.env['runtime']['outputManager'].presentText(_("No mark found"), interrupt=True)
|
||||
return
|
||||
currApp = self.env['runtime']['applicationManager'].getCurrentApplication()
|
||||
self.env['commandBuffer']['bookMarks'][self.ID][currApp] = {}
|
||||
|
@ -14,7 +14,7 @@ class command():
|
||||
def shutdown(self):
|
||||
pass
|
||||
def getDescription(self):
|
||||
return _('interrupts the current presentation')
|
||||
return _('Interrupts the current presentation')
|
||||
def run(self):
|
||||
if len(self.env['input']['prevDeepestInput']) > len(self.env['input']['currInput']):
|
||||
return
|
||||
|
@ -21,13 +21,13 @@ class command():
|
||||
return _('script: {0} fullpath: {1}').format(os.path.basename(self.scriptPath), self.scriptPath)
|
||||
def run(self):
|
||||
if not os.path.exists(self.scriptPath):
|
||||
self.env['runtime']['outputManager'].presentText(_('scriptfile does not exist'), soundIcon='', interrupt=False)
|
||||
self.env['runtime']['outputManager'].presentText(_('Script file not found'), soundIcon='', interrupt=False)
|
||||
return
|
||||
if not os.path.isfile(self.scriptPath):
|
||||
self.env['runtime']['outputManager'].presentText(_('scriptfile is not a file'), soundIcon='', interrupt=False)
|
||||
self.env['runtime']['outputManager'].presentText(_('Script source is not a valid file'), soundIcon='', interrupt=False)
|
||||
return
|
||||
if not os.access(self.scriptPath, os.X_OK):
|
||||
self.env['runtime']['outputManager'].presentText(_('scriptfile is not executable'), soundIcon='', interrupt=False)
|
||||
self.env['runtime']['outputManager'].presentText(_('Script file is not executable'), soundIcon='', interrupt=False)
|
||||
return
|
||||
_thread.start_new_thread(self._threadRun , ())
|
||||
|
||||
|
@ -13,14 +13,14 @@ class command():
|
||||
def shutdown(self):
|
||||
pass
|
||||
def getDescription(self):
|
||||
return _('enables or disables automatic reading of time after an period')
|
||||
return _('Enables or disables automatic reading of time after specified intervals')
|
||||
|
||||
def run(self):
|
||||
self.env['runtime']['settingsManager'].setSetting('time', 'enabled', str(not self.env['runtime']['settingsManager'].getSettingAsBool('time', 'enabled')))
|
||||
if self.env['runtime']['settingsManager'].getSettingAsBool('time', 'enabled'):
|
||||
self.env['runtime']['outputManager'].presentText(_("autotime enabled"), soundIcon='', interrupt=True)
|
||||
self.env['runtime']['outputManager'].presentText(_("Automatic time announcement enabled"), soundIcon='', interrupt=True)
|
||||
else:
|
||||
self.env['runtime']['outputManager'].presentText(_("autotime disabled"), soundIcon='', interrupt=True)
|
||||
self.env['runtime']['outputManager'].presentText(_("Automatic time announcement disabled"), soundIcon='', interrupt=True)
|
||||
|
||||
def setCallback(self, callback):
|
||||
pass
|
||||
|
@ -14,7 +14,7 @@ class command():
|
||||
def shutdown(self):
|
||||
pass
|
||||
def getDescription(self):
|
||||
return _('enables and disables output in braille')
|
||||
return _('Enables and disables Braille output')
|
||||
|
||||
def run(self):
|
||||
if self.env['runtime']['settingsManager'].getSettingAsBool('braille', 'enabled'):
|
||||
|
Loading…
Reference in New Issue
Block a user