updates for better translation

This commit is contained in:
Roland Gruber 2003-07-08 08:54:34 +00:00
parent e01526314b
commit f292691548
3 changed files with 40 additions and 37 deletions

View File

@ -36,7 +36,7 @@ $helpArray = array (
// configuration wizard // configuration wizard
// configuration login // configuration login
"200" => array ("ext" => "FALSE", "Headline" => _("Configuration Wizard - Login"), "200" => array ("ext" => "FALSE", "Headline" => _("Configuration Wizard - Login"),
"Text" => _("Please enter the configuration password. This is NOT your LDAP password. It is stored in your .conf-file. If this is the first time you log in, enter 'lam'.")), "Text" => _("Please enter the configuration password. This is NOT your LDAP password. It is stored in your .conf-file. If this is the first time you log in, enter \"lam\".")),
"201" => array ("ext" => "FALSE", "Headline" => _("Configuration Wizard - Server Address"), "201" => array ("ext" => "FALSE", "Headline" => _("Configuration Wizard - Server Address"),
"Text" => _("This is the Server Address of your LDAP server. Use ldap:// for standard LDAP connections and ldaps:// for encrypted (require server certificates) connections. The port value is optional.") . "Text" => _("This is the Server Address of your LDAP server. Use ldap:// for standard LDAP connections and ldaps:// for encrypted (require server certificates) connections. The port value is optional.") .
"<br><br><b> " . "<br><br><b> " .
@ -62,7 +62,7 @@ $helpArray = array (
"205" => array ("ext" => "FALSE", "Headline" => _("Configuration Wizard - Machine Number"), "205" => array ("ext" => "FALSE", "Headline" => _("Configuration Wizard - Machine Number"),
"Text" => _("These are the minimum and maximum numbers to use for machine IDs when creating new accounts for Samba hosts. The range has to be different from that of users. New host accounts will always get the highest number in use plus one.")), "Text" => _("These are the minimum and maximum numbers to use for machine IDs when creating new accounts for Samba hosts. The range has to be different from that of users. New host accounts will always get the highest number in use plus one.")),
"206" => array ("ext" => "FALSE", "Headline" => _("Configuration Wizard - List Attributes"), "206" => array ("ext" => "FALSE", "Headline" => _("Configuration Wizard - List Attributes"),
"Text" => _("This is the list of attributes to show in the user/group/host list. The entries can either be predefined values, '#value', or individual ones, 'value:description'. Several entries are seperated by semicolons.") . "Text" => _("This is the list of attributes to show in the user/group/host list. The entries can either be predefined values, \"#value\", or individual ones, \"value:description\". Several entries are seperated by semicolons.") .
"<br><br><b>" . "<br><br><b>" .
_("Example") . _("Example") .
": </b>#homeDirectory;#uid;#cn;#uidNumber;#gidNumber;description:UserDescription<br><br><br><u><b>" . ": </b>#homeDirectory;#uid;#cn;#uidNumber;#gidNumber;description:UserDescription<br><br><br><u><b>" .
@ -100,7 +100,7 @@ $helpArray = array (
"212" => array ("ext" => "FALSE", "Headline" => _("Configuration Wizard - Change Password"), "212" => array ("ext" => "FALSE", "Headline" => _("Configuration Wizard - Change Password"),
"Text" => _("If you want to change the current preferences password, please enter it here.")), "Text" => _("If you want to change the current preferences password, please enter it here.")),
"213" => array ("ext" => "FALSE", "Headline" => _("Configuration Wizard - Samba version"), "213" => array ("ext" => "FALSE", "Headline" => _("Configuration Wizard - Samba version"),
"Text" => _("If you use Samba 3.x with the new LDAP schema say 'yes' here, otherwise 'no'."). "Text" => _("If you use Samba 3.x with the new LDAP schema say \"yes\" here, otherwise \"no\".").
"<br><br><b>". "<br><br><b>".
_("LAM will not work if version is wrong!"). _("LAM will not work if version is wrong!").
"</b>"), "</b>"),
@ -108,22 +108,26 @@ $helpArray = array (
"Text" => _("If you use the new Samba 3.x schema enter your domain SID here."). "Text" => _("If you use the new Samba 3.x schema enter your domain SID here.").
"<br><br>". "<br><br>".
_("You can get your domain SID with this command: "). _("You can get your domain SID with this command: ").
"<b>'net getlocalsid'</b>"), "<b>\"net getlocalsid\"</b>"),
// 300 - 399 // 300 - 399
// Roland Gruber // Roland Gruber
// profile editor // profile editor
"300" => array ("ext" => "FALSE", "Headline" => _("Profile Editor - Set Samba Password"), "300" => array ("ext" => "FALSE", "Headline" => _("Profile Editor - Set Samba Password"),
"Text" => _("If set to \"no\" the NT and LM passwords will be set to \"NO PASSWORD*****\" and the user will be unable to login.". "Text" => _("If set to \"no\" the NT and LM passwords will be set to \"NO PASSWORD*****\" and the user will be unable to login.").
"<br><br>If unsure say \"yes\" here.")), "<br><br>".
_("If unsure say \"yes\" here.")),
"301" => array ("ext" => "FALSE", "Headline" => _("Profile Editor - Set Unix Password for Samba"), "301" => array ("ext" => "FALSE", "Headline" => _("Profile Editor - Set Unix Password for Samba"),
"Text" => _("If set to \"yes\" the Windows password will be the same as the Unix one.". "Text" => _("If set to \"yes\" the Windows password will be the same as the Unix one.").
"<br><br>If unsure say \"yes\" here.")), "<br><br>".
_("If unsure say \"yes\" here.")),
"302" => array ("ext" => "FALSE", "Headline" => _("Profile Editor - User can change password"), "302" => array ("ext" => "FALSE", "Headline" => _("Profile Editor - User can change password"),
"Text" => _("If set to \"yes\" the user will be able to change his Windows password.". "Text" => _("If set to \"yes\" the user will be able to change his Windows password.").
"<br><br>If unsure say \"yes\" here.")), "<br><br>".
_("If unsure say \"yes\" here.")),
"303" => array ("ext" => "FALSE", "Headline" => _("Profile Editor - User must change password"), "303" => array ("ext" => "FALSE", "Headline" => _("Profile Editor - User must change password"),
"Text" => _("If set to \"yes\" the user will need to change his Windows password at next login.". "Text" => _("If set to \"yes\" the user will need to change his Windows password at next login.").
"<br><br>If unsure say \"no\" here.")), "<br><br>".
_("If unsure say \"no\" here.")),
"304" => array ("ext" => "FALSE", "Headline" => _("Profile Editor - Home drive"), "304" => array ("ext" => "FALSE", "Headline" => _("Profile Editor - Home drive"),
"Text" => _("This is the drive letter for the user's home drive. The home directory will be connected with this drive letter at login."), "Text" => _("This is the drive letter for the user's home drive. The home directory will be connected with this drive letter at login."),
"SeeAlso" => "<a href=\"./help.php?HelpNumber=305\" target=\"_self\">Path to home directory</a>"), "SeeAlso" => "<a href=\"./help.php?HelpNumber=305\" target=\"_self\">Path to home directory</a>"),
@ -135,8 +139,7 @@ $helpArray = array (
"307" => array ("ext" => "FALSE", "Headline" => _("Profile Editor - Script path"), "307" => array ("ext" => "FALSE", "Headline" => _("Profile Editor - Script path"),
"Text" => _("This is the path to the logon script directory.")), "Text" => _("This is the path to the logon script directory.")),
"308" => array ("ext" => "FALSE", "Headline" => _("Profile Editor - User Workstations"), "308" => array ("ext" => "FALSE", "Headline" => _("Profile Editor - User Workstations"),
"Text" => _("These are the workstations on which the user is allowed to login. They have to be seperated by spaces". "Text" => _("These are the workstations on which the user is allowed to login. They have to be seperated by spaces (e.g. \"PC01 PC09 PC34\"). If the user is allowed to login on all workstations, leave this field empty.")),
" (e.g. \"PC01 PC09 PC34\"). If the user is allowed to login on all workstations, leave this field empty.")),
"309" => array ("ext" => "FALSE", "Headline" => _("Profile Editor - Domain"), "309" => array ("ext" => "FALSE", "Headline" => _("Profile Editor - Domain"),
"Text" => _("This is the Windows domain name.")), "Text" => _("This is the Windows domain name.")),
"330" => array ("ext" => "FALSE", "Headline" => _("Profile Editor - Primary group"), "330" => array ("ext" => "FALSE", "Headline" => _("Profile Editor - Primary group"),
@ -148,8 +151,9 @@ $helpArray = array (
"333" => array ("ext" => "FALSE", "Headline" => _("Profile Editor - Login Shell"), "333" => array ("ext" => "FALSE", "Headline" => _("Profile Editor - Login Shell"),
"Text" => _("This is the user's login shell. Set to \"/bin/bash\" if unsure.")), "Text" => _("This is the user's login shell. Set to \"/bin/bash\" if unsure.")),
"334" => array ("ext" => "FALSE", "Headline" => _("Profile Editor - Set Unix Password"), "334" => array ("ext" => "FALSE", "Headline" => _("Profile Editor - Set Unix Password"),
"Text" => _("If set to \"no\" the Unix password will not be set and the user will be unable to login.". "Text" => _("If set to \"no\" the Unix password will not be set and the user will be unable to login.").
"<br><br>If unsure say \"yes\" here.")), "<br><br>".
_("If unsure say \"yes\" here.")),
"335" => array ("ext" => "FALSE", "Headline" => _("Profile Editor - Password warning"), "335" => array ("ext" => "FALSE", "Headline" => _("Profile Editor - Password warning"),
"Text" => _("Number of days a user will be warned before his password expires.")), "Text" => _("Number of days a user will be warned before his password expires.")),
"336" => array ("ext" => "FALSE", "Headline" => _("Profile Editor - Password expiry"), "336" => array ("ext" => "FALSE", "Headline" => _("Profile Editor - Password expiry"),

View File

@ -400,26 +400,26 @@ class Config {
// prints current preferences // prints current preferences
function printconf() { function printconf() {
echo "<b>" . _("ServerURL") . ": </b>" . $this->ServerURL . "<br>"; echo "<b>" . _("Server Address") . ": </b>" . $this->ServerURL . "<br>";
echo "<b>" . _("Samba3") . ": </b>" . $this->samba3 . "<br>"; echo "<b>" . _("Samba 3.x schema") . ": </b>" . $this->samba3 . "<br>";
echo "<b>" . _("Domain SID") . ": </b>" . $this->domainSID . "<br>"; echo "<b>" . _("Domain SID (Samba 3 only)") . ": </b>" . $this->domainSID . "<br>";
echo "<b>" . _("UserSuffix") . ": </b>" . $this->Suff_users . "<br>"; echo "<b>" . _("UserSuffix") . ": </b>" . $this->Suff_users . "<br>";
echo "<b>" . _("GroupSuffix") . ": </b>" . $this->Suff_groups . "<br>"; echo "<b>" . _("GroupSuffix") . ": </b>" . $this->Suff_groups . "<br>";
echo "<b>" . _("HostSuffix") . ": </b>" . $this->Suff_hosts . "<br>"; echo "<b>" . _("HostSuffix") . ": </b>" . $this->Suff_hosts . "<br>";
echo "<b>" . _("minUID") . ": </b>" . $this->MinUID . "<br>"; echo "<b>" . _("Minimum UID number") . ": </b>" . $this->MinUID . "<br>";
echo "<b>" . _("maxUID") . ": </b>" . $this->MaxUID . "<br>"; echo "<b>" . _("Maximum UID number") . ": </b>" . $this->MaxUID . "<br>";
echo "<b>" . _("minGID") . ": </b>" . $this->MinGID . "<br>"; echo "<b>" . _("Minimum GID number") . ": </b>" . $this->MinGID . "<br>";
echo "<b>" . _("maxGID") . ": </b>" . $this->MaxGID . "<br>"; echo "<b>" . _("Maximum GID number") . ": </b>" . $this->MaxGID . "<br>";
echo "<b>" . _("minMachine") . ": </b>" . $this->MinMachine . "<br>"; echo "<b>" . _("Minimum Machine number") . ": </b>" . $this->MinMachine . "<br>";
echo "<b>" . _("maxMachine") . ": </b>" . $this->MaxMachine . "<br>"; echo "<b>" . _("Maximum Machine number") . ": </b>" . $this->MaxMachine . "<br>";
echo "<b>" . _("userlistAttributes") . ": </b>" . $this->userlistAttributes . "<br>"; echo "<b>" . _("Attributes in User List") . ": </b>" . $this->userlistAttributes . "<br>";
echo "<b>" . _("grouplistAttributes") . ": </b>" . $this->grouplistAttributes . "<br>"; echo "<b>" . _("Attributes in Group List") . ": </b>" . $this->grouplistAttributes . "<br>";
echo "<b>" . _("hostlistAttributes") . ": </b>" . $this->hostlistAttributes . "<br>"; echo "<b>" . _("Attributes in Host List") . ": </b>" . $this->hostlistAttributes . "<br>";
echo "<b>" . _("maxlistentries") . ": </b>" . $this->maxlistentries . "<br>"; echo "<b>" . _("Maximum list entries") . ": </b>" . $this->maxlistentries . "<br>";
echo "<b>" . _("defaultLanguage") . ": </b>" . $this->defaultLanguage . "<br>"; echo "<b>" . _("Default Language") . ": </b>" . $this->defaultLanguage . "<br>";
echo "<b>" . _("scriptPath") . ": </b>" . $this->scriptPath . "<br>"; echo "<b>" . _("Path to external script") . ": </b>" . $this->scriptPath . "<br>";
echo "<b>" . _("scriptServer") . ": </b>" . $this->scriptServer . "<br>"; echo "<b>" . _("Server of external script") . ": </b>" . $this->scriptServer . "<br>";
echo "<b>" . _("Admins") . ": </b>" . $this->Adminstring; echo "<b>" . _("List of valid users") . ": </b>" . $this->Adminstring;
} }
// functions to read/write preferences // functions to read/write preferences

View File

@ -9,12 +9,12 @@ $Id$
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or the Free Software Foundation; either version 2 of the License, or
(at your option) any later version. (at your option) any later version.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more detaexils. GNU General Public License for more detaexils.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
@ -38,8 +38,7 @@ $_POST = $_POST + $_GET;
// insert header for html file // insert header for html file
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-15\"?>\n"; echo "<?xml version=\"1.0\" encoding=\"ISO-8859-15\"?>\n";
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n";
\"http://www.w3.org/TR/html4/loose.dtd\">\n";
$usr_units = $_SESSION['usr_units']; $usr_units = $_SESSION['usr_units'];
session_register('usr_units'); session_register('usr_units');