Permalink
Browse files

Ignore headers and not translated words

  • Loading branch information...
1 parent ce8dcd6 commit ef0014dbc6c8ec955fe206bb433298dda9302a0f @nijel nijel committed Mar 30, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 trans/managers.py
View
@@ -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

0 comments on commit ef0014d

Please sign in to comment.