Trad: Un paquet de pages passes en multi-langues.
This commit is contained in:
parent
4188598b10
commit
2b2d1d4788
@ -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":"").'>Adhérents</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/Tréso</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>';
|
||||
};
|
||||
|
||||
|
||||
8
htdocs/langs/en_US/admin.lang
Normal file
8
htdocs/langs/en_US/admin.lang
Normal file
@ -0,0 +1,8 @@
|
||||
# Dolibarr language file - en_US - admin
|
||||
GlobalSetup=Global setup
|
||||
GUISetup=GUI Setup
|
||||
DictionnarySetup=Dictionnary setup
|
||||
OtherSetup=Other setup
|
||||
Modules=Modules
|
||||
Boxes=Boxes
|
||||
System=System
|
||||
2
htdocs/langs/en_US/commercial.lang
Normal file
2
htdocs/langs/en_US/commercial.lang
Normal file
@ -0,0 +1,2 @@
|
||||
# Dolibarr language file - en_US - commercial
|
||||
Commercial=Commercial
|
||||
@ -1,6 +1,7 @@
|
||||
# Dolibarr language file - fr_FR - soc
|
||||
NewCompany=New company (prospect, customer, supplier)
|
||||
Company=Company
|
||||
Companies=Companies
|
||||
Name=Name
|
||||
Surname=Surname
|
||||
Address=Addrese
|
||||
3
htdocs/langs/en_US/compta.lang
Normal file
3
htdocs/langs/en_US/compta.lang
Normal file
@ -0,0 +1,3 @@
|
||||
# Dolibarr language file - en_US - compta
|
||||
Accountancy=Accountancy
|
||||
Tresury=Tresury
|
||||
@ -1,5 +1,7 @@
|
||||
# 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
|
||||
3
htdocs/langs/en_US/members.lang
Normal file
3
htdocs/langs/en_US/members.lang
Normal file
@ -0,0 +1,3 @@
|
||||
# Dolibarr language file - en_US - members
|
||||
Members=Members
|
||||
Attributs=Attributs
|
||||
2
htdocs/langs/en_US/other.lang
Normal file
2
htdocs/langs/en_US/other.lang
Normal file
@ -0,0 +1,2 @@
|
||||
# Dolibarr language file - en_US - other
|
||||
Calendar=Calendar
|
||||
3
htdocs/langs/en_US/products.lang
Normal file
3
htdocs/langs/en_US/products.lang
Normal file
@ -0,0 +1,3 @@
|
||||
# Dolibarr language file - en_US - products
|
||||
Products=Products
|
||||
Services=Services
|
||||
2
htdocs/langs/en_US/suppliers.lang
Normal file
2
htdocs/langs/en_US/suppliers.lang
Normal file
@ -0,0 +1,2 @@
|
||||
# Dolibarr language file - en_US - suppliers
|
||||
Suppliers=Suppliers
|
||||
8
htdocs/langs/fr_FR/admin.lang
Normal file
8
htdocs/langs/fr_FR/admin.lang
Normal file
@ -0,0 +1,8 @@
|
||||
# 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
|
||||
2
htdocs/langs/fr_FR/commercial.lang
Normal file
2
htdocs/langs/fr_FR/commercial.lang
Normal file
@ -0,0 +1,2 @@
|
||||
# Dolibarr language file - fr_FR - commercial
|
||||
Commercial=Commercial
|
||||
@ -1,6 +1,7 @@
|
||||
# Dolibarr language file - fr_FR - soc
|
||||
NewCompany=Nouvelle société (prospect, client, fournisseur)
|
||||
Company=Société
|
||||
Companies=Sociétés
|
||||
Name=Nom
|
||||
Surname=Prénom
|
||||
Address=Adresse
|
||||
3
htdocs/langs/fr_FR/compta.lang
Normal file
3
htdocs/langs/fr_FR/compta.lang
Normal file
@ -0,0 +1,3 @@
|
||||
# Dolibarr language file - fr_FR - compta
|
||||
Accountancy=Compta
|
||||
Treasury=Treso
|
||||
@ -1,5 +1,7 @@
|
||||
# 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 connectés sous le user</font> %s
|
||||
|
||||
Number=Nombre
|
||||
DevelopmentTeam=Equipe de développement
|
||||
Logout=Deconnexion
|
||||
|
||||
3
htdocs/langs/fr_FR/members.lang
Normal file
3
htdocs/langs/fr_FR/members.lang
Normal file
@ -0,0 +1,3 @@
|
||||
# Dolibarr language file - fr_FR - members
|
||||
Members=Adhérents
|
||||
Attributs=Attributs
|
||||
2
htdocs/langs/fr_FR/other.lang
Normal file
2
htdocs/langs/fr_FR/other.lang
Normal file
@ -0,0 +1,2 @@
|
||||
# Dolibarr language file - fr_FR - other
|
||||
Calendar=Calendrier
|
||||
3
htdocs/langs/fr_FR/products.lang
Normal file
3
htdocs/langs/fr_FR/products.lang
Normal file
@ -0,0 +1,3 @@
|
||||
# Dolibarr language file - fr_FR - products
|
||||
Products=Produits
|
||||
Services=Services
|
||||
2
htdocs/langs/fr_FR/suppliers.lang
Normal file
2
htdocs/langs/fr_FR/suppliers.lang
Normal file
@ -0,0 +1,2 @@
|
||||
# Dolibarr language file - fr_FR - suppliers
|
||||
Suppliers=Fournisseurs
|
||||
@ -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"> ';
|
||||
@ -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"> ';
|
||||
print '<input type="submit" class="flat" value="go">';
|
||||
print "</form>\n";
|
||||
|
||||
@ -24,7 +24,7 @@
|
||||
|
||||
require("pre.inc.php");
|
||||
|
||||
$langs->load("soc");
|
||||
$langs->load("companies");
|
||||
|
||||
|
||||
/*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user