diff --git a/src/View/Geometry/Translate.py b/src/View/Geometry/Translate.py index e0b567ba..3a2528af 100644 --- a/src/View/Geometry/Translate.py +++ b/src/View/Geometry/Translate.py @@ -91,3 +91,9 @@ class GeometryTranslate(MainTranslate): self._dict["Shift"] = _translate( "Geometry", "Shift" ) + self._dict["warning"] = _translate( + "Geometry", "Warning" + ) + self._dict["format_not_exportable"] = _translate( + "Geometry", "The format of the file is not exportable." + ) diff --git a/src/View/Geometry/Window.py b/src/View/Geometry/Window.py index 0f780035..89631518 100644 --- a/src/View/Geometry/Window.py +++ b/src/View/Geometry/Window.py @@ -691,7 +691,13 @@ class GeometryWindow(PamhyrWindow): if suffix == ".st" or suffix == ".ST": self._export_to_file_st(filename[:-3]) else: - # TODO : prévenir l'utilisateur que le format n'est pas exportable + # Warning popup when the format is not exportable + win = QtWidgets.QMessageBox() + win.setIcon(QtWidgets.QMessageBox.Warning) + win.setWindowTitle(self._trad["warning"]) + win.setText(self._trad["format_not_exportable"]) + win.exec() + pass else: self._export_to_file_st(filename)