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

Use tr:: instead of langFactory in box titles.

This commit is contained in:
John Preston
2019-06-18 17:00:55 +02:00
parent 8ed433cc01
commit d1d98c3bb1
66 changed files with 234 additions and 230 deletions

View File

@@ -69,7 +69,7 @@ void TransferPasswordError(
not_null<GenericBox*> box,
not_null<UserData*> user,
PasswordErrorType error) {
box->setTitle(langFactory(lng_rights_transfer_check));
box->setTitle(tr::lng_rights_transfer_check());
box->setWidth(st::transferCheckWidth);
auto text = lng_rights_transfer_check_about__rich(
@@ -271,9 +271,9 @@ void EditAdminBox::prepare() {
EditParticipantBox::prepare();
auto hadRights = _oldRights.c_chatAdminRights().vflags.v;
setTitle(langFactory(hadRights
? lng_rights_edit_admin
: lng_channel_add_admin));
setTitle(hadRights
? tr::lng_rights_edit_admin()
: tr::lng_channel_add_admin());
addControl(
object_ptr<BoxContentDivider>(this),
@@ -579,7 +579,7 @@ EditRestrictedBox::EditRestrictedBox(
void EditRestrictedBox::prepare() {
EditParticipantBox::prepare();
setTitle(langFactory(lng_rights_user_restrictions));
setTitle(tr::lng_rights_user_restrictions());
addControl(
object_ptr<BoxContentDivider>(this),