Trad: Traductions manquantes

This commit is contained in:
Laurent Destailleur 2004-10-22 22:42:10 +00:00
parent ebd68fdd59
commit abf514487a
2 changed files with 143 additions and 139 deletions

View File

@ -104,9 +104,9 @@ if ($_GET["action"] == 'edit')
print '<input type="hidden" name="action" value="update">'; print '<input type="hidden" name="action" value="update">';
print '</td></tr>'; print '</td></tr>';
print '<tr class="pair"><td width="50%">Longueur maximum des listes</td><td><input name="size_liste_limit" size="20" value="' . SIZE_LISTE_LIMIT . '"></td></tr>'; print '<tr class="pair"><td width="50%">'.$langs->trans("MaxSizeList").'</td><td><input name="size_liste_limit" size="20" value="' . SIZE_LISTE_LIMIT . '"></td></tr>';
print '<tr class="impair"><td width="50%">Gestionnaire du menu du haut</td>'; print '<tr class="impair"><td width="50%">'.$langs->trans("MenuTopManager").'</td>';
print '<td><select name="main_menu_barretop">'; print '<td><select name="main_menu_barretop">';
$dir = "../includes/menus/barre_top/"; $dir = "../includes/menus/barre_top/";
$handle=opendir($dir); $handle=opendir($dir);
@ -178,7 +178,7 @@ else
$var=True; $var=True;
foreach ($searchform as $key => $value) { foreach ($searchform as $key => $value) {
$var=!$var; $var=!$var;
print '<tr '.$bc[$var].'"><td>'.$searchformtitle[$key].'</td><td>' . ($searchformconst[$key]?"oui":"non") . '</td></tr>'; print '<tr '.$bc[$var].'"><td>'.$searchformtitle[$key].'</td><td>' . ($searchformconst[$key]?$langs->trans("yes"):$langs->trans("no")) . '</td></tr>';
} }
print '</table><br>'; print '</table><br>';

View File

@ -32,6 +32,7 @@ require("./pre.inc.php");
if (!$user->admin) if (!$user->admin)
accessforbidden(); accessforbidden();
// //
// TODO mettre cette section dans la base de données // TODO mettre cette section dans la base de données
// //
@ -101,29 +102,24 @@ function UnActivate($value)
$db->close(); $db->close();
llxHeader(); llxHeader();
if (!$user->admin)
{
print "Forbidden";
llxfooter();
exit;
}
if (!$_GET["spe"]) if (!$_GET["spe"])
{ {
print_titre($langs->trans("Modules")); print_titre($langs->trans("ModulesCommon"));
print "<br>".$langs->trans("ModulesDesc")."<br>\n"; print "<br>".$langs->trans("ModulesDesc")."<br>\n";
} }
else else
{ {
print_titre($langs->trans("Modules Speciaux")); print_titre($langs->trans("ModulesSpecial"));
print "<br>".$langs->trans("ModulesSpecialDesc")."<br>\n";
} }
print '<br>'; print '<br>';
print '<table class="noborder" cellpadding="3" cellspacing="0">'; print '<table class="noborder">';
print '<tr class="liste_titre">'; print '<tr class="liste_titre">';
print '<td>'.$langs->trans("Family").'</td>'; print '<td>'.$langs->trans("Family").'</td>';
print '<td>'.$langs->trans("Module").'</td>'; print '<td>'.$langs->trans("Module").'</td>';
@ -154,7 +150,6 @@ while (($file = readdir($handle))!==false)
if ($objMod->numero > 0) if ($objMod->numero > 0)
{ {
$j = $objMod->numero; $j = $objMod->numero;
// $modules[$objMod->numero] = $modName;
} }
else else
{ {
@ -187,7 +182,6 @@ foreach ($orders as $key => $value)
$tab=split('_',$value); $tab=split('_',$value);
$family=$tab[0]; $numero=$tab[1]; $family=$tab[0]; $numero=$tab[1];
$var=!$var;
$modName = $modules[$key]; $modName = $modules[$key];
if ($modName) if ($modName)
{ {
@ -197,16 +191,20 @@ foreach ($orders as $key => $value)
$const_name = $objMod->const_name; $const_name = $objMod->const_name;
$const_value = $objMod->const_config; $const_value = $objMod->const_config;
if ($oldfamily && $family!=$oldfamily) { print '<tr class="liste_titre"><td colspan="6"></td></tr>'; } if ($oldfamily && $family!=$oldfamily && $atleastoneforfamily) {
print '<tr class="liste_titre"><td colspan="6"></td></tr>';
$atleastoneforfamily=0;
}
if((!$objMod->special && !$_GET["spe"] ) or ($objMod->special && $_GET["spe"])) if((!$objMod->special && !$_GET["spe"] ) or ($objMod->special && $_GET["spe"]))
{ {
$atleastoneforfamily=1;
$var=!$var;
print "<tr $bc[$var]>"; print "<tr $bc[$var]>";
print "<td class='body'>"; print "<td class='body'>";
if ($family!=$oldfamily) { print '<div class="titre">'.$familylib[$family].'</td>'; $oldfamily=$family; } if ($family!=$oldfamily) { print '<div class="titre">'.$familylib[$family].'</div></td>'; $oldfamily=$family; }
else { print '&nbsp;'; } else { print '&nbsp;'; }
print "</td>"; print "</td>";
print "<td>"; print "<td>";
@ -263,10 +261,16 @@ foreach ($orders as $key => $value)
} }
print "</table>"; print "</table>";
if(!$_GET["spe"] )
if ($_GET["spe"])
{ {
print '<br><a href="./modules.php?spe=1">Modules spéciaux</a>'; print '<br><a href="./modules.php?spe=0">'.$langs->trans("ModulesCommon").'</a>';
} }
else
{
print '<br><a href="./modules.php?spe=1">'.$langs->trans("ModulesSpecial").'</a>';
}
llxFooter(); llxFooter();
?> ?>