90 """ |
90 """ |
91 tp = Utilities.fromNativeSeparators(self.transPatternEdit.text()) |
91 tp = Utilities.fromNativeSeparators(self.transPatternEdit.text()) |
92 if "%language%" in tp: |
92 if "%language%" in tp: |
93 tp = tp.split("%language%")[0] |
93 tp = tp.split("%language%")[0] |
94 if not os.path.isabs(tp): |
94 if not os.path.isabs(tp): |
95 tp = Utilities.fromNativeSeparators(os.path.join(self.project.ppath, tp)) |
95 tp = Utilities.fromNativeSeparators( |
|
96 os.path.join(self.project.ppath, tp)) |
96 tsfile = E5FileDialog.getOpenFileName( |
97 tsfile = E5FileDialog.getOpenFileName( |
97 self, |
98 self, |
98 self.trUtf8("Select translation file"), |
99 self.trUtf8("Select translation file"), |
99 tp, |
100 tp, |
100 "") |
101 "") |
118 """ |
119 """ |
119 Private slot to display a directory selection dialog. |
120 Private slot to display a directory selection dialog. |
120 """ |
121 """ |
121 tbp = Utilities.fromNativeSeparators(self.transBinPathEdit.text()) |
122 tbp = Utilities.fromNativeSeparators(self.transBinPathEdit.text()) |
122 if not os.path.isabs(tbp): |
123 if not os.path.isabs(tbp): |
123 tbp = Utilities.fromNativeSeparators(os.path.join(self.project.ppath, tbp)) |
124 tbp = Utilities.fromNativeSeparators( |
|
125 os.path.join(self.project.ppath, tbp)) |
124 directory = E5FileDialog.getExistingDirectory( |
126 directory = E5FileDialog.getExistingDirectory( |
125 self, |
127 self, |
126 self.trUtf8("Select directory for binary translations"), |
128 self.trUtf8("Select directory for binary translations"), |
127 tbp) |
129 tbp) |
128 |
130 |
185 if texcept: |
187 if texcept: |
186 self.exceptionEdit.setText(Utilities.toNativeSeparators(texcept)) |
188 self.exceptionEdit.setText(Utilities.toNativeSeparators(texcept)) |
187 |
189 |
188 def on_exceptionsList_currentRowChanged(self, row): |
190 def on_exceptionsList_currentRowChanged(self, row): |
189 """ |
191 """ |
190 Private slot to handle the currentRowChanged signal of the exceptions list. |
192 Private slot to handle the currentRowChanged signal of the exceptions |
|
193 list. |
191 |
194 |
192 @param row the current row (integer) |
195 @param row the current row (integer) |
193 """ |
196 """ |
194 if row == -1: |
197 if row == -1: |
195 self.deleteExceptionButton.setEnabled(False) |
198 self.deleteExceptionButton.setEnabled(False) |