1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(ui): fix typo, add plural to translation

This commit is contained in:
Anthony Bilinski 2019-04-20 03:32:31 -07:00
parent 15d72a9610
commit 0dc46cdc81
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
3 changed files with 3 additions and 7 deletions

View File

@ -118,7 +118,7 @@
<enum>Qt::LeftToRight</enum>
</property>
<property name="text">
<string>Public key (no ToxID):</string>
<string>Public key (not ToxID):</string>
</property>
</widget>
</item>

View File

@ -513,11 +513,7 @@ void GroupChatForm::keyReleaseEvent(QKeyEvent* ev)
void GroupChatForm::updateUserCount()
{
const int peersCount = group->getPeersCount();
if (peersCount == 1) {
nusersLabel->setText(tr("1 user in chat", "Number of users in chat"));
} else {
nusersLabel->setText(tr("%1 users in chat", "Number of users in chat").arg(peersCount));
}
nusersLabel->setText(tr("%n user(s) in chat", "Number of users in chat", peersCount));
}
void GroupChatForm::retranslateUi()

View File

@ -161,7 +161,7 @@ void GroupWidget::mouseMoveEvent(QMouseEvent* ev)
void GroupWidget::updateUserCount()
{
int peersCount = chatroom->getGroup()->getPeersCount();
statusMessageLabel->setText(tr("%n user(s) in chat", "", peersCount));
statusMessageLabel->setText(tr("%n user(s) in chat", "Number of users in chat", peersCount));
}
void GroupWidget::setAsActiveChatroom()