mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Refactor string generation
This commit is contained in:
@@ -44,7 +44,7 @@ class ChatDocumentGalleryItem: 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)
|
||||
|
||||
@@ -53,7 +53,7 @@ class ChatDocumentGalleryItem: GalleryItem {
|
||||
|
||||
func updateNode(node: GalleryItemNode, synchronous: Bool) {
|
||||
if let node = node as? ChatDocumentGalleryItemNode, 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