Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
86dc4889
Kaydet (Commit)
86dc4889
authored
Eki 10, 2015
tarafından
Claude Paroz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[1.9.x] Pluralized translatable strings in password_validation.py
üst
60471c96
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
15 deletions
+29
-15
django.po
django/contrib/auth/locale/en/LC_MESSAGES/django.po
+18
-12
password_validation.py
django/contrib/auth/password_validation.py
+11
-3
No files found.
django/contrib/auth/locale/en/LC_MESSAGES/django.po
Dosyayı görüntüle @
86dc4889
...
...
@@ -4,7 +4,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Django\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-10-
09 17:42
+0200\n"
"POT-Creation-Date: 2015-10-
10 15:10
+0200\n"
"PO-Revision-Date: 2010-05-13 15:35+0200\n"
"Last-Translator: Django team\n"
"Language-Team: English <en@li.org>\n"
...
...
@@ -262,40 +262,46 @@ msgstr ""
msgid "users"
msgstr ""
#: contrib/auth/password_validation.py:10
0
#: contrib/auth/password_validation.py:10
1
#, python-format
msgid ""
"This password is too short. It must contain at least %(min_length)d "
"character."
msgid_plural ""
"This password is too short. It must contain at least %(min_length)d "
"characters."
msgstr ""
msgstr[0] ""
msgstr[1] ""
#: contrib/auth/password_validation.py:1
06
#: contrib/auth/password_validation.py:1
11
#, python-format
msgid "Your password must contain at least %(min_length)d characters."
msgstr ""
msgid "Your password must contain at least %(min_length)d character."
msgid_plural "Your password must contain at least %(min_length)d characters."
msgstr[0] ""
msgstr[1] ""
#: contrib/auth/password_validation.py:1
39
#: contrib/auth/password_validation.py:1
47
#, python-format
msgid "The password is too similar to the %(verbose_name)s."
msgstr ""
#: contrib/auth/password_validation.py:1
45
#: contrib/auth/password_validation.py:1
53
msgid "Your password can't be too similar to your other personal information."
msgstr ""
#: contrib/auth/password_validation.py:1
72
#: contrib/auth/password_validation.py:1
80
msgid "This password is too common."
msgstr ""
#: contrib/auth/password_validation.py:1
77
#: contrib/auth/password_validation.py:1
85
msgid "Your password can't be a commonly used password."
msgstr ""
#: contrib/auth/password_validation.py:1
87
#: contrib/auth/password_validation.py:1
95
msgid "This password is entirely numeric."
msgstr ""
#: contrib/auth/password_validation.py:
192
#: contrib/auth/password_validation.py:
200
msgid "Your password can't be entirely numeric."
msgstr ""
...
...
django/contrib/auth/password_validation.py
Dosyayı görüntüle @
86dc4889
...
...
@@ -13,7 +13,7 @@ from django.utils.encoding import force_text
from
django.utils.html
import
format_html
from
django.utils.module_loading
import
import_string
from
django.utils.six
import
string_types
from
django.utils.translation
import
ugettext
as
_
from
django.utils.translation
import
ugettext
as
_
,
ungettext
@lru_cache.lru_cache
(
maxsize
=
None
)
...
...
@@ -97,13 +97,21 @@ class MinimumLengthValidator(object):
def
validate
(
self
,
password
,
user
=
None
):
if
len
(
password
)
<
self
.
min_length
:
raise
ValidationError
(
_
(
"This password is too short. It must contain at least
%(min_length)
d characters."
),
ungettext
(
"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."
,
self
.
min_length
),
code
=
'password_too_short'
,
params
=
{
'min_length'
:
self
.
min_length
},
)
def
get_help_text
(
self
):
return
_
(
"Your password must contain at least
%(min_length)
d characters."
)
%
{
'min_length'
:
self
.
min_length
}
return
ungettext
(
"Your password must contain at least
%(min_length)
d character."
,
"Your password must contain at least
%(min_length)
d characters."
,
self
.
min_length
)
%
{
'min_length'
:
self
.
min_length
}
class
UserAttributeSimilarityValidator
(
object
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment