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"]) 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"; $_GET["action"]="create";
} }
@ -270,8 +270,8 @@ if ($user->rights->societe->contact->creer)
print '<table class="border" width="100%">'; print '<table class="border" width="100%">';
// Name // 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 '<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="15" maxlength="80" value="'.$contact->firstname.'"></td></tr>'; 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 // Company
if ($socid) if ($socid)

View File

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

View File

@ -24,3 +24,4 @@ Language_pt_PT=Portuguese
Language_ro_RO=Romanian Language_ro_RO=Romanian
Language_ru_RU=Russian 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 ActionRunningShort=Started
ActionDoneShort=Finished ActionDoneShort=Finished
CompanyFoundation=Company/Foundation CompanyFoundation=Company/Foundation
ContactsForCompany=Contacts for this third party ContactsForCompany=Contacts/adresses for this third party
ActionsOnCompany=Actions about this third party ActionsOnCompany=Actions about this third party
NActions=%s actions NActions=%s actions
NActionsLate=%s late NActionsLate=%s late

View File

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

View File

@ -24,3 +24,4 @@ Language_pt_PT=Portugais
Language_ro_RO=Roumain Language_ro_RO=Roumain
Language_ru_RU=Russe 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 ActionRunningShort=En cours
ActionDoneShort=Terminé ActionDoneShort=Terminé
CompanyFoundation=Société ou institution CompanyFoundation=Société ou institution
ContactsForCompany=Contacts de ce tiers ContactsForCompany=Contacts/adresses de ce tiers
ActionsOnCompany=Actions vis à vis de ce tiers ActionsOnCompany=Actions vis à vis de ce tiers
NActions=%s actions NActions=%s actions
NActionsLate=%s en retard NActionsLate=%s en retard