Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(ui): fix typo, add plural to translation
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonybilinski committed Apr 22, 2019
1 parent 15d72a9 commit 0dc46cd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/widget/about/aboutfriendform.ui
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
6 changes: 1 addition & 5 deletions src/widget/form/groupchatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion src/widget/groupwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 0dc46cd

Please sign in to comment.