diff --git a/src/extra/SpellChecker/spellchecker.py b/src/extra/SpellChecker/spellchecker.py index 908a648e..60885691 100644 --- a/src/extra/SpellChecker/spellchecker.py +++ b/src/extra/SpellChecker/spellchecker.py @@ -42,7 +42,7 @@ class spellChecker(object): def check(self): try: self.checker.next() - textToSay = _(u"Mis-spelled word: %s") % (self.checker.word,) + textToSay = _(u"Misspelled word: %s") % (self.checker.word,) context = u"... %s %s %s" % (self.checker.leading_context(10), self.checker.word, self.checker.trailing_context(10)) self.dialog.set_title(textToSay) output.speak(textToSay) diff --git a/src/extra/SpellChecker/wx_ui.py b/src/extra/SpellChecker/wx_ui.py index 913a3d11..05133e52 100644 --- a/src/extra/SpellChecker/wx_ui.py +++ b/src/extra/SpellChecker/wx_ui.py @@ -17,13 +17,13 @@ # ############################################################ import wx - +import application class spellCheckerDialog(wx.Dialog): def __init__(self): super(spellCheckerDialog, self).__init__(None, 1) panel = wx.Panel(self) sizer = wx.BoxSizer(wx.VERTICAL) - word = wx.StaticText(panel, -1, _(u"Mis-spelled word")) + word = wx.StaticText(panel, -1, _(u"Misspelled word")) self.word = wx.TextCtrl(panel, -1) wordBox = wx.BoxSizer(wx.HORIZONTAL) wordBox.Add(word, 0, wx.ALL, 5) @@ -73,7 +73,7 @@ class spellCheckerDialog(wx.Dialog): return self.suggestions.GetStringSelection() def dict_not_found_error(): - wx.MessageDialog(None, _(u"A bug has happened. There are no dictionaries available for the selected language in TW Blue"), _(u"Error"), wx.ICON_ERROR).ShowModal() + wx.MessageDialog(None, _(u"An error has occurred. There are no dictionaries available for the selected language in " + application.name), _(u"Error"), wx.ICON_ERROR).ShowModal() def finished(): - wx.MessageDialog(None, _(u"The spelling review has finished."), _("Finished"), style=wx.OK).ShowModal() + wx.MessageDialog(None, _(u"Spell check complete."), _(application.name), style=wx.OK).ShowModal()