diff --git a/src/includes/class/class.LStemplate.php b/src/includes/class/class.LStemplate.php index 60b9da13..794ce3a9 100644 --- a/src/includes/class/class.LStemplate.php +++ b/src/includes/class/class.LStemplate.php @@ -429,6 +429,7 @@ class LStemplate extends LSlog_staticLoggerClass { } try { + self :: $last_displayed_template = $template; self :: assignCommonVars(); self :: $_smarty -> display("ls:$template"); } @@ -478,7 +479,7 @@ class LStemplate extends LSlog_staticLoggerClass { } elseif (self :: $last_displayed_template == 'error.tpl') { // Detect & stop loop displaying error - die(getFData(_('Loop detected displaying this error: %{error}.'), $error)); + die(getFData(_('

Loop detected displaying this error:

%{error}
'), $error)); } else { self :: assign('pagetitle', _("A fatal error occured.")); diff --git a/src/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.mo b/src/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.mo index cd6fa43b..a9191d36 100644 Binary files a/src/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.mo and b/src/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.mo differ diff --git a/src/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.po b/src/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.po index cb5bbfc5..4f6897dc 100644 --- a/src/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.po +++ b/src/lang/fr_FR.UTF8/LC_MESSAGES/ldapsaisie.po @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: LdapSaisie\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: \n" -"PO-Revision-Date: 2021-10-25 18:53+0200\n" +"PO-Revision-Date: 2021-10-25 19:04+0200\n" "Last-Translator: Benjamin Renard \n" "Language-Team: LdapSaisie \n" @@ -872,35 +872,36 @@ msgstr "" "LStemplate : Le fichier de template '%{tpl}' est maintenant déprécié. Merci " "de mettre à jour vos templates en vous référant à la documentation." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:436 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:437 msgid "Smarty - An exception occured displaying template '%{template}'" msgstr "" "Smarty - Un erreur est survenue en affichant le modèle de page '%{template}'." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:456 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:457 msgid "Smarty - An exception occured fetching template '%{template}'" msgstr "Smarty - Un erreur est survenue en générant le modèle '%{template}'." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:471 -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:485 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:472 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:486 msgid "A fatal error occured. If problem persist, please contact support." msgstr "" "Une erreur irrécupérable est survenue. Si le problème persiste, merci de " "contacter le support." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:481 -msgid "Loop detected displaying this error: %{error}." -msgstr "Boucle détectée en affichant cette erreur : %{error}." +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:482 +msgid "

Loop detected displaying this error:

%{error}
" +msgstr "" +"

Boucle détectée en affichant cette erreur :

%{error}
" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:484 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:485 msgid "A fatal error occured." msgstr "Une erreur fatale est survenue." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:684 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:685 msgid "LStemplate : Template %{file} not found." msgstr "LStemplate : le template %{file} est introuvable." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:687 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:688 msgid "" "LStemplate : Fail to execute trigger %{callable} on event %{event} : is not " "callable." @@ -908,7 +909,7 @@ msgstr "" "LStemplate : Échec d'exécution du déclencheur %{callable} lors de événement " "%{event} : il n'est pas un callable." -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:690 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:691 msgid "" "LStemplate : Error during the execution of the trigger %{callable} on event " "%{event}." diff --git a/src/lang/ldapsaisie.pot b/src/lang/ldapsaisie.pot index 60005155..74cfbdee 100644 --- a/src/lang/ldapsaisie.pot +++ b/src/lang/ldapsaisie.pot @@ -755,38 +755,38 @@ msgid "" "upgrade documentation to adapt your templates." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:436 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:437 msgid "Smarty - An exception occured displaying template '%{template}'" msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:456 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:457 msgid "Smarty - An exception occured fetching template '%{template}'" msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:471 -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:485 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:472 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:486 msgid "A fatal error occured. If problem persist, please contact support." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:481 -msgid "Loop detected displaying this error: %{error}." +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:482 +msgid "

Loop detected displaying this error:

%{error}
" msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:484 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:485 msgid "A fatal error occured." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:684 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:685 msgid "LStemplate : Template %{file} not found." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:687 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:688 msgid "" "LStemplate : Fail to execute trigger %{callable} on event %{event} : is not " "callable." msgstr "" -#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:690 +#: /home/brenard/dev/ldapsaisie_clean3/src/includes/class/class.LStemplate.php:691 msgid "" "LStemplate : Error during the execution of the trigger %{callable} on event " "%{event}."