From 2bded08c45cc1370a7d1c114e01e144cfcf06935 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 28 Feb 2012 15:40:08 +0100 Subject: [PATCH] Start translation form --- html/translate.html | 6 ++++++ trans/views.py | 1 + 2 files changed, 7 insertions(+) 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, }))