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