From d5b23b5bde162ac94295665b3579ba4707db79c6 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 14 Mar 2024 10:55:21 +0400 Subject: [PATCH] Use a separate lang key for IV channel join button. --- Telegram/Resources/iv_html/page.css | 2 +- Telegram/Resources/langs/lang.strings | 1 + Telegram/SourceFiles/iv/iv_controller.cpp | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Telegram/Resources/iv_html/page.css b/Telegram/Resources/iv_html/page.css index 7d4bd22c0..85a6124cc 100644 --- a/Telegram/Resources/iv_html/page.css +++ b/Telegram/Resources/iv_html/page.css @@ -999,7 +999,7 @@ section.channel > a > div.join:hover { text-decoration: underline; } section.channel > a > div.join span:before { - content: var(--td-lng-group-call-join); + content: var(--td-lng-iv-join-channel); } section.channel > a > h4 { font-family: var(--font-sans); diff --git a/Telegram/Resources/langs/lang.strings b/Telegram/Resources/langs/lang.strings index 2237f68ca..437479980 100644 --- a/Telegram/Resources/langs/lang.strings +++ b/Telegram/Resources/langs/lang.strings @@ -4869,6 +4869,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL "lng_iv_open_in_browser" = "Open in Browser"; "lng_iv_share" = "Share"; +"lng_iv_join_channel" = "Join"; // Wnd specific diff --git a/Telegram/SourceFiles/iv/iv_controller.cpp b/Telegram/SourceFiles/iv/iv_controller.cpp index db69e9b97..3d7a30318 100644 --- a/Telegram/SourceFiles/iv/iv_controller.cpp +++ b/Telegram/SourceFiles/iv/iv_controller.cpp @@ -76,7 +76,7 @@ namespace { { "toast-fg", &st::toastFg }, }; static const auto phrases = base::flat_map>{ - { "group-call-join", tr::lng_group_call_join }, + { "iv-join-channel", tr::lng_iv_join_channel }, }; static const auto serialize = [](const style::color *color) { const auto qt = (*color)->c;