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

View File

@ -27,10 +27,6 @@ $Id$
$helpArray = array ( $helpArray = array (
// 0 - 99 // 0 - 99
// any developer // 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 // 200 - 299
// Roland Gruber // Roland Gruber
// configuration wizard // 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. */ /* Setting CSS-StyleSheet class depending on the $MessageTyp and rewriting $MessageTyp with a readable string. */
if($MessageTyp == "INFO") if($MessageTyp == "INFO")
{ {
$class = "class=\"status_info\""; $class = "class=\"statusInfo\"";
$MessageTyp = _("Information"); $MessageTyp = _("Information");
} }
elseif($MessageTyp == "WARN") elseif($MessageTyp == "WARN")
{ {
$class = "class=\"status_warn\""; $class = "class=\"statusWarn\"";
$MessageTyp = _("Warning"); $MessageTyp = _("Warning");
} }
elseif($MessageTyp == "ERROR") elseif($MessageTyp == "ERROR")
{ {
$class = "class=\"status_error\""; $class = "class=\"statusError\"";
$MessageTyp = _("Error"); $MessageTyp = _("Error");
} }
/* Set output-message, when none or false $MessageTyp is submitted. */ /* Set output-message, when none or false $MessageTyp is submitted. */
else else
{ {
$class = "class=\"status_error\""; $class = "class=\"statusError\"";
$MessageTyp = _("LAM Internal Error"); $MessageTyp = _("LAM Internal Error");
$MessageHeadline = _("Invalid/Missing Message Typ"); $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 Typ.{endbold} Thank you."); $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); $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 */ /* If submitted help number is not in help/help.inc print error message */
elseif(!array_key_exists($helpNumber,$helpArray)) 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(); echoHTMLHead();
statusMessage("ERROR","",$errorMessage); statusMessage("ERROR","",$errorMessage);
echoHTMLFoot(); echoHTMLFoot();

View File

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