forked from VNOI-Admin/OJ
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom_translations.py
32 lines (26 loc) · 1 KB
/
custom_translations.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
from django.utils.translation import gettext as _
from django.utils.translation import ngettext
# You can put messages that you want to translate here
# Check this link for more information
# https://stackoverflow.com/questions/7878028/override-default-django-translations/20439571#20439571
# Translate Password validation
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.',
)
ngettext(
'Your password must contain at least %(min_length)d character.',
'Your password must contain at least %(min_length)d characters.',
)
_('The password is too similar to the %(verbose_name)s.')
_("Your password can't be too similar to your other personal information.")
_('This password is entirely numeric.')
_("Your password can't be entirely numeric.")
# NavBar
_('PRoblems')
_('posted {time}')
# Comment
_('commented {time}')
# Contest duration
_('%(duration)s long')
_('%(time_limit)s window')