Qt: Pluralize "Copy Row(s)"

Properly pluralize "Copy Row(s)" entry in the popup menu.

Change-Id: Ifc4f9c69ab63d2d2594648db3115087ba51a941f
Reviewed-on: https://code.wireshark.org/review/31269
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
This commit is contained in:
Stig Bjørlykke 2018-12-30 20:23:04 +01:00
parent 103ffc1ed7
commit c25dbfa8a7
2 changed files with 7 additions and 3 deletions

View File

@ -491,7 +491,8 @@ void AboutDialog::handleCopyMenu(QPoint pos)
copyColumnAction->setData(VariantPointer<QTreeView>::asQVariant(tree));
connect(copyColumnAction, SIGNAL(triggered()), this, SLOT(copyActionTriggered()));
QAction * copyRowAction = menu->addAction(tr("Copy Row(s)"));
QModelIndexList selectedRows = tree->selectionModel()->selectedRows();
QAction * copyRowAction = menu->addAction(tr("Copy Row(s)", "", selectedRows.count()));
copyRowAction->setData(VariantPointer<QTreeView>::asQVariant(tree));
connect(copyRowAction, SIGNAL(triggered()), this, SLOT(copyRowActionTriggered()));

View File

@ -91,9 +91,12 @@
<source>Copy</source>
<translation type="unfinished"></translation>
</message>
<message>
<message numerus="yes">
<source>Copy Row(s)</source>
<translation type="unfinished"></translation>
<translation type="unfinished">
<numerusform>Copy Row</numerusform>
<numerusform>Copy Rows</numerusform>
</translation>
</message>
</context>
<context>