Skip to content
Snippets Groups Projects
Commit 925de78c authored by Bart Visscher's avatar Bart Visscher
Browse files

Join split translated strings

parent 92a36ca8
Branches
No related tags found
No related merge requests found
...@@ -36,8 +36,7 @@ if($connection->setConfiguration($_POST)) { ...@@ -36,8 +36,7 @@ if($connection->setConfiguration($_POST)) {
=> $l->t('The configuration is valid and the connection could be established!'))); => $l->t('The configuration is valid and the connection could be established!')));
} else { } else {
OCP\JSON::error(array('message' OCP\JSON::error(array('message'
=> $l->t('The configuration is valid, but the Bind failed.' => $l->t('The configuration is valid, but the Bind failed. Please check the server settings and credentials.')));
.' Please check the server settings and credentials.')));
} }
} else { } else {
OCP\JSON::error(array('message' OCP\JSON::error(array('message'
......
...@@ -5,13 +5,10 @@ ...@@ -5,13 +5,10 @@
<li><a href="#ldapSettings-2">Advanced</a></li> <li><a href="#ldapSettings-2">Advanced</a></li>
</ul> </ul>
<?php if(OCP\App::isEnabled('user_webdavauth')) { <?php if(OCP\App::isEnabled('user_webdavauth')) {
echo '<p class="ldapwarning">'.$l->t('<b>Warning:</b> Apps user_ldap and user_webdavauth are incompatible.' echo '<p class="ldapwarning">'.$l->t('<b>Warning:</b> Apps user_ldap and user_webdavauth are incompatible. You may experience unexpected behaviour. Please ask your system administrator to disable one of them.').'</p>';
.' You may experience unexpected behaviour.'
.' Please ask your system administrator to disable one of them.').'</p>';
} }
if(!function_exists('ldap_connect')) { if(!function_exists('ldap_connect')) {
echo '<p class="ldapwarning">'.$l->t('<b>Warning:</b> The PHP LDAP module is not installed,' echo '<p class="ldapwarning">'.$l->t('<b>Warning:</b> The PHP LDAP module is not installed, the backend will not work. Please ask your system administrator to install it.').'</p>';
.' the backend will not work. Please ask your system administrator to install it.').'</p>';
} }
?> ?>
<fieldset id="ldapSettings-1"> <fieldset id="ldapSettings-1">
...@@ -25,16 +22,14 @@ ...@@ -25,16 +22,14 @@
</p> </p>
<p><label for="ldap_host"><?php echo $l->t('Host');?></label> <p><label for="ldap_host"><?php echo $l->t('Host');?></label>
<input type="text" id="ldap_host" name="ldap_host" data-default="<?php echo $_['ldap_host_default']; ?>" <input type="text" id="ldap_host" name="ldap_host" data-default="<?php echo $_['ldap_host_default']; ?>"
title="<?php echo $l->t('You can omit the protocol, except you require SSL.' title="<?php echo $l->t('You can omit the protocol, except you require SSL. Then start with ldaps://');?>"></p>
.' Then start with ldaps://');?>"></p>
<p><label for="ldap_base"><?php echo $l->t('Base DN');?></label> <p><label for="ldap_base"><?php echo $l->t('Base DN');?></label>
<textarea id="ldap_base" name="ldap_base" placeholder="<?php echo $l->t('One Base DN per line');?>" <textarea id="ldap_base" name="ldap_base" placeholder="<?php echo $l->t('One Base DN per line');?>"
title="<?php echo $l->t('You can specify Base DN for users and groups in the Advanced tab');?>" title="<?php echo $l->t('You can specify Base DN for users and groups in the Advanced tab');?>"
data-default="<?php echo $_['ldap_base_default']; ?>" ></textarea></p> data-default="<?php echo $_['ldap_base_default']; ?>" ></textarea></p>
<p><label for="ldap_dn"><?php echo $l->t('User DN');?></label> <p><label for="ldap_dn"><?php echo $l->t('User DN');?></label>
<input type="text" id="ldap_dn" name="ldap_dn" data-default="<?php echo $_['ldap_dn_default']; ?>" <input type="text" id="ldap_dn" name="ldap_dn" data-default="<?php echo $_['ldap_dn_default']; ?>"
title="<?php echo $l->t('The DN of the client user with which the bind shall be done,' title="<?php echo $l->t('The DN of the client user with which the bind shall be done, e.g. uid=agent,dc=example,dc=com. For anonymous access, leave DN and Password empty.');?>" /></p>
.' e.g. uid=agent,dc=example,dc=com. For anonymous access, leave DN and Password empty.');?>" /></p>
<p><label for="ldap_agent_password"><?php echo $l->t('Password');?></label> <p><label for="ldap_agent_password"><?php echo $l->t('Password');?></label>
<input type="password" id="ldap_agent_password" name="ldap_agent_password" <input type="password" id="ldap_agent_password" name="ldap_agent_password"
data-default="<?php echo $_['ldap_agent_password_default']; ?>" data-default="<?php echo $_['ldap_agent_password_default']; ?>"
...@@ -42,8 +37,7 @@ ...@@ -42,8 +37,7 @@
<p><label for="ldap_login_filter"><?php echo $l->t('User Login Filter');?></label> <p><label for="ldap_login_filter"><?php echo $l->t('User Login Filter');?></label>
<input type="text" id="ldap_login_filter" name="ldap_login_filter" <input type="text" id="ldap_login_filter" name="ldap_login_filter"
data-default="<?php echo $_['ldap_login_filter_default']; ?>" data-default="<?php echo $_['ldap_login_filter_default']; ?>"
title="<?php echo $l->t('Defines the filter to apply, when login is attempted.' title="<?php echo $l->t('Defines the filter to apply, when login is attempted. %%uid replaces the username in the login action.');?>" />
.' %%uid replaces the username in the login action.');?>" />
<br /><small><?php echo $l->t('use %%uid placeholder, e.g. "uid=%%uid"');?></small></p> <br /><small><?php echo $l->t('use %%uid placeholder, e.g. "uid=%%uid"');?></small></p>
<p><label for="ldap_userlist_filter"><?php echo $l->t('User List Filter');?></label> <p><label for="ldap_userlist_filter"><?php echo $l->t('User List Filter');?></label>
<input type="text" id="ldap_userlist_filter" name="ldap_userlist_filter" <input type="text" id="ldap_userlist_filter" name="ldap_userlist_filter"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment