Fix: Better translation
This commit is contained in:
parent
782486bb4c
commit
ec9c3cc115
@ -164,18 +164,21 @@ dol_fiche_end();
|
|||||||
|
|
||||||
$listofreferent=array(
|
$listofreferent=array(
|
||||||
'propal'=>array(
|
'propal'=>array(
|
||||||
|
'name'=>"Proposalq",
|
||||||
'title'=>"ListProposalsAssociatedProject",
|
'title'=>"ListProposalsAssociatedProject",
|
||||||
'class'=>'Propal',
|
'class'=>'Propal',
|
||||||
'table'=>'propal',
|
'table'=>'propal',
|
||||||
'datefieldname'=>'datep',
|
'datefieldname'=>'datep',
|
||||||
'test'=>$conf->propal->enabled && $user->rights->propale->lire),
|
'test'=>$conf->propal->enabled && $user->rights->propale->lire),
|
||||||
'order'=>array(
|
'order'=>array(
|
||||||
|
'name'=>"CustomerOrderq",
|
||||||
'title'=>"ListOrdersAssociatedProject",
|
'title'=>"ListOrdersAssociatedProject",
|
||||||
'class'=>'Commande',
|
'class'=>'Commande',
|
||||||
'table'=>'commande',
|
'table'=>'commande',
|
||||||
'datefieldname'=>'date_commande',
|
'datefieldname'=>'date_commande',
|
||||||
'test'=>$conf->commande->enabled && $user->rights->commande->lire),
|
'test'=>$conf->commande->enabled && $user->rights->commande->lire),
|
||||||
'invoice'=>array(
|
'invoice'=>array(
|
||||||
|
'name'=>"CustomerInvoiceq",
|
||||||
'title'=>"ListInvoicesAssociatedProject",
|
'title'=>"ListInvoicesAssociatedProject",
|
||||||
'class'=>'Facture',
|
'class'=>'Facture',
|
||||||
'margin'=>'add',
|
'margin'=>'add',
|
||||||
@ -183,18 +186,21 @@ $listofreferent=array(
|
|||||||
'datefieldname'=>'datef',
|
'datefieldname'=>'datef',
|
||||||
'test'=>$conf->facture->enabled && $user->rights->facture->lire),
|
'test'=>$conf->facture->enabled && $user->rights->facture->lire),
|
||||||
'invoice_predefined'=>array(
|
'invoice_predefined'=>array(
|
||||||
|
'name'=>"PredefinedInvoices",
|
||||||
'title'=>"ListPredefinedInvoicesAssociatedProject",
|
'title'=>"ListPredefinedInvoicesAssociatedProject",
|
||||||
'class'=>'FactureRec',
|
'class'=>'FactureRec',
|
||||||
'table'=>'facture_rec',
|
'table'=>'facture_rec',
|
||||||
'datefieldname'=>'datec',
|
'datefieldname'=>'datec',
|
||||||
'test'=>$conf->facture->enabled && $user->rights->facture->lire),
|
'test'=>$conf->facture->enabled && $user->rights->facture->lire),
|
||||||
'order_supplier'=>array(
|
'order_supplier'=>array(
|
||||||
|
'name'=>"SuplierOrders",
|
||||||
'title'=>"ListSupplierOrdersAssociatedProject",
|
'title'=>"ListSupplierOrdersAssociatedProject",
|
||||||
'class'=>'CommandeFournisseur',
|
'class'=>'CommandeFournisseur',
|
||||||
'table'=>'commande_fournisseur',
|
'table'=>'commande_fournisseur',
|
||||||
'datefieldname'=>'date_commande',
|
'datefieldname'=>'date_commande',
|
||||||
'test'=>$conf->fournisseur->enabled && $user->rights->fournisseur->commande->lire),
|
'test'=>$conf->fournisseur->enabled && $user->rights->fournisseur->commande->lire),
|
||||||
'invoice_supplier'=>array(
|
'invoice_supplier'=>array(
|
||||||
|
'name'=>"BillsSuppliers",
|
||||||
'title'=>"ListSupplierInvoicesAssociatedProject",
|
'title'=>"ListSupplierInvoicesAssociatedProject",
|
||||||
'class'=>'FactureFournisseur',
|
'class'=>'FactureFournisseur',
|
||||||
'margin'=>'minus',
|
'margin'=>'minus',
|
||||||
@ -202,12 +208,14 @@ $listofreferent=array(
|
|||||||
'datefieldname'=>'datef',
|
'datefieldname'=>'datef',
|
||||||
'test'=>$conf->fournisseur->enabled && $user->rights->fournisseur->facture->lire),
|
'test'=>$conf->fournisseur->enabled && $user->rights->fournisseur->facture->lire),
|
||||||
'contract'=>array(
|
'contract'=>array(
|
||||||
|
'name'=>"Contracts",
|
||||||
'title'=>"ListContractAssociatedProject",
|
'title'=>"ListContractAssociatedProject",
|
||||||
'class'=>'Contrat',
|
'class'=>'Contrat',
|
||||||
'table'=>'contrat',
|
'table'=>'contrat',
|
||||||
'datefieldname'=>'date_contrat',
|
'datefieldname'=>'date_contrat',
|
||||||
'test'=>$conf->contrat->enabled && $user->rights->contrat->lire),
|
'test'=>$conf->contrat->enabled && $user->rights->contrat->lire),
|
||||||
'intervention'=>array(
|
'intervention'=>array(
|
||||||
|
'name'=>"Interventions",
|
||||||
'title'=>"ListFichinterAssociatedProject",
|
'title'=>"ListFichinterAssociatedProject",
|
||||||
'class'=>'Fichinter',
|
'class'=>'Fichinter',
|
||||||
'table'=>'fichinter',
|
'table'=>'fichinter',
|
||||||
@ -215,6 +223,7 @@ $listofreferent=array(
|
|||||||
'disableamount'=>1,
|
'disableamount'=>1,
|
||||||
'test'=>$conf->ficheinter->enabled && $user->rights->ficheinter->lire),
|
'test'=>$conf->ficheinter->enabled && $user->rights->ficheinter->lire),
|
||||||
'trip'=>array(
|
'trip'=>array(
|
||||||
|
'name'=>"TripAndExpenses",
|
||||||
'title'=>"ListTripAssociatedProject",
|
'title'=>"ListTripAssociatedProject",
|
||||||
'class'=>'Deplacement',
|
'class'=>'Deplacement',
|
||||||
'table'=>'deplacement',
|
'table'=>'deplacement',
|
||||||
@ -223,6 +232,7 @@ $listofreferent=array(
|
|||||||
'disableamount'=>1,
|
'disableamount'=>1,
|
||||||
'test'=>$conf->deplacement->enabled && $user->rights->deplacement->lire),
|
'test'=>$conf->deplacement->enabled && $user->rights->deplacement->lire),
|
||||||
'agenda'=>array(
|
'agenda'=>array(
|
||||||
|
'name'=>"Agenda",
|
||||||
'title'=>"ListActionsAssociatedProject",
|
'title'=>"ListActionsAssociatedProject",
|
||||||
'class'=>'ActionComm',
|
'class'=>'ActionComm',
|
||||||
'table'=>'actioncomm',
|
'table'=>'actioncomm',
|
||||||
@ -445,8 +455,13 @@ foreach ($listofreferent as $key => $value)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Margin display of the project
|
// Profit for all project
|
||||||
print_titre("Margin");
|
$langs->load("suppliers");
|
||||||
|
$langs->load("bills");
|
||||||
|
$langs->load("orders");
|
||||||
|
$langs->load("proposals");
|
||||||
|
$langs->load("margin");
|
||||||
|
print_titre($langs->trans("Profit"));
|
||||||
print '<table class="noborder">';
|
print '<table class="noborder">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td align="left" width="200">'.$langs->trans("Element").'</td>';
|
print '<td align="left" width="200">'.$langs->trans("Element").'</td>';
|
||||||
@ -455,9 +470,9 @@ print '<td align="right" width="100">'.$langs->trans("AmountHT").'</td>';
|
|||||||
print '<td align="right" width="100">'.$langs->trans("AmountTTC").'</td>';
|
print '<td align="right" width="100">'.$langs->trans("AmountTTC").'</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
|
|
||||||
foreach ($listofreferent as $key => $value)
|
foreach ($listofreferent as $key => $value)
|
||||||
{
|
{
|
||||||
|
$name=$langs->trans($value['name']);
|
||||||
$title=$value['title'];
|
$title=$value['title'];
|
||||||
$classname=$value['class'];
|
$classname=$value['class'];
|
||||||
$tablename=$value['table'];
|
$tablename=$value['table'];
|
||||||
@ -486,7 +501,7 @@ foreach ($listofreferent as $key => $value)
|
|||||||
}
|
}
|
||||||
|
|
||||||
print '<tr >';
|
print '<tr >';
|
||||||
print '<td align="left" >'.$classname.'</td>';
|
print '<td align="left" >'.$name.'</td>';
|
||||||
print '<td align="right">'.$i.'</td>';
|
print '<td align="right">'.$i.'</td>';
|
||||||
print '<td align="right">'.price($total_ht).'</td>';
|
print '<td align="right">'.price($total_ht).'</td>';
|
||||||
print '<td align="right">'.price($total_ttc).'</td>';
|
print '<td align="right">'.price($total_ttc).'</td>';
|
||||||
|
|||||||
@ -295,9 +295,6 @@ if ($id > 0 || ! empty($ref))
|
|||||||
//$arrayofuseridoftask=$object->getListContactId('internal');
|
//$arrayofuseridoftask=$object->getListContactId('internal');
|
||||||
|
|
||||||
$head=task_prepare_head($object);
|
$head=task_prepare_head($object);
|
||||||
dol_fiche_head($head, 'task_task', $langs->trans("Task"),0,'projecttask');
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ($action == 'edit' && $user->rights->projet->creer)
|
if ($action == 'edit' && $user->rights->projet->creer)
|
||||||
{
|
{
|
||||||
@ -307,6 +304,8 @@ if ($id > 0 || ! empty($ref))
|
|||||||
print '<input type="hidden" name="withproject" value="'.$withproject.'">';
|
print '<input type="hidden" name="withproject" value="'.$withproject.'">';
|
||||||
print '<input type="hidden" name="id" value="'.$object->id.'">';
|
print '<input type="hidden" name="id" value="'.$object->id.'">';
|
||||||
|
|
||||||
|
dol_fiche_head($head, 'task_task', $langs->trans("Task"),0,'projecttask');
|
||||||
|
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
|
|
||||||
// Ref
|
// Ref
|
||||||
@ -372,10 +371,12 @@ if ($id > 0 || ! empty($ref))
|
|||||||
|
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
print '<center><br>';
|
dol_fiche_end();
|
||||||
|
|
||||||
|
print '<div align="center">';
|
||||||
print '<input type="submit" class="button" name="update" value="'.$langs->trans("Modify").'"> ';
|
print '<input type="submit" class="button" name="update" value="'.$langs->trans("Modify").'"> ';
|
||||||
print '<input type="submit" class="button" name="cancel" value="'.$langs->trans("Cancel").'">';
|
print '<input type="submit" class="button" name="cancel" value="'.$langs->trans("Cancel").'">';
|
||||||
print '<center>';
|
print '<div>';
|
||||||
|
|
||||||
print '</form>';
|
print '</form>';
|
||||||
}
|
}
|
||||||
@ -387,6 +388,8 @@ if ($id > 0 || ! empty($ref))
|
|||||||
$param=($withproject?'&withproject=1':'');
|
$param=($withproject?'&withproject=1':'');
|
||||||
$linkback=$withproject?'<a href="'.DOL_URL_ROOT.'/projet/tasks.php?id='.$projectstatic->id.'">'.$langs->trans("BackToList").'</a>':'';
|
$linkback=$withproject?'<a href="'.DOL_URL_ROOT.'/projet/tasks.php?id='.$projectstatic->id.'">'.$langs->trans("BackToList").'</a>':'';
|
||||||
|
|
||||||
|
dol_fiche_head($head, 'task_task', $langs->trans("Task"),0,'projecttask');
|
||||||
|
|
||||||
if ($action == 'delete')
|
if ($action == 'delete')
|
||||||
{
|
{
|
||||||
print $form->formconfirm($_SERVER["PHP_SELF"]."?id=".$_GET["id"].'&withproject='.$withproject,$langs->trans("DeleteATask"),$langs->trans("ConfirmDeleteATask"),"confirm_delete");
|
print $form->formconfirm($_SERVER["PHP_SELF"]."?id=".$_GET["id"].'&withproject='.$withproject,$langs->trans("DeleteATask"),$langs->trans("ConfirmDeleteATask"),"confirm_delete");
|
||||||
@ -471,12 +474,11 @@ if ($id > 0 || ! empty($ref))
|
|||||||
|
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
|
dol_fiche_end();
|
||||||
}
|
}
|
||||||
|
|
||||||
dol_fiche_end();
|
|
||||||
|
|
||||||
|
if ($action != 'edit')
|
||||||
if ($_GET["action"] != 'edit')
|
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Actions
|
* Actions
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user