From 90943b78b604bdb1c22a9a8c3fd56ba00979583a Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Mon, 28 Mar 2022 19:43:15 +0400 Subject: [PATCH] Update localization --- Telegram/Telegram-iOS/en.lproj/Localizable.strings | 2 ++ .../Sources/ServiceMessageStrings.swift | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Telegram/Telegram-iOS/en.lproj/Localizable.strings b/Telegram/Telegram-iOS/en.lproj/Localizable.strings index a356d66a0a..751e0b50af 100644 --- a/Telegram/Telegram-iOS/en.lproj/Localizable.strings +++ b/Telegram/Telegram-iOS/en.lproj/Localizable.strings @@ -7419,3 +7419,5 @@ Sorry for the inconvenience."; "WebApp.MessagePreview" = "Message Preview"; "WebApp.Send" = "Send"; + +"Notification.WebAppSentData" = "You have successfully transferred data from the \"%@\" button to the bot."; diff --git a/submodules/TelegramStringFormatting/Sources/ServiceMessageStrings.swift b/submodules/TelegramStringFormatting/Sources/ServiceMessageStrings.swift index 9a34e044c0..dcff0ea032 100644 --- a/submodules/TelegramStringFormatting/Sources/ServiceMessageStrings.swift +++ b/submodules/TelegramStringFormatting/Sources/ServiceMessageStrings.swift @@ -632,7 +632,7 @@ public func universalServiceMessageString(presentationData: (PresentationTheme, } } case let .webViewData(text): - attributedString = NSAttributedString(string: "Data for \(text) sent to bot", font: titleFont, textColor: primaryTextColor) + attributedString = NSAttributedString(string: strings.Notification_WebAppSentData(text).string, font: titleFont, textColor: primaryTextColor) case .unknown: attributedString = nil }