diff --git a/Telegram/Resources/langs/lang.strings b/Telegram/Resources/langs/lang.strings index 18573ca3d..0f8fda7a6 100644 --- a/Telegram/Resources/langs/lang.strings +++ b/Telegram/Resources/langs/lang.strings @@ -2248,4 +2248,9 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL "ktg_settings_show_json_settings" = "Show custom settings"; "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 diff --git a/Telegram/Resources/langs/rewrites/ru.json b/Telegram/Resources/langs/rewrites/ru.json index 5fc425d8e..c057df716 100644 --- a/Telegram/Resources/langs/rewrites/ru.json +++ b/Telegram/Resources/langs/rewrites/ru.json @@ -19,5 +19,12 @@ "ktg_pinned_message_show": "Показать закреплённое сообщение", "ktg_pinned_message_hide": "Скрыть закреплённое сообщение", "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": "Подписчики" } diff --git a/Telegram/SourceFiles/history/view/history_view_top_bar_widget.cpp b/Telegram/SourceFiles/history/view/history_view_top_bar_widget.cpp index 92af82f9b..ef0951d8e 100644 --- a/Telegram/SourceFiles/history/view/history_view_top_bar_widget.cpp +++ b/Telegram/SourceFiles/history/view/history_view_top_bar_widget.cpp @@ -872,7 +872,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::ktg_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); diff --git a/Telegram/SourceFiles/info/info_top_bar.cpp b/Telegram/SourceFiles/info/info_top_bar.cpp index 8f089fc42..bd2fe793e 100644 --- a/Telegram/SourceFiles/info/info_top_bar.cpp +++ b/Telegram/SourceFiles/info/info_top_bar.cpp @@ -605,6 +605,11 @@ rpl::producer 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::ktg_profile_subscribers_section(); + } return tr::lng_profile_participants_section(); //case Section::Type::Channels: // #feed diff --git a/Telegram/SourceFiles/info/profile/info_profile_actions.cpp b/Telegram/SourceFiles/info/profile/info_profile_actions.cpp index 4d5740663..6a85672fe 100644 --- a/Telegram/SourceFiles/info/profile/info_profile_actions.cpp +++ b/Telegram/SourceFiles/info/profile/info_profile_actions.cpp @@ -882,7 +882,7 @@ object_ptr SetupChannelMembers( channel, MTPDchannelFull::Flag::f_can_view_participants), (_1 > 0) && _2); - auto membersText = tr::lng_chat_status_members( + auto membersText = tr::ktg_chat_status_subscribers( lt_count_decimal, MembersCountValue(channel) | tr::to_count()); auto membersCallback = [=] { diff --git a/Telegram/SourceFiles/info/profile/info_profile_cover.cpp b/Telegram/SourceFiles/info/profile/info_profile_cover.cpp index 0f3aa8934..c9950d223 100644 --- a/Telegram/SourceFiles/info/profile/info_profile_cover.cpp +++ b/Telegram/SourceFiles/info/profile/info_profile_cover.cpp @@ -145,10 +145,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::ktg_chat_status_subscribers( + tr::now, + lt_count_decimal, + fullCount); } return isGroup ? tr::lng_group_status(tr::now)