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:
parent
15d72a9610
commit
0dc46cdc81
|
@ -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>
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user