mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-28 21:27:53 +00:00
Localized channel link
This commit is contained in:
parent
33eedc6f52
commit
7afb201d42
@ -48,9 +48,23 @@ rpl::producer<TextWithEntities> Text2() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
rpl::producer<TextWithEntities> Text3() {
|
rpl::producer<TextWithEntities> Text3() {
|
||||||
|
auto baseLang = Lang::Current().baseId();
|
||||||
|
QString channelLink;
|
||||||
|
|
||||||
|
for (const auto language : { "ru", "uk", "be" }) {
|
||||||
|
if (baseLang.startsWith(QLatin1String(language))) {
|
||||||
|
channelLink = "https://t.me/kotatogram_ru";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (channelLink.isEmpty()) {
|
||||||
|
channelLink = "https://t.me/kotatogram";
|
||||||
|
}
|
||||||
|
|
||||||
return tr::ktg_about_text3(
|
return tr::ktg_about_text3(
|
||||||
lt_channel_link,
|
lt_channel_link,
|
||||||
tr::ktg_about_text3_channel() | Ui::Text::ToLink("https://t.me/kotatogram"),
|
tr::ktg_about_text3_channel() | Ui::Text::ToLink(channelLink),
|
||||||
lt_faq_link,
|
lt_faq_link,
|
||||||
tr::lng_about_text3_faq() | Ui::Text::ToLink(telegramFaqLink()),
|
tr::lng_about_text3_faq() | Ui::Text::ToLink(telegramFaqLink()),
|
||||||
Ui::Text::WithEntities);
|
Ui::Text::WithEntities);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user