Update some more phrases.

This commit is contained in:
John Preston 2019-05-31 19:47:31 +03:00
parent 0fc1a40b42
commit 7f74084237
2 changed files with 14 additions and 9 deletions

View file

@ -855,13 +855,14 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_manage_discussion_group_unlink" = "Unlink group";
"lng_manage_discussion_group_posted" = "Everything you post in the channel is forwarded to this group.";
"lng_manage_discussion_group_sure" = "Do you want to make {group} the discussion board for {channel}?";
"lng_manage_linked_channel_private" = "Any member in this group will be able to see the messages in the channel.";
"lng_manage_linked_channel_private" = "Any member of this group will be able to see messages in the channel.";
"lng_manage_discussion_group_private" = "Anyone from the channel will be able to see messages in this group.";
"lng_manage_discussion_group_link" = "Link group";
"lng_manage_discussion_group_private" = "private group";
"lng_manage_discussion_group_private_status" = "private group";
"lng_manage_linked_channel_about" = "{channel} is linking the group as its discussion board.";
"lng_manage_linked_channel_unlink" = "Unlink channel";
"lng_manage_linked_channel_posted" = "All new messages posted in this channel are forwarded to the group.";
"lng_manage_discussion_group_warning" = "Warning: If you set this private group as the disccussion group for your channel, all channel subscribers will be able to access the group. \"Chat history for new members\" will be switched to {visible}.";
"lng_manage_discussion_group_warning" = "\"Chat history for new members\" will be switched to {visible}.";
"lng_manage_discussion_group_visible" = "Visible";
"lng_manage_history_visibility_title" = "Chat history for new members";

View file

@ -88,7 +88,7 @@ void Controller::prepare() {
auto row = std::make_unique<PeerListRow>(chat);
const auto username = chat->userName();
row->setCustomStatus(username.isEmpty()
? lang(lng_manage_discussion_group_private)
? lang(lng_manage_discussion_group_private_status)
: ('@' + username));
delegate()->peerListAppendRow(std::move(row));
};
@ -134,11 +134,14 @@ void Controller::choose(not_null<ChannelData*> chat) {
text.append(
"\n\n" + lang(lng_manage_linked_channel_private));
}
if (chat->hiddenPreHistory()) {
text.append("\n\n");
text.append(lng_manage_discussion_group_warning__generic(
lt_visible,
BoldText(lang(lng_manage_discussion_group_visible))));
if (!chat->isPublic()) {
text.append("\n\n" + lang(lng_manage_discussion_group_private));
if (chat->hiddenPreHistory()) {
text.append("\n\n");
text.append(lng_manage_discussion_group_warning__generic(
lt_visible,
BoldText(lang(lng_manage_discussion_group_visible))));
}
}
const auto box = std::make_shared<QPointer<BoxContent>>();
const auto sure = [=] {
@ -168,6 +171,7 @@ void Controller::choose(not_null<ChatData*> chat) {
text.append(
"\n\n" + lang(lng_manage_linked_channel_private));
}
text.append("\n\n" + lang(lng_manage_discussion_group_private));
text.append("\n\n");
text.append(lng_manage_discussion_group_warning__generic(
lt_visible,