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>
|
<enum>Qt::LeftToRight</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Public key (no ToxID):</string>
|
<string>Public key (not ToxID):</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|
|
@ -513,11 +513,7 @@ void GroupChatForm::keyReleaseEvent(QKeyEvent* ev)
|
||||||
void GroupChatForm::updateUserCount()
|
void GroupChatForm::updateUserCount()
|
||||||
{
|
{
|
||||||
const int peersCount = group->getPeersCount();
|
const int peersCount = group->getPeersCount();
|
||||||
if (peersCount == 1) {
|
nusersLabel->setText(tr("%n user(s) in chat", "Number of users in chat", peersCount));
|
||||||
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));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GroupChatForm::retranslateUi()
|
void GroupChatForm::retranslateUi()
|
||||||
|
|
|
@ -161,7 +161,7 @@ void GroupWidget::mouseMoveEvent(QMouseEvent* ev)
|
||||||
void GroupWidget::updateUserCount()
|
void GroupWidget::updateUserCount()
|
||||||
{
|
{
|
||||||
int peersCount = chatroom->getGroup()->getPeersCount();
|
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()
|
void GroupWidget::setAsActiveChatroom()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user