Commit ef0014db authored by Michal Čihař's avatar Michal Čihař

Ignore headers and not translated words

parent ce8dcd68
......@@ -242,6 +242,10 @@ class DictionaryManager(models.Manager):
store = factory.getobject(fileobj)
for unit in store.units:
# We care only about translated things
if not unit.istranslatable() or not unit.istranslated():
continue
# Ignore too long words
if len(unit.source) > 200 or len(unit.target) > 200:
continue
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment