Browse Source

coding

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 2 years ago
parent
commit
0c36bdaad4

+ 2 - 2
iOSClient/Main/Collection Common/NCCollectionViewCommon.swift

@@ -1872,7 +1872,7 @@ extension NCCollectionViewCommon: UICollectionViewDataSource {
                 header.setRichWorkspaceText(richWorkspaceText)
 
                 header.setSectionHeight(heightHeaderSection)
-                header.labelSection.text = self.dataSource.getSectionValue(indexPath: indexPath).firstUppercased
+                header.labelSection.text = NSLocalizedString(self.dataSource.getSectionValue(indexPath: indexPath), comment: "").lowercased().firstUppercased
                 header.labelSection.textColor = NCBrandColor.shared.label
 
                 return header
@@ -1881,7 +1881,7 @@ extension NCCollectionViewCommon: UICollectionViewDataSource {
 
                 let header = collectionView.dequeueReusableSupplementaryView(ofKind: kind, withReuseIdentifier: "sectionHeader", for: indexPath) as! NCSectionHeader
 
-                header.labelSection.text = self.dataSource.getSectionValue(indexPath: indexPath).firstUppercased
+                header.labelSection.text = NSLocalizedString(self.dataSource.getSectionValue(indexPath: indexPath), comment: "").lowercased().firstUppercased
                 header.labelSection.textColor = NCBrandColor.shared.label
 
                 return header

+ 2 - 2
iOSClient/Select/NCSelect.swift

@@ -622,7 +622,7 @@ extension NCSelect: UICollectionViewDataSource {
                 header.setStatusButtonsView(enable: !dataSource.metadatasSource.isEmpty)
                 header.setSortedTitle(layoutForView?.titleButtonHeader ?? "")
                 header.setRichWorkspaceText(richWorkspaceText)
-                header.labelSection.text = self.dataSource.getSectionValue(indexPath: indexPath).firstUppercased
+                header.labelSection.text = NSLocalizedString(self.dataSource.getSectionValue(indexPath: indexPath), comment: "").lowercased().firstUppercased
                 header.labelSection.textColor = NCBrandColor.shared.brandElement
 
                 header.setButtonsCommand(heigt: 0)
@@ -636,7 +636,7 @@ extension NCSelect: UICollectionViewDataSource {
 
                 let header = collectionView.dequeueReusableSupplementaryView(ofKind: kind, withReuseIdentifier: "sectionHeader", for: indexPath) as! NCSectionHeader
 
-                header.labelSection.text = self.dataSource.getSectionValue(indexPath: indexPath).firstUppercased
+                header.labelSection.text = NSLocalizedString(self.dataSource.getSectionValue(indexPath: indexPath), comment: "").lowercased().firstUppercased
                 header.labelSection.textColor = NCBrandColor.shared.brandElement
 
                 return header