LSldapObject: defaulty set attribute default value on creation even if is not present in form

Could be configured using the new set_default_value_on_creation_if_empty 
parameter.
This commit is contained in:
Benjamin Renard 2024-03-04 11:34:41 +01:00
parent 4ce95e54b8
commit 1a88707f87
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC
6 changed files with 218 additions and 154 deletions

View file

@ -33,6 +33,7 @@ tableau, les clé les noms des attributs et les valeurs liés sont la configurat
'generate_function' => 'fonction1',
'generate_value_format' => '[LSformat]',
'default_value' => 'valeur1',
'set_default_value_on_creation_if_empty' => [booleen],
'check_data' => array (
// Régle de vérification syntaxique des données saisies
),
@ -157,6 +158,12 @@ tableau, les clé les noms des attributs et les valeurs liés sont la configurat
l'attribut si aucune autre méthode n'est disponible (via une fonction ou un
[LSformat](../../global/LSformat.md#format-parametrable)).
- `set_default_value_on_creation_if_empty`
Booléen permettant de définir si la valeur de l'attribut doit être initialisée avec sa valeur par
défaut à la création de l'objet si aucune autre valeur n'as été fournie dans le contexte de
création (par défaut : *1*).
- `check_data`
Tableau associatif contenant les règles de vérification syntaxique des données de l'attribut.

View file

@ -543,22 +543,22 @@ class LSattribute extends LSlog_staticLoggerClass {
}
/**
* Vérifie si l'attribut est obligatoire
* Check if the attribute is required
*
* @author Benjamin Renard <brenard@easter-eggs.com>
*
* @return boolean true si l'attribut est obligatoire, false sinon
* @return boolean True if the attribute is required, false otherwise.
*/
public function isRequired() {
return $this -> getConfig('required', false, 'bool');
}
/**
* Vérifie si la valeur de l'attribut peut être générée
* Check if the attribute value could be generated
*
* @author Benjamin Renard <brenard@easter-eggs.com>
*
* @return boolean true si la valeur de l'attribut peut être générée, false sinon
* @return boolean True if the attribute value could be generated, false otherwise.
*/
public function canBeGenerated() {
$format = $this -> getConfig('generate_value_format', $this -> getConfig('default_value'));
@ -571,11 +571,12 @@ class LSattribute extends LSlog_staticLoggerClass {
}
/**
* Génere la valeur de l'attribut à partir de la fonction de génération
* Generate attribute value using its generation function, its generation format or its default
* value.
*
* @author Benjamin Renard <brenard@easter-eggs.com>
*
* @return boolean true si la valeur à put être générée, false sinon
* @return boolean True if value has been generated, false otherwise.
*/
public function generateValue() {
$value = $this -> getConfig('default_value', false);
@ -595,6 +596,23 @@ class LSattribute extends LSlog_staticLoggerClass {
return false;
}
/**
* Set attribute value as default
*
* @author Benjamin Renard <brenard@easter-eggs.com>
*
* @return boolean True if value has been set as default, false otherwise
*/
public function setValueAsDefault() {
$value = $this -> getConfig('default_value', false);
if ($value !== false) {
$this -> updateData = ensureIsArray($value);
self :: log_debug($this."setValueAsDefault(): default values = ".varDump($this -> updateData));
return true;
}
return false;
}
/**
* Retourne la valeur de l'attribut pour son enregistrement dans l'annuaire
* si l'attribut à été modifié.
@ -846,3 +864,9 @@ LSerror :: defineError('LSattribute_08',
LSerror :: defineError('LSattribute_09',
___("LSattribute: The attr_%{type} of the attribute %{name} is not yet defined.")
);
LSerror :: defineError('LSattribute_10',
___("LSattribute: The default value of the attribute %{attr} is invalid.")
);
LSerror :: defineError('LSattribute_11',
___("LSattribute: Fail to set attribute %{attr} value as default.")
);

View file

@ -541,6 +541,23 @@ class LSldapObject extends LSlog_staticLoggerClass {
$retval = false;
}
}
elseif (
empty($attr_values)
&& !is_empty($attr -> getConfig('default_value'))
&& $idForm == 'create'
&& $attr -> getConfig('set_default_value_on_creation_if_empty', true, 'bool')
) {
if ($attr -> setValueAsDefault()) {
if (!$this -> validateAttrData($LSform, $attr, $justCheck)) {
LSerror :: addErrorCode('LSattribute_10',$attr -> getLabel());
$retval = false;
}
}
else {
LSerror :: addErrorCode('LSattribute_11',$attr -> getLabel());
$retval = false;
}
}
}
}
return $retval;

View file

@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: LdapSaisie\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: \n"
"PO-Revision-Date: 2024-02-28 18:00+0100\n"
"PO-Revision-Date: 2024-03-04 11:34+0100\n"
"Last-Translator: Benjamin Renard <brenard@easter-eggs.com>\n"
"Language-Team: LdapSaisie <ldapsaisie-users@lists.labs.libre-entreprise."
"org>\n"
@ -813,7 +813,7 @@ msgstr ""
#: includes/class/class.LSformRule.php:89
#: includes/class/class.LSformRule.php:292
#: includes/class/class.LSformElement_gpg_pub_key.php:90
#: includes/class/class.LSformElement_gpg_pub_key.php:101
#: includes/class/class.LSattr_html_date.php:47
#: includes/class/class.LSattr_html_select_list.php:63
#: templates/default/LSformElement_gpg_pub_key_field.tpl:9
@ -1072,7 +1072,7 @@ msgstr ""
"formater la valeur de l'attribut LDAP."
#: includes/class/class.LSformElement_ssh_key.php:83
#: includes/class/class.LSformElement_gpg_pub_key.php:80
#: includes/class/class.LSformElement_gpg_pub_key.php:91
msgid "Display the full key."
msgstr "Affichier la clé en entier."
@ -1535,30 +1535,29 @@ msgstr ""
"LSformRule_differentPassword : Les autres attributs mots de passe doivent "
"utiliser LSattr_ldap :: password. Ce n'est pas le cas de l'attribut %{attr}."
#: includes/class/class.LSattribute.php:823
#: includes/class/class.LSattribute.php:841
msgid ""
"LSattribute : Attribute %{attr} : LDAP or HTML types unknow (LDAP = %{ldap} "
"& HTML = %{html})."
"LSattribute: Attribute %{attr} : LDAP or HTML types unknow (LDAP = %{ldap} & "
"HTML = %{html})."
msgstr ""
"LSattribute : Attribut %{attr} : Les types LDAP ou HTML sont inconnus (LDAP "
"= %{ldap} & HTML = %{html})."
#: includes/class/class.LSattribute.php:826
#: includes/class/class.LSattribute.php:844
msgid ""
"LSattribute : The function %{func} to display the attribute %{attr} is "
"unknow."
"LSattribute: The function %{func} to display the attribute %{attr} is unknow."
msgstr ""
"LSattribute : La fonction %{func} pour afficher l'attribut %{attr} est "
"inconnue."
#: includes/class/class.LSattribute.php:829
#: includes/class/class.LSattribute.php:847
msgid ""
"LSattribute: The rule %{rule} to validate the attribute %{attr} is unknow."
msgstr ""
"LSattribute : La règle %{rule} de validation de l'attribut %{attr} n'existe "
"pas."
#: includes/class/class.LSattribute.php:832
#: includes/class/class.LSattribute.php:850
msgid ""
"LSattribute: Configuration data to verify the attribute %{attr} are "
"incorrect."
@ -1566,22 +1565,22 @@ msgstr ""
"LSattribute : Les données de configuration pour vérifier l'attribut %{attr} "
"sont incorrecte."
#: includes/class/class.LSattribute.php:835
#: includes/class/class.LSattribute.php:853
msgid ""
"LSattribute: The function %{func} to save the attribute %{attr} is unknow."
msgstr ""
"LSattribute : La fonction %{func} pour sauvegarder l'attribut %{attr} est "
"inconnue."
#: includes/class/class.LSattribute.php:838
#: includes/class/class.LSattribute.php:856
msgid "LSattribute: The value of the attribute %{attr} can't be generated."
msgstr "LSattribute : La valeur de l'attribut %{attr} ne peut être générée."
#: includes/class/class.LSattribute.php:841
#: includes/class/class.LSattribute.php:859
msgid "LSattribute: Generation of the attribute %{attr} failed."
msgstr "LSattribute : La génération de l'attribut %{attr} a échouée."
#: includes/class/class.LSattribute.php:844
#: includes/class/class.LSattribute.php:862
msgid ""
"LSattribute: Generation of the attribute %{attr} did not return a correct "
"value."
@ -1589,13 +1588,23 @@ msgstr ""
"LSattribute : La génération de l'attribut %{attr} n'a pas retournée de "
"valeur correcte."
#: includes/class/class.LSattribute.php:847
#: includes/class/class.LSattribute.php:865
msgid ""
"LSattribute: The attr_%{type} of the attribute %{name} is not yet defined."
msgstr ""
"LSattribute : L'objet attr_%{type} de l'attribut %{name} n'est pas encore "
"défini."
#: includes/class/class.LSattribute.php:868
msgid "LSattribute: The default value of the attribute %{attr} is invalid."
msgstr "LSattribute : La valeur par défaut de l'attribut %{attr} est invalide."
#: includes/class/class.LSattribute.php:871
msgid "LSattribute: Fail to set attribute %{attr} value as default."
msgstr ""
"LSattribute : Impossible de définir la valeur de l'attribut %{attr} par "
"défaut."
#: includes/class/class.LSformRule_callable.php:71
msgid "LSformRule_callable : The given callable option is not callable"
msgstr "LSformRule_callable : Le paramètre fournis n'est pas exécutable"
@ -1829,25 +1838,25 @@ msgstr ""
msgid "Invalid file type (%{type})."
msgstr "Type de fichier invalide (%{type})."
#: includes/class/class.LSldapObject.php:585
#: includes/class/class.LSldapObject.php:603
msgid "The attribute %{attr} is not valid."
msgstr "L'attribut %{attr} n'est pas valide."
#: includes/class/class.LSldapObject.php:3165
#: includes/class/class.LSldapObject.php:3183
msgid "LSldapObject : Object type unknown."
msgstr "LSldapObject : Type d'objet inconnu."
#: includes/class/class.LSldapObject.php:3168
#: includes/class/class.LSldapObject.php:3186
msgid "LSldapObject : Update form is not defined for the object %{obj}."
msgstr ""
"LSldapObject : Le formulaire de mise à jour n'est pas défini pour l'objet "
"%{obj}."
#: includes/class/class.LSldapObject.php:3171
#: includes/class/class.LSldapObject.php:3189
msgid "LSldapObject : No form exists for the object %{obj}."
msgstr "LSldapObject : Aucun formulaire n'existe pour l'objet %{obj}"
#: includes/class/class.LSldapObject.php:3174
#: includes/class/class.LSldapObject.php:3192
msgid ""
"LSldapObject : The function %{func} to validate the attribute %{attr} the "
"object %{obj} is unknow."
@ -1855,7 +1864,7 @@ msgstr ""
"LSldapObject : La fonction %{func} pour valider l'attribut %{attr} de "
"l'objet %{obj} est inconnue."
#: includes/class/class.LSldapObject.php:3177
#: includes/class/class.LSldapObject.php:3195
msgid ""
"LSldapObject : Configuration data are missing to validate the attribute "
"%{attr} of the object %{obj}."
@ -1863,7 +1872,7 @@ msgstr ""
"LSldapObject : Des données de configurations sont manquantes pour pouvoir "
"valider l'attribut %{attr} de l'objet %{obj}."
#: includes/class/class.LSldapObject.php:3181
#: includes/class/class.LSldapObject.php:3199
msgid ""
"LSldapObject : The function %{func} to be executed on the object event "
"%{event} doesn't exist."
@ -1871,14 +1880,14 @@ msgstr ""
"LSldapObject : La fonction %{func} devant être exécutée lors de l'évènement "
"%{event} de l'objet n'existe pas."
#: includes/class/class.LSldapObject.php:3184
#: includes/class/class.LSldapObject.php:3202
msgid ""
"LSldapObject : The %{func} execution on the object event %{event} failed."
msgstr ""
"LSldapObject : L'exécution de la fonction %{func} lors de l'évènement "
"%{event} de l'objet a échouée."
#: includes/class/class.LSldapObject.php:3188
#: includes/class/class.LSldapObject.php:3206
msgid ""
"LSldapObject : Class %{class}, which method %{meth} to be executed on the "
"object event %{event}, doesn't exist."
@ -1886,7 +1895,7 @@ msgstr ""
"La classe %{class}, contenant la méthode %{meth} devant être exécutée lors "
"de l'évènement %{event} de l'objet, n'existe pas."
#: includes/class/class.LSldapObject.php:3191
#: includes/class/class.LSldapObject.php:3209
msgid ""
"LSldapObject : Method %{meth} within %{class} class to be executed on object "
"event %{event}, doesn't exist."
@ -1894,7 +1903,7 @@ msgstr ""
"LSldapObject : La méthode %{meth} de la classe %{class} devant être exécutée "
"lors de l'évènement %{event} de l'objet n'existe pas."
#: includes/class/class.LSldapObject.php:3194
#: includes/class/class.LSldapObject.php:3212
msgid ""
"LSldapObject : Error during execute %{meth} method within %{class} class, to "
"be executed on object event %{event}."
@ -1902,7 +1911,7 @@ msgstr ""
"LSldapObject : Erreur durant l'exécution de la méthode %{meth} de la classe "
"%{class} devant être exécutée lors de l'évènement %{event} de l'objet."
#: includes/class/class.LSldapObject.php:3198
#: includes/class/class.LSldapObject.php:3216
msgid ""
"LSldapObject : Some configuration data of the object type %{obj} are missing "
"to generate the DN of the new object."
@ -1910,7 +1919,7 @@ msgstr ""
"LSldapObject : Des informations de configuration du type d'objet %{obj} sont "
"manquantes pour la génération du DN du nouvel objet."
#: includes/class/class.LSldapObject.php:3201
#: includes/class/class.LSldapObject.php:3219
msgid ""
"LSldapObject : The attibute %{attr} of the object is not yet defined. Can't "
"generate DN."
@ -1918,11 +1927,11 @@ msgstr ""
"LSldapObject : L'attribut %{attr} de l'objet n'est pas encore défini. "
"Impossible de générer le DN."
#: includes/class/class.LSldapObject.php:3204
#: includes/class/class.LSldapObject.php:3222
msgid "LSldapObject : Without DN, the object could not be changed."
msgstr "LSldapObject : Sans DN, l'objet ne peut pas être modifié."
#: includes/class/class.LSldapObject.php:3207
#: includes/class/class.LSldapObject.php:3225
msgid ""
"LSldapObject : The attribute %{attr_depend} depending on the attribute "
"%{attr} doesn't exist."
@ -1930,39 +1939,39 @@ msgstr ""
"LSldapObject : L'attritbut %{attr_depend} dépendant de l'attribut %{attr} "
"n'existe pas."
#: includes/class/class.LSldapObject.php:3210
#: includes/class/class.LSldapObject.php:3228
msgid "LSldapObject : Error during deleting the object %{objectname}."
msgstr "LSldapObject : Erreur durant la suppression de l'objet %{objectname}"
#: includes/class/class.LSldapObject.php:3214
#: includes/class/class.LSldapObject.php:3232
msgid ""
"LSldapObject : Error during actions to be executed before renaming the objet."
msgstr ""
"LSldapObject : Erreur durant les actions devant être exécutée avant de "
"renommer l'objet."
#: includes/class/class.LSldapObject.php:3217
#: includes/class/class.LSldapObject.php:3235
msgid ""
"LSldapObject : Error during actions to be executed after renaming the objet."
msgstr ""
"LSldapObject : Erreur durant les actions devant être exécutée après avoir "
"renommé l'objet."
#: includes/class/class.LSldapObject.php:3221
#: includes/class/class.LSldapObject.php:3239
msgid ""
"LSldapObject : Error during actions to be executed before deleting the objet."
msgstr ""
"LSldapObject : Erreur durant les actions devant être exécutée avant de "
"supprimer l'objet."
#: includes/class/class.LSldapObject.php:3224
#: includes/class/class.LSldapObject.php:3242
msgid ""
"LSldapObject : Error during actions to be executed after deleting the objet."
msgstr ""
"LSldapObject : Erreur durant les actions devant être exécutée après avoir "
"supprimé l'objet."
#: includes/class/class.LSldapObject.php:3228
#: includes/class/class.LSldapObject.php:3246
msgid ""
"LSldapObject : Error during the actions to be executed before creating the "
"object."
@ -1970,7 +1979,7 @@ msgstr ""
"LSldapObject : Erreur durant les actions devant être exécutée avant de créer "
"l'objet."
#: includes/class/class.LSldapObject.php:3231
#: includes/class/class.LSldapObject.php:3249
msgid ""
"LSldapObject : Error during the actions to be executed after creating the "
"object. It was created anyway."
@ -1978,7 +1987,7 @@ msgstr ""
"LSldapObject : Erreur durant les actions devant être exécutées après la "
"création de l'objet. Il a tout de même été créé."
#: includes/class/class.LSldapObject.php:3235
#: includes/class/class.LSldapObject.php:3253
msgid ""
"LSldapObject : The function %{func} to be executed before creating the "
"object doesn't exist."
@ -1986,7 +1995,7 @@ msgstr ""
"LSldapObject : La fonction %{func} devant être exécutée avant la création de "
"l'objet n'existe pas."
#: includes/class/class.LSldapObject.php:3238
#: includes/class/class.LSldapObject.php:3256
msgid ""
"LSldapObject : Error executing the function %{func} to be execute after "
"deleting the object."
@ -1994,7 +2003,7 @@ msgstr ""
"LSldapObject : Erreur durant l'exécution de la fonction %{func} devant être "
"exécutée après la suppression de l'objet."
#: includes/class/class.LSldapObject.php:3241
#: includes/class/class.LSldapObject.php:3259
msgid ""
"LSldapObject : The function %{func} to be executed after deleting the object "
"doesn't exist."
@ -2002,7 +2011,7 @@ msgstr ""
"LSldapObject : La fonction %{func} devant être exécutée après la suppression "
"de l'objet n'existe pas."
#: includes/class/class.LSldapObject.php:3244
#: includes/class/class.LSldapObject.php:3262
msgid ""
"LSldapObject : Error executing the function %{func} to be execute after "
"creating the object."
@ -2010,7 +2019,7 @@ msgstr ""
"LSldapObject : Erreur durant l'exécution de la fonction %{func} devant être "
"exécutée après la création de l'objet."
#: includes/class/class.LSldapObject.php:3248
#: includes/class/class.LSldapObject.php:3266
msgid ""
"LSldapObject : %{func} function, to be executed on object event %{event}, "
"doesn't exist."
@ -2018,7 +2027,7 @@ msgstr ""
"LSldapObject : La fonction %{func}, devant être exécutée lors de l'évènement "
"%{event} de l'objet, n'existe pas."
#: includes/class/class.LSldapObject.php:3251
#: includes/class/class.LSldapObject.php:3269
msgid ""
"LSldapObject : Error during the execution of %{func} function on object "
"event %{event}."
@ -2026,7 +2035,7 @@ msgstr ""
"LSldapObject : Erreur durant l'exécution de la fonction %{func} lors de "
"l'évènement %{event} de l'objet."
#: includes/class/class.LSldapObject.php:3255
#: includes/class/class.LSldapObject.php:3273
msgid ""
"LSldapObject : %{meth} method, to be executed on object event %{event}, "
"doesn't exist."
@ -2034,7 +2043,7 @@ msgstr ""
"LSldapObject : La méthode %{meth}, devant être exécutée lors de l'évènement "
"%{event} de l'objet, n'existe pas."
#: includes/class/class.LSldapObject.php:3258
#: includes/class/class.LSldapObject.php:3276
msgid ""
"LSldapObject : Error during execution of %{meth} method on object event "
"%{event}."
@ -2042,13 +2051,13 @@ msgstr ""
"LSldapObject : Erreur durant l'exécution de la méthode %{meth} lors de "
"l'évènement %{event} de l'objet."
#: includes/class/class.LSldapObject.php:3261
#: includes/class/class.LSldapObject.php:3279
msgid "LSldapObject : Error during generate LDAP filter for %{LSobject}."
msgstr ""
"LSldapObject : Erreur durant la génération du filtre LDAP de l'objet "
"%{LSobject}."
#: includes/class/class.LSldapObject.php:3265
#: includes/class/class.LSldapObject.php:3283
msgid ""
"LSldapObject : Error during execution of the custom action %{customAction} "
"on %{objectname}."
@ -2056,22 +2065,22 @@ msgstr ""
"LSldapObject : Erreur durant l'exécution de l'action personnalisée "
"%{customAction} sur l'objet %{objectname}."
#: includes/class/class.LSldapObject.php:3269
#: includes/class/class.LSldapObject.php:3287
msgid "LSldapObject : Fail to retrieve container DN."
msgstr "LSldapObject : Impossible de récupérer le DN parent."
#: includes/class/class.LSldapObject.php:3272
#: includes/class/class.LSldapObject.php:3290
msgid ""
"LSldapObject : The function %{func} to generate container DN is not callable."
msgstr ""
"LSldapObject : La fonction %{func} pour générer le DN parent n'est pas "
"exécutable."
#: includes/class/class.LSldapObject.php:3275
#: includes/class/class.LSldapObject.php:3293
msgid "LSldapObject : Error during generating container DN : %{error}"
msgstr "LSldapObject : Erreur durant la génération du DN parent : %{error}."
#: includes/class/class.LSldapObject.php:3278
#: includes/class/class.LSldapObject.php:3296
msgid ""
"LSldapObject : An LDAP object with the same DN as generated for this new one "
"already exists. Please verify your configuration."
@ -2079,7 +2088,7 @@ msgstr ""
"LSldapObject : Un objet LDAP avec le même DN que celui généré pour ce nouvel "
"objet existe déjà. Merci de vérifier votre configuration."
#: includes/class/class.LSldapObject.php:3283
#: includes/class/class.LSldapObject.php:3301
msgid ""
"LSrelation : Some parameters are missing in the call of methods to handle "
"standard relations (Method : %{meth})."
@ -2087,7 +2096,7 @@ msgstr ""
"LSrelation : Des paramètres sont manquants dans l'appel des méthodes de "
"manipulation des relations standards (méthode : %{meth})."
#: includes/class/class.LSformElement_gpg_pub_key.php:103
#: includes/class/class.LSformElement_gpg_pub_key.php:113
msgid ""
"LSformElement_gpg_pub_key: PHP GnuPG extension is missing, can't parse value."
msgstr ""
@ -3296,7 +3305,7 @@ msgstr "Erreur inconnue"
msgid "Unknown error : %{error}"
msgstr "Erreur inconnue : %{error}"
#: includes/class/class.LSformRule_gpg_pub_key.php:55
#: includes/class/class.LSformRule_gpg_pub_key.php:61
msgid ""
"LSformRule_gpg_pub_key: PHP GnuPG extension is missing, can't validate value."
msgstr ""

View file

@ -688,7 +688,7 @@ msgstr ""
#: includes/class/class.LSformRule.php:89
#: includes/class/class.LSformRule.php:292
#: includes/class/class.LSformElement_gpg_pub_key.php:90
#: includes/class/class.LSformElement_gpg_pub_key.php:101
#: includes/class/class.LSattr_html_date.php:47
#: includes/class/class.LSattr_html_select_list.php:63
#: templates/default/LSformElement_gpg_pub_key_field.tpl:9
@ -921,7 +921,7 @@ msgid ""
msgstr ""
#: includes/class/class.LSformElement_ssh_key.php:83
#: includes/class/class.LSformElement_gpg_pub_key.php:80
#: includes/class/class.LSformElement_gpg_pub_key.php:91
msgid "Display the full key."
msgstr ""
@ -1310,53 +1310,60 @@ msgid ""
"LSattr_ldap :: password. It's not the case of the attribure %{attr}."
msgstr ""
#: includes/class/class.LSattribute.php:823
#: includes/class/class.LSattribute.php:841
msgid ""
"LSattribute : Attribute %{attr} : LDAP or HTML types unknow (LDAP = %{ldap} "
"& HTML = %{html})."
"LSattribute: Attribute %{attr} : LDAP or HTML types unknow (LDAP = %{ldap} & "
"HTML = %{html})."
msgstr ""
#: includes/class/class.LSattribute.php:826
#: includes/class/class.LSattribute.php:844
msgid ""
"LSattribute : The function %{func} to display the attribute %{attr} is "
"unknow."
"LSattribute: The function %{func} to display the attribute %{attr} is unknow."
msgstr ""
#: includes/class/class.LSattribute.php:829
#: includes/class/class.LSattribute.php:847
msgid ""
"LSattribute: The rule %{rule} to validate the attribute %{attr} is unknow."
msgstr ""
#: includes/class/class.LSattribute.php:832
#: includes/class/class.LSattribute.php:850
msgid ""
"LSattribute: Configuration data to verify the attribute %{attr} are "
"incorrect."
msgstr ""
#: includes/class/class.LSattribute.php:835
#: includes/class/class.LSattribute.php:853
msgid ""
"LSattribute: The function %{func} to save the attribute %{attr} is unknow."
msgstr ""
#: includes/class/class.LSattribute.php:838
#: includes/class/class.LSattribute.php:856
msgid "LSattribute: The value of the attribute %{attr} can't be generated."
msgstr ""
#: includes/class/class.LSattribute.php:841
#: includes/class/class.LSattribute.php:859
msgid "LSattribute: Generation of the attribute %{attr} failed."
msgstr ""
#: includes/class/class.LSattribute.php:844
#: includes/class/class.LSattribute.php:862
msgid ""
"LSattribute: Generation of the attribute %{attr} did not return a correct "
"value."
msgstr ""
#: includes/class/class.LSattribute.php:847
#: includes/class/class.LSattribute.php:865
msgid ""
"LSattribute: The attr_%{type} of the attribute %{name} is not yet defined."
msgstr ""
#: includes/class/class.LSattribute.php:868
msgid "LSattribute: The default value of the attribute %{attr} is invalid."
msgstr ""
#: includes/class/class.LSattribute.php:871
msgid "LSattribute: Fail to set attribute %{attr} value as default."
msgstr ""
#: includes/class/class.LSformRule_callable.php:71
msgid "LSformRule_callable : The given callable option is not callable"
msgstr ""
@ -1550,205 +1557,205 @@ msgstr ""
msgid "Invalid file type (%{type})."
msgstr ""
#: includes/class/class.LSldapObject.php:585
#: includes/class/class.LSldapObject.php:603
msgid "The attribute %{attr} is not valid."
msgstr ""
#: includes/class/class.LSldapObject.php:3165
#: includes/class/class.LSldapObject.php:3183
msgid "LSldapObject : Object type unknown."
msgstr ""
#: includes/class/class.LSldapObject.php:3168
#: includes/class/class.LSldapObject.php:3186
msgid "LSldapObject : Update form is not defined for the object %{obj}."
msgstr ""
#: includes/class/class.LSldapObject.php:3171
#: includes/class/class.LSldapObject.php:3189
msgid "LSldapObject : No form exists for the object %{obj}."
msgstr ""
#: includes/class/class.LSldapObject.php:3174
#: includes/class/class.LSldapObject.php:3192
msgid ""
"LSldapObject : The function %{func} to validate the attribute %{attr} the "
"object %{obj} is unknow."
msgstr ""
#: includes/class/class.LSldapObject.php:3177
#: includes/class/class.LSldapObject.php:3195
msgid ""
"LSldapObject : Configuration data are missing to validate the attribute "
"%{attr} of the object %{obj}."
msgstr ""
#: includes/class/class.LSldapObject.php:3181
#: includes/class/class.LSldapObject.php:3199
msgid ""
"LSldapObject : The function %{func} to be executed on the object event "
"%{event} doesn't exist."
msgstr ""
#: includes/class/class.LSldapObject.php:3184
#: includes/class/class.LSldapObject.php:3202
msgid ""
"LSldapObject : The %{func} execution on the object event %{event} failed."
msgstr ""
#: includes/class/class.LSldapObject.php:3188
#: includes/class/class.LSldapObject.php:3206
msgid ""
"LSldapObject : Class %{class}, which method %{meth} to be executed on the "
"object event %{event}, doesn't exist."
msgstr ""
#: includes/class/class.LSldapObject.php:3191
#: includes/class/class.LSldapObject.php:3209
msgid ""
"LSldapObject : Method %{meth} within %{class} class to be executed on object "
"event %{event}, doesn't exist."
msgstr ""
#: includes/class/class.LSldapObject.php:3194
#: includes/class/class.LSldapObject.php:3212
msgid ""
"LSldapObject : Error during execute %{meth} method within %{class} class, to "
"be executed on object event %{event}."
msgstr ""
#: includes/class/class.LSldapObject.php:3198
#: includes/class/class.LSldapObject.php:3216
msgid ""
"LSldapObject : Some configuration data of the object type %{obj} are missing "
"to generate the DN of the new object."
msgstr ""
#: includes/class/class.LSldapObject.php:3201
#: includes/class/class.LSldapObject.php:3219
msgid ""
"LSldapObject : The attibute %{attr} of the object is not yet defined. Can't "
"generate DN."
msgstr ""
#: includes/class/class.LSldapObject.php:3204
#: includes/class/class.LSldapObject.php:3222
msgid "LSldapObject : Without DN, the object could not be changed."
msgstr ""
#: includes/class/class.LSldapObject.php:3207
#: includes/class/class.LSldapObject.php:3225
msgid ""
"LSldapObject : The attribute %{attr_depend} depending on the attribute "
"%{attr} doesn't exist."
msgstr ""
#: includes/class/class.LSldapObject.php:3210
#: includes/class/class.LSldapObject.php:3228
msgid "LSldapObject : Error during deleting the object %{objectname}."
msgstr ""
#: includes/class/class.LSldapObject.php:3214
#: includes/class/class.LSldapObject.php:3232
msgid ""
"LSldapObject : Error during actions to be executed before renaming the objet."
msgstr ""
#: includes/class/class.LSldapObject.php:3217
#: includes/class/class.LSldapObject.php:3235
msgid ""
"LSldapObject : Error during actions to be executed after renaming the objet."
msgstr ""
#: includes/class/class.LSldapObject.php:3221
#: includes/class/class.LSldapObject.php:3239
msgid ""
"LSldapObject : Error during actions to be executed before deleting the objet."
msgstr ""
#: includes/class/class.LSldapObject.php:3224
#: includes/class/class.LSldapObject.php:3242
msgid ""
"LSldapObject : Error during actions to be executed after deleting the objet."
msgstr ""
#: includes/class/class.LSldapObject.php:3228
#: includes/class/class.LSldapObject.php:3246
msgid ""
"LSldapObject : Error during the actions to be executed before creating the "
"object."
msgstr ""
#: includes/class/class.LSldapObject.php:3231
#: includes/class/class.LSldapObject.php:3249
msgid ""
"LSldapObject : Error during the actions to be executed after creating the "
"object. It was created anyway."
msgstr ""
#: includes/class/class.LSldapObject.php:3235
#: includes/class/class.LSldapObject.php:3253
msgid ""
"LSldapObject : The function %{func} to be executed before creating the "
"object doesn't exist."
msgstr ""
#: includes/class/class.LSldapObject.php:3238
#: includes/class/class.LSldapObject.php:3256
msgid ""
"LSldapObject : Error executing the function %{func} to be execute after "
"deleting the object."
msgstr ""
#: includes/class/class.LSldapObject.php:3241
#: includes/class/class.LSldapObject.php:3259
msgid ""
"LSldapObject : The function %{func} to be executed after deleting the object "
"doesn't exist."
msgstr ""
#: includes/class/class.LSldapObject.php:3244
#: includes/class/class.LSldapObject.php:3262
msgid ""
"LSldapObject : Error executing the function %{func} to be execute after "
"creating the object."
msgstr ""
#: includes/class/class.LSldapObject.php:3248
#: includes/class/class.LSldapObject.php:3266
msgid ""
"LSldapObject : %{func} function, to be executed on object event %{event}, "
"doesn't exist."
msgstr ""
#: includes/class/class.LSldapObject.php:3251
#: includes/class/class.LSldapObject.php:3269
msgid ""
"LSldapObject : Error during the execution of %{func} function on object "
"event %{event}."
msgstr ""
#: includes/class/class.LSldapObject.php:3255
#: includes/class/class.LSldapObject.php:3273
msgid ""
"LSldapObject : %{meth} method, to be executed on object event %{event}, "
"doesn't exist."
msgstr ""
#: includes/class/class.LSldapObject.php:3258
#: includes/class/class.LSldapObject.php:3276
msgid ""
"LSldapObject : Error during execution of %{meth} method on object event "
"%{event}."
msgstr ""
#: includes/class/class.LSldapObject.php:3261
#: includes/class/class.LSldapObject.php:3279
msgid "LSldapObject : Error during generate LDAP filter for %{LSobject}."
msgstr ""
#: includes/class/class.LSldapObject.php:3265
#: includes/class/class.LSldapObject.php:3283
msgid ""
"LSldapObject : Error during execution of the custom action %{customAction} "
"on %{objectname}."
msgstr ""
#: includes/class/class.LSldapObject.php:3269
#: includes/class/class.LSldapObject.php:3287
msgid "LSldapObject : Fail to retrieve container DN."
msgstr ""
#: includes/class/class.LSldapObject.php:3272
#: includes/class/class.LSldapObject.php:3290
msgid ""
"LSldapObject : The function %{func} to generate container DN is not callable."
msgstr ""
#: includes/class/class.LSldapObject.php:3275
#: includes/class/class.LSldapObject.php:3293
msgid "LSldapObject : Error during generating container DN : %{error}"
msgstr ""
#: includes/class/class.LSldapObject.php:3278
#: includes/class/class.LSldapObject.php:3296
msgid ""
"LSldapObject : An LDAP object with the same DN as generated for this new one "
"already exists. Please verify your configuration."
msgstr ""
#: includes/class/class.LSldapObject.php:3283
#: includes/class/class.LSldapObject.php:3301
msgid ""
"LSrelation : Some parameters are missing in the call of methods to handle "
"standard relations (Method : %{meth})."
msgstr ""
#: includes/class/class.LSformElement_gpg_pub_key.php:103
#: includes/class/class.LSformElement_gpg_pub_key.php:113
msgid ""
"LSformElement_gpg_pub_key: PHP GnuPG extension is missing, can't parse value."
msgstr ""
@ -2801,7 +2808,7 @@ msgstr ""
msgid "Unknown error : %{error}"
msgstr ""
#: includes/class/class.LSformRule_gpg_pub_key.php:55
#: includes/class/class.LSformRule_gpg_pub_key.php:61
msgid ""
"LSformRule_gpg_pub_key: PHP GnuPG extension is missing, can't validate value."
msgstr ""