mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
[fix] Add missing string in translations
This commit is contained in:
parent
026745a135
commit
9e4b266a5a
3 changed files with 5 additions and 1 deletions
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue