mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-15 21:45:19 +00:00
Add missing strings
This commit is contained in:
parent
74a73fb41c
commit
caa8a597e2
@ -10421,3 +10421,5 @@ Sorry for the inconvenience.";
|
|||||||
"ChannelBoost.Or" = "or";
|
"ChannelBoost.Or" = "or";
|
||||||
|
|
||||||
"Channel.ChannelColor" = "Channel Color";
|
"Channel.ChannelColor" = "Channel Color";
|
||||||
|
|
||||||
|
"TextFormat.Code" = "Code";
|
||||||
|
@ -3793,8 +3793,7 @@ class ChatTextInputPanelNode: ChatInputPanelNode, ASEditableTextNodeDelegate, Ch
|
|||||||
}
|
}
|
||||||
] as [UIAction])
|
] as [UIAction])
|
||||||
|
|
||||||
//TODO:localize
|
children.append(UIAction(title: self.strings?.TextFormat_Code ?? "Code", image: nil) { [weak self] (action) in
|
||||||
children.append(UIAction(title: "Code", image: nil) { [weak self] (action) in
|
|
||||||
if let strongSelf = self {
|
if let strongSelf = self {
|
||||||
strongSelf.formatAttributesCodeBlock(strongSelf)
|
strongSelf.formatAttributesCodeBlock(strongSelf)
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,7 @@ public final class TextInputMenu {
|
|||||||
private var stringUnderline: String = "Underline"
|
private var stringUnderline: String = "Underline"
|
||||||
private var stringSpoiler: String = "Spoiler"
|
private var stringSpoiler: String = "Spoiler"
|
||||||
private var stringQuote: String = "Quote"
|
private var stringQuote: String = "Quote"
|
||||||
|
private var stringCode: String = "Code"
|
||||||
|
|
||||||
private let hasSpoilers: Bool
|
private let hasSpoilers: Bool
|
||||||
private let hasQuotes: Bool
|
private let hasQuotes: Bool
|
||||||
@ -43,8 +44,7 @@ public final class TextInputMenu {
|
|||||||
}
|
}
|
||||||
if self.hasQuotes {
|
if self.hasQuotes {
|
||||||
menuItems.insert(UIMenuItem(title: self.stringQuote, action: Selector(("formatAttributesQuote:"))), at: 0)
|
menuItems.insert(UIMenuItem(title: self.stringQuote, action: Selector(("formatAttributesQuote:"))), at: 0)
|
||||||
//TODO:localize
|
menuItems.append(UIMenuItem(title: self.stringCode, action: Selector(("formatAttributesCodeBlock:"))))
|
||||||
menuItems.append(UIMenuItem(title: "Code", action: Selector(("formatAttributesCodeBlock:"))))
|
|
||||||
}
|
}
|
||||||
UIMenuController.shared.menuItems = menuItems
|
UIMenuController.shared.menuItems = menuItems
|
||||||
}
|
}
|
||||||
@ -77,6 +77,7 @@ public final class TextInputMenu {
|
|||||||
self.stringUnderline = strings.TextFormat_Underline
|
self.stringUnderline = strings.TextFormat_Underline
|
||||||
self.stringSpoiler = strings.TextFormat_Spoiler
|
self.stringSpoiler = strings.TextFormat_Spoiler
|
||||||
self.stringQuote = strings.TextFormat_Quote
|
self.stringQuote = strings.TextFormat_Quote
|
||||||
|
self.stringCode = strings.TextFormat_Code
|
||||||
}
|
}
|
||||||
|
|
||||||
public func activate() {
|
public func activate() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user