diff options
author | Volkan Gezer <wakeup@users.noreply.github.com> | 2014-05-25 19:26:37 +0200 |
---|---|---|
committer | Volkan Gezer <wakeup@users.noreply.github.com> | 2014-05-25 19:26:37 +0200 |
commit | 5fa67a4fb0f5e9bd2413336e3de5a02e41215d19 (patch) | |
tree | 4c12b6646358199927360074b768afd7468013ac | |
parent | 3348019bfa96b62a54ce53d3f738d6f6062d12c7 (diff) | |
parent | f880734827210e3d0ce0eb3255a0b7e40c0bcd8c (diff) | |
download | nextcloud-server-5fa67a4fb0f5e9bd2413336e3de5a02e41215d19.tar.gz nextcloud-server-5fa67a4fb0f5e9bd2413336e3de5a02e41215d19.zip |
Merge pull request #8711 from owncloud/l10n-fully-translatable-ldap
make user_ldap fully translatable
-rw-r--r-- | apps/user_ldap/js/settings.js | 2 | ||||
-rw-r--r-- | apps/user_ldap/settings.php | 10 | ||||
-rw-r--r-- | apps/user_ldap/templates/part.settingcontrols.php | 4 | ||||
-rw-r--r-- | apps/user_ldap/templates/part.wizard-server.php | 8 | ||||
-rw-r--r-- | apps/user_ldap/templates/part.wizardcontrols.php | 4 | ||||
-rw-r--r-- | apps/user_ldap/templates/settings.php | 4 |
6 files changed, 17 insertions, 15 deletions
diff --git a/apps/user_ldap/js/settings.js b/apps/user_ldap/js/settings.js index fca2dc13d15..15a02abb065 100644 --- a/apps/user_ldap/js/settings.js +++ b/apps/user_ldap/js/settings.js @@ -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 { diff --git a/apps/user_ldap/settings.php b/apps/user_ldap/settings.php index 7acc997e288..fcde5df3716 100644 --- a/apps/user_ldap/settings.php +++ b/apps/user_ldap/settings.php @@ -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']); diff --git a/apps/user_ldap/templates/part.settingcontrols.php b/apps/user_ldap/templates/part.settingcontrols.php index 0cdb8ccf16f..dfc49549032 100644 --- a/apps/user_ldap/templates/part.settingcontrols.php +++ b/apps/user_ldap/templates/part.settingcontrols.php @@ -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>
\ No newline at end of file +</div> diff --git a/apps/user_ldap/templates/part.wizard-server.php b/apps/user_ldap/templates/part.wizard-server.php index 0312c17ab7b..3d4b0feead9 100644 --- a/apps/user_ldap/templates/part.wizard-server.php +++ b/apps/user_ldap/templates/part.wizard-server.php @@ -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>
\ No newline at end of file + </fieldset> diff --git a/apps/user_ldap/templates/part.wizardcontrols.php b/apps/user_ldap/templates/part.wizardcontrols.php index f17b362c737..862e10bdd12 100644 --- a/apps/user_ldap/templates/part.wizardcontrols.php +++ b/apps/user_ldap/templates/part.wizardcontrols.php @@ -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>
\ No newline at end of file +</div> diff --git a/apps/user_ldap/templates/settings.php b/apps/user_ldap/templates/settings.php index 03f2b8db090..38043fb34a8 100644 --- a/apps/user_ldap/templates/settings.php +++ b/apps/user_ldap/templates/settings.php @@ -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>'); |