aboutsummaryrefslogtreecommitdiffstats
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:51:46 +0000
commit358615019b63d4dbc62d8257cef3f9b00b7cb549 (patch)
tree8ac41385f516c89abf009bdc5cd8172778c8aeaa
parenta02fc3b094628f504a13012f4cf5bb7ca61ff17f (diff)
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>
-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 161a8808d1..cd4e89e023 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();