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>
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()));
<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>