forked from extern/egroupware
fix for language independence
This commit is contained in:
parent
2f10a6cc28
commit
29ab476381
@ -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%");
|
||||
|
@ -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>';
|
||||
}
|
||||
|
@ -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"]);
|
||||
|
Loading…
Reference in New Issue
Block a user