From 63c12dfb359a180a3989d60d9d3eb5d58012a67f Mon Sep 17 00:00:00 2001 From: RadRussianRus Date: Tue, 8 Oct 2019 02:47:50 +0300 Subject: [PATCH] Apply localized link to official translations --- Telegram/SourceFiles/boxes/about_box.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/boxes/about_box.cpp b/Telegram/SourceFiles/boxes/about_box.cpp index 0e91539d2..04e58771e 100644 --- a/Telegram/SourceFiles/boxes/about_box.cpp +++ b/Telegram/SourceFiles/boxes/about_box.cpp @@ -49,10 +49,11 @@ rpl::producer Text2() { rpl::producer Text3() { auto baseLang = Lang::Current().baseId(); + auto currentLang = Lang::Current().id(); QString channelLink; for (const auto language : { "ru", "uk", "be" }) { - if (baseLang.startsWith(QLatin1String(language))) { + if (baseLang.startsWith(QLatin1String(language)) || currentLang == QString(language)) { channelLink = "https://t.me/kotatogram_ru"; break; }