5426 return |
5426 return |
5427 |
5427 |
5428 fileInfo = dictionaryFile if len(dictionaryFile) < 40 \ |
5428 fileInfo = dictionaryFile if len(dictionaryFile) < 40 \ |
5429 else "...{0}".format(dictionaryFile[-40:]) |
5429 else "...{0}".format(dictionaryFile[-40:]) |
5430 dlg = SpellingDictionaryEditDialog(data, |
5430 dlg = SpellingDictionaryEditDialog(data, |
5431 QApplication.translate('ViewManager', "Editing {0}").format(fileInfo), |
5431 QApplication.translate('ViewManager', "Editing {0}").format(fileInfo), |
5432 self.ui) |
5432 self.ui) |
5433 if dlg.exec_() == QDialog.Accepted: |
5433 if dlg.exec_() == QDialog.Accepted: |
5434 data = dlg.getData() |
5434 data = dlg.getData() |
5435 try: |
5435 try: |
5436 f = open(dictionaryFile, "w", encoding="utf-8") |
5436 f = open(dictionaryFile, "w", encoding="utf-8") |