X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/7be7739955313180d8595b146ac48a1f1e387e9e..ac2bf5fce0bddb3d687562c70dc7f4b90758b95d:/prawokultury/context_processors.py?ds=inline diff --git a/prawokultury/context_processors.py b/prawokultury/context_processors.py index cb671da..b944366 100644 --- a/prawokultury/context_processors.py +++ b/prawokultury/context_processors.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- from django.core.urlresolvers import reverse +from django.utils.translation import ugettext as _ from prawokultury.contact_forms import RegistrationForm from .contact_forms import RegisterSpeaker @@ -10,8 +11,11 @@ def registration_url(request): registration_form = RegistrationForm() if speaker_form.started and not speaker_form.closed: url = reverse("contact_form", args=["register-speaker"]) + label = _('Registration') elif speaker_form.closed and not registration_form.started: url = reverse("contact_form", args=["remind-me"]) + label = _('Remind me') else: url = reverse("contact_form", args=["register"]) - return {'REGISTRATION_URL': url} + label = _('Registration') + return {'REGISTRATION_URL': url, 'REGISTRATION_BUTTON_LABEL': label}