Browse Source

dev schema nextcloud

marinofaggiana 5 years ago
parent
commit
d7bc067152

+ 2 - 1
iOSClient/AppDelegate.m

@@ -1588,7 +1588,8 @@ PKPushRegistry *pushRegistry;
                 } else {
                     
                     NSString *domain = [[NSURL URLWithString:link] host];
-                    NSString *message = [NSString stringWithFormat:NSLocalizedString(@"_account_not_available_", nil), user];
+                    NSString *fileName = [path lastPathComponent];
+                    NSString *message = [NSString stringWithFormat:NSLocalizedString(@"_account_not_available_", nil), user, domain, fileName];
                     
                     UIAlertController *alertController = [UIAlertController alertControllerWithTitle:NSLocalizedString(@"_info_", nil) message:message preferredStyle:UIAlertControllerStyleAlert];
                     UIAlertAction *okAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"_ok_", nil) style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {}];

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

@@ -101,6 +101,7 @@
 "_denied_camera_"           = "This app does not have access to \"Camera\", you can enable access in Privacy Settings";
 "_start_"                   = "Start";
 "_purchase_"                = "Purchase";
+"_account_not_available_"   = "The user %@ on server %@ do not exists, please add it to be able to read the file %@";
 
 // App