Replace "n/a" with an em dash.
authorGerald Combs <gerald@wireshark.org>
Fri, 24 Feb 2017 20:20:51 +0000 (12:20 -0800)
committerAnders Broman <a.broman58@gmail.com>
Sat, 25 Feb 2017 06:32:17 +0000 (06:32 +0000)
Replace occurrences of "n/a" with an em dash. It matches what we do
elsewhere and reduces the need for translation.

Change-Id: Ib5b63be765b7da9ae3e66ab19bd25cb497fd722d
Reviewed-on: https://code.wireshark.org/review/20267
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
ui/qt/capture_file_properties_dialog.cpp
ui/qt/gsm_map_summary_dialog.cpp
ui/qt/mtp3_summary_dialog.cpp

index 474e0edf5739bf27d507569d72e5a440849b3c55..0cf0404fd03ead48ae30fa402064e45741603ae4 100644 (file)
@@ -27,6 +27,7 @@
 #include "summary.h"
 
 #include "wsutil/str_util.h"
+#include "wsutil/utf8_entities.h"
 #include "ws_version_info.h"
 
 #include "qt_ui_utils.h"
@@ -357,8 +358,7 @@ QString CaptureFilePropertiesDialog::summaryToHtml()
         << table_hheader25_tmpl.arg(tr("Marked"))
         << table_row_end;
 
-    // TRANSLATOR Abbreviation for "not applicable"
-    QString n_a = tr("N/A");
+    QString n_a = UTF8_EM_DASH;
     QString captured_str, displayed_str, marked_str;
 
     // Packets
index 3265068e941fe5799c0fbfedd93c915144c466fd..4b8c50747d9adb39aeb1a4866f8404e1ffab1c32 100644 (file)
@@ -38,6 +38,8 @@
 #include <epan/asn1.h>
 #include <epan/dissectors/packet-gsm_map.h>
 
+#include "wsutil/utf8_entities.h"
+
 #include "ui/capture_globals.h"
 #include "ui/simple_dialog.h"
 
@@ -184,8 +186,7 @@ QString GsmMapSummaryDialog::summaryToHtml()
 
     out << table_end;
 
-    // TRANSLATOR Abbreviation for "not applicable"
-    QString n_a = tr("N/A");
+    QString n_a = UTF8_EM_DASH;
     QString invoke_rate_str, result_rate_str, total_rate_str;
     QString invoke_avg_size_str, result_avg_size_str, total_avg_size_str;
 
index 5c43e1ccfdc95e9805a34a33030dfa93f420f0a4..62fcc7107cb43fbcc43985a5c89a12a1ef25b1ec 100644 (file)
@@ -37,6 +37,8 @@
 
 #include <epan/dissectors/packet-mtp3.h>
 
+#include "wsutil/utf8_entities.h"
+
 #include "ui/capture_globals.h"
 #include "ui/simple_dialog.h"
 
@@ -189,8 +191,7 @@ QString Mtp3SummaryDialog::summaryToHtml()
 
     out << table_end;
 
-    // TRANSLATOR Abbreviation for "not applicable"
-    QString n_a = tr("N/A");
+    QString n_a = UTF8_EM_DASH;
     int total_msus = 0;
     int total_bytes = 0;
     double seconds = summary.stop_time - summary.start_time;