From 1dd32db6253c9f7b42bb31d14b7f0f02d2bb10f2 Mon Sep 17 00:00:00 2001 From: Antoine Fontaine Date: Wed, 23 Sep 2015 17:14:46 +0200 Subject: [PATCH 1/3] update .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index ad7a860..d697fcd 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ doc/_build/ dist/ .coverage password_validation/test/test.sqlite +.idea/ From 7e285568d27de60976c6c69ca15978d976869fbf Mon Sep 17 00:00:00 2001 From: Antoine Fontaine Date: Wed, 23 Sep 2015 17:14:53 +0200 Subject: [PATCH 2/3] add french translation --- MANIFEST.in | 1 + .../locale/fr/LC_MESSAGES/django.mo | Bin 0 -> 1565 bytes .../locale/fr/LC_MESSAGES/django.po | 59 ++++++++++++++++++ setup.py | 1 + 4 files changed, 61 insertions(+) create mode 100644 password_validation/locale/fr/LC_MESSAGES/django.mo create mode 100644 password_validation/locale/fr/LC_MESSAGES/django.po diff --git a/MANIFEST.in b/MANIFEST.in index fe96fce..fd6af02 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -3,3 +3,4 @@ include CHANGES.rst include LICENSE.txt include MANIFEST.in include README.rst +recursive-include password_validation *.mo diff --git a/password_validation/locale/fr/LC_MESSAGES/django.mo b/password_validation/locale/fr/LC_MESSAGES/django.mo new file mode 100644 index 0000000000000000000000000000000000000000..ddad4d9abffbbbdca949380b915b360b60ebacc0 GIT binary patch literal 1565 zcmbVM&2AGh5Z*%hi^PQkCk`V-MXJh6QuQ~b6{RFqfzqgi0H?~`og}Vy?bP-b%7G(q z0B24J5O2|UfE$7b;2rojsro~k1GO~z?Dcs3eKVf@d2RT8fN=$O0~W)s!oI=s@e4Kq z`whDZyFS$Sn+2|6-2|3^pMXW+4`2-#oC|^lz%uX+zP$rZV?8w7$64Sltha$p;0NGC z;2&TWICCKgo&(wJz&#yjP)U{ zcuF(p;j6t=nxv8Z&)@|PzjVbC#DQnlQITG{wGVj`TYjD0t*l_S|+4)%h*(Ul?y%|=D+pTt=Zzpi#x9K|~Cs66Eo(0uM(9j>ak06MIoIg<7B9_B;#b1{@-f95Ie>}EO@%34Tzsr PuPrqv$$%uEC0~C5R|D!3 literal 0 HcmV?d00001 diff --git a/password_validation/locale/fr/LC_MESSAGES/django.po b/password_validation/locale/fr/LC_MESSAGES/django.po new file mode 100644 index 0000000..732d94f --- /dev/null +++ b/password_validation/locale/fr/LC_MESSAGES/django.po @@ -0,0 +1,59 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-09-16 17:47+0200\n" +"PO-Revision-Date: 2015-09-16 17:56+0100\n" +"Last-Translator: Antoine Fontaine \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"X-Generator: Poedit 1.5.4\n" +"Language-Team: \n" + +#: validation.py:109 +#, python-format +msgid "" +"This password is too short. It must contain at least %(min_length)d " +"characters." +msgstr "" +"Ce mot de passe est trop court. Il doit contenir au moins %(min_length)d " +"charactères." + +#: validation.py:115 +#, python-format +msgid "Your password must contain at least %(min_length)d characters." +msgstr "Votre mot de passe doit contenir au moins %(min_length)d charactères." + +#: validation.py:148 +#, python-format +msgid "The password is too similar to the %(verbose_name)s." +msgstr "Ce mot de passe est trop similaire à %(verbose_name)s." + +#: validation.py:154 +msgid "Your password can't be too similar to your other personal information." +msgstr "" +"Votre mot de passe ne peut pas être similaire à vos autres informations " +"personnelles." + +#: validation.py:179 +msgid "This password is too common." +msgstr "Votre mot de passe est trop courant." + +#: validation.py:184 +msgid "Your password can't be a commonly used password." +msgstr "Votre mot de passe ne peut pas être un mot de passe utilisé couramment. " + +#: validation.py:194 +msgid "This password is entirely numeric." +msgstr "Votre mot de passe est composé uniquement de chiffres." + +#: validation.py:199 +msgid "Your password can't be entirely numeric." +msgstr "Votre mot de passe ne peut pas être composé uniquement de chiffres." diff --git a/setup.py b/setup.py index 922cc07..cef8158 100644 --- a/setup.py +++ b/setup.py @@ -24,6 +24,7 @@ def get_version(): maintainer_email='orcastech@orcasinc.com', url='https://github.com/orcasgit/django-password-validation/', packages=find_packages(), + include_package_data=True, package_data={ 'password_validation': ['common-passwords.txt.gz'], }, From 51eaeaa49fa82f0fcc8995fff68da717fbd93b8a Mon Sep 17 00:00:00 2001 From: Antoine Fontaine Date: Wed, 7 Oct 2015 10:59:05 +0200 Subject: [PATCH 3/3] =?UTF-8?q?Change=20the=20olschool=20"charact=C3=A8re"?= =?UTF-8?q?=20to=20"caract=C3=A8re"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../locale/fr/LC_MESSAGES/django.mo | Bin 1565 -> 1563 bytes .../locale/fr/LC_MESSAGES/django.po | 9 +++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/password_validation/locale/fr/LC_MESSAGES/django.mo b/password_validation/locale/fr/LC_MESSAGES/django.mo index ddad4d9abffbbbdca949380b915b360b60ebacc0..326e4152e268d7d12d276599eff219b08eaee81b 100644 GIT binary patch delta 80 zcmbQsGn;2Zi)ttX1H&{H1_m!6{RT+80%>zr28M7TT??c^{Hq&RMlf+08t59BD;OGV b=48IkxcMQAJ|j\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -24,12 +24,12 @@ msgid "" "characters." msgstr "" "Ce mot de passe est trop court. Il doit contenir au moins %(min_length)d " -"charactères." +"caractères." #: validation.py:115 #, python-format msgid "Your password must contain at least %(min_length)d characters." -msgstr "Votre mot de passe doit contenir au moins %(min_length)d charactères." +msgstr "Votre mot de passe doit contenir au moins %(min_length)d caractères." #: validation.py:148 #, python-format @@ -48,7 +48,8 @@ msgstr "Votre mot de passe est trop courant." #: validation.py:184 msgid "Your password can't be a commonly used password." -msgstr "Votre mot de passe ne peut pas être un mot de passe utilisé couramment. " +msgstr "" +"Votre mot de passe ne peut pas être un mot de passe utilisé couramment. " #: validation.py:194 msgid "This password is entirely numeric."