beremiz

cae53fe54cf2
Parents 1f5ca646ce6e
Children 6d4c1e6560ac
SVGHMI: i18n: prevent creating messages.pot if no translation
--- 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())