From 29ab4763819e142950c8b406497d9d9fb1fd63ce Mon Sep 17 00:00:00 2001 From: skeeter Date: Sun, 21 Jan 2001 14:50:39 +0000 Subject: [PATCH] fix for language independence --- phpgwapi/templates/default/navbar.inc.php | 8 ++++---- phpgwapi/templates/justweb/navbar.inc.php | 6 +++--- phpgwapi/templates/verdilak/navbar.inc.php | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/phpgwapi/templates/default/navbar.inc.php b/phpgwapi/templates/default/navbar.inc.php index 4546eb6abb..70acc30e5e 100644 --- a/phpgwapi/templates/default/navbar.inc.php +++ b/phpgwapi/templates/default/navbar.inc.php @@ -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 = '' . $app[1]['; + $title = '' . lang($app[1]['; if ($phpgw_info["user"]["preferences"]["common"]["navbar_format"] == "icons_and_text") { - $title .= "
" . $app[1]["title"]; + $title .= "
" . lang($app[1]["title"]); $tpl->set_var("width","7%"); } else { $tpl->set_var("width","3%"); diff --git a/phpgwapi/templates/justweb/navbar.inc.php b/phpgwapi/templates/justweb/navbar.inc.php index 1a8f1d34d9..5b2e85df3e 100644 --- a/phpgwapi/templates/justweb/navbar.inc.php +++ b/phpgwapi/templates/justweb/navbar.inc.php @@ -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 = '' . $app[1]['; + $title = '' . lang($app[1]['; if ($phpgw_info["user"]["preferences"]["common"]["navbar_format"] == "icons_and_text") { - $title .= "
" . $app[1]["title"]; + $title .= "
" . lang($app[1]["title"]); } $applications .= '
' . $title . ''; } diff --git a/phpgwapi/templates/verdilak/navbar.inc.php b/phpgwapi/templates/verdilak/navbar.inc.php index 3a2e47afab..51f23fd8be 100644 --- a/phpgwapi/templates/verdilak/navbar.inc.php +++ b/phpgwapi/templates/verdilak/navbar.inc.php @@ -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 = '' . $app[1]['; if ($phpgw_info["user"]["preferences"]["common"]["navbar_format"] == "icons_and_text") { $title .= "
" . lang($app[1]["title"]);