# HG changeset patch
# User Edouard Tisserant
# Date 1613732622 -3600
# Node ID 4171f7dd109a5537555eda7672b85fd05fc88963
# Parent  279e08f238ca88232d4845ea632dc985bedb8c2a
SVGHMI: Fixed/extended error message when failing to launch POEdit.

diff -r 279e08f238ca -r 4171f7dd109a svghmi/svghmi.py
--- a/svghmi/svghmi.py	Fri Feb 19 12:02:49 2021 +0100
+++ b/svghmi/svghmi.py	Fri Feb 19 12:03:42 2021 +0100
@@ -705,13 +705,16 @@
                 else:
                     self.GetCTRoot().logger.write_error(_("PO file misplaced: %s is not in %s\n") % (POFile,project_path))
             else:
-                self.GetCTRoot().logger.write_error(_("PO file do not exist: %s\n") % POFile)
+                self.GetCTRoot().logger.write_error(_("PO file does not exist: %s\n") % POFile)
         dialog.Destroy()
 
     def _OpenPOT(self):
         """ Start POEdit with untouched empty catalog """
         POFile = self._getPOTpath()
-        self._StartPOEdit(POFile)
+        if os.path.isfile(POFile):
+            self._StartPOEdit(POFile)
+        else:
+            self.GetCTRoot().logger.write_error(_("POT file does not exist, add translatable text (label starting with '_') in Inkscape first\n"))
 
     def CTNGlobalInstances(self):
         # view_name = self.BaseParams.getName()