Skip to content

Commit

Permalink
Ignore headers and not translated words
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Mar 30, 2012
1 parent ce8dcd6 commit ef0014d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions trans/managers.py
Expand Up @@ -242,6 +242,10 @@ def upload(self, project, language, fileobj, overwrite):

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
Expand Down

0 comments on commit ef0014d

Please sign in to comment.