Don't import obsolete translations
issue5055 review23561003
This commit is contained in:
1 parent
10af0ea078
commit
3a02e1d54e
1 file changed
+2
@@ -849,6 +849,8 @@ class Translation(ModelSQL, ModelView):
|
||||
id2translation = dict((t.id, t)
|
||||
for t in cls.browse(translation_ids))
|
||||
for entry in pofile:
|
||||
if entry.obsolete:
|
||||
continue
|
||||
translation, res_id = cls.from_poentry(entry)
|
||||
translation.lang = lang
|
||||
translation.module = module
|
||||
|
||||
Reference in new issue
Block a user