marinofaggiana 5 éve
szülő
commit
0283efd4d5

+ 1 - 0
iOSClient/Share/NCShare.swift

@@ -216,6 +216,7 @@ class NCShare: UIViewController, UIGestureRecognizerDelegate, NCShareLinkCellDel
         dropDown.anchorView = searchField
         dropDown.bottomOffset = CGPoint(x: 0, y: searchField.bounds.height)
         dropDown.width = searchField.bounds.width
+        dropDown.direction = .bottom
         
         dropDown.cellNib = UINib(nibName: "NCShareUserDropDownCell", bundle: nil)
         dropDown.customCellConfiguration = { (index: Index, item: String, cell: DropDownCell) -> Void in

+ 11 - 0
iOSClient/Share/NCShareLinkMenuView.swift

@@ -97,6 +97,17 @@ class NCShareLinkMenuView: UIView, UIGestureRecognizerDelegate, NCShareNetworkin
         switchSetExpirationDate.transform = CGAffineTransform(scaleX: 0.75, y: 0.75)
         switchSetExpirationDate.onTintColor = NCBrandColor.sharedInstance.brand
         
+        labelAllowEditing?.text = NSLocalizedString("_share_allow_editing_", comment: "")
+        labelReadOnly?.text = NSLocalizedString("_share_read_only_", comment: "")
+        labelAllowUploadAndEditing?.text = NSLocalizedString("_share_allow_upload_", comment: "")
+        labelFileDrop?.text = NSLocalizedString("_share_file_drop_", comment: "")
+        labelHideDownload?.text = NSLocalizedString("_share_hide_download_", comment: "")
+        labelPasswordProtect?.text = NSLocalizedString("_share_password_protect_", comment: "")
+        labelSetExpirationDate?.text = NSLocalizedString("_share_expiration_date_", comment: "")
+        labelNoteToRecipient?.text = NSLocalizedString("_share_note_recipient_", comment: "")
+        labelDeleteShareLink?.text = NSLocalizedString("_share_delete_sharelink_", comment: "")
+        labelAddAnotherLink?.text = NSLocalizedString("_share_add_sharelink_", comment: "")
+        
         fieldSetExpirationDate.inputView = UIView()
         
         imageNoteToRecipient.image = CCGraphics.changeThemingColorImage(UIImage.init(named: "file_txt"), width: 100, height: 100, color: UIColor(red: 76/255, green: 76/255, blue: 76/255, alpha: 1))

+ 8 - 0
iOSClient/Share/NCShareUserMenuView.swift

@@ -82,6 +82,14 @@ class NCShareUserMenuView: UIView, UIGestureRecognizerDelegate, NCShareNetworkin
         switchSetExpirationDate.transform = CGAffineTransform(scaleX: 0.75, y: 0.75)
         switchSetExpirationDate.onTintColor = NCBrandColor.sharedInstance.brand
         
+        labelCanReshare?.text = NSLocalizedString("_share_can_reshare_", comment: "")
+        labelCanCreate?.text = NSLocalizedString("_share_can_create_", comment: "")
+        labelCanChange?.text = NSLocalizedString("_share_can_change_", comment: "")
+        labelCanDelete?.text = NSLocalizedString("_share_can_delete_", comment: "")
+        labelSetExpirationDate?.text = NSLocalizedString("_share_expiration_date_", comment: "")
+        labelNoteToRecipient?.text = NSLocalizedString("_share_note_recipient_", comment: "")
+        labelUnshare?.text = NSLocalizedString("_share_unshare_", comment: "")
+        
         fieldSetExpirationDate.inputView = UIView()
         
         imageNoteToRecipient.image = CCGraphics.changeThemingColorImage(UIImage.init(named: "file_txt"), width: 100, height: 100, color: UIColor(red: 76/255, green: 76/255, blue: 76/255, alpha: 1))

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

@@ -468,6 +468,21 @@
 "_new_comment_"                 = "New comment ...";
 "_edit_comment_"                = "Edit comment";
 "_delete_comment_"              = "Delete comment";
+"_share_allow_editing_"         = "Allow editing";
+"_share_read_only_"             = "Read only";
+"_share_allow_upload_"          = "Allow upload and editing";
+"_share_file_drop_"             = "File drop (upload only)";
+"_share_hide_download_"         = "Hide download";
+"_share_password_protect_"      = "Password protect";
+"_share_expiration_date_"       = "Set expiration date";
+"_share_note_recipient_"        = "Note to recipient";
+"_share_delete_sharelink_"      = "Delete share link";
+"_share_add_sharelink_"         = "Add another link";
+"_share_can_reshare_"           = "Can reshare";
+"_share_can_create_"            = "Can create";
+"_share_can_change_"            = "Can change";
+"_share_can_delete_"            = "Can delete";
+"_share_unshare_"               = "Unshare";
 
 // Share Permission