Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ignore headers and not translated words

  • Loading branch information...
commit ef0014dbc6c8ec955fe206bb433298dda9302a0f 1 parent ce8dcd6
Michal Čihař authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 trans/managers.py
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.