Apply localized link to official translations
This commit is contained in:
parent
3fdeb092b8
commit
63c12dfb35
1 changed files with 2 additions and 1 deletions
|
|
@ -49,10 +49,11 @@ rpl::producer<TextWithEntities> Text2() {
|
||||||
|
|
||||||
rpl::producer<TextWithEntities> Text3() {
|
rpl::producer<TextWithEntities> Text3() {
|
||||||
auto baseLang = Lang::Current().baseId();
|
auto baseLang = Lang::Current().baseId();
|
||||||
|
auto currentLang = Lang::Current().id();
|
||||||
QString channelLink;
|
QString channelLink;
|
||||||
|
|
||||||
for (const auto language : { "ru", "uk", "be" }) {
|
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";
|
channelLink = "https://t.me/kotatogram_ru";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue