2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Use tr:: instead of lang().

This commit is contained in:
John Preston
2019-06-19 17:09:03 +02:00
parent d3ca6b96a1
commit 87fc066e67
168 changed files with 1905 additions and 1744 deletions

View File

@@ -175,8 +175,8 @@ void SetupInterfaceScale(
[=] { (*setScale)(cConfigScale()); });
});
Ui::show(Box<ConfirmBox>(
lang(lng_settings_need_restart),
lang(lng_settings_restart_now),
tr::lng_settings_need_restart(tr::now),
tr::lng_settings_restart_now(tr::now),
confirmed,
cancelled));
} else if (scale != cConfigScale()) {
@@ -247,9 +247,9 @@ void SetupHelp(not_null<Ui::VerticalLayout*> container) {
Auth().api().requestSupportContact(ready);
});
auto box = Box<ConfirmBox>(
lang(lng_settings_ask_sure),
lang(lng_settings_ask_ok),
lang(lng_settings_faq_button),
tr::lng_settings_ask_sure(tr::now),
tr::lng_settings_ask_ok(tr::now),
tr::lng_settings_faq_button(tr::now),
sure,
OpenFaq);
box->setStrictCancel(true);