fields: use "clear text" instead of "plain" (#5824)

This commit is contained in:
Frédéric Péters 2014-10-29 16:40:45 +01:00
parent 09db7c1f68
commit 1e4aa8a1e9
3 changed files with 6 additions and 6 deletions

View File

@ -3279,8 +3279,8 @@ msgid "Randomize Items"
msgstr "Mélanger les éléments"
#: ../wcs/fields.py:1448
msgid "Plain"
msgstr "Plain (en clair)"
msgid "Clear text"
msgstr "Texte clair"
#: ../wcs/fields.py:1449
msgid "MD5"

View File

@ -1445,7 +1445,7 @@ class PasswordField(WidgetField):
def fill_admin_form(self, form):
WidgetField.fill_admin_form(self, form)
formats = [('plain', _('Plain')),
formats = [('cleartext', _('Clear text')),
('md5', _('MD5')),
('sha1', _('SHA1')),
]

View File

@ -1862,9 +1862,9 @@ $(function() {
pwd1 = None
PASSWORD_FORMATS = {
'plain': lambda x: x,
'md5': lambda x: hashlib.md5(x).hexdigest(),
'sha1': lambda x: hashlib.sha1(x).hexdigest(),
'cleartext': lambda x: x,
'md5': lambda x: hashlib.md5(x).hexdigest(),
'sha1': lambda x: hashlib.sha1(x).hexdigest(),
}
if pwd1: