Skip to content
Snippets Groups Projects
Commit 3e99f121 authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

LDAP: make settings strings in JS translatable

parent 2749a141
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ var LdapConfiguration = {
} else {
OC.dialogs.alert(
result.message,
'Deletion failed'
t('user_ldap', 'Deletion failed')
);
}
}
......@@ -81,12 +81,12 @@ $(document).ready(function() {
if (result.status == 'success') {
OC.dialogs.alert(
result.message,
'Connection test succeeded'
t('user_ldap', 'Connection test succeeded')
);
} else {
OC.dialogs.alert(
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) {
event.preventDefault();
OC.dialogs.confirm(
'Do you really want to delete the current Server Configuration?',
'Confirm Deletion',
t('user_ldap', 'Do you really want to delete the current Server Configuration?'),
t('user_ldap', 'Confirm Deletion'),
function(deleteConfiguration) {
if(deleteConfiguration) {
LdapConfiguration.deleteConfiguration();
......@@ -128,8 +128,8 @@ $(document).ready(function() {
function (result) {
if(result.status == 'success') {
OC.dialogs.confirm(
'Take over settings from recent server configuration?',
'Keep settings?',
t('user_ldap', 'Take over settings from recent server configuration?'),
t('user_ldap', 'Keep settings?'),
function(keep) {
if(!keep) {
LdapConfiguration.resetDefaults();
......@@ -142,7 +142,7 @@ $(document).ready(function() {
} else {
OC.dialogs.alert(
result.message,
'Cannot add server configuration'
t('user_ldap', 'Cannot add server configuration')
);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment