aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/main_window.cpp
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2012-03-07 10:16:33 +0000
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2012-03-07 10:16:33 +0000
commitfe840481ec6960030e46562f8176f01065c90e4b (patch)
tree3f2ee3f8d3716afd6ea9b596aa932f22221d7f76 /ui/qt/main_window.cpp
parent9581065b3fa4ea94e0a6fe189cb471a93c6e4d79 (diff)
Add i18n to QtShark
The goal is only to translate the Gui (Not dissector) Actually, there is only a french translation. To try, (if you are not French) launch qtshark with LANG=fr ./qtshark (in ui/qt folder) Missing some feature : * Add preference to select (force) your language * Some Gui Text, it no available for translation * Documentation about how to translate (Coming soon...) * Your translation ! svn path=/trunk/; revision=41389
Diffstat (limited to 'ui/qt/main_window.cpp')
-rw-r--r--ui/qt/main_window.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/qt/main_window.cpp b/ui/qt/main_window.cpp
index c05d706fbd..631bc3e8ef 100644
--- a/ui/qt/main_window.cpp
+++ b/ui/qt/main_window.cpp
@@ -148,6 +148,7 @@ void MainWindow::captureFileReadStarted(const capture_file *cf) {
// main_set_for_capture_file(TRUE);
ui->statusBar->popFileStatus();
+ //TODO:i10n
QString msg = QString().sprintf("Loading: %s", get_basename(cf->filename));
ui->statusBar->pushFileStatus(msg);
}
@@ -379,7 +380,7 @@ void MainWindow::updateRecentFiles() {
recentMenu->insertAction(NULL, ra);
ra = new QAction(recentMenu);
- ra->setText("Clear Menu");
+ ra->setText(tr("Clear Menu"));
recentMenu->insertAction(NULL, ra);
connect(ra, SIGNAL(triggered()), wsApp, SLOT(clearRecentItems()));
} else {