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

Include source string in error message

parent 65267b82
...@@ -521,9 +521,10 @@ class Translation(models.Model, URLMixin): ...@@ -521,9 +521,10 @@ class Translation(models.Model, URLMixin):
# Check for possible duplicate units # Check for possible duplicate units
if newunit.id in created_units: if newunit.id in created_units:
weblate.logger.error( weblate.logger.error(
'Duplicate string to translate in %s: %s', 'Duplicate string to translate in %s: %s (%s)',
self, self,
newunit newunit,
repr(newunit.source)
) )
# Store current unit ID # Store current unit ID
......
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