Ensure msgid and msgstr are always strings
issue2203 review154005
This commit is contained in:
1 parent
ec4c38b84a
commit
9d481e6e3c
1 file changed
+2
-2
@@ -569,8 +569,8 @@ class Translation(ModelSQL, ModelView, Cacheable):
|
||||
else:
|
||||
continue
|
||||
trans_ctxt += ':%s' % res_id
|
||||
entry = polib.POEntry(msgid=translation.src,
|
||||
msgstr=translation.value, msgctxt=trans_ctxt, flags=flags)
|
||||
entry = polib.POEntry(msgid=(translation.src or ''),
|
||||
msgstr=(translation.value or ''), msgctxt=trans_ctxt, flags=flags)
|
||||
pofile.append(entry)
|
||||
|
||||
pofile.sort()
|
||||
|
||||
Reference in new issue
Block a user