Commit e58bbab1 authored by Daniel Klaffenbach's avatar Daniel Klaffenbach 🐍
Browse files

Merge branch 'django_3.2/remove_translation_depreciations' into 'master'

Django 3.2 Übersetzungsfunktionen

Closes #18 and #15

See merge request !6
parents 8316ad42 17a40447
Pipeline #51615 passed with stage
in 11 seconds
......@@ -8,7 +8,7 @@ try:
except ImportError:
from django.core.urlresolvers import reverse
from django.conf import settings
from django.utils.translation import ugettext_lazy
from django.utils.translation import gettext_lazy
class ChangeLanguageForm(forms.Form):
......@@ -23,7 +23,7 @@ class ChangeLanguageForm(forms.Form):
language = forms.ChoiceField(
def __init__(self, redirect_to, *args, **kwargs):
......@@ -4,7 +4,8 @@ Form base classes which can be used with tuc2014, crispy_forms and bootstrap.
@author: klada
from django import forms
from django.utils.translation import ugettext as _, ugettext_lazy
from django.utils.translation import gettext as _
from django.utils.translation import gettext_lazy
from crispy_forms.bootstrap import FormActions, FieldWithButtons
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Div, Layout, Submit
......@@ -88,7 +89,7 @@ class ChangeLanguageForm(_BaseChangeLanguageForm, TucForm):
layout = Layout(
FieldWithButtons('language', Submit('submit', ugettext_lazy('Submit')))
FieldWithButtons('language', Submit('submit', gettext_lazy('Submit')))
def __init__(self, redirect_to, *args, **kwargs):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment