Better tooltip, better name, translation

This commit is contained in:
altairis-noe 2021-04-07 10:23:33 +02:00 committed by Lomalarch
parent 4015e1607f
commit fc76e06058
3 changed files with 12 additions and 30 deletions

View File

@ -27,4 +27,7 @@ StockDetailPerBatch=Stock detail per lot
SerialNumberAlreadyInUse=Serial number %s is already used for product %s
TooManyQtyForSerialNumber=You can only have one product %s for serial number %S
BatchLotNumberingModules=Options for automatic generation of batch products managed by lots
BatchSerialNumberingModules=Options for automatic generation of batch products managed by serial numbers
BatchSerialNumberingModules=Options for automatic generation of batch products managed by serial numbers
CustomMasks=Adds an option to define mask in the product card
LotProductTooltip=Adds an option in the product card to define a dedicated batch number mask
SNProductTooltip=Adds an option in the product card to define a dedicated serial number mask

View File

@ -27,4 +27,7 @@ StockDetailPerBatch=Stock détaillé par lot
SerialNumberAlreadyInUse=Le numéro de série %s est déjà utilisé pour le produit %s
TooManyQtyForSerialNumber=Vous ne pouvez avoir qu'un produit %s avec le numéro de série %s
BatchLotNumberingModules=Modèle de génération et contrôle des numéros de lot
BatchSerialNumberingModules=Modèle de génération et contrôle des numéros de série
BatchSerialNumberingModules=Modèle de génération et contrôle des numéros de série
CustomMasks=Ajoute une option pour définir le masque dans la fiche produit
LotProductTooltip=Crée un champ dans la fiche produit pour définir un modèle spécifique de numéro de lot
SNProductTooltip=Crée un champ dans la fiche produit pour définir un modèle spécifique de numéro de série

View File

@ -182,7 +182,7 @@ foreach ($dirmodels as $reldir) {
}
}
closedir($handle);
print '<tr class="oddeven"><td>lot_product</td><td>'."\n";
print '<tr class="oddeven"><td>Option</td><td>'."\n";
print $langs->trans('CustomMasks');
print '</td>';
@ -207,19 +207,7 @@ foreach ($dirmodels as $reldir) {
print '</td>';
// Info
$htmltooltip = '';
$htmltooltip .= ''.$langs->trans("Version").': <b>'.$module->getVersion().'</b><br>';
$nextval = $module->getNextValue($mysoc, $batch);
if ("$nextval" != $langs->trans("NotAvailable")) { // Keep " on nextval
$htmltooltip .= ''.$langs->trans("NextValue").': ';
if ($nextval) {
if (preg_match('/^Error/', $nextval) || $nextval == 'NotConfigured')
$nextval = $langs->trans($nextval);
$htmltooltip .= $nextval.'<br>';
} else {
$htmltooltip .= $langs->trans($module->error).'<br>';
}
}
$htmltooltip = $langs->trans("LotProductTooltip");
print '<td class="center">';
print $form->textwithpicto('', $htmltooltip, 1, 0);
@ -318,7 +306,7 @@ foreach ($dirmodels as $reldir) {
}
}
closedir($handle);
print '<tr class="oddeven"><td>sn_product</td><td>'."\n";
print '<tr class="oddeven"><td>Option</td><td>'."\n";
print $langs->trans('CustomMasks');
print '</td>';
@ -343,19 +331,7 @@ foreach ($dirmodels as $reldir) {
print '</td>';
// Info
$htmltooltip = '';
$htmltooltip .= ''.$langs->trans("Version").': <b>'.$module->getVersion().'</b><br>';
$nextval = $module->getNextValue($mysoc, $batch);
if ("$nextval" != $langs->trans("NotAvailable")) { // Keep " on nextval
$htmltooltip .= ''.$langs->trans("NextValue").': ';
if ($nextval) {
if (preg_match('/^Error/', $nextval) || $nextval == 'NotConfigured')
$nextval = $langs->trans($nextval);
$htmltooltip .= $nextval.'<br>';
} else {
$htmltooltip .= $langs->trans($module->error).'<br>';
}
}
$htmltooltip = $langs->trans("SNProductTooltip");
print '<td class="center">';
print $form->textwithpicto('', $htmltooltip, 1, 0);