X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e7d557155e2cd195f975e4559c353be5f28d7d66..1959361810afbb5f1de88b7d717da32979c7235d:/src/suggest/views.py?ds=inline diff --git a/src/suggest/views.py b/src/suggest/views.py index 706c549ab..58a524416 100644 --- a/src/suggest/views.py +++ b/src/suggest/views.py @@ -1,9 +1,8 @@ -# -*- coding: utf-8 -*- -# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. -# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Wolne Lektury. See NOTICE for more information. # -from django.core.urlresolvers import reverse_lazy -from django.utils.translation import ugettext_lazy as _ +from django.urls import reverse_lazy +from django.utils.translation import gettext_lazy as _ from ajaxable.utils import AjaxableFormView from suggest import forms @@ -11,19 +10,19 @@ from suggest import forms class PublishingSuggestionFormView(AjaxableFormView): form_class = forms.PublishingSuggestForm - title = _("Didn't find a book? Make a suggestion.") + title = _("Nie ma utworu na stronie? Zgłoś sugestię.") template = "publishing_suggest.html" - submit = _('Send report') - success_message = _('Report was sent successfully.') + submit = _('Wyślij zgłoszenie') + success_message = _('Zgłoszenie zostało wysłane.') honeypot = True action = reverse_lazy('suggest_publishing') class SuggestionFormView(AjaxableFormView): form_class = forms.SuggestForm - title = _('Report a bug or suggestion') + title = _('Zgłoś błąd lub sugestię') template = "suggest.html" - submit = _('Send report') - success_message = _('Report was sent successfully.') + submit = _('Wyślij zgłoszenie') + success_message = _('Zgłoszenie zostało wysłane.') honeypot = True action = reverse_lazy('suggest')