diff options
author | Gerald Combs <gerald@wireshark.org> | 2020-09-28 17:40:05 -0700 |
---|---|---|
committer | AndersBroman <a.broman58@gmail.com> | 2020-10-01 06:40:14 +0000 |
commit | d2da4c7afb5e526a3661a1a42e27a3cd23b20ed4 (patch) | |
tree | 1cb6afe43f9f9a1cb9636690614173c3f622311f /ui/qt/rtp_stream_dialog.cpp | |
parent | 9ad3d14ea4f437c63350764bb49df9be51ac31c9 (diff) |
Qt: Use … instead of UTF8_HORIZONTAL_ELLIPSIS in translated strings.
Run
$ gsed -i -e 's/\(tr *(.*".*\)" *UTF8_HORIZONTAL_ELLIPSIS/\1…"/' $( ag -l 'tr *\(.*" *UTF8_HORIZONTAL_ELLIPSIS' )
$ gsed -i -e 's/\(tr *( *\)UTF8_HORIZONTAL_ELLIPSIS *"/\1"…/' $( ag -l 'tr *\( *UTF8_HORIZONTAL_ELLIPSIS *"' )
in ui/qt. As discussed in #16812, the UTF8_ macros were required at one
time because we only allowed ASCII in our source code. However, that
requirement has since been relaxed and Qt's translation framework
doesn't handle concatenating strings and macros very well.
Diffstat (limited to 'ui/qt/rtp_stream_dialog.cpp')
-rw-r--r-- | ui/qt/rtp_stream_dialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/qt/rtp_stream_dialog.cpp b/ui/qt/rtp_stream_dialog.cpp index d56f6eaf7b..39e2020627 100644 --- a/ui/qt/rtp_stream_dialog.cpp +++ b/ui/qt/rtp_stream_dialog.cpp @@ -228,7 +228,7 @@ RtpStreamDialog::RtpStreamDialog(QWidget &parent, CaptureFile &cf) : find_reverse_button_->setToolTip(ui->actionFindReverse->toolTip()); prepare_button_ = ui->buttonBox->addButton(ui->actionPrepareFilter->text(), QDialogButtonBox::ApplyRole); prepare_button_->setToolTip(ui->actionPrepareFilter->toolTip()); - export_button_ = ui->buttonBox->addButton(tr("Export" UTF8_HORIZONTAL_ELLIPSIS), QDialogButtonBox::ApplyRole); + export_button_ = ui->buttonBox->addButton(tr("Export…"), QDialogButtonBox::ApplyRole); export_button_->setToolTip(ui->actionExportAsRtpDump->toolTip()); copy_button_ = ui->buttonBox->addButton(tr("Copy"), QDialogButtonBox::ApplyRole); analyze_button_ = ui->buttonBox->addButton(ui->actionAnalyze->text(), QDialogButtonBox::ApplyRole); @@ -502,7 +502,7 @@ void RtpStreamDialog::on_actionExportAsRtpDump_triggered() QDir path(wsApp->lastOpenDir()); QString save_file = path.canonicalPath() + "/" + cap_file_.fileBaseName(); QString extension; - file_name = WiresharkFileDialog::getSaveFileName(this, wsApp->windowTitleString(tr("Save RTPDump As" UTF8_HORIZONTAL_ELLIPSIS)), + file_name = WiresharkFileDialog::getSaveFileName(this, wsApp->windowTitleString(tr("Save RTPDump As…")), save_file, "RTPDump Format (*.rtpdump)", &extension); if (file_name.length() > 0) { |