[IMP] translate: avoid loading duplicate `code`-type translations, we only care about one

bzr revid: odo@openerp.com-20120918073029-dujiwi17irt8m73t
This commit is contained in:
Olivier Dony 2012-09-18 09:30:29 +02:00
parent 550751b358
commit b505ba9e0a
1 changed files with 1 additions and 0 deletions

View File

@ -351,6 +351,7 @@ class TinyPoFile(object):
if targets and not fuzzy:
trans_type, name, res_id = targets.pop(0)
for t, n, r in targets:
if t == trans_type == 'code': continue
self.extra_lines.append((t, n, r, source, trad, comments))
self.first = False