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

Remove all legacy global namespace langs.

This commit is contained in:
John Preston
2019-06-19 18:39:25 +02:00
parent edcd09c29f
commit 4917ca7b32
96 changed files with 638 additions and 407 deletions

View File

@@ -52,7 +52,8 @@ PwdCheckWidget::PwdCheckWidget(
if (_hint.isEmpty()) {
_pwdHint->hide();
} else {
_pwdHint->setText(lng_signin_hint(lt_password_hint, _hint));
_pwdHint->setText(
tr::lng_signin_hint(tr::now, lt_password_hint, _hint));
}
_codeField->hide();
_toPassword->hide();
@@ -61,10 +62,16 @@ PwdCheckWidget::PwdCheckWidget(
}
void PwdCheckWidget::refreshLang() {
if (_toRecover) _toRecover->setText(tr::lng_signin_recover(tr::now));
if (_toPassword) _toPassword->setText(tr::lng_signin_try_password(tr::now));
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));
_pwdHint->setText(
tr::lng_signin_hint(tr::now, lt_password_hint, _hint));
}
updateControlsGeometry();
}