diff -r 0b6a6e49cc06 -r 09e9084796de ProjectDjango/ConfigurationPage/DjangoPage.py --- a/ProjectDjango/ConfigurationPage/DjangoPage.py Sun Jun 16 14:51:36 2013 +0200 +++ b/ProjectDjango/ConfigurationPage/DjangoPage.py Tue Jun 18 19:27:03 2013 +0200 @@ -88,6 +88,9 @@ self.__plugin.getPreferences("VirtualEnvironmentPy3")) self.plainPython3CheckBox.setChecked( self.__plugin.getPreferences("UsePlainPythonPy3")) + + self.translationsEdit.setText( + self.__plugin.getPreferences("TranslationsEditor")) def save(self): """ @@ -115,6 +118,9 @@ self.virtualEnvPy3Edit.text()) self.__plugin.setPreferences("UsePlainPythonPy3", self.plainPython3CheckBox.isChecked()) + + self.__plugin.setPreferences("TranslationsEditor", + self.translationsEdit.text()) @pyqtSlot() def on_virtualEnvPy3Button_clicked(self): @@ -151,3 +157,16 @@ if virtualEnv: self.virtualEnvPy2Edit.setText(Utilities.toNativeSeparators(virtualEnv)) + + @pyqtSlot() + def on_translationsButton_clicked(self): + """ + Private slot to select the translations editor via a file selection dialog. + """ + editor = E5FileDialog.getOpenFileName( + self, + self.trUtf8("Translations Editor"), + self.translationsEdit.text(), + self.trUtf8("All Files (*)")) + if editor: + self.translationsEdit.setText(Utilities.toNativeSeparators(editor))