svghmi/svghmi.py
branchsvghmi
changeset 3140 cae53fe54cf2
parent 3137 ac3ec66e9c6d
child 3156 76c0c0a524c9
child 3158 4171f7dd109a
equal deleted inserted replaced
3139:1f5ca646ce6e 3140:cae53fe54cf2
   530         return res
   530         return res
   531 
   531 
   532     def GetTranslations(self, _context, msgs):
   532     def GetTranslations(self, _context, msgs):
   533         messages = EtreeToMessages(msgs)
   533         messages = EtreeToMessages(msgs)
   534 
   534 
       
   535         if len(messages) == 0:
       
   536             return
       
   537 
   535         SaveCatalog(self._getPOTpath(), messages)
   538         SaveCatalog(self._getPOTpath(), messages)
   536 
   539 
   537         translations = ReadTranslations(self.CTNPath())
   540         translations = ReadTranslations(self.CTNPath())
   538             
   541             
   539         langs,translated_messages = MatchTranslations(translations, messages, 
   542         langs,translated_messages = MatchTranslations(translations, messages,