From 29fb2634953e44730faa7a1a6d353fb7e1c1e033 Mon Sep 17 00:00:00 2001 From: John Preston Date: Sat, 28 Oct 2023 22:28:44 +0400 Subject: [PATCH] Use lang-packed "copy" instead of "code". --- Telegram/Resources/langs/lang.strings | 4 +++- Telegram/SourceFiles/core/ui_integration.cpp | 4 ++++ Telegram/SourceFiles/core/ui_integration.h | 1 + Telegram/lib_ui | 2 +- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Telegram/Resources/langs/lang.strings b/Telegram/Resources/langs/lang.strings index 401a153883..38fa348559 100644 --- a/Telegram/Resources/langs/lang.strings +++ b/Telegram/Resources/langs/lang.strings @@ -129,6 +129,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL "lng_reconnecting#other" = "Reconnect in {count} s..."; "lng_reconnecting_try_now" = "Try now"; +"lng_code_block_header_copy" = "copy"; + "lng_status_service_notifications" = "service notifications"; "lng_status_support" = "support"; "lng_status_bot" = "bot"; @@ -2853,7 +2855,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL "lng_formatting_link_create" = "Create"; "lng_text_copied" = "Text copied to clipboard."; -"lng_code_copied" = "Code copied to clipboard."; +"lng_code_copied" = "Block copied to clipboard."; "lng_spellchecker_submenu" = "Spelling"; "lng_spellchecker_add" = "Add to Dictionary"; diff --git a/Telegram/SourceFiles/core/ui_integration.cpp b/Telegram/SourceFiles/core/ui_integration.cpp index 24a8bbee2c..ba2593e7b5 100644 --- a/Telegram/SourceFiles/core/ui_integration.cpp +++ b/Telegram/SourceFiles/core/ui_integration.cpp @@ -408,6 +408,10 @@ QString UiIntegration::phraseBotAllowWriteConfirm() { return tr::lng_bot_allow_write_confirm(tr::now); } +QString UiIntegration::phraseQuoteHeaderCopy() { + return tr::lng_code_block_header_copy(tr::now); +} + bool OpenGLLastCheckFailed() { return QFile::exists(OpenGLCheckFilePath()); } diff --git a/Telegram/SourceFiles/core/ui_integration.h b/Telegram/SourceFiles/core/ui_integration.h index 4e23a63db4..36ee45777c 100644 --- a/Telegram/SourceFiles/core/ui_integration.h +++ b/Telegram/SourceFiles/core/ui_integration.h @@ -92,6 +92,7 @@ public: QString phraseBotAllowWrite() override; QString phraseBotAllowWriteTitle() override; QString phraseBotAllowWriteConfirm() override; + QString phraseQuoteHeaderCopy() override; }; diff --git a/Telegram/lib_ui b/Telegram/lib_ui index 952c89687c..287af101d0 160000 --- a/Telegram/lib_ui +++ b/Telegram/lib_ui @@ -1 +1 @@ -Subproject commit 952c89687c9c162b37318e6dbfa11211ed2299e9 +Subproject commit 287af101d02089cafeba588f75057414fd96f476