2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Use tr:: instead of langFactory and __rich.

This commit is contained in:
John Preston
2019-06-18 18:53:27 +02:00
parent d1d98c3bb1
commit a7c8feaecb
103 changed files with 699 additions and 628 deletions

View File

@@ -170,8 +170,8 @@ void MainWindow::checkLockByTerms() {
Ui::hideSettingsAndLayer(anim::type::instant);
const auto box = Ui::show(Box<TermsBox>(
*data,
langFactory(lng_terms_agree),
langFactory(lng_terms_decline)));
tr::lng_terms_agree(),
tr::lng_terms_decline()));
box->setCloseByEscape(false);
box->setCloseByOutsideClick(false);
@@ -205,8 +205,8 @@ void MainWindow::showTermsDecline() {
const auto box = Ui::show(
Box<Window::TermsBox>(
TextWithEntities{ lang(lng_terms_update_sorry) },
langFactory(lng_terms_decline_and_delete),
langFactory(lng_terms_back),
tr::lng_terms_decline_and_delete(),
tr::lng_terms_back(),
true),
LayerOption::KeepOther);