Missing translation
This commit is contained in:
parent
cfa3b16637
commit
99c59c8c6b
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2013 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2013-2016 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2015 Frederic France <frederic.france@free.fr>
|
* Copyright (C) 2015 Frederic France <frederic.france@free.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -242,10 +242,12 @@ if ($mode == 'config' && $user->admin)
|
|||||||
print '<th></th>';
|
print '<th></th>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
$ret = $printer->listprinters();
|
$ret = $printer->listprinters();
|
||||||
|
$nbofprinters = count($printer->listprinters);
|
||||||
|
|
||||||
if ($ret > 0) {
|
if ($ret > 0) {
|
||||||
setEventMessages($printer->error, $printer->errors, 'errors');
|
setEventMessages($printer->error, $printer->errors, 'errors');
|
||||||
} else {
|
} else {
|
||||||
for ($line=0; $line < count($printer->listprinters); $line++) {
|
for ($line=0; $line < $nbofprinters; $line++) {
|
||||||
$var = !$var;
|
$var = !$var;
|
||||||
print '<tr '.$bc[$var].'>';
|
print '<tr '.$bc[$var].'>';
|
||||||
if ($action=='editprinter' && $printer->listprinters[$line]['rowid']==$printerid) {
|
if ($action=='editprinter' && $printer->listprinters[$line]['rowid']==$printerid) {
|
||||||
@ -282,7 +284,10 @@ if ($mode == 'config' && $user->admin)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($action!='editprinter') {
|
if ($action!='editprinter')
|
||||||
|
{
|
||||||
|
if ($nbofprinters > 0)
|
||||||
|
{
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<th>'.$langs->trans("Name").'</th>';
|
print '<th>'.$langs->trans("Name").'</th>';
|
||||||
print '<th>'.$langs->trans("Type").'</th>';
|
print '<th>'.$langs->trans("Type").'</th>';
|
||||||
@ -292,6 +297,8 @@ if ($mode == 'config' && $user->admin)
|
|||||||
print '<th></th>';
|
print '<th></th>';
|
||||||
print '<th></th>';
|
print '<th></th>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
}
|
||||||
|
|
||||||
print '<tr>';
|
print '<tr>';
|
||||||
print '<td><input size="50" type="text" name="printername"></td>';
|
print '<td><input size="50" type="text" name="printername"></td>';
|
||||||
$ret = $printer->selectTypePrinter();
|
$ret = $printer->selectTypePrinter();
|
||||||
@ -307,6 +314,7 @@ if ($mode == 'config' && $user->admin)
|
|||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
dol_fiche_end();
|
dol_fiche_end();
|
||||||
|
|
||||||
if ($action!='editprinter') {
|
if ($action!='editprinter') {
|
||||||
print '<div class="center"><input type="submit" class="button" value="'.dol_escape_htmltag($langs->trans("Add")).'"></div>';
|
print '<div class="center"><input type="submit" class="button" value="'.dol_escape_htmltag($langs->trans("Add")).'"></div>';
|
||||||
} else {
|
} else {
|
||||||
@ -315,7 +323,9 @@ if ($mode == 'config' && $user->admin)
|
|||||||
print '</form>';
|
print '</form>';
|
||||||
|
|
||||||
print '<div><p></div>';
|
print '<div><p></div>';
|
||||||
|
|
||||||
dol_fiche_head();
|
dol_fiche_head();
|
||||||
|
|
||||||
print $langs->trans("ReceiptPrinterTypeDesc")."<br><br>\n";
|
print $langs->trans("ReceiptPrinterTypeDesc")."<br><br>\n";
|
||||||
print '<table class="noborder" width="100%">'."\n";
|
print '<table class="noborder" width="100%">'."\n";
|
||||||
print '<tr '.$bc[1].'><td>'.$langs->trans("CONNECTOR_DUMMY").':</td><td>'.$langs->trans("CONNECTOR_DUMMY_HELP").'</td></tr>';
|
print '<tr '.$bc[1].'><td>'.$langs->trans("CONNECTOR_DUMMY").':</td><td>'.$langs->trans("CONNECTOR_DUMMY_HELP").'</td></tr>';
|
||||||
@ -325,7 +335,9 @@ if ($mode == 'config' && $user->admin)
|
|||||||
//print '<tr '.$bc[1].'><td>'.$langs->trans("CONNECTOR_JAVA").':</td><td>'.$langs->trans("CONNECTOR_JAVA_HELP").'</td></tr>';
|
//print '<tr '.$bc[1].'><td>'.$langs->trans("CONNECTOR_JAVA").':</td><td>'.$langs->trans("CONNECTOR_JAVA_HELP").'</td></tr>';
|
||||||
print '</table>';
|
print '</table>';
|
||||||
dol_fiche_end();
|
dol_fiche_end();
|
||||||
|
|
||||||
print '<div><p></div>';
|
print '<div><p></div>';
|
||||||
|
|
||||||
dol_fiche_head();
|
dol_fiche_head();
|
||||||
print $langs->trans("ReceiptPrinterProfileDesc")."<br><br>\n";
|
print $langs->trans("ReceiptPrinterProfileDesc")."<br><br>\n";
|
||||||
print '<table class="noborder" width="100%">'."\n";
|
print '<table class="noborder" width="100%">'."\n";
|
||||||
@ -423,13 +435,13 @@ if ($mode == 'template' && $user->admin)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// to remove after test
|
// to remove after test
|
||||||
|
$object=new stdClass();
|
||||||
$object->date_time = '2015-11-02 22:30:25';
|
$object->date_time = '2015-11-02 22:30:25';
|
||||||
$object->id = 1234;
|
$object->id = 1234;
|
||||||
$object->customer_firstname = 'John';
|
$object->customer_firstname = 'John';
|
||||||
$object->customer_lastname = 'Deuf';
|
$object->customer_lastname = 'Deuf';
|
||||||
$object->vendor_firstname = 'Jim';
|
$object->vendor_firstname = 'Jim';
|
||||||
$object->vendor_lastname = 'Big';
|
$object->vendor_lastname = 'Big';
|
||||||
|
|
||||||
$object->barcode = '3700123862396';
|
$object->barcode = '3700123862396';
|
||||||
//$printer->sendToPrinter($object, 1, 16);
|
//$printer->sendToPrinter($object, 1, 16);
|
||||||
//setEventMessages($printer->error, $printer->errors, 'errors');
|
//setEventMessages($printer->error, $printer->errors, 'errors');
|
||||||
|
|||||||
@ -1,8 +1,10 @@
|
|||||||
# Dolibarr language file - Source file is en_US - receiptprinter
|
# Dolibarr language file - Source file is en_US - receiptprinter
|
||||||
|
ReceiptPrinterSetup=Setup of module ReceiptPrinter
|
||||||
PrinterAdded=Printer %s added
|
PrinterAdded=Printer %s added
|
||||||
PrinterUpdated=Printer %s updated
|
PrinterUpdated=Printer %s updated
|
||||||
PrinterDeleted=Printer %s deleted
|
PrinterDeleted=Printer %s deleted
|
||||||
TestSentToPrinter=Test Sent To Printer %s
|
TestSentToPrinter=Test Sent To Printer %s
|
||||||
|
ReceiptPrinter=Receipt printers
|
||||||
ReceiptPrinterDesc=Setup of printers
|
ReceiptPrinterDesc=Setup of printers
|
||||||
ReceiptPrinterTemplateDesc=Setup of Templates
|
ReceiptPrinterTemplateDesc=Setup of Templates
|
||||||
ReceiptPrinterTypeDesc=Description of Receipt Printer's type
|
ReceiptPrinterTypeDesc=Description of Receipt Printer's type
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user