Fix translation of "Terminal"

This commit is contained in:
Laurent Destailleur 2019-11-01 12:48:09 +01:00
parent 73f264a734
commit 1821fa6317

View File

@ -562,23 +562,23 @@ function MoreActions(totalactions){
} }
} }
// Popup to select the terminal to use
function TerminalsDialog() function TerminalsDialog()
{ {
jQuery("#dialog-info").dialog({ jQuery("#dialog-info").dialog({
resizable: false, resizable: false,
height:220, height: <?php echo 180+round($conf->global->TAKEPOS_NUM_TERMINALS / 3 * 20); ?>,
width:400, width: <?php echo ($conf->dol_optimize_smallscreen ? 316 : 400); ?>,
modal: true, modal: true,
buttons: { buttons: {
Terminal1: function() { '<?php echo dol_escape_js($langs->trans("Terminal")) ?> 1': function() {
location.href='takepos.php?setterminal=1'; location.href='takepos.php?setterminal=1';
} }
<?php <?php
for ($i = 2; $i <= $conf->global->TAKEPOS_NUM_TERMINALS; $i++) for ($i = 2; $i <= $conf->global->TAKEPOS_NUM_TERMINALS; $i++)
{ {
print " print ",
, '".dol_escape_js($langs->trans("Terminal"))." ".$i."': function() {
Terminal".$i.": function() {
location.href='takepos.php?setterminal=".$i."'; location.href='takepos.php?setterminal=".$i."';
} }
"; ";