[fix] Add missing string in translations

This commit is contained in:
Jérôme Lebleu 2014-05-28 21:17:55 +02:00
parent 026745a135
commit 9e4b266a5a
3 changed files with 5 additions and 1 deletions

View file

@ -12,6 +12,7 @@
"unable_retrieve_session" : "Unable to retrieve the session",
"ldap_server_down" : "Unable to reach LDAP server",
"ldap_operation_error" : "An error occured during LDAP operation",
"ldap_attribute_already_exists" : "Attribute already exists: '%s=%s'",
"password" : "Password",
"invalid_password" : "Invalid password",

View file

@ -12,6 +12,7 @@
"unable_retrieve_session" : "Impossible de récupérer la session",
"ldap_server_down" : "Impossible d'atteindre le serveur LDAP",
"ldap_operation_error" : "Une erreur est survenue lors de l'opération LDAP",
"ldap_attribute_already_exists" : "L'attribut existe déjà : '%s=%s'",
"password" : "Mot de passe",
"invalid_password" : "Mot de passe incorrect",

View file

@ -191,5 +191,7 @@ class Authenticator(BaseAuthenticator):
if not self.search(filter=attr + '=' + value):
continue
else:
raise MoulinetteError(17, 'Attribute already exists "%s=%s"' % (attr, value))
raise MoulinetteError(errno.EEXIST,
m18n.g('ldap_attribute_already_exists')
% (attr, value))
return True