From 5ef9c63550aa4e2974cd47461250e2c43b56cfbc Mon Sep 17 00:00:00 2001 From: Leandro Regueiro Date: Tue, 15 Mar 2016 20:02:58 +0100 Subject: [PATCH] Use the right title when reporting a problem with a string --- pootle/apps/contact/views.py | 3 +++ pootle/templates/contact_form/xhr_contact_form.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pootle/apps/contact/views.py b/pootle/apps/contact/views.py index 5dd1f8599bc..f52a470fa27 100644 --- a/pootle/apps/contact/views.py +++ b/pootle/apps/contact/views.py @@ -9,6 +9,7 @@ from django.core.urlresolvers import reverse from django.template.loader import render_to_string +from django.utils.translation import ugettext_lazy as _ from django.views.generic import TemplateView from contact_form.views import ContactFormView as OriginalContactFormView @@ -31,6 +32,7 @@ def get_context_data(self, **kwargs): # Provide the form action URL to use in the template that renders the # contact dialog. ctx.update({ + 'contact_form_title': _('Contact Us'), 'contact_form_url': reverse('pootle-contact-xhr'), }) return ctx @@ -61,6 +63,7 @@ def get_context_data(self, **kwargs): # Provide the form action URL to use in the template that renders the # contact dialog. ctx.update({ + 'contact_form_title': _('Report problem with string'), 'contact_form_url': reverse('pootle-contact-report-error'), }) return ctx diff --git a/pootle/templates/contact_form/xhr_contact_form.html b/pootle/templates/contact_form/xhr_contact_form.html index 5c69591ffd4..578da473a25 100644 --- a/pootle/templates/contact_form/xhr_contact_form.html +++ b/pootle/templates/contact_form/xhr_contact_form.html @@ -2,7 +2,7 @@ {% get_current_language as LANGUAGE_CODE %}