Skip to content

Commit

Permalink
Use the right title when reporting a problem with a string
Browse files Browse the repository at this point in the history
  • Loading branch information
unho committed Mar 15, 2016
1 parent ac33239 commit 5ef9c63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pootle/apps/contact/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pootle/templates/contact_form/xhr_contact_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% get_current_language as LANGUAGE_CODE %}
<div id="contact" class="popup-form" dir="{% locale_dir %}">
<div id="js-contact">
<h1>{% trans "Contact Us" %}</h1>
<h1>{{ contact_form_title }}</h1>
{% block contact_preamble %}
<p>
{% blocktrans trimmed %}
Expand Down

0 comments on commit 5ef9c63

Please sign in to comment.