From a51ac8d398aeedf9a678188147a89bf1ee035443 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Fri, 15 Dec 2017 14:35:44 +0100 Subject: Qt: Fix translating some texts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I8267bfd96efe9d9d086913ff418a74a68e63b8da Reviewed-on: https://code.wireshark.org/review/24837 Petri-Dish: Stig Bjørlykke Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann --- ui/qt/follow_stream_dialog.cpp | 8 ++++---- ui/qt/show_packet_bytes_dialog.cpp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ui/qt/follow_stream_dialog.cpp b/ui/qt/follow_stream_dialog.cpp index d316b8a7d1..136a8e2595 100644 --- a/ui/qt/follow_stream_dialog.cpp +++ b/ui/qt/follow_stream_dialog.cpp @@ -242,9 +242,9 @@ void FollowStreamDialog::useRegexFind(bool use_regex) { use_regex_find_ = use_regex; if (use_regex_find_) - ui->lFind->setText("Regex Find:"); + ui->lFind->setText(tr("Regex Find:")); else - ui->lFind->setText("Find:"); + ui->lFind->setText(tr("Find:")); } void FollowStreamDialog::findText(bool go_back) @@ -536,7 +536,7 @@ void FollowStreamDialog::addText(QString text, gboolean is_from_server, guint32 tcf = ui->teStreamContent->currentCharFormat(); tcf.setBackground(palette().window().color()); tcf.setForeground(palette().windowText().color()); - ui->teStreamContent->insertPlainText(tr("\n[Stream output truncated]")); + ui->teStreamContent->insertPlainText("\n" + tr("[Stream output truncated]")); ui->teStreamContent->moveCursor(QTextCursor::End); } else { ui->teStreamContent->verticalScrollBar()->setValue(cur_pos); @@ -937,7 +937,7 @@ bool FollowStreamDialog::follow(QString previous_filter, bool use_stream_index, wmem_free(NULL, port0); wmem_free(NULL, port1); - both_directions_string = QString("Entire conversation (%1)") + both_directions_string = tr("Entire conversation (%1)") .arg(gchar_free_to_qstring(format_size( follow_info_.bytes_written[0] + follow_info_.bytes_written[1], format_size_unit_bytes|format_size_prefix_si))); diff --git a/ui/qt/show_packet_bytes_dialog.cpp b/ui/qt/show_packet_bytes_dialog.cpp index 738f3ffcf9..405e08774a 100644 --- a/ui/qt/show_packet_bytes_dialog.cpp +++ b/ui/qt/show_packet_bytes_dialog.cpp @@ -226,9 +226,9 @@ void ShowPacketBytesDialog::useRegexFind(bool use_regex) { use_regex_find_ = use_regex; if (use_regex_find_) - ui->lFind->setText("Regex Find:"); + ui->lFind->setText(tr("Regex Find:")); else - ui->lFind->setText("Find:"); + ui->lFind->setText(tr("Find:")); } void ShowPacketBytesDialog::findText(bool go_back) -- cgit v1.2.3