From 25f5647eeebb08a309cddbecfa97a98a60e7f662 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Wed, 29 Mar 2006 10:45:18 +0000 Subject: [PATCH] app/plug-in/plug-in-message.c app/plug-in/plug-in-params.c string review. 2006-03-29 Sven Neumann * app/plug-in/plug-in-message.c * app/plug-in/plug-in-params.c * app/plug-in/plug-in.c: string review. --- ChangeLog | 6 ++++++ app/plug-in/gimpplugin-message.c | 16 ++++++++-------- app/plug-in/gimpplugin.c | 8 ++++---- app/plug-in/plug-in-message.c | 16 ++++++++-------- app/plug-in/plug-in-params.c | 14 +++++++------- app/plug-in/plug-in.c | 8 ++++---- 6 files changed, 37 insertions(+), 31 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6fab556631..6b99ca794f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-03-29 Sven Neumann + + * app/plug-in/plug-in-message.c + * app/plug-in/plug-in-params.c + * app/plug-in/plug-in.c: string review. + 2006-03-29 Tor Lillqvist * plug-ins/common/winprint.c (query): Make it compile again, add diff --git a/app/plug-in/gimpplugin-message.c b/app/plug-in/gimpplugin-message.c index ec2b8be07c..af5829a736 100644 --- a/app/plug-in/gimpplugin-message.c +++ b/app/plug-in/gimpplugin-message.c @@ -94,7 +94,7 @@ plug_in_handle_message (PlugIn *plug_in, case GP_CONFIG: g_message ("Plug-In \"%s\"\n(%s)\n\n" - "sent a CONFIG message (should not happen)", + "sent a CONFIG message. This should not happen.", gimp_filename_to_utf8 (plug_in->name), gimp_filename_to_utf8 (plug_in->prog)); plug_in_close (plug_in, TRUE); @@ -106,7 +106,7 @@ plug_in_handle_message (PlugIn *plug_in, case GP_TILE_ACK: g_message ("Plug-In \"%s\"\n(%s)\n\n" - "sent a TILE_ACK message (should not happen)", + "sent a TILE_ACK message. This should not happen.", gimp_filename_to_utf8 (plug_in->name), gimp_filename_to_utf8 (plug_in->prog)); plug_in_close (plug_in, TRUE); @@ -114,7 +114,7 @@ plug_in_handle_message (PlugIn *plug_in, case GP_TILE_DATA: g_message ("Plug-In \"%s\"\n(%s)\n\n" - "sent a TILE_DATA message (should not happen)", + "sent a TILE_DATA message. This should not happen.", gimp_filename_to_utf8 (plug_in->name), gimp_filename_to_utf8 (plug_in->prog)); plug_in_close (plug_in, TRUE); @@ -130,7 +130,7 @@ plug_in_handle_message (PlugIn *plug_in, case GP_TEMP_PROC_RUN: g_message ("Plug-In \"%s\"\n(%s)\n\n" - "sent a TEMP_PROC_RUN message (should not happen)", + "sent a TEMP_PROC_RUN message. This should not happen.", gimp_filename_to_utf8 (plug_in->name), gimp_filename_to_utf8 (plug_in->prog)); plug_in_close (plug_in, TRUE); @@ -562,7 +562,7 @@ plug_in_handle_temp_proc_return (PlugIn *plug_in, { g_message ("Plug-In \"%s\"\n(%s)\n\n" "sent a TEMP_PROC_RETURN message while not running " - "a temp proc (should not happen)", + "a temporary procedure. This should not happen.", gimp_filename_to_utf8 (plug_in->name), gimp_filename_to_utf8 (plug_in->prog)); plug_in_close (plug_in, TRUE); @@ -829,7 +829,7 @@ plug_in_handle_extension_ack (PlugIn *plug_in) { g_message ("Plug-In \"%s\"\n(%s)\n\n" "sent an EXTENSION_ACK message while not being started " - "as extension (should not happen)", + "as an extension. This should not happen.", gimp_filename_to_utf8 (plug_in->name), gimp_filename_to_utf8 (plug_in->prog)); plug_in_close (plug_in, TRUE); @@ -846,8 +846,8 @@ plug_in_handle_has_init (PlugIn *plug_in) else { g_message ("Plug-In \"%s\"\n(%s)\n\n" - "sent an HAS_INIT message while not in query() " - "(should not happen)", + "sent an HAS_INIT message while not in query(). " + "This should not happen.", gimp_filename_to_utf8 (plug_in->name), gimp_filename_to_utf8 (plug_in->prog)); plug_in_close (plug_in, TRUE); diff --git a/app/plug-in/gimpplugin.c b/app/plug-in/gimpplugin.c index 1922474e5a..1a8e3d0204 100644 --- a/app/plug-in/gimpplugin.c +++ b/app/plug-in/gimpplugin.c @@ -363,7 +363,7 @@ plug_in_open (PlugIn *plug_in) */ if ((pipe (my_read) == -1) || (pipe (my_write) == -1)) { - g_message ("Unable to run Plug-In \"%s\"\n(%s)\n\npipe() failed: %s", + g_message ("Unable to run plug-in \"%s\"\n(%s)\n\npipe() failed: %s", gimp_filename_to_utf8 (plug_in->name), gimp_filename_to_utf8 (plug_in->prog), g_strerror (errno)); @@ -473,7 +473,7 @@ plug_in_open (PlugIn *plug_in) &plug_in->pid, &error)) { - g_message ("Unable to run Plug-In \"%s\"\n(%s)\n\n%s", + g_message ("Unable to run plug-in \"%s\"\n(%s)\n\n%s", gimp_filename_to_utf8 (plug_in->name), gimp_filename_to_utf8 (plug_in->prog), error->message); @@ -750,8 +750,8 @@ plug_in_recv_message (GIOChannel *channel, } if (! got_message) - g_message (_("Plug-In crashed: \"%s\"\n(%s)\n\n" - "The dying Plug-In may have messed up GIMP's internal state. " + g_message (_("Plug-in crashed: \"%s\"\n(%s)\n\n" + "The dying plug-in may have messed up GIMP's internal state. " "You may want to save your images and restart GIMP " "to be on the safe side."), gimp_filename_to_utf8 (plug_in->name), diff --git a/app/plug-in/plug-in-message.c b/app/plug-in/plug-in-message.c index ec2b8be07c..af5829a736 100644 --- a/app/plug-in/plug-in-message.c +++ b/app/plug-in/plug-in-message.c @@ -94,7 +94,7 @@ plug_in_handle_message (PlugIn *plug_in, case GP_CONFIG: g_message ("Plug-In \"%s\"\n(%s)\n\n" - "sent a CONFIG message (should not happen)", + "sent a CONFIG message. This should not happen.", gimp_filename_to_utf8 (plug_in->name), gimp_filename_to_utf8 (plug_in->prog)); plug_in_close (plug_in, TRUE); @@ -106,7 +106,7 @@ plug_in_handle_message (PlugIn *plug_in, case GP_TILE_ACK: g_message ("Plug-In \"%s\"\n(%s)\n\n" - "sent a TILE_ACK message (should not happen)", + "sent a TILE_ACK message. This should not happen.", gimp_filename_to_utf8 (plug_in->name), gimp_filename_to_utf8 (plug_in->prog)); plug_in_close (plug_in, TRUE); @@ -114,7 +114,7 @@ plug_in_handle_message (PlugIn *plug_in, case GP_TILE_DATA: g_message ("Plug-In \"%s\"\n(%s)\n\n" - "sent a TILE_DATA message (should not happen)", + "sent a TILE_DATA message. This should not happen.", gimp_filename_to_utf8 (plug_in->name), gimp_filename_to_utf8 (plug_in->prog)); plug_in_close (plug_in, TRUE); @@ -130,7 +130,7 @@ plug_in_handle_message (PlugIn *plug_in, case GP_TEMP_PROC_RUN: g_message ("Plug-In \"%s\"\n(%s)\n\n" - "sent a TEMP_PROC_RUN message (should not happen)", + "sent a TEMP_PROC_RUN message. This should not happen.", gimp_filename_to_utf8 (plug_in->name), gimp_filename_to_utf8 (plug_in->prog)); plug_in_close (plug_in, TRUE); @@ -562,7 +562,7 @@ plug_in_handle_temp_proc_return (PlugIn *plug_in, { g_message ("Plug-In \"%s\"\n(%s)\n\n" "sent a TEMP_PROC_RETURN message while not running " - "a temp proc (should not happen)", + "a temporary procedure. This should not happen.", gimp_filename_to_utf8 (plug_in->name), gimp_filename_to_utf8 (plug_in->prog)); plug_in_close (plug_in, TRUE); @@ -829,7 +829,7 @@ plug_in_handle_extension_ack (PlugIn *plug_in) { g_message ("Plug-In \"%s\"\n(%s)\n\n" "sent an EXTENSION_ACK message while not being started " - "as extension (should not happen)", + "as an extension. This should not happen.", gimp_filename_to_utf8 (plug_in->name), gimp_filename_to_utf8 (plug_in->prog)); plug_in_close (plug_in, TRUE); @@ -846,8 +846,8 @@ plug_in_handle_has_init (PlugIn *plug_in) else { g_message ("Plug-In \"%s\"\n(%s)\n\n" - "sent an HAS_INIT message while not in query() " - "(should not happen)", + "sent an HAS_INIT message while not in query(). " + "This should not happen.", gimp_filename_to_utf8 (plug_in->name), gimp_filename_to_utf8 (plug_in->prog)); plug_in_close (plug_in, TRUE); diff --git a/app/plug-in/plug-in-params.c b/app/plug-in/plug-in-params.c index 03465bde27..4f70fcae0f 100644 --- a/app/plug-in/plug-in-params.c +++ b/app/plug-in/plug-in-params.c @@ -143,7 +143,7 @@ plug_in_params_to_args (GPParam *params, args[i].value.pdb_color = params[i].data.d_color; break; case GIMP_PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message ("the \"region\" argument type is not supported"); break; case GIMP_PDB_DISPLAY: args[i].value.pdb_int = params[i].data.d_display; @@ -295,7 +295,7 @@ plug_in_args_to_params (Argument *args, params[i].data.d_color = args[i].value.pdb_color; break; case GIMP_PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message ("the \"region\" argument type is not supported"); break; case GIMP_PDB_DISPLAY: params[i].data.d_display = args[i].value.pdb_int; @@ -409,7 +409,7 @@ plug_in_params_destroy (GPParam *params, case GIMP_PDB_COLOR: break; case GIMP_PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message ("the \"region\" argument type is not supported"); break; case GIMP_PDB_DISPLAY: case GIMP_PDB_IMAGE: @@ -511,7 +511,7 @@ plug_in_proc_args_check (const gchar *plug_in_name, "Plug-In \"%s\"\n(%s)\n\n" "attempted to install %s procedure \"%s\" " "which does not take the standard %s Plug-In " - "args.\n" + "arguments.\n" "(INT32)", gimp_filename_to_utf8 (plug_in_name), gimp_filename_to_utf8 (plug_in_prog), @@ -530,7 +530,7 @@ plug_in_proc_args_check (const gchar *plug_in_name, "Plug-In \"%s\"\n(%s)\n\n" "attempted to install procedure \"%s\" " "which does not take the standard Plug-In " - "args.\n" + "arguments.\n" "(INT32, STRING, STRING)", gimp_filename_to_utf8 (plug_in_name), gimp_filename_to_utf8 (plug_in_prog), @@ -551,7 +551,7 @@ plug_in_proc_args_check (const gchar *plug_in_name, "Plug-In \"%s\"\n(%s)\n\n" "attempted to install procedure \"%s\" " "which does not take the standard Plug-In " - "args.\n" + "arguments.\n" "(INT32, IMAGE, DRAWABLE, STRING, STRING)", gimp_filename_to_utf8 (plug_in_name), gimp_filename_to_utf8 (plug_in_prog), @@ -573,7 +573,7 @@ plug_in_proc_args_check (const gchar *plug_in_name, "Plug-In \"%s\"\n(%s)\n\n" "attempted to install %s procedure \"%s\" " "which does not take the standard %s Plug-In " - "args.\n" + "arguments.\n" "(INT32)", gimp_filename_to_utf8 (plug_in_name), gimp_filename_to_utf8 (plug_in_prog), diff --git a/app/plug-in/plug-in.c b/app/plug-in/plug-in.c index 1922474e5a..1a8e3d0204 100644 --- a/app/plug-in/plug-in.c +++ b/app/plug-in/plug-in.c @@ -363,7 +363,7 @@ plug_in_open (PlugIn *plug_in) */ if ((pipe (my_read) == -1) || (pipe (my_write) == -1)) { - g_message ("Unable to run Plug-In \"%s\"\n(%s)\n\npipe() failed: %s", + g_message ("Unable to run plug-in \"%s\"\n(%s)\n\npipe() failed: %s", gimp_filename_to_utf8 (plug_in->name), gimp_filename_to_utf8 (plug_in->prog), g_strerror (errno)); @@ -473,7 +473,7 @@ plug_in_open (PlugIn *plug_in) &plug_in->pid, &error)) { - g_message ("Unable to run Plug-In \"%s\"\n(%s)\n\n%s", + g_message ("Unable to run plug-in \"%s\"\n(%s)\n\n%s", gimp_filename_to_utf8 (plug_in->name), gimp_filename_to_utf8 (plug_in->prog), error->message); @@ -750,8 +750,8 @@ plug_in_recv_message (GIOChannel *channel, } if (! got_message) - g_message (_("Plug-In crashed: \"%s\"\n(%s)\n\n" - "The dying Plug-In may have messed up GIMP's internal state. " + g_message (_("Plug-in crashed: \"%s\"\n(%s)\n\n" + "The dying plug-in may have messed up GIMP's internal state. " "You may want to save your images and restart GIMP " "to be on the safe side."), gimp_filename_to_utf8 (plug_in->name),