translation update
This commit is contained in:
parent
f792d03a85
commit
2849ad4faa
|
@ -177,8 +177,6 @@ $helpArray = array (
|
|||
"Text" => _("Given name of user. Only letters, - and spaces are allowed.")),
|
||||
"426" => array ("ext" => "FALSE", "Headline" => _("Use no password"),
|
||||
"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"),
|
||||
"Text" => _("If checked unix password will also be used as samba password.")),
|
||||
"429" => array ("ext" => "FALSE", "Headline" => _("Password does not expire"),
|
||||
|
|
|
@ -42,11 +42,11 @@ class cache {
|
|||
function add_cache($attributes) {
|
||||
// Check input variable
|
||||
$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) {
|
||||
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) {
|
||||
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);
|
||||
|
|
|
@ -539,8 +539,8 @@ class accountContainer {
|
|||
*/
|
||||
// Check input variable
|
||||
|
||||
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($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);
|
||||
// *** fixme use global variable to determine allowed types
|
||||
if (!in_array($type, getAvailableScopes())) trigger_error(_('Account type not recognized.'), E_USER_ERROR);
|
||||
$this->type = $type;
|
||||
|
|
|
@ -50,28 +50,28 @@ class inetOrgPerson extends baseModule {
|
|||
function load_Messages() {
|
||||
$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'][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'][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'][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'][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'][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'][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'][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'][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'][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'][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'][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['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!'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -119,13 +119,13 @@ class inetOrgPerson extends baseModule {
|
|||
),
|
||||
array(
|
||||
'name' => 'inetOrgPerson_firstName',
|
||||
'description' => _('First Name'),
|
||||
'description' => _('First name'),
|
||||
'help' => 'givenName',
|
||||
'example' => _('Steve')
|
||||
),
|
||||
array(
|
||||
'name' => 'inetOrgPerson_lastName',
|
||||
'description' => _('Last Name'),
|
||||
'description' => _('Last name'),
|
||||
'help' => 'sn',
|
||||
'example' => _('Miller'),
|
||||
'required' => true
|
||||
|
|
|
@ -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'][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'][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'][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'][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['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."));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -231,7 +231,7 @@ class sambaAccount extends baseModule {
|
|||
switch ($id) {
|
||||
case "description":
|
||||
return array ("ext" => "FALSE", "Headline" => _("Description"),
|
||||
"Text" => _("Host Description."));
|
||||
"Text" => _("Host description."));
|
||||
break;
|
||||
}
|
||||
return false;
|
||||
|
|
|
@ -335,8 +335,8 @@ class sambaGroupMapping extends baseModule {
|
|||
**/
|
||||
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'][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['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");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -172,7 +172,7 @@ class sambaSamAccount extends baseModule {
|
|||
switch ($id) {
|
||||
case "description":
|
||||
return array ("ext" => "FALSE", "Headline" => _("Description"),
|
||||
"Text" => _("Host Description."));
|
||||
"Text" => _("Host description."));
|
||||
break;
|
||||
}
|
||||
return false;
|
||||
|
|
|
@ -161,7 +161,7 @@ if ($_FILES['inputfile'] && ($_FILES['inputfile']['size'] > 0)) {
|
|||
if ($accounts != false) {
|
||||
// set DN
|
||||
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
|
||||
else {
|
||||
$account_dn = $data[$i][$ids['dn_rdn']] . "=" . $accounts[$i][$data[$i][$ids['dn_rdn']]] . ",";
|
||||
|
|
|
@ -45,7 +45,7 @@ if (!$_SESSION['ldap'] || !$_SESSION['ldap']->server()) {
|
|||
|
||||
// print standard 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 ("</head>\n<body>\n<p><br></p>\n");
|
||||
|
||||
|
|
|
@ -129,7 +129,7 @@ echo $_SESSION['header'];
|
|||
<!-- user profile options -->
|
||||
<fieldset>
|
||||
<legend>
|
||||
<b><?php echo _("User Profiles"); ?></b>
|
||||
<b><?php echo _("User profiles"); ?></b>
|
||||
</legend>
|
||||
<table border=0>
|
||||
<!-- new user profile -->
|
||||
|
@ -137,7 +137,7 @@ echo $_SESSION['header'];
|
|||
<td>
|
||||
<input type="radio" name="profile" value="newuser" checked>
|
||||
</td>
|
||||
<td colspan=2><?php echo _("Create a new User Profile"); ?></td>
|
||||
<td colspan=2><?php echo _("Create a new profile"); ?></td>
|
||||
</tr>
|
||||
<!-- edit user profile -->
|
||||
<tr>
|
||||
|
@ -149,7 +149,7 @@ echo $_SESSION['header'];
|
|||
<?php echo $userprofiles ?>
|
||||
</select>
|
||||
</td>
|
||||
<td><?php echo _("Edit User Profile"); ?></td>
|
||||
<td><?php echo _("Edit profile"); ?></td>
|
||||
</tr>
|
||||
<!-- delete user profile -->
|
||||
<tr>
|
||||
|
@ -161,7 +161,7 @@ echo $_SESSION['header'];
|
|||
<?php echo $userprofiles ?>
|
||||
</select>
|
||||
</td>
|
||||
<td><?php echo _("Delete User Profile"); ?></td>
|
||||
<td><?php echo _("Delete profile"); ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
@ -172,7 +172,7 @@ echo $_SESSION['header'];
|
|||
echo " <!-- group profile options -->";
|
||||
echo " <fieldset>";
|
||||
echo " <legend>";
|
||||
echo " <b>" . _("Group Profiles") . "</b>";
|
||||
echo " <b>" . _("Group profiles") . "</b>";
|
||||
echo " </legend>";
|
||||
echo " <table border=0>";
|
||||
echo " <!-- new group profile -->";
|
||||
|
@ -180,7 +180,7 @@ echo " <tr>";
|
|||
echo " <td>";
|
||||
echo " <input type=\"radio\" name=\"profile\" value=\"newgroup\">";
|
||||
echo " </td>";
|
||||
echo " <td colspan=2>" . _("Create a new Group Profile") . "</td>";
|
||||
echo " <td colspan=2>" . _("Create a new profile") . "</td>";
|
||||
echo " </tr>";
|
||||
echo " <!-- edit group profile -->";
|
||||
echo " <tr>";
|
||||
|
@ -192,7 +192,7 @@ echo " <select name=\"e_group\" size=1>";
|
|||
echo " " . $groupprofiles;
|
||||
echo " </select>";
|
||||
echo " </td>";
|
||||
echo " <td>" . _("Edit Group Profile") . "</td>";
|
||||
echo " <td>" . _("Edit profile") . "</td>";
|
||||
echo " </tr>";
|
||||
echo " <!-- delete group profile -->";
|
||||
echo " <tr>";
|
||||
|
@ -204,7 +204,7 @@ echo " <select name=\"d_group\" size=1>";
|
|||
echo " " . $groupprofiles;
|
||||
echo " </select>";
|
||||
echo " </td>";
|
||||
echo " <td>" . _("Delete Group Profile") . "</td>";
|
||||
echo " <td>" . _("Delete profile") . "</td>";
|
||||
echo " </tr>";
|
||||
echo " </table>";
|
||||
echo " </fieldset>";
|
||||
|
@ -215,7 +215,7 @@ echo " <p></p>";
|
|||
<!-- host profile options -->
|
||||
<fieldset>
|
||||
<legend>
|
||||
<b><?php echo _("Samba Host Profiles"); ?></b>
|
||||
<b><?php echo _("Host profiles"); ?></b>
|
||||
</legend>
|
||||
<table border=0>
|
||||
<!-- new host profile -->
|
||||
|
@ -223,7 +223,7 @@ echo " <p></p>";
|
|||
<td>
|
||||
<input type="radio" name="profile" value="newhost">
|
||||
</td>
|
||||
<td colspan=2><?php echo _("Create a new Samba Host Profile"); ?></td>
|
||||
<td colspan=2><?php echo _("Create a new profile"); ?></td>
|
||||
</tr>
|
||||
<!-- edit host profile -->
|
||||
<tr>
|
||||
|
@ -235,7 +235,7 @@ echo " <p></p>";
|
|||
<?php echo $hostprofiles ?>
|
||||
</select>
|
||||
</td>
|
||||
<td><?php echo _("Edit Samba Host Profile"); ?></td>
|
||||
<td><?php echo _("Edit profile"); ?></td>
|
||||
</tr>
|
||||
<!-- delete host profile -->
|
||||
<tr>
|
||||
|
@ -247,7 +247,7 @@ echo " <p></p>";
|
|||
<?php echo $hostprofiles ?>
|
||||
</select>
|
||||
</td>
|
||||
<td><?php echo _("Delete Samba Host Profile"); ?></td>
|
||||
<td><?php echo _("Delete profile"); ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
|
|
Loading…
Reference in New Issue