diff --git a/html/ajax_card.php b/html/ajax_card.php index 5057e6e8f..cfce99ea0 100644 --- a/html/ajax_card.php +++ b/html/ajax_card.php @@ -72,7 +72,7 @@ foreach ($var as $v) { if ( ! isset ($_REQUEST [$v] ) ) { - echo _("$v is not set "); + echo "$v._(' is not set ')"; $cont=1; } } @@ -115,7 +115,7 @@ case 'rmfa': catch (Exception $e) { $cn->rollback(); - echo _($e->getMessage()); + echo $e->getMessage(); } $html=ob_get_contents(); ob_end_clean(); diff --git a/html/ajax_ledger.php b/html/ajax_ledger.php index 06278186d..33f9ffb17 100644 --- a/html/ajax_ledger.php +++ b/html/ajax_ledger.php @@ -97,7 +97,7 @@ if ($ledger=="") { ob_start(); - echo _(HtmlInput::title_box(_("Information")), $div); + echo HtmlInput::title_box(_("Information"), $div); require_once ('template/ledger_detail_forbidden.php'); echo HtmlInput::button_close($div); $html=ob_get_contents(); @@ -119,7 +119,7 @@ $access=$g_user->get_ledger_access($ledger); if ( $access == 'X' ) { ob_start(); - echo _(HtmlInput::title_box(_("Information")), $div); + echo HtmlInput::title_box(_("Information"), $div); require_once ('template/ledger_detail_forbidden.php'); echo HtmlInput::button_close($div); $html=ob_get_contents(); @@ -197,7 +197,7 @@ case 'de': catch (Exception $e) { echo HtmlInput::anchor_close($div); - echo _('

Désolé il y a une erreur

'); + echo '

._("Désolé il y a une erreur").

'); } $html=ob_get_contents(); ob_end_clean(); @@ -281,7 +281,7 @@ case 'file': echo "
"; } - echo _("

Document

"); + echo "

._("Document").

"); echo '
'; $x=''; if ($access=='W') @@ -321,7 +321,7 @@ case 'loadfile': echo " "; echo ""; if ( ! isset($_REQUEST['ajax']) ) echo ""; else echo ""; - echo _("

Document

"); + echo "

._("Document").

"); echo '
'; $x=sprintf('enlever', $gDossier,$div,$jr_id); @@ -345,7 +345,6 @@ case 'rmf': $theme=$repo->get_value("select the_filestyle from theme where the_name=$1",array($_SESSION['g_theme'])); echo " "; echo ""; - echo _("

Document

"); echo '
'; echo '
'; $sp=new ISpan('file'.$div); @@ -501,7 +500,7 @@ case 'save': catch (Exception $e) { if ( DEBUG ) echo $e->getMessage(); - alert( "Changement impossible: on ne peut pas changer la date dans une période fermée"); + alert(_( "Changement impossible: on ne peut pas changer la date dans une période fermée")); } $html=ob_get_contents(); ob_end_clean();