Skip to content

Commit caa8a59

Browse files
author
Ali
committed
Add missing strings
1 parent 74a73fb commit caa8a59

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎Telegram/Telegram-iOS/en.lproj/Localizable.strings‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10421,3 +10421,5 @@ Sorry for the inconvenience.";
1042110421
"ChannelBoost.Or" = "or";
1042210422

1042310423
"Channel.ChannelColor" = "Channel Color";
10424+
10425+
"TextFormat.Code" = "Code";

‎submodules/TelegramUI/Sources/ChatTextInputPanelNode.swift‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3793,8 +3793,7 @@ class ChatTextInputPanelNode: ChatInputPanelNode, ASEditableTextNodeDelegate, Ch
37933793
}
37943794
] as [UIAction])
37953795

3796-
//TODO:localize
3797-
children.append(UIAction(title: "Code", image: nil) { [weak self] (action) in
3796+
children.append(UIAction(title: self.strings?.TextFormat_Code ?? "Code", image: nil) { [weak self] (action) in
37983797
if let strongSelf = self {
37993798
strongSelf.formatAttributesCodeBlock(strongSelf)
38003799
}

‎submodules/TextInputMenu/Sources/TextInputMenu.swift‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public final class TextInputMenu {
1717
private var stringUnderline: String = "Underline"
1818
private var stringSpoiler: String = "Spoiler"
1919
private var stringQuote: String = "Quote"
20+
private var stringCode: String = "Code"
2021

2122
private let hasSpoilers: Bool
2223
private let hasQuotes: Bool
@@ -43,8 +44,7 @@ public final class TextInputMenu {
4344
}
4445
if self.hasQuotes {
4546
menuItems.insert(UIMenuItem(title: self.stringQuote, action: Selector(("formatAttributesQuote:"))), at: 0)
46-
//TODO:localize
47-
menuItems.append(UIMenuItem(title: "Code", action: Selector(("formatAttributesCodeBlock:"))))
47+
menuItems.append(UIMenuItem(title: self.stringCode, action: Selector(("formatAttributesCodeBlock:"))))
4848
}
4949
UIMenuController.shared.menuItems = menuItems
5050
}
@@ -77,6 +77,7 @@ public final class TextInputMenu {
7777
self.stringUnderline = strings.TextFormat_Underline
7878
self.stringSpoiler = strings.TextFormat_Spoiler
7979
self.stringQuote = strings.TextFormat_Quote
80+
self.stringCode = strings.TextFormat_Code
8081
}
8182

8283
public func activate() {

0 commit comments

Comments
 (0)