some error messages and rephrase some others.
svn path=/trunk/; revision=47787
}
else /* Should never happen!!! */
{
- simple_dialog(ESD_TYPE_ERROR,ESD_BTN_OK,"Unknown error in the key \"Type\" field!");
+ simple_dialog(ESD_TYPE_ERROR,ESD_BTN_OK,"Unknown error in the key \"Type\" field.");
}
g_string_free(new_type_string,TRUE);
}
else /* Should never happen!!! */
{
- simple_dialog(ESD_TYPE_ERROR,ESD_BTN_OK,"Unknown error in the key \"Type\" field!");
+ simple_dialog(ESD_TYPE_ERROR,ESD_BTN_OK,"Unknown error in the key \"Type\" field.");
}
g_string_free(new_type_string,TRUE);
}
else
{
- interface_name_lb = gtk_label_new("No airpcap interface found!");
+ interface_name_lb = gtk_label_new("Couldn't find an airpcap interface.");
gtk_widget_set_sensitive(main_box,FALSE);
}
wpcap_packet_close(adapter);
- label = gtk_label_new("Note: the accuracy of all of these values relies only on the network card driver!");
+ label = gtk_label_new("Some drivers may not provide accurate values.");
gtk_box_pack_start(GTK_BOX(main_vb), label, FALSE /*expand*/, FALSE /*fill*/, 0 /*padding*/);
/* Button row. */
/* couldn't even get the packet.dll version, must be a very old one or just not existing -> give up */
/* (this seems to be the case for 2.3 beta and all previous releases) */
simple_dialog(ESD_TYPE_WARN, ESD_BTN_OK,
- "%sCouldn't obtain WinPcap packet.dll version!%s"
- "\n\nThe WinPcap packet.dll is not installed or the version you use seems to be very old!"
- "\n\nPlease update/install WinPcap.",
+ "%sCouldn't obtain WinPcap packet.dll version.%s"
+ "\n\nThe WinPcap packet.dll is not installed or the version you use seems to be very old."
+ "\n\nPlease update or install WinPcap.",
simple_dialog_primary_start(), simple_dialog_primary_end());
return;
}
if (!version_ok) {
/* packet.dll version not known to us, warn user but try to continue */
dialog = simple_dialog(ESD_TYPE_WARN, ESD_BTN_OK | ESD_BTN_CANCEL,
- "%sUnknown WinPcap version might crash or fail!%s"
- "\n\nThe WinPcap packet.dll version \"%s\" is unknown if it supports required functions!"
- "\n\nOnly WinPcap versions 3.0 and 3.1 are known to work with this feature."
- "\n\nCrashes or unexpected behaviour might occur, you have been warned!"
+ "%sUnknown WinPcap version.%s"
+ "\n\nThe WinPcap packet.dll version \"%s\" is unknown. It may not"
+ "\nprovide functions that we need and might even crash."
"\n\nContinue anyway?",
simple_dialog_primary_start(), simple_dialog_primary_end(), version);
simple_dialog_set_cb(dialog, capture_if_details_open_answered_cb, iface);
if (ssl_session_key_count() < 1) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "No SSL Session Keys to export!");
+ "No SSL Session Keys to export.");
g_free(file);
return TRUE;
}
/* don't show up the dialog, if no data has to be saved */
if (keylist_len==0) {
/* shouldn't happen as the menu item should have been greyed out */
- simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "There are no SSL Session Keys to save!");
+ simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "There are no SSL Session Keys to save.");
return;
}
gtk_window_set_title(GTK_WINDOW(fs_w), "Wireshark: 0 Files in Set");
- gtk_label_set_text(GTK_LABEL(fs_dir_lb), "No capture file loaded!");
+ gtk_label_set_text(GTK_LABEL(fs_dir_lb), "No capture file loaded.");
row++;
}
if ((user_data->forward.saveinfo.error_type == TAP_RTP_WRONG_CODEC) ||
(user_data->reversed.saveinfo.error_type == TAP_RTP_WRONG_CODEC))
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "Can't save in a file: Unsupported codec!");
+ "Can't save in a file: Unsupported codec.");
else if ((user_data->forward.saveinfo.error_type == TAP_RTP_WRONG_LENGTH) ||
(user_data->reversed.saveinfo.error_type == TAP_RTP_WRONG_LENGTH))
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "Can't save in a file: Wrong length of captured packets!");
+ "Can't save in a file: Wrong length of captured packets.");
else if ((user_data->forward.saveinfo.error_type == TAP_RTP_SHORT_FRAME) ||
(user_data->reversed.saveinfo.error_type == TAP_RTP_SHORT_FRAME))
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "Can't save in a file: Not all data in all packets was captured!");
+ "Can't save in a file: Not all data in all packets was captured.");
else
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "Can't save in a file: File I/O problem!");
+ "Can't save in a file: File I/O problem.");
g_free(g_dest);
return TRUE; /* we're done */
}
(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON (both))))) {
if (user_data->forward.saveinfo.error_type == TAP_RTP_WRONG_CODEC)
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "Can't save forward direction in a file: Unsupported codec!");
+ "Can't save forward direction in a file: Unsupported codec.");
else if (user_data->forward.saveinfo.error_type == TAP_RTP_WRONG_LENGTH)
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "Can't save forward direction in a file: Wrong length of captured packets!");
+ "Can't save forward direction in a file: Wrong length of captured packets.");
else if (user_data->forward.saveinfo.error_type == TAP_RTP_SHORT_FRAME)
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "Can't save forward direction in a file: Not all data in all packets was captured!");
+ "Can't save forward direction in a file: Not all data in all packets was captured.");
else
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "Can't save forward direction in a file: File I/O problem!");
+ "Can't save forward direction in a file: File I/O problem.");
g_free(g_dest);
return TRUE; /* we're done */
}
(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON (both))))) {
if (user_data->reversed.saveinfo.error_type == TAP_RTP_WRONG_CODEC)
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "Can't save reversed direction in a file: Unsupported codec!");
+ "Can't save reversed direction in a file: Unsupported codec.");
else if (user_data->reversed.saveinfo.error_type == TAP_RTP_WRONG_LENGTH)
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "Can't save reversed direction in a file: Wrong length of captured packets!");
+ "Can't save reversed direction in a file: Wrong length of captured packets.");
else if (user_data->reversed.saveinfo.error_type == TAP_RTP_SHORT_FRAME)
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "Can't save reversed direction in a file: Not all data in all packets was captured!");
+ "Can't save reversed direction in a file: Not all data in all packets was captured.");
else if (user_data->reversed.saveinfo.error_type == TAP_RTP_NO_DATA)
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "Can't save reversed direction in a file: No IAX2 data!");
+ "Can't save reversed direction in a file: No IAX2 data.");
else
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "Can't save reversed direction in a file: File I/O problem!");
+ "Can't save reversed direction in a file: File I/O problem.");
g_free(g_dest);
return TRUE; /* we're done */
}
if (!copy_file(g_dest, channels, format, user_data)) {
/* XXX - report the error type! */
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "An error occurred while saving voice in a file!");
+ "An error occurred while saving voice in a file.");
g_free(g_dest);
return TRUE; /* we're done */
}
hfssrc = proto_registrar_get_byname(proto_field);
if (hfssrc == NULL) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "Bad field name!");
+ "Bad field name.");
return FALSE;
}
for (ptree_node = ptree_node->first_child;
hfinformation = proto_registrar_get_byname(proto_name);
if (hfinformation == NULL) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "Bad proto!");
+ "Bad proto.");
return FALSE;
}
ptree_node = ((proto_node *)protocol_tree)->first_child;
if (!ptree_node) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "No info!");
+ "No info.");
return FALSE;
}
return process_node(ptree_node, hfinformation, proto_field, p_result);
if (frame_matched != 1) {
epan_dissect_cleanup(&edt);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "You didn't choose a IAX2 packet!");
+ "Please select an IAX2 packet.");
return;
}
#if 0
/* check if it is Voice or MiniPacket */
if (!get_int_value_from_proto_tree(edt->tree, "iax2", "iax2.call", &ptype)) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "Please select a Voice packet!");
+ "Please select a Voice packet.");
return;
}
#endif
/* check if it is part of a Call */
if (edt.pi.circuit_id == 0) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "Please select a Call packet!");
+ "Please select a Call packet.");
return;
}
if (airpcap_if_list == NULL || g_list_length(airpcap_if_list) == 0){
if (err == CANT_GET_AIRPCAP_INTERFACE_LIST && err_str != NULL) {
- simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", "Failed to open Airpcap Adapters!");
+ simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", "Failed to open Airpcap Adapters.");
g_free(err_str);
}
airpcap_if_active = NULL;
}
}
} else {
- simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "No active AirPcap Adapter selected!");
+ simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "No active AirPcap Adapter selected.");
return;
}
airpcap_if_set_decryption_state(ad,curr_if->DecryptionOn);
/* Save configuration for the curr_if */
if(!airpcap_if_store_cur_config_as_adapter_default(ad)) {
- simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "Cannot save configuration!!!\nRemember that in order to store the configuration in the registry you have to:\n\n- Close all the airpcap-based applications.\n- Be sure to have administrative privileges.");
+ simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
+ "Unable to save configuration."
+ "\nIn order to store the configuration in the registry you"
+ "\nhave to close all other AirPcap-based applications and"
+ "\nhave Administrator privileges.");
}
airpcap_if_close(ad);
}
}
}
} else {
- simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "AirPcap Adapter Error!");
+ simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "AirPcap Adapter Error.");
return;
}
}
bv = get_notebook_bv_ptr(byte_nb_ptr_gbl);
if (bv == NULL) {
/* shouldn't happen */
- simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "Could not find the corresponding text window!");
+ simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "Could not find the corresponding text window.");
return;
}
#if 0 /* Not req'd: GtkFileChooserWidget currently being used won't return with a Null filename */
if (!file ||! *file) {
- simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "Please enter a filename!");
+ simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "Please enter a filename.");
g_free(file);
return TRUE;
}
bv = get_notebook_bv_ptr(byte_nb_ptr_gbl);
if (bv == NULL) {
/* shouldn't happen */
- simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "Could not find the corresponding text window!");
+ simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "Could not find the corresponding text window.");
g_free(file);
return TRUE;
}
if (data_p == NULL || start == -1 || start > end) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "No data selected to save!");
+ "No data selected to save.");
g_free(file);
return TRUE;
}
bv = get_notebook_bv_ptr(byte_nb_ptr_gbl);
if (bv == NULL) {
/* shouldn't happen */
- simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "Could not find the corresponding text window!");
+ simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "Could not find the corresponding text window.");
return;
}
start = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(bv), E_BYTE_VIEW_START_KEY));
data_p = get_byte_view_data_and_length(bv, &len);
if (data_p == NULL || start == -1 || start > end) {
- simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "No data selected to save!");
+ simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "No data selected to save.");
return;
}
* ((last_interval-interval)/user_data->dlg.dialog_graph.interval + 1))
+ left_x_border;
- if (user_data->dlg.dialog_graph.graph[i].items[interval/user_data->dlg.dialog_graph.interval].flags &
+ if (user_data->dlg.dialog_graph.graph[i].items[interval/user_data->dlg.dialog_graph.interval].flags &
(STAT_FLAG_WRONG_SEQ|STAT_FLAG_MARKER|STAT_FLAG_DUP_PKT)) {
- if (user_data->dlg.dialog_graph.graph[i].items[interval/user_data->dlg.dialog_graph.interval].flags &
+ if (user_data->dlg.dialog_graph.graph[i].items[interval/user_data->dlg.dialog_graph.interval].flags &
(STAT_FLAG_WRONG_SEQ|STAT_FLAG_DUP_PKT)) {
g_strlcpy(label_string, "x", sizeof(label_string));
} else {
if ((user_data->forward.saveinfo.error_type == TAP_RTP_WRONG_CODEC)
|| (user_data->reversed.saveinfo.error_type == TAP_RTP_WRONG_CODEC))
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "Can't save in a file: Unsupported codec!");
+ "Can't save in a file: Unsupported codec.");
else if ((user_data->forward.saveinfo.error_type == TAP_RTP_WRONG_LENGTH)
|| (user_data->reversed.saveinfo.error_type == TAP_RTP_WRONG_LENGTH))
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "Can't save in a file: Wrong length of captured packets!");
+ "Can't save in a file: Wrong length of captured packets.");
else if ((user_data->forward.saveinfo.error_type == TAP_RTP_PADDING_ERROR)
|| (user_data->reversed.saveinfo.error_type == TAP_RTP_PADDING_ERROR))
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "Can't save in a file: RTP data with padding!");
+ "Can't save in a file: RTP data with padding.");
else if ((user_data->forward.saveinfo.error_type == TAP_RTP_SHORT_FRAME)
|| (user_data->reversed.saveinfo.error_type == TAP_RTP_SHORT_FRAME))
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "Can't save in a file: Not all data in all packets was captured!");
+ "Can't save in a file: Not all data in all packets was captured.");
else
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "Can't save in a file: File I/O problem!");
+ "Can't save in a file: File I/O problem.");
g_free(g_dest);
return TRUE; /* we're done */
}
|| (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON (both))))) {
if (user_data->forward.saveinfo.error_type == TAP_RTP_WRONG_CODEC)
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "Can't save forward direction in a file: Unsupported codec!");
+ "Can't save forward direction in a file: Unsupported codec.");
else if (user_data->forward.saveinfo.error_type == TAP_RTP_WRONG_LENGTH)
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "Can't save forward direction in a file: Wrong length of captured packets!");
+ "Can't save forward direction in a file: Wrong length of captured packets.");
else if (user_data->forward.saveinfo.error_type == TAP_RTP_PADDING_ERROR)
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "Can't save forward direction in a file: RTP data with padding!");
+ "Can't save forward direction in a file: RTP data with padding.");
else if (user_data->forward.saveinfo.error_type == TAP_RTP_SHORT_FRAME)
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "Can't save forward direction in a file: Not all data in all packets was captured!");
+ "Can't save forward direction in a file: Not all data in all packets was captured.");
else
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "Can't save forward direction in a file: File I/O problem!");
+ "Can't save forward direction in a file: File I/O problem.");
g_free(g_dest);
return TRUE; /* we're done */
}
|| (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON (both))))) {
if (user_data->reversed.saveinfo.error_type == TAP_RTP_WRONG_CODEC)
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "Can't save reversed direction in a file: Unsupported codec!");
+ "Can't save reversed direction in a file: Unsupported codec.");
else if (user_data->reversed.saveinfo.error_type == TAP_RTP_WRONG_LENGTH)
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "Can't save reversed direction in a file: Wrong length of captured packets!");
+ "Can't save reversed direction in a file: Wrong length of captured packets.");
else if (user_data->reversed.saveinfo.error_type == TAP_RTP_PADDING_ERROR)
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "Can't save reversed direction in a file: RTP data with padding!");
+ "Can't save reversed direction in a file: RTP data with padding.");
else if (user_data->reversed.saveinfo.error_type == TAP_RTP_SHORT_FRAME)
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "Can't save reversed direction in a file: Not all data in all packets was captured!");
+ "Can't save reversed direction in a file: Not all data in all packets was captured.");
else if (user_data->reversed.saveinfo.error_type == TAP_RTP_NO_DATA)
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "Can't save reversed direction in a file: No RTP data!");
+ "Can't save reversed direction in a file: No RTP data.");
else
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "Can't save reversed direction in a file: File I/O problem!");
+ "Can't save reversed direction in a file: File I/O problem.");
g_free(g_dest);
return TRUE; /* we're done */
}
if (!copy_file(g_dest, channels, format, user_data)) {
/* XXX - report the error type! */
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "An error occurred while saving voice in a file!");
+ "An error occurred while saving voice in a file.");
g_free(g_dest);
return TRUE; /* we're done */
}
if (frame_matched != TRUE) {
epan_dissect_cleanup(&edt);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "You didn't choose a RTP packet!");
+ "Please select an RTP packet.");
return;
}
/* check if it is RTP Version 2 */
if (!get_int_value_from_proto_tree(edt.tree, "rtp", "rtp.version", &version_fwd) || version_fwd != 2) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "RTP Version != 2 isn't supported!");
+ "Only RTP version 2 is supported.");
return;
}
/* now we need the SSRC value of the current frame */
if (!get_int_value_from_proto_tree(edt.tree, "rtp", "rtp.ssrc", &ssrc_fwd)) {
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "SSRC value couldn't be found!");
+ "SSRC value not found.");
return;
}
if (frame_matched != 1) {
epan_dissect_cleanup(&edt);
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "Please choose an SCTP packet!");
+ "Please choose an SCTP packet.");
return;
}
}
if (!frame_found)
- simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "Assoc not found!");
+ simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "Assoc not found.");
}
void
static void draw_sack_graph(struct sctp_udata *u_data)
{
- GdkRGBA red_color = {1.0, 0.0, 0.0, 1.0};
- GdkRGBA green_color = {0.0, 1.0, 0.0, 1.0};
+ GdkRGBA red_color = {1.0, 0.0, 0.0, 1.0};
+ GdkRGBA green_color = {0.0, 1.0, 0.0, 1.0};
gint diff;
GPtrArray *array = NULL;
guint32 i, size = 0, start=0, end;
LEFT_BORDER+u_data->io->offset+u_data->io->x_interval*diff+0.5,
u_data->io->surface_height-BOTTOM_BORDER-u_data->io->offset-((SUB_32(end,min_tsn))*u_data->io->y_interval)+0.5);
cairo_stroke(cr);
- cairo_destroy(cr);
+ cairo_destroy(cr);
if (more == TRUE)
{
#if GTK_CHECK_VERSION(2,22,0)
cairo_line_to(cr, u_data->io->surface_width - RIGHT_BORDER + u_data->io->offset - 5.5, u_data->io->surface_height - BOTTOM_BORDER + 5.5);
cairo_stroke(cr);
cairo_destroy(cr);
-
+
u_data->io->axis_width = u_data->io->surface_width - LEFT_BORDER - RIGHT_BORDER - u_data->io->offset;
if(u_data->io->tmp_width>0){
}
else
{
- simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "Please draw a rectangle around the area you want to zoom in!");
+ simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "Please draw a rectangle around the area you want to zoom in.");
}
}
}
else
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
- "No errors found!");
+ "No errors found.");
}
guint8 type;
guint32 tsnumber, j;
gint xvalue, yvalue;
- GdkRGBA red_color = {1.0, 0.0, 0.0, 1.0};
+ GdkRGBA red_color = {1.0, 0.0, 0.0, 1.0};
GdkRGBA green_color = {0.0, 1.0, 0.0, 1.0};
GdkRGBA blue_color = {0.0, 0.0, 1.0, 1.0};
struct nr_sack_chunk_header *nr_sack_header;
}
else
{
- simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "Please draw a rectangle around the area you want to zoom in!");
+ simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "Please draw a rectangle around the area you want to zoom in.");
}
}