def onInstallDragonCommands(evt):
#Translators: Warning about having custom commands already.
goAhead = gui.messageBox(_("If you are on a computer with shared commands, and you have multiple users using these commands, this will override them. Please do not proceed unless you are sure you aren't sharing commands over a network. if you are, please read \"Importing Commands Into a Shared System\" in the Dictation Bridge documentation for manual steps.\nDo you want to proceed?"),
#Translators: Warning dialog title.
_("Warning: Potentially Dangerous Opperation Will be Performed"),
wx.YES|wx.NO)
if goAhead==wx.NO:
return
dialog = gui.IndeterminateProgressDialog(gui.mainFrame,
#Translators: Title for a dialog shown when Dragon Commands are being installed!
_("Dragon Command Installation"),
#Translators: Message shown in the progress dialog for dragon command installation.
_("Please wait while Dragon commands are installed."))
try:
gui.ExecAndPump(_onInstallDragonCommands)
except: #Catch all, because if this fails, bad bad bad.
log.error("DictationBridge commands failed to install!", exc_info=True)
finally:
dialog.done()
评论列表
文章目录