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

Base auto translation on source string not checksum

It doesn't matter that it's slightly fuzzy (ignoring context) as we want
to make it work for monolingual translations as well (where context/id
will most likely differ).
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 398c063b
......@@ -641,7 +641,7 @@ def auto_translation(request, project, subproject, lang):
sources = sources.filter(translation__subproject=subprj)
for unit in units.iterator():
update = sources.filter(checksum=unit.checksum)
update = sources.filter(source=unit.source)
if update.exists():
# Get first entry
update = update[0]
......
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