Some errors concerning translation and css cleared

This commit is contained in:
duergner 2003-08-16 17:30:20 +00:00
parent f050362ef2
commit 41fd53634a
5 changed files with 19 additions and 23 deletions

View File

@ -23,6 +23,6 @@ $Id$
LDAP Account Manager example file for external help pages.
*/
?>
<h1 class="help"><?php echo _("Hilfetest 3") ?></h1>
<p class="help"><?php echo _("blablabla 3") ?></p>
<p class="help"><?php echo _("See also: <a href=\"./help.php?HelpNumber=101\" target=\"_self\">101</a>") ?></p>
<h1 class="help"><?php echo "Help test"; ?></h1>
<p class="help"><?php echo "Some text descibing the error"; ?></p>
<p class="help"><?php echo "Optionalle some links to referring help topics"; ?></p>

View File

@ -27,10 +27,6 @@ $Id$
$helpArray = array (
// 0 - 99
// any developer
// for testing purposes
"0" => array ("ext" => "FALSE", "Headline" => _("Hilfetest 1"), "Text" => _("blablabla 1"), "SeeAlso" => "<a href=\"./help.php?HelpNumber=02\" target=\"_self\">02</a>"),
"02" => array ("ext" => "FALSE", "Headline" => _("Hilfetest 2"), "Text" => _("blablabla 2"), "SeeAlso" => ""),
"03" => array ("ext" => "TRUE", "Link" => "extFileExample.php"),
// 200 - 299
// Roland Gruber
// configuration wizard

View File

@ -28,26 +28,26 @@ function StatusMessage($MessageTyp, $MessageHeadline, $MessageText)
/* Setting CSS-StyleSheet class depending on the $MessageTyp and rewriting $MessageTyp with a readable string. */
if($MessageTyp == "INFO")
{
$class = "class=\"status_info\"";
$class = "class=\"statusInfo\"";
$MessageTyp = _("Information");
}
elseif($MessageTyp == "WARN")
{
$class = "class=\"status_warn\"";
$class = "class=\"statusWarn\"";
$MessageTyp = _("Warning");
}
elseif($MessageTyp == "ERROR")
{
$class = "class=\"status_error\"";
$class = "class=\"statusError\"";
$MessageTyp = _("Error");
}
/* Set output-message, when none or false $MessageTyp is submitted. */
else
{
$class = "class=\"status_error\"";
$class = "class=\"statusError\"";
$MessageTyp = _("LAM Internal Error");
$MessageHeadline = _("Invalid/Missing Message Typ");
$MessageText = _("Please report this error to the Bug-Tracker at {link=http://lam.sf.net}LDAP Account Manager Development Team{endlink}. The error number is {bold}0001:Invalid/Missing Message Typ.{endbold} Thank you.");
$MessageHeadline = _("Invalid/Missing Message type");
$MessageText = _("Please report this error to the Bug-Tracker at {link=http://lam.sf.net}LDAP Account Manager Development Team{endlink}. The error number is {bold}0001:Invalid/Missing Message type.{endbold} Thank you.");
}
$MessageHeadline = parseMessageString($MessageHeadline);

View File

@ -70,7 +70,8 @@ function displayHelp($helpNumber)
/* If submitted help number is not in help/help.inc print error message */
elseif(!array_key_exists($helpNumber,$helpArray))
{
$errorMessage = _("Sorry this help number ({bold}" . $helpNumber . "{endbold}) is not available.");
$reference = "({bold}" . $helpNumber . "{endbold})";
$errorMessage = _("Sorry this help number $reference is not available.");
echoHTMLHead();
statusMessage("ERROR","",$errorMessage);
echoHTMLFoot();

View File

@ -98,7 +98,7 @@ function display_LoginPage($config_object,$profile)
</table>
<hr><br><br>
<p align="center">
<b><?php echo _("Enter Username and Password for Account:"); ?></b>
<b><?php echo _("Enter Username and Password for Account") . ":"; ?></b>
</p>
<?php
if($error_message != "") {
@ -117,7 +117,7 @@ function display_LoginPage($config_object,$profile)
<tr>
<td width="45%" align="right">
<?php
echo _("Username:");
echo _("Username") . ":";
?>
</td>
<td width="10%">
@ -139,7 +139,7 @@ function display_LoginPage($config_object,$profile)
<tr>
<td width="45%" align="right">
<?php
echo _("Password:");
echo _("Password") . ":";
?>
</td>
<td width="10%">
@ -156,7 +156,7 @@ function display_LoginPage($config_object,$profile)
<?php
echo $message;
?>
<input type=\"hidden\" name=\"language\" value=\"english\">
<input type="hidden" name="language" value="english">
</td>
<?php
}
@ -165,7 +165,7 @@ function display_LoginPage($config_object,$profile)
?>
<td width="45%" align="right">
<?php
echo _("Your Language:");
echo _("Your Language") . ":";
?>
</td>
<td width="10%">
@ -204,7 +204,7 @@ function display_LoginPage($config_object,$profile)
<tr>
<td width="100%" align="center">
<?php
echo _("You are connecting to ServerURL: ");
echo _("You are connecting to ServerURL") . ": ";
?>
<b><?php echo $config_object->get_ServerURL(); ?></b>
</td>
@ -216,7 +216,7 @@ function display_LoginPage($config_object,$profile)
<input type="hidden" name="action" value="profileChange">
<p align="center">
<?php
echo _("You are currently using Profile: ");
echo _("You are currently using Profile") . ": ";
if(!$_POST['profile']) {
$_POST['profile'] = $profile;
}
@ -290,9 +290,8 @@ else
$default_Config = new CfgMain();
$default_Profile = $default_Config->default;
//echo "default_Profile=" . $default_Profile . "<br>";
$_SESSION["config"] = new Config($default_Profile); // Create new Config object
display_LoginPage($_SESSION["config"],$default_Profile); // Load Login page
}
?>
?>