[gen] Bugfixin the sync of i18n files; allow to include XHTML within messages in Appy popups.

This commit is contained in:
Gaetan Delannay 2014-03-26 14:01:03 +01:00
parent 834817c27b
commit d5a9450d72
3 changed files with 9 additions and 3 deletions

View file

@ -276,6 +276,11 @@ class PoFile:
res = '%s-%s-%s.po' % (self.applicationName, self.domain, language)
return res
def getCustomMessages(self):
'''Returns, the list of messages from self.messages whose ID starts with
"custom_".'''
return [m for m in self.messages if m.id.startswith('custom_')]
class PoParser:
'''Allows to parse a i18n file. The result is produced in self.res as a
PoFile instance.'''