LDAP: make settings strings in JS translatable

This commit is contained in:
Arthur Schiwon 2013-01-24 22:47:25 +01:00
parent 2749a14171
commit 3e99f12120
1 changed files with 8 additions and 8 deletions

View File

@ -59,7 +59,7 @@ var LdapConfiguration = {
} else { } else {
OC.dialogs.alert( OC.dialogs.alert(
result.message, result.message,
'Deletion failed' t('user_ldap', 'Deletion failed')
); );
} }
} }
@ -81,12 +81,12 @@ $(document).ready(function() {
if (result.status == 'success') { if (result.status == 'success') {
OC.dialogs.alert( OC.dialogs.alert(
result.message, result.message,
'Connection test succeeded' t('user_ldap', 'Connection test succeeded')
); );
} else { } else {
OC.dialogs.alert( OC.dialogs.alert(
result.message, result.message,
'Connection test failed' t('user_ldap', 'Connection test failed')
); );
} }
} }
@ -96,8 +96,8 @@ $(document).ready(function() {
$('#ldap_action_delete_configuration').click(function(event) { $('#ldap_action_delete_configuration').click(function(event) {
event.preventDefault(); event.preventDefault();
OC.dialogs.confirm( OC.dialogs.confirm(
'Do you really want to delete the current Server Configuration?', t('user_ldap', 'Do you really want to delete the current Server Configuration?'),
'Confirm Deletion', t('user_ldap', 'Confirm Deletion'),
function(deleteConfiguration) { function(deleteConfiguration) {
if(deleteConfiguration) { if(deleteConfiguration) {
LdapConfiguration.deleteConfiguration(); LdapConfiguration.deleteConfiguration();
@ -128,8 +128,8 @@ $(document).ready(function() {
function (result) { function (result) {
if(result.status == 'success') { if(result.status == 'success') {
OC.dialogs.confirm( OC.dialogs.confirm(
'Take over settings from recent server configuration?', t('user_ldap', 'Take over settings from recent server configuration?'),
'Keep settings?', t('user_ldap', 'Keep settings?'),
function(keep) { function(keep) {
if(!keep) { if(!keep) {
LdapConfiguration.resetDefaults(); LdapConfiguration.resetDefaults();
@ -142,7 +142,7 @@ $(document).ready(function() {
} else { } else {
OC.dialogs.alert( OC.dialogs.alert(
result.message, result.message,
'Cannot add server configuration' t('user_ldap', 'Cannot add server configuration')
); );
} }
} }