diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2012-03-07 10:16:33 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2012-03-07 10:16:33 +0000 |
commit | fe840481ec6960030e46562f8176f01065c90e4b (patch) | |
tree | 3f2ee3f8d3716afd6ea9b596aa932f22221d7f76 /ui/qt/proto_tree.cpp | |
parent | 9581065b3fa4ea94e0a6fe189cb471a93c6e4d79 (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/proto_tree.cpp')
-rw-r--r-- | ui/qt/proto_tree.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/qt/proto_tree.cpp b/ui/qt/proto_tree.cpp index 4d7b5d424e..ef8ed839da 100644 --- a/ui/qt/proto_tree.cpp +++ b/ui/qt/proto_tree.cpp @@ -142,7 +142,7 @@ proto_tree_draw_node(proto_node *node, gpointer data) ProtoTree::ProtoTree(QWidget *parent) : QTreeWidget(parent) { - setAccessibleName("Packet details"); + setAccessibleName(tr("Packet details")); setFont(get_monospace_font()); connect(this, SIGNAL(currentItemChanged(QTreeWidgetItem*, QTreeWidgetItem*)), @@ -184,9 +184,9 @@ void ProtoTree::updateSelectionStatus(QTreeWidgetItem* item) { finfo_length = fi->length + fi->appendix_length; if (finfo_length == 1) { - itemInfo.append(", 1 byte"); + itemInfo.append(tr(", 1 byte")); } else if (finfo_length > 1) { - itemInfo.append(QString(", %1 bytes").arg(finfo_length)); + itemInfo.append(QString(tr(", %1 bytes")).arg(finfo_length)); } emit protoItemUnselected(); |