From c59bd497b4250c980cfb0d78ec27dd4d5712ac4c Mon Sep 17 00:00:00 2001 From: Iva Horn Date: Tue, 1 Jul 2025 11:37:37 +0200 Subject: [PATCH] Fix: localized download limit user interface. Signed-off-by: Iva Horn --- ...hareDownloadLimitTableViewController.swift | 10 ++++++++++ iOSClient/Share/NCShare.storyboard | 6 ++++-- .../de.lproj/Localizable.strings | Bin 92060 -> 92172 bytes .../en.lproj/Localizable.strings | 1 + 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/iOSClient/Share/Advanced/DownloadLimit/NCShareDownloadLimitTableViewController.swift b/iOSClient/Share/Advanced/DownloadLimit/NCShareDownloadLimitTableViewController.swift index 86db4128dc..728f7e3232 100644 --- a/iOSClient/Share/Advanced/DownloadLimit/NCShareDownloadLimitTableViewController.swift +++ b/iOSClient/Share/Advanced/DownloadLimit/NCShareDownloadLimitTableViewController.swift @@ -35,6 +35,8 @@ class NCShareDownloadLimitTableViewController: UITableViewController { NCCapabilities.shared.getCapabilities(account: metadata.account).capabilityFileSharingDownloadLimitDefaultLimit } + @IBOutlet var allowedDownloadsCell: UITableViewCell! + @IBOutlet var limitDownloadCell: UITableViewCell! @IBOutlet var limitSwitch: UISwitch! @IBOutlet var limitTextField: UITextField! @@ -47,6 +49,14 @@ class NCShareDownloadLimitTableViewController: UITableViewController { } else { limitSwitch.isOn = false } + + var allowedDownloadsCellConfiguration = UIListContentConfiguration.cell() + allowedDownloadsCellConfiguration.text = NSLocalizedString("_share_allowed_downloads_", comment: "") + allowedDownloadsCell.contentConfiguration = allowedDownloadsCellConfiguration + + var limitDownloadCellConfiguration = UIListContentConfiguration.cell() + limitDownloadCellConfiguration.text = NSLocalizedString("_share_limit_download_", comment: "") + limitDownloadCell.contentConfiguration = limitDownloadCellConfiguration } @IBAction func switchDownloadLimit(_ sender: UISwitch) { diff --git a/iOSClient/Share/NCShare.storyboard b/iOSClient/Share/NCShare.storyboard index 07fe9374b4..5bf01c2fb8 100644 --- a/iOSClient/Share/NCShare.storyboard +++ b/iOSClient/Share/NCShare.storyboard @@ -1,9 +1,9 @@ - + - + @@ -335,6 +335,8 @@ + + diff --git a/iOSClient/Supporting Files/de.lproj/Localizable.strings b/iOSClient/Supporting Files/de.lproj/Localizable.strings index dca4e8600caaeda61d2720679032ec589806e658..78d735b8d2fdd35315715dc931a5e62885bd4149 100644 GIT binary patch delta 78 zcmbPpp0(!!>xNBRc@r6OfH0q-oFSDVW%9d}6KzG6T^Wji;)x8U3`qxNBRH!E#>wGjX~!w3%m diff --git a/iOSClient/Supporting Files/en.lproj/Localizable.strings b/iOSClient/Supporting Files/en.lproj/Localizable.strings index a11eca8392..ac657da0e1 100644 --- a/iOSClient/Supporting Files/en.lproj/Localizable.strings +++ b/iOSClient/Supporting Files/en.lproj/Localizable.strings @@ -386,6 +386,7 @@ "_share_file_drop_" = "File drop (upload only)"; "_share_secure_file_drop_" = "Secure file drop (upload only)"; "_share_hide_download_" = "Hide download"; +"_share_allowed_downloads_" = "Allowed downloads"; "_share_limit_download_" = "Limit downloads"; "_remaining_" = "%d remaining"; "_share_password_protect_" = "Password protection";