summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2015-11-22 00:20:54 +0100
committerAnders Broman <a.broman58@gmail.com>2015-11-22 14:52:37 +0000
commit42f7ce10d8dba1b3529bf4f0cb4a6b715717192c (patch)
tree3fb420aca8db402f19c8f4deb4d12bb96b92aceb
parent7bc6c1014e316a67fc6528c402d6a1e7bd2a6dd2 (diff)
downloadwireshark-42f7ce10d8dba1b3529bf4f0cb4a6b715717192c.tar.gz
Qt: Added translate for "Capturing from ".
Change-Id: Ibd7b47169229395e5468ee2422c3dab7abe36413 Reviewed-on: https://code.wireshark.org/review/12022 Reviewed-by: Anders Broman <a.broman58@gmail.com> (cherry picked from commit 358615019b63d4dbc62d8257cef3f9b00b7cb549) Reviewed-on: https://code.wireshark.org/review/12036
-rw-r--r--ui/qt/main_window.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/ui/qt/main_window.cpp b/ui/qt/main_window.cpp
index 940a63c5c5..7d8ad30883 100644
--- a/ui/qt/main_window.cpp
+++ b/ui/qt/main_window.cpp
@@ -1861,11 +1861,8 @@ void MainWindow::setTitlebarForCaptureFile()
// name?
//
// XXX - Use setWindowModified
- gchar *window_name;
setWindowFilePath(NULL);
- window_name = g_strdup_printf("[*]%s", cf_get_tempfile_source(capture_file_.capFile())); //TODO : Fix Translate
- setWindowTitle(window_name);
- g_free(window_name);
+ setWindowTitle(QString("[*]%1").arg(cf_get_tempfile_source(capture_file_.capFile())));
} else {
//
// For a user file, set the full path; that way,
@@ -1907,13 +1904,9 @@ void MainWindow::setDefaultWindowTitle()
void MainWindow::setTitlebarForCaptureInProgress()
{
- gchar *window_name;
-
setWindowFilePath(NULL);
if (capture_file_.capFile()) {
- window_name = g_strdup_printf("Capturing from %s", cf_get_tempfile_source(capture_file_.capFile())); //TODO : Fix Translate
- setWindowTitle(window_name);
- g_free(window_name);
+ setWindowTitle(tr("Capturing from %1").arg(cf_get_tempfile_source(capture_file_.capFile())));
} else {
/* We have no capture in progress. */
setDefaultWindowTitle();