Traduction libellé générique Paiement fournisseur

This commit is contained in:
Laurent Destailleur 2006-06-25 19:08:13 +00:00
parent e9f3853458
commit 7c7fc76c75

View File

@ -1,6 +1,6 @@
<?php <?php
/* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> /* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -18,7 +18,6 @@
* *
* $Id$ * $Id$
* $Source$ * $Source$
*
*/ */
/** /**
@ -33,13 +32,15 @@ require("./pre.inc.php");
if (!$user->rights->banque->lire) if (!$user->rights->banque->lire)
accessforbidden(); accessforbidden();
llxHeader();
/* /*
* * Affichage page
* *
*/ */
llxHeader();
if ($_GET["bid"] == 0) if ($_GET["bid"] == 0)
{ {
/* /*
@ -137,7 +138,16 @@ else
print "<td align=\"center\">".dolibarr_print_date($objp->do)."</td>\n"; print "<td align=\"center\">".dolibarr_print_date($objp->do)."</td>\n";
print "<td><a href=\"account.php?account=$objp->bankid\">$objp->labelcompte</a></td>"; print "<td><a href=\"account.php?account=$objp->bankid\">$objp->labelcompte</a></td>";
print "<td><a href=\"ligne.php?rowid=$objp->rowid\">".img_object($langs->trans("ShowPayment"),"payment").' '.$objp->label.'</a></td>';
// Description
print "<td><a href=\"ligne.php?rowid=$objp->rowid\">".img_object($langs->trans("ShowPayment"),"payment").' ';
$reg=array();
eregi('\((.+)\)',$objp->label,$reg); // Si texte entouré de parenthèe on tente recherche de traduction
if ($reg[1] && $langs->trans($reg[1])!=$reg[1]) print $langs->trans($reg[1]);
else print $objp->label;
print '</a></td>';
// Montant
print "<td align=\"right\">".price(0 - $objp->amount)."</td><td>&nbsp;</td>"; print "<td align=\"right\">".price(0 - $objp->amount)."</td><td>&nbsp;</td>";
print "</tr>"; print "</tr>";
$i++; $i++;