QScintilla/Exporters/ExporterBase.py

changeset 5674
a0ad2dcb27f9
parent 5603
4f2dd0850803
child 6048
82ad8ec9548c
--- a/QScintilla/Exporters/ExporterBase.py	Fri Mar 31 17:53:47 2017 +0200
+++ b/QScintilla/Exporters/ExporterBase.py	Mon Apr 03 18:44:16 2017 +0200
@@ -42,7 +42,7 @@
         fileFilter += QCoreApplication.translate('Exporter', "All Files (*)")
         fn, selectedFilter = E5FileDialog.getSaveFileNameAndFilter(
             self.editor,
-            self.tr("Export source"),
+            QCoreApplication.translate('Exporter', "Export source"),
             "",
             fileFilter,
             "",
@@ -57,9 +57,12 @@
             if QFileInfo(fn).exists():
                 res = E5MessageBox.yesNo(
                     self.editor,
-                    self.tr("Export source"),
-                    self.tr("<p>The file <b>{0}</b> already exists."
-                            " Overwrite it?</p>").format(fn),
+                    QCoreApplication.translate(
+                        'Exporter', "Export source"),
+                    QCoreApplication.translate(
+                        'Exporter',
+                        "<p>The file <b>{0}</b> already exists."
+                        " Overwrite it?</p>").format(fn),
                     icon=E5MessageBox.Warning)
                 if not res:
                     return ""

eric ide

mercurial