mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Use tr:: instead of lang().
This commit is contained in:
@@ -32,8 +32,8 @@ PwdCheckWidget::PwdCheckWidget(
|
||||
, _pwdField(this, st::introPassword, tr::lng_signin_password())
|
||||
, _pwdHint(this, st::introPasswordHint)
|
||||
, _codeField(this, st::introPassword, tr::lng_signin_code())
|
||||
, _toRecover(this, lang(lng_signin_recover))
|
||||
, _toPassword(this, lang(lng_signin_try_password))
|
||||
, _toRecover(this, tr::lng_signin_recover(tr::now))
|
||||
, _toPassword(this, tr::lng_signin_try_password(tr::now))
|
||||
, _checkRequest(this) {
|
||||
Expects(!!_request);
|
||||
|
||||
@@ -61,8 +61,8 @@ PwdCheckWidget::PwdCheckWidget(
|
||||
}
|
||||
|
||||
void PwdCheckWidget::refreshLang() {
|
||||
if (_toRecover) _toRecover->setText(lang(lng_signin_recover));
|
||||
if (_toPassword) _toPassword->setText(lang(lng_signin_try_password));
|
||||
if (_toRecover) _toRecover->setText(tr::lng_signin_recover(tr::now));
|
||||
if (_toPassword) _toPassword->setText(tr::lng_signin_try_password(tr::now));
|
||||
if (!_hint.isEmpty()) {
|
||||
_pwdHint->setText(lng_signin_hint(lt_password_hint, _hint));
|
||||
}
|
||||
@@ -297,12 +297,12 @@ void PwdCheckWidget::onToRecover() {
|
||||
}).send();
|
||||
}
|
||||
} else {
|
||||
Ui::show(Box<InformBox>(lang(lng_signin_no_email_forgot), [this] { showReset(); }));
|
||||
Ui::show(Box<InformBox>(tr::lng_signin_no_email_forgot(tr::now), [this] { showReset(); }));
|
||||
}
|
||||
}
|
||||
|
||||
void PwdCheckWidget::onToPassword() {
|
||||
Ui::show(Box<InformBox>(lang(lng_signin_cant_email_forgot), [this] { showReset(); }));
|
||||
Ui::show(Box<InformBox>(tr::lng_signin_cant_email_forgot(tr::now), [this] { showReset(); }));
|
||||
}
|
||||
|
||||
void PwdCheckWidget::showReset() {
|
||||
@@ -360,8 +360,8 @@ void PwdCheckWidget::submit() {
|
||||
}
|
||||
};
|
||||
*box = Ui::show(Box<ConfirmBox>(
|
||||
lang(lng_cloud_password_passport_losing),
|
||||
lang(lng_continue),
|
||||
tr::lng_cloud_password_passport_losing(tr::now),
|
||||
tr::lng_continue(tr::now),
|
||||
confirmed));
|
||||
} else {
|
||||
send();
|
||||
|
Reference in New Issue
Block a user