2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 23:45:44 +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

@@ -471,8 +471,8 @@ ProxiesBox::ProxiesBox(
void ProxiesBox::prepare() {
setTitle(tr::lng_proxy_settings());
addButton(langFactory(lng_proxy_add), [=] { addNewProxy(); });
addButton(langFactory(lng_close), [=] { closeBox(); });
addButton(tr::lng_proxy_add(), [=] { addNewProxy(); });
addButton(tr::lng_close(), [=] { closeBox(); });
setupContent();
}
@@ -706,12 +706,12 @@ void ProxyBox::prepare() {
void ProxyBox::refreshButtons() {
clearButtons();
addButton(langFactory(lng_settings_save), [=] { save(); });
addButton(langFactory(lng_cancel), [=] { closeBox(); });
addButton(tr::lng_settings_save(), [=] { save(); });
addButton(tr::lng_cancel(), [=] { closeBox(); });
const auto type = _type->value();
if (type == Type::Socks5 || type == Type::Mtproto) {
addLeftButton(langFactory(lng_proxy_share), [=] { share(); });
addLeftButton(tr::lng_proxy_share(), [=] { share(); });
}
}