diff --git a/html/translate.html b/html/translate.html index 4fbc09145..033c02fca 100644 --- a/html/translate.html +++ b/html/translate.html @@ -9,6 +9,12 @@

{% blocktrans with unit.position as position %}Showing string {{ position }} out of {{ total }}.{% endblocktrans %}

+
+{% csrf_token %} + + +
+ {% endblock %} diff --git a/trans/views.py b/trans/views.py index 94761bfb8..fce9a0940 100644 --- a/trans/views.py +++ b/trans/views.py @@ -44,4 +44,5 @@ def translate(request, project, subproject, lang): 'title': '%s @ Weblate' % (obj.__unicode__()), 'unit': unit, 'total': total, + 'type': rqtype, }))