diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2018-05-09 09:08:02 +0200 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2018-05-09 07:40:19 +0000 |
commit | a1f95b64581168e3fcf202c27985dc7e99a429a9 (patch) | |
tree | 8d87eb76379aa5398748c8e34d2a2f46b155151a /ui/qt | |
parent | 612fb778f51b704745559345485f4ea44aa71aef (diff) |
Qt: Add plural translations
Add plural translations in capture file dialog preview.
Reworded text for "error after X records(s)" to use same format
as similar messages.
Change-Id: I7b2c8811a9c0c0f76587c5aad1a648a1b969f37a
Reviewed-on: https://code.wireshark.org/review/27412
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/qt')
-rw-r--r-- | ui/qt/capture_file_dialog.cpp | 2 | ||||
-rw-r--r-- | ui/qt/wireshark_en.ts | 15 |
2 files changed, 9 insertions, 8 deletions
diff --git a/ui/qt/capture_file_dialog.cpp b/ui/qt/capture_file_dialog.cpp index 852b2150a7..6e8569dacc 100644 --- a/ui/qt/capture_file_dialog.cpp +++ b/ui/qt/capture_file_dialog.cpp @@ -843,7 +843,7 @@ void CaptureFileDialog::preview(const QString & path) if(status == PREVIEW_READ_ERROR) { // XXX - give error details? g_free(err_info); - preview_size_.setText(tr("%1, error after %Ln record(s)", "", stats.records) + preview_size_.setText(tr("%1, error after %Ln data record(s)", "", stats.records) .arg(size_str)); return; } diff --git a/ui/qt/wireshark_en.ts b/ui/qt/wireshark_en.ts index 4d86ac952b..57026f0531 100644 --- a/ui/qt/wireshark_en.ts +++ b/ui/qt/wireshark_en.ts @@ -840,24 +840,25 @@ <translation type="unfinished"></translation> </message> <message numerus="yes"> - <source>%1, error after %Ln record(s)</source> + <source>%1, error after %Ln data record(s)</source> + <oldsource>%1, error after %Ln record(s)</oldsource> <translation type="unfinished"> - <numerusform></numerusform> - <numerusform></numerusform> + <numerusform>%1, error after %Ln data record</numerusform> + <numerusform>%1, error after %Ln data records</numerusform> </translation> </message> <message numerus="yes"> <source>%1, timed out at %Ln data record(s)</source> <translation type="unfinished"> - <numerusform></numerusform> - <numerusform></numerusform> + <numerusform>%1, timed out at %Ln data record</numerusform> + <numerusform>%1, timed out at %Ln data records</numerusform> </translation> </message> <message numerus="yes"> <source>%1, %Ln data record(s)</source> <translation type="unfinished"> - <numerusform></numerusform> - <numerusform></numerusform> + <numerusform>%1, %Ln data record</numerusform> + <numerusform>%1, %Ln data records</numerusform> </translation> </message> <message> |