summaryrefslogtreecommitdiff
path: root/ui/qt/main_status_bar.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_status_bar.cpp
parent9581065b3fa4ea94e0a6fe189cb471a93c6e4d79 (diff)
downloadwireshark-fe840481ec6960030e46562f8176f01065c90e4b.tar.gz
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_status_bar.cpp')
-rw-r--r--ui/qt/main_status_bar.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/ui/qt/main_status_bar.cpp b/ui/qt/main_status_bar.cpp
index 58972d1de5..08db6e78ff 100644
--- a/ui/qt/main_status_bar.cpp
+++ b/ui/qt/main_status_bar.cpp
@@ -38,9 +38,9 @@
#include <QSplitter>
#ifdef HAVE_LIBPCAP
-#define DEF_READY_MESSAGE " Ready to load or capture"
+#define DEF_READY_MESSAGE QObject::tr(" Ready to load or capture")
#else
-#define DEF_READY_MESSAGE " Ready to load file"
+#define DEF_READY_MESSAGE QObject::tr(" Ready to load file")
#endif
// XXX - The GTK+ code assigns priorities to these and pushes/pops accordingly.
@@ -93,15 +93,15 @@ packets_bar_update(void)
/* Do we have any packets? */
if (cfile.count) {
- packetsStr.append(QString("Packets: %1 Displayed: %2 Marked: %3")
+ packetsStr.append(QString(QObject::tr("Packets: %1 Displayed: %2 Marked: %3"))
.arg(cfile.count)
.arg(cfile.displayed_count)
.arg(cfile.marked_count));
if(cfile.drops_known) {
- packetsStr.append(QString(" Dropped: %1").arg(cfile.drops));
+ packetsStr.append(QString(QObject::tr(" Dropped: %1")).arg(cfile.drops));
}
if(cfile.ignored_count > 0) {
- packetsStr.append(QString(" Ignored: %1").arg(cfile.ignored_count));
+ packetsStr.append(QString(QObject::tr(" Ignored: %1")).arg(cfile.ignored_count));
}
if(!cfile.is_tempfile) {
/* Loading an existing file */
@@ -112,7 +112,7 @@ packets_bar_update(void)
computed_elapsed%1000));
}
} else {
- packetsStr.append("No Packets");
+ packetsStr.append(QObject::tr("No Packets"));
}
cur_main_status_bar->pushPacketStatus(packetsStr);