# HG changeset patch # User Edouard Tisserant # Date 1613276991 -3600 # Node ID cae53fe54cf247185f9828343089e7eee769536b # Parent 1f5ca646ce6eed28ad44f27d49ea437f0eba9da0 SVGHMI: i18n: prevent creating messages.pot if no translation diff -r 1f5ca646ce6e -r cae53fe54cf2 svghmi/svghmi.py --- a/svghmi/svghmi.py Sun Feb 14 05:22:30 2021 +0100 +++ b/svghmi/svghmi.py Sun Feb 14 05:29:51 2021 +0100 @@ -532,6 +532,9 @@ def GetTranslations(self, _context, msgs): messages = EtreeToMessages(msgs) + if len(messages) == 0: + return + SaveCatalog(self._getPOTpath(), messages) translations = ReadTranslations(self.CTNPath())