mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 15:45:12 +00:00
Changed "Members" to "Subscribers" for channel
This commit is contained in:
@@ -2248,4 +2248,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||||||
"ktg_settings_show_json_settings" = "Show custom settings";
|
"ktg_settings_show_json_settings" = "Show custom settings";
|
||||||
"ktg_settings_restart" = "Restart Kotatogram";
|
"ktg_settings_restart" = "Restart Kotatogram";
|
||||||
|
|
||||||
|
"ktg_chat_status_subscribers#one" = "{count} subscriber";
|
||||||
|
"ktg_chat_status_subscribers#other" = "{count} subscribers";
|
||||||
|
|
||||||
|
"ktg_profile_subscribers_section" = "Subscribers";
|
||||||
|
|
||||||
// Keys finished
|
// Keys finished
|
||||||
|
@@ -19,5 +19,12 @@
|
|||||||
"ktg_pinned_message_show": "Показать закреплённое сообщение",
|
"ktg_pinned_message_show": "Показать закреплённое сообщение",
|
||||||
"ktg_pinned_message_hide": "Скрыть закреплённое сообщение",
|
"ktg_pinned_message_hide": "Скрыть закреплённое сообщение",
|
||||||
"ktg_settings_show_json_settings": "Показать файл настроек",
|
"ktg_settings_show_json_settings": "Показать файл настроек",
|
||||||
"ktg_settings_restart": "Перезапустить Kotatogram"
|
"ktg_settings_restart": "Перезапустить Kotatogram",
|
||||||
|
"ktg_chat_status_subscribers": {
|
||||||
|
"one": "{count} подписчик",
|
||||||
|
"few": "{count} подписчика",
|
||||||
|
"many": "{count} подписчиков",
|
||||||
|
"other": "{count} подписчиков"
|
||||||
|
},
|
||||||
|
"ktg_profile_subscribers_section": "Подписчики"
|
||||||
}
|
}
|
||||||
|
@@ -872,7 +872,9 @@ void TopBarWidget::updateOnlineDisplay() {
|
|||||||
text = tr::lng_group_status(tr::now);
|
text = tr::lng_group_status(tr::now);
|
||||||
}
|
}
|
||||||
} else if (channel->membersCount() > 0) {
|
} 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::ktg_chat_status_subscribers(tr::now, lt_count_decimal, channel->membersCount());
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
text = channel->isMegagroup() ? tr::lng_group_status(tr::now) : tr::lng_channel_status(tr::now);
|
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();
|
return tr::lng_profile_common_groups_section();
|
||||||
|
|
||||||
case Section::Type::Members:
|
case Section::Type::Members:
|
||||||
|
if (const auto channel = peer->asChannel()) {
|
||||||
|
return channel->isMegagroup()
|
||||||
|
? tr::lng_profile_participants_section()
|
||||||
|
: tr::ktg_profile_subscribers_section();
|
||||||
|
}
|
||||||
return tr::lng_profile_participants_section();
|
return tr::lng_profile_participants_section();
|
||||||
|
|
||||||
//case Section::Type::Channels: // #feed
|
//case Section::Type::Channels: // #feed
|
||||||
|
@@ -882,7 +882,7 @@ object_ptr<Ui::RpWidget> SetupChannelMembers(
|
|||||||
channel,
|
channel,
|
||||||
MTPDchannelFull::Flag::f_can_view_participants),
|
MTPDchannelFull::Flag::f_can_view_participants),
|
||||||
(_1 > 0) && _2);
|
(_1 > 0) && _2);
|
||||||
auto membersText = tr::lng_chat_status_members(
|
auto membersText = tr::ktg_chat_status_subscribers(
|
||||||
lt_count_decimal,
|
lt_count_decimal,
|
||||||
MembersCountValue(channel) | tr::to_count());
|
MembersCountValue(channel) | tr::to_count());
|
||||||
auto membersCallback = [=] {
|
auto membersCallback = [=] {
|
||||||
|
@@ -145,7 +145,12 @@ auto ChatStatusText(int fullCount, int onlineCount, bool isGroup) {
|
|||||||
lt_online_count,
|
lt_online_count,
|
||||||
OnlineStatusText(onlineCount));
|
OnlineStatusText(onlineCount));
|
||||||
} else if (fullCount > 0) {
|
} else if (fullCount > 0) {
|
||||||
return tr::lng_chat_status_members(
|
return isGroup
|
||||||
|
? tr::lng_chat_status_members(
|
||||||
|
tr::now,
|
||||||
|
lt_count_decimal,
|
||||||
|
fullCount)
|
||||||
|
: tr::ktg_chat_status_subscribers(
|
||||||
tr::now,
|
tr::now,
|
||||||
lt_count_decimal,
|
lt_count_decimal,
|
||||||
fullCount);
|
fullCount);
|
||||||
|
Reference in New Issue
Block a user