From 8b8fd7c7ae3ab600120c11d86f0993adcd2ba0ea Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Sat, 1 Mar 2014 20:41:33 +0100 Subject: [PATCH] add translation + esthetic --- include/ac_common.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/ac_common.php b/include/ac_common.php index fea039ebb..ed3c4682a 100644 --- a/include/ac_common.php +++ b/include/ac_common.php @@ -648,6 +648,7 @@ function set_language() { // desactivate local check if ( defined("LOCALE") && LOCALE==0 ) return; + if ( ! isset ($_SESSION['g_lang'])) return; $dir = ""; // set differently the language depending of the operating system if (what_os() == 1) @@ -779,8 +780,8 @@ function ajax_disconnected($div) $html = $script; $html.=HtmlInput::anchor_close($div); $html.='
'; - $html.=h2('Données non disponibles', 'class="info" style="width:auto"'); - $html.=h2('Veuillez vous reconnecter', ''); + $html.=h2(_('Données non disponibles'), 'class="title" style="width:auto"'); + $html.=h2(_('Veuillez vous reconnecter'), 'class="error"'); $html.=alert("Déconnecté", true); $html = escape_xml($html);