translation update

This commit is contained in:
Roland Gruber 2004-10-23 11:11:31 +00:00
parent f792d03a85
commit 2849ad4faa
11 changed files with 40 additions and 42 deletions

View File

@ -177,8 +177,6 @@ $helpArray = array (
"Text" => _("Given name of user. Only letters, - and spaces are allowed.")), "Text" => _("Given name of user. Only letters, - and spaces are allowed.")),
"426" => array ("ext" => "FALSE", "Headline" => _("Use no password"), "426" => array ("ext" => "FALSE", "Headline" => _("Use no password"),
"Text" => _("If checked no password will be used.")), "Text" => _("If checked no password will be used.")),
"427" => array ("ext" => "FALSE", "Headline" => _("Account deactivated"),
"Text" => _("If checked account will be deactivated by putting a ! before the encrypted password.")),
"428" => array ("ext" => "FALSE", "Headline" => _("Use unix password"), "428" => array ("ext" => "FALSE", "Headline" => _("Use unix password"),
"Text" => _("If checked unix password will also be used as samba password.")), "Text" => _("If checked unix password will also be used as samba password.")),
"429" => array ("ext" => "FALSE", "Headline" => _("Password does not expire"), "429" => array ("ext" => "FALSE", "Headline" => _("Password does not expire"),

View File

@ -42,11 +42,11 @@ class cache {
function add_cache($attributes) { function add_cache($attributes) {
// Check input variable // Check input variable
$allowed_types = array ( 'user', 'group', 'host', 'domain', '*' ); $allowed_types = array ( 'user', 'group', 'host', 'domain', '*' );
if (!is_array($attributes)) trigger_error(_('Argument of add_cache must be : array ( scope => array(attribute1(string), attribute2(string), ..), scope => ... ).'), E_USER_ERROR); if (!is_array($attributes)) trigger_error('Argument of add_cache must be : array ( scope => array(attribute1(string), attribute2(string), ..), scope => ... ).', E_USER_ERROR);
foreach ($attributes as $attribute) { foreach ($attributes as $attribute) {
if (!is_array($attribute)) trigger_error(_('Argument of add_cache must be : array ( scope => array(attribute1(string), attribute2(string), ..), scope => ... ).'), E_USER_ERROR); if (!is_array($attribute)) trigger_error('Argument of add_cache must be : array ( scope => array(attribute1(string), attribute2(string), ..), scope => ... ).', E_USER_ERROR);
foreach ($attribute as $singleattribute) { foreach ($attribute as $singleattribute) {
if (!is_string($singleattribute)) trigger_error(_('Argument of add_cache must be : array ( scope => array(attribute1(string), attribute2(string), ..), scope => ... ).'), E_USER_ERROR); if (!is_string($singleattribute)) trigger_error('Argument of add_cache must be : array ( scope => array(attribute1(string), attribute2(string), ..), scope => ... ).', E_USER_ERROR);
} }
} }
$scopes = array_keys($attributes); $scopes = array_keys($attributes);

View File

@ -539,8 +539,8 @@ class accountContainer {
*/ */
// Check input variable // Check input variable
if (!is_string($type)) trigger_error(_('Argument of accountContainer must be string.'), E_USER_ERROR); if (!is_string($type)) trigger_error('Argument of accountContainer must be string.', E_USER_ERROR);
if (!is_string($base)) trigger_error(_('Argument of accountContainer must be string.'), E_USER_ERROR); if (!is_string($base)) trigger_error('Argument of accountContainer must be string.', E_USER_ERROR);
// *** fixme use global variable to determine allowed types // *** fixme use global variable to determine allowed types
if (!in_array($type, getAvailableScopes())) trigger_error(_('Account type not recognized.'), E_USER_ERROR); if (!in_array($type, getAvailableScopes())) trigger_error(_('Account type not recognized.'), E_USER_ERROR);
$this->type = $type; $this->type = $type;

View File

@ -50,28 +50,28 @@ class inetOrgPerson extends baseModule {
function load_Messages() { function load_Messages() {
$this->messages['host'][0] = array('ERROR', _('Unix workstations'), _('Unix workstations is invalid.')); $this->messages['host'][0] = array('ERROR', _('Unix workstations'), _('Unix workstations is invalid.'));
$this->messages['givenName'][0] = array('ERROR', _('Given name'), _('Given name contains invalid characters!')); $this->messages['givenName'][0] = array('ERROR', _('Given name'), _('Given name contains invalid characters!'));
$this->messages['givenName'][1] = array('ERROR', _('Account %s: inetOrgPerson_lastName'), _('Given name contains invalid characters!')); $this->messages['givenName'][1] = array('ERROR', _('Account %s:') . ' inetOrgPerson_lastName', _('Given name contains invalid characters!'));
$this->messages['surname'][0] = array('ERROR', _('Surname'), _('Surname contains invalid characters!')); $this->messages['surname'][0] = array('ERROR', _('Surname'), _('Surname contains invalid characters!'));
$this->messages['surname'][1] = array('ERROR', _('Account %s: inetOrgPerson_firstName'), _('Surname contains invalid characters!')); $this->messages['surname'][1] = array('ERROR', _('Account %s:') . ' inetOrgPerson_firstName', _('Surname contains invalid characters!'));
$this->messages['telephoneNumber'][0] = array('ERROR', _('Telephone number'), _('Please enter a valid telephone number!')); $this->messages['telephoneNumber'][0] = array('ERROR', _('Telephone number'), _('Please enter a valid telephone number!'));
$this->messages['telephoneNumber'][1] = array('ERROR', _('Account %s: inetOrgPerson_telephone'), _('Please enter a valid telephone number!')); $this->messages['telephoneNumber'][1] = array('ERROR', _('Account %s:') . ' inetOrgPerson_telephone', _('Please enter a valid telephone number!'));
$this->messages['mobileTelephone'][0] = array('ERROR', _('Mobile number'), _('Please enter a valid mobile number!')); $this->messages['mobileTelephone'][0] = array('ERROR', _('Mobile number'), _('Please enter a valid mobile number!'));
$this->messages['mobileTelephone'][1] = array('ERROR', _('Account %s: inetOrgPerson_mobile'), _('Please enter a valid mobile number!')); $this->messages['mobileTelephone'][1] = array('ERROR', _('Account %s:') . " inetOrgPerson_mobile", _('Please enter a valid mobile number!'));
$this->messages['facsimileNumber'][0] = array('ERROR', _('Fax number'), _('Please enter a valid fax number!')); $this->messages['facsimileNumber'][0] = array('ERROR', _('Fax number'), _('Please enter a valid fax number!'));
$this->messages['facsimileNumber'][1] = array('ERROR', _('Account %s: inetOrgPerson_fax'), _('Please enter a valid fax number!')); $this->messages['facsimileNumber'][1] = array('ERROR', _('Account %s:') . ' inetOrgPerson_fax', _('Please enter a valid fax number!'));
$this->messages['email'][0] = array('ERROR', _('eMail address'), _('Please enter a valid eMail address!')); $this->messages['email'][0] = array('ERROR', _('eMail address'), _('Please enter a valid eMail address!'));
$this->messages['email'][1] = array('ERROR', _('Account %s: inetOrgPerson_email'), _('Please enter a valid eMail address!')); $this->messages['email'][1] = array('ERROR', _('Account %s:') . ' inetOrgPerson_email', _('Please enter a valid eMail address!'));
$this->messages['street'][0] = array('ERROR', _('Street'), _('Please enter a valid street name!')); $this->messages['street'][0] = array('ERROR', _('Street'), _('Please enter a valid street name!'));
$this->messages['street'][1] = array('ERROR', _('Account %s: inetOrgPerson_street'), _('Please enter a valid street name!')); $this->messages['street'][1] = array('ERROR', _('Account %s:') . ' inetOrgPerson_street', _('Please enter a valid street name!'));
$this->messages['postalAddress'][0] = array('ERROR', _('Postal address'), _('Please enter a valid postal address!')); $this->messages['postalAddress'][0] = array('ERROR', _('Postal address'), _('Please enter a valid postal address!'));
$this->messages['postalAddress'][1] = array('ERROR', _('Account %s: inetOrgPerson_address'), _('Please enter a valid postal address!')); $this->messages['postalAddress'][1] = array('ERROR', _('Account %s:') . ' inetOrgPerson_address', _('Please enter a valid postal address!'));
$this->messages['postalCode'][0] = array('ERROR', _('Postal code'), _('Please enter a valid postal code!')); $this->messages['postalCode'][0] = array('ERROR', _('Postal code'), _('Please enter a valid postal code!'));
$this->messages['postalCode'][1] = array('ERROR', _('Account %s: inetOrgPerson_postalCode'), _('Please enter a valid postal code!')); $this->messages['postalCode'][1] = array('ERROR', _('Account %s:') . ' inetOrgPerson_postalCode', _('Please enter a valid postal code!'));
$this->messages['title'][0] = array('ERROR', _('Title'), _('Please enter a valid title!')); $this->messages['title'][0] = array('ERROR', _('Title'), _('Please enter a valid title!'));
$this->messages['title'][1] = array('ERROR', _('Account %s: inetOrgPerson_title'), _('Please enter a valid title!')); $this->messages['title'][1] = array('ERROR', _('Account %s:') . ' inetOrgPerson_title', _('Please enter a valid title!'));
$this->messages['employeeType'][0] = array('ERROR', _('Employee type'), _('Please enter a valid employee type!')); $this->messages['employeeType'][0] = array('ERROR', _('Employee type'), _('Please enter a valid employee type!'));
$this->messages['employeeType'][1] = array('ERROR', _('Account %s: inetOrgPerson_type'), _('Please enter a valid employee type!')); $this->messages['employeeType'][1] = array('ERROR', _('Account %s:') . ' inetOrgPerson_type', _('Please enter a valid employee type!'));
$this->messages['cn'][0] = array('ERROR', _('Account %s: inetOrgPerson_cn'), _('Please enter a valid common name!')); $this->messages['cn'][0] = array('ERROR', _('Account %s:') . ' inetOrgPerson_cn', _('Please enter a valid common name!'));
} }
/** /**
@ -119,13 +119,13 @@ class inetOrgPerson extends baseModule {
), ),
array( array(
'name' => 'inetOrgPerson_firstName', 'name' => 'inetOrgPerson_firstName',
'description' => _('First Name'), 'description' => _('First name'),
'help' => 'givenName', 'help' => 'givenName',
'example' => _('Steve') 'example' => _('Steve')
), ),
array( array(
'name' => 'inetOrgPerson_lastName', 'name' => 'inetOrgPerson_lastName',
'description' => _('Last Name'), 'description' => _('Last name'),
'help' => 'sn', 'help' => 'sn',
'example' => _('Miller'), 'example' => _('Miller'),
'required' => true 'required' => true

View File

@ -404,12 +404,12 @@ class posixGroup extends baseModule {
$this->messages['gidNumber'][5] = array('ERROR', _('Minimum GID number'), _('Minimum GID number is invalid or empty!')); $this->messages['gidNumber'][5] = array('ERROR', _('Minimum GID number'), _('Minimum GID number is invalid or empty!'));
$this->messages['gidNumber'][6] = array('ERROR', _('Maximum GID number'), _('Maximum GID number is invalid or empty!')); $this->messages['gidNumber'][6] = array('ERROR', _('Maximum GID number'), _('Maximum GID number is invalid or empty!'));
$this->messages['gidNumber'][7] = array('ERROR', _('Maximum GID number'), _('Maximum GID number must be greater than minimum GID number!')); $this->messages['gidNumber'][7] = array('ERROR', _('Maximum GID number'), _('Maximum GID number must be greater than minimum GID number!'));
$this->messages['gidNumber'][8] = array('ERROR', _('Account %s: posixGroup_gid'), _('GID number has to be a numeric value!')); $this->messages['gidNumber'][8] = array('ERROR', _('Account %s:') . ' posixGroup_gid', _('GID number has to be a numeric value!'));
$this->messages['cn'][0] = array('WARN', _('Groupname'), _('You are using a capital letters. This can cause problems because windows isn\'t case-sensitive.')); $this->messages['cn'][0] = array('WARN', _('Groupname'), _('You are using a capital letters. This can cause problems because windows isn\'t case-sensitive.'));
$this->messages['cn'][1] = array('WARN', _('Groupname'), _('Groupname in use. Selected next free groupname.')); $this->messages['cn'][1] = array('WARN', _('Groupname'), _('Groupname in use. Selected next free groupname.'));
$this->messages['cn'][2] = array('ERROR', _('Groupname'), _('Groupname contains invalid characters. Valid characters are: a-z, A-Z, 0-9 and .-_ !')); $this->messages['cn'][2] = array('ERROR', _('Groupname'), _('Groupname contains invalid characters. Valid characters are: a-z, A-Z, 0-9 and .-_ !'));
$this->messages['cn'][3] = array('ERROR', _('Account %s: posixGroup_cn'), _('Groupname contains invalid characters. Valid characters are: a-z, A-Z, 0-9 and .-_ !')); $this->messages['cn'][3] = array('ERROR', _('Account %s:') . ' posixGroup_cn', _('Groupname contains invalid characters. Valid characters are: a-z, A-Z, 0-9 and .-_ !'));
$this->messages['memberUID'][0] = array('ERROR', _('Account %s: posixGroup_members'), _("This value must be a list of user names separated by semicolons.")); $this->messages['memberUID'][0] = array('ERROR', _('Account %s:') . ' posixGroup_members', _("This value must be a list of user names separated by semicolons."));
} }

View File

@ -231,7 +231,7 @@ class sambaAccount extends baseModule {
switch ($id) { switch ($id) {
case "description": case "description":
return array ("ext" => "FALSE", "Headline" => _("Description"), return array ("ext" => "FALSE", "Headline" => _("Description"),
"Text" => _("Host Description.")); "Text" => _("Host description."));
break; break;
} }
return false; return false;

View File

@ -335,8 +335,8 @@ class sambaGroupMapping extends baseModule {
**/ **/
function load_Messages() { function load_Messages() {
$this->messages['sambaSID'][0] = array('ERROR', _('Special Group'),sprintf( _('There can be only one group %s.'), $rids[$i]), 'sambaSID'); $this->messages['sambaSID'][0] = array('ERROR', _('Special Group'),sprintf( _('There can be only one group %s.'), $rids[$i]), 'sambaSID');
$this->messages['sambaSID'][1] = array('ERROR', _("Account %s (sambaGroupMapping_domain): LAM was unable to find a Samba 3 domain with this name!")); // third parameter must be set dynamically $this->messages['sambaSID'][1] = array('ERROR', _("Account %s") . " (sambaGroupMapping_domain): " . _("LAM was unable to find a Samba 3 domain with this name!")); // third parameter must be set dynamically
$this->messages['groupType'][0] = array('ERROR', _("Account %s (sambaGroupMapping_type): This is not a valid Samba 3 group type!"), _("Possible values:") . " %s"); $this->messages['groupType'][0] = array('ERROR', _("Account %s") . "(sambaGroupMapping_type): " . _("This is not a valid Samba 3 group type!"), _("Possible values:") . " %s");
} }

View File

@ -172,7 +172,7 @@ class sambaSamAccount extends baseModule {
switch ($id) { switch ($id) {
case "description": case "description":
return array ("ext" => "FALSE", "Headline" => _("Description"), return array ("ext" => "FALSE", "Headline" => _("Description"),
"Text" => _("Host Description.")); "Text" => _("Host description."));
break; break;
} }
return false; return false;

View File

@ -161,7 +161,7 @@ if ($_FILES['inputfile'] && ($_FILES['inputfile']['size'] > 0)) {
if ($accounts != false) { if ($accounts != false) {
// set DN // set DN
for ($i = 0; $i < sizeof($accounts); $i++) { for ($i = 0; $i < sizeof($accounts); $i++) {
if (!isset($accounts[$i][$data[$i][$ids['dn_rdn']]])) $errors[] = array(_('Account %s: dn_rdn'), _("Data field for RDN is empty!"), array($i)); if (!isset($accounts[$i][$data[$i][$ids['dn_rdn']]])) $errors[] = array(_('Account %s:') . ' dn_rdn', _("Data field for RDN is empty!"), array($i));
// TODO check against list of possible RDN attributes // TODO check against list of possible RDN attributes
else { else {
$account_dn = $data[$i][$ids['dn_rdn']] . "=" . $accounts[$i][$data[$i][$ids['dn_rdn']]] . ","; $account_dn = $data[$i][$ids['dn_rdn']] . "=" . $accounts[$i][$data[$i][$ids['dn_rdn']]] . ",";

View File

@ -45,7 +45,7 @@ if (!$_SESSION['ldap'] || !$_SESSION['ldap']->server()) {
// print standard header // print standard header
echo $_SESSION['header']; echo $_SESSION['header'];
echo ("<title>" . _("Delete PDF Structure") . "</title>\n"); echo ("<title>" . _("Delete PDF structure") . "</title>\n");
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n"; echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../../style/layout.css\">\n";
echo ("</head>\n<body>\n<p><br></p>\n"); echo ("</head>\n<body>\n<p><br></p>\n");

View File

@ -129,7 +129,7 @@ echo $_SESSION['header'];
<!-- user profile options --> <!-- user profile options -->
<fieldset> <fieldset>
<legend> <legend>
<b><?php echo _("User Profiles"); ?></b> <b><?php echo _("User profiles"); ?></b>
</legend> </legend>
<table border=0> <table border=0>
<!-- new user profile --> <!-- new user profile -->
@ -137,7 +137,7 @@ echo $_SESSION['header'];
<td> <td>
<input type="radio" name="profile" value="newuser" checked> <input type="radio" name="profile" value="newuser" checked>
</td> </td>
<td colspan=2><?php echo _("Create a new User Profile"); ?></td> <td colspan=2><?php echo _("Create a new profile"); ?></td>
</tr> </tr>
<!-- edit user profile --> <!-- edit user profile -->
<tr> <tr>
@ -149,7 +149,7 @@ echo $_SESSION['header'];
<?php echo $userprofiles ?> <?php echo $userprofiles ?>
</select> </select>
</td> </td>
<td><?php echo _("Edit User Profile"); ?></td> <td><?php echo _("Edit profile"); ?></td>
</tr> </tr>
<!-- delete user profile --> <!-- delete user profile -->
<tr> <tr>
@ -161,7 +161,7 @@ echo $_SESSION['header'];
<?php echo $userprofiles ?> <?php echo $userprofiles ?>
</select> </select>
</td> </td>
<td><?php echo _("Delete User Profile"); ?></td> <td><?php echo _("Delete profile"); ?></td>
</tr> </tr>
</table> </table>
</fieldset> </fieldset>
@ -172,7 +172,7 @@ echo $_SESSION['header'];
echo " <!-- group profile options -->"; echo " <!-- group profile options -->";
echo " <fieldset>"; echo " <fieldset>";
echo " <legend>"; echo " <legend>";
echo " <b>" . _("Group Profiles") . "</b>"; echo " <b>" . _("Group profiles") . "</b>";
echo " </legend>"; echo " </legend>";
echo " <table border=0>"; echo " <table border=0>";
echo " <!-- new group profile -->"; echo " <!-- new group profile -->";
@ -180,7 +180,7 @@ echo " <tr>";
echo " <td>"; echo " <td>";
echo " <input type=\"radio\" name=\"profile\" value=\"newgroup\">"; echo " <input type=\"radio\" name=\"profile\" value=\"newgroup\">";
echo " </td>"; echo " </td>";
echo " <td colspan=2>" . _("Create a new Group Profile") . "</td>"; echo " <td colspan=2>" . _("Create a new profile") . "</td>";
echo " </tr>"; echo " </tr>";
echo " <!-- edit group profile -->"; echo " <!-- edit group profile -->";
echo " <tr>"; echo " <tr>";
@ -192,7 +192,7 @@ echo " <select name=\"e_group\" size=1>";
echo " " . $groupprofiles; echo " " . $groupprofiles;
echo " </select>"; echo " </select>";
echo " </td>"; echo " </td>";
echo " <td>" . _("Edit Group Profile") . "</td>"; echo " <td>" . _("Edit profile") . "</td>";
echo " </tr>"; echo " </tr>";
echo " <!-- delete group profile -->"; echo " <!-- delete group profile -->";
echo " <tr>"; echo " <tr>";
@ -204,7 +204,7 @@ echo " <select name=\"d_group\" size=1>";
echo " " . $groupprofiles; echo " " . $groupprofiles;
echo " </select>"; echo " </select>";
echo " </td>"; echo " </td>";
echo " <td>" . _("Delete Group Profile") . "</td>"; echo " <td>" . _("Delete profile") . "</td>";
echo " </tr>"; echo " </tr>";
echo " </table>"; echo " </table>";
echo " </fieldset>"; echo " </fieldset>";
@ -215,7 +215,7 @@ echo " <p></p>";
<!-- host profile options --> <!-- host profile options -->
<fieldset> <fieldset>
<legend> <legend>
<b><?php echo _("Samba Host Profiles"); ?></b> <b><?php echo _("Host profiles"); ?></b>
</legend> </legend>
<table border=0> <table border=0>
<!-- new host profile --> <!-- new host profile -->
@ -223,7 +223,7 @@ echo " <p></p>";
<td> <td>
<input type="radio" name="profile" value="newhost"> <input type="radio" name="profile" value="newhost">
</td> </td>
<td colspan=2><?php echo _("Create a new Samba Host Profile"); ?></td> <td colspan=2><?php echo _("Create a new profile"); ?></td>
</tr> </tr>
<!-- edit host profile --> <!-- edit host profile -->
<tr> <tr>
@ -235,7 +235,7 @@ echo " <p></p>";
<?php echo $hostprofiles ?> <?php echo $hostprofiles ?>
</select> </select>
</td> </td>
<td><?php echo _("Edit Samba Host Profile"); ?></td> <td><?php echo _("Edit profile"); ?></td>
</tr> </tr>
<!-- delete host profile --> <!-- delete host profile -->
<tr> <tr>
@ -247,7 +247,7 @@ echo " <p></p>";
<?php echo $hostprofiles ?> <?php echo $hostprofiles ?>
</select> </select>
</td> </td>
<td><?php echo _("Delete Samba Host Profile"); ?></td> <td><?php echo _("Delete profile"); ?></td>
</tr> </tr>
</table> </table>
</fieldset> </fieldset>