diff options
author | Gerald Combs <gerald@wireshark.org> | 2016-07-01 10:35:22 -0700 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2016-07-02 15:04:55 +0000 |
commit | 3bb019f095b16055b85d4a2f5ec3b878a93a2f7d (patch) | |
tree | ff0e98ad9a50a0e277f950d21123b739a81487d9 | |
parent | 1f28e683f929b25db7dd08abf3fad646cc6191e7 (diff) |
Qt: Fixup byte view context menus
Shorten text similar to other context menus.
Change-Id: I8806ed4dddb6fc3c51ddbd4150d9090f5b2ca787
Reviewed-on: https://code.wireshark.org/review/16238
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
-rw-r--r-- | ui/qt/byte_view_text.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ui/qt/byte_view_text.cpp b/ui/qt/byte_view_text.cpp index bcbd1bbdac..993acc681a 100644 --- a/ui/qt/byte_view_text.cpp +++ b/ui/qt/byte_view_text.cpp @@ -26,6 +26,8 @@ #include <epan/charsets.h> +#include <wsutil/utf8_entities.h> + #include "color_utils.h" #include "wireshark_application.h" #include "ui/recent.h" @@ -74,7 +76,7 @@ ByteViewText::ByteViewText(QWidget *parent, tvbuff_t *tvb, proto_tree *tree, QTr if (recent.gui_bytes_view == BYTES_HEX) { action->setChecked(true); } - action = format_actions_->addAction(tr("Show bytes as bits")); + action = format_actions_->addAction(tr(UTF8_HORIZONTAL_ELLIPSIS "as bits")); action->setData(qVariantFromValue(BYTES_BITS)); action->setCheckable(true); if (recent.gui_bytes_view == BYTES_BITS) { @@ -86,13 +88,13 @@ ByteViewText::ByteViewText(QWidget *parent, tvbuff_t *tvb, proto_tree *tree, QTr ctx_menu_.addSeparator(); - action = encoding_actions_->addAction(tr("Show bytes as ASCII")); + action = encoding_actions_->addAction(tr(UTF8_HORIZONTAL_ELLIPSIS "as ASCII")); action->setData(qVariantFromValue(PACKET_CHAR_ENC_CHAR_ASCII)); action->setCheckable(true); if (encoding_ == PACKET_CHAR_ENC_CHAR_ASCII) { action->setChecked(true); } - action = encoding_actions_->addAction(tr("Show bytes as EBCDIC")); + action = encoding_actions_->addAction(tr(UTF8_HORIZONTAL_ELLIPSIS "as EBCDIC")); action->setData(qVariantFromValue(PACKET_CHAR_ENC_CHAR_EBCDIC)); action->setCheckable(true); if (encoding_ == PACKET_CHAR_ENC_CHAR_EBCDIC) { |