Project/SpellingPropertiesDialog.py

changeset 3190
a9a94491c4fd
parent 3186
a05eff845522
child 3366
6084bb3c3911
equal deleted inserted replaced
3189:9a21c547de5f 3190:a9a94491c4fd
45 45
46 self.pwlCompleter = E5FileCompleter(self.pwlEdit) 46 self.pwlCompleter = E5FileCompleter(self.pwlEdit)
47 self.pelCompleter = E5FileCompleter(self.pelEdit) 47 self.pelCompleter = E5FileCompleter(self.pelEdit)
48 48
49 from QScintilla.SpellChecker import SpellChecker 49 from QScintilla.SpellChecker import SpellChecker
50 self.spellingComboBox.addItem(self.trUtf8("<default>")) 50 self.spellingComboBox.addItem(self.tr("<default>"))
51 self.spellingComboBox.addItems( 51 self.spellingComboBox.addItems(
52 sorted(SpellChecker.getAvailableLanguages())) 52 sorted(SpellChecker.getAvailableLanguages()))
53 53
54 if not new: 54 if not new:
55 self.initDialog() 55 self.initDialog()
81 elif not os.path.isabs(pwl): 81 elif not os.path.isabs(pwl):
82 pwl = Utilities.fromNativeSeparators( 82 pwl = Utilities.fromNativeSeparators(
83 os.path.join(self.project.ppath, pwl)) 83 os.path.join(self.project.ppath, pwl))
84 file = E5FileDialog.getOpenFileName( 84 file = E5FileDialog.getOpenFileName(
85 self, 85 self,
86 self.trUtf8("Select project word list"), 86 self.tr("Select project word list"),
87 pwl, 87 pwl,
88 self.trUtf8("Dictionary File (*.dic);;All Files (*)")) 88 self.tr("Dictionary File (*.dic);;All Files (*)"))
89 89
90 if file: 90 if file:
91 self.pwlEdit.setText(self.project.getRelativePath( 91 self.pwlEdit.setText(self.project.getRelativePath(
92 Utilities.toNativeSeparators(file))) 92 Utilities.toNativeSeparators(file)))
93 93
102 elif not os.path.isabs(pel): 102 elif not os.path.isabs(pel):
103 pel = Utilities.fromNativeSeparators( 103 pel = Utilities.fromNativeSeparators(
104 os.path.join(self.project.ppath, pel)) 104 os.path.join(self.project.ppath, pel))
105 file = E5FileDialog.getOpenFileName( 105 file = E5FileDialog.getOpenFileName(
106 self, 106 self,
107 self.trUtf8("Select project exclude list"), 107 self.tr("Select project exclude list"),
108 pel, 108 pel,
109 self.trUtf8("Dictionary File (*.dic);;All Files (*)")) 109 self.tr("Dictionary File (*.dic);;All Files (*)"))
110 110
111 if file: 111 if file:
112 self.pelEdit.setText(self.project.getRelativePath( 112 self.pelEdit.setText(self.project.getRelativePath(
113 Utilities.toNativeSeparators(file))) 113 Utilities.toNativeSeparators(file)))
114 114

eric ide

mercurial