Skip to content
Snippets Groups Projects
Commit 2b2d1d47 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Trad: Un paquet de pages passées en multi-langues.

parent 4188598b
No related branches found
No related tags found
No related merge requests found
Showing
with 90 additions and 20 deletions
......@@ -39,41 +39,49 @@ else
if ($conf->commercial->enabled)
{
$langs->load("commercial");
$class="";
if ($_SESSION["topmenu"] && $_SESSION["topmenu"] == "commercial") { $class="menusel"; }
elseif (ereg("^".DOL_URL_ROOT."\/comm\/",$_SERVER["PHP_SELF"])) { $class="menusel"; }
print '<td class="'.$class.'" width="'.$widthtd.'%" align=center>';
print '<a class="'.$class.'" href="'.DOL_URL_ROOT.'/comm/index.php"'.($target?" target=$target":"").'>Commercial</A>';
print '<a class="'.$class.'" href="'.DOL_URL_ROOT.'/comm/index.php"'.($target?" target=$target":"").'>'.$langs->trans("Commercial").'</a>';
print '</td>';
}
if ($conf->adherent->enabled)
{
$langs->load("members");
$class="";
if ($_SESSION["topmenu"] && $_SESSION["topmenu"] == "adherent") { $class="menusel"; }
elseif (ereg("^".DOL_URL_ROOT."\/adherents\/",$_SERVER["PHP_SELF"])) { $class="menusel"; }
print '<td class="'.$class.'" width="'.$widthtd.'%" align=center>';
print '<a class="'.$class.'" href="'.DOL_URL_ROOT.'/adherents/index.php"'.($target?" target=$target":"").'>Adhrents</A>';
print '<a class="'.$class.'" href="'.DOL_URL_ROOT.'/adherents/index.php"'.($target?" target=$target":"").'>'.$langs->trans("Members").'</a>';
print '</td>';
}
if ($conf->compta->enabled || $conf->banque->enabled || $conf->caisse->enabled)
{
$langs->load("compta");
$class="";
if ($_SESSION["topmenu"] && $_SESSION["topmenu"] == "compta") { $class="menusel"; }
elseif (ereg("^".DOL_URL_ROOT."\/compta\/",$_SERVER["PHP_SELF"])) { $class="menusel"; }
print '<td class="'.$class.'" width="'.$widthtd.'%" align=center>';
print '<a class="'.$class.'" href="'.DOL_URL_ROOT.'/compta/index.php"'.($target?" target=$target":"").'>Compta/Trso</A>';
print '<a class="'.$class.'" href="'.DOL_URL_ROOT.'/compta/index.php"'.($target?" target=$target":"").'>'.$langs->trans("Accountancy")."/".$langs->trans("Treasury").'</a>';
print '</td>';
}
if ($conf->produit->enabled || $conf->service->enabled)
{
$langs->load("products");
$class="";
if ($_SESSION["topmenu"] && $_SESSION["topmenu"] == "product") { $class="menusel"; }
elseif (ereg("^".DOL_URL_ROOT."\/product\/",$_SERVER["PHP_SELF"])) { $class="menusel"; }
$chaine="";
if ($conf->produit->enabled) { $chaine.="Produits"; }
if ($conf->produit->enabled) { $chaine.=$langs->trans("Products"); }
if ($conf->produit->enabled && $conf->service->enabled) { $chaine.="/"; }
if ($conf->service->enabled) { $chaine.="Services"; }
print '<td class="'.$class.'" width="'.$widthtd.'%" align=center>';
......@@ -83,12 +91,13 @@ else
if ($conf->webcal->enabled)
{
$langs->load("other");
$class="";
if ($_SESSION["topmenu"] && $_SESSION["topmenu"] == "webcalendar") { $class="menusel"; }
elseif (ereg("^".DOL_URL_ROOT."\/projet\/",$_SERVER["PHP_SELF"]) || ereg("^".DOL_URL_ROOT."\/webcalendar\/",$_SERVER["PHP_SELF"])) { $class="menusel"; }
print '<td class="'.$class.'" width="'.$widthtd.'%" align=center>';
// print '<a class="'.$class.'" href="'. PHPWEBCALENDAR_URL .'">Calendrier</a>';
print '<a class="'.$class.'" href="'.DOL_URL_ROOT.'/projet/webcal.php"'.($target?" target=$target":"").'>Calendrier</a>';
print '<a class="'.$class.'" href="'.DOL_URL_ROOT.'/projet/webcal.php"'.($target?" target=$target":"").'>'.$langs->trans("Calendar").'</a>';
print '</td>';
};
......
# Dolibarr language file - en_US - admin
GlobalSetup=Global setup
GUISetup=GUI Setup
DictionnarySetup=Dictionnary setup
OtherSetup=Other setup
Modules=Modules
Boxes=Boxes
System=System
# Dolibarr language file - en_US - commercial
Commercial=Commercial
\ No newline at end of file
# Dolibarr language file - fr_FR - soc
NewCompany=New company (prospect, customer, supplier)
Company=Company
Companies=Companies
Name=Name
Surname=Surname
Address=Addrese
......
# Dolibarr language file - en_US - compta
Accountancy=Accountancy
Tresury=Tresury
\ No newline at end of file
# Dolibarr language file - en_US - main
charset="iso-8859-1"
Home=Home
Help=Help
Activate=Activate
Activated=Activated
Add=Add
......@@ -10,7 +12,9 @@ Edit=Edit
Search=Search
ChooseLangage=Please choose your language
User=User
Users=Users
Group=Group
Groups=Groups
Name=Name
Value=Value
Type=Type
......@@ -18,4 +22,6 @@ Note=Note
Action=Action
About=About
WelcomeString=<font class="body">We are </font>%s<font class="body">, and you are connected with name</font> %s
Number=Number
DevelopmentTeam=Development Team
Logout=Logout
\ No newline at end of file
# Dolibarr language file - en_US - members
Members=Members
Attributs=Attributs
\ No newline at end of file
# Dolibarr language file - en_US - other
Calendar=Calendar
\ No newline at end of file
# Dolibarr language file - en_US - products
Products=Products
Services=Services
\ No newline at end of file
# Dolibarr language file - en_US - suppliers
Suppliers=Suppliers
\ No newline at end of file
# Dolibarr language file - fr_FR - admin
GlobalSetup=Configuration générale
GUISetup=Configuration IHM
DictionnarySetup=Configuration dictionnaires
OtherSetup=Configuration autre
Modules=Modules
Boxes=Boites
System=Système
\ No newline at end of file
# Dolibarr language file - fr_FR - commercial
Commercial=Commercial
\ No newline at end of file
# Dolibarr language file - fr_FR - soc
NewCompany=Nouvelle socit (prospect, client, fournisseur)
Company=Socit
Companies=Socits
Name=Nom
Surname=Prnom
Address=Adresse
......
# Dolibarr language file - fr_FR - compta
Accountancy=Compta
Treasury=Treso
\ No newline at end of file
# Dolibarr language file - fr_FR - main
charset="iso-8859-1"
Home=Accueil
Help=Aide
Activate=Activer
Activated=Activ
Add=Ajouter
......@@ -10,7 +12,9 @@ Edit=Editer
Search=Rechercher
ChooseLangage=Choisissez votre langue
User=Utilisateur
Users=Utilisateurs
Group=Groupe
Groups=Groupes
Name=Nom
Value=Valeur
Type=Type
......@@ -18,4 +22,6 @@ Note=Note
Action=Action
About=A propos
WelcomeString=<font class="body">Nous sommes le</font> %s<font class="body">, et vous tes connects sous le user</font> %s
Number=Nombre
DevelopmentTeam=Equipe de dveloppement
Logout=Deconnexion
# Dolibarr language file - fr_FR - members
Members=Adhrents
Attributs=Attributs
\ No newline at end of file
# Dolibarr language file - fr_FR - other
Calendar=Calendrier
\ No newline at end of file
# Dolibarr language file - fr_FR - products
Products=Produits
Services=Services
\ No newline at end of file
# Dolibarr language file - fr_FR - suppliers
Suppliers=Fournisseurs
\ No newline at end of file
......@@ -444,11 +444,11 @@ function top_menu($head, $title="", $target="")
print $langs->lang_header();
print $head;
print '<link rel="top" title="Accueil" href="'.DOL_URL_ROOT.'/">';
print '<link rel="help" title="Aide" href="http://www.dolibarr.com/aide.fr.html">';
print '<link rel="top" title="'.$langs->trans("Home").'" href="'.DOL_URL_ROOT.'/">';
print '<link rel="help" title="'.$langs->trans("Help").'" href="http://www.dolibarr.com/aide.fr.html">';
print '<link rel="copyright" title="GNU General Public License" href="http://www.gnu.org/copyleft/gpl.html#SEC1">'."\n";
print '<link rel="author" title="Equipe de développement" href="http://www.dolibarr.com/dev.fr.html">'."\n";
print '<link rel="author" title="'.$langs->trans("DevelopmentTeam").'" href="http://www.dolibarr.com/dev.fr.html">'."\n";
print '<link rel="stylesheet" type="text/css" media="print" HREF="'.DOL_URL_ROOT.'/theme/print.css">'."\n";
print '<link rel="stylesheet" type="text/css" title="default" href="'.DOL_URL_ROOT.'/'.$conf->css.'">'."\n";
......@@ -486,8 +486,7 @@ function top_menu($head, $title="", $target="")
{
print '<table class="topbarre" width="100%">';
print "<tr><td>Votre système nécessite d'être mis à jour. ";
print "Pour cela ";
print 'cliquez sur <A href="'.DOL_URL_ROOT.'/admin/system/update.php">Mettre à jour</A> !!</td></tr>';
print 'Pour cela cliquez sur <A href="'.DOL_URL_ROOT.'/admin/system/update.php">Mettre à jour</A> !!</td></tr>';
print "</table>";
}
......@@ -504,7 +503,7 @@ function top_menu($head, $title="", $target="")
$class="";
if ($_SESSION["topmenu"] && $_SESSION["topmenu"] == "accueil") { $class="menusel"; }
elseif (ereg("^".DOL_URL_ROOT."\/[^\\\/]+$",$PHP_SELF) || ereg("^".DOL_URL_ROOT."\/user\/",$PHP_SELF) || ereg("^".DOL_URL_ROOT."\/admin\/",$PHP_SELF)) { $class="menusel"; }
print '<td width="200" class="menu"><table cellpadding=0 cellspacing=0 width="100%"><tr><td class="'.$class.'" align=center><a class="'.$class.'" href="'.DOL_URL_ROOT.'/index.php"'.($target?" target=$target":"").'>Accueil</a></td></tr></table></td>';
print '<td width="200" class="menu"><table cellpadding=0 cellspacing=0 width="100%"><tr><td class="'.$class.'" align=center><a class="'.$class.'" href="'.DOL_URL_ROOT.'/index.php"'.($target?" target=$target":"").'>'.$langs->trans("Home").'</a></td></tr></table></td>';
// Sommet géré par gestionnaire de menu du haut
print '<td class="menu">';
......@@ -522,7 +521,7 @@ function top_menu($head, $title="", $target="")
print '<a href="'.DOL_URL_ROOT.'/user/fiche.php?id='.$user->id.'">'.$user->login.'</a>' ;
print '<a href="'.DOL_URL_ROOT.'/user/logout.php">';
print '<img border="0" src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/logout.png" alt="Logout" title="Logout"></a>';
print '<img border="0" src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/logout.png" alt="'.$langs->trans("Logout").'" title="'.$langs->trans("Logout").'"></a>';
}
else
......@@ -550,7 +549,7 @@ function top_menu($head, $title="", $target="")
*/
Function left_menu($menu, $help_url='', $form_search='', $author='')
{
global $user, $conf, $rtplang;
global $user, $conf, $langs;
/*
* Colonne de gauche
......@@ -572,6 +571,7 @@ Function left_menu($menu, $help_url='', $form_search='', $author='')
if ((defined("MAIN_SEARCHFORM_SOCIETE") && MAIN_SEARCHFORM_SOCIETE > 0) || (defined("MAIN_SEARCHFORM_CONTACT") && MAIN_SEARCHFORM_CONTACT > 0))
{
$langs->load("companies");
print '<div class="leftmenu">'."\n";
if (defined("MAIN_SEARCHFORM_SOCIETE") && MAIN_SEARCHFORM_SOCIETE > 0)
......@@ -584,7 +584,7 @@ Function left_menu($menu, $help_url='', $form_search='', $author='')
{
print '<form action="'.DOL_URL_ROOT.'/societe.php">';
}
print '<A class="menu" href="'.DOL_URL_ROOT.'/comm/clients.php">Societes</A><br>';
print '<a class="menu" href="'.DOL_URL_ROOT.'/comm/clients.php">'.$langs->trans("Companies").'</a><br>';
print '<input type="hidden" name="mode" value="search">';
print '<input type="hidden" name="page" value="0">';
print '<input type="hidden" name="mode-search" value="soc">';
......@@ -595,8 +595,8 @@ Function left_menu($menu, $help_url='', $form_search='', $author='')
if (defined("MAIN_SEARCHFORM_CONTACT") && MAIN_SEARCHFORM_CONTACT > 0)
{
print '<form action="'.DOL_URL_ROOT.'/contact/index.php">';
print '<A class="menu" href="'.DOL_URL_ROOT.'/contact/index.php">Contacts</A><br>';
print '<form action="'.DOL_URL_ROOT.'/contact/index.php">';
print '<A class="menu" href="'.DOL_URL_ROOT.'/contact/index.php">'.$langs->trans("Contacts").'</A><br>';
print '<input type="hidden" name="mode" value="search">';
print '<input type="hidden" name="mode-search" value="contact">';
print '<input type="text" class="flat" name="contactname" size="10">&nbsp;';
......@@ -606,8 +606,9 @@ Function left_menu($menu, $help_url='', $form_search='', $author='')
if ($conf->produit->enabled)
{
$langs->load("products");
print '<form action="'.DOL_URL_ROOT.'/product/liste.php" method="post">';
print '<A class="menu" href="'.DOL_URL_ROOT.'/product/">Produits</A><br>';
print '<A class="menu" href="'.DOL_URL_ROOT.'/product/">'.$langs->trans("Products").'</A><br>';
print '<input type="text" class="flat" name="sall" size="10">&nbsp;';
print '<input type="submit" class="flat" value="go">';
print "</form>\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment