Browse Source

set title Photos

Marino Faggiana 7 years ago
parent
commit
96a347ca33

+ 4 - 3
iOSClient/Photos/CCPhotos.m

@@ -188,10 +188,11 @@
     NSString *directory = [[NCManageDatabase sharedInstance] getAccountStartDirectoryPhotosTab:[CCUtility getHomeServerUrlActiveUrl:appDelegate.activeUrl]];
     NSString *folder = [directory stringByReplacingOccurrencesOfString:[CCUtility getHomeServerUrlActiveUrl:appDelegate.activeUrl] withString:@""];
     
-    if ([folder isEqualToString:@""])
+    if (folder.length == 0) {
         self.navigationItem.title = NSLocalizedString(@"_photo_camera_", nil);
-    else
-        self.navigationItem.title = [NSString stringWithFormat:@"%@: %@", NSLocalizedString(@"_photo_camera_", nil), folder];
+    } else {
+        self.navigationItem.title = [NSString stringWithFormat:@"%@: %@", NSLocalizedString(@"_photo_camera_", nil), [folder substringFromIndex:1]];
+    }
 }
 
 - (void)setUINavigationBarSelected

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

@@ -83,7 +83,7 @@
 "_success_"                 = "Success";
 "_initialization_"          = "Initialization";
 "_experimental_"            = "Experimental";
-"_select_dir_photos_tab_"   = "Select Folder \"Photos\"";
+"_select_dir_photos_tab_"   = "Select as folder \"Photos\"";
 
 // App