Permalink
Browse files

Localize strings

  • Loading branch information...
ibot3 committed Oct 23, 2018
1 parent 5c56eb0 commit b57ec3f5035b8fe312bbea953685b30a2e77d670
Showing with 5 additions and 5 deletions.
  1. +5 −5 sipa/forms.py
@@ -180,9 +180,9 @@ class ChangeMACForm(FlaskForm):
require_unicast_mac],
description="XX:XX:XX:XX:XX:XX")
host_name = StringField(label=lazy_gettext("Neuer Gerätename (Optional)"),
validators=[Regexp(regex="^[a-zA-Z0-9 ]+", message=u"Gerätename ist ungültig"),
validators=[Regexp(regex="^[a-zA-Z0-9 ]+", message=lazy_gettext("Gerätename ist ungültig")),
Optional(), Length(-1, 30, lazy_gettext("Gerätename zu lang"))],
description="TL-WR841N, MacBook, FritzBox, PC, Laptop, o.Ä.")
description=lazy_gettext("TL-WR841N, MacBook, FritzBox, PC, Laptop, o.Ä."))


class ActivateNetworkAccessForm(FlaskForm):
@@ -197,11 +197,11 @@ class ActivateNetworkAccessForm(FlaskForm):
description="XX:XX:XX:XX:XX:XX")
birthdate = DateField(label=lazy_gettext("Geburtsdatum"),
validators=[DataRequired(lazy_gettext("Geburtsdatum nicht angegeben!"))],
description="YYYY-MM-DD (z.B. 1995-10-23)")
description=lazy_gettext("YYYY-MM-DD (z.B. 1995-10-23)"))
host_name = StringField(label=lazy_gettext("Gerätename (Optional)"),
validators=[Regexp(regex="^[a-zA-Z0-9 ]+", message=u"Gerätename ist ungültig"),
validators=[Regexp(regex="^[a-zA-Z0-9 ]+", message=lazy_gettext("Gerätename ist ungültig")),
Optional(), Length(-1, 30, lazy_gettext("Gerätename zu lang"))],
description="TL-WR841N, MacBook, FritzBox, PC, Laptop, o.Ä.")
description=lazy_gettext("TL-WR841N, MacBook, FritzBox, PC, Laptop, o.Ä."))


class ChangeUseCacheForm(FlaskForm):

0 comments on commit b57ec3f

Please sign in to comment.