This commit is contained in:
Eric Kotato 2019-09-21 19:10:46 +03:00
parent 37c7b0af13
commit 341988b877
3 changed files with 13 additions and 20 deletions

View file

@ -27,12 +27,11 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
namespace { namespace {
rpl::producer<TextWithEntities> Text1() { rpl::producer<TextWithEntities> Text1() {
return rpl::single( return tr::lng_about_text1(
qsl("Unofficial experimental fork of ") + lt_api_link,
Ui::Text::Link( tr::lng_about_text1_api(
"Telegram Desktop", ) | Ui::Text::ToLink("https://core.telegram.org/api"),
"https://github.com/telegramdesktop/tdesktop") + Ui::Text::WithEntities);
qsl("."));
} }
rpl::producer<TextWithEntities> Text2() { rpl::producer<TextWithEntities> Text2() {
@ -40,25 +39,19 @@ rpl::producer<TextWithEntities> Text2() {
lt_gpl_link, lt_gpl_link,
rpl::single(Ui::Text::Link( rpl::single(Ui::Text::Link(
"GNU GPL", "GNU GPL",
"https://github.com/kotatogram/kotatogram-desktop/blob/master/LICENSE")), "https://github.com/telegramdesktop/tdesktop/blob/master/LICENSE")),
lt_github_link, lt_github_link,
rpl::single(Ui::Text::Link( rpl::single(Ui::Text::Link(
"GitHub", "GitHub",
"https://github.com/kotatogram/kotatogram-desktop")), "https://github.com/telegramdesktop/tdesktop")),
Ui::Text::WithEntities); Ui::Text::WithEntities);
} }
rpl::producer<TextWithEntities> Text3() { rpl::producer<TextWithEntities> Text3() {
return rpl::single( return tr::lng_about_text3(
qsl("Visit ") + lt_faq_link,
Ui::Text::Link( tr::lng_about_text3_faq() | Ui::Text::ToLink(telegramFaqLink()),
"Telegram FAQ", Ui::Text::WithEntities);
telegramFaqLink()) +
qsl(" or ") +
Ui::Text::Link(
"Kotatogram channel",
telegramFaqLink()) +
qsl(" for more info."));
} }
} // namespace } // namespace

View file

@ -311,7 +311,7 @@ public slots:
private slots: private slots:
void onHashtagOrBotCommandInsert(QString str, FieldAutocomplete::ChooseMethod method); void onHashtagOrBotCommandInsert(QString str, FieldAutocomplete::ChooseMethod method);
void onMentionInsert(UserData *user); void onMentionInsert(UserData *user, FieldAutocomplete::ChooseMethod method);
void onInlineBotCancel(); void onInlineBotCancel();
void onMembersDropdownShow(); void onMembersDropdownShow();

View file

@ -202,7 +202,7 @@ MainMenu::MainMenu(
refreshBackground(); refreshBackground();
_telegram->setMarkedText(Ui::Text::Link( _telegram->setMarkedText(Ui::Text::Link(
qsl("kotatogram Desktop"), qsl("Kotatogram Desktop"),
qsl("https://t.me/kotatogram"))); qsl("https://t.me/kotatogram")));
_telegram->setLinksTrusted(); _telegram->setLinksTrusted();
_version->setRichText(textcmdLink(1, tr::lng_settings_current_version(tr::now, lt_version, currentVersionText())) + QChar(' ') + QChar(8211) + QChar(' ') + textcmdLink(2, tr::lng_menu_about(tr::now))); _version->setRichText(textcmdLink(1, tr::lng_settings_current_version(tr::now, lt_version, currentVersionText())) + QChar(' ') + QChar(8211) + QChar(' ') + textcmdLink(2, tr::lng_menu_about(tr::now)));