Discussions: Change text of count of messages in the topics

This commit is contained in:
Maxim Leshchenko 2021-12-16 19:51:04 +02:00
parent c0acfd7f7f
commit 26ddfada05
No known key found for this signature in database
GPG key ID: BB9C44A8733FBEEE
4 changed files with 13 additions and 2 deletions

View file

@ -23,6 +23,7 @@
</div>
</div>
<div style="margin-top: 20px;">
{include "../components/comments.xml", comments => $comments, count => $count, page => $page, model => "topics", club => $club, readOnly => $topic->isClosed(), parent => $topic}
<h4>{tr("topic_messages_count", $count)}</h4>
{include "../components/comments.xml", comments => $comments, count => $count, page => $page, model => "topics", club => $club, readOnly => $topic->isClosed(), showTitle => false, parent => $topic}
</div>
{/block}

View file

@ -1,4 +1,4 @@
<h4>{_"comments"} ({$count})</h4>
<h4 n:if="$showTitle ?? true">{_"comments"} ({$count})</h4>
<div n:ifset="$thisUser">
{var commentsURL = "/al_comments.pl/create/$model/" . $parent->getId()}

View file

@ -608,6 +608,10 @@
"messages_one" = "One message";
"messages_other" = "$1 messages";
"topic_messages_count_zero" = "Topic has no messages";
"topic_messages_count_one" = "There are one message in the topic";
"topic_messages_count_other" = "There are $1 messages in the topic";
"replied" = "replied";
"create_topic" = "Create a topic";

View file

@ -635,6 +635,12 @@
"messages_many" = "$1 сообщений";
"messages_other" = "$1 сообщений";
"topic_messages_count_zero" = "В теме нет сообщений";
"topic_messages_count_one" = "В теме одно сообщение";
"topic_messages_count_few" = "В теме $1 сообщения";
"topic_messages_count_many" = "В теме $1 сообщений";
"topic_messages_count_other" = "В теме $1 сообщений";
"replied" = "ответил";
"create_topic" = "Создать тему";