improved predefined attributes, small translation update

This commit is contained in:
Roland Gruber 2003-08-14 16:23:43 +00:00
parent c0eecdc6b6
commit bbc72b4e94
6 changed files with 14 additions and 13 deletions

View File

@ -53,21 +53,21 @@ class Ldap{
// construct arrays with known LDAP attributes
$this->ldapUserAttributes = array (
"uid" => _("User ID"),
"uidNumber" => _("UID number"),
"gidNumber" => _("GID number"),
"uidnumber" => _("UID number"),
"gidnumber" => _("GID number"),
"cn" => _("Username"),
"host" => _("Allowed hosts"),
"givenName" => _("First name"),
"givenname" => _("First name"),
"sn" => _("Last name"),
"homeDirectory" => _("Home directory"),
"loginShell" => _("Login shell"),
"homedirectory" => _("Home directory"),
"loginshell" => _("Login shell"),
"mail" => _("E-Mail"),
"gecos" => _("Description")
);
$this->ldapGroupAttributes = array (
"cn" => _("Group name"),
"gidNumber" => _("GID number"),
"memberUID" => _("Group members"),
"gidnumber" => _("GID number"),
"memberuid" => _("Group members"),
"member" => _("Group member DNs"),
"description" => _("Group description")
);

View File

@ -1,4 +1,4 @@
# $Id: messages.po,v 1.9 2003/08/14 13:21:11 gruberroland Exp $
# $Id: messages.po,v 1.10 2003/08/14 15:28:06 gruberroland Exp $
#
#
# LDAP Account Manager
@ -2092,11 +2092,11 @@ msgstr "Suffix"
#: ../templates/account.php:439 ../templates/masscreate.php:196
#: ../templates/massdetail.php:97 ../help/help.inc:171 ../lib/account.inc:184
msgid "Surname"
msgstr "Vorname"
msgstr "Nachname"
#: ../lib/account.inc:184
msgid "Surname contents invalid characters"
msgstr "Vorname enthält ungültige Zeichen"
msgstr "Nachname enthält ungültige Zeichen"
#: ../help/help.inc:172
msgid ""

View File

@ -84,7 +84,7 @@ else
for ($i = 0; $i < sizeof($temp_array); $i++) {
// if value is predifined, look up description in hash_table
if (substr($temp_array[$i],0,1) == "#") {
$attr = substr($temp_array[$i],1);
$attr = strtolower(substr($temp_array[$i],1));
$attr_array[$i] = $attr;
$desc_array[] = strtoupper($hash_table[$attr]);
}

View File

@ -84,7 +84,7 @@ else
for ($i = 0; $i < sizeof($temp_array); $i++) {
// if value is predifined, look up description in hash_table
if (substr($temp_array[$i],0,1) == "#") {
$attr = substr($temp_array[$i],1);
$attr = strtolower(substr($temp_array[$i],1));
$attr_array[$i] = $attr;
$desc_array[] = strtoupper($hash_table[$attr]);
}

View File

@ -79,10 +79,11 @@ if ($_SESSION["config"]->get_MaxListEntries() <= 0)
$max_pageentrys = $_SESSION["config"]->get_MaxListEntries();
// generate column attributes and descriptions
for ($i = 0; $i < sizeof($temp_array); $i++) {
// if value is predifined, look up description in hash_table
if (substr($temp_array[$i],0,1) == "#") {
$attr = substr($temp_array[$i],1);
$attr = strtolower(substr($temp_array[$i],1));
$attr_array[$i] = $attr;
$desc_array[] = strtoupper($hash_table[$attr]);
}