aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2017-12-15 14:35:44 +0100
committerMichael Mann <mmann78@netscape.net>2017-12-15 16:48:00 +0000
commita51ac8d398aeedf9a678188147a89bf1ee035443 (patch)
tree52652fe8c493d747d106d203783775fd98bdcfb0
parenta8a4436e97eaddca301e8b258f7a1ca9688af4f9 (diff)
Qt: Fix translating some texts
Change-Id: I8267bfd96efe9d9d086913ff418a74a68e63b8da Reviewed-on: https://code.wireshark.org/review/24837 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann <mmann78@netscape.net>
-rw-r--r--ui/qt/follow_stream_dialog.cpp8
-rw-r--r--ui/qt/show_packet_bytes_dialog.cpp4
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)