mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Refactor string generation
This commit is contained in:
@@ -45,7 +45,7 @@ class ChatExternalFileGalleryItem: GalleryItem {
|
||||
}
|
||||
|
||||
if let location = self.location {
|
||||
node._title.set(.single(self.presentationData.strings.Items_NOfM("\(location.index + 1)", "\(location.count)").0))
|
||||
node._title.set(.single(self.presentationData.strings.Items_NOfM("\(location.index + 1)", "\(location.count)").string))
|
||||
}
|
||||
node.setMessage(self.message)
|
||||
|
||||
@@ -54,7 +54,7 @@ class ChatExternalFileGalleryItem: GalleryItem {
|
||||
|
||||
func updateNode(node: GalleryItemNode, synchronous: Bool) {
|
||||
if let node = node as? ChatExternalFileGalleryItemNode, let location = self.location {
|
||||
node._title.set(.single(self.presentationData.strings.Items_NOfM("\(location.index + 1)", "\(location.count)").0))
|
||||
node._title.set(.single(self.presentationData.strings.Items_NOfM("\(location.index + 1)", "\(location.count)").string))
|
||||
node.setMessage(self.message)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user