A better label

This commit is contained in:
Laurent Destailleur 2010-06-01 21:39:38 +00:00
parent 750f415f2e
commit d6984e7133
7 changed files with 11 additions and 9 deletions

View File

@ -110,7 +110,7 @@ if ($_POST["action"] == 'add' && $user->rights->societe->contact->creer)
if (! $_POST["name"])
{
array_push($error,$langs->trans("ErrorFieldRequired",$langs->trans("Lastname")));
array_push($error,$langs->trans("ErrorFieldRequired",$langs->transnoentities("Lastname").' / '.$langs->transnoentities("Label")));
$_GET["action"]="create";
}
@ -270,8 +270,8 @@ if ($user->rights->societe->contact->creer)
print '<table class="border" width="100%">';
// Name
print '<tr><td width="15%" class="fieldrequired">'.$langs->trans("Lastname").'</td><td><input name="name" type="text" size="20" maxlength="80" value="'.$contact->name.'"></td>';
print '<td width="20%">'.$langs->trans("Firstname").'</td><td width="25%"><input name="firstname" type="text" size="15" maxlength="80" value="'.$contact->firstname.'"></td></tr>';
print '<tr><td width="15%" class="fieldrequired">'.$langs->trans("Lastname").' / '.$langs->trans("Label").'</td><td><input name="name" type="text" size="30" maxlength="80" value="'.$contact->name.'"></td>';
print '<td width="20%">'.$langs->trans("Firstname").'</td><td width="25%"><input name="firstname" type="text" size="30" maxlength="80" value="'.$contact->firstname.'"></td></tr>';
// Company
if ($socid)

View File

@ -157,7 +157,7 @@ AvailableGlobalDiscounts=Absolute discounts available
DiscountNone=None
Supplier=Supplier
CompanyList=Companie's list
AddContact=Add contact
AddContact=Add contact/address
Contact=Contact
NoContactDefined=No contact defined for this third party
DefaultContact=Default contact

View File

@ -23,4 +23,5 @@ Language_pt_BR=Portuguese (Brazil)
Language_pt_PT=Portuguese
Language_ro_RO=Romanian
Language_ru_RU=Russian
Language_tr_TR=Turkish
Language_tr_TR=Turkish
Language_sl_SL=Slovenian

View File

@ -313,7 +313,7 @@ ActionRunningNotStarted=Not started
ActionRunningShort=Started
ActionDoneShort=Finished
CompanyFoundation=Company/Foundation
ContactsForCompany=Contacts for this third party
ContactsForCompany=Contacts/adresses for this third party
ActionsOnCompany=Actions about this third party
NActions=%s actions
NActionsLate=%s late

View File

@ -162,7 +162,7 @@ AvailableGlobalDiscounts=Remises fixes disponibles
DiscountNone=Aucune
Supplier=Fournisseur
CompanyList=Liste des sociétés
AddContact=Créer contact
AddContact=Créer contact/adresse
Contact=Contact
NoContactDefined=Aucun contact défini pour ce tiers
DefaultContact=Contact par défaut

View File

@ -23,4 +23,5 @@ Language_pt_BR=Portugais (Brésil)
Language_pt_PT=Portugais
Language_ro_RO=Roumain
Language_ru_RU=Russe
Language_tr_TR=Turque
Language_tr_TR=Turque
Language_sl_SL=Slovène

View File

@ -311,7 +311,7 @@ ActionRunningNotStarted=Non commencé
ActionRunningShort=En cours
ActionDoneShort=Terminé
CompanyFoundation=Société ou institution
ContactsForCompany=Contacts de ce tiers
ContactsForCompany=Contacts/adresses de ce tiers
ActionsOnCompany=Actions vis à vis de ce tiers
NActions=%s actions
NActionsLate=%s en retard