Merge pull request #8711 from owncloud/l10n-fully-translatable-ldap
make user_ldap fully translatable
This commit is contained in:
commit
5fa67a4fb0
|
@ -90,7 +90,7 @@ var LdapConfiguration = {
|
|||
);
|
||||
}
|
||||
$('#ldap_serverconfig_chooser option:selected').removeAttr('selected');
|
||||
var html = '<option value="'+result.configPrefix+'" selected="selected">'+$('#ldap_serverconfig_chooser option').length+'. Server</option>';
|
||||
var html = '<option value="'+result.configPrefix+'" selected="selected">'+t('user_ldap','{nbServer}. Server', {nbServer: $('#ldap_serverconfig_chooser option').length})+'</option>';
|
||||
$('#ldap_serverconfig_chooser option:last').before(html);
|
||||
LdapWizard.init();
|
||||
} else {
|
||||
|
|
|
@ -46,11 +46,13 @@ $wControls = $wControls->fetchPage();
|
|||
$sControls = new OCP\Template('user_ldap', 'part.settingcontrols');
|
||||
$sControls = $sControls->fetchPage();
|
||||
|
||||
$l = \OC_L10N::get('user_ldap');
|
||||
|
||||
$wizTabs = array();
|
||||
$wizTabs[] = array('tpl' => 'part.wizard-server', 'cap' => 'Server');
|
||||
$wizTabs[] = array('tpl' => 'part.wizard-userfilter', 'cap' => 'User Filter');
|
||||
$wizTabs[] = array('tpl' => 'part.wizard-loginfilter', 'cap' => 'Login Filter');
|
||||
$wizTabs[] = array('tpl' => 'part.wizard-groupfilter', 'cap' => 'Group Filter');
|
||||
$wizTabs[] = array('tpl' => 'part.wizard-server', 'cap' => $l->t('Server'));
|
||||
$wizTabs[] = array('tpl' => 'part.wizard-userfilter', 'cap' => $l->t('User Filter'));
|
||||
$wizTabs[] = array('tpl' => 'part.wizard-loginfilter', 'cap' => $l->t('Login Filter'));
|
||||
$wizTabs[] = array('tpl' => 'part.wizard-groupfilter', 'cap' => $l->t('Group Filter'));
|
||||
|
||||
for($i = 0; $i < count($wizTabs); $i++) {
|
||||
$tab = new OCP\Template('user_ldap', $wizTabs[$i]['tpl']);
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
<button class="ldap_action_test_connection" name="ldap_action_test_connection">
|
||||
<?php p($l->t('Test Configuration'));?>
|
||||
</button>
|
||||
<a href="<?php p($theme->getDocBaseUrl()); ?>/server/5.0/admin_manual/auth_ldap.html"
|
||||
<a href="<?php p($theme->getDocBaseUrl()); ?>/server/7.0/admin_manual/configuration/auth_ldap.html"
|
||||
target="_blank">
|
||||
<img src="<?php print_unescaped(OCP\Util::imagePath('', 'actions/info.png')); ?>"
|
||||
style="height:1.75ex" />
|
||||
<?php p($l->t('Help'));?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -3,14 +3,14 @@
|
|||
<select id="ldap_serverconfig_chooser" name="ldap_serverconfig_chooser">
|
||||
<?php if(count($_['serverConfigurationPrefixes']) === 0 ) {
|
||||
?>
|
||||
<option value="" selected>1. Server</option>');
|
||||
<option value="" selected><?php p($l->t('1. Server'));?></option>');
|
||||
<?php
|
||||
} else {
|
||||
$i = 1;
|
||||
$sel = ' selected';
|
||||
foreach($_['serverConfigurationPrefixes'] as $prefix) {
|
||||
?>
|
||||
<option value="<?php p($prefix); ?>"<?php p($sel); $sel = ''; ?>><?php p($i++); ?>. Server: <?php p($_['serverConfigurationHosts'][$prefix]); ?></option>
|
||||
<option value="<?php p($prefix); ?>"<?php p($sel); $sel = ''; ?>><?php p($l->t('%s. Server:', array($i++)));?> <?php p(' '.$_['serverConfigurationHosts'][$prefix]); ?></option>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
@ -18,7 +18,7 @@
|
|||
<option value="NEW"><?php p($l->t('Add Server Configuration'));?></option>
|
||||
</select>
|
||||
<button id="ldap_action_delete_configuration"
|
||||
name="ldap_action_delete_configuration">Delete Configuration</button>
|
||||
name="ldap_action_delete_configuration"><?php p($l->t('Delete Configuration'));?></button>
|
||||
</p>
|
||||
|
||||
<div class="hostPortCombinator">
|
||||
|
@ -68,4 +68,4 @@
|
|||
</div>
|
||||
</div>
|
||||
<?php print_unescaped($_['wizardControls']); ?>
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
|
|
|
@ -7,10 +7,10 @@
|
|||
<button class="ldap_action_continue" name="ldap_action_continue" type="button">
|
||||
<?php p($l->t('Continue'));?>
|
||||
</button>
|
||||
<a href="<?php p($theme->getDocBaseUrl()); ?>/server/5.0/admin_manual/auth_ldap.html"
|
||||
<a href="<?php p($theme->getDocBaseUrl()); ?>/server/7.0/admin_manual/configuration/auth_ldap.html"
|
||||
target="_blank">
|
||||
<img src="<?php print_unescaped(OCP\Util::imagePath('', 'actions/info.png')); ?>"
|
||||
style="height:1.75ex" />
|
||||
<span class="ldap_grey"><?php p($l->t('Help'));?></span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
<?php foreach($_['toc'] as $id => $title) { ?>
|
||||
<li id="<?php p($id); ?>"><a href="<?php p($id); ?>"><?php p($title); ?></a></li>
|
||||
<?php } ?>
|
||||
<li class="ldapSettingsTabs"><a href="#ldapSettings-2">Expert</a></li>
|
||||
<li class="ldapSettingsTabs"><a href="#ldapSettings-1">Advanced</a></li>
|
||||
<li class="ldapSettingsTabs"><a href="#ldapSettings-2"><?php p($l->t('Expert'));?></a></li>
|
||||
<li class="ldapSettingsTabs"><a href="#ldapSettings-1"><?php p($l->t('Advanced'));?></a></li>
|
||||
</ul>
|
||||
<?php if(OCP\App::isEnabled('user_webdavauth')) {
|
||||
print_unescaped('<p class="ldapwarning">'.$l->t('<b>Warning:</b> Apps user_ldap and user_webdavauth are incompatible. You may experience unexpected behavior. Please ask your system administrator to disable one of them.').'</p>');
|
||||
|
|
Loading…
Reference in New Issue