mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 16:33:17 +01:00
fix for language independence
This commit is contained in:
parent
2f10a6cc28
commit
29ab476381
@ -31,17 +31,17 @@
|
|||||||
$i = 1;
|
$i = 1;
|
||||||
while ($app = each($phpgw_info["navbar"])) {
|
while ($app = each($phpgw_info["navbar"])) {
|
||||||
if ($phpgw_info["user"]["preferences"]["common"]["navbar_format"] == "text") {
|
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"];
|
$tabs[$i]["link"] = $app[1]["url"];
|
||||||
if (ereg($phpgw_info["navbar"][$app[0]],$PHP_SELF)) {
|
if (ereg($phpgw_info["navbar"][$app[0]],$PHP_SELF)) {
|
||||||
$selected = $i;
|
$selected = $i;
|
||||||
}
|
}
|
||||||
$i++;
|
$i++;
|
||||||
} else {
|
} else {
|
||||||
$title = '<img src="' . $app[1]["icon"] . '" alt="' . $app[1]["title"] . '" title="'
|
$title = '<img src="' . $app[1]["icon"] . '" alt="' . lang($app[1]["title"]) . '" title="'
|
||||||
. $app[1]["title"] . '" border="0">';
|
. lang($app[1]["title"]) . '" border="0">';
|
||||||
if ($phpgw_info["user"]["preferences"]["common"]["navbar_format"] == "icons_and_text") {
|
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%");
|
$tpl->set_var("width","7%");
|
||||||
} else {
|
} else {
|
||||||
$tpl->set_var("width","3%");
|
$tpl->set_var("width","3%");
|
||||||
|
@ -29,10 +29,10 @@
|
|||||||
|
|
||||||
while ($app = each($phpgw_info["navbar"])) {
|
while ($app = each($phpgw_info["navbar"])) {
|
||||||
if ($app[1]["title"] != "Home" && $app[1]["title"] != "preferences" && ! ereg("About",$app[1]["title"]) && $app[1]["title"] != "Logout") {
|
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="'
|
||||||
. $app[1]["title"] . '" border="0">';
|
. lang($app[1]["title"]) . '" border="0">';
|
||||||
if ($phpgw_info["user"]["preferences"]["common"]["navbar_format"] == "icons_and_text") {
|
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>';
|
$applications .= '<br><a href="' . $app[1]["url"] . '"' . $target . '>' . $title . '</a>';
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
while ($app = each($phpgw_info["navbar"])) {
|
while ($app = each($phpgw_info["navbar"])) {
|
||||||
if ($app[1]["title"] != "Home" && $app[1]["title"] != "preferences" && ! ereg("About",$app[1]["title"]) && $app[1]["title"] != "Logout") {
|
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">';
|
. lang($app[1]["title"]) . '" border="0">';
|
||||||
if ($phpgw_info["user"]["preferences"]["common"]["navbar_format"] == "icons_and_text") {
|
if ($phpgw_info["user"]["preferences"]["common"]["navbar_format"] == "icons_and_text") {
|
||||||
$title .= "<br>" . lang($app[1]["title"]);
|
$title .= "<br>" . lang($app[1]["title"]);
|
||||||
|
Loading…
Reference in New Issue
Block a user