mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Update localization
This commit is contained in:
parent
7b18d52644
commit
47555ae97d
@ -12377,3 +12377,12 @@ Sorry for the inconvenience.";
|
||||
"Story.Editor.TooltipLinkLimitValue_1" = "**%@** link";
|
||||
"Story.Editor.TooltipLinkLimitValue_any" = "**%@** links";
|
||||
"Story.Editor.TooltipReachedLinkLimitText" = "You can't add more than %@ to a story.";
|
||||
|
||||
"VoiceChat.ToastMicrophoneIsMuted" = "Your microphone is muted.";
|
||||
|
||||
"StoryGridScreen.TitleLocationSearch" = "Location";
|
||||
"StoryList.GridHeaderLocationSearch_1" = "1 STORY FROM THIS LOCATION";
|
||||
"StoryList.GridHeaderLocationSearch_any" = "%d STORIES FROM THIS LOCATION";
|
||||
|
||||
"Chat.MessagesDeletedToast.Text_1" = "Message Deleted";
|
||||
"Chat.MessagesDeletedToast.Text_any" = "%d Messages Deleted";
|
||||
|
@ -1931,7 +1931,6 @@ public final class ReactionContextNode: ASDisplayNode, ASScrollViewDelegate {
|
||||
resultGroups[groupIndex].items.append(resultItem)
|
||||
} else {
|
||||
resultGroupIndexById[groupId] = resultGroups.count
|
||||
//TODO:localize
|
||||
resultGroups.append(ItemGroup(supergroupId: groupId, id: groupId, title: i == 0 ? nil : strings.Chat_MessageEffectMenu_SectionMessageEffects, subtitle: nil, actionButtonTitle: nil, isPremiumLocked: false, isFeatured: false, displayPremiumBadges: false, hasEdit: false, headerItem: nil, items: [resultItem]))
|
||||
}
|
||||
}
|
||||
@ -2283,7 +2282,6 @@ public final class ReactionContextNode: ASDisplayNode, ASScrollViewDelegate {
|
||||
resultGroups[groupIndex].items.append(resultItem)
|
||||
} else {
|
||||
resultGroupIndexById[groupId] = resultGroups.count
|
||||
//TODO:localize
|
||||
resultGroups.append(ItemGroup(supergroupId: groupId, id: groupId, title: i == 0 ? nil : strings.Chat_MessageEffectMenu_SectionMessageEffects, subtitle: nil, actionButtonTitle: nil, isPremiumLocked: false, isFeatured: false, displayPremiumBadges: false, hasEdit: false, headerItem: nil, items: [resultItem]))
|
||||
}
|
||||
}
|
||||
|
@ -2463,8 +2463,7 @@ public final class VoiceChatControllerImpl: ViewController, VoiceChatController
|
||||
if lastTimestamp + 1000.0 < timestamp {
|
||||
lastTimestamp = timestamp
|
||||
|
||||
//TODO:localize
|
||||
self.presentUndoOverlay(content: .info(title: nil, text: "Your microphone is muted.", timeout: nil, customUndoText: nil), action: { _ in
|
||||
self.presentUndoOverlay(content: .info(title: nil, text: self.presentationData.strings.VoiceChat_ToastMicrophoneIsMuted, timeout: nil, customUndoText: nil), action: { _ in
|
||||
return false
|
||||
})
|
||||
}
|
||||
|
@ -261,7 +261,6 @@ public final class StorySearchGridScreen: ViewControllerComponentContainer {
|
||||
|
||||
func updateTitle() {
|
||||
let presentationData = self.context.sharedContext.currentPresentationData.with { $0 }
|
||||
let _ = presentationData
|
||||
|
||||
guard let componentView = self.node.hostView.componentView as? StorySearchGridScreenComponent.View, let paneNode = componentView.paneNode else {
|
||||
return
|
||||
@ -274,12 +273,11 @@ public final class StorySearchGridScreen: ViewControllerComponentContainer {
|
||||
} else {
|
||||
title = nil
|
||||
}
|
||||
//TODO:localize
|
||||
switch self.scope {
|
||||
case let .query(query):
|
||||
self.titleView?.titleContent = .custom("\(query)", title, false)
|
||||
case .location:
|
||||
self.titleView?.titleContent = .custom("Location", nil, false)
|
||||
self.titleView?.titleContent = .custom(presentationData.strings.StoryGridScreen_TitleLocationSearch, nil, false)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1436,13 +1436,7 @@ private final class StorySearchHeaderComponent: Component {
|
||||
|
||||
let insets = UIEdgeInsets(top: 7.0, left: 16.0, bottom: 7.0, right: 16.0)
|
||||
|
||||
//TODO:localize
|
||||
let titleString: String
|
||||
if component.count == 1 {
|
||||
titleString = "1 STORY FROM THIS LOCATION"
|
||||
} else {
|
||||
titleString = "\(component.count) STORIES FROM THIS LOCATION"
|
||||
}
|
||||
let titleString = component.strings.StoryList_GridHeaderLocationSearch(Int32(component.count))
|
||||
|
||||
let titleSize = self.title.update(
|
||||
transition: .immediate,
|
||||
@ -1753,7 +1747,6 @@ public final class PeerInfoStoryPaneNode: ASDisplayNode, PeerInfoPaneNode, ASScr
|
||||
return
|
||||
}
|
||||
|
||||
//TODO:localize
|
||||
var splitIndexIntoDays = true
|
||||
switch self.scope {
|
||||
case .peer:
|
||||
|
@ -324,13 +324,7 @@ extension ChatControllerImpl {
|
||||
func beginDeleteMessagesWithUndo(messageIds: Set<MessageId>, type: InteractiveMessagesDeletionType) {
|
||||
self.chatDisplayNode.historyNode.ignoreMessageIds = Set(messageIds)
|
||||
|
||||
//TODO:localize
|
||||
let undoTitle: String
|
||||
if messageIds.count == 1 {
|
||||
undoTitle = "Message Deleted"
|
||||
} else {
|
||||
undoTitle = "\(messageIds.count) Messages Deleted"
|
||||
}
|
||||
let undoTitle = self.presentationData.strings.Chat_MessagesDeletedToast_Text(Int32(messageIds.count))
|
||||
self.present(UndoOverlayController(presentationData: self.context.sharedContext.currentPresentationData.with { $0 }, content: .removedChat(title: undoTitle, text: nil), elevatedLayout: false, position: .top, action: { [weak self] value in
|
||||
guard let self else {
|
||||
return false
|
||||
|
Loading…
x
Reference in New Issue
Block a user