mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-20 06:21:00 +00:00
Use "subscribers" instead of "members" in channels
This commit is contained in:
parent
ae64747489
commit
cad4d19272
@ -118,6 +118,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
"lng_chat_status_online#one" = "{count} online";
|
||||
"lng_chat_status_online#other" = "{count} online";
|
||||
"lng_chat_status_members_online" = "{members_count}, {online_count}";
|
||||
"lng_chat_status_subscribers#one" = "{count} subscriber";
|
||||
"lng_chat_status_subscribers#other" = "{count} subscribers";
|
||||
|
||||
"lng_channel_status" = "channel";
|
||||
"lng_group_status" = "group";
|
||||
@ -767,6 +769,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
"lng_profile_common_groups#one" = "{count} group in common";
|
||||
"lng_profile_common_groups#other" = "{count} groups in common";
|
||||
"lng_profile_participants_section" = "Members";
|
||||
"lng_profile_subscribers_section" = "Subscribers";
|
||||
"lng_profile_mobile_number" = "Mobile:";
|
||||
"lng_profile_username" = "Username:";
|
||||
"lng_profile_link" = "Link:";
|
||||
@ -888,6 +891,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
"lng_manage_channel_info" = "Channel Info";
|
||||
"lng_manage_peer_recent_actions" = "Recent Actions";
|
||||
"lng_manage_peer_members" = "Members";
|
||||
"lng_manage_peer_subscribers" = "Subscribers";
|
||||
"lng_manage_peer_administrators" = "Administrators";
|
||||
"lng_manage_peer_exceptions" = "Exceptions";
|
||||
"lng_manage_peer_removed_users" = "Removed users";
|
||||
|
@ -1056,7 +1056,9 @@ void ParticipantsBoxController::prepare() {
|
||||
switch (_role) {
|
||||
case Role::Admins: return tr::lng_channel_admins();
|
||||
case Role::Profile:
|
||||
case Role::Members: return tr::lng_profile_participants_section();
|
||||
case Role::Members: return (_peer->isChannel() && !_peer->isMegagroup()
|
||||
? tr::lng_profile_subscribers_section()
|
||||
: tr::lng_profile_participants_section());
|
||||
case Role::Restricted: return tr::lng_exceptions_list_title();
|
||||
case Role::Kicked: return tr::lng_removed_list_title();
|
||||
}
|
||||
|
@ -967,7 +967,7 @@ void Controller::fillManageSection() {
|
||||
if (canViewMembers) {
|
||||
AddButtonWithCount(
|
||||
_controls.buttonsLayout,
|
||||
tr::lng_manage_peer_members(),
|
||||
(_isGroup ? tr::lng_manage_peer_members() : tr::lng_manage_peer_subscribers()),
|
||||
Info::Profile::MigratedOrMeValue(
|
||||
_peer
|
||||
) | rpl::map(
|
||||
|
@ -873,7 +873,9 @@ void TopBarWidget::updateOnlineDisplay() {
|
||||
text = tr::lng_group_status(tr::now);
|
||||
}
|
||||
} else if (channel->membersCount() > 0) {
|
||||
text = tr::lng_chat_status_members(tr::now, lt_count_decimal, channel->membersCount());
|
||||
text = channel->isMegagroup()
|
||||
? tr::lng_chat_status_members(tr::now, lt_count_decimal, channel->membersCount())
|
||||
: tr::lng_chat_status_subscribers(tr::now, lt_count_decimal, channel->membersCount());
|
||||
|
||||
} else {
|
||||
text = channel->isMegagroup() ? tr::lng_group_status(tr::now) : tr::lng_channel_status(tr::now);
|
||||
|
@ -605,6 +605,11 @@ rpl::producer<QString> TitleValue(
|
||||
return tr::lng_profile_common_groups_section();
|
||||
|
||||
case Section::Type::Members:
|
||||
if (const auto channel = peer->asChannel()) {
|
||||
return channel->isMegagroup()
|
||||
? tr::lng_profile_participants_section()
|
||||
: tr::lng_profile_subscribers_section();
|
||||
}
|
||||
return tr::lng_profile_participants_section();
|
||||
|
||||
//case Section::Type::Channels: // #feed
|
||||
|
@ -835,7 +835,7 @@ object_ptr<Ui::RpWidget> SetupChannelMembers(
|
||||
channel,
|
||||
MTPDchannelFull::Flag::f_can_view_participants),
|
||||
(_1 > 0) && _2);
|
||||
auto membersText = tr::lng_chat_status_members(
|
||||
auto membersText = tr::lng_chat_status_subscribers(
|
||||
lt_count_decimal,
|
||||
MembersCountValue(channel) | tr::to_count());
|
||||
auto membersCallback = [=] {
|
||||
|
@ -146,10 +146,15 @@ auto ChatStatusText(int fullCount, int onlineCount, bool isGroup) {
|
||||
lt_online_count,
|
||||
OnlineStatusText(onlineCount));
|
||||
} else if (fullCount > 0) {
|
||||
return tr::lng_chat_status_members(
|
||||
tr::now,
|
||||
lt_count_decimal,
|
||||
fullCount);
|
||||
return isGroup
|
||||
? tr::lng_chat_status_members(
|
||||
tr::now,
|
||||
lt_count_decimal,
|
||||
fullCount)
|
||||
: tr::lng_chat_status_subscribers(
|
||||
tr::now,
|
||||
lt_count_decimal,
|
||||
fullCount);
|
||||
}
|
||||
return isGroup
|
||||
? tr::lng_group_status(tr::now)
|
||||
|
Loading…
Reference in New Issue
Block a user