2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +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

@@ -325,7 +325,7 @@ ContactsBoxController::ContactsBoxController(
void ContactsBoxController::prepare() {
setSearchNoResultsText(lang(lng_blocked_list_not_found));
delegate()->peerListSetSearchMode(PeerListSearchMode::Enabled);
delegate()->peerListSetTitle(langFactory(lng_contacts_header));
delegate()->peerListSetTitle(tr::lng_contacts_header());
prepareViewHook();
@@ -497,9 +497,9 @@ void AddBotToGroupBoxController::updateLabels() {
}
void AddBotToGroupBoxController::prepareViewHook() {
delegate()->peerListSetTitle(langFactory(sharingBotGame()
? lng_bot_choose_chat
: lng_bot_choose_group));
delegate()->peerListSetTitle(sharingBotGame()
? tr::lng_bot_choose_chat()
: tr::lng_bot_choose_group());
updateLabels();
Auth().data().chatsListLoadedEvents(
) | rpl::filter([=](Data::Folder *folder) {
@@ -515,7 +515,7 @@ ChooseRecipientBoxController::ChooseRecipientBoxController(
}
void ChooseRecipientBoxController::prepareViewHook() {
delegate()->peerListSetTitle(langFactory(lng_forward_choose));
delegate()->peerListSetTitle(tr::lng_forward_choose());
}
void ChooseRecipientBoxController::rowClicked(not_null<PeerListRow*> row) {