Refactor string generation

This commit is contained in:
Ali
2021-07-20 11:57:50 +02:00
parent bbd096d88b
commit 7bed1728bb
205 changed files with 15848 additions and 33988 deletions

View File

@@ -35,7 +35,7 @@ final class ChatImportStatusPanel: ASDisplayNode {
let titleFont = Font.medium(min(18.0, floor(presentationData.fontSize.baseDisplaySize * 13.0 / 17.0)))
let text = presentationData.strings.Conversation_ImportProgress("\(Int(progress * 100.0))").0
let text = presentationData.strings.Conversation_ImportProgress("\(Int(progress * 100.0))").string
let attributedString = NSAttributedString(string: text, font: titleFont, textColor: bubbleVariableColor(variableColor: presentationData.theme.theme.chat.serviceMessage.dateTextColor, wallpaper: presentationData.theme.wallpaper))
let makeLabelLayout = TextNode.asyncLayout(self.labelNode)