2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +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

@@ -1012,18 +1012,18 @@ rpl::producer<int> ParticipantsBoxController::onlineCountValue() const {
}
void ParticipantsBoxController::prepare() {
const auto titleKey = [&] {
auto title = [&] {
switch (_role) {
case Role::Admins: return lng_channel_admins;
case Role::Admins: return tr::lng_channel_admins();
case Role::Profile:
case Role::Members: return lng_profile_participants_section;
case Role::Restricted: return lng_exceptions_list_title;
case Role::Kicked: return lng_removed_list_title;
case Role::Members: return tr::lng_profile_participants_section();
case Role::Restricted: return tr::lng_exceptions_list_title();
case Role::Kicked: return tr::lng_removed_list_title();
}
Unexpected("Role in ParticipantsBoxController::prepare()");
}();
delegate()->peerListSetSearchMode(PeerListSearchMode::Enabled);
delegate()->peerListSetTitle(langFactory(titleKey));
delegate()->peerListSetTitle(std::move(title));
setDescriptionText(lang(lng_contacts_loading));
setSearchNoResultsText(lang(lng_blocked_list_not_found));