NDOJ/judge/custom_translations.py

23 lines
760 B
Python
Raw Permalink Normal View History

2024-01-31 04:20:55 +00:00
from django.utils.translation import gettext_lazy as _, ngettext
def custom_trans():
return [
# Password reset
ngettext(
"This password is too short. It must contain at least %(min_length)d character.",
"This password is too short. It must contain at least %(min_length)d characters.",
0,
),
ngettext(
"Your password must contain at least %(min_length)d character.",
"Your password must contain at least %(min_length)d characters.",
0,
),
_("The two password fields didnt match."),
_("Your password cant be entirely numeric."),
# Navbar
_("Bug Report"),
2024-02-19 23:20:57 +00:00
_("Courses"),
2024-01-31 04:20:55 +00:00
]