fix for language independence

This commit is contained in:
skeeter 2001-01-21 14:50:39 +00:00
parent 2f10a6cc28
commit 29ab476381
3 changed files with 8 additions and 8 deletions

View File

@ -31,17 +31,17 @@
$i = 1;
while ($app = each($phpgw_info["navbar"])) {
if ($phpgw_info["user"]["preferences"]["common"]["navbar_format"] == "text") {
$tabs[$i]["label"] = $app[1]["title"];
$tabs[$i]["label"] = lang($app[1]["title"]);
$tabs[$i]["link"] = $app[1]["url"];
if (ereg($phpgw_info["navbar"][$app[0]],$PHP_SELF)) {
$selected = $i;
}
$i++;
} else {
$title = '<img src="' . $app[1]["icon"] . '" alt="' . $app[1]["title"] . '" title="'
. $app[1]["title"] . '" border="0">';
$title = '<img src="' . $app[1]["icon"] . '" alt="' . lang($app[1]["title"]) . '" title="'
. lang($app[1]["title"]) . '" border="0">';
if ($phpgw_info["user"]["preferences"]["common"]["navbar_format"] == "icons_and_text") {
$title .= "<br>" . $app[1]["title"];
$title .= "<br>" . lang($app[1]["title"]);
$tpl->set_var("width","7%");
} else {
$tpl->set_var("width","3%");

View File

@ -29,10 +29,10 @@
while ($app = each($phpgw_info["navbar"])) {
if ($app[1]["title"] != "Home" && $app[1]["title"] != "preferences" && ! ereg("About",$app[1]["title"]) && $app[1]["title"] != "Logout") {
$title = '<img src="' . $app[1]["icon"] . '" alt="' . $app[1]["title"] . '" title="'
. $app[1]["title"] . '" border="0">';
$title = '<img src="' . $app[1]["icon"] . '" alt="' . lang($app[1]["title"]) . '" title="'
. lang($app[1]["title"]) . '" border="0">';
if ($phpgw_info["user"]["preferences"]["common"]["navbar_format"] == "icons_and_text") {
$title .= "<br>" . $app[1]["title"];
$title .= "<br>" . lang($app[1]["title"]);
}
$applications .= '<br><a href="' . $app[1]["url"] . '"' . $target . '>' . $title . '</a>';
}

View File

@ -29,7 +29,7 @@
while ($app = each($phpgw_info["navbar"])) {
if ($app[1]["title"] != "Home" && $app[1]["title"] != "preferences" && ! ereg("About",$app[1]["title"]) && $app[1]["title"] != "Logout") {
$title = '<img src="' . $app[1]["icon"] . '" alt="' . $app[1]["title"] . '" title="'
$title = '<img src="' . $app[1]["icon"] . '" alt="' . lang($app[1]["title"]) . '" title="'
. lang($app[1]["title"]) . '" border="0">';
if ($phpgw_info["user"]["preferences"]["common"]["navbar_format"] == "icons_and_text") {
$title .= "<br>" . lang($app[1]["title"]);