aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2018-12-30 20:23:04 +0100
committerStig Bjørlykke <stig@bjorlykke.org>2019-01-01 18:13:44 +0000
commitc25dbfa8a7fc5c314d414e64d2b9eef5ff7378d9 (patch)
tree2232e230584d1037b380fdd18e3f66f80c43dea0 /ui
parent103ffc1ed782b3f0eae9dd902b60d8541cd3eeaf (diff)
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>
Diffstat (limited to 'ui')
-rw-r--r--ui/qt/about_dialog.cpp3
-rw-r--r--ui/qt/wireshark_en.ts7
2 files changed, 7 insertions, 3 deletions
diff --git a/ui/qt/about_dialog.cpp b/ui/qt/about_dialog.cpp
index ae43dcd5a2..1497398751 100644
--- a/ui/qt/about_dialog.cpp
+++ b/ui/qt/about_dialog.cpp
@@ -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()));
diff --git a/ui/qt/wireshark_en.ts b/ui/qt/wireshark_en.ts
index a11108c276..d9390d5e11 100644
--- a/ui/qt/wireshark_en.ts
+++ b/ui/qt/wireshark_en.ts
@@ -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>