Skip to content

Commit

Permalink
added new dictionary
Browse files Browse the repository at this point in the history
Signed-off-by: Marino Faggiana <[email protected]>
  • Loading branch information
marinofaggiana committed Jan 21, 2025
1 parent 215154d commit 932ee76
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,6 @@ extension NCCollectionViewCommon: UICollectionViewDataSource {
return cell
}



func collectionView(_ collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, at indexPath: IndexPath) -> UICollectionReusableView {
func setContent(header: UICollectionReusableView, indexPath: IndexPath) {
let (heightHeaderRichWorkspace, heightHeaderRecommendations, heightHeaderTransfer, heightHeaderSection) = getHeaderHeight(section: indexPath.section)
Expand All @@ -492,7 +490,11 @@ extension NCCollectionViewCommon: UICollectionViewDataSource {

if let header = header as? NCSectionFirstHeader {
let recommendations = self.database.getRecommendedFiles(account: self.session.account)
var sectionText = NSLocalizedString("_home_", comment: "")
var sectionText = NSLocalizedString("_all_files_", comment: "")

if NCKeychain().getPersonalFilesOnly(account: session.account) {
sectionText = NSLocalizedString("_personal_files_", comment: "")
}

if !self.dataSource.getSectionValueLocalization(indexPath: indexPath).isEmpty {
sectionText = self.dataSource.getSectionValueLocalization(indexPath: indexPath)
Expand Down
3 changes: 3 additions & 0 deletions iOSClient/Supporting Files/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,9 @@
"_file_creation_" = "File creation";
"_delete_all_scanned_images_" = "Delete all scanned images";
"_text_recognition_" = "Text recognition";
"_all_files_" = "All files";
"_personal_files_" = "Personal Files";


/* The title on the navigation bar of the Scanning screen. */
"wescan.scanning.title" = "Scanning";
Expand Down

0 comments on commit 932ee76

Please sign in to comment.