Переглянути джерело

Add new String for translate

Marino Faggiana 8 роки тому
батько
коміт
6e9dbaad4b
2 змінених файлів з 7 додано та 1 видалено
  1. 6 1
      iOSClient/Main/CCDetail.m
  2. 1 0
      iOSClient/en.lproj/Localizable.strings

+ 6 - 1
iOSClient/Main/CCDetail.m

@@ -675,7 +675,12 @@
 - (void)photoBrowser:(MWPhotoBrowser *)photoBrowser deleteButtonPressedForPhotoAtIndex:(NSUInteger)index deleteButton:(UIBarButtonItem *)deleteButton
 {
     CCMetadata *metadata = [self.dataSourceImagesVideos objectAtIndex:index];
-    if (metadata == nil || [[NSFileManager defaultManager] fileExistsAtPath:[NSString stringWithFormat:@"%@/%@", app.directoryUser, metadata.fileID]] == NO) return;
+    if (metadata == nil || [[NSFileManager defaultManager] fileExistsAtPath:[NSString stringWithFormat:@"%@/%@", app.directoryUser, metadata.fileID]] == NO) {
+        
+        [app messageNotification:@"_info_" description:@"_file_not_found_" visible:YES delay:dismissAfterSecond type:TWMessageBarMessageTypeInfo];
+        
+        return;
+    }
     
     UIAlertController *alertController = [UIAlertController alertControllerWithTitle:nil message:nil preferredStyle:UIAlertControllerStyleActionSheet];
     

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

@@ -57,6 +57,7 @@
 "_close_"                   = "Close";
 "_postpone_"                = "Postpone";
 "_remove_"                  = "Remove";
+"_file_not_found_"          = "File not found";
 
 // App