Ignore empty translated summary
This commit is contained in:
parent
632fff1278
commit
6f2550cde0
@ -144,6 +144,8 @@ class Builder(object):
|
||||
cat = gettext.GNUTranslations(open(mo_file, 'r'))
|
||||
translated_name = cat.gettext(self.config.activity_name)
|
||||
translated_summary = cat.gettext(self.config.summary)
|
||||
if translated_summary is None:
|
||||
translated_summary = ''
|
||||
if translated_summary.find('\n') > -1:
|
||||
translated_summary = translated_summary.replace('\n', '')
|
||||
logging.warn(
|
||||
|
Loading…
Reference in New Issue
Block a user