marinofaggiana 3 years ago
parent
commit
009b19b4a8

+ 5 - 4
iOSClient/Settings/CCManageAccount.m

@@ -420,13 +420,14 @@
         tableAccount *tableAccountForDelete = accounts[indexPath.row];
         tableAccount *tableActiveAccount = [[NCManageDatabase shared] getActiveAccount];
         
-        UIAlertController *alertController = [UIAlertController alertControllerWithTitle:NSLocalizedString(@"_want_delete_",nil) message:nil preferredStyle:UIAlertControllerStyleActionSheet];
+        NSString *accountForDelete = tableAccountForDelete.account;
+        NSString *activeAccount = tableActiveAccount.account;
+
+        NSString *title = [NSString stringWithFormat:NSLocalizedString(@"_want_delete_account_",nil), accountForDelete];
+        UIAlertController *alertController = [UIAlertController alertControllerWithTitle:title message:nil preferredStyle:UIAlertControllerStyleActionSheet];
         
         [alertController addAction: [UIAlertAction actionWithTitle:NSLocalizedString(@"_delete_", nil) style:UIAlertActionStyleDestructive handler:^(UIAlertAction *action) {
                         
-            NSString *activeAccount = tableActiveAccount.account;
-            NSString *accountForDelete = tableAccountForDelete.account;
-            
             if (accountForDelete) {
                 [appDelegate deleteAccount:accountForDelete wipe:false];
             }

+ 1 - 0
iOSClient/Supporting Files/en.lproj/Localizable.strings

@@ -177,6 +177,7 @@
 "_certificate_not_found_"   = "File %@ in documents directory not found.";
 "_copy_failed_"             = "Copy failed";
 "_certificate_installed_"   = "Certificate installed";
+"_want_delete_account_"     = "Do you want to delete the account %@";
 
 /* Background of the file listing view */
 "_use_as_background_"       = "Use it as a background";

BIN
iOSClient/Supporting Files/it.lproj/Localizable.strings