Browse Source

new Strings

Marino Faggiana 6 years ago
parent
commit
2486055f83

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

@@ -602,7 +602,8 @@
 "_trash_view_"                      = "Deleted files";
 "_trash_restore_all_"               = "Restore all files";
 "_trash_delete_all_"                = "Empty trash";
-"_trash_no_trash_"                  = "No files yet";
+"_trash_no_trash_"                  = "No files deleted";
+"_trash_no_trash_description_"      = "You can restore deleted files from here";
 "_trash_restore_selected_"          = "Restore selected files";
 "_trash_delete_selected_"           = "Deleted selected files";
 

+ 6 - 0
iOSClient/Trash/NCTrash.swift

@@ -124,6 +124,12 @@ class NCTrash: UIViewController ,UICollectionViewDataSource, UICollectionViewDel
         return NSAttributedString.init(string: text, attributes: attributes)
     }
     
+    func description(forEmptyDataSet scrollView: UIScrollView) -> NSAttributedString? {
+        let text = "\n"+NSLocalizedString("_trash_no_trash_description_", comment: "")
+        let attributes = [NSAttributedString.Key.font: UIFont.systemFont(ofSize: 14), NSAttributedString.Key.foregroundColor: UIColor.lightGray]
+        return NSAttributedString.init(string: text, attributes: attributes)
+    }
+    
     func emptyDataSetShouldAllowScroll(_ scrollView: UIScrollView) -> Bool {
         return true
     }