6625 """ could not be written.</p>""" |
6625 """ could not be written.</p>""" |
6626 """<p>Reason: {1}</p>""").format( |
6626 """<p>Reason: {1}</p>""").format( |
6627 dictionaryFile, str(err))) |
6627 dictionaryFile, str(err))) |
6628 return |
6628 return |
6629 |
6629 |
6630 if self.ui.notificationsEnabled(): |
6630 self.ui.showNotification( |
6631 self.ui.showNotification( |
6631 UI.PixmapCache.getPixmap("spellchecking48"), |
6632 UI.PixmapCache.getPixmap("spellchecking48"), |
6632 QCoreApplication.translate( |
6633 QCoreApplication.translate( |
6633 'ViewManager', "Edit Spelling Dictionary"), |
6634 'ViewManager', "Edit Spelling Dictionary"), |
6634 QCoreApplication.translate( |
6635 QCoreApplication.translate( |
6635 'ViewManager', |
6636 'ViewManager', |
6636 "The spelling dictionary was saved successfully.")) |
6637 "The spelling dictionary was saved successfully.")) |
|
6638 |
6637 |
6639 ################################################################## |
6638 ################################################################## |
6640 ## Below are general utility methods |
6639 ## Below are general utility methods |
6641 ################################################################## |
6640 ################################################################## |
6642 |
6641 |