Use more simple tr::... text helpers.

This commit is contained in:
John Preston
2025-12-15 12:15:25 +04:00
parent 629158fedb
commit 08a979e638
213 changed files with 1657 additions and 1643 deletions
@@ -71,7 +71,7 @@ void ProcessCreditsPayment(
tr::now,
lt_count_decimal,
form->starGiftLimitedCount,
Ui::Text::RichLangValue),
tr::rich),
});
} else {
show->showToast(
@@ -83,7 +83,7 @@ void ProcessCreditsPayment(
tr::now,
lt_count,
std::max(form->starGiftPerUserLimit, 1),
Ui::Text::RichLangValue),
tr::rich),
});
} else {
show->showToast(*error);
@@ -220,7 +220,7 @@ void ShowPaidReactionDetails(
return tr::lng_paid_react_send(
lt_price,
std::move(nice),
Ui::Text::RichLangValue);
tr::rich);
};
auto top = std::vector<Ui::PaidReactionTop>();
const auto add = [&](const Data::MessageReactionsTopPaid &entry) {
@@ -362,7 +362,7 @@ void FormSummary::setupPrices(not_null<VerticalLayout*> layout) {
const auto text = formatAmount(_invoice.tipsSelected);
const auto label = addRow(
tr::lng_payments_tips_label(tr::now),
Ui::Text::Link(text));
tr::link(text));
label->overrideLinkClickHandler([=] {
_delegate->panelChooseTips();
});
@@ -742,8 +742,8 @@ void Panel::requestTermsAcceptance(
? tr::lng_payments_terms_text
: tr::lng_payments_terms_text_once)(
lt_bot,
rpl::single(Ui::Text::Bold('@' + username)),
Ui::Text::WithEntities),
rpl::single(tr::bold('@' + username)),
tr::marked),
st::boxLabel));
const auto update = std::make_shared<Fn<void()>>();
auto checkView = std::make_unique<Ui::CheckView>(
@@ -756,10 +756,10 @@ void Panel::requestTermsAcceptance(
box.get(),
tr::lng_payments_terms_agree(
lt_link,
rpl::single(Ui::Text::Link(
rpl::single(tr::link(
tr::lng_payments_terms_link(tr::now),
url)),
Ui::Text::WithEntities),
tr::marked),
st::defaultBoxCheckbox,
std::move(checkView)),
{