Add triggers feature on LStemplate class

This commit is contained in:
Benjamin Renard 2018-10-01 12:32:05 +02:00
parent e74ff20fed
commit 179d148335
5 changed files with 242 additions and 124 deletions

View file

@ -20,7 +20,7 @@
******************************************************************************/ ******************************************************************************/
/** /**
* Manage template * Manage template
* *
* This class is use to manage template in LdapSaisie. * This class is use to manage template in LdapSaisie.
@ -40,7 +40,7 @@ class LStemplate {
* 'compile_dir' => '/path/to/compile/directory', * 'compile_dir' => '/path/to/compile/directory',
* 'debug' => True, * 'debug' => True,
* 'debug_smarty' => True * 'debug_smarty' => True
* ) * )
* *
**/ **/
private static $config = array ( private static $config = array (
@ -55,7 +55,7 @@ class LStemplate {
// Smarty object // Smarty object
public static $_smarty = NULL; public static $_smarty = NULL;
// Smarty version // Smarty version
private static $_smarty_version = NULL; private static $_smarty_version = NULL;
@ -65,6 +65,9 @@ class LStemplate {
LS_THEME LS_THEME
); );
// Registered events
private static $_events = array();
/** /**
* Start LStemplate * Start LStemplate
* *
@ -76,6 +79,9 @@ class LStemplate {
* @retval boolean True on success, False instead * @retval boolean True on success, False instead
**/ **/
public static function start($config) { public static function start($config) {
// Trigger starting event
self :: fireEvent('starting');
foreach ($config as $key => $value) { foreach ($config as $key => $value) {
self :: $config[$key] = $value; self :: $config[$key] = $value;
} }
@ -124,6 +130,9 @@ class LStemplate {
self :: registerFunction("css", "LStemplate_smarty_css"); self :: registerFunction("css", "LStemplate_smarty_css");
self :: registerFunction("uniqid", "LStemplate_smarty_uniqid"); self :: registerFunction("uniqid", "LStemplate_smarty_uniqid");
// Trigger started event
self :: fireEvent('started');
return True; return True;
} }
else { else {
@ -291,7 +300,13 @@ class LStemplate {
* @retval void * @retval void
**/ **/
public static function display($template) { public static function display($template) {
return self :: $_smarty -> display("ls:$template"); // Trigger displaying event
self :: fireEvent('displaying');
self :: $_smarty -> display("ls:$template");
// Trigger displayed event
self :: fireEvent('displayed');
} }
/** /**
@ -317,6 +332,54 @@ class LStemplate {
LStemplate_register_function($name,$function_name); LStemplate_register_function($name,$function_name);
} }
/**
* Registered an action on a specific event
*
* @param[in] $event string The event name
* @param[in] $callable callable The callable to run on event
* @param[in] $param mixed Paremeters that will be pass to the callable
*
* @retval void
*/
function addEvent($event,$callable,$param=NULL) {
self :: $_events[$event][] = array(
'callable' => $callable,
'param' => $param,
);
}
/**
* Run triggered actions on specific event
*
* @param[in] $event string Event name
*
* @retval boolean True if all triggered actions succefully runned, false otherwise
*/
function fireEvent($event) {
$return = true;
// Binding via addEvent
if (isset(self :: $_events[$event]) && is_array(self :: $_events[$event])) {
foreach (self :: $_events[$event] as $e) {
if (is_callable($e['callable'])) {
try {
call_user_func_array($e['callable'],array(&$e['param']));
}
catch(Exception $er) {
LSerror :: addErrorCode('LStemplate_03',array('callable' => getCallableName($e['callable']),'event' => $event));
$return = false;
}
}
else {
LSerror :: addErrorCode('LStemplate_02',array('callable' => getCallableName($e['callable']),'event' => $event));
$return = false;
}
}
}
return $return;
}
} }
function LStemplate_smarty_getFData($params) { function LStemplate_smarty_getFData($params) {
@ -349,3 +412,9 @@ function LStemplate_smarty_uniqid($params, &$smarty) {
LSerror :: defineError('LStemplate_01', LSerror :: defineError('LStemplate_01',
_("LStemplate : Template %{file} not found.") _("LStemplate : Template %{file} not found.")
); );
LSerror :: defineError('LStemplate_02',
_("LStemplate : Fail to execute trigger %{callable} on event %{event} : is not callable.")
);
LSerror :: defineError('LStemplate_03',
_("LStemplate : Error during the execution of the trigger %{callable} on event %{event}.")
);

View file

@ -632,4 +632,25 @@ function LSdebugDefined() {
return date ('YmdHis').'Z'; return date ('YmdHis').'Z';
} }
?>
/**
* Format callable name
*
* @param[in] $callable The callable
*
* @retval string The formated callable name
**/
function getCallableName($callable) {
if (is_string($callable)) {
return $callable;
}
elseif(is_array($callable) && count($callable)==2) {
if (is_string($callable[0])) {
return $callable[0].'::'.$callable[1].'()';
}
elseif(is_object($callable[0])) {
return "object ".get_class($callable[0])."->".$callable[1].'()';
}
}
return "unknown : ".(string)$callable;
}

View file

@ -7,8 +7,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: LdapSaisie\n" "Project-Id-Version: LdapSaisie\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-09-07 18:40+0200\n" "POT-Creation-Date: 2018-10-01 12:17+0200\n"
"PO-Revision-Date: 2018-09-07 18:41+0200\n" "PO-Revision-Date: 2018-10-01 12:20+0200\n"
"Last-Translator: Benjamin Renard <brenard@zionetrix.net>\n" "Last-Translator: Benjamin Renard <brenard@zionetrix.net>\n"
"Language-Team: LdapSaisie <ldapsaisie-users@lists.labs.libre-entreprise." "Language-Team: LdapSaisie <ldapsaisie-users@lists.labs.libre-entreprise."
"org>\n" "org>\n"
@ -57,8 +57,8 @@ msgstr "Recherche approximative"
msgid "Recursive search" msgid "Recursive search"
msgstr "Recherche récursive" msgstr "Recherche récursive"
#: select.php:70 includes/class/class.LSsession.php:1204 #: select.php:70 includes/class/class.LSsession.php:1209
#: includes/class/class.LSsession.php:2259 #: includes/class/class.LSsession.php:2264
msgid "Level" msgid "Level"
msgstr "Niveau" msgstr "Niveau"
@ -105,7 +105,7 @@ msgstr ""
#: custom_search_action.php:73 includes/class/class.LSconfirmBox.php:37 #: custom_search_action.php:73 includes/class/class.LSconfirmBox.php:37
#: includes/class/class.LSsmoothbox.php:39 #: includes/class/class.LSsmoothbox.php:39
#: includes/class/class.LSsession.php:1244 includes/class/class.LSform.php:68 #: includes/class/class.LSsession.php:1249 includes/class/class.LSform.php:68
#: custom_action.php:83 remove.php:51 #: custom_action.php:83 remove.php:51
msgid "Validate" msgid "Validate"
msgstr "Valider" msgstr "Valider"
@ -509,33 +509,49 @@ msgstr "Maintenant."
msgid "Today." msgid "Today."
msgstr "Aujourd'hui." msgstr "Aujourd'hui."
#: includes/class/class.LStemplate.php:88 #: includes/class/class.LStemplate.php:94
msgid "LStemplate : compile directory is not writable (dir : " msgid "LStemplate : compile directory is not writable (dir : "
msgstr "" msgstr ""
"LStemplate : Le dossier de compilation n'est pas accessible en écriture " "LStemplate : Le dossier de compilation n'est pas accessible en écriture "
"(dossier : " "(dossier : "
#: includes/class/class.LStemplate.php:107 #: includes/class/class.LStemplate.php:113
msgid "LStemplate : Can't load Smarty 2 support file" msgid "LStemplate : Can't load Smarty 2 support file"
msgstr "LStemplate : Impossible de charger le fichier de support de Smarty 2." msgstr "LStemplate : Impossible de charger le fichier de support de Smarty 2."
#: includes/class/class.LStemplate.php:114 #: includes/class/class.LStemplate.php:120
msgid "LStemplate : Can't load Smarty 3 support file" msgid "LStemplate : Can't load Smarty 3 support file"
msgstr "LStemplate : Impossible de charger le fichier de support de Smarty 3." msgstr "LStemplate : Impossible de charger le fichier de support de Smarty 3."
#: includes/class/class.LStemplate.php:118 #: includes/class/class.LStemplate.php:124
msgid "LStemplate : Smarty version not recognized." msgid "LStemplate : Smarty version not recognized."
msgstr "LStemplate : Version de Smarty non reconnue." msgstr "LStemplate : Version de Smarty non reconnue."
#: includes/class/class.LStemplate.php:130 #: includes/class/class.LStemplate.php:139
msgid "LStemplate : Can't load Smarty." msgid "LStemplate : Can't load Smarty."
msgstr "" msgstr ""
"LStemplate : Impossible de charger le moteur de gestion de template Smarty." "LStemplate : Impossible de charger le moteur de gestion de template Smarty."
#: includes/class/class.LStemplate.php:350 #: includes/class/class.LStemplate.php:413
msgid "LStemplate : Template %{file} not found." msgid "LStemplate : Template %{file} not found."
msgstr "LStemplate : le template %{file} est introuvable." msgstr "LStemplate : le template %{file} est introuvable."
#: includes/class/class.LStemplate.php:416
msgid ""
"LStemplate : Fail to execute trigger %{callable} on event %{event} : is not "
"callable."
msgstr ""
"LStemplate : Échec d'exécution du déclencheur %{callable} lors de événement "
"%{event} : il n'est pas un callable."
#: includes/class/class.LStemplate.php:419
msgid ""
"LStemplate : Error during the execution of the trigger %{callable} on event "
"%{event}."
msgstr ""
"LStemplate : Erreur durant l'exécution du déclencheur %{callable} lors de "
"événement %{event}."
#: includes/class/class.LSattr_html_select_object.php:231 #: includes/class/class.LSattr_html_select_object.php:231
msgid "" msgid ""
"LSattr_html_select_object : LSobject type is undefined (attribute : %{attr})." "LSattr_html_select_object : LSobject type is undefined (attribute : %{attr})."
@ -661,73 +677,73 @@ msgstr ""
msgid "Clear" msgid "Clear"
msgstr "Nettoyer" msgstr "Nettoyer"
#: includes/class/class.LSsession.php:1184 #: includes/class/class.LSsession.php:1189
msgid "Connection" msgid "Connection"
msgstr "Connexion" msgstr "Connexion"
#: includes/class/class.LSsession.php:1194 #: includes/class/class.LSsession.php:1199
#: includes/class/class.LSsession.php:1233 #: includes/class/class.LSsession.php:1238
msgid "LDAP server" msgid "LDAP server"
msgstr "Serveur LDAP" msgstr "Serveur LDAP"
#: includes/class/class.LSsession.php:1205 #: includes/class/class.LSsession.php:1210
#: includes/class/class.LSsession.php:1243 #: includes/class/class.LSsession.php:1248
msgid "Identifier" msgid "Identifier"
msgstr "Identifiant" msgstr "Identifiant"
#: includes/class/class.LSsession.php:1206 #: includes/class/class.LSsession.php:1211
msgid "Password" msgid "Password"
msgstr "Mot de passe" msgstr "Mot de passe"
#: includes/class/class.LSsession.php:1207 #: includes/class/class.LSsession.php:1212
msgid "Connect" msgid "Connect"
msgstr "Se connecter" msgstr "Se connecter"
#: includes/class/class.LSsession.php:1208 #: includes/class/class.LSsession.php:1213
msgid "Forgot your password ?" msgid "Forgot your password ?"
msgstr "Mot de passe perdu ?" msgstr "Mot de passe perdu ?"
#: includes/class/class.LSsession.php:1226 #: includes/class/class.LSsession.php:1231
msgid "Recovery of your credentials" msgid "Recovery of your credentials"
msgstr "Récupération de votre mot de passe" msgstr "Récupération de votre mot de passe"
#: includes/class/class.LSsession.php:1245 #: includes/class/class.LSsession.php:1250
msgid "Back" msgid "Back"
msgstr "Retour" msgstr "Retour"
#: includes/class/class.LSsession.php:1247 #: includes/class/class.LSsession.php:1252
msgid "Please fill the identifier field to proceed recovery procedure" msgid "Please fill the identifier field to proceed recovery procedure"
msgstr "" msgstr ""
"Merci d'entrer votre identifiant pour poursuivre la procédure de récupération" "Merci d'entrer votre identifiant pour poursuivre la procédure de récupération"
#: includes/class/class.LSsession.php:1251 #: includes/class/class.LSsession.php:1256
msgid "" msgid ""
"An email has been sent to %{mail}. Please follow the instructions on it." "An email has been sent to %{mail}. Please follow the instructions on it."
msgstr "" msgstr ""
"Un e-mail vient de vous être envoyé à l'adresse %{mail}. Merci de suivre les " "Un e-mail vient de vous être envoyé à l'adresse %{mail}. Merci de suivre les "
"indications qu'il contient." "indications qu'il contient."
#: includes/class/class.LSsession.php:1259 #: includes/class/class.LSsession.php:1264
msgid "Your new password has been sent to %{mail}. " msgid "Your new password has been sent to %{mail}. "
msgstr "Votre nouveau mot de passe vous a été envoyé à l'adresse %{mail}." msgstr "Votre nouveau mot de passe vous a été envoyé à l'adresse %{mail}."
#: includes/class/class.LSsession.php:1404 #: includes/class/class.LSsession.php:1409
msgid "Refresh" msgid "Refresh"
msgstr "Rafraîchir" msgstr "Rafraîchir"
#: includes/class/class.LSsession.php:1420 #: includes/class/class.LSsession.php:1425
msgid "Language" msgid "Language"
msgstr "Langue" msgstr "Langue"
#: includes/class/class.LSsession.php:1442 #: includes/class/class.LSsession.php:1447
msgid "Connected as" msgid "Connected as"
msgstr "Connecté en tant que" msgstr "Connecté en tant que"
#: includes/class/class.LSsession.php:2387 #: includes/class/class.LSsession.php:2411
msgid "LSsession : The constant %{const} is not defined." msgid "LSsession : The constant %{const} is not defined."
msgstr "LSsession : La constante %{const} n'est pas définie." msgstr "LSsession : La constante %{const} n'est pas définie."
#: includes/class/class.LSsession.php:2390 #: includes/class/class.LSsession.php:2414
msgid "" msgid ""
"LSsession : The %{addon} support is uncertain. Verify system compatibility " "LSsession : The %{addon} support is uncertain. Verify system compatibility "
"and the add-on configuration." "and the add-on configuration."
@ -735,52 +751,52 @@ msgstr ""
"LSsession : Le support %{addon} est incertain. Vérifiez la compatibilité du " "LSsession : Le support %{addon} est incertain. Vérifiez la compatibilité du "
"système et la configuration de l'add-on." "système et la configuration de l'add-on."
#: includes/class/class.LSsession.php:2393 #: includes/class/class.LSsession.php:2417
msgid "" msgid ""
"LSsession : LDAP server's configuration data are invalid. Can't connect." "LSsession : LDAP server's configuration data are invalid. Can't connect."
msgstr "" msgstr ""
"LSsession : Les données de configuration du serveur LDAP sont invalide. " "LSsession : Les données de configuration du serveur LDAP sont invalide. "
"Impossible de s'y connecter." "Impossible de s'y connecter."
#: includes/class/class.LSsession.php:2396 #: includes/class/class.LSsession.php:2420
msgid "LSsession : Failed to load LSobject type %{type} : unknon type." msgid "LSsession : Failed to load LSobject type %{type} : unknon type."
msgstr "" msgstr ""
"LSsession : Impossible de charger le type d'LSobject %{type} : type inconnu." "LSsession : Impossible de charger le type d'LSobject %{type} : type inconnu."
#: includes/class/class.LSsession.php:2399 #: includes/class/class.LSsession.php:2423
msgid "LSsession : Failed to load LSclass %{class}." msgid "LSsession : Failed to load LSclass %{class}."
msgstr "LSsession : Impossible de charger la LSclass %{class}." msgstr "LSsession : Impossible de charger la LSclass %{class}."
#: includes/class/class.LSsession.php:2402 #: includes/class/class.LSsession.php:2426
msgid "LSsession : Login or password incorrect." msgid "LSsession : Login or password incorrect."
msgstr "LSsession : Identifiant ou mot de passe incorrects." msgstr "LSsession : Identifiant ou mot de passe incorrects."
#: includes/class/class.LSsession.php:2405 #: includes/class/class.LSsession.php:2429
msgid "LSsession : Impossible to identify you : Duplication of identities." msgid "LSsession : Impossible to identify you : Duplication of identities."
msgstr "LSsession : Impossible de vous identifier : Duplication d'identité." msgstr "LSsession : Impossible de vous identifier : Duplication d'identité."
#: includes/class/class.LSsession.php:2408 #: includes/class/class.LSsession.php:2432
msgid "LSsession : Can't load class of authentification (%{class})." msgid "LSsession : Can't load class of authentification (%{class})."
msgstr "" msgstr ""
"LSsession : Impossible de charger la classe d'authentification (%{class})." "LSsession : Impossible de charger la classe d'authentification (%{class})."
#: includes/class/class.LSsession.php:2411 #: includes/class/class.LSsession.php:2435
msgid "LSsession : Can't connect to LDAP server." msgid "LSsession : Can't connect to LDAP server."
msgstr "LSsession : Impossible de se connecter au serveur LDAP." msgstr "LSsession : Impossible de se connecter au serveur LDAP."
#: includes/class/class.LSsession.php:2414 #: includes/class/class.LSsession.php:2438
msgid "LSsession : Impossible to authenticate you." msgid "LSsession : Impossible to authenticate you."
msgstr "LSsession : Impossible de vous identifier." msgstr "LSsession : Impossible de vous identifier."
#: includes/class/class.LSsession.php:2417 #: includes/class/class.LSsession.php:2441
msgid "LSsession : Your are not authorized to do this action." msgid "LSsession : Your are not authorized to do this action."
msgstr "LSsession : Vous n'êtes pas autorisé à faire cette action." msgstr "LSsession : Vous n'êtes pas autorisé à faire cette action."
#: includes/class/class.LSsession.php:2420 #: includes/class/class.LSsession.php:2444
msgid "LSsession : Some informations are missing to display this page." msgid "LSsession : Some informations are missing to display this page."
msgstr "LSsession : Des informations sont manquant pour afficher cette page." msgstr "LSsession : Des informations sont manquant pour afficher cette page."
#: includes/class/class.LSsession.php:2423 #: includes/class/class.LSsession.php:2447
msgid "" msgid ""
"LSsession : The function of the custom action %{name} does not exists or is " "LSsession : The function of the custom action %{name} does not exists or is "
"not configured." "not configured."
@ -788,24 +804,24 @@ msgstr ""
"LSsearch : La fonction de l'action personnalisée %{name} n'existe pas ou " "LSsearch : La fonction de l'action personnalisée %{name} n'existe pas ou "
"n'est pas configurée." "n'est pas configurée."
#: includes/class/class.LSsession.php:2426 #: includes/class/class.LSsession.php:2450
msgid "LSsession : Fail to retreive user's LDAP credentials from LSauth." msgid "LSsession : Fail to retreive user's LDAP credentials from LSauth."
msgstr "" msgstr ""
"LSsession : Erreur en récupérant les identifiants LDAP de l'utilisateur " "LSsession : Erreur en récupérant les identifiants LDAP de l'utilisateur "
"depuis LSauth." "depuis LSauth."
#: includes/class/class.LSsession.php:2429 #: includes/class/class.LSsession.php:2453
msgid "" msgid ""
"LSsession : Fail to reconnect to LDAP server with user's LDAP credentials." "LSsession : Fail to reconnect to LDAP server with user's LDAP credentials."
msgstr "" msgstr ""
"LSsession : Impossible de se reconnecter au serveur LDAP avec les " "LSsession : Impossible de se reconnecter au serveur LDAP avec les "
"identifiants de l'utilisateur." "identifiants de l'utilisateur."
#: includes/class/class.LSsession.php:2432 #: includes/class/class.LSsession.php:2456
msgid "LSsession : No import/export format define for this object type." msgid "LSsession : No import/export format define for this object type."
msgstr "LSsession : Aucun format d'entrée/sortie définie pour ce type d'objet." msgstr "LSsession : Aucun format d'entrée/sortie définie pour ce type d'objet."
#: includes/class/class.LSsession.php:2435 #: includes/class/class.LSsession.php:2459
msgid "" msgid ""
"LSsession : Error during creation of list of levels. Contact administrators. " "LSsession : Error during creation of list of levels. Contact administrators. "
"(Code : %{code})" "(Code : %{code})"
@ -813,13 +829,13 @@ msgstr ""
"LSsession : Erreur durant la création de la liste des niveaux. Contacter les " "LSsession : Erreur durant la création de la liste des niveaux. Contacter les "
"administrateurs. (Code : %{type})" "administrateurs. (Code : %{type})"
#: includes/class/class.LSsession.php:2438 #: includes/class/class.LSsession.php:2462
msgid "LSsession : The password recovery is disabled for this LDAP server." msgid "LSsession : The password recovery is disabled for this LDAP server."
msgstr "" msgstr ""
"LSsession : La récupération de mot de passe est désactivée pour ce serveur " "LSsession : La récupération de mot de passe est désactivée pour ce serveur "
"LDAP." "LDAP."
#: includes/class/class.LSsession.php:2441 #: includes/class/class.LSsession.php:2465
msgid "" msgid ""
"LSsession : Some informations are missing to recover your password. Contact " "LSsession : Some informations are missing to recover your password. Contact "
"administrators." "administrators."
@ -827,7 +843,7 @@ msgstr ""
"LSsession : Des informations sont manques pour pouvoir récupérer votre mot " "LSsession : Des informations sont manques pour pouvoir récupérer votre mot "
"de passe. Contacter les administrateurs." "de passe. Contacter les administrateurs."
#: includes/class/class.LSsession.php:2444 #: includes/class/class.LSsession.php:2468
msgid "" msgid ""
"LSsession : Error during password recovery. Contact administrators.(Step : " "LSsession : Error during password recovery. Contact administrators.(Step : "
"%{step})" "%{step})"
@ -835,22 +851,22 @@ msgstr ""
"LSsession : Erreur durant la récupération de votre mot de passe. Contacter " "LSsession : Erreur durant la récupération de votre mot de passe. Contacter "
"les administrateurs. (Etape : %{step})" "les administrateurs. (Etape : %{step})"
#: includes/class/class.LSsession.php:2447 #: includes/class/class.LSsession.php:2471
msgid "" msgid ""
"LSsession : call function %{func} do not provided from LSaddon %{addon}." "LSsession : call function %{func} do not provided from LSaddon %{addon}."
msgstr "" msgstr ""
"LSsession : la fonction %{func} n'est pas fournie par le LSaddon %{addon}." "LSsession : la fonction %{func} n'est pas fournie par le LSaddon %{addon}."
#: includes/class/class.LSsession.php:2450 #: includes/class/class.LSsession.php:2474
msgid "LSsession : problem during initialisation." msgid "LSsession : problem during initialisation."
msgstr "LSsession : Problème durant l'initialisation." msgstr "LSsession : Problème durant l'initialisation."
#: includes/class/class.LSsession.php:2453 #: includes/class/class.LSsession.php:2477
msgid "LSsession : view function %{func} for LSaddon %{addon} doet not exist." msgid "LSsession : view function %{func} for LSaddon %{addon} doet not exist."
msgstr "" msgstr ""
"LSsession : la fonction de vue %{func} du LSaddon %{addon} n'existe pas." "LSsession : la fonction de vue %{func} du LSaddon %{addon} n'existe pas."
#: includes/class/class.LSsession.php:2456 #: includes/class/class.LSsession.php:2480
msgid "LSsession : invalid related object's DN pass in parameter." msgid "LSsession : invalid related object's DN pass in parameter."
msgstr "LSsession : DN d'objet en relation incorrect dans les paramètres." msgstr "LSsession : DN d'objet en relation incorrect dans les paramètres."
@ -1654,7 +1670,7 @@ msgstr "Cliquer pour supprimer cette photo."
msgid "Chat with this person." msgid "Chat with this person."
msgstr "Discuter avec cette personne." msgstr "Discuter avec cette personne."
#: includes/class/class.LSattr_html_select_list.php:370 #: includes/class/class.LSattr_html_select_list.php:392
msgid "" msgid ""
"LSattr_html_select_list : Configuration data are missing to generate the " "LSattr_html_select_list : Configuration data are missing to generate the "
"select list of the attribute %{attr}." "select list of the attribute %{attr}."
@ -1662,7 +1678,7 @@ msgstr ""
"LSattr_html_select_list : Des données de configuration sont manquantes pour " "LSattr_html_select_list : Des données de configuration sont manquantes pour "
"générer la liste de sélection de l'attribut %{attr}." "générer la liste de sélection de l'attribut %{attr}."
#: includes/class/class.LSattr_html_select_list.php:373 #: includes/class/class.LSattr_html_select_list.php:395
msgid "" msgid ""
"LSattr_html_select_list : Invalid attribute %{attr} reference as " "LSattr_html_select_list : Invalid attribute %{attr} reference as "
"OTHER_ATTRIBUTE possible values." "OTHER_ATTRIBUTE possible values."
@ -1670,7 +1686,7 @@ msgstr ""
"LSattr_html_select_list : Référence invalide à l'attribut %{attr} comme " "LSattr_html_select_list : Référence invalide à l'attribut %{attr} comme "
"valeurs possibles (OTHER_ATTRIBUTE)." "valeurs possibles (OTHER_ATTRIBUTE)."
#: includes/class/class.LSattr_html_select_list.php:376 #: includes/class/class.LSattr_html_select_list.php:398
msgid "" msgid ""
"LSattr_html_select_list : Attribute %{attr} referenced as OTHER_ATTRIBUTE " "LSattr_html_select_list : Attribute %{attr} referenced as OTHER_ATTRIBUTE "
"possible values is not a jsonCompositeAttribute." "possible values is not a jsonCompositeAttribute."
@ -1678,7 +1694,7 @@ msgstr ""
"LSattr_html_select_list : L'attribute %{attr} référencé comme valeurs " "LSattr_html_select_list : L'attribute %{attr} référencé comme valeurs "
"possibles (OTHER_ATTRIBUTE) n'est pas du type jsonCompositeAttribute." "possibles (OTHER_ATTRIBUTE) n'est pas du type jsonCompositeAttribute."
#: includes/class/class.LSattr_html_select_list.php:379 #: includes/class/class.LSattr_html_select_list.php:401
msgid "" msgid ""
"LSattr_html_select_list : Fail to decode the following attribute %{attr} " "LSattr_html_select_list : Fail to decode the following attribute %{attr} "
"value as JSON : %{value}" "value as JSON : %{value}"
@ -1686,7 +1702,7 @@ msgstr ""
"LSattr_html_select_list : Impossible de décodé la valeur JSON suivante de " "LSattr_html_select_list : Impossible de décodé la valeur JSON suivante de "
"l'attribut %{attr} : %{value}" "l'attribut %{attr} : %{value}"
#: includes/class/class.LSattr_html_select_list.php:382 #: includes/class/class.LSattr_html_select_list.php:404
msgid "" msgid ""
"LSattr_html_select_list : No component %{component} found in the following " "LSattr_html_select_list : No component %{component} found in the following "
"attribute %{attr} JSON value : %{value}" "attribute %{attr} JSON value : %{value}"
@ -1773,16 +1789,16 @@ msgstr ""
"LSioFormat : Le pilote d'IOformat %{driver} est invalide ou n'est pas " "LSioFormat : Le pilote d'IOformat %{driver} est invalide ou n'est pas "
"disponible." "disponible."
#: includes/functions.php:113 #: includes/functions.php:112
msgid "" msgid ""
"Function 'getFData' : The method %{meth} of the object %{obj} doesn't exist." "Function 'getFData' : The method %{meth} of the object %{obj} doesn't exist."
msgstr "Fonction getFData : La méthode %{meth} de l'objet %{obj} n'existe pas." msgstr "Fonction getFData : La méthode %{meth} de l'objet %{obj} n'existe pas."
#: includes/functions.php:175 #: includes/functions.php:205
msgid "[not string value]" msgid "[not string value]"
msgstr "[pas une chaîne de caractères]" msgstr "[pas une chaîne de caractères]"
#: includes/functions.php:214 #: includes/functions.php:251
msgid "Folder not found" msgid "Folder not found"
msgstr "Dossier introuvable" msgstr "Dossier introuvable"
@ -1798,7 +1814,7 @@ msgstr ""
msgid "Missing parameter" msgid "Missing parameter"
msgstr "Paramètre manquant" msgstr "Paramètre manquant"
#: index.php:28 #: index.php:31
msgid "Home" msgid "Home"
msgstr "Accueil" msgstr "Accueil"

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-09-07 18:40+0200\n" "POT-Creation-Date: 2018-10-01 12:17+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -54,8 +54,8 @@ msgstr ""
msgid "Recursive search" msgid "Recursive search"
msgstr "" msgstr ""
#: select.php:70 includes/class/class.LSsession.php:1204 #: select.php:70 includes/class/class.LSsession.php:1209
#: includes/class/class.LSsession.php:2259 #: includes/class/class.LSsession.php:2264
msgid "Level" msgid "Level"
msgstr "" msgstr ""
@ -98,7 +98,7 @@ msgstr ""
#: custom_search_action.php:73 includes/class/class.LSconfirmBox.php:37 #: custom_search_action.php:73 includes/class/class.LSconfirmBox.php:37
#: includes/class/class.LSsmoothbox.php:39 #: includes/class/class.LSsmoothbox.php:39
#: includes/class/class.LSsession.php:1244 includes/class/class.LSform.php:68 #: includes/class/class.LSsession.php:1249 includes/class/class.LSform.php:68
#: custom_action.php:83 remove.php:51 #: custom_action.php:83 remove.php:51
msgid "Validate" msgid "Validate"
msgstr "" msgstr ""
@ -446,30 +446,42 @@ msgstr ""
msgid "Today." msgid "Today."
msgstr "" msgstr ""
#: includes/class/class.LStemplate.php:88 #: includes/class/class.LStemplate.php:94
msgid "LStemplate : compile directory is not writable (dir : " msgid "LStemplate : compile directory is not writable (dir : "
msgstr "" msgstr ""
#: includes/class/class.LStemplate.php:107 #: includes/class/class.LStemplate.php:113
msgid "LStemplate : Can't load Smarty 2 support file" msgid "LStemplate : Can't load Smarty 2 support file"
msgstr "" msgstr ""
#: includes/class/class.LStemplate.php:114 #: includes/class/class.LStemplate.php:120
msgid "LStemplate : Can't load Smarty 3 support file" msgid "LStemplate : Can't load Smarty 3 support file"
msgstr "" msgstr ""
#: includes/class/class.LStemplate.php:118 #: includes/class/class.LStemplate.php:124
msgid "LStemplate : Smarty version not recognized." msgid "LStemplate : Smarty version not recognized."
msgstr "" msgstr ""
#: includes/class/class.LStemplate.php:130 #: includes/class/class.LStemplate.php:139
msgid "LStemplate : Can't load Smarty." msgid "LStemplate : Can't load Smarty."
msgstr "" msgstr ""
#: includes/class/class.LStemplate.php:350 #: includes/class/class.LStemplate.php:413
msgid "LStemplate : Template %{file} not found." msgid "LStemplate : Template %{file} not found."
msgstr "" msgstr ""
#: includes/class/class.LStemplate.php:416
msgid ""
"LStemplate : Fail to execute trigger %{callable} on event %{event} : is not "
"callable."
msgstr ""
#: includes/class/class.LStemplate.php:419
msgid ""
"LStemplate : Error during the execution of the trigger %{callable} on event "
"%{event}."
msgstr ""
#: includes/class/class.LSattr_html_select_object.php:231 #: includes/class/class.LSattr_html_select_object.php:231
msgid "" msgid ""
"LSattr_html_select_object : LSobject type is undefined (attribute : %{attr})." "LSattr_html_select_object : LSobject type is undefined (attribute : %{attr})."
@ -570,171 +582,171 @@ msgstr ""
msgid "Clear" msgid "Clear"
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:1184 #: includes/class/class.LSsession.php:1189
msgid "Connection" msgid "Connection"
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:1194 #: includes/class/class.LSsession.php:1199
#: includes/class/class.LSsession.php:1233 #: includes/class/class.LSsession.php:1238
msgid "LDAP server" msgid "LDAP server"
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:1205 #: includes/class/class.LSsession.php:1210
#: includes/class/class.LSsession.php:1243 #: includes/class/class.LSsession.php:1248
msgid "Identifier" msgid "Identifier"
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:1206 #: includes/class/class.LSsession.php:1211
msgid "Password" msgid "Password"
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:1207 #: includes/class/class.LSsession.php:1212
msgid "Connect" msgid "Connect"
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:1208 #: includes/class/class.LSsession.php:1213
msgid "Forgot your password ?" msgid "Forgot your password ?"
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:1226 #: includes/class/class.LSsession.php:1231
msgid "Recovery of your credentials" msgid "Recovery of your credentials"
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:1245 #: includes/class/class.LSsession.php:1250
msgid "Back" msgid "Back"
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:1247 #: includes/class/class.LSsession.php:1252
msgid "Please fill the identifier field to proceed recovery procedure" msgid "Please fill the identifier field to proceed recovery procedure"
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:1251 #: includes/class/class.LSsession.php:1256
msgid "" msgid ""
"An email has been sent to %{mail}. Please follow the instructions on it." "An email has been sent to %{mail}. Please follow the instructions on it."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:1259 #: includes/class/class.LSsession.php:1264
msgid "Your new password has been sent to %{mail}. " msgid "Your new password has been sent to %{mail}. "
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:1404 #: includes/class/class.LSsession.php:1409
msgid "Refresh" msgid "Refresh"
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:1420 #: includes/class/class.LSsession.php:1425
msgid "Language" msgid "Language"
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:1442 #: includes/class/class.LSsession.php:1447
msgid "Connected as" msgid "Connected as"
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:2387 #: includes/class/class.LSsession.php:2411
msgid "LSsession : The constant %{const} is not defined." msgid "LSsession : The constant %{const} is not defined."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:2390 #: includes/class/class.LSsession.php:2414
msgid "" msgid ""
"LSsession : The %{addon} support is uncertain. Verify system compatibility " "LSsession : The %{addon} support is uncertain. Verify system compatibility "
"and the add-on configuration." "and the add-on configuration."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:2393 #: includes/class/class.LSsession.php:2417
msgid "" msgid ""
"LSsession : LDAP server's configuration data are invalid. Can't connect." "LSsession : LDAP server's configuration data are invalid. Can't connect."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:2396 #: includes/class/class.LSsession.php:2420
msgid "LSsession : Failed to load LSobject type %{type} : unknon type." msgid "LSsession : Failed to load LSobject type %{type} : unknon type."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:2399 #: includes/class/class.LSsession.php:2423
msgid "LSsession : Failed to load LSclass %{class}." msgid "LSsession : Failed to load LSclass %{class}."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:2402 #: includes/class/class.LSsession.php:2426
msgid "LSsession : Login or password incorrect." msgid "LSsession : Login or password incorrect."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:2405 #: includes/class/class.LSsession.php:2429
msgid "LSsession : Impossible to identify you : Duplication of identities." msgid "LSsession : Impossible to identify you : Duplication of identities."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:2408 #: includes/class/class.LSsession.php:2432
msgid "LSsession : Can't load class of authentification (%{class})." msgid "LSsession : Can't load class of authentification (%{class})."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:2411 #: includes/class/class.LSsession.php:2435
msgid "LSsession : Can't connect to LDAP server." msgid "LSsession : Can't connect to LDAP server."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:2414 #: includes/class/class.LSsession.php:2438
msgid "LSsession : Impossible to authenticate you." msgid "LSsession : Impossible to authenticate you."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:2417 #: includes/class/class.LSsession.php:2441
msgid "LSsession : Your are not authorized to do this action." msgid "LSsession : Your are not authorized to do this action."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:2420 #: includes/class/class.LSsession.php:2444
msgid "LSsession : Some informations are missing to display this page." msgid "LSsession : Some informations are missing to display this page."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:2423 #: includes/class/class.LSsession.php:2447
msgid "" msgid ""
"LSsession : The function of the custom action %{name} does not exists or is " "LSsession : The function of the custom action %{name} does not exists or is "
"not configured." "not configured."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:2426 #: includes/class/class.LSsession.php:2450
msgid "LSsession : Fail to retreive user's LDAP credentials from LSauth." msgid "LSsession : Fail to retreive user's LDAP credentials from LSauth."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:2429 #: includes/class/class.LSsession.php:2453
msgid "" msgid ""
"LSsession : Fail to reconnect to LDAP server with user's LDAP credentials." "LSsession : Fail to reconnect to LDAP server with user's LDAP credentials."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:2432 #: includes/class/class.LSsession.php:2456
msgid "LSsession : No import/export format define for this object type." msgid "LSsession : No import/export format define for this object type."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:2435 #: includes/class/class.LSsession.php:2459
msgid "" msgid ""
"LSsession : Error during creation of list of levels. Contact administrators. " "LSsession : Error during creation of list of levels. Contact administrators. "
"(Code : %{code})" "(Code : %{code})"
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:2438 #: includes/class/class.LSsession.php:2462
msgid "LSsession : The password recovery is disabled for this LDAP server." msgid "LSsession : The password recovery is disabled for this LDAP server."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:2441 #: includes/class/class.LSsession.php:2465
msgid "" msgid ""
"LSsession : Some informations are missing to recover your password. Contact " "LSsession : Some informations are missing to recover your password. Contact "
"administrators." "administrators."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:2444 #: includes/class/class.LSsession.php:2468
msgid "" msgid ""
"LSsession : Error during password recovery. Contact administrators.(Step : " "LSsession : Error during password recovery. Contact administrators.(Step : "
"%{step})" "%{step})"
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:2447 #: includes/class/class.LSsession.php:2471
msgid "" msgid ""
"LSsession : call function %{func} do not provided from LSaddon %{addon}." "LSsession : call function %{func} do not provided from LSaddon %{addon}."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:2450 #: includes/class/class.LSsession.php:2474
msgid "LSsession : problem during initialisation." msgid "LSsession : problem during initialisation."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:2453 #: includes/class/class.LSsession.php:2477
msgid "LSsession : view function %{func} for LSaddon %{addon} doet not exist." msgid "LSsession : view function %{func} for LSaddon %{addon} doet not exist."
msgstr "" msgstr ""
#: includes/class/class.LSsession.php:2456 #: includes/class/class.LSsession.php:2480
msgid "LSsession : invalid related object's DN pass in parameter." msgid "LSsession : invalid related object's DN pass in parameter."
msgstr "" msgstr ""
@ -1420,31 +1432,31 @@ msgstr ""
msgid "Chat with this person." msgid "Chat with this person."
msgstr "" msgstr ""
#: includes/class/class.LSattr_html_select_list.php:370 #: includes/class/class.LSattr_html_select_list.php:392
msgid "" msgid ""
"LSattr_html_select_list : Configuration data are missing to generate the " "LSattr_html_select_list : Configuration data are missing to generate the "
"select list of the attribute %{attr}." "select list of the attribute %{attr}."
msgstr "" msgstr ""
#: includes/class/class.LSattr_html_select_list.php:373 #: includes/class/class.LSattr_html_select_list.php:395
msgid "" msgid ""
"LSattr_html_select_list : Invalid attribute %{attr} reference as " "LSattr_html_select_list : Invalid attribute %{attr} reference as "
"OTHER_ATTRIBUTE possible values." "OTHER_ATTRIBUTE possible values."
msgstr "" msgstr ""
#: includes/class/class.LSattr_html_select_list.php:376 #: includes/class/class.LSattr_html_select_list.php:398
msgid "" msgid ""
"LSattr_html_select_list : Attribute %{attr} referenced as OTHER_ATTRIBUTE " "LSattr_html_select_list : Attribute %{attr} referenced as OTHER_ATTRIBUTE "
"possible values is not a jsonCompositeAttribute." "possible values is not a jsonCompositeAttribute."
msgstr "" msgstr ""
#: includes/class/class.LSattr_html_select_list.php:379 #: includes/class/class.LSattr_html_select_list.php:401
msgid "" msgid ""
"LSattr_html_select_list : Fail to decode the following attribute %{attr} " "LSattr_html_select_list : Fail to decode the following attribute %{attr} "
"value as JSON : %{value}" "value as JSON : %{value}"
msgstr "" msgstr ""
#: includes/class/class.LSattr_html_select_list.php:382 #: includes/class/class.LSattr_html_select_list.php:404
msgid "" msgid ""
"LSattr_html_select_list : No component %{component} found in the following " "LSattr_html_select_list : No component %{component} found in the following "
"attribute %{attr} JSON value : %{value}" "attribute %{attr} JSON value : %{value}"
@ -1523,16 +1535,16 @@ msgstr ""
msgid "LSioFormat : IOformat driver %{driver} invalid or unavailable." msgid "LSioFormat : IOformat driver %{driver} invalid or unavailable."
msgstr "" msgstr ""
#: includes/functions.php:113 #: includes/functions.php:112
msgid "" msgid ""
"Function 'getFData' : The method %{meth} of the object %{obj} doesn't exist." "Function 'getFData' : The method %{meth} of the object %{obj} doesn't exist."
msgstr "" msgstr ""
#: includes/functions.php:175 #: includes/functions.php:205
msgid "[not string value]" msgid "[not string value]"
msgstr "" msgstr ""
#: includes/functions.php:214 #: includes/functions.php:251
msgid "Folder not found" msgid "Folder not found"
msgstr "" msgstr ""
@ -1546,7 +1558,7 @@ msgstr ""
msgid "Missing parameter" msgid "Missing parameter"
msgstr "" msgstr ""
#: index.php:28 #: index.php:31
msgid "Home" msgid "Home"
msgstr "" msgstr ""