diff --git a/cas_server/forms.py b/cas_server/forms.py index 7b92c9e..90eb92f 100644 --- a/cas_server/forms.py +++ b/cas_server/forms.py @@ -29,7 +29,7 @@ class UserCredential(forms.Form): user.save() self.user = user else: - raise forms.ValidationError("Bad user") + raise forms.ValidationError(_(u"Bad user")) class TicketForm(forms.ModelForm): diff --git a/cas_server/locale/en/LC_MESSAGES/django.po b/cas_server/locale/en/LC_MESSAGES/django.po index 451b06b..eeee9b0 100644 --- a/cas_server/locale/en/LC_MESSAGES/django.po +++ b/cas_server/locale/en/LC_MESSAGES/django.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: cas_server\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-05-22 17:49+0200\n" -"PO-Revision-Date: 2015-05-22 17:52+0100\n" +"POT-Creation-Date: 2015-05-23 19:01+0200\n" +"PO-Revision-Date: 2015-05-23 19:03+0100\n" "Last-Translator: Valentin Samir \n" "Language-Team: django \n" "Language: en\n" @@ -29,6 +29,10 @@ msgstr "password" msgid "warn" msgstr " Warn me before logging me into other sites." +#: forms.py:32 +msgid "Bad user" +msgstr "The credentials you provided cannot be determined to be authentic." + #: models.py:57 #, python-format msgid "Error during service logout %s" @@ -67,45 +71,45 @@ msgstr "Login" msgid "Connect to the service" msgstr "Connect to the service" -#: views.py:74 +#: views.py:76 #, python-format msgid "Authentication has been required by service %(name)s (%(url)s)" msgstr "Authentication has been required by service %(name)s (%(url)s)" -#: views.py:79 +#: views.py:81 #, python-format msgid "Service %(url)s non allowed." msgstr "Service %(url)s non allowed." -#: views.py:81 +#: views.py:83 msgid "Username non allowed" msgstr "Username non allowed" -#: views.py:83 +#: views.py:85 msgid "User charateristics non allowed" msgstr "User charateristics non allowed" -#: views.py:85 +#: views.py:87 #, python-format msgid "The attribut %(field)s is needed to use that service" msgstr "The attribut %(field)s is needed to use that service" -#: views.py:101 +#: views.py:103 #, python-format msgid "Authentication renewal required by service %(name)s (%(url)s)." msgstr "Authentication renewal required by service %(name)s (%(url)s)." -#: views.py:103 +#: views.py:105 #, python-format msgid "Authentication required by service %(name)s (%(url)s)." msgstr "Authentication required by service %(name)s (%(url)s)." -#: views.py:105 +#: views.py:107 #, python-format msgid "Service %s non allowed" msgstr "Service %s non allowed" -#: views.py:121 +#: views.py:123 msgid "Successfully logout" msgstr "" "

Logout successful

You have successfully logged out of the Central " diff --git a/cas_server/locale/fr/LC_MESSAGES/django.po b/cas_server/locale/fr/LC_MESSAGES/django.po index ded5e12..fc6ec40 100644 --- a/cas_server/locale/fr/LC_MESSAGES/django.po +++ b/cas_server/locale/fr/LC_MESSAGES/django.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: cas_server\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-05-22 17:42+0200\n" -"PO-Revision-Date: 2015-05-22 17:53+0100\n" +"POT-Creation-Date: 2015-05-23 19:01+0200\n" +"PO-Revision-Date: 2015-05-23 19:02+0100\n" "Last-Translator: Valentin Samir \n" "Language-Team: django \n" "Language: fr\n" @@ -30,6 +30,10 @@ msgstr "mot de passe" msgid "warn" msgstr "Prévenez-moi avant d'accéder à d'autres services." +#: forms.py:32 +msgid "Bad user" +msgstr "Les informations transmises n'ont pas permis de vous authentifier." + #: models.py:57 #, python-format msgid "Error during service logout %s" @@ -68,47 +72,47 @@ msgstr "Connexion" msgid "Connect to the service" msgstr "Se connecter au service" -#: views.py:74 +#: views.py:76 #, python-format msgid "Authentication has been required by service %(name)s (%(url)s)" msgstr "" "Une demande d'authentification a été émise pour le service %(name)s " "(%(url)s)." -#: views.py:79 +#: views.py:81 #, python-format msgid "Service %(url)s non allowed." msgstr "le service %(url)s n'est pas autorisé." -#: views.py:81 +#: views.py:83 msgid "Username non allowed" msgstr "Nom d'utilisateur non authorisé" -#: views.py:83 +#: views.py:85 msgid "User charateristics non allowed" msgstr "Caractéristique utilisateur non autorisée" -#: views.py:85 +#: views.py:87 #, python-format msgid "The attribut %(field)s is needed to use that service" msgstr "L'attribut %(field)s est nécessaire pour se connecter à ce service" -#: views.py:101 +#: views.py:103 #, python-format msgid "Authentication renewal required by service %(name)s (%(url)s)." msgstr "Demande de réauthentification pour le service %(name)s (%(url)s)." -#: views.py:103 +#: views.py:105 #, python-format msgid "Authentication required by service %(name)s (%(url)s)." msgstr "Authentification requise par le service %(name)s (%(url)s)." -#: views.py:105 +#: views.py:107 #, python-format msgid "Service %s non allowed" msgstr "Le service %s n'est pas autorisé" -#: views.py:121 +#: views.py:123 msgid "Successfully logout" msgstr "" "

Déconnexion réussie

\n"