Add some phrases to langpack.

This commit is contained in:
John Preston 2022-11-05 17:48:24 +04:00
parent d58f312342
commit 080ab26804
3 changed files with 4 additions and 2 deletions

View File

@ -3550,6 +3550,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
"lng_forum_topics_not_enough#one" = "Only groups with more than **{count} member** can have topics enabled.";
"lng_forum_topics_not_enough#other" = "Only groups with more than **{count} members** can have topics enabled.";
"lng_forum_topics_no_discussion" = "Topics can't be enabled in discussion groups at the moment.";
"lng_forum_choose_title_and_icon" = "Choose title and icon for your topic";
"lng_forum_replies_only" = "You can reply to messages in topics.";
"lng_forum_no_topics" = "No topics currently created in this forum.";
"lng_forum_create_topic" = "Create topic";
"lng_forum_discard_sure" = "Are you sure you want to discard this topic?";

View File

@ -446,7 +446,7 @@ void EditForumTopicBox(
Settings::AddDividerText(
top,
rpl::single(u"Choose title and icon for your topic"_q));
tr::lng_forum_choose_title_and_icon());
box->setScrollStyle(st::reactPanelScroll);

View File

@ -2609,7 +2609,7 @@ std::optional<QString> HistoryWidget::writeRestriction() const {
if (result) {
return result;
} else if (_peer && _peer->isForum()) {
return u"You can reply to messages in topics."_q;
return tr::lng_forum_replies_only(tr::now);
}
return std::nullopt;
}