mirror of https://github.com/GNOME/gimp.git
Lots of ii8n stuff here and some additions to the de.po. Applied
Wed Oct 14 17:46:15 EDT 1998 Adrian Likins <adrian@gimp.org> * app/*, po/de.po, de/POTFILES.in, libgimp/gimpintl.h: Lots of ii8n stuff here and some additions to the de.po. Applied gimp-egger-981005-1 ,gimp-egger-981006-1, gimp-egger-981007-1, gimp-egger-981008-1, gimp-egger-981009-1.patch, gimp-egger-981010-1.patch * plug-in/guillotine/guillotine.c: added the coordinates of the split images from the original image to the title. ie foo.jpg (0,0) for the image in the topleft. * plug-in/script-fu/scripts/neon-logo.scm, perspective-shadow.scm, predator.scm,rendermap.scm, ripply-anim.scm, select_to_image.scm,swirltile.scm, xach-effect.scm: updated scripts to use new script-fu stuff wooo boy! a big un! in testing this, it looks like some of the po files are busted. but the code stuff seems okay. -adrian
This commit is contained in:
parent
ae9442e601
commit
25721826d0
17
ChangeLog
17
ChangeLog
|
@ -1,3 +1,20 @@
|
|||
Wed Oct 14 17:46:15 EDT 1998 Adrian Likins <adrian@gimp.org>
|
||||
|
||||
* app/*, po/de.po, de/POTFILES.in, libgimp/gimpintl.h:
|
||||
Lots of ii8n stuff here and some additions to the de.po.
|
||||
Applied gimp-egger-981005-1 ,gimp-egger-981006-1,
|
||||
gimp-egger-981007-1, gimp-egger-981008-1,
|
||||
gimp-egger-981009-1.patch, gimp-egger-981010-1.patch
|
||||
|
||||
* plug-in/guillotine/guillotine.c: added the coordinates
|
||||
of the split images from the original image to the title.
|
||||
ie foo.jpg (0,0) for the image in the topleft.
|
||||
|
||||
* plug-in/script-fu/scripts/neon-logo.scm,
|
||||
perspective-shadow.scm, predator.scm,rendermap.scm,
|
||||
ripply-anim.scm, select_to_image.scm,swirltile.scm,
|
||||
xach-effect.scm: updated scripts to use new script-fu stuff
|
||||
|
||||
Wed Oct 14 22:58:04 BST 1998 Austin Donnelly <austin@greenend.org.uk>
|
||||
|
||||
* app/color_select.c: fix silly bug with off-by-one error in
|
||||
|
|
|
@ -203,7 +203,7 @@ about_dialog_create (int timeout)
|
|||
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, TRUE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
label = gtk_label_new (_("Spencer Kimball and Peter Mattis"));
|
||||
label = gtk_label_new (_("Spencer Kimball & Peter Mattis"));
|
||||
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, TRUE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
|
|
@ -67,6 +67,8 @@
|
|||
#include "tools.h"
|
||||
#include "undo.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
GtkWidget * shell;
|
||||
|
@ -360,7 +362,7 @@ select_border_cmd_callback (GtkWidget *widget,
|
|||
gdisp = gdisplay_active ();
|
||||
|
||||
sprintf (initial, "%d", gimage_mask_border_radius);
|
||||
query_string_box ("Border Selection", "Border selection by:", initial,
|
||||
query_string_box (_("Border Selection"), _("Border selection by:"), initial,
|
||||
gimage_mask_border_callback, gdisp->gimage);
|
||||
}
|
||||
|
||||
|
@ -374,7 +376,7 @@ select_feather_cmd_callback (GtkWidget *widget,
|
|||
gdisp = gdisplay_active ();
|
||||
|
||||
sprintf (initial, "%f", gimage_mask_feather_radius);
|
||||
query_string_box ("Feather Selection", "Feather selection by:", initial,
|
||||
query_string_box (_("Feather Selection"), _("Feather selection by:"), initial,
|
||||
gimage_mask_feather_callback, gdisp->gimage);
|
||||
}
|
||||
|
||||
|
@ -388,7 +390,7 @@ select_grow_cmd_callback (GtkWidget *widget,
|
|||
gdisp = gdisplay_active ();
|
||||
|
||||
sprintf (initial, "%d", gimage_mask_grow_pixels);
|
||||
query_string_box ("Grow Selection", "Grow selection by:", initial,
|
||||
query_string_box (_("Grow Selection"), _("Grow selection by:"), initial,
|
||||
gimage_mask_grow_callback, gdisp->gimage);
|
||||
}
|
||||
|
||||
|
@ -402,7 +404,7 @@ select_shrink_cmd_callback (GtkWidget *widget,
|
|||
gdisp = gdisplay_active ();
|
||||
|
||||
sprintf (initial, "%d", gimage_mask_shrink_pixels);
|
||||
query_string_box ("Shrink Selection", "Shrink selection by:", initial,
|
||||
query_string_box (_("Shrink Selection"), _("Shrink selection by:"), initial,
|
||||
gimage_mask_shrink_callback, gdisp->gimage);
|
||||
}
|
||||
|
||||
|
@ -736,8 +738,8 @@ image_resize_cmd_callback (GtkWidget *widget,
|
|||
{
|
||||
static ActionAreaItem action_items[2] =
|
||||
{
|
||||
{ "OK", image_resize_callback, NULL, NULL },
|
||||
{ "Cancel", image_cancel_callback, NULL, NULL }
|
||||
{ N_("OK"), image_resize_callback, NULL, NULL },
|
||||
{ N_("Cancel"), image_cancel_callback, NULL, NULL }
|
||||
};
|
||||
GDisplay * gdisp;
|
||||
GtkWidget *vbox;
|
||||
|
@ -753,7 +755,7 @@ image_resize_cmd_callback (GtkWidget *widget,
|
|||
/* the dialog */
|
||||
image_resize->shell = gtk_dialog_new ();
|
||||
gtk_window_set_wmclass (GTK_WINDOW (image_resize->shell), "image_resize", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (image_resize->shell), "Image Resize");
|
||||
gtk_window_set_title (GTK_WINDOW (image_resize->shell), _("Image Resize"));
|
||||
gtk_window_set_policy (GTK_WINDOW (image_resize->shell), FALSE, FALSE, TRUE);
|
||||
gtk_window_position (GTK_WINDOW (image_resize->shell), GTK_WIN_POS_MOUSE);
|
||||
|
||||
|
@ -783,8 +785,8 @@ image_scale_cmd_callback (GtkWidget *widget,
|
|||
{
|
||||
static ActionAreaItem action_items[2] =
|
||||
{
|
||||
{ "OK", image_scale_callback, NULL, NULL },
|
||||
{ "Cancel", image_cancel_callback, NULL, NULL }
|
||||
{ N_("OK"), image_scale_callback, NULL, NULL },
|
||||
{ N_("Cancel"), image_cancel_callback, NULL, NULL }
|
||||
};
|
||||
GDisplay * gdisp;
|
||||
GtkWidget *vbox;
|
||||
|
@ -800,7 +802,7 @@ image_scale_cmd_callback (GtkWidget *widget,
|
|||
/* the dialog */
|
||||
image_scale->shell = gtk_dialog_new ();
|
||||
gtk_window_set_wmclass (GTK_WINDOW (image_scale->shell), "image_scale", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (image_scale->shell), "Image Scale");
|
||||
gtk_window_set_title (GTK_WINDOW (image_scale->shell), _("Image Scale"));
|
||||
gtk_window_set_policy (GTK_WINDOW (image_scale->shell), FALSE, FALSE, TRUE);
|
||||
gtk_window_position (GTK_WINDOW (image_scale->shell), GTK_WIN_POS_MOUSE);
|
||||
|
||||
|
@ -1096,7 +1098,7 @@ image_resize_callback (GtkWidget *w,
|
|||
}
|
||||
else
|
||||
{
|
||||
g_message ("Resize Error: Both width and height must be greater than zero.");
|
||||
g_message (_("Resize Error: Both width and height must be greater than zero."));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -1126,7 +1128,7 @@ image_scale_callback (GtkWidget *w,
|
|||
}
|
||||
else
|
||||
{
|
||||
g_message ("Scale Error: Both width and height must be greater than zero.");
|
||||
g_message (_("Scale Error: Both width and height must be greater than zero."));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -59,6 +59,8 @@
|
|||
|
||||
#include "tile.h" /* ick. */
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#define SEPARATE_PROGRESS_BAR
|
||||
|
||||
|
||||
|
@ -161,17 +163,17 @@ static ProcArg progress_init_args[] =
|
|||
{
|
||||
{ PDB_STRING,
|
||||
"message",
|
||||
"Message to use in the progress dialog." },
|
||||
N_("Message to use in the progress dialog.") },
|
||||
{ PDB_INT32,
|
||||
"gdisplay",
|
||||
"GDisplay to update progressbar in, or -1 for a seperate window" }
|
||||
N_("GDisplay to update progressbar in, or -1 for a seperate window") }
|
||||
};
|
||||
|
||||
static ProcRecord progress_init_proc =
|
||||
{
|
||||
"gimp_progress_init",
|
||||
"Initializes the progress bar for the current plug-in",
|
||||
"Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.",
|
||||
N_("Initializes the progress bar for the current plug-in"),
|
||||
N_("Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -187,14 +189,14 @@ static ProcArg progress_update_args[] =
|
|||
{
|
||||
{ PDB_FLOAT,
|
||||
"percentage",
|
||||
"Percentage of progress completed" }
|
||||
N_("Percentage of progress completed") }
|
||||
};
|
||||
|
||||
static ProcRecord progress_update_proc =
|
||||
{
|
||||
"gimp_progress_update",
|
||||
"Updates the progress bar for the current plug-in",
|
||||
"Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.",
|
||||
N_("Updates the progress bar for the current plug-in"),
|
||||
N_("Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -211,14 +213,14 @@ static ProcArg message_args[] =
|
|||
{
|
||||
{ PDB_STRING,
|
||||
"message",
|
||||
"Message to display in the dialog." }
|
||||
N_("Message to display in the dialog.") }
|
||||
};
|
||||
|
||||
static ProcRecord message_proc =
|
||||
{
|
||||
"gimp_message",
|
||||
"Displays a dialog box with a message",
|
||||
"Displays a dialog box with a message. Useful for status or error reporting.",
|
||||
N_("Displays a dialog box with a message"),
|
||||
N_("Displays a dialog box with a message. Useful for status or error reporting."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -235,14 +237,14 @@ static ProcArg message_handler_get_out_args[] =
|
|||
{
|
||||
{ PDB_INT32,
|
||||
"handler",
|
||||
"the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }" }
|
||||
N_("the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }") }
|
||||
};
|
||||
|
||||
static ProcRecord message_handler_get_proc =
|
||||
{
|
||||
"gimp_message_handler_get",
|
||||
"Returns the current state of where warning messages are displayed.",
|
||||
"This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.",
|
||||
N_("Returns the current state of where warning messages are displayed."),
|
||||
N_("This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."),
|
||||
"Manish Singh",
|
||||
"Manish Singh",
|
||||
"1998",
|
||||
|
@ -258,14 +260,14 @@ static ProcArg message_handler_set_args[] =
|
|||
{
|
||||
{ PDB_INT32,
|
||||
"handler",
|
||||
"the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }" }
|
||||
N_("the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }") }
|
||||
};
|
||||
|
||||
static ProcRecord message_handler_set_proc =
|
||||
{
|
||||
"gimp_message_handler_set",
|
||||
"Controls where warning messages are displayed.",
|
||||
"This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.",
|
||||
N_("Controls where warning messages are displayed."),
|
||||
N_("This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."),
|
||||
"Manish Singh",
|
||||
"Manish Singh",
|
||||
"1998",
|
||||
|
@ -281,15 +283,15 @@ static ProcArg plugin_temp_PDB_name_out_args[] =
|
|||
{
|
||||
{ PDB_STRING,
|
||||
"Temp name",
|
||||
"A unique temporary name for a temporary PDB entry name",
|
||||
N_("A unique temporary name for a temporary PDB entry name"),
|
||||
},
|
||||
};
|
||||
|
||||
static ProcRecord plugin_temp_PDB_name_proc =
|
||||
{
|
||||
"gimp_temp_PDB_name",
|
||||
"Generates a unique temporary PDB name",
|
||||
"This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name.",
|
||||
N_("Generates a unique temporary PDB name"),
|
||||
N_("This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name."),
|
||||
"Andy Thomas",
|
||||
"Andy Thomas",
|
||||
"1998",
|
||||
|
@ -340,13 +342,13 @@ plug_in_init ()
|
|||
{
|
||||
shm_ID = shmget (IPC_PRIVATE, TILE_WIDTH * TILE_HEIGHT * 4, IPC_CREAT | 0777);
|
||||
if (shm_ID == -1)
|
||||
g_message ("shmget failed...disabling shared memory tile transport\n");
|
||||
g_message (_("shmget failed...disabling shared memory tile transport\n"));
|
||||
else
|
||||
{
|
||||
shm_addr = (guchar*) shmat (shm_ID, 0, 0);
|
||||
if (shm_addr == (guchar*) -1)
|
||||
{
|
||||
g_message ("shmat failed...disabling shared memory tile transport\n");
|
||||
g_message (_("shmat failed...disabling shared memory tile transport\n"));
|
||||
shm_ID = -1;
|
||||
}
|
||||
|
||||
|
@ -372,14 +374,14 @@ plug_in_init ()
|
|||
else
|
||||
sprintf (filename, "%s/pluginrc", gimp_directory ());
|
||||
|
||||
app_init_update_status("Resource configuration", filename, -1);
|
||||
app_init_update_status(_("Resource configuration"), filename, -1);
|
||||
parse_gimprc_file (filename);
|
||||
|
||||
/* query any plug-ins that have changed since we last wrote out
|
||||
* the pluginrc file.
|
||||
*/
|
||||
tmp = plug_in_defs;
|
||||
app_init_update_status("Plug-ins", "", 0);
|
||||
app_init_update_status(_("Plug-ins"), "", 0);
|
||||
nplugins = g_slist_length(tmp);
|
||||
nth = 0;
|
||||
while (tmp)
|
||||
|
@ -391,7 +393,7 @@ plug_in_init ()
|
|||
{
|
||||
write_pluginrc = TRUE;
|
||||
if ((be_verbose == TRUE) || (no_splash == TRUE))
|
||||
g_print ("query plug-in: \"%s\"\n", plug_in_def->prog);
|
||||
g_print (_("query plug-in: \"%s\"\n"), plug_in_def->prog);
|
||||
plug_in_query (plug_in_def->prog, plug_in_def);
|
||||
}
|
||||
app_init_update_status(NULL, plug_in_def->prog, nth/nplugins);
|
||||
|
@ -428,7 +430,7 @@ plug_in_init ()
|
|||
if (write_pluginrc)
|
||||
{
|
||||
if ((be_verbose == TRUE) || (no_splash == TRUE))
|
||||
g_print ("writing \"%s\"\n", filename);
|
||||
g_print (_("writing \"%s\"\n"), filename);
|
||||
plug_in_write_rc (filename);
|
||||
}
|
||||
|
||||
|
@ -441,8 +443,8 @@ plug_in_init ()
|
|||
/* run the available extensions */
|
||||
tmp = proc_defs;
|
||||
if ((be_verbose == TRUE) || (no_splash == TRUE))
|
||||
g_print ("Starting extensions: ");
|
||||
app_init_update_status("Extensions", "", 0);
|
||||
g_print (_("Starting extensions: "));
|
||||
app_init_update_status(_("Extensions"), "", 0);
|
||||
nplugins = g_slist_length(tmp); nth = 0;
|
||||
|
||||
while (tmp)
|
||||
|
@ -729,7 +731,7 @@ plug_in_def_add (PlugInDef *plug_in_def)
|
|||
}
|
||||
|
||||
write_pluginrc = TRUE;
|
||||
g_print ("\"%s\" executable not found\n", plug_in_def->prog);
|
||||
g_print (_("\"%s\" executable not found\n"), plug_in_def->prog);
|
||||
g_free (plug_in_def->prog);
|
||||
g_free (plug_in_def);
|
||||
}
|
||||
|
@ -782,7 +784,7 @@ plug_in_new (char *name)
|
|||
path = search_in_path (plug_in_path, name);
|
||||
if (!path)
|
||||
{
|
||||
g_message ("unable to locate plug-in: \"%s\"", name);
|
||||
g_message (_("unable to locate plug-in: \"%s\""), name);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@ -879,7 +881,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
*/
|
||||
if ((pipe (my_read) == -1) || (pipe (my_write) == -1))
|
||||
{
|
||||
g_message ("unable to open pipe");
|
||||
g_message (_("unable to open pipe"));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -927,7 +929,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
}
|
||||
else if (plug_in->pid == -1)
|
||||
{
|
||||
g_message ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
g_message (_("unable to run plug-in: %s\n"), plug_in->args[0]);
|
||||
plug_in_destroy (plug_in);
|
||||
return 0;
|
||||
}
|
||||
|
@ -1263,8 +1265,8 @@ plug_in_set_menu_sensitivity (int base_type)
|
|||
menus_set_sensitive (proc_def->menu_path, sensitive);
|
||||
if (last_plug_in && (last_plug_in == &(proc_def->db_info)))
|
||||
{
|
||||
menus_set_sensitive ("<Image>/Filters/Repeat last", sensitive);
|
||||
menus_set_sensitive ("<Image>/Filters/Re-show last", sensitive);
|
||||
menus_set_sensitive (_("<Image>/Filters/Repeat last"), sensitive);
|
||||
menus_set_sensitive (_("<Image>/Filters/Re-show last"), sensitive);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1303,18 +1305,18 @@ plug_in_handle_message (WireMessage *msg)
|
|||
plug_in_handle_quit ();
|
||||
break;
|
||||
case GP_CONFIG:
|
||||
g_message ("plug_in_handle_message(): received a config message (should not happen)\n");
|
||||
g_message (_("plug_in_handle_message(): received a config message (should not happen)\n"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
break;
|
||||
case GP_TILE_REQ:
|
||||
plug_in_handle_tile_req (msg->data);
|
||||
break;
|
||||
case GP_TILE_ACK:
|
||||
g_message ("plug_in_handle_message(): received a config message (should not happen)\n");
|
||||
g_message (_("plug_in_handle_message(): received a config message (should not happen)\n"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
break;
|
||||
case GP_TILE_DATA:
|
||||
g_message ("plug_in_handle_message(): received a config message (should not happen)\n");
|
||||
g_message (_("plug_in_handle_message(): received a config message (should not happen)\n"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
break;
|
||||
case GP_PROC_RUN:
|
||||
|
@ -1325,7 +1327,7 @@ plug_in_handle_message (WireMessage *msg)
|
|||
plug_in_close (current_plug_in, FALSE);
|
||||
break;
|
||||
case GP_TEMP_PROC_RUN:
|
||||
g_message ("plug_in_handle_message(): received a temp proc run message (should not happen)\n");
|
||||
g_message (_("plug_in_handle_message(): received a temp proc run message (should not happen)\n"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
break;
|
||||
case GP_TEMP_PROC_RETURN:
|
||||
|
@ -1372,21 +1374,21 @@ plug_in_handle_tile_req (GPTileReq *tile_req)
|
|||
|
||||
if (!gp_tile_data_write (current_writefd, &tile_data))
|
||||
{
|
||||
g_message ("plug_in_handle_tile_req: ERROR");
|
||||
g_message (_("plug_in_handle_tile_req: ERROR"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!wire_read_msg (current_readfd, &msg))
|
||||
{
|
||||
g_message ("plug_in_handle_tile_req: ERROR");
|
||||
g_message (_("plug_in_handle_tile_req: ERROR"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
||||
if (msg.type != GP_TILE_DATA)
|
||||
{
|
||||
g_message ("expected tile data and received: %d\n", msg.type);
|
||||
g_message (_("expected tile data and received: %d\n"), msg.type);
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1400,7 +1402,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req)
|
|||
|
||||
if (!tm)
|
||||
{
|
||||
g_message ("plug-in requested invalid drawable (killing)\n");
|
||||
g_message (_("plug-in requested invalid drawable (killing)\n"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1408,7 +1410,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req)
|
|||
tile = tile_manager_get (tm, tile_info->tile_num, TRUE, TRUE);
|
||||
if (!tile)
|
||||
{
|
||||
g_message ("plug-in requested invalid tile (killing)\n");
|
||||
g_message (_("plug-in requested invalid tile (killing)\n"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1423,7 +1425,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req)
|
|||
wire_destroy (&msg);
|
||||
if (!gp_tile_ack_write (current_writefd))
|
||||
{
|
||||
g_message ("plug_in_handle_tile_req: ERROR");
|
||||
g_message (_("plug_in_handle_tile_req: ERROR"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1437,7 +1439,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req)
|
|||
|
||||
if (!tm)
|
||||
{
|
||||
g_message ("plug-in requested invalid drawable (killing)\n");
|
||||
g_message (_("plug-in requested invalid drawable (killing)\n"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1445,7 +1447,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req)
|
|||
tile = tile_manager_get (tm, tile_req->tile_num, TRUE, FALSE);
|
||||
if (!tile)
|
||||
{
|
||||
g_message ("plug-in requested invalid tile (killing)\n");
|
||||
g_message (_("plug-in requested invalid tile (killing)\n"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1465,7 +1467,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req)
|
|||
|
||||
if (!gp_tile_data_write (current_writefd, &tile_data))
|
||||
{
|
||||
g_message ("plug_in_handle_tile_req: ERROR");
|
||||
g_message (_("plug_in_handle_tile_req: ERROR"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1474,14 +1476,14 @@ plug_in_handle_tile_req (GPTileReq *tile_req)
|
|||
|
||||
if (!wire_read_msg (current_readfd, &msg))
|
||||
{
|
||||
g_message ("plug_in_handle_tile_req: ERROR");
|
||||
g_message (_("plug_in_handle_tile_req: ERROR"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
||||
if (msg.type != GP_TILE_ACK)
|
||||
{
|
||||
g_message ("expected tile ack and received: %d\n", msg.type);
|
||||
g_message (_("expected tile ack and received: %d\n"), msg.type);
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1505,7 +1507,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run)
|
|||
if (!proc_rec)
|
||||
{
|
||||
/* THIS IS PROBABLY NOT CORRECT -josh */
|
||||
g_message ("PDB lookup failed on %s\n", proc_run->name);
|
||||
g_message (_("PDB lookup failed on %s\n"), proc_run->name);
|
||||
plug_in_args_destroy (args, proc_run->nparams, FALSE);
|
||||
return;
|
||||
}
|
||||
|
@ -1529,7 +1531,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run)
|
|||
|
||||
if (!gp_proc_return_write (current_writefd, &proc_return))
|
||||
{
|
||||
g_message ("plug_in_handle_proc_run: ERROR");
|
||||
g_message (_("plug_in_handle_proc_run: ERROR"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1573,7 +1575,7 @@ plug_in_handle_proc_return (GPProcReturn *proc_return)
|
|||
plug_in_push (blocked->plug_in);
|
||||
if (!gp_proc_return_write (current_writefd, proc_return))
|
||||
{
|
||||
g_message ("plug_in_handle_proc_run: ERROR");
|
||||
g_message (_("plug_in_handle_proc_run: ERROR"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1612,8 +1614,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install)
|
|||
if ((proc_install->nparams < 1) ||
|
||||
(proc_install->params[0].type != PDB_INT32))
|
||||
{
|
||||
g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which "
|
||||
"does not take the standard plug-in args",
|
||||
g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which "
|
||||
"does not take the standard plug-in args"),
|
||||
current_plug_in->args[0], proc_install->name);
|
||||
return;
|
||||
}
|
||||
|
@ -1625,8 +1627,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install)
|
|||
(proc_install->params[1].type != PDB_IMAGE) ||
|
||||
(proc_install->params[2].type != PDB_DRAWABLE))
|
||||
{
|
||||
g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which "
|
||||
"does not take the standard plug-in args",
|
||||
g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which "
|
||||
"does not take the standard plug-in args"),
|
||||
current_plug_in->args[0], proc_install->name);
|
||||
return;
|
||||
}
|
||||
|
@ -1638,8 +1640,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install)
|
|||
(proc_install->params[1].type != PDB_STRING) ||
|
||||
(proc_install->params[2].type != PDB_STRING))
|
||||
{
|
||||
g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which "
|
||||
"does not take the standard plug-in args",
|
||||
g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which "
|
||||
"does not take the standard plug-in args"),
|
||||
current_plug_in->args[0], proc_install->name);
|
||||
return;
|
||||
}
|
||||
|
@ -1653,17 +1655,17 @@ plug_in_handle_proc_install (GPProcInstall *proc_install)
|
|||
(proc_install->params[3].type != PDB_STRING) ||
|
||||
(proc_install->params[4].type != PDB_STRING))
|
||||
{
|
||||
g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which "
|
||||
"does not take the standard plug-in args",
|
||||
g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which "
|
||||
"does not take the standard plug-in args"),
|
||||
current_plug_in->args[0], proc_install->name);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
g_message ("plug-in \"%s\" attempted to install procedure \"%s\" in "
|
||||
g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" in "
|
||||
"an invalid menu location. Use either \"<Toolbox>\", \"<Image>\", "
|
||||
"\"<Load>\", or \"<Save>\".",
|
||||
"\"<Load>\", or \"<Save>\"."),
|
||||
current_plug_in->args[0], proc_install->name);
|
||||
return;
|
||||
}
|
||||
|
@ -1681,9 +1683,9 @@ plug_in_handle_proc_install (GPProcInstall *proc_install)
|
|||
proc_install->params[i].type == PDB_STRINGARRAY) &&
|
||||
proc_install->params[i-1].type != PDB_INT32)
|
||||
{
|
||||
g_message ("plug_in \"%s\" attempted to install procedure \"%s\" "
|
||||
g_message (_("plug_in \"%s\" attempted to install procedure \"%s\" "
|
||||
"which fails to comply with the array parameter "
|
||||
"passing standard. Argument %d is noncompliant.",
|
||||
"passing standard. Argument %d is noncompliant."),
|
||||
current_plug_in->args[0], proc_install->name, i);
|
||||
return;
|
||||
}
|
||||
|
@ -2091,7 +2093,7 @@ plug_in_init_file (char *filename)
|
|||
|
||||
if (strcmp (name, plug_in_name) == 0)
|
||||
{
|
||||
g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename);
|
||||
g_print (_("duplicate plug-in: \"%s\" (skipping)\n"), filename);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -2265,7 +2267,7 @@ plug_in_callback (GtkWidget *widget,
|
|||
}
|
||||
else
|
||||
{
|
||||
g_message ("Uh-oh, no active gdisplay for the plug-in!");
|
||||
g_message (_("Uh-oh, no active gdisplay for the plug-in!"));
|
||||
g_free (args);
|
||||
return;
|
||||
}
|
||||
|
@ -2286,7 +2288,7 @@ plug_in_callback (GtkWidget *widget,
|
|||
}
|
||||
else
|
||||
{
|
||||
g_message ("Uh-oh, no active gdisplay for the temporary procedure!");
|
||||
g_message (_("Uh-oh, no active gdisplay for the temporary procedure!"));
|
||||
g_free (args);
|
||||
return;
|
||||
}
|
||||
|
@ -2294,7 +2296,7 @@ plug_in_callback (GtkWidget *widget,
|
|||
break;
|
||||
|
||||
default:
|
||||
g_error ("Unknown procedure type.");
|
||||
g_error (_("Unknown procedure type."));
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -2600,7 +2602,7 @@ plug_in_params_to_args (GPParam *params,
|
|||
colorarray[2] = params[i].data.d_color.blue;
|
||||
break;
|
||||
case PDB_REGION:
|
||||
g_message ("the \"region\" arg type is not currently supported");
|
||||
g_message (_("the \"region\" arg type is not currently supported"));
|
||||
break;
|
||||
case PDB_DISPLAY:
|
||||
args[i].value.pdb_int = params[i].data.d_display;
|
||||
|
@ -2765,7 +2767,7 @@ plug_in_args_to_params (Argument *args,
|
|||
}
|
||||
break;
|
||||
case PDB_REGION:
|
||||
g_message ("the \"region\" arg type is not currently supported");
|
||||
g_message (_("the \"region\" arg type is not currently supported"));
|
||||
break;
|
||||
case PDB_DISPLAY:
|
||||
params[i].data.d_display = args[i].value.pdb_int;
|
||||
|
@ -2882,7 +2884,7 @@ plug_in_params_destroy (GPParam *params,
|
|||
case PDB_COLOR:
|
||||
break;
|
||||
case PDB_REGION:
|
||||
g_message ("the \"region\" arg type is not currently supported");
|
||||
g_message (_("the \"region\" arg type is not currently supported"));
|
||||
break;
|
||||
case PDB_DISPLAY:
|
||||
case PDB_IMAGE:
|
||||
|
@ -2967,7 +2969,7 @@ plug_in_args_destroy (Argument *args,
|
|||
g_free (args[i].value.pdb_pointer);
|
||||
break;
|
||||
case PDB_REGION:
|
||||
g_message ("the \"region\" arg type is not currently supported");
|
||||
g_message (_("the \"region\" arg type is not currently supported"));
|
||||
break;
|
||||
case PDB_DISPLAY:
|
||||
case PDB_IMAGE:
|
||||
|
@ -3156,7 +3158,7 @@ plug_in_progress_init (PlugIn *plug_in,
|
|||
gtk_box_pack_start (GTK_BOX (vbox), plug_in->progress_bar, TRUE, TRUE, 0);
|
||||
gtk_widget_show (plug_in->progress_bar);
|
||||
|
||||
button = gtk_button_new_with_label ("Cancel");
|
||||
button = gtk_button_new_with_label (_("Cancel"));
|
||||
gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
|
||||
(GtkSignalFunc) gtk_widget_destroy,
|
||||
GTK_OBJECT (plug_in->progress));
|
||||
|
|
|
@ -29,6 +29,8 @@
|
|||
#include "tools.h"
|
||||
#include "gimage.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
typedef struct _AirbrushTimeout AirbrushTimeout;
|
||||
|
||||
struct _AirbrushTimeout
|
||||
|
@ -92,7 +94,7 @@ create_airbrush_options (void)
|
|||
vbox = gtk_vbox_new (FALSE, 1);
|
||||
|
||||
/* the main label */
|
||||
label = gtk_label_new ("Airbrush Options");
|
||||
label = gtk_label_new (_("Airbrush Options"));
|
||||
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
@ -101,7 +103,7 @@ create_airbrush_options (void)
|
|||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
gtk_widget_show (hbox);
|
||||
|
||||
label = gtk_label_new ("Rate");
|
||||
label = gtk_label_new (_("Rate"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
@ -119,7 +121,7 @@ create_airbrush_options (void)
|
|||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
gtk_widget_show (hbox);
|
||||
|
||||
label = gtk_label_new ("Pressure");
|
||||
label = gtk_label_new (_("Pressure"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
@ -155,7 +157,7 @@ airbrush_paint_func (PaintCore *paint_core,
|
|||
/* timer_state = OFF; */
|
||||
if (timer_state == ON)
|
||||
{
|
||||
g_warning ("killing stray timer, please report to lewing@gimp.org");
|
||||
g_warning (_("killing stray timer, please report to lewing@gimp.org"));
|
||||
gtk_timeout_remove (timer);
|
||||
}
|
||||
timer_state = OFF;
|
||||
|
@ -295,23 +297,23 @@ ProcArg airbrush_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_DRAWABLE,
|
||||
"drawable",
|
||||
"the drawable"
|
||||
N_("the drawable")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"pressure",
|
||||
"The pressure of the airbrush strokes: 0 <= pressure <= 100"
|
||||
N_("The pressure of the airbrush strokes: 0 <= pressure <= 100")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"num_strokes",
|
||||
"number of stroke control points (count each coordinate as 2 points)"
|
||||
N_("number of stroke control points (count each coordinate as 2 points)")
|
||||
},
|
||||
{ PDB_FLOATARRAY,
|
||||
"strokes",
|
||||
"array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}"
|
||||
N_("array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}")
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -319,8 +321,8 @@ ProcArg airbrush_args[] =
|
|||
ProcRecord airbrush_proc =
|
||||
{
|
||||
"gimp_airbrush",
|
||||
"Paint in the current brush with varying pressure. Paint application is time-dependent",
|
||||
"This tool simulates the use of an airbrush. Paint pressure represents the relative intensity of the paint application. High pressure results in a thicker layer of paint while low pressure results in a thinner layer.",
|
||||
N_("Paint in the current brush with varying pressure. Paint application is time-dependent"),
|
||||
N_("This tool simulates the use of an airbrush. Paint pressure represents the relative intensity of the paint application. High pressure results in a thicker layer of paint while low pressure results in a thinner layer."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
|
|
@ -66,6 +66,8 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#define LOGO_WIDTH_MIN 300
|
||||
#define LOGO_HEIGHT_MIN 110
|
||||
#define NAME "The GIMP"
|
||||
|
@ -95,16 +97,16 @@ static ProcArg quit_args[] =
|
|||
{
|
||||
{ PDB_INT32,
|
||||
"kill",
|
||||
"Flag specifying whether to kill the gimp process or exit normally" },
|
||||
N_("Flag specifying whether to kill the gimp process or exit normally") },
|
||||
};
|
||||
|
||||
static ProcRecord quit_proc =
|
||||
{
|
||||
"gimp_quit",
|
||||
"Causes the gimp to exit gracefully",
|
||||
"The internal procedure which can either be used to make the gimp quit normally, or to have the gimp clean up its resources and exit immediately. The normaly shutdown process allows for querying the user to save any dirty images.",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
N_("Causes the gimp to exit gracefully"),
|
||||
N_("The internal procedure which can either be used to make the gimp quit normally, or to have the gimp clean up its resources and exit immediately. The normaly shutdown process allows for querying the user to save any dirty images."),
|
||||
N_("Spencer Kimball & Peter Mattis"),
|
||||
N_("Spencer Kimball & Peter Mattis"),
|
||||
"1995-1996",
|
||||
PDB_INTERNAL,
|
||||
1,
|
||||
|
@ -455,7 +457,7 @@ app_init (void)
|
|||
sprintf (filename, "%s/gtkrc", gimp_dir);
|
||||
|
||||
if ((be_verbose == TRUE) || (no_splash == TRUE))
|
||||
g_print ("parsing \"%s\"\n", filename);
|
||||
g_print (_("parsing %s\n"), filename);
|
||||
|
||||
gtk_rc_parse (filename);
|
||||
}
|
||||
|
@ -499,13 +501,13 @@ app_init (void)
|
|||
RESET_BAR();
|
||||
xcf_init (); /* initialize the xcf file format routines */
|
||||
|
||||
app_init_update_status ("Looking for data files", "Brushes", 0.00);
|
||||
app_init_update_status (_("Looking for data files"), _("Brushes"), 0.00);
|
||||
brushes_init (no_data); /* initialize the list of gimp brushes */
|
||||
app_init_update_status (NULL, "Patterns", 0.25);
|
||||
app_init_update_status (NULL, _("Patterns"), 0.25);
|
||||
patterns_init (no_data); /* initialize the list of gimp patterns */
|
||||
app_init_update_status (NULL, "Palettes", 0.50);
|
||||
app_init_update_status (NULL, _("Palettes"), 0.50);
|
||||
palettes_init (no_data); /* initialize the list of gimp palettes */
|
||||
app_init_update_status (NULL, "Gradients", 0.75);
|
||||
app_init_update_status (NULL, _("Gradients"), 0.75);
|
||||
gradients_init (no_data); /* initialize the list of gimp gradients */
|
||||
app_init_update_status (NULL, NULL, 1.00);
|
||||
|
||||
|
@ -637,8 +639,8 @@ static void
|
|||
really_quit_cancel_callback (GtkWidget *widget,
|
||||
GtkWidget *dialog)
|
||||
{
|
||||
menus_set_sensitive ("<Toolbox>/File/Quit", TRUE);
|
||||
menus_set_sensitive ("<Image>/File/Quit", TRUE);
|
||||
menus_set_sensitive (_("<Toolbox>/File/Quit"), TRUE);
|
||||
menus_set_sensitive (_("<Image>/File/Quit"), TRUE);
|
||||
gtk_widget_destroy (dialog);
|
||||
}
|
||||
|
||||
|
@ -659,12 +661,12 @@ really_quit_dialog ()
|
|||
GtkWidget *button;
|
||||
GtkWidget *label;
|
||||
|
||||
menus_set_sensitive ("<Toolbox>/File/Quit", FALSE);
|
||||
menus_set_sensitive ("<Image>/File/Quit", FALSE);
|
||||
menus_set_sensitive (_("<Toolbox>/File/Quit"), FALSE);
|
||||
menus_set_sensitive (_("<Image>/File/Quit"), FALSE);
|
||||
|
||||
dialog = gtk_dialog_new ();
|
||||
gtk_window_set_wmclass (GTK_WINDOW (dialog), "really_quit", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (dialog), "Really Quit?");
|
||||
gtk_window_set_title (GTK_WINDOW (dialog), _("Really Quit?"));
|
||||
gtk_window_position (GTK_WINDOW (dialog), GTK_WIN_POS_MOUSE);
|
||||
gtk_container_border_width (GTK_CONTAINER (GTK_DIALOG (dialog)->action_area), 2);
|
||||
|
||||
|
@ -672,7 +674,7 @@ really_quit_dialog ()
|
|||
(GtkSignalFunc) really_quit_delete_callback,
|
||||
dialog);
|
||||
|
||||
button = gtk_button_new_with_label ("Yes");
|
||||
button = gtk_button_new_with_label (_("Yes"));
|
||||
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
|
||||
gtk_signal_connect (GTK_OBJECT (button), "clicked",
|
||||
(GtkSignalFunc) really_quit_callback,
|
||||
|
@ -681,7 +683,7 @@ really_quit_dialog ()
|
|||
gtk_widget_grab_default (button);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_button_new_with_label ("No");
|
||||
button = gtk_button_new_with_label (_("No"));
|
||||
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
|
||||
gtk_signal_connect (GTK_OBJECT (button), "clicked",
|
||||
(GtkSignalFunc) really_quit_cancel_callback,
|
||||
|
@ -689,7 +691,7 @@ really_quit_dialog ()
|
|||
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->action_area), button, TRUE, TRUE, 0);
|
||||
gtk_widget_show (button);
|
||||
|
||||
label = gtk_label_new ("Some files unsaved. Quit the GIMP?");
|
||||
label = gtk_label_new (_("Some files unsaved. Quit the GIMP?"));
|
||||
gtk_misc_set_padding (GTK_MISC (label), 10, 1);
|
||||
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), label, TRUE, TRUE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
|
||||
/* The GIMP -- an image manipulation program
|
||||
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
||||
*
|
||||
|
@ -21,6 +22,8 @@
|
|||
#include "errors.h"
|
||||
#include "boundary.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#include "tile.h"
|
||||
|
||||
/* half intensity for mask */
|
||||
|
@ -171,7 +174,7 @@ make_seg (int x1,
|
|||
sizeof (BoundSeg) * max_segs);
|
||||
|
||||
if (!tmp_segs)
|
||||
fatal_error ("Unable to reallocate segments array for mask boundary.");
|
||||
fatal_error (_("Unable to reallocate segments array for mask boundary."));
|
||||
}
|
||||
|
||||
tmp_segs[num_segs].x1 = x1;
|
||||
|
@ -213,7 +216,7 @@ allocate_empty_segs (void)
|
|||
empty_segs_l = (int *) g_realloc (empty_segs_l, sizeof (int) * max_empty_segs);
|
||||
|
||||
if (!empty_segs_n || !empty_segs_l || !empty_segs_c)
|
||||
fatal_error ("Unable to reallocate empty segments array for mask boundary.");
|
||||
fatal_error (_("Unable to reallocate empty segments array for mask boundary."));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -468,7 +471,7 @@ sort_boundary (BoundSeg *segs,
|
|||
}
|
||||
|
||||
if (x != startx || y != starty)
|
||||
g_message ("sort_boundary(): Unconnected boundary group!");
|
||||
g_message (_("sort_boundary(): Unconnected boundary group!"));
|
||||
|
||||
/* Mark the end of a group */
|
||||
*num_groups = *num_groups + 1;
|
||||
|
|
|
@ -29,6 +29,8 @@
|
|||
#include "image_map.h"
|
||||
#include "interface.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#define TEXT_WIDTH 55
|
||||
|
||||
#define SHADOWS 0
|
||||
|
@ -273,7 +275,7 @@ tools_new_color_balance ()
|
|||
|
||||
/* The tool options */
|
||||
if (!color_balance_options)
|
||||
color_balance_options = tools_register_no_options (COLOR_BALANCE, "Color Balance Options");
|
||||
color_balance_options = tools_register_no_options (COLOR_BALANCE, _("Color Balance Options"));
|
||||
|
||||
tool = (Tool *) g_malloc (sizeof (Tool));
|
||||
private = (ColorBalance *) g_malloc (sizeof (ColorBalance));
|
||||
|
@ -317,7 +319,7 @@ color_balance_initialize (GDisplay *gdisp)
|
|||
|
||||
if (! drawable_color (gimage_active_drawable (gdisp->gimage)))
|
||||
{
|
||||
g_message ("Color balance operates only on RGB color drawables.");
|
||||
g_message (_("Color balance operates only on RGB color drawables."));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -349,8 +351,8 @@ color_balance_initialize (GDisplay *gdisp)
|
|||
/* the action area structure */
|
||||
static ActionAreaItem action_items[] =
|
||||
{
|
||||
{ "OK", color_balance_ok_callback, NULL, NULL },
|
||||
{ "Cancel", color_balance_cancel_callback, NULL, NULL }
|
||||
{ N_("OK"), color_balance_ok_callback, NULL, NULL },
|
||||
{ N_("Cancel"), color_balance_cancel_callback, NULL, NULL }
|
||||
};
|
||||
|
||||
static ColorBalanceDialog *
|
||||
|
@ -371,9 +373,9 @@ color_balance_new_dialog ()
|
|||
int i;
|
||||
char *appl_mode_names[3] =
|
||||
{
|
||||
"Shadows",
|
||||
"Midtones",
|
||||
"Highlights"
|
||||
N_("Shadows"),
|
||||
N_("Midtones"),
|
||||
N_("Highlights")
|
||||
};
|
||||
ActionCallback appl_mode_callbacks[3] =
|
||||
{
|
||||
|
@ -390,7 +392,7 @@ color_balance_new_dialog ()
|
|||
/* The shell and main vbox */
|
||||
cbd->shell = gtk_dialog_new ();
|
||||
gtk_window_set_wmclass (GTK_WINDOW (cbd->shell), "color_balance", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (cbd->shell), "Color Balance");
|
||||
gtk_window_set_title (GTK_WINDOW (cbd->shell), N_("Color Balance"));
|
||||
|
||||
/* handle the wm close signal */
|
||||
gtk_signal_connect (GTK_OBJECT (cbd->shell), "delete_event",
|
||||
|
@ -405,7 +407,7 @@ color_balance_new_dialog ()
|
|||
hbox = gtk_hbox_new (TRUE, 2);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
|
||||
label = gtk_label_new ("Color Levels: ");
|
||||
label = gtk_label_new (_("Color Levels: "));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
@ -444,7 +446,7 @@ color_balance_new_dialog ()
|
|||
gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, FALSE, 0);
|
||||
|
||||
/* Create the cyan-red scale widget */
|
||||
start_label = gtk_label_new ("Cyan");
|
||||
start_label = gtk_label_new (_("Cyan"));
|
||||
gtk_misc_set_alignment (GTK_MISC (start_label), 1.0, 1.0);
|
||||
gtk_table_attach (GTK_TABLE (table), start_label, 0, 1, 0, 1,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2);
|
||||
|
@ -461,7 +463,7 @@ color_balance_new_dialog ()
|
|||
gtk_signal_connect (GTK_OBJECT (data), "value_changed",
|
||||
(GtkSignalFunc) color_balance_cr_scale_update,
|
||||
cbd);
|
||||
end_label = gtk_label_new ("Red");
|
||||
end_label = gtk_label_new (_("Red"));
|
||||
gtk_misc_set_alignment (GTK_MISC (end_label), 0.0, 1.0);
|
||||
gtk_table_attach (GTK_TABLE (table), end_label, 2, 3, 0, 1,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2);
|
||||
|
@ -471,7 +473,7 @@ color_balance_new_dialog ()
|
|||
gtk_widget_show (slider);
|
||||
|
||||
/* Create the magenta-green scale widget */
|
||||
start_label = gtk_label_new ("Magenta");
|
||||
start_label = gtk_label_new (_("Magenta"));
|
||||
gtk_misc_set_alignment (GTK_MISC (start_label), 1.0, 1.0);
|
||||
gtk_table_attach (GTK_TABLE (table), start_label, 0, 1, 1, 2,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2);
|
||||
|
@ -488,7 +490,7 @@ color_balance_new_dialog ()
|
|||
gtk_signal_connect (GTK_OBJECT (data), "value_changed",
|
||||
(GtkSignalFunc) color_balance_mg_scale_update,
|
||||
cbd);
|
||||
end_label = gtk_label_new ("Green");
|
||||
end_label = gtk_label_new (_("Green"));
|
||||
gtk_misc_set_alignment (GTK_MISC (end_label), 0.0, 1.0);
|
||||
gtk_table_attach (GTK_TABLE (table), end_label, 2, 3, 1, 2,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2);
|
||||
|
@ -498,7 +500,7 @@ color_balance_new_dialog ()
|
|||
gtk_widget_show (slider);
|
||||
|
||||
/* Create the yellow-blue scale widget */
|
||||
start_label = gtk_label_new ("Yellow");
|
||||
start_label = gtk_label_new (_("Yellow"));
|
||||
gtk_misc_set_alignment (GTK_MISC (start_label), 1.0, 1.0);
|
||||
gtk_table_attach (GTK_TABLE (table), start_label, 0, 1, 2, 3,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2);
|
||||
|
@ -515,7 +517,7 @@ color_balance_new_dialog ()
|
|||
gtk_signal_connect (GTK_OBJECT (data), "value_changed",
|
||||
(GtkSignalFunc) color_balance_yb_scale_update,
|
||||
cbd);
|
||||
end_label = gtk_label_new ("Blue");
|
||||
end_label = gtk_label_new (_("Blue"));
|
||||
gtk_misc_set_alignment (GTK_MISC (end_label), 0.0, 1.0);
|
||||
gtk_table_attach (GTK_TABLE (table), end_label, 2, 3, 2, 3,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2);
|
||||
|
@ -529,7 +531,7 @@ color_balance_new_dialog ()
|
|||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
|
||||
/* The preview toggle */
|
||||
toggle = gtk_check_button_new_with_label ("Preview");
|
||||
toggle = gtk_check_button_new_with_label (_("Preview"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), cbd->preview);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
|
@ -538,7 +540,7 @@ color_balance_new_dialog ()
|
|||
gtk_widget_show (toggle);
|
||||
|
||||
/* The preserve luminosity toggle */
|
||||
toggle = gtk_check_button_new_with_label ("Preserve Luminosity");
|
||||
toggle = gtk_check_button_new_with_label (_("Preserve Luminosity"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), cbd->preserve_luminosity);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
|
@ -618,7 +620,7 @@ static void
|
|||
color_balance_preview (ColorBalanceDialog *cbd)
|
||||
{
|
||||
if (!cbd->image_map)
|
||||
g_message ("color_balance_preview(): No image map");
|
||||
g_message (_("color_balance_preview(): No image map"));
|
||||
active_tool->preserve = TRUE;
|
||||
image_map_apply (cbd->image_map, color_balance, (void *) cbd);
|
||||
active_tool->preserve = FALSE;
|
||||
|
@ -877,39 +879,39 @@ ProcArg color_balance_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_DRAWABLE,
|
||||
"drawable",
|
||||
"the drawable"
|
||||
N_("the drawable")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"transfer_mode",
|
||||
"Transfer mode: { SHADOWS (0), MIDTONES (1), HIGHLIGHTS (2) }"
|
||||
N_("Transfer mode: { SHADOWS (0), MIDTONES (1), HIGHLIGHTS (2) }")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"preserve_lum",
|
||||
"Preserve luminosity values at each pixel"
|
||||
N_("Preserve luminosity values at each pixel")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"cyan_red",
|
||||
"Cyan-Red color balance: (-100 <= cyan_red <= 100)"
|
||||
N_("Cyan-Red color balance: (-100 <= cyan_red <= 100)")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"magenta_green",
|
||||
"Magenta-Green color balance: (-100 <= magenta_green <= 100)"
|
||||
N_("Magenta-Green color balance: (-100 <= magenta_green <= 100)")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"yellow_blue",
|
||||
"Yellow-Blue color balance: (-100 <= yellow_blue <= 100)"
|
||||
N_("Yellow-Blue color balance: (-100 <= yellow_blue <= 100)")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord color_balance_proc =
|
||||
{
|
||||
"gimp_color_balance",
|
||||
"Modify the color balance of the specified drawable",
|
||||
"Modify the color balance of the specified drawable. There are three axis which can be modified: cyan-red, magenta-green, and yellow-blue. Negative values increase the amount of the former, positive values increase the amount of the latter. Color balance can be controlled with the 'transfer_mode' setting, which allows shadows, midtones, and highlights in an image to be affected differently. The 'preserve_lum' parameter, if non-zero, ensures that the luminosity of each pixel remains fixed.",
|
||||
N_("Modify the color balance of the specified drawable"),
|
||||
N_("Modify the color balance of the specified drawable. There are three axis which can be modified: cyan-red, magenta-green, and yellow-blue. Negative values increase the amount of the former, positive values increase the amount of the latter. Color balance can be controlled with the 'transfer_mode' setting, which allows shadows, midtones, and highlights in an image to be affected differently. The 'preserve_lum' parameter, if non-zero, ensures that the luminosity of each pixel remains fixed."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1997",
|
||||
|
|
|
@ -31,6 +31,8 @@
|
|||
#include "interface.h"
|
||||
#include "curves.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#define ROUND(x) ((int) ((x) + 0.5))
|
||||
|
||||
#define GRAPH 0x1
|
||||
|
@ -274,7 +276,7 @@ tools_new_curves ()
|
|||
|
||||
/* The tool options */
|
||||
if (!curves_options)
|
||||
curves_options = tools_register_no_options (CURVES, "Curves Options");
|
||||
curves_options = tools_register_no_options (CURVES, _("Curves Options"));
|
||||
|
||||
tool = (Tool *) g_malloc (sizeof (Tool));
|
||||
private = (Curves *) g_malloc (sizeof (Curves));
|
||||
|
@ -314,25 +316,25 @@ tools_free_curves (Tool *tool)
|
|||
/* the action area structure */
|
||||
static ActionAreaItem action_items[] =
|
||||
{
|
||||
{ "Reset", curves_reset_callback, NULL, NULL },
|
||||
{ "OK", curves_ok_callback, NULL, NULL },
|
||||
{ "Cancel", curves_cancel_callback, NULL, NULL }
|
||||
{ N_("Reset"), curves_reset_callback, NULL, NULL },
|
||||
{ N_("OK"), curves_ok_callback, NULL, NULL },
|
||||
{ N_("Cancel"), curves_cancel_callback, NULL, NULL }
|
||||
};
|
||||
|
||||
static MenuItem channel_items[] =
|
||||
{
|
||||
{ "Value", 0, 0, curves_value_callback, NULL, NULL, NULL },
|
||||
{ "Red", 0, 0, curves_red_callback, NULL, NULL, NULL },
|
||||
{ "Green", 0, 0, curves_green_callback, NULL, NULL, NULL },
|
||||
{ "Blue", 0, 0, curves_blue_callback, NULL, NULL, NULL },
|
||||
{ "Alpha", 0, 0, curves_alpha_callback, NULL, NULL, NULL },
|
||||
{ N_("Value"), 0, 0, curves_value_callback, NULL, NULL, NULL },
|
||||
{ N_("Red"), 0, 0, curves_red_callback, NULL, NULL, NULL },
|
||||
{ N_("Green"), 0, 0, curves_green_callback, NULL, NULL, NULL },
|
||||
{ N_("Blue"), 0, 0, curves_blue_callback, NULL, NULL, NULL },
|
||||
{ N_("Alpha"), 0, 0, curves_alpha_callback, NULL, NULL, NULL },
|
||||
{ NULL, 0, 0, NULL, NULL, NULL, NULL }
|
||||
};
|
||||
|
||||
static MenuItem curve_type_items[] =
|
||||
{
|
||||
{ "Smooth", 0, 0, curves_smooth_callback, NULL, NULL, NULL },
|
||||
{ "Free", 0, 0, curves_free_callback, NULL, NULL, NULL },
|
||||
{ N_("Smooth"), 0, 0, curves_smooth_callback, NULL, NULL, NULL },
|
||||
{ N_("Free"), 0, 0, curves_free_callback, NULL, NULL, NULL },
|
||||
{ NULL, 0, 0, NULL, NULL, NULL, NULL }
|
||||
};
|
||||
|
||||
|
@ -343,7 +345,7 @@ curves_initialize (GDisplay *gdisp)
|
|||
|
||||
if (drawable_indexed (gimage_active_drawable (gdisp->gimage)))
|
||||
{
|
||||
g_message ("Curves for indexed drawables cannot be adjusted.");
|
||||
g_message (_("Curves for indexed drawables cannot be adjusted."));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -453,7 +455,7 @@ curves_new_dialog ()
|
|||
/* The shell and main vbox */
|
||||
cd->shell = gtk_dialog_new ();
|
||||
gtk_window_set_wmclass (GTK_WINDOW (cd->shell), "curves", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (cd->shell), "Curves");
|
||||
gtk_window_set_title (GTK_WINDOW (cd->shell), _("Curves"));
|
||||
|
||||
gtk_signal_connect (GTK_OBJECT (cd->shell), "delete_event",
|
||||
GTK_SIGNAL_FUNC (curves_delete_callback),
|
||||
|
@ -467,7 +469,7 @@ curves_new_dialog ()
|
|||
channel_hbox = gtk_hbox_new (FALSE, 2);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), channel_hbox, FALSE, FALSE, 0);
|
||||
|
||||
label = gtk_label_new ("Modify Curves for Channel: ");
|
||||
label = gtk_label_new (_("Modify Curves for Channel: "));
|
||||
gtk_box_pack_start (GTK_BOX (channel_hbox), label, FALSE, FALSE, 0);
|
||||
|
||||
menu = build_menu (channel_items, NULL);
|
||||
|
@ -541,7 +543,7 @@ curves_new_dialog ()
|
|||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
|
||||
/* The option menu for selecting the drawing method */
|
||||
label = gtk_label_new ("Curve Type: ");
|
||||
label = gtk_label_new (_("Curve Type: "));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
||||
|
||||
menu = build_menu (curve_type_items, NULL);
|
||||
|
@ -554,7 +556,7 @@ curves_new_dialog ()
|
|||
gtk_option_menu_set_menu (GTK_OPTION_MENU (option_menu), menu);
|
||||
|
||||
/* The preview toggle */
|
||||
toggle = gtk_check_button_new_with_label ("Preview");
|
||||
toggle = gtk_check_button_new_with_label (_("Preview"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), cd->preview);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
|
@ -814,7 +816,7 @@ static void
|
|||
curves_preview (CurvesDialog *cd)
|
||||
{
|
||||
if (!cd->image_map)
|
||||
g_message ("curves_preview(): No image map");
|
||||
g_message (_("curves_preview(): No image map"));
|
||||
|
||||
active_tool->preserve = TRUE; /* Going to dirty the display... */
|
||||
|
||||
|
@ -1298,31 +1300,31 @@ ProcArg curves_spline_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_DRAWABLE,
|
||||
"drawable",
|
||||
"the drawable"
|
||||
N_("the drawable")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"channel",
|
||||
"the channel to modify: { VALUE (0), RED (1), GREEN (2), BLUE (3), ALPHA (4), GRAY (0) }"
|
||||
N_("the channel to modify: { VALUE (0), RED (1), GREEN (2), BLUE (3), ALPHA (4), GRAY (0) }")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"num_points",
|
||||
"the number of values in the control point array ( 3 < num_points <= 32 )"
|
||||
N_("the number of values in the control point array ( 3 < num_points <= 32 )")
|
||||
},
|
||||
{ PDB_INT8ARRAY,
|
||||
"control_pts",
|
||||
"the spline control points: { cp1.x, cp1.y, cp2.x, cp2.y, ... }"
|
||||
N_("the spline control points: { cp1.x, cp1.y, cp2.x, cp2.y, ... }")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord curves_spline_proc =
|
||||
{
|
||||
"gimp_curves_spline",
|
||||
"Modifies the intensity curve(s) for specified drawable",
|
||||
"Modifies the intensity mapping for one channel in the specified drawable. The drawable must be either grayscale or RGB, and the channel can be either an intensity component, or the value. The 'control_pts' parameter is an array of integers which define a set of control points which describe a Catmull Rom spline which yields the final intensity curve. Use the 'gimp_curves_explicit' function to explicitly modify intensity levels.",
|
||||
N_("Modifies the intensity curve(s) for specified drawable"),
|
||||
N_("Modifies the intensity mapping for one channel in the specified drawable. The drawable must be either grayscale or RGB, and the channel can be either an intensity component, or the value. The 'control_pts' parameter is an array of integers which define a set of control points which describe a Catmull Rom spline which yields the final intensity curve. Use the 'gimp_curves_explicit' function to explicitly modify intensity levels."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -1456,31 +1458,31 @@ ProcArg curves_explicit_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_DRAWABLE,
|
||||
"drawable",
|
||||
"the drawable"
|
||||
N_("the drawable")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"channel",
|
||||
"the channel to modify: { VALUE (0), RED (1), GREEN (2), BLUE (3), GRAY (0) }"
|
||||
N_("the channel to modify: { VALUE (0), RED (1), GREEN (2), BLUE (3), GRAY (0) }")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"num_bytes",
|
||||
"the number of bytes in the new curve (always 256)"
|
||||
N_("the number of bytes in the new curve (always 256)")
|
||||
},
|
||||
{ PDB_INT8ARRAY,
|
||||
"curve",
|
||||
"the explicit curve"
|
||||
N_("the explicit curve")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord curves_explicit_proc =
|
||||
{
|
||||
"gimp_curves_explicit",
|
||||
"Modifies the intensity curve(s) for specified drawable",
|
||||
"Modifies the intensity mapping for one channel in the specified drawable. The drawable must be either grayscale or RGB, and the channel can be either an intensity component, or the value. The 'curve' parameter is an array of bytes which explicitly defines how each pixel value in the drawable will be modified. Use the 'gimp_curves_spline' function to modify intensity levels with Catmull Rom splines.",
|
||||
N_("Modifies the intensity curve(s) for specified drawable"),
|
||||
N_("Modifies the intensity mapping for one channel in the specified drawable. The drawable must be either grayscale or RGB, and the channel can be either an intensity component, or the value. The 'curve' parameter is an array of bytes which explicitly defines how each pixel value in the drawable will be modified. Use the 'gimp_curves_spline' function to modify intensity levels with Catmull Rom splines."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
|
|
@ -28,6 +28,8 @@
|
|||
#include "interface.h"
|
||||
#include "threshold.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#define TEXT_WIDTH 45
|
||||
#define HISTOGRAM_WIDTH 256
|
||||
#define HISTOGRAM_HEIGHT 150
|
||||
|
@ -292,7 +294,7 @@ tools_new_threshold ()
|
|||
|
||||
/* The tool options */
|
||||
if (!threshold_options)
|
||||
threshold_options = tools_register_no_options (THRESHOLD, "Threshold Options");
|
||||
threshold_options = tools_register_no_options (THRESHOLD, _("Threshold Options"));
|
||||
|
||||
/* The threshold dialog */
|
||||
if (!threshold_dialog)
|
||||
|
@ -339,7 +341,7 @@ threshold_initialize (GDisplay *gdisp)
|
|||
{
|
||||
if (drawable_indexed (gimage_active_drawable (gdisp->gimage)))
|
||||
{
|
||||
g_message ("Threshold does not operate on indexed drawables.");
|
||||
g_message (_("Threshold does not operate on indexed drawables."));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -372,8 +374,8 @@ threshold_initialize (GDisplay *gdisp)
|
|||
/* the action area structure */
|
||||
static ActionAreaItem action_items[] =
|
||||
{
|
||||
{ "OK", threshold_ok_callback, NULL, NULL },
|
||||
{ "Cancel", threshold_cancel_callback, NULL, NULL }
|
||||
{ N_("OK"), threshold_ok_callback, NULL, NULL },
|
||||
{ N_("Cancel"), threshold_cancel_callback, NULL, NULL }
|
||||
};
|
||||
|
||||
static ThresholdDialog *
|
||||
|
@ -394,7 +396,7 @@ threshold_new_dialog ()
|
|||
/* The shell and main vbox */
|
||||
td->shell = gtk_dialog_new ();
|
||||
gtk_window_set_wmclass (GTK_WINDOW (td->shell), "threshold", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (td->shell), "Threshold");
|
||||
gtk_window_set_title (GTK_WINDOW (td->shell), _("Threshold"));
|
||||
|
||||
/* handle the wm close signal */
|
||||
gtk_signal_connect (GTK_OBJECT (td->shell), "delete_event",
|
||||
|
@ -409,7 +411,7 @@ threshold_new_dialog ()
|
|||
hbox = gtk_hbox_new (TRUE, 2);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
|
||||
label = gtk_label_new ("Threshold Range: ");
|
||||
label = gtk_label_new (_("Threshold Range: "));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
@ -454,7 +456,7 @@ threshold_new_dialog ()
|
|||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
|
||||
/* The preview toggle */
|
||||
toggle = gtk_check_button_new_with_label ("Preview");
|
||||
toggle = gtk_check_button_new_with_label (_("Preview"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), td->preview);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
|
@ -484,7 +486,7 @@ static void
|
|||
threshold_preview (ThresholdDialog *td)
|
||||
{
|
||||
if (!td->image_map)
|
||||
g_message ("threshold_preview(): No image map");
|
||||
g_message (_("threshold_preview(): No image map"));
|
||||
image_map_apply (td->image_map, threshold, (void *) td);
|
||||
}
|
||||
|
||||
|
@ -611,27 +613,27 @@ ProcArg threshold_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_DRAWABLE,
|
||||
"drawable",
|
||||
"the drawable"
|
||||
N_("the drawable")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"low_threshold",
|
||||
"the low threshold value: (0 <= low_threshold <= 255)"
|
||||
N_("the low threshold value: (0 <= low_threshold <= 255)")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"high_threshold",
|
||||
"the high threshold value: (0 <= high_threshold <= 255)"
|
||||
N_("the high threshold value: (0 <= high_threshold <= 255)")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord threshold_proc =
|
||||
{
|
||||
"gimp_threshold",
|
||||
"Threshold the specified drawable",
|
||||
"This procedures generates a threshold map of the specified drawable. All pixels between the values of 'low_threshold' and 'high_threshold' are replaced with white, and all other pixels with black.",
|
||||
N_("Threshold the specified drawable"),
|
||||
N_("This procedures generates a threshold map of the specified drawable. All pixels between the values of 'low_threshold' and 'high_threshold' are replaced with white, and all other pixels with black."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1997",
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
|
||||
#include "tile_pvt.h" /* ick. */
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#include "stdio.h"
|
||||
|
||||
/* This is the percentage of the maximum cache size that should be cleared
|
||||
|
@ -109,7 +111,7 @@ tile_cache_insert (Tile *tile)
|
|||
{
|
||||
if (!tile_cache_zorch_next())
|
||||
{
|
||||
g_warning ("cache: unable to find room for a tile");
|
||||
g_warning (_("cache: unable to find room for a tile"));
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
|
@ -261,7 +263,7 @@ tile_idle_thread (void *data)
|
|||
TileList *list;
|
||||
int count;
|
||||
|
||||
fprintf (stderr,"starting tile preswapper\n");
|
||||
fprintf (stderr,_("starting tile preswapper\n"));
|
||||
|
||||
count = 0;
|
||||
while(1)
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
#include "tile_manager_pvt.h"
|
||||
#include "tile_pvt.h" /* ick. */
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
static int tile_manager_get_tile_num (TileManager *tm,
|
||||
int xpixel,
|
||||
int ypixel);
|
||||
|
@ -306,7 +308,7 @@ tile_manager_map_tile (TileManager *tm,
|
|||
if ((xpixel < 0) || (xpixel >= tm->width) ||
|
||||
(ypixel < 0) || (ypixel >= tm->height))
|
||||
{
|
||||
g_warning ("tile_manager_map_tile: tile co-ord out of range.");
|
||||
g_warning (_("tile_manager_map_tile: tile co-ord out of range."));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -334,7 +336,7 @@ tile_manager_map (TileManager *tm,
|
|||
|
||||
if ((tile_num < 0) || (tile_num >= ntiles))
|
||||
{
|
||||
g_warning ("tile_manager_map: tile out of range.");
|
||||
g_warning (_("tile_manager_map: tile out of range."));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -380,7 +382,7 @@ tile_manager_map (TileManager *tm,
|
|||
if ((*tile_ptr)->ewidth != srctile->ewidth ||
|
||||
(*tile_ptr)->eheight != srctile->eheight ||
|
||||
(*tile_ptr)->bpp != srctile->bpp) {
|
||||
g_warning ("tile_manager_map: nonconformant map (%p -> %p)",
|
||||
g_warning (_("tile_manager_map: nonconformant map (%p -> %p)"),
|
||||
srctile, *tile_ptr);
|
||||
}
|
||||
tile_detach (*tile_ptr, tm, tile_num);
|
||||
|
@ -461,7 +463,7 @@ tile_manager_get_tile_coordinates (TileManager *tm, Tile *tile, int *x, int *y)
|
|||
|
||||
if (tl == NULL)
|
||||
{
|
||||
g_warning ("tile_manager_get_tile_coordinates: tile not attached to manager");
|
||||
g_warning (_("tile_manager_get_tile_coordinates: tile not attached to manager"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -482,7 +484,7 @@ tile_manager_map_over_tile (TileManager *tm, Tile *tile, Tile *srctile)
|
|||
|
||||
if (tl == NULL)
|
||||
{
|
||||
g_warning ("tile_manager_map_over_tile: tile not attached to manager");
|
||||
g_warning (_("tile_manager_map_over_tile: tile not attached to manager"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
#include <pthread.h>
|
||||
#endif
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#define MAX_OPEN_SWAP_FILES 16
|
||||
|
||||
|
@ -133,7 +134,7 @@ tile_swap_exit1 (gpointer key,
|
|||
DefSwapFile *def_swap_file;
|
||||
|
||||
if (tile_ref_count != 0)
|
||||
g_message ("tile ref count balance: %d\n", tile_ref_count);
|
||||
g_message (_("tile ref count balance: %d\n"), tile_ref_count);
|
||||
|
||||
swap_file = value;
|
||||
if (swap_file->swap_func == tile_swap_default)
|
||||
|
@ -141,7 +142,7 @@ tile_swap_exit1 (gpointer key,
|
|||
def_swap_file = swap_file->user_data;
|
||||
if (def_swap_file->swap_file_end != 0)
|
||||
{
|
||||
g_message ("swap file not empty: \"%s\"\n", swap_file->filename);
|
||||
g_message (_("swap file not empty: \"%s\"\n"), swap_file->filename);
|
||||
tile_swap_print_gaps (def_swap_file);
|
||||
}
|
||||
|
||||
|
@ -313,7 +314,7 @@ tile_swap_command (Tile *tile,
|
|||
swap_file = g_hash_table_lookup (swap_files, &tile->swap_num);
|
||||
if (!swap_file)
|
||||
{
|
||||
g_message ("could not find swap file for tile");
|
||||
g_message (_("could not find swap file for tile"));
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
@ -352,7 +353,7 @@ tile_swap_open (SwapFile *swap_file)
|
|||
swap_file->fd = open (swap_file->filename, O_CREAT|O_RDWR, S_IRUSR|S_IWUSR);
|
||||
if (swap_file->fd == -1)
|
||||
{
|
||||
g_message ("unable to open swap file...BAD THINGS WILL HAPPEN SOON");
|
||||
g_message (_("unable to open swap file...BAD THINGS WILL HAPPEN SOON"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -394,7 +395,7 @@ tile_swap_default (int fd,
|
|||
tile_swap_default_delete (def_swap_file, fd, tile);
|
||||
break;
|
||||
case SWAP_COMPRESS:
|
||||
g_message ("tile_swap_default: SWAP_COMPRESS: UNFINISHED");
|
||||
g_message (_("tile_swap_default: SWAP_COMPRESS: UNFINISHED"));
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -472,7 +473,7 @@ tile_swap_default_in (DefSwapFile *def_swap_file,
|
|||
if (offset == -1)
|
||||
{
|
||||
if (seek_err_msg)
|
||||
g_message ("unable to seek to tile location on disk: %d", err);
|
||||
g_message (_("unable to seek to tile location on disk: %d"), err);
|
||||
seek_err_msg = FALSE;
|
||||
return;
|
||||
}
|
||||
|
@ -491,7 +492,7 @@ tile_swap_default_in (DefSwapFile *def_swap_file,
|
|||
if (err <= 0)
|
||||
{
|
||||
if (read_err_msg)
|
||||
g_message ("unable to read tile data from disk: %d/%d ( %d ) bytes read", err, errno, nleft);
|
||||
g_message (_("unable to read tile data from disk: %d/%d ( %d ) bytes read"), err, errno, nleft);
|
||||
read_err_msg = FALSE;
|
||||
return;
|
||||
}
|
||||
|
@ -533,7 +534,7 @@ tile_swap_default_out (DefSwapFile *def_swap_file,
|
|||
if (offset == -1)
|
||||
{
|
||||
if (seek_err_msg)
|
||||
g_message ("unable to seek to tile location on disk: %d", errno);
|
||||
g_message (_("unable to seek to tile location on disk: %d"), errno);
|
||||
seek_err_msg = FALSE;
|
||||
return;
|
||||
}
|
||||
|
@ -546,7 +547,7 @@ tile_swap_default_out (DefSwapFile *def_swap_file,
|
|||
if (err <= 0)
|
||||
{
|
||||
if (write_err_msg)
|
||||
g_message ("unable to write tile data to disk: %d ( %d ) bytes written", err, nleft);
|
||||
g_message (_("unable to write tile data to disk: %d ( %d ) bytes written"), err, nleft);
|
||||
write_err_msg = FALSE;
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
#include "tile_manager.h"
|
||||
#include "tile_swap.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
/* EXPERIMENTAL Copy-On-Write goodies
|
||||
* by Adam D. Moss
|
||||
|
@ -163,12 +164,12 @@ tile_destroy (Tile *tile)
|
|||
{
|
||||
if (tile->ref_count)
|
||||
{
|
||||
g_warning ("tried to destroy a ref'd tile");
|
||||
g_warning (_("tried to destroy a ref'd tile"));
|
||||
return;
|
||||
}
|
||||
if (tile->share_count)
|
||||
{
|
||||
g_warning ("tried to destroy an attached tile");
|
||||
g_warning (_("tried to destroy an attached tile"));
|
||||
return;
|
||||
}
|
||||
if (tile->data)
|
||||
|
@ -281,7 +282,7 @@ tile_detach (Tile *tile, void *tm, int tile_num)
|
|||
|
||||
if (*link == NULL)
|
||||
{
|
||||
g_warning ("Tried to detach a nonattached tile");
|
||||
g_warning (_("Tried to detach a nonattached tile"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
11
app/batch.c
11
app/batch.c
|
@ -10,6 +10,7 @@
|
|||
#include "batch.h"
|
||||
#include "procedural_db.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
static void batch_run_cmd (char *cmd);
|
||||
static void batch_read (gpointer data,
|
||||
|
@ -31,7 +32,7 @@ batch_init ()
|
|||
eval_proc = procedural_db_lookup ("extension_script_fu_eval");
|
||||
if (!eval_proc)
|
||||
{
|
||||
g_message ("script-fu not available: batch mode disabled\n");
|
||||
g_message (_("script-fu not available: batch mode disabled\n"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -42,7 +43,7 @@ batch_init ()
|
|||
{
|
||||
if (!read_from_stdin)
|
||||
{
|
||||
g_print ("reading batch commands from stdin\n");
|
||||
g_print (_("reading batch commands from stdin\n"));
|
||||
gdk_input_add (STDIN_FILENO, GDK_INPUT_READ, batch_read, NULL);
|
||||
read_from_stdin = TRUE;
|
||||
}
|
||||
|
@ -79,13 +80,13 @@ batch_run_cmd (char *cmd)
|
|||
switch (vals[0].value.pdb_int)
|
||||
{
|
||||
case PDB_EXECUTION_ERROR:
|
||||
g_print ("batch command: experienced an execution error.\n");
|
||||
g_print (_("batch command: experienced an execution error.\n"));
|
||||
break;
|
||||
case PDB_CALLING_ERROR:
|
||||
g_print ("batch command: experienced a calling error.\n");
|
||||
g_print (_("batch command: experienced a calling error.\n"));
|
||||
break;
|
||||
case PDB_SUCCESS:
|
||||
g_print ("batch command: executed successfully.\n");
|
||||
g_print (_("batch command: executed successfully.\n"));
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
|
@ -30,6 +30,8 @@
|
|||
#include "interface.h"
|
||||
#include "actionarea.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
/* Bezier extensions made by Raphael FRANCOIS (fraph@ibm.net)
|
||||
|
||||
BEZIER_EXTENDS VER 1.0
|
||||
|
@ -435,7 +437,7 @@ bezier_select_button_press (Tool *tool,
|
|||
break;
|
||||
case BEZIER_EDIT:
|
||||
if (!bezier_sel->closed)
|
||||
fatal_error ("tried to edit on open bezier curve in edit selection");
|
||||
fatal_error (_("tried to edit on open bezier curve in edit selection"));
|
||||
|
||||
/* erase the handles */
|
||||
bezier_sel->draw = BEZIER_DRAW_HANDLES;
|
||||
|
@ -775,7 +777,7 @@ bezier_select_motion (Tool *tool,
|
|||
}
|
||||
|
||||
if (!anchor)
|
||||
fatal_error ("Encountered orphaned bezier control point");
|
||||
fatal_error (_("Encountered orphaned bezier control point"));
|
||||
|
||||
if (opposite_control)
|
||||
{
|
||||
|
@ -1132,7 +1134,7 @@ bezier_draw_segment (BezierSelect *bezier_sel,
|
|||
for (i = 0; i < 4; i++)
|
||||
{
|
||||
if (!points)
|
||||
fatal_error ("bad bezier segment");
|
||||
fatal_error (_("bad bezier segment"));
|
||||
|
||||
switch (space)
|
||||
{
|
||||
|
@ -1149,7 +1151,7 @@ bezier_draw_segment (BezierSelect *bezier_sel,
|
|||
geometry[i][1] = points->sy;
|
||||
break;
|
||||
default:
|
||||
fatal_error ("unknown coordinate space: %d", space);
|
||||
fatal_error (_("unknown coordinate space: %d"), space);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -1290,7 +1292,7 @@ bezier_convert (BezierSelect *bezier_sel,
|
|||
int i, j;
|
||||
|
||||
if (!bezier_sel->closed)
|
||||
fatal_error ("tried to convert an open bezier curve");
|
||||
fatal_error (_("tried to convert an open bezier curve"));
|
||||
|
||||
/* destroy previous mask */
|
||||
if (bezier_sel->mask)
|
||||
|
@ -1842,7 +1844,7 @@ static void file_ok_callback(GtkWidget * widget, gpointer client_data)
|
|||
pn_dlg = (PasteNamedDlg *) client_data;
|
||||
|
||||
f = fopen(filename, "rb");
|
||||
printf("reading %s\n", filename);
|
||||
printf(_("reading %s\n"), filename);
|
||||
|
||||
while(!feof(f))
|
||||
{
|
||||
|
@ -1856,9 +1858,9 @@ static void file_ok_callback(GtkWidget * widget, gpointer client_data)
|
|||
GString *s;
|
||||
|
||||
fclose(f);
|
||||
s = g_string_new ("Open failed: ");
|
||||
s = g_string_new (_("Open failed: "));
|
||||
|
||||
g_string_append (s, "Bezier Load");
|
||||
g_string_append (s, _("Bezier Load"));
|
||||
|
||||
g_message (s->str);
|
||||
|
||||
|
@ -1944,7 +1946,7 @@ static void file_cancel_callback(GtkWidget * widget, gpointer data)
|
|||
|
||||
static void make_file_dlg(gpointer data)
|
||||
{
|
||||
file_dlg = gtk_file_selection_new ("Load/Store Bezier Curves");
|
||||
file_dlg = gtk_file_selection_new (_("Load/Store Bezier Curves"));
|
||||
gtk_window_position (GTK_WINDOW (file_dlg), GTK_WIN_POS_MOUSE);
|
||||
gtk_signal_connect(GTK_OBJECT (GTK_FILE_SELECTION (file_dlg)->cancel_button),
|
||||
"clicked", (GtkSignalFunc) file_cancel_callback, data);
|
||||
|
@ -1964,7 +1966,7 @@ static void load_callback(GtkWidget * widget, gpointer data)
|
|||
if (GTK_WIDGET_VISIBLE(file_dlg))
|
||||
return;
|
||||
}
|
||||
gtk_window_set_title(GTK_WINDOW (file_dlg), "Load Bezier Curves");
|
||||
gtk_window_set_title(GTK_WINDOW (file_dlg), _("Load Bezier Curves"));
|
||||
load_store = 1;
|
||||
gtk_widget_show (file_dlg);
|
||||
}
|
||||
|
@ -1981,7 +1983,7 @@ static void store_callback(GtkWidget * widget, gpointer data)
|
|||
return;
|
||||
}
|
||||
|
||||
gtk_window_set_title(GTK_WINDOW (file_dlg), "Store Bezier Curves");
|
||||
gtk_window_set_title(GTK_WINDOW (file_dlg), _("Store Bezier Curves"));
|
||||
load_store = 0;
|
||||
gtk_widget_show (file_dlg);
|
||||
}
|
||||
|
@ -2061,8 +2063,8 @@ static void bezier_add_callback (GtkWidget *w,
|
|||
|
||||
pn_dlg = (PasteNamedDlg *) client_data;
|
||||
|
||||
query_string_box ("Named Bezier Buffer",
|
||||
"Enter a name for this buffer",
|
||||
query_string_box (_("Named Bezier Buffer"),
|
||||
_("Enter a name for this buffer"),
|
||||
NULL,
|
||||
new_bezier_buffer_callback,
|
||||
pn_dlg);
|
||||
|
@ -2099,9 +2101,9 @@ void create_choice(GtkWidget *box)
|
|||
char *name;
|
||||
int value;
|
||||
} menu_items[] = {
|
||||
{"Edit Curve", EXTEND_EDIT },
|
||||
{"Add Point", EXTEND_ADD },
|
||||
{"Remove Point", EXTEND_REMOVE},
|
||||
{N_("Edit Curve"), EXTEND_EDIT },
|
||||
{N_("Add Point"), EXTEND_ADD },
|
||||
{N_("Remove Point"), EXTEND_REMOVE},
|
||||
{ NULL, 0},
|
||||
};
|
||||
|
||||
|
@ -2114,7 +2116,7 @@ void create_choice(GtkWidget *box)
|
|||
gtk_box_pack_start(GTK_BOX(box), hbox, TRUE, FALSE, 10);
|
||||
gtk_widget_show(hbox);
|
||||
|
||||
w = gtk_label_new("Mode :");
|
||||
w = gtk_label_new(_("Mode :"));
|
||||
gtk_misc_set_alignment(GTK_MISC(w), 0.0, 0.5);
|
||||
gtk_box_pack_start(GTK_BOX(hbox), w, FALSE, FALSE, 0);
|
||||
gtk_widget_show(w);
|
||||
|
@ -2143,13 +2145,13 @@ static void bezier_named_buffer_proc (GDisplay *gdisp)
|
|||
int i;
|
||||
static ActionAreaItem action_items[] =
|
||||
{
|
||||
{ "New", bezier_new_curve_callback, NULL, NULL },
|
||||
{ "Add", bezier_add_callback, NULL, NULL },
|
||||
{ "Replace", bezier_replace_callback, NULL, NULL },
|
||||
{ "Paste", bezier_buffer_paste_callback, NULL, NULL },
|
||||
{ "Delete", bezier_buffer_delete_callback, NULL, NULL },
|
||||
{ "Load", load_callback, NULL, NULL },
|
||||
{ "Save", store_callback, NULL, NULL }
|
||||
{ N_("New"), bezier_new_curve_callback, NULL, NULL },
|
||||
{ N_("Add"), bezier_add_callback, NULL, NULL },
|
||||
{ N_("Replace"), bezier_replace_callback, NULL, NULL },
|
||||
{ N_("Paste"), bezier_buffer_paste_callback, NULL, NULL },
|
||||
{ N_("Delete"), bezier_buffer_delete_callback, NULL, NULL },
|
||||
{ N_("Load"), load_callback, NULL, NULL },
|
||||
{ N_("Save"), store_callback, NULL, NULL }
|
||||
};
|
||||
PasteNamedDlg *pn_dlg;
|
||||
GtkWidget *vbox;
|
||||
|
@ -2168,7 +2170,7 @@ static void bezier_named_buffer_proc (GDisplay *gdisp)
|
|||
|
||||
curPndlg = pn_dlg;
|
||||
|
||||
gtk_window_set_title (GTK_WINDOW (pn_dlg->shell), "Paste Bezier Named Buffer");
|
||||
gtk_window_set_title (GTK_WINDOW (pn_dlg->shell), _("Paste Bezier Named Buffer"));
|
||||
gtk_window_position (GTK_WINDOW (pn_dlg->shell), GTK_WIN_POS_MOUSE);
|
||||
|
||||
vbox = gtk_vbox_new (FALSE, 1);
|
||||
|
@ -2176,7 +2178,7 @@ static void bezier_named_buffer_proc (GDisplay *gdisp)
|
|||
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (pn_dlg->shell)->vbox), vbox, TRUE, TRUE, 0);
|
||||
gtk_widget_show (vbox);
|
||||
|
||||
label = gtk_label_new ("Select a buffer to operate:");
|
||||
label = gtk_label_new (_("Select a buffer to operate:"));
|
||||
gtk_box_pack_start (GTK_BOX (vbox), label, TRUE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
@ -2242,7 +2244,7 @@ add_point_on_segment (BezierSelect *bezier_sel,
|
|||
for (i = 0; i < 4; i++)
|
||||
{
|
||||
if (!points)
|
||||
fatal_error ("bad bezier segment");
|
||||
fatal_error (_("bad bezier segment"));
|
||||
|
||||
switch (space)
|
||||
{
|
||||
|
@ -2259,7 +2261,7 @@ add_point_on_segment (BezierSelect *bezier_sel,
|
|||
geometry[i][1] = points->sy;
|
||||
break;
|
||||
default:
|
||||
fatal_error ("unknown coordinate space: %d", space);
|
||||
fatal_error (_("unknown coordinate space: %d"), space);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
104
app/blend.c
104
app/blend.c
|
@ -37,6 +37,8 @@
|
|||
#include "tools.h"
|
||||
#include "undo.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#include "tile.h"
|
||||
|
||||
/* target size */
|
||||
|
@ -208,25 +210,25 @@ static PixelRegion distR =
|
|||
/* the blend option menu items -- the blend modes */
|
||||
static MenuItem blend_option_items[] =
|
||||
{
|
||||
{ "FG to BG (RGB)", 0, 0, blend_mode_callback, (gpointer) FG_BG_RGB_MODE, NULL, NULL },
|
||||
{ "FG to BG (HSV)", 0, 0, blend_mode_callback, (gpointer) FG_BG_HSV_MODE, NULL, NULL },
|
||||
{ "FG to Transparent", 0, 0, blend_mode_callback, (gpointer) FG_TRANS_MODE, NULL, NULL },
|
||||
{ "Custom (from editor)", 0, 0, blend_mode_callback, (gpointer) CUSTOM_MODE, NULL, NULL },
|
||||
{ N_("FG to BG RGB"), 0, 0, blend_mode_callback, (gpointer) FG_BG_RGB_MODE, NULL, NULL },
|
||||
{ N_("FG to BG HSV"), 0, 0, blend_mode_callback, (gpointer) FG_BG_HSV_MODE, NULL, NULL },
|
||||
{ N_("FG to Transparent"), 0, 0, blend_mode_callback, (gpointer) FG_TRANS_MODE, NULL, NULL },
|
||||
{ N_("Custom from editor"), 0, 0, blend_mode_callback, (gpointer) CUSTOM_MODE, NULL, NULL },
|
||||
{ NULL, 0, 0, NULL, NULL, NULL, NULL }
|
||||
};
|
||||
|
||||
/* the gradient option menu items -- the gradient modes */
|
||||
static MenuItem gradient_option_items[] =
|
||||
{
|
||||
{ "Linear", 0, 0, gradient_type_callback, (gpointer) Linear, NULL, NULL },
|
||||
{ "Bi-Linear", 0, 0, gradient_type_callback, (gpointer) BiLinear, NULL, NULL },
|
||||
{ "Radial", 0, 0, gradient_type_callback, (gpointer) Radial, NULL, NULL },
|
||||
{ "Square", 0, 0, gradient_type_callback, (gpointer) Square, NULL, NULL },
|
||||
{ "Conical (symmetric)", 0, 0, gradient_type_callback, (gpointer) ConicalSymmetric, NULL, NULL },
|
||||
{ "Conical (asymmetric)", 0, 0, gradient_type_callback, (gpointer) ConicalAsymmetric, NULL, NULL },
|
||||
{ "Shapeburst (angular)", 0, 0, gradient_type_callback, (gpointer) ShapeburstAngular, NULL, NULL },
|
||||
{ "Shapeburst (spherical)", 0, 0, gradient_type_callback, (gpointer) ShapeburstSpherical, NULL, NULL },
|
||||
{ "Shapeburst (dimpled)", 0, 0, gradient_type_callback, (gpointer) ShapeburstDimpled, NULL, NULL },
|
||||
{ N_("Linear"), 0, 0, gradient_type_callback, (gpointer) Linear, NULL, NULL },
|
||||
{ N_("Bi-Linear"), 0, 0, gradient_type_callback, (gpointer) BiLinear, NULL, NULL },
|
||||
{ N_("Radial"), 0, 0, gradient_type_callback, (gpointer) Radial, NULL, NULL },
|
||||
{ N_("Square"), 0, 0, gradient_type_callback, (gpointer) Square, NULL, NULL },
|
||||
{ N_("Conical (symmetric)"), 0, 0, gradient_type_callback, (gpointer) ConicalSymmetric, NULL, NULL },
|
||||
{ N_("Conical (asymmetric)"), 0, 0, gradient_type_callback, (gpointer) ConicalAsymmetric, NULL, NULL },
|
||||
{ N_("Shapeburst (angular)"), 0, 0, gradient_type_callback, (gpointer) ShapeburstAngular, NULL, NULL },
|
||||
{ N_("Shapeburst (spherical)"), 0, 0, gradient_type_callback, (gpointer) ShapeburstSpherical, NULL, NULL },
|
||||
{ N_("Shapeburst (dimpled)"), 0, 0, gradient_type_callback, (gpointer) ShapeburstDimpled, NULL, NULL },
|
||||
{ NULL, 0, 0, NULL, NULL, NULL, NULL }
|
||||
};
|
||||
|
||||
|
@ -237,9 +239,9 @@ static BlendOptions *blend_options = NULL;
|
|||
|
||||
static MenuItem repeat_option_items[] =
|
||||
{
|
||||
{ "None", 0, 0, repeat_type_callback, (gpointer) REPEAT_NONE, NULL, NULL },
|
||||
{ "Sawtooth wave", 0, 0, repeat_type_callback, (gpointer) REPEAT_SAWTOOTH, NULL, NULL },
|
||||
{ "Triangular wave", 0, 0, repeat_type_callback, (gpointer) REPEAT_TRIANGULAR, NULL, NULL },
|
||||
{ N_("None"), 0, 0, repeat_type_callback, (gpointer) REPEAT_NONE, NULL, NULL },
|
||||
{ N_("Sawtooth wave"), 0, 0, repeat_type_callback, (gpointer) REPEAT_SAWTOOTH, NULL, NULL },
|
||||
{ N_("Triangular wave"), 0, 0, repeat_type_callback, (gpointer) REPEAT_TRIANGULAR, NULL, NULL },
|
||||
{ NULL, 0, 0, NULL, NULL, NULL, NULL }
|
||||
};
|
||||
|
||||
|
@ -355,7 +357,7 @@ create_blend_options ()
|
|||
vbox = gtk_vbox_new (FALSE, 2);
|
||||
|
||||
/* the main label */
|
||||
label = gtk_label_new ("Blend Options");
|
||||
label = gtk_label_new (_("Blend Options"));
|
||||
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
@ -365,7 +367,7 @@ create_blend_options ()
|
|||
gtk_box_pack_start(GTK_BOX(vbox), table, TRUE, TRUE, 0);
|
||||
|
||||
/* the opacity scale */
|
||||
label = gtk_label_new ("Opacity:");
|
||||
label = gtk_label_new (_("Opacity:"));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 1.0);
|
||||
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2);
|
||||
|
@ -383,7 +385,7 @@ create_blend_options ()
|
|||
gtk_widget_show (opacity_scale);
|
||||
|
||||
/* the offset scale */
|
||||
label = gtk_label_new ("Offset:");
|
||||
label = gtk_label_new (_("Offset:"));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 1.0);
|
||||
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2);
|
||||
|
@ -401,7 +403,7 @@ create_blend_options ()
|
|||
gtk_widget_show (offset_scale);
|
||||
|
||||
/* the paint mode menu */
|
||||
label = gtk_label_new ("Mode:");
|
||||
label = gtk_label_new (_("Mode:"));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 2, 3,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2);
|
||||
|
@ -414,7 +416,7 @@ create_blend_options ()
|
|||
gtk_widget_show (pm_option_menu);
|
||||
|
||||
/* the blend mode menu */
|
||||
label = gtk_label_new ("Blend:");
|
||||
label = gtk_label_new (_("Blend:"));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 3, 4,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2);
|
||||
|
@ -427,7 +429,7 @@ create_blend_options ()
|
|||
gtk_widget_show (bm_option_menu);
|
||||
|
||||
/* the gradient type menu */
|
||||
label = gtk_label_new ("Gradient:");
|
||||
label = gtk_label_new (_("Gradient:"));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 4, 5,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2);
|
||||
|
@ -441,7 +443,7 @@ create_blend_options ()
|
|||
|
||||
/* the repeat option */
|
||||
|
||||
label = gtk_label_new("Repeat:");
|
||||
label = gtk_label_new(_("Repeat:"));
|
||||
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
|
||||
gtk_table_attach(GTK_TABLE(table), label, 0, 1, 5, 6,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2);
|
||||
|
@ -460,7 +462,7 @@ create_blend_options ()
|
|||
|
||||
/* supersampling toggle */
|
||||
|
||||
button = gtk_check_button_new_with_label("Adaptive supersampling");
|
||||
button = gtk_check_button_new_with_label(_("Adaptive supersampling"));
|
||||
gtk_box_pack_start(GTK_BOX(vbox), button, FALSE, FALSE, 0);
|
||||
gtk_signal_connect(GTK_OBJECT(button), "toggled",
|
||||
(GtkSignalFunc) supersample_toggle_update,
|
||||
|
@ -482,7 +484,7 @@ create_blend_options ()
|
|||
|
||||
/* max depth scale */
|
||||
|
||||
label = gtk_label_new("Max depth:");
|
||||
label = gtk_label_new(_("Max depth:"));
|
||||
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 1.0);
|
||||
gtk_table_attach(GTK_TABLE(table), label, 0, 1, 0, 1,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2);
|
||||
|
@ -501,7 +503,7 @@ create_blend_options ()
|
|||
|
||||
/* threshold scale */
|
||||
|
||||
label = gtk_label_new("Threshold:");
|
||||
label = gtk_label_new(_("Threshold:"));
|
||||
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 1.0);
|
||||
gtk_table_attach(GTK_TABLE(table), label, 0, 1, 1, 2,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2);
|
||||
|
@ -555,7 +557,7 @@ blend_button_press (Tool *tool,
|
|||
switch (drawable_type (gimage_active_drawable (gdisp->gimage)))
|
||||
{
|
||||
case INDEXED_GIMAGE: case INDEXEDA_GIMAGE:
|
||||
g_message ("Blend: Invalid for indexed images.");
|
||||
g_message (_("Blend: Invalid for indexed images."));
|
||||
return;
|
||||
|
||||
break;
|
||||
|
@ -580,7 +582,7 @@ blend_button_press (Tool *tool,
|
|||
|
||||
/* initialize the statusbar display */
|
||||
blend_tool->context_id = gtk_statusbar_get_context_id (GTK_STATUSBAR (gdisp->statusbar), "blend");
|
||||
gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), blend_tool->context_id, "Blend: 0, 0");
|
||||
gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), blend_tool->context_id, _("Blend: 0, 0"));
|
||||
|
||||
/* Start drawing the blend tool */
|
||||
draw_core_start (blend_tool->core, gdisp->canvas->window, tool);
|
||||
|
@ -636,7 +638,7 @@ blend_button_release (Tool *tool,
|
|||
if (return_vals[0].value.pdb_int == PDB_SUCCESS)
|
||||
gdisplays_flush ();
|
||||
else
|
||||
g_message ("Blend operation failed.");
|
||||
g_message (_("Blend operation failed."));
|
||||
|
||||
procedural_db_destroy_args (return_vals, nreturn_vals);
|
||||
}
|
||||
|
@ -662,7 +664,7 @@ blend_motion (Tool *tool,
|
|||
&blend_tool->endx, &blend_tool->endy, FALSE, 1);
|
||||
|
||||
gtk_statusbar_pop (GTK_STATUSBAR (gdisp->statusbar), blend_tool->context_id);
|
||||
g_snprintf (vector, STATUSBAR_SIZE, "Blend: %d, %d",
|
||||
g_snprintf (vector, STATUSBAR_SIZE, _("Blend: %d, %d"),
|
||||
abs(blend_tool->endx - blend_tool->startx),
|
||||
abs(blend_tool->endy - blend_tool->starty));
|
||||
gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), blend_tool->context_id, vector);
|
||||
|
@ -1248,7 +1250,7 @@ gradient_render_pixel(double x, double y, color_t *color, void *render_data)
|
|||
break;
|
||||
|
||||
default:
|
||||
fatal_error("gradient_render_pixel(): unknown gradient type %d",
|
||||
fatal_error(_("gradient_render_pixel(): unknown gradient type %d"),
|
||||
(int) rbd->gradient_type);
|
||||
return;
|
||||
}
|
||||
|
@ -1380,7 +1382,7 @@ gradient_fill_region (GImage *gimage,
|
|||
break;
|
||||
|
||||
default:
|
||||
fatal_error("gradient_fill_region(): unknown blend mode %d",
|
||||
fatal_error(_("gradient_fill_region(): unknown blend mode %d"),
|
||||
(int) blend_mode);
|
||||
break;
|
||||
}
|
||||
|
@ -1419,7 +1421,7 @@ gradient_fill_region (GImage *gimage,
|
|||
break;
|
||||
|
||||
default:
|
||||
fatal_error("gradient_fill_region(): unknown gradient type %d",
|
||||
fatal_error(_("gradient_fill_region(): unknown gradient type %d"),
|
||||
(int) gradient_type);
|
||||
break;
|
||||
}
|
||||
|
@ -1441,7 +1443,7 @@ gradient_fill_region (GImage *gimage,
|
|||
break;
|
||||
|
||||
default:
|
||||
fatal_error("gradient_fill_region(): unknown repeat mode %d",
|
||||
fatal_error(_("gradient_fill_region(): unknown repeat mode %d"),
|
||||
(int) repeat);
|
||||
break;
|
||||
}
|
||||
|
@ -1711,71 +1713,71 @@ ProcArg blend_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"The image"
|
||||
N_("The image")
|
||||
},
|
||||
{ PDB_DRAWABLE,
|
||||
"drawable",
|
||||
"The affected drawable"
|
||||
N_("The affected drawable")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"blend_mode",
|
||||
"The type of blend: { FG-BG-RGB (0), FG-BG-HSV (1), FG-TRANS (2), CUSTOM (3) }"
|
||||
N_("The type of blend: { FG-BG-RGB (0), FG-BG-HSV (1), FG-TRANS (2), CUSTOM (3) }")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"paint_mode",
|
||||
"the paint application mode: { NORMAL (0), DISSOLVE (1), BEHIND (2), MULTIPLY/BURN (3), SCREEN (4), OVERLAY (5) DIFFERENCE (6), ADDITION (7), SUBTRACT (8), DARKEN-ONLY (9), LIGHTEN-ONLY (10), HUE (11), SATURATION (12), COLOR (13), VALUE (14), DIVIDE/DODGE (15) }"
|
||||
N_("the paint application mode: { NORMAL (0), DISSOLVE (1), BEHIND (2), MULTIPLY/BURN (3), SCREEN (4), OVERLAY (5) DIFFERENCE (6), ADDITION (7), SUBTRACT (8), DARKEN-ONLY (9), LIGHTEN-ONLY (10), HUE (11), SATURATION (12), COLOR (13), VALUE (14), DIVIDE/DODGE (15) }")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"gradient_type",
|
||||
"The type of gradient: { LINEAR (0), BILINEAR (1), RADIAL (2), SQUARE (3), CONICAL-SYMMETRIC (4), CONICAL-ASYMMETRIC (5), SHAPEBURST-ANGULAR (6), SHAPEBURST-SPHERICAL (7), SHAPEBURST-DIMPLED (8) }"
|
||||
N_("The type of gradient: { LINEAR (0), BILINEAR (1), RADIAL (2), SQUARE (3), CONICAL-SYMMETRIC (4), CONICAL-ASYMMETRIC (5), SHAPEBURST-ANGULAR (6), SHAPEBURST-SPHERICAL (7), SHAPEBURST-DIMPLED (8) }")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"opacity",
|
||||
"The opacity of the final blend (0 <= opacity <= 100)"
|
||||
N_("The opacity of the final blend (0 <= opacity <= 100)")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"offset",
|
||||
"Offset relates to the starting and ending coordinates specified for the blend. This parameter is mode depndent (0 <= offset)"
|
||||
N_("Offset relates to the starting and ending coordinates specified for the blend. This parameter is mode depndent (0 <= offset)")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"repeat",
|
||||
"Repeat mode: { REPEAT-NONE (0), REPEAT-SAWTOOTH (1), REPEAT-TRIANGULAR (2) }"
|
||||
N_("Repeat mode: { REPEAT-NONE (0), REPEAT-SAWTOOTH (1), REPEAT-TRIANGULAR (2) }")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"supersample",
|
||||
"Do adaptive supersampling (true / false)"
|
||||
N_("Do adaptive supersampling (true / false)")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"max_depth",
|
||||
"Maximum recursion levels for supersampling"
|
||||
N_("Maximum recursion levels for supersampling")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"threshold",
|
||||
"Supersampling threshold"
|
||||
N_("Supersampling threshold")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"x1",
|
||||
"The x coordinate of this blend's starting point"
|
||||
N_("The x coordinate of this blend's starting point")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"y1",
|
||||
"The y coordinate of this blend's starting point"
|
||||
N_("The y coordinate of this blend's starting point")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"x2",
|
||||
"The x coordinate of this blend's ending point"
|
||||
N_("The x coordinate of this blend's ending point")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"y2",
|
||||
"The y coordinate of this blend's ending point"
|
||||
N_("The y coordinate of this blend's ending point")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord blend_proc =
|
||||
{
|
||||
"gimp_blend",
|
||||
"Blend between the starting and ending coordinates with the specified blend mode and gradient type.",
|
||||
"This tool requires information on the paint application mode, the blend mode, and the gradient type. It creates the specified variety of blend using the starting and ending coordinates as defined for each gradient type.",
|
||||
N_("Blend between the starting and ending coordinates with the specified blend mode and gradient type."),
|
||||
N_("This tool requires information on the paint application mode, the blend mode, and the gradient type. It creates the specified variety of blend using the starting and ending coordinates as defined for each gradient type."),
|
||||
"Spencer Kimball & Peter Mattis & Federico Mena Quintero",
|
||||
"Spencer Kimball & Peter Mattis & Federico Mena Quintero",
|
||||
"1995-1996",
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
|
||||
/* The GIMP -- an image manipulation program
|
||||
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
||||
*
|
||||
|
@ -21,6 +22,8 @@
|
|||
#include "errors.h"
|
||||
#include "boundary.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#include "tile.h"
|
||||
|
||||
/* half intensity for mask */
|
||||
|
@ -171,7 +174,7 @@ make_seg (int x1,
|
|||
sizeof (BoundSeg) * max_segs);
|
||||
|
||||
if (!tmp_segs)
|
||||
fatal_error ("Unable to reallocate segments array for mask boundary.");
|
||||
fatal_error (_("Unable to reallocate segments array for mask boundary."));
|
||||
}
|
||||
|
||||
tmp_segs[num_segs].x1 = x1;
|
||||
|
@ -213,7 +216,7 @@ allocate_empty_segs (void)
|
|||
empty_segs_l = (int *) g_realloc (empty_segs_l, sizeof (int) * max_empty_segs);
|
||||
|
||||
if (!empty_segs_n || !empty_segs_l || !empty_segs_c)
|
||||
fatal_error ("Unable to reallocate empty segments array for mask boundary.");
|
||||
fatal_error (_("Unable to reallocate empty segments array for mask boundary."));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -468,7 +471,7 @@ sort_boundary (BoundSeg *segs,
|
|||
}
|
||||
|
||||
if (x != startx || y != starty)
|
||||
g_message ("sort_boundary(): Unconnected boundary group!");
|
||||
g_message (_("sort_boundary(): Unconnected boundary group!"));
|
||||
|
||||
/* Mark the end of a group */
|
||||
*num_groups = *num_groups + 1;
|
||||
|
|
|
@ -28,6 +28,8 @@
|
|||
#include "image_map.h"
|
||||
#include "interface.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#define TEXT_WIDTH 45
|
||||
#define TEXT_HEIGHT 25
|
||||
#define SLIDER_WIDTH 200
|
||||
|
@ -240,7 +242,7 @@ tools_new_brightness_contrast ()
|
|||
/* The tool options */
|
||||
if (!brightness_contrast_options)
|
||||
brightness_contrast_options = tools_register_no_options (BRIGHTNESS_CONTRAST,
|
||||
"Brightness-Contrast Options");
|
||||
_("Brightness-Contrast Options"));
|
||||
|
||||
tool = (Tool *) g_malloc (sizeof (Tool));
|
||||
private = (BrightnessContrast *) g_malloc (sizeof (BrightnessContrast));
|
||||
|
@ -282,7 +284,7 @@ brightness_contrast_initialize (GDisplay *gdisp)
|
|||
{
|
||||
if (drawable_indexed (gimage_active_drawable (gdisp->gimage)))
|
||||
{
|
||||
g_message ("Brightness-Contrast does not operate on indexed drawables.");
|
||||
g_message (_("Brightness-Contrast does not operate on indexed drawables."));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -313,8 +315,8 @@ brightness_contrast_initialize (GDisplay *gdisp)
|
|||
/* the action area structure */
|
||||
static ActionAreaItem action_items[] =
|
||||
{
|
||||
{ "OK", brightness_contrast_ok_callback, NULL, NULL },
|
||||
{ "Cancel", brightness_contrast_cancel_callback, NULL, NULL }
|
||||
{ N_("OK"), brightness_contrast_ok_callback, NULL, NULL },
|
||||
{ N_("Cancel"), brightness_contrast_cancel_callback, NULL, NULL }
|
||||
};
|
||||
|
||||
static BrightnessContrastDialog *
|
||||
|
@ -335,7 +337,7 @@ brightness_contrast_new_dialog ()
|
|||
/* The shell and main vbox */
|
||||
bcd->shell = gtk_dialog_new ();
|
||||
gtk_window_set_wmclass (GTK_WINDOW (bcd->shell), "brightness_contrast", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (bcd->shell), "Brightness-Contrast");
|
||||
gtk_window_set_title (GTK_WINDOW (bcd->shell), N_("Brightness-Contrast"));
|
||||
|
||||
/* handle wm close signal */
|
||||
gtk_signal_connect (GTK_OBJECT (bcd->shell), "delete_event",
|
||||
|
@ -351,7 +353,7 @@ brightness_contrast_new_dialog ()
|
|||
gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, FALSE, 0);
|
||||
|
||||
/* Create the brightness scale widget */
|
||||
label = gtk_label_new ("Brightness");
|
||||
label = gtk_label_new (_("Brightness"));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
|
||||
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2);
|
||||
|
@ -385,7 +387,7 @@ brightness_contrast_new_dialog ()
|
|||
|
||||
|
||||
/* Create the contrast scale widget */
|
||||
label = gtk_label_new ("Contrast");
|
||||
label = gtk_label_new (_("Contrast"));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
|
||||
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2);
|
||||
|
@ -423,7 +425,7 @@ brightness_contrast_new_dialog ()
|
|||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
|
||||
/* The preview toggle */
|
||||
toggle = gtk_check_button_new_with_label ("Preview");
|
||||
toggle = gtk_check_button_new_with_label (_("Preview"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), bcd->preview);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
|
@ -479,7 +481,7 @@ static void
|
|||
brightness_contrast_preview (BrightnessContrastDialog *bcd)
|
||||
{
|
||||
if (!bcd->image_map)
|
||||
g_message ("brightness_contrast_preview(): No image map");
|
||||
g_message (_("brightness_contrast_preview(): No image map"));
|
||||
active_tool->preserve = TRUE;
|
||||
image_map_apply (bcd->image_map, brightness_contrast, (void *) bcd);
|
||||
active_tool->preserve = FALSE;
|
||||
|
@ -643,27 +645,27 @@ ProcArg brightness_contrast_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_DRAWABLE,
|
||||
"drawable",
|
||||
"the drawable"
|
||||
N_("the drawable")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"brightness",
|
||||
"brightness adjustment: (-127 <= brightness <= 127)"
|
||||
N_("brightness adjustment: (-127 <= brightness <= 127)")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"contrast",
|
||||
"constrast adjustment: (-127 <= contrast <= 127)"
|
||||
N_("constrast adjustment: (-127 <= contrast <= 127)")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord brightness_contrast_proc =
|
||||
{
|
||||
"gimp_brightness_contrast",
|
||||
"Modify brightness/contrast in the specified drawable",
|
||||
"This procedures allows the brightness and contrast of the specified drawable to be modified. Both 'brightness' and 'contrast' parameters are defined between -127 and 127.",
|
||||
N_("Modify brightness/contrast in the specified drawable"),
|
||||
N_("This procedures allows the brightness and contrast of the specified drawable to be modified. Both 'brightness' and 'contrast' parameters are defined between -127 and 127."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1997",
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include "actionarea.h"
|
||||
#include "math.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
static void brush_edit_close_callback (GtkWidget *w, void *data);
|
||||
static gint brush_edit_preview_resize (GtkWidget *widget, GdkEvent *event,
|
||||
|
@ -34,7 +35,7 @@ static gint brush_edit_preview_resize (GtkWidget *widget, GdkEvent *event,
|
|||
/* the action area structure */
|
||||
static ActionAreaItem action_items[] =
|
||||
{
|
||||
{ "Close", brush_edit_close_callback, NULL, NULL }
|
||||
{ N_("Close"), brush_edit_close_callback, NULL, NULL }
|
||||
};
|
||||
|
||||
static void
|
||||
|
@ -196,7 +197,7 @@ brush_edit_generated_new ()
|
|||
begw->shell = gtk_dialog_new ();
|
||||
gtk_window_set_wmclass (GTK_WINDOW (begw->shell), "generatedbrusheditor",
|
||||
"Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (begw->shell), "Brush Editor");
|
||||
gtk_window_set_title (GTK_WINDOW (begw->shell), _("Brush Editor"));
|
||||
gtk_window_set_policy(GTK_WINDOW(begw->shell), FALSE, TRUE, FALSE);
|
||||
|
||||
vbox = gtk_vbox_new (FALSE, 1);
|
||||
|
@ -236,7 +237,7 @@ brush_edit_generated_new ()
|
|||
gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, FALSE, 0);
|
||||
|
||||
/* brush radius scale */
|
||||
label = gtk_label_new ("Radius:");
|
||||
label = gtk_label_new (_("Radius:"));
|
||||
gtk_misc_set_alignment (GTK_MISC(label), 1.0, 0.5);
|
||||
/* gtk_table_attach(GTK_TABLE (table), label, 0, 1, 0, 1, 0, 0, 0, 0); */
|
||||
gtk_table_attach(GTK_TABLE (table), label, 0, 1, 0, 1, 3, 0, 0, 0);
|
||||
|
@ -253,7 +254,7 @@ brush_edit_generated_new ()
|
|||
|
||||
/* brush hardness scale */
|
||||
|
||||
label = gtk_label_new ("Hardness:");
|
||||
label = gtk_label_new (_("Hardness:"));
|
||||
gtk_misc_set_alignment (GTK_MISC(label), 1.0, 0.5);
|
||||
gtk_table_attach(GTK_TABLE (table), label, 0, 1, 1, 2, 0, 0, 0, 0);
|
||||
begw->hardness_data = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 1.0, 0.01, 0.01, 0.0));
|
||||
|
@ -269,7 +270,7 @@ brush_edit_generated_new ()
|
|||
|
||||
/* brush aspect ratio scale */
|
||||
|
||||
label = gtk_label_new ("Aspect Ratio:");
|
||||
label = gtk_label_new (_("Aspect Ratio:"));
|
||||
gtk_misc_set_alignment (GTK_MISC(label), 1.0, 0.5);
|
||||
gtk_table_attach(GTK_TABLE (table), label, 0, 1, 2, 3, 0, 0, 0, 0);
|
||||
begw->aspect_ratio_data = GTK_ADJUSTMENT (gtk_adjustment_new (1.0, 1.0, 20.0, 0.1, 1.0, 0.0));
|
||||
|
@ -285,7 +286,7 @@ brush_edit_generated_new ()
|
|||
|
||||
/* brush angle scale */
|
||||
|
||||
label = gtk_label_new ("Angle:");
|
||||
label = gtk_label_new (_("Angle:"));
|
||||
gtk_misc_set_alignment (GTK_MISC(label), 1.0, 0.5);
|
||||
gtk_table_attach(GTK_TABLE (table), label, 0, 1, 3, 4, 0, 0, 0, 0);
|
||||
begw->angle_data = GTK_ADJUSTMENT (gtk_adjustment_new (00.0, 0.0, 180.0, 0.1, 1.0, 0.0));
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#include "paint_funcs.h"
|
||||
#include "session.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#define STD_CELL_WIDTH 24
|
||||
#define STD_CELL_HEIGHT 24
|
||||
|
@ -91,30 +92,30 @@ static void spacing_scale_update (GtkAdjustment *, gpointer);
|
|||
/* the option menu items -- the paint modes */
|
||||
static MenuItem option_items[] =
|
||||
{
|
||||
{ "Normal", 0, 0, paint_mode_menu_callback, (gpointer) NORMAL_MODE, NULL, NULL },
|
||||
{ "Dissolve", 0, 0, paint_mode_menu_callback, (gpointer) DISSOLVE_MODE, NULL, NULL },
|
||||
{ "Behind", 0, 0, paint_mode_menu_callback, (gpointer) BEHIND_MODE, NULL, NULL },
|
||||
{ "Multiply (Burn)", 0, 0, paint_mode_menu_callback, (gpointer) MULTIPLY_MODE, NULL, NULL },
|
||||
{ "Divide (Dodge)", 0, 0, paint_mode_menu_callback, (gpointer) DIVIDE_MODE, NULL, NULL },
|
||||
{ "Screen", 0, 0, paint_mode_menu_callback, (gpointer) SCREEN_MODE, NULL, NULL },
|
||||
{ "Overlay", 0, 0, paint_mode_menu_callback, (gpointer) OVERLAY_MODE, NULL, NULL },
|
||||
{ "Difference", 0, 0, paint_mode_menu_callback, (gpointer) DIFFERENCE_MODE, NULL, NULL },
|
||||
{ "Addition", 0, 0, paint_mode_menu_callback, (gpointer) ADDITION_MODE, NULL, NULL },
|
||||
{ "Subtract", 0, 0, paint_mode_menu_callback, (gpointer) SUBTRACT_MODE, NULL, NULL },
|
||||
{ "Darken Only", 0, 0, paint_mode_menu_callback, (gpointer) DARKEN_ONLY_MODE, NULL, NULL },
|
||||
{ "Lighten Only", 0, 0, paint_mode_menu_callback, (gpointer) LIGHTEN_ONLY_MODE, NULL, NULL },
|
||||
{ "Hue", 0, 0, paint_mode_menu_callback, (gpointer) HUE_MODE, NULL, NULL },
|
||||
{ "Saturation", 0, 0, paint_mode_menu_callback, (gpointer) SATURATION_MODE, NULL, NULL },
|
||||
{ "Color", 0, 0, paint_mode_menu_callback, (gpointer) COLOR_MODE, NULL, NULL },
|
||||
{ "Value", 0, 0, paint_mode_menu_callback, (gpointer) VALUE_MODE, NULL, NULL },
|
||||
{ N_("Normal"), 0, 0, paint_mode_menu_callback, (gpointer) NORMAL_MODE, NULL, NULL },
|
||||
{ N_("Dissolve"), 0, 0, paint_mode_menu_callback, (gpointer) DISSOLVE_MODE, NULL, NULL },
|
||||
{ N_("Behind"), 0, 0, paint_mode_menu_callback, (gpointer) BEHIND_MODE, NULL, NULL },
|
||||
{ N_("Multiply (Burn)"), 0, 0, paint_mode_menu_callback, (gpointer) MULTIPLY_MODE, NULL, NULL },
|
||||
{ N_("Divide (Dodge)"), 0, 0, paint_mode_menu_callback, (gpointer) DIVIDE_MODE, NULL, NULL },
|
||||
{ N_("Screen"), 0, 0, paint_mode_menu_callback, (gpointer) SCREEN_MODE, NULL, NULL },
|
||||
{ N_("Overlay"), 0, 0, paint_mode_menu_callback, (gpointer) OVERLAY_MODE, NULL, NULL },
|
||||
{ N_("Difference"), 0, 0, paint_mode_menu_callback, (gpointer) DIFFERENCE_MODE, NULL, NULL },
|
||||
{ N_("Addition"), 0, 0, paint_mode_menu_callback, (gpointer) ADDITION_MODE, NULL, NULL },
|
||||
{ N_("Subtract"), 0, 0, paint_mode_menu_callback, (gpointer) SUBTRACT_MODE, NULL, NULL },
|
||||
{ N_("Darken Only"), 0, 0, paint_mode_menu_callback, (gpointer) DARKEN_ONLY_MODE, NULL, NULL },
|
||||
{ N_("Lighten Only"), 0, 0, paint_mode_menu_callback, (gpointer) LIGHTEN_ONLY_MODE, NULL, NULL },
|
||||
{ N_("Hue"), 0, 0, paint_mode_menu_callback, (gpointer) HUE_MODE, NULL, NULL },
|
||||
{ N_("Saturation"), 0, 0, paint_mode_menu_callback, (gpointer) SATURATION_MODE, NULL, NULL },
|
||||
{ N_("Color"), 0, 0, paint_mode_menu_callback, (gpointer) COLOR_MODE, NULL, NULL },
|
||||
{ N_("Value"), 0, 0, paint_mode_menu_callback, (gpointer) VALUE_MODE, NULL, NULL },
|
||||
{ NULL, 0, 0, NULL, NULL, NULL, NULL }
|
||||
};
|
||||
|
||||
/* the action area structure */
|
||||
static ActionAreaItem action_items[] =
|
||||
{
|
||||
{ "Close", brush_select_close_callback, NULL, NULL },
|
||||
{ "Refresh", brush_select_refresh_callback, NULL, NULL }
|
||||
{ N_("Close"), brush_select_close_callback, NULL, NULL },
|
||||
{ N_("Refresh"), brush_select_refresh_callback, NULL, NULL }
|
||||
};
|
||||
|
||||
static BrushEditGeneratedWindow *brush_edit_generated_dialog;
|
||||
|
@ -186,7 +187,7 @@ brush_select_new (gchar * title,
|
|||
|
||||
if(!title)
|
||||
{
|
||||
gtk_window_set_title (GTK_WINDOW (bsp->shell), "Brush Selection");
|
||||
gtk_window_set_title (GTK_WINDOW (bsp->shell), _("Brush Selection"));
|
||||
session_set_window_geometry (bsp->shell, &brush_select_session_info, TRUE);
|
||||
}
|
||||
else
|
||||
|
@ -254,7 +255,7 @@ brush_select_new (gchar * title,
|
|||
util_box = gtk_hbox_new (FALSE, 5);
|
||||
gtk_box_pack_start (GTK_BOX (bsp->options_box), util_box, FALSE, FALSE, 0);
|
||||
|
||||
bsp->brush_name = gtk_label_new ("Active");
|
||||
bsp->brush_name = gtk_label_new (_("Active"));
|
||||
gtk_box_pack_start (GTK_BOX (util_box), bsp->brush_name, FALSE, FALSE, 2);
|
||||
bsp->brush_size = gtk_label_new ("(0x0)");
|
||||
gtk_box_pack_start (GTK_BOX (util_box), bsp->brush_size, FALSE, FALSE, 2);
|
||||
|
@ -266,7 +267,7 @@ brush_select_new (gchar * title,
|
|||
/* Create the paint mode option menu */
|
||||
util_box = gtk_hbox_new (FALSE, 2);
|
||||
gtk_box_pack_start (GTK_BOX (bsp->options_box), util_box, FALSE, FALSE, 0);
|
||||
label = gtk_label_new ("Mode:");
|
||||
label = gtk_label_new (_("Mode:"));
|
||||
gtk_box_pack_start (GTK_BOX (util_box), label, FALSE, FALSE, 2);
|
||||
menu = create_paint_mode_menu (paint_mode_menu_callback,(gpointer)bsp);
|
||||
option_menu = gtk_option_menu_new ();
|
||||
|
@ -280,7 +281,7 @@ brush_select_new (gchar * title,
|
|||
/* Create the opacity scale widget */
|
||||
util_box = gtk_hbox_new (FALSE, 2);
|
||||
gtk_box_pack_start (GTK_BOX (bsp->options_box), util_box, FALSE, FALSE, 0);
|
||||
label = gtk_label_new ("Opacity:");
|
||||
label = gtk_label_new (_("Opacity:"));
|
||||
gtk_box_pack_start (GTK_BOX (util_box), label, FALSE, FALSE, 2);
|
||||
bsp->opacity_data =
|
||||
GTK_ADJUSTMENT (gtk_adjustment_new ((active)?init_opacity:100.0, 0.0, 100.0, 1.0, 1.0, 0.0));
|
||||
|
@ -297,7 +298,7 @@ brush_select_new (gchar * title,
|
|||
|
||||
util_box = gtk_hbox_new (FALSE, 2);
|
||||
gtk_box_pack_start (GTK_BOX (bsp->options_box), util_box, FALSE, FALSE, 0);
|
||||
label = gtk_label_new ("Spacing:");
|
||||
label = gtk_label_new (_("Spacing:"));
|
||||
gtk_box_pack_start (GTK_BOX (util_box), label, FALSE, FALSE, 2);
|
||||
bsp->spacing_data = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 1000.0, 1.0, 1.0, 0.0));
|
||||
slider = gtk_hscale_new (bsp->spacing_data);
|
||||
|
@ -314,7 +315,7 @@ brush_select_new (gchar * title,
|
|||
/* Create the edit/new buttons */
|
||||
util_box = gtk_hbox_new (FALSE, 2);
|
||||
gtk_box_pack_start (GTK_BOX (bsp->options_box), util_box, FALSE, FALSE, 0);
|
||||
bsp->edit_button = gtk_button_new_with_label ("Edit Brush");
|
||||
bsp->edit_button = gtk_button_new_with_label (_("Edit Brush"));
|
||||
gtk_signal_connect (GTK_OBJECT (bsp->edit_button), "clicked",
|
||||
(GtkSignalFunc) edit_brush_callback,
|
||||
NULL);
|
||||
|
@ -323,7 +324,7 @@ brush_select_new (gchar * title,
|
|||
|
||||
gtk_box_pack_start (GTK_BOX (util_box), bsp->edit_button, TRUE, TRUE, 5);
|
||||
|
||||
button2 = gtk_button_new_with_label ("New Brush");
|
||||
button2 = gtk_button_new_with_label (_("New Brush"));
|
||||
gtk_signal_connect (GTK_OBJECT (button2), "clicked",
|
||||
(GtkSignalFunc) new_brush_callback,
|
||||
NULL);
|
||||
|
@ -494,7 +495,7 @@ brush_change_callbacks(BrushSelectP bsp, gint closing)
|
|||
PDB_END);
|
||||
|
||||
if (!return_vals || return_vals[0].value.pdb_int != PDB_SUCCESS)
|
||||
g_message ("failed to run brush callback function");
|
||||
g_message (_("failed to run brush callback function"));
|
||||
|
||||
procedural_db_destroy_args (return_vals, nreturn_vals);
|
||||
}
|
||||
|
@ -1016,8 +1017,8 @@ edit_brush_callback (GtkWidget *w, GdkEvent *e, gpointer data)
|
|||
}
|
||||
}
|
||||
else
|
||||
g_message("We are all fresh out of brush editors today,\n"
|
||||
"please write your own or try back tomorrow\n");
|
||||
g_message(_("We are all fresh out of brush editors today,\n"
|
||||
"please write your own or try back tomorrow\n"));
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@ -1270,35 +1271,35 @@ ProcArg brushes_popup_in_args[] =
|
|||
{
|
||||
{ PDB_STRING,
|
||||
"brush_callback",
|
||||
"the callback PDB proc to call when brush selection is made"
|
||||
N_("the callback PDB proc to call when brush selection is made")
|
||||
},
|
||||
{ PDB_STRING,
|
||||
"popup title",
|
||||
"title to give the popup window",
|
||||
N_("title to give the popup window"),
|
||||
},
|
||||
{ PDB_STRING,
|
||||
"initial brush",
|
||||
"The name of the brush to set as the first selected",
|
||||
N_("The name of the brush to set as the first selected"),
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"initial opacity",
|
||||
"The initial opacity of the brush",
|
||||
N_("The initial opacity of the brush"),
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"initial spacing",
|
||||
"The initial spacing of the brush (if < 0 then use brush default spacing)",
|
||||
N_("The initial spacing of the brush (if < 0 then use brush default spacing)"),
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"initial paint mode",
|
||||
"The initial paint mode: { NORMAL (0), DISSOLVE (1), BEHIND (2), MULTIPLY/BURN (3), SCREEN (4), OVERLAY (5) DIFFERENCE (6), ADDITION (7), SUBTRACT (8), DARKEN-ONLY (9), LIGHTEN-ONLY (10), HUE (11), SATURATION (12), COLOR (13), VALUE (14), DIVIDE/DODGE (15) }",
|
||||
N_("The initial paint mode: { NORMAL (0), DISSOLVE (1), BEHIND (2), MULTIPLY/BURN (3), SCREEN (4), OVERLAY (5) DIFFERENCE (6), ADDITION (7), SUBTRACT (8), DARKEN-ONLY (9), LIGHTEN-ONLY (10), HUE (11), SATURATION (12), COLOR (13), VALUE (14), DIVIDE/DODGE (15) }"),
|
||||
},
|
||||
};
|
||||
|
||||
ProcRecord brushes_popup_proc =
|
||||
{
|
||||
"gimp_brushes_popup",
|
||||
"Invokes the Gimp brush selection",
|
||||
"This procedure popups the brush selection dialog",
|
||||
N_("Invokes the Gimp brush selection"),
|
||||
N_("This procedure popups the brush selection dialog"),
|
||||
"Andy Thomas",
|
||||
"Andy Thomas",
|
||||
"1998",
|
||||
|
|
|
@ -31,6 +31,8 @@
|
|||
#include "tools.h"
|
||||
#include "undo.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
/* the Bucket Fill structures */
|
||||
typedef enum
|
||||
{
|
||||
|
@ -141,8 +143,8 @@ create_bucket_options (void)
|
|||
int i;
|
||||
char *button_names[2] =
|
||||
{
|
||||
"Color Fill",
|
||||
"Pattern Fill"
|
||||
N_("Color Fill"),
|
||||
N_("Pattern Fill")
|
||||
};
|
||||
|
||||
/* the new options structure */
|
||||
|
@ -157,7 +159,7 @@ create_bucket_options (void)
|
|||
vbox = gtk_vbox_new (FALSE, 1);
|
||||
|
||||
/* the main label */
|
||||
label = gtk_label_new ("Bucket Fill Options");
|
||||
label = gtk_label_new (_("Bucket Fill Options"));
|
||||
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
@ -165,7 +167,7 @@ create_bucket_options (void)
|
|||
hbox = gtk_hbox_new (FALSE, 1);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
|
||||
label = gtk_label_new ("Fill Opacity");
|
||||
label = gtk_label_new (_("Fill Opacity"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
@ -184,7 +186,7 @@ create_bucket_options (void)
|
|||
hbox = gtk_hbox_new (FALSE, 1);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
|
||||
label = gtk_label_new ("Fill Threshold");
|
||||
label = gtk_label_new (_("Fill Threshold"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
@ -203,7 +205,7 @@ create_bucket_options (void)
|
|||
hbox = gtk_hbox_new (FALSE, 1);
|
||||
gtk_container_border_width (GTK_CONTAINER (hbox), 0);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
label = gtk_label_new ("Mode:");
|
||||
label = gtk_label_new (_("Mode:"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 2);
|
||||
menu = create_paint_mode_menu (bucket_fill_paint_mode_callback,NULL);
|
||||
option_menu = gtk_option_menu_new ();
|
||||
|
@ -214,7 +216,7 @@ create_bucket_options (void)
|
|||
gtk_widget_show (hbox);
|
||||
|
||||
/* the radio frame and box */
|
||||
radio_frame = gtk_frame_new ("Fill Type");
|
||||
radio_frame = gtk_frame_new (_("Fill Type"));
|
||||
gtk_box_pack_start (GTK_BOX (vbox), radio_frame, FALSE, FALSE, 0);
|
||||
|
||||
radio_box = gtk_vbox_new (FALSE, 1);
|
||||
|
@ -236,7 +238,7 @@ create_bucket_options (void)
|
|||
gtk_widget_show (radio_frame);
|
||||
|
||||
/* the sample merged toggle */
|
||||
sample_merged_toggle = gtk_check_button_new_with_label ("Sample Merged");
|
||||
sample_merged_toggle = gtk_check_button_new_with_label (_("Sample Merged"));
|
||||
gtk_signal_connect (GTK_OBJECT (sample_merged_toggle), "toggled",
|
||||
(GtkSignalFunc) bucket_fill_toggle_update,
|
||||
&options->sample_merged);
|
||||
|
@ -328,7 +330,7 @@ bucket_fill_button_release (tool, bevent, gdisp_ptr)
|
|||
if (return_vals[0].value.pdb_int == PDB_SUCCESS)
|
||||
gdisplays_flush ();
|
||||
else
|
||||
g_message ("Bucket Fill operation failed.");
|
||||
g_message (_("Bucket Fill operation failed."));
|
||||
|
||||
procedural_db_destroy_args (return_vals, nreturn_vals);
|
||||
}
|
||||
|
@ -425,7 +427,7 @@ bucket_fill (gimage, drawable, fill_mode, paint_mode,
|
|||
|
||||
if (!pattern)
|
||||
{
|
||||
g_message ("No available patterns for this operation.");
|
||||
g_message (_("No available patterns for this operation."));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -698,47 +700,47 @@ ProcArg bucket_fill_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"The image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_DRAWABLE,
|
||||
"drawable",
|
||||
"The affected drawable"
|
||||
N_("the affected drawable")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"fill_mode",
|
||||
"The type of fill: { FG-BUCKET-FILL (0), BG-BUCKET-FILL (1), PATTERN-BUCKET-FILL (2) }"
|
||||
N_("the type of fill: { FG-BUCKET-FILL (0), BG-BUCKET-FILL (1), PATTERN-BUCKET-FILL (2) }")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"paint_mode",
|
||||
"the paint application mode: { NORMAL (0), DISSOLVE (1), BEHIND (2), MULTIPLY/BURN (3), SCREEN (4), OVERLAY (5) DIFFERENCE (6), ADDITION (7), SUBTRACT (8), DARKEN-ONLY (9), LIGHTEN-ONLY (10), HUE (11), SATURATION (12), COLOR (13), VALUE (14), DIVIDE/DODGE (15) }"
|
||||
N_("the paint application mode: { NORMAL (0), DISSOLVE (1), BEHIND (2), MULTIPLY/BURN (3), SCREEN (4), OVERLAY (5) DIFFERENCE (6), ADDITION (7), SUBTRACT (8), DARKEN-ONLY (9), LIGHTEN-ONLY (10), HUE (11), SATURATION (12), COLOR (13), VALUE (14), DIVIDE/DODGE (15) }")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"opacity",
|
||||
"The opacity of the final bucket fill (0 <= opacity <= 100)"
|
||||
N_("the opacity of the final bucket fill (0 <= opacity <= 100)")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"threshold",
|
||||
"The threshold determines how extensive the seed fill will be. It's value is specified in terms of intensity levels (0 <= threshold <= 255). This parameter is only valid when there is no selection in the specified image."
|
||||
N_("the threshold determines how extensive the seed fill will be. It's value is specified in terms of intensity levels (0 <= threshold <= 255). This parameter is only valid when there is no selection in the specified image.")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"sample_merged",
|
||||
"use the composite image, not the drawable"
|
||||
N_("use the composite image, not the drawable")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"x",
|
||||
"The x coordinate of this bucket fill's application. This parameter is only valid when there is no selection in the specified image."
|
||||
N_("the x coordinate of this bucket fill's application. This parameter is only valid when there is no selection in the specified image.")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"y",
|
||||
"The y coordinate of this bucket fill's application. This parameter is only valid when there is no selection in the specified image."
|
||||
N_("the y coordinate of this bucket fill's application. This parameter is only valid when there is no selection in the specified image.")
|
||||
},
|
||||
};
|
||||
|
||||
ProcRecord bucket_fill_proc =
|
||||
{
|
||||
"gimp_bucket_fill",
|
||||
"Fill the area specified either by the current selection if there is one, or by a seed fill starting at the specified coordinates.",
|
||||
"This tool requires information on the paint application mode, and the fill mode, which can either be in the foreground color, or in the currently active pattern. If there is no selection, a seed fill is executed at the specified coordinates and extends outward in keeping with the threshold parameter. If there is a selection in the target image, the threshold, sample merged, x, and y arguments are unused. If the sample_merged parameter is non-zero, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of merged sampling, the x,y coordinates are relative to the image's origin; otherwise, they are relative to the drawable's origin.",
|
||||
N_("Fill the area specified either by the current selection if there is one, or by a seed fill starting at the specified coordinates."),
|
||||
N_("This tool requires information on the paint application mode, and the fill mode, which can either be in the foreground color, or in the currently active pattern. If there is no selection, a seed fill is executed at the specified coordinates and extends outward in keeping with the threshold parameter. If there is a selection in the target image, the threshold, sample merged, x, and y arguments are unused. If the sample_merged parameter is non-zero, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of merged sampling, the x,y coordinates are relative to the image's origin; otherwise, they are relative to the drawable's origin."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
|
|
@ -30,6 +30,8 @@
|
|||
#include "gdisplay.h"
|
||||
#include "rect_select.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#include "tile.h" /* ick. */
|
||||
|
||||
#define DEFAULT_FUZZINESS 15
|
||||
|
@ -547,10 +549,10 @@ by_color_select_new_dialog ()
|
|||
int i;
|
||||
char *button_names[4] =
|
||||
{
|
||||
"Replace",
|
||||
"Add",
|
||||
"Subtract",
|
||||
"Intersect"
|
||||
N_("Replace"),
|
||||
N_("Add"),
|
||||
N_("Subtract"),
|
||||
N_("Intersect")
|
||||
};
|
||||
int button_values[4] =
|
||||
{
|
||||
|
@ -568,7 +570,7 @@ by_color_select_new_dialog ()
|
|||
/* The shell and main vbox */
|
||||
bcd->shell = gtk_dialog_new ();
|
||||
gtk_window_set_wmclass (GTK_WINDOW (bcd->shell), "by_color_selection", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (bcd->shell), "By Color Selection");
|
||||
gtk_window_set_title (GTK_WINDOW (bcd->shell), _("By Color Selection"));
|
||||
gtk_container_border_width (GTK_CONTAINER (GTK_DIALOG (bcd->shell)->action_area), 2);
|
||||
|
||||
/* handle the wm close signal */
|
||||
|
@ -611,14 +613,14 @@ by_color_select_new_dialog ()
|
|||
/* Create the active image label */
|
||||
util_box = gtk_hbox_new (FALSE, 2);
|
||||
gtk_box_pack_start (GTK_BOX (options_box), util_box, FALSE, FALSE, 0);
|
||||
bcd->gimage_name = gtk_label_new ("Inactive");
|
||||
bcd->gimage_name = gtk_label_new (_("Inactive"));
|
||||
gtk_box_pack_start (GTK_BOX (util_box), bcd->gimage_name, FALSE, FALSE, 2);
|
||||
|
||||
gtk_widget_show (bcd->gimage_name);
|
||||
gtk_widget_show (util_box);
|
||||
|
||||
/* Create the selection mode radio box */
|
||||
frame = gtk_frame_new ("Selection Mode");
|
||||
frame = gtk_frame_new (_("Selection Mode"));
|
||||
gtk_box_pack_start (GTK_BOX (options_box), frame, FALSE, FALSE, 0);
|
||||
|
||||
radio_box = gtk_vbox_new (FALSE, 2);
|
||||
|
@ -641,7 +643,7 @@ by_color_select_new_dialog ()
|
|||
/* Create the opacity scale widget */
|
||||
util_box = gtk_vbox_new (FALSE, 2);
|
||||
gtk_box_pack_start (GTK_BOX (options_box), util_box, FALSE, FALSE, 0);
|
||||
label = gtk_label_new ("Fuzziness Threshold");
|
||||
label = gtk_label_new (_("Fuzziness Threshold"));
|
||||
gtk_box_pack_start (GTK_BOX (util_box), label, FALSE, FALSE, 2);
|
||||
data = gtk_adjustment_new (bcd->threshold, 0.0, 255.0, 1.0, 1.0, 0.0);
|
||||
slider = gtk_hscale_new (GTK_ADJUSTMENT (data));
|
||||
|
@ -657,7 +659,7 @@ by_color_select_new_dialog ()
|
|||
gtk_widget_show (util_box);
|
||||
|
||||
/* The reset push button */
|
||||
push_button = gtk_button_new_with_label ("Reset");
|
||||
push_button = gtk_button_new_with_label (_("Reset"));
|
||||
GTK_WIDGET_SET_FLAGS (push_button, GTK_CAN_DEFAULT);
|
||||
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (bcd->shell)->action_area), push_button, TRUE, TRUE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (push_button), "clicked",
|
||||
|
@ -667,7 +669,7 @@ by_color_select_new_dialog ()
|
|||
gtk_widget_show (push_button);
|
||||
|
||||
/* The close push button */
|
||||
push_button = gtk_button_new_with_label ("Close");
|
||||
push_button = gtk_button_new_with_label (_("Close"));
|
||||
GTK_WIDGET_SET_FLAGS (push_button, GTK_CAN_DEFAULT);
|
||||
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (bcd->shell)->action_area), push_button, TRUE, TRUE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (push_button), "clicked",
|
||||
|
@ -971,47 +973,47 @@ ProcArg by_color_select_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_DRAWABLE,
|
||||
"drawable",
|
||||
"the drawable"
|
||||
N_("the drawable")
|
||||
},
|
||||
{ PDB_COLOR,
|
||||
"color",
|
||||
"the color to select"
|
||||
N_("the color to select")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"threshold",
|
||||
"threshold in intensity levels: 0 <= threshold <= 255"
|
||||
N_("threshold in intensity levels: 0 <= threshold <= 255")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"operation",
|
||||
"the selection operation: { ADD (0), SUB (1), REPLACE (2), INTERSECT (3) }"
|
||||
N_("the selection operation: { ADD (0), SUB (1), REPLACE (2), INTERSECT (3) }")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"antialias",
|
||||
"antialiasing On/Off"
|
||||
N_("antialiasing On/Off")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"feather",
|
||||
"feather option for selections"
|
||||
N_("feather option for selections")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"feather_radius",
|
||||
"radius for feather operation"
|
||||
N_("radius for feather operation")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"sample_merged",
|
||||
"use the composite image, not the drawable"
|
||||
N_("use the composite image, not the drawable")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord by_color_select_proc =
|
||||
{
|
||||
"gimp_by_color_select",
|
||||
"Create a selection by selecting all pixels (in the specified drawable) with the same (or similar) color to that specified.",
|
||||
"This tool creates a selection over the specified image. A by-color selection is determined by the supplied color under the constraints of the specified threshold. Essentially, all pixels (in the drawable) that have color sufficiently close to the specified color (as determined by the threshold value) are included in the selection. The antialiasing parameter allows the final selection mask to contain intermediate values based on close misses to the threshold bar. Feathering can be enabled optionally and is controlled with the \"feather_radius\" paramter. If the sample_merged parameter is non-zero, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of a merged sampling, the supplied drawable is ignored.",
|
||||
N_("Create a selection by selecting all pixels (in the specified drawable) with the same (or similar) color to that specified."),
|
||||
N_("This tool creates a selection over the specified image. A by-color selection is determined by the supplied color under the constraints of the specified threshold. Essentially, all pixels (in the drawable) that have color sufficiently close to the specified color (as determined by the threshold value) are included in the selection. The antialiasing parameter allows the final selection mask to contain intermediate values based on close misses to the threshold bar. Feathering can be enabled optionally and is controlled with the \"feather_radius\" paramter. If the sample_merged parameter is non-zero, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of a merged sampling, the supplied drawable is ignored."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
|
|
@ -31,6 +31,8 @@
|
|||
#include "temp_buf.h"
|
||||
#include "undo.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#include "channel_pvt.h"
|
||||
#include "tile.h"
|
||||
|
||||
|
@ -182,13 +184,13 @@ channel_copy (Channel *channel)
|
|||
name = channel_get_name(channel);
|
||||
ext = strrchr(name, '#');
|
||||
channel_name = (char *) g_malloc (strlen (name) + 6);
|
||||
if ((strlen(name) >= 4 && strcmp(&name[strlen(name) -4], "copy") == 0) ||
|
||||
if ((strlen(name) >= 4 && strcmp(&name[strlen(name) -4], _("copy")) == 0) ||
|
||||
(ext && (number = atoi(ext+1)) > 0 &&
|
||||
((int)(log10(number) + 1)) == strlen(ext+1)))
|
||||
/* don't have rudundant "copy"s */
|
||||
sprintf (channel_name, "%s", name);
|
||||
else
|
||||
sprintf (channel_name, "%s copy", name);
|
||||
sprintf (channel_name, N_("%s copy"), name);
|
||||
|
||||
/* allocate a new channel object */
|
||||
new_channel = channel_new (GIMP_DRAWABLE(channel)->gimage,
|
||||
|
@ -493,7 +495,7 @@ channel_new_mask (GimpImage* gimage, int width, int height)
|
|||
Channel *new_channel;
|
||||
|
||||
/* Create the new channel */
|
||||
new_channel = channel_new (gimage, width, height, "Selection Mask", 127, black);
|
||||
new_channel = channel_new (gimage, width, height, _("Selection Mask"), 127, black);
|
||||
|
||||
/* Set the validate procedure */
|
||||
tile_manager_set_validate_proc (GIMP_DRAWABLE(new_channel)->tiles, channel_validate);
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
#include "channel.h"
|
||||
#include "channel_cmds.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#include "channel_pvt.h"
|
||||
|
||||
static int int_value;
|
||||
|
@ -99,27 +101,27 @@ ProcArg channel_new_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image to which to add the channel"
|
||||
N_("the image to which to add the channel")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"width",
|
||||
"the channel width: (width > 0)"
|
||||
N_("the channel width: (width > 0)")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"height",
|
||||
"the channel height: (height > 0)"
|
||||
N_("the channel height: (height > 0)")
|
||||
},
|
||||
{ PDB_STRING,
|
||||
"name",
|
||||
"the channel name"
|
||||
N_("the channel name")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"opacity",
|
||||
"the channel opacity: (0 <= opacity <= 100)"
|
||||
N_("the channel opacity: (0 <= opacity <= 100)")
|
||||
},
|
||||
{ PDB_COLOR,
|
||||
"color",
|
||||
"the channel compositing color"
|
||||
N_("the channel compositing color")
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -127,15 +129,15 @@ ProcArg channel_new_out_args[] =
|
|||
{
|
||||
{ PDB_CHANNEL,
|
||||
"channel",
|
||||
"the newly created channel"
|
||||
N_("the newly created channel")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord channel_new_proc =
|
||||
{
|
||||
"gimp_channel_new",
|
||||
"Create a new channel",
|
||||
"This procedure creates a new channel with the specified width and height. Name, opacity, and color are also supplied parameters. The new channel still needs to be added to the image, as this is not automatic. Add the new channel with the 'gimp_image_add_channel' command. Other attributes such as channel show masked, should be set with explicit procedure calls. The channel's contents are undefined initially.",
|
||||
N_("Create a new channel"),
|
||||
N_("This procedure creates a new channel with the specified width and height. Name, opacity, and color are also supplied parameters. The new channel still needs to be added to the image, as this is not automatic. Add the new channel with the 'gimp_image_add_channel' command. Other attributes such as channel show masked, should be set with explicit procedure calls. The channel's contents are undefined initially."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -190,7 +192,7 @@ ProcArg channel_copy_args[] =
|
|||
{
|
||||
{ PDB_CHANNEL,
|
||||
"channel",
|
||||
"the channel to copy"
|
||||
N_("the channel to copy")
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -198,15 +200,15 @@ ProcArg channel_copy_out_args[] =
|
|||
{
|
||||
{ PDB_CHANNEL,
|
||||
"channel_copy",
|
||||
"the newly copied channel"
|
||||
N_("the newly copied channel")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord channel_copy_proc =
|
||||
{
|
||||
"gimp_channel_copy",
|
||||
"Copy a channel",
|
||||
"This procedure copies the specified channel and returns the copy.",
|
||||
N_("Copy a channel"),
|
||||
N_("This procedure copies the specified channel and returns the copy."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -252,15 +254,15 @@ ProcArg channel_delete_args[] =
|
|||
{
|
||||
{ PDB_CHANNEL,
|
||||
"channel",
|
||||
"the channel to delete"
|
||||
N_("the channel to delete")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord channel_delete_proc =
|
||||
{
|
||||
"gimp_channel_delete",
|
||||
"Delete a channel",
|
||||
"This procedure deletes the specified channel. This does not need to be done if a gimage containing this channel was already deleted.",
|
||||
N_("Delete a channel"),
|
||||
N_("This procedure deletes the specified channel. This does not need to be done if a gimage containing this channel was already deleted."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -312,7 +314,7 @@ ProcArg channel_get_name_args[] =
|
|||
{
|
||||
{ PDB_CHANNEL,
|
||||
"channel",
|
||||
"the channel"
|
||||
N_("the channel")
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -320,15 +322,15 @@ ProcArg channel_get_name_out_args[] =
|
|||
{
|
||||
{ PDB_STRING,
|
||||
"name",
|
||||
"the channel name"
|
||||
N_("the channel name")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord channel_get_name_proc =
|
||||
{
|
||||
"gimp_channel_get_name",
|
||||
"Get the name of the specified channel.",
|
||||
"This procedure returns the specified channel's name.",
|
||||
N_("Get the name of the specified channel."),
|
||||
N_("This procedure returns the specified channel's name."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -377,19 +379,19 @@ ProcArg channel_set_name_args[] =
|
|||
{
|
||||
{ PDB_CHANNEL,
|
||||
"channel",
|
||||
"the channel"
|
||||
N_("the channel")
|
||||
},
|
||||
{ PDB_STRING,
|
||||
"name",
|
||||
"the new channel name"
|
||||
N_("the new channel name")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord channel_set_name_proc =
|
||||
{
|
||||
"gimp_channel_set_name",
|
||||
"Set the name of the specified channel.",
|
||||
"This procedure sets the specified channel's name to the supplied name.",
|
||||
N_("Set the name of the specified channel."),
|
||||
N_("This procedure sets the specified channel's name to the supplied name."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -443,7 +445,7 @@ ProcArg channel_get_visible_args[] =
|
|||
{
|
||||
{ PDB_CHANNEL,
|
||||
"channel",
|
||||
"the channel"
|
||||
N_("the channel")
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -451,15 +453,15 @@ ProcArg channel_get_visible_out_args[] =
|
|||
{
|
||||
{ PDB_INT32,
|
||||
"visible",
|
||||
"the channel visibility"
|
||||
N_("the channel visibility")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord channel_get_visible_proc =
|
||||
{
|
||||
"gimp_channel_get_visible",
|
||||
"Get the visibility of the specified channel.",
|
||||
"This procedure returns the specified channel's visibility.",
|
||||
N_("Get the visibility of the specified channel."),
|
||||
N_("This procedure returns the specified channel's visibility."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -508,19 +510,19 @@ ProcArg channel_set_visible_args[] =
|
|||
{
|
||||
{ PDB_CHANNEL,
|
||||
"channel",
|
||||
"the channel"
|
||||
N_("the channel")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"visible",
|
||||
"the new channel visibility"
|
||||
N_("the new channel visibility")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord channel_set_visible_proc =
|
||||
{
|
||||
"gimp_channel_set_visible",
|
||||
"Set the visibility of the specified channel.",
|
||||
"This procedure sets the specified channel's visibility.",
|
||||
N_("Set the visibility of the specified channel."),
|
||||
N_("This procedure sets the specified channel's visibility."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -574,7 +576,7 @@ ProcArg channel_get_show_masked_args[] =
|
|||
{
|
||||
{ PDB_CHANNEL,
|
||||
"channel",
|
||||
"the channel"
|
||||
N_("the channel")
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -582,15 +584,15 @@ ProcArg channel_get_show_masked_out_args[] =
|
|||
{
|
||||
{ PDB_INT32,
|
||||
"show_masked",
|
||||
"composite method for channel"
|
||||
N_("composite method for channel")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord channel_get_show_masked_proc =
|
||||
{
|
||||
"gimp_channel_get_show_masked",
|
||||
"Get the composite type for the channel",
|
||||
"This procedure returns the specified channel's composite type. If it is non-zero, then the channel is composited with the image so that masked regions are shown. Otherwise, selected regions are shown.",
|
||||
N_("Get the composite type for the channel"),
|
||||
N_("This procedure returns the specified channel's composite type. If it is non-zero, then the channel is composited with the image so that masked regions are shown. Otherwise, selected regions are shown."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -639,19 +641,19 @@ ProcArg channel_set_show_masked_args[] =
|
|||
{
|
||||
{ PDB_CHANNEL,
|
||||
"channel",
|
||||
"the channel"
|
||||
N_("the channel")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"show_masked",
|
||||
"the new channel show_masked value"
|
||||
N_("the new channel show_masked value")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord channel_set_show_masked_proc =
|
||||
{
|
||||
"gimp_channel_set_show_masked",
|
||||
"Set the composite type for the specified channel.",
|
||||
"This procedure sets the specified channel's composite type. If it is non-zero, then the channel is composited with the image so that masked regions are shown. Otherwise, selected regions are shown.",
|
||||
N_("Set the composite type for the specified channel."),
|
||||
N_("This procedure sets the specified channel's composite type. If it is non-zero, then the channel is composited with the image so that masked regions are shown. Otherwise, selected regions are shown."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -705,7 +707,7 @@ ProcArg channel_get_opacity_args[] =
|
|||
{
|
||||
{ PDB_CHANNEL,
|
||||
"channel",
|
||||
"the channel"
|
||||
N_("the channel")
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -713,15 +715,15 @@ ProcArg channel_get_opacity_out_args[] =
|
|||
{
|
||||
{ PDB_FLOAT,
|
||||
"opacity",
|
||||
"the channel opacity",
|
||||
N_("the channel opacity"),
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord channel_get_opacity_proc =
|
||||
{
|
||||
"gimp_channel_get_opacity",
|
||||
"Get the opacity of the specified channel.",
|
||||
"This procedure returns the specified channel's opacity.",
|
||||
N_("Get the opacity of the specified channel."),
|
||||
N_("This procedure returns the specified channel's opacity."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -770,19 +772,19 @@ ProcArg channel_set_opacity_args[] =
|
|||
{
|
||||
{ PDB_CHANNEL,
|
||||
"channel",
|
||||
"the channel"
|
||||
N_("the channel")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"opacity",
|
||||
"the new channel opacity: (0 <= opacity <= 100)"
|
||||
N_("the new channel opacity: (0 <= opacity <= 100)")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord channel_set_opacity_proc =
|
||||
{
|
||||
"gimp_channel_set_opacity",
|
||||
"Set the opacity of the specified channel.",
|
||||
"This procedure sets the specified channel's opacity.",
|
||||
N_("Set the opacity of the specified channel."),
|
||||
N_("This procedure sets the specified channel's opacity."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -841,7 +843,7 @@ ProcArg channel_get_color_args[] =
|
|||
{
|
||||
{ PDB_CHANNEL,
|
||||
"channel",
|
||||
"the channel"
|
||||
N_("the channel")
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -849,15 +851,15 @@ ProcArg channel_get_color_out_args[] =
|
|||
{
|
||||
{ PDB_COLOR,
|
||||
"color",
|
||||
"the channel's composite color",
|
||||
N_("the channel's composite color"),
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord channel_get_color_proc =
|
||||
{
|
||||
"gimp_channel_get_color",
|
||||
"Get the compositing color of the specified channel.",
|
||||
"This procedure returns the specified channel's compositing color.",
|
||||
N_("Get the compositing color of the specified channel."),
|
||||
N_("This procedure returns the specified channel's compositing color."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -908,19 +910,19 @@ ProcArg channel_set_color_args[] =
|
|||
{
|
||||
{ PDB_CHANNEL,
|
||||
"channel",
|
||||
"the channel"
|
||||
N_("the channel")
|
||||
},
|
||||
{ PDB_COLOR,
|
||||
"color",
|
||||
"the composite color"
|
||||
N_("the composite color")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord channel_set_color_proc =
|
||||
{
|
||||
"gimp_channel_set_color",
|
||||
"Set the compositing color of the specified channel.",
|
||||
"This procedure sets the specified channel's compositing color.",
|
||||
N_("Set the compositing color of the specified channel."),
|
||||
N_("This procedure sets the specified channel's compositing color."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
|
|
@ -51,6 +51,8 @@
|
|||
#include "tools/delete.xpm"
|
||||
#include "tools/delete_is.xpm"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#include "channel_pvt.h"
|
||||
|
||||
|
||||
|
@ -159,17 +161,17 @@ static int button_last_id = 0;
|
|||
|
||||
static MenuItem channels_ops[] =
|
||||
{
|
||||
{ "New Channel", 'N', GDK_CONTROL_MASK,
|
||||
{ N_("New Channel"), 'N', GDK_CONTROL_MASK,
|
||||
channels_dialog_new_channel_callback, NULL, NULL, NULL },
|
||||
{ "Raise Channel", 'F', GDK_CONTROL_MASK,
|
||||
{ N_("Raise Channel"), 'F', GDK_CONTROL_MASK,
|
||||
channels_dialog_raise_channel_callback, NULL, NULL, NULL },
|
||||
{ "Lower Channel", 'B', GDK_CONTROL_MASK,
|
||||
{ N_("Lower Channel"), 'B', GDK_CONTROL_MASK,
|
||||
channels_dialog_lower_channel_callback, NULL, NULL, NULL },
|
||||
{ "Duplicate Channel", 'C', GDK_CONTROL_MASK,
|
||||
{ N_("Duplicate Channel"), 'C', GDK_CONTROL_MASK,
|
||||
channels_dialog_duplicate_channel_callback, NULL, NULL, NULL },
|
||||
{ "Delete Channel", 'X', GDK_CONTROL_MASK,
|
||||
{ N_("Delete Channel"), 'X', GDK_CONTROL_MASK,
|
||||
channels_dialog_delete_channel_callback, NULL, NULL, NULL },
|
||||
{ "Channel To Selection", 'S', GDK_CONTROL_MASK,
|
||||
{ N_("Channel To Selection"), 'S', GDK_CONTROL_MASK,
|
||||
channels_dialog_channel_to_sel_callback, NULL, NULL, NULL },
|
||||
{ NULL, 0, 0, NULL, NULL, NULL, NULL },
|
||||
};
|
||||
|
@ -177,11 +179,11 @@ static MenuItem channels_ops[] =
|
|||
/* the ops buttons */
|
||||
static OpsButton channels_ops_buttons[] =
|
||||
{
|
||||
{ new_xpm, new_is_xpm, channels_dialog_new_channel_callback, "New Channel", NULL, NULL, NULL, NULL, NULL, NULL },
|
||||
{ raise_xpm, raise_is_xpm, channels_dialog_raise_channel_callback, "Raise Channel", NULL, NULL, NULL, NULL, NULL, NULL },
|
||||
{ lower_xpm, lower_is_xpm, channels_dialog_lower_channel_callback, "Lower Channel", NULL, NULL, NULL, NULL, NULL, NULL },
|
||||
{ duplicate_xpm, duplicate_is_xpm, channels_dialog_duplicate_channel_callback, "Duplicate Channel", NULL, NULL, NULL, NULL, NULL, NULL },
|
||||
{ delete_xpm, delete_is_xpm, channels_dialog_delete_channel_callback, "Delete Channel", NULL, NULL, NULL, NULL, NULL, NULL },
|
||||
{ new_xpm, new_is_xpm, channels_dialog_new_channel_callback, N_("New Channel"), NULL, NULL, NULL, NULL, NULL, NULL },
|
||||
{ raise_xpm, raise_is_xpm, channels_dialog_raise_channel_callback, N_("Raise Channel"), NULL, NULL, NULL, NULL, NULL, NULL },
|
||||
{ lower_xpm, lower_is_xpm, channels_dialog_lower_channel_callback, N_("Lower Channel"), NULL, NULL, NULL, NULL, NULL, NULL },
|
||||
{ duplicate_xpm, duplicate_is_xpm, channels_dialog_duplicate_channel_callback, N_("Duplicate Channel"), NULL, NULL, NULL, NULL, NULL, NULL },
|
||||
{ delete_xpm, delete_is_xpm, channels_dialog_delete_channel_callback, N_("Delete Channel"), NULL, NULL, NULL, NULL, NULL, NULL },
|
||||
{ NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL}
|
||||
};
|
||||
|
||||
|
@ -608,7 +610,7 @@ channels_dialog_set_channel (ChannelWidget *channel_widget)
|
|||
gtk_list_select_item (GTK_LIST (channelsD->channel_list), 2);
|
||||
break;
|
||||
case Auxillary:
|
||||
g_error ("error in %s at %d: this shouldn't happen.",
|
||||
g_error (_("error in %s at %d: this shouldn't happen."),
|
||||
__FILE__, __LINE__);
|
||||
break;
|
||||
}
|
||||
|
@ -662,7 +664,7 @@ channels_dialog_unset_channel (ChannelWidget * channel_widget)
|
|||
gtk_list_unselect_item (GTK_LIST (channelsD->channel_list), 2);
|
||||
break;
|
||||
case Auxillary:
|
||||
g_error ("error in %s at %d: this shouldn't happen.",
|
||||
g_error (_("error in %s at %d: this shouldn't happen."),
|
||||
__FILE__, __LINE__);
|
||||
break;
|
||||
}
|
||||
|
@ -1065,11 +1067,11 @@ create_channel_widget (GImage *gimage,
|
|||
/* the channel name label */
|
||||
switch (channel_widget->type)
|
||||
{
|
||||
case Red: channel_widget->label = gtk_label_new ("Red"); break;
|
||||
case Green: channel_widget->label = gtk_label_new ("Green"); break;
|
||||
case Blue: channel_widget->label = gtk_label_new ("Blue"); break;
|
||||
case Gray: channel_widget->label = gtk_label_new ("Gray"); break;
|
||||
case Indexed: channel_widget->label = gtk_label_new ("Indexed"); break;
|
||||
case Red: channel_widget->label = gtk_label_new (_("Red")); break;
|
||||
case Green: channel_widget->label = gtk_label_new (_("Green")); break;
|
||||
case Blue: channel_widget->label = gtk_label_new (_("Blue")); break;
|
||||
case Gray: channel_widget->label = gtk_label_new (_("Gray")); break;
|
||||
case Indexed: channel_widget->label = gtk_label_new (_("Indexed")); break;
|
||||
case Auxillary: channel_widget->label = gtk_label_new (channel_get_name(channel)); break;
|
||||
}
|
||||
|
||||
|
@ -1772,8 +1774,8 @@ channels_dialog_new_channel_query (GimpImage* gimage)
|
|||
{
|
||||
static ActionAreaItem action_items[2] =
|
||||
{
|
||||
{ "OK", new_channel_query_ok_callback, NULL, NULL },
|
||||
{ "Cancel", new_channel_query_cancel_callback, NULL, NULL }
|
||||
{ N_("OK"), new_channel_query_ok_callback, NULL, NULL },
|
||||
{ N_("Cancel"), new_channel_query_cancel_callback, NULL, NULL }
|
||||
};
|
||||
NewChannelOptions *options;
|
||||
GtkWidget *vbox;
|
||||
|
@ -1791,7 +1793,7 @@ channels_dialog_new_channel_query (GimpImage* gimage)
|
|||
/* the dialog */
|
||||
options->query_box = gtk_dialog_new ();
|
||||
gtk_window_set_wmclass (GTK_WINDOW (options->query_box), "new_channel_options", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (options->query_box), "New Channel Options");
|
||||
gtk_window_set_title (GTK_WINDOW (options->query_box), _("New Channel Options"));
|
||||
gtk_window_position (GTK_WINDOW (options->query_box), GTK_WIN_POS_MOUSE);
|
||||
|
||||
/* handle the wm close signal */
|
||||
|
@ -1809,7 +1811,7 @@ channels_dialog_new_channel_query (GimpImage* gimage)
|
|||
gtk_box_pack_start (GTK_BOX (vbox), table, TRUE, TRUE, 0);
|
||||
|
||||
/* the name entry hbox, label and entry */
|
||||
label = gtk_label_new ("Channel name: ");
|
||||
label = gtk_label_new (_("Channel name: "));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK, 0, 1);
|
||||
|
@ -1819,11 +1821,11 @@ channels_dialog_new_channel_query (GimpImage* gimage)
|
|||
gtk_widget_set_usize (options->name_entry, 75, 0);
|
||||
gtk_table_attach (GTK_TABLE (table), options->name_entry, 1, 2, 0, 1,
|
||||
GTK_EXPAND | GTK_SHRINK | GTK_FILL, GTK_SHRINK, 1, 1);
|
||||
gtk_entry_set_text (GTK_ENTRY (options->name_entry), (channel_name ? channel_name : "New Channel"));
|
||||
gtk_entry_set_text (GTK_ENTRY (options->name_entry), (channel_name ? channel_name : _("New Channel")));
|
||||
gtk_widget_show (options->name_entry);
|
||||
|
||||
/* the opacity scale */
|
||||
label = gtk_label_new ("Fill Opacity: ");
|
||||
label = gtk_label_new (_("Fill Opacity: "));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK, 0, 1);
|
||||
|
@ -1945,8 +1947,8 @@ channels_dialog_edit_channel_query (ChannelWidget *channel_widget)
|
|||
{
|
||||
static ActionAreaItem action_items[2] =
|
||||
{
|
||||
{ "OK", edit_channel_query_ok_callback, NULL, NULL },
|
||||
{ "Cancel", edit_channel_query_cancel_callback, NULL, NULL }
|
||||
{ N_("OK"), edit_channel_query_ok_callback, NULL, NULL },
|
||||
{ N_("Cancel"), edit_channel_query_cancel_callback, NULL, NULL }
|
||||
};
|
||||
EditChannelOptions *options;
|
||||
GtkWidget *vbox;
|
||||
|
@ -1970,7 +1972,7 @@ channels_dialog_edit_channel_query (ChannelWidget *channel_widget)
|
|||
/* the dialog */
|
||||
options->query_box = gtk_dialog_new ();
|
||||
gtk_window_set_wmclass (GTK_WINDOW (options->query_box), "edit_channel_atributes", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (options->query_box), "Edit Channel Attributes");
|
||||
gtk_window_set_title (GTK_WINDOW (options->query_box), _("Edit Channel Attributes"));
|
||||
gtk_window_position (GTK_WINDOW (options->query_box), GTK_WIN_POS_MOUSE);
|
||||
|
||||
/* deal with the wm close signal */
|
||||
|
@ -1990,7 +1992,7 @@ channels_dialog_edit_channel_query (ChannelWidget *channel_widget)
|
|||
hbox = gtk_hbox_new (FALSE, 1);
|
||||
gtk_table_attach (GTK_TABLE (table), hbox, 0, 1, 0, 1,
|
||||
GTK_EXPAND | GTK_FILL, 0, 2, 2);
|
||||
label = gtk_label_new ("Channel name:");
|
||||
label = gtk_label_new (_("Channel name:"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
options->name_entry = gtk_entry_new ();
|
||||
|
@ -2005,7 +2007,7 @@ channels_dialog_edit_channel_query (ChannelWidget *channel_widget)
|
|||
gtk_table_attach (GTK_TABLE (table), hbox, 0, 1, 1, 2,
|
||||
GTK_EXPAND | GTK_FILL, 0, 2, 2);
|
||||
|
||||
label = gtk_label_new ("Fill Opacity");
|
||||
label = gtk_label_new (_("Fill Opacity"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
|
34
app/clone.c
34
app/clone.c
|
@ -31,6 +31,8 @@
|
|||
#include "selection.h"
|
||||
#include "tools.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#define TARGET_HEIGHT 15
|
||||
#define TARGET_WIDTH 15
|
||||
|
||||
|
@ -112,8 +114,8 @@ create_clone_options (void)
|
|||
int i;
|
||||
char *button_names[2] =
|
||||
{
|
||||
"Image Source",
|
||||
"Pattern Source"
|
||||
N_("Image Source"),
|
||||
N_("Pattern Source")
|
||||
};
|
||||
|
||||
/* the new options structure */
|
||||
|
@ -125,12 +127,12 @@ create_clone_options (void)
|
|||
vbox = gtk_vbox_new (FALSE, 1);
|
||||
|
||||
/* the main label */
|
||||
label = gtk_label_new ("Clone Tool Options");
|
||||
label = gtk_label_new (_("Clone Tool Options"));
|
||||
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
/* the radio frame and box */
|
||||
radio_frame = gtk_frame_new ("Source");
|
||||
radio_frame = gtk_frame_new (_("Source"));
|
||||
gtk_box_pack_start (GTK_BOX (vbox), radio_frame, FALSE, FALSE, 0);
|
||||
|
||||
radio_box = gtk_vbox_new (FALSE, 1);
|
||||
|
@ -151,7 +153,7 @@ create_clone_options (void)
|
|||
gtk_widget_show (radio_frame);
|
||||
|
||||
/* the aligned toggle button */
|
||||
aligned_toggle = gtk_check_button_new_with_label ("Aligned");
|
||||
aligned_toggle = gtk_check_button_new_with_label (_("Aligned"));
|
||||
gtk_box_pack_start (GTK_BOX (vbox), aligned_toggle, FALSE, FALSE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (aligned_toggle), "toggled",
|
||||
(GtkSignalFunc) clone_toggle_update,
|
||||
|
@ -228,7 +230,7 @@ clone_paint_func (PaintCore *paint_core,
|
|||
|
||||
if (clone_options->type == PatternClone)
|
||||
if (!get_active_pattern ())
|
||||
g_message ("No patterns available for this operation.");
|
||||
g_message (_("No patterns available for this operation."));
|
||||
break;
|
||||
|
||||
case FINISH_PAINT :
|
||||
|
@ -541,35 +543,35 @@ ProcArg clone_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_DRAWABLE,
|
||||
"drawable",
|
||||
"the drawable"
|
||||
N_("the drawable")
|
||||
},
|
||||
{ PDB_DRAWABLE,
|
||||
"src_drawable",
|
||||
"the source drawable"
|
||||
N_("the source drawable")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"clone_type",
|
||||
"the type of clone: { IMAGE-CLONE (0), PATTERN-CLONE (1) }"
|
||||
N_("the type of clone: { IMAGE-CLONE (0), PATTERN-CLONE (1) }")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"src_x",
|
||||
"the x coordinate in the source image"
|
||||
N_("the x coordinate in the source image")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"src_y",
|
||||
"the y coordinate in the source image"
|
||||
N_("the y coordinate in the source image")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"num_strokes",
|
||||
"number of stroke control points (count each coordinate as 2 points)"
|
||||
N_("number of stroke control points (count each coordinate as 2 points)")
|
||||
},
|
||||
{ PDB_FLOATARRAY,
|
||||
"strokes",
|
||||
"array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}"
|
||||
N_("array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}")
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -577,8 +579,8 @@ ProcArg clone_args[] =
|
|||
ProcRecord clone_proc =
|
||||
{
|
||||
"gimp_clone",
|
||||
"Clone from the source to the dest drawable using the current brush",
|
||||
"This tool clones (copies) from the source drawable starting at the specified source coordinates to the dest drawable. If the \"clone_type\" argument is set to PATTERN-CLONE, then the current pattern is used as the source and the \"src_drawable\" argument is ignored. Pattern cloning assumes a tileable pattern and mods the sum of the src coordinates and subsequent stroke offsets with the width and height of the pattern. For image cloning, if the sum of the src coordinates and subsequent stroke offsets exceeds the extents of the src drawable, then no paint is transferred. The clone tool is capable of transforming between any image types including RGB->Indexed--although converting from any type to indexed is significantly slower.",
|
||||
N_("Clone from the source to the dest drawable using the current brush"),
|
||||
N_("This tool clones (copies) from the source drawable starting at the specified source coordinates to the dest drawable. If the \"clone_type\" argument is set to PATTERN-CLONE, then the current pattern is used as the source and the \"src_drawable\" argument is ignored. Pattern cloning assumes a tileable pattern and mods the sum of the src coordinates and subsequent stroke offsets with the width and height of the pattern. For image cloning, if the sum of the src coordinates and subsequent stroke offsets exceeds the extents of the src drawable, then no paint is transferred. The clone tool is capable of transforming between any image types including RGB->Indexed--although converting from any type to indexed is significantly slower."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
|
|
@ -29,6 +29,8 @@
|
|||
#include "image_map.h"
|
||||
#include "interface.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#define TEXT_WIDTH 55
|
||||
|
||||
#define SHADOWS 0
|
||||
|
@ -273,7 +275,7 @@ tools_new_color_balance ()
|
|||
|
||||
/* The tool options */
|
||||
if (!color_balance_options)
|
||||
color_balance_options = tools_register_no_options (COLOR_BALANCE, "Color Balance Options");
|
||||
color_balance_options = tools_register_no_options (COLOR_BALANCE, _("Color Balance Options"));
|
||||
|
||||
tool = (Tool *) g_malloc (sizeof (Tool));
|
||||
private = (ColorBalance *) g_malloc (sizeof (ColorBalance));
|
||||
|
@ -317,7 +319,7 @@ color_balance_initialize (GDisplay *gdisp)
|
|||
|
||||
if (! drawable_color (gimage_active_drawable (gdisp->gimage)))
|
||||
{
|
||||
g_message ("Color balance operates only on RGB color drawables.");
|
||||
g_message (_("Color balance operates only on RGB color drawables."));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -349,8 +351,8 @@ color_balance_initialize (GDisplay *gdisp)
|
|||
/* the action area structure */
|
||||
static ActionAreaItem action_items[] =
|
||||
{
|
||||
{ "OK", color_balance_ok_callback, NULL, NULL },
|
||||
{ "Cancel", color_balance_cancel_callback, NULL, NULL }
|
||||
{ N_("OK"), color_balance_ok_callback, NULL, NULL },
|
||||
{ N_("Cancel"), color_balance_cancel_callback, NULL, NULL }
|
||||
};
|
||||
|
||||
static ColorBalanceDialog *
|
||||
|
@ -371,9 +373,9 @@ color_balance_new_dialog ()
|
|||
int i;
|
||||
char *appl_mode_names[3] =
|
||||
{
|
||||
"Shadows",
|
||||
"Midtones",
|
||||
"Highlights"
|
||||
N_("Shadows"),
|
||||
N_("Midtones"),
|
||||
N_("Highlights")
|
||||
};
|
||||
ActionCallback appl_mode_callbacks[3] =
|
||||
{
|
||||
|
@ -390,7 +392,7 @@ color_balance_new_dialog ()
|
|||
/* The shell and main vbox */
|
||||
cbd->shell = gtk_dialog_new ();
|
||||
gtk_window_set_wmclass (GTK_WINDOW (cbd->shell), "color_balance", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (cbd->shell), "Color Balance");
|
||||
gtk_window_set_title (GTK_WINDOW (cbd->shell), N_("Color Balance"));
|
||||
|
||||
/* handle the wm close signal */
|
||||
gtk_signal_connect (GTK_OBJECT (cbd->shell), "delete_event",
|
||||
|
@ -405,7 +407,7 @@ color_balance_new_dialog ()
|
|||
hbox = gtk_hbox_new (TRUE, 2);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
|
||||
label = gtk_label_new ("Color Levels: ");
|
||||
label = gtk_label_new (_("Color Levels: "));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
@ -444,7 +446,7 @@ color_balance_new_dialog ()
|
|||
gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, FALSE, 0);
|
||||
|
||||
/* Create the cyan-red scale widget */
|
||||
start_label = gtk_label_new ("Cyan");
|
||||
start_label = gtk_label_new (_("Cyan"));
|
||||
gtk_misc_set_alignment (GTK_MISC (start_label), 1.0, 1.0);
|
||||
gtk_table_attach (GTK_TABLE (table), start_label, 0, 1, 0, 1,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2);
|
||||
|
@ -461,7 +463,7 @@ color_balance_new_dialog ()
|
|||
gtk_signal_connect (GTK_OBJECT (data), "value_changed",
|
||||
(GtkSignalFunc) color_balance_cr_scale_update,
|
||||
cbd);
|
||||
end_label = gtk_label_new ("Red");
|
||||
end_label = gtk_label_new (_("Red"));
|
||||
gtk_misc_set_alignment (GTK_MISC (end_label), 0.0, 1.0);
|
||||
gtk_table_attach (GTK_TABLE (table), end_label, 2, 3, 0, 1,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2);
|
||||
|
@ -471,7 +473,7 @@ color_balance_new_dialog ()
|
|||
gtk_widget_show (slider);
|
||||
|
||||
/* Create the magenta-green scale widget */
|
||||
start_label = gtk_label_new ("Magenta");
|
||||
start_label = gtk_label_new (_("Magenta"));
|
||||
gtk_misc_set_alignment (GTK_MISC (start_label), 1.0, 1.0);
|
||||
gtk_table_attach (GTK_TABLE (table), start_label, 0, 1, 1, 2,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2);
|
||||
|
@ -488,7 +490,7 @@ color_balance_new_dialog ()
|
|||
gtk_signal_connect (GTK_OBJECT (data), "value_changed",
|
||||
(GtkSignalFunc) color_balance_mg_scale_update,
|
||||
cbd);
|
||||
end_label = gtk_label_new ("Green");
|
||||
end_label = gtk_label_new (_("Green"));
|
||||
gtk_misc_set_alignment (GTK_MISC (end_label), 0.0, 1.0);
|
||||
gtk_table_attach (GTK_TABLE (table), end_label, 2, 3, 1, 2,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2);
|
||||
|
@ -498,7 +500,7 @@ color_balance_new_dialog ()
|
|||
gtk_widget_show (slider);
|
||||
|
||||
/* Create the yellow-blue scale widget */
|
||||
start_label = gtk_label_new ("Yellow");
|
||||
start_label = gtk_label_new (_("Yellow"));
|
||||
gtk_misc_set_alignment (GTK_MISC (start_label), 1.0, 1.0);
|
||||
gtk_table_attach (GTK_TABLE (table), start_label, 0, 1, 2, 3,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2);
|
||||
|
@ -515,7 +517,7 @@ color_balance_new_dialog ()
|
|||
gtk_signal_connect (GTK_OBJECT (data), "value_changed",
|
||||
(GtkSignalFunc) color_balance_yb_scale_update,
|
||||
cbd);
|
||||
end_label = gtk_label_new ("Blue");
|
||||
end_label = gtk_label_new (_("Blue"));
|
||||
gtk_misc_set_alignment (GTK_MISC (end_label), 0.0, 1.0);
|
||||
gtk_table_attach (GTK_TABLE (table), end_label, 2, 3, 2, 3,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2);
|
||||
|
@ -529,7 +531,7 @@ color_balance_new_dialog ()
|
|||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
|
||||
/* The preview toggle */
|
||||
toggle = gtk_check_button_new_with_label ("Preview");
|
||||
toggle = gtk_check_button_new_with_label (_("Preview"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), cbd->preview);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
|
@ -538,7 +540,7 @@ color_balance_new_dialog ()
|
|||
gtk_widget_show (toggle);
|
||||
|
||||
/* The preserve luminosity toggle */
|
||||
toggle = gtk_check_button_new_with_label ("Preserve Luminosity");
|
||||
toggle = gtk_check_button_new_with_label (_("Preserve Luminosity"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), cbd->preserve_luminosity);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
|
@ -618,7 +620,7 @@ static void
|
|||
color_balance_preview (ColorBalanceDialog *cbd)
|
||||
{
|
||||
if (!cbd->image_map)
|
||||
g_message ("color_balance_preview(): No image map");
|
||||
g_message (_("color_balance_preview(): No image map"));
|
||||
active_tool->preserve = TRUE;
|
||||
image_map_apply (cbd->image_map, color_balance, (void *) cbd);
|
||||
active_tool->preserve = FALSE;
|
||||
|
@ -877,39 +879,39 @@ ProcArg color_balance_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_DRAWABLE,
|
||||
"drawable",
|
||||
"the drawable"
|
||||
N_("the drawable")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"transfer_mode",
|
||||
"Transfer mode: { SHADOWS (0), MIDTONES (1), HIGHLIGHTS (2) }"
|
||||
N_("Transfer mode: { SHADOWS (0), MIDTONES (1), HIGHLIGHTS (2) }")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"preserve_lum",
|
||||
"Preserve luminosity values at each pixel"
|
||||
N_("Preserve luminosity values at each pixel")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"cyan_red",
|
||||
"Cyan-Red color balance: (-100 <= cyan_red <= 100)"
|
||||
N_("Cyan-Red color balance: (-100 <= cyan_red <= 100)")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"magenta_green",
|
||||
"Magenta-Green color balance: (-100 <= magenta_green <= 100)"
|
||||
N_("Magenta-Green color balance: (-100 <= magenta_green <= 100)")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"yellow_blue",
|
||||
"Yellow-Blue color balance: (-100 <= yellow_blue <= 100)"
|
||||
N_("Yellow-Blue color balance: (-100 <= yellow_blue <= 100)")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord color_balance_proc =
|
||||
{
|
||||
"gimp_color_balance",
|
||||
"Modify the color balance of the specified drawable",
|
||||
"Modify the color balance of the specified drawable. There are three axis which can be modified: cyan-red, magenta-green, and yellow-blue. Negative values increase the amount of the former, positive values increase the amount of the latter. Color balance can be controlled with the 'transfer_mode' setting, which allows shadows, midtones, and highlights in an image to be affected differently. The 'preserve_lum' parameter, if non-zero, ensures that the luminosity of each pixel remains fixed.",
|
||||
N_("Modify the color balance of the specified drawable"),
|
||||
N_("Modify the color balance of the specified drawable. There are three axis which can be modified: cyan-red, magenta-green, and yellow-blue. Negative values increase the amount of the former, positive values increase the amount of the latter. Color balance can be controlled with the 'transfer_mode' setting, which allows shadows, midtones, and highlights in an image to be affected differently. The 'preserve_lum' parameter, if non-zero, ensures that the luminosity of each pixel remains fixed."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1997",
|
||||
|
|
|
@ -26,6 +26,8 @@
|
|||
#include "palette.h"
|
||||
#include "tools.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#include "tile.h" /* ick. */
|
||||
|
||||
/* maximum information buffer size */
|
||||
|
@ -101,12 +103,12 @@ create_color_picker_options (void)
|
|||
vbox = gtk_vbox_new (FALSE, 1);
|
||||
|
||||
/* the main label */
|
||||
label = gtk_label_new ("Color Picker Options");
|
||||
label = gtk_label_new (_("Color Picker Options"));
|
||||
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
/* the sample merged toggle button */
|
||||
sample_merged_toggle = gtk_check_button_new_with_label ("Sample Merged");
|
||||
sample_merged_toggle = gtk_check_button_new_with_label (_("Sample Merged"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (sample_merged_toggle), options->sample_merged);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), sample_merged_toggle, FALSE, FALSE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (sample_merged_toggle), "toggled",
|
||||
|
@ -123,7 +125,7 @@ create_color_picker_options (void)
|
|||
|
||||
static ActionAreaItem action_items[] =
|
||||
{
|
||||
{ "Close", color_picker_info_window_close_callback, NULL, NULL },
|
||||
{ N_("Close"), color_picker_info_window_close_callback, NULL, NULL },
|
||||
};
|
||||
|
||||
static void
|
||||
|
@ -146,33 +148,33 @@ color_picker_button_press (Tool *tool,
|
|||
if (color_picker_info)
|
||||
info_dialog_free (color_picker_info);
|
||||
|
||||
color_picker_info = info_dialog_new ("Color Picker");
|
||||
color_picker_info = info_dialog_new (_("Color Picker"));
|
||||
active_drawable = gimage_active_drawable (gdisp->gimage);
|
||||
|
||||
/* if the gdisplay is for a color image, the dialog must have RGB */
|
||||
switch (drawable_type (active_drawable))
|
||||
{
|
||||
case RGB_GIMAGE: case RGBA_GIMAGE:
|
||||
info_dialog_add_field (color_picker_info, "Red", red_buf, NULL, NULL);
|
||||
info_dialog_add_field (color_picker_info, "Green", green_buf, NULL, NULL);
|
||||
info_dialog_add_field (color_picker_info, "Blue", blue_buf, NULL, NULL);
|
||||
info_dialog_add_field (color_picker_info, "Alpha", alpha_buf, NULL, NULL);
|
||||
info_dialog_add_field (color_picker_info, "Hex Triplet", hex_buf, NULL, NULL);
|
||||
info_dialog_add_field (color_picker_info, _("Red"), red_buf, NULL, NULL);
|
||||
info_dialog_add_field (color_picker_info, _("Green"), green_buf, NULL, NULL);
|
||||
info_dialog_add_field (color_picker_info, _("Blue"), blue_buf, NULL, NULL);
|
||||
info_dialog_add_field (color_picker_info, _("Alpha"), alpha_buf, NULL, NULL);
|
||||
info_dialog_add_field (color_picker_info, _("Hex Triplet"), hex_buf, NULL, NULL);
|
||||
break;
|
||||
|
||||
case INDEXED_GIMAGE: case INDEXEDA_GIMAGE:
|
||||
info_dialog_add_field (color_picker_info, "Index", index_buf, NULL, NULL);
|
||||
info_dialog_add_field (color_picker_info, "Alpha", alpha_buf, NULL, NULL);
|
||||
info_dialog_add_field (color_picker_info, "Red", red_buf, NULL, NULL);
|
||||
info_dialog_add_field (color_picker_info, "Green", green_buf, NULL, NULL);
|
||||
info_dialog_add_field (color_picker_info, "Blue", blue_buf, NULL, NULL);
|
||||
info_dialog_add_field (color_picker_info, "Hex Triplet", hex_buf, NULL, NULL);
|
||||
info_dialog_add_field (color_picker_info, _("Index"), index_buf, NULL, NULL);
|
||||
info_dialog_add_field (color_picker_info, _("Alpha"), alpha_buf, NULL, NULL);
|
||||
info_dialog_add_field (color_picker_info, _("Red"), red_buf, NULL, NULL);
|
||||
info_dialog_add_field (color_picker_info, _("Green"), green_buf, NULL, NULL);
|
||||
info_dialog_add_field (color_picker_info, _("Blue"), blue_buf, NULL, NULL);
|
||||
info_dialog_add_field (color_picker_info, _("Hex Triplet"), hex_buf, NULL, NULL);
|
||||
break;
|
||||
|
||||
case GRAY_GIMAGE: case GRAYA_GIMAGE:
|
||||
info_dialog_add_field (color_picker_info, "Intensity", gray_buf, NULL, NULL);
|
||||
info_dialog_add_field (color_picker_info, "Alpha", alpha_buf, NULL, NULL);
|
||||
info_dialog_add_field (color_picker_info, "Hex Triplet", hex_buf, NULL, NULL);
|
||||
info_dialog_add_field (color_picker_info, _("Intensity"), gray_buf, NULL, NULL);
|
||||
info_dialog_add_field (color_picker_info, _("Alpha"), alpha_buf, NULL, NULL);
|
||||
info_dialog_add_field (color_picker_info, _("Hex Triplet"), hex_buf, NULL, NULL);
|
||||
break;
|
||||
|
||||
default :
|
||||
|
@ -381,13 +383,13 @@ color_picker_info_update (Tool *tool,
|
|||
{
|
||||
if (!valid)
|
||||
{
|
||||
sprintf (red_buf, "N/A");
|
||||
sprintf (green_buf, "N/A");
|
||||
sprintf (blue_buf, "N/A");
|
||||
sprintf (alpha_buf, "N/A");
|
||||
sprintf (index_buf, "N/A");
|
||||
sprintf (gray_buf, "N/A");
|
||||
sprintf (hex_buf, "N/A");
|
||||
sprintf (red_buf, _("N/A"));
|
||||
sprintf (green_buf, _("N/A"));
|
||||
sprintf (blue_buf, _("N/A"));
|
||||
sprintf (alpha_buf, _("N/A"));
|
||||
sprintf (index_buf, _("N/A"));
|
||||
sprintf (gray_buf, _("N/A"));
|
||||
sprintf (hex_buf, _("N/A"));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -400,7 +402,7 @@ color_picker_info_update (Tool *tool,
|
|||
if (sample_type == RGBA_GIMAGE)
|
||||
sprintf (alpha_buf, "%d", col_value [ALPHA_PIX]);
|
||||
else
|
||||
sprintf (alpha_buf, "N/A");
|
||||
sprintf (alpha_buf, _("N/A"));
|
||||
sprintf (hex_buf, "#%.2x%.2x%.2x", col_value [RED_PIX],
|
||||
col_value [GREEN_PIX], col_value [BLUE_PIX]);
|
||||
break;
|
||||
|
@ -410,7 +412,7 @@ color_picker_info_update (Tool *tool,
|
|||
if (sample_type == INDEXEDA_GIMAGE)
|
||||
sprintf (alpha_buf, "%d", col_value [ALPHA_PIX]);
|
||||
else
|
||||
sprintf (alpha_buf, "N/A");
|
||||
sprintf (alpha_buf, _("N/A"));
|
||||
sprintf (red_buf, "%d", col_value [RED_PIX]);
|
||||
sprintf (green_buf, "%d", col_value [GREEN_PIX]);
|
||||
sprintf (blue_buf, "%d", col_value [BLUE_PIX]);
|
||||
|
@ -423,7 +425,7 @@ color_picker_info_update (Tool *tool,
|
|||
if (sample_type == GRAYA_GIMAGE)
|
||||
sprintf (alpha_buf, "%d", col_value [ALPHA_PIX]);
|
||||
else
|
||||
sprintf (alpha_buf, "N/A");
|
||||
sprintf (alpha_buf, _("N/A"));
|
||||
sprintf (hex_buf, "#%.2x%.2x%.2x", col_value [GRAY_PIX],
|
||||
col_value [GRAY_PIX], col_value [GRAY_PIX]);
|
||||
break;
|
||||
|
@ -475,27 +477,27 @@ ProcArg color_picker_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_DRAWABLE,
|
||||
"drawable",
|
||||
"the drawable"
|
||||
N_("the drawable")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"x",
|
||||
"x coordinate of upper-left corner of rectangle"
|
||||
N_("x coordinate of upper-left corner of rectangle")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"y",
|
||||
"y coordinate of upper-left corner of rectangle"
|
||||
N_("y coordinate of upper-left corner of rectangle")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"sample_merged",
|
||||
"use the composite image, not the drawable"
|
||||
N_("use the composite image, not the drawable")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"save_color",
|
||||
"save the color to the active palette"
|
||||
N_("save the color to the active palette")
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -503,15 +505,15 @@ ProcArg color_picker_out_args[] =
|
|||
{
|
||||
{ PDB_COLOR,
|
||||
"color",
|
||||
"the return color"
|
||||
N_("the return color")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord color_picker_proc =
|
||||
{
|
||||
"gimp_color_picker",
|
||||
"Determine the color at the given drawable coordinates",
|
||||
"This tool determines the color at the specified coordinates. The returned color is an RGB triplet even for grayscale and indexed drawables. If the coordinates lie outside of the extents of the specified drawable, then an error is returned. If the drawable has an alpha channel, the algorithm examines the alpha value of the drawable at the coordinates. If the alpha value is completely transparent (0), then an error is returned. If the sample_merged parameter is non-zero, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of a merged sampling, the supplied drawable is ignored.",
|
||||
N_("Determine the color at the given drawable coordinates"),
|
||||
N_("This tool determines the color at the specified coordinates. The returned color is an RGB triplet even for grayscale and indexed drawables. If the coordinates lie outside of the extents of the specified drawable, then an error is returned. If the drawable has an alpha channel, the algorithm examines the alpha value of the drawable at the coordinates. If the alpha value is completely transparent (0), then an error is returned. If the sample_merged parameter is non-zero, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of a merged sampling, the supplied drawable is ignored."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
|
|
@ -26,6 +26,8 @@
|
|||
#include "session.h"
|
||||
#include "color_area.h" /* for color_area_draw_rect */
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#define XY_DEF_WIDTH 240
|
||||
#define XY_DEF_HEIGHT 240
|
||||
#define Z_DEF_WIDTH 15
|
||||
|
@ -133,8 +135,8 @@ static ColorSelectFillUpdateProc update_procs[] =
|
|||
|
||||
static ActionAreaItem action_items[2] =
|
||||
{
|
||||
{ "OK", color_select_ok_callback, NULL, NULL },
|
||||
{ "Cancel", color_select_cancel_callback, NULL, NULL },
|
||||
{ N_("OK"), color_select_ok_callback, NULL, NULL },
|
||||
{ N_("Cancel"), color_select_cancel_callback, NULL, NULL },
|
||||
};
|
||||
|
||||
ColorSelectP
|
||||
|
@ -183,7 +185,7 @@ color_select_new (int r,
|
|||
|
||||
csp->shell = gtk_dialog_new ();
|
||||
gtk_window_set_wmclass (GTK_WINDOW (csp->shell), "color_selection", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (csp->shell), "Color Selection");
|
||||
gtk_window_set_title (GTK_WINDOW (csp->shell), _("Color Selection"));
|
||||
gtk_window_set_policy (GTK_WINDOW (csp->shell), FALSE, FALSE, FALSE);
|
||||
|
||||
|
||||
|
@ -335,7 +337,7 @@ color_select_new (int r,
|
|||
csp);
|
||||
gtk_widget_show (csp->hex_entry);
|
||||
|
||||
label = gtk_label_new ("Hex Triplet:");
|
||||
label = gtk_label_new (_("Hex Triplet:"));
|
||||
gtk_box_pack_end (GTK_BOX (hex_hbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
@ -344,13 +346,13 @@ color_select_new (int r,
|
|||
action_items[1].user_data = csp;
|
||||
if (csp->wants_updates)
|
||||
{
|
||||
action_items[0].label = "Close";
|
||||
action_items[1].label = "Revert to Old Color";
|
||||
action_items[0].label = _("Close");
|
||||
action_items[1].label = _("Revert to Old Color");
|
||||
}
|
||||
else
|
||||
{
|
||||
action_items[0].label = "OK";
|
||||
action_items[1].label = "Cancel";
|
||||
action_items[0].label = _("OK");
|
||||
action_items[1].label = _("Cancel");
|
||||
}
|
||||
build_action_area (GTK_DIALOG (csp->shell), action_items, 2, 0);
|
||||
|
||||
|
|
|
@ -67,6 +67,8 @@
|
|||
#include "tools.h"
|
||||
#include "undo.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
GtkWidget * shell;
|
||||
|
@ -360,7 +362,7 @@ select_border_cmd_callback (GtkWidget *widget,
|
|||
gdisp = gdisplay_active ();
|
||||
|
||||
sprintf (initial, "%d", gimage_mask_border_radius);
|
||||
query_string_box ("Border Selection", "Border selection by:", initial,
|
||||
query_string_box (_("Border Selection"), _("Border selection by:"), initial,
|
||||
gimage_mask_border_callback, gdisp->gimage);
|
||||
}
|
||||
|
||||
|
@ -374,7 +376,7 @@ select_feather_cmd_callback (GtkWidget *widget,
|
|||
gdisp = gdisplay_active ();
|
||||
|
||||
sprintf (initial, "%f", gimage_mask_feather_radius);
|
||||
query_string_box ("Feather Selection", "Feather selection by:", initial,
|
||||
query_string_box (_("Feather Selection"), _("Feather selection by:"), initial,
|
||||
gimage_mask_feather_callback, gdisp->gimage);
|
||||
}
|
||||
|
||||
|
@ -388,7 +390,7 @@ select_grow_cmd_callback (GtkWidget *widget,
|
|||
gdisp = gdisplay_active ();
|
||||
|
||||
sprintf (initial, "%d", gimage_mask_grow_pixels);
|
||||
query_string_box ("Grow Selection", "Grow selection by:", initial,
|
||||
query_string_box (_("Grow Selection"), _("Grow selection by:"), initial,
|
||||
gimage_mask_grow_callback, gdisp->gimage);
|
||||
}
|
||||
|
||||
|
@ -402,7 +404,7 @@ select_shrink_cmd_callback (GtkWidget *widget,
|
|||
gdisp = gdisplay_active ();
|
||||
|
||||
sprintf (initial, "%d", gimage_mask_shrink_pixels);
|
||||
query_string_box ("Shrink Selection", "Shrink selection by:", initial,
|
||||
query_string_box (_("Shrink Selection"), _("Shrink selection by:"), initial,
|
||||
gimage_mask_shrink_callback, gdisp->gimage);
|
||||
}
|
||||
|
||||
|
@ -736,8 +738,8 @@ image_resize_cmd_callback (GtkWidget *widget,
|
|||
{
|
||||
static ActionAreaItem action_items[2] =
|
||||
{
|
||||
{ "OK", image_resize_callback, NULL, NULL },
|
||||
{ "Cancel", image_cancel_callback, NULL, NULL }
|
||||
{ N_("OK"), image_resize_callback, NULL, NULL },
|
||||
{ N_("Cancel"), image_cancel_callback, NULL, NULL }
|
||||
};
|
||||
GDisplay * gdisp;
|
||||
GtkWidget *vbox;
|
||||
|
@ -753,7 +755,7 @@ image_resize_cmd_callback (GtkWidget *widget,
|
|||
/* the dialog */
|
||||
image_resize->shell = gtk_dialog_new ();
|
||||
gtk_window_set_wmclass (GTK_WINDOW (image_resize->shell), "image_resize", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (image_resize->shell), "Image Resize");
|
||||
gtk_window_set_title (GTK_WINDOW (image_resize->shell), _("Image Resize"));
|
||||
gtk_window_set_policy (GTK_WINDOW (image_resize->shell), FALSE, FALSE, TRUE);
|
||||
gtk_window_position (GTK_WINDOW (image_resize->shell), GTK_WIN_POS_MOUSE);
|
||||
|
||||
|
@ -783,8 +785,8 @@ image_scale_cmd_callback (GtkWidget *widget,
|
|||
{
|
||||
static ActionAreaItem action_items[2] =
|
||||
{
|
||||
{ "OK", image_scale_callback, NULL, NULL },
|
||||
{ "Cancel", image_cancel_callback, NULL, NULL }
|
||||
{ N_("OK"), image_scale_callback, NULL, NULL },
|
||||
{ N_("Cancel"), image_cancel_callback, NULL, NULL }
|
||||
};
|
||||
GDisplay * gdisp;
|
||||
GtkWidget *vbox;
|
||||
|
@ -800,7 +802,7 @@ image_scale_cmd_callback (GtkWidget *widget,
|
|||
/* the dialog */
|
||||
image_scale->shell = gtk_dialog_new ();
|
||||
gtk_window_set_wmclass (GTK_WINDOW (image_scale->shell), "image_scale", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (image_scale->shell), "Image Scale");
|
||||
gtk_window_set_title (GTK_WINDOW (image_scale->shell), _("Image Scale"));
|
||||
gtk_window_set_policy (GTK_WINDOW (image_scale->shell), FALSE, FALSE, TRUE);
|
||||
gtk_window_position (GTK_WINDOW (image_scale->shell), GTK_WIN_POS_MOUSE);
|
||||
|
||||
|
@ -1096,7 +1098,7 @@ image_resize_callback (GtkWidget *w,
|
|||
}
|
||||
else
|
||||
{
|
||||
g_message ("Resize Error: Both width and height must be greater than zero.");
|
||||
g_message (_("Resize Error: Both width and height must be greater than zero."));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -1126,7 +1128,7 @@ image_scale_callback (GtkWidget *w,
|
|||
}
|
||||
else
|
||||
{
|
||||
g_message ("Scale Error: Both width and height must be greater than zero.");
|
||||
g_message (_("Scale Error: Both width and height must be greater than zero."));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -79,6 +79,8 @@
|
|||
#include "undo.h"
|
||||
#include "palette.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#include "layer_pvt.h" /* ick. */
|
||||
#include "drawable_pvt.h" /* ick ick. */
|
||||
#include "tile_manager_pvt.h" /* ick ick ick. */
|
||||
|
@ -276,8 +278,8 @@ convert_to_grayscale (GimpImage* gimage)
|
|||
/* the action area structure */
|
||||
static ActionAreaItem action_items[] =
|
||||
{
|
||||
{ "OK", indexed_ok_callback, NULL, NULL },
|
||||
{ "Cancel", indexed_cancel_callback, NULL, NULL }
|
||||
{ N_("OK"), indexed_ok_callback, NULL, NULL },
|
||||
{ N_("Cancel"), indexed_cancel_callback, NULL, NULL }
|
||||
};
|
||||
|
||||
static void
|
||||
|
@ -319,12 +321,12 @@ convert_to_indexed (GimpImage *gimage)
|
|||
|
||||
dialog->shell = gtk_dialog_new ();
|
||||
gtk_window_set_wmclass (GTK_WINDOW (dialog->shell), "indexed_color_conversion", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (dialog->shell), "Indexed Color Conversion");
|
||||
gtk_window_set_title (GTK_WINDOW (dialog->shell), _("Indexed Color Conversion"));
|
||||
gtk_signal_connect (GTK_OBJECT (dialog->shell), "delete_event",
|
||||
GTK_SIGNAL_FUNC (indexed_delete_callback),
|
||||
dialog);
|
||||
|
||||
frame = gtk_frame_new ("Palette Options");
|
||||
frame = gtk_frame_new (_("Palette Options"));
|
||||
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
|
||||
gtk_container_border_width (GTK_CONTAINER (frame), 2);
|
||||
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog->shell)->vbox), frame, TRUE, TRUE, 0);
|
||||
|
@ -341,7 +343,7 @@ convert_to_indexed (GimpImage *gimage)
|
|||
gtk_container_border_width (GTK_CONTAINER (vbox), 2);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
|
||||
toggle = gtk_radio_button_new_with_label (group, "Generate optimal palette: ");
|
||||
toggle = gtk_radio_button_new_with_label (group, _("Generate optimal palette: "));
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, TRUE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
|
@ -349,7 +351,7 @@ convert_to_indexed (GimpImage *gimage)
|
|||
&(dialog->makepal_flag));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), dialog->makepal_flag);
|
||||
gtk_widget_show (toggle);
|
||||
label = gtk_label_new ("# of colors: ");
|
||||
label = gtk_label_new (_("# of colors: "));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
@ -402,7 +404,7 @@ convert_to_indexed (GimpImage *gimage)
|
|||
/* 'custom' palette from dialog */
|
||||
hbox = gtk_hbox_new (FALSE, 1);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
toggle = gtk_radio_button_new_with_label (group, "Use custom palette");
|
||||
toggle = gtk_radio_button_new_with_label (group, _("Use custom palette"));
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, TRUE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
|
@ -434,7 +436,7 @@ convert_to_indexed (GimpImage *gimage)
|
|||
{
|
||||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
toggle =
|
||||
gtk_radio_button_new_with_label (group, "Use WWW-optimised palette");
|
||||
gtk_radio_button_new_with_label (group, _("Use WWW-optimised palette"));
|
||||
{
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, TRUE, 0);
|
||||
|
@ -452,7 +454,7 @@ convert_to_indexed (GimpImage *gimage)
|
|||
hbox = gtk_hbox_new (FALSE, 1);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
toggle =
|
||||
gtk_radio_button_new_with_label (group, "Use black/white (1-bit) palette");
|
||||
gtk_radio_button_new_with_label (group, _("Use black/white (1-bit) palette"));
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, TRUE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
|
@ -462,7 +464,7 @@ convert_to_indexed (GimpImage *gimage)
|
|||
gtk_widget_show (toggle);
|
||||
gtk_widget_show (hbox);
|
||||
|
||||
frame = gtk_frame_new ("Dither Options");
|
||||
frame = gtk_frame_new (_("Dither Options"));
|
||||
{
|
||||
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
|
||||
gtk_container_border_width (GTK_CONTAINER (frame), 2);
|
||||
|
@ -476,7 +478,7 @@ convert_to_indexed (GimpImage *gimage)
|
|||
hbox = gtk_hbox_new (FALSE, 1);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
|
||||
toggle = gtk_check_button_new_with_label ("Enable Floyd-Steinberg dithering");
|
||||
toggle = gtk_check_button_new_with_label (_("Enable Floyd-Steinberg dithering"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), dialog->dither);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
|
@ -500,7 +502,7 @@ convert_to_indexed (GimpImage *gimage)
|
|||
)
|
||||
)
|
||||
{
|
||||
frame = gtk_frame_new (" [ Warning ] ");
|
||||
frame = gtk_frame_new (_(" [ Warning ] "));
|
||||
{
|
||||
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
|
||||
gtk_container_border_width (GTK_CONTAINER (frame), 2);
|
||||
|
@ -1194,7 +1196,7 @@ generate_histogram_rgb (Histogram histogram,
|
|||
* quantizing at a later stage.
|
||||
*/
|
||||
needs_quantize = TRUE;
|
||||
/* g_print ("\nmax colours exceeded - needs quantize.\n");*/
|
||||
/* g_print (_("\nmax colours exceeded - needs quantize.\n"));*/
|
||||
goto already_found;
|
||||
}
|
||||
else
|
||||
|
@ -2354,8 +2356,8 @@ median_cut_pass2_nodestruct_dither_rgb (QuantizeObj *quantobj,
|
|||
goto got_colour;
|
||||
}
|
||||
}
|
||||
g_error ("Non-existant colour was expected to "
|
||||
"be in non-destructive colourmap.");
|
||||
g_error (_("Non-existant colour was expected to "
|
||||
"be in non-destructive colourmap."));
|
||||
got_colour:
|
||||
dest[INDEXED_PIX] = lastindex;
|
||||
if (has_alpha)
|
||||
|
@ -2915,15 +2917,15 @@ ProcArg convert_rgb_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord convert_rgb_proc =
|
||||
{
|
||||
"gimp_convert_rgb",
|
||||
"Convert specified image to RGB color",
|
||||
"This procedure converts the specified image to RGB color. This process requires an image of type GRAY or INDEXED. No image content is lost in this process aside from the colormap for an indexed image.",
|
||||
N_("Convert specified image to RGB color"),
|
||||
N_("This procedure converts the specified image to RGB color. This process requires an image of type GRAY or INDEXED. No image content is lost in this process aside from the colormap for an indexed image."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -2973,15 +2975,15 @@ ProcArg convert_grayscale_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord convert_grayscale_proc =
|
||||
{
|
||||
"gimp_convert_grayscale",
|
||||
"Convert specified image to grayscale (256 intensity levels)",
|
||||
"This procedure converts the specified image to grayscale with 8 bits per pixel (256 intensity levels). This process requires an image of type RGB or INDEXED.",
|
||||
N_("Convert specified image to grayscale (256 intensity levels)"),
|
||||
N_("This procedure converts the specified image to grayscale with 8 bits per pixel (256 intensity levels). This process requires an image of type RGB or INDEXED."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -3031,23 +3033,23 @@ ProcArg convert_indexed_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"dither",
|
||||
"Floyd-Steinberg dithering"
|
||||
N_("Floyd-Steinberg dithering")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"num_cols",
|
||||
"the number of colors to quantize to"
|
||||
N_("the number of colors to quantize to")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord convert_indexed_proc =
|
||||
{
|
||||
"gimp_convert_indexed",
|
||||
"Convert specified image to indexed color",
|
||||
"This procedure converts the specified image to indexed color. This process requires an image of type GRAY or RGB. The 'num_cols' arguments specifies how many colors the resulting image should be quantized to (1-256).",
|
||||
N_("Convert specified image to indexed color"),
|
||||
N_("This procedure converts the specified image to indexed color. This process requires an image of type GRAY or RGB. The 'num_cols' arguments specifies how many colors the resulting image should be quantized to (1-256)."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -3107,31 +3109,31 @@ ProcArg convert_indexed_palette_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"dither",
|
||||
"Floyd-Steinberg dithering"
|
||||
N_("Floyd-Steinberg dithering")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"palette_type",
|
||||
"The type of palette to use, (0 optimal) (1 reuse) (2 WWW) (3 Mono) (4 Custom)"
|
||||
N_("The type of palette to use, (0 optimal) (1 reuse) (2 WWW) (3 Mono) (4 Custom)")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"num_cols",
|
||||
"the number of colors to quantize to, ignored unless (palette_type == 0)"
|
||||
N_("the number of colors to quantize to, ignored unless (palette_type == 0)")
|
||||
},
|
||||
{ PDB_STRING,
|
||||
"palette",
|
||||
"The name of the custom palette to use, ignored unless (palette_type == 4)"
|
||||
N_("The name of the custom palette to use, ignored unless (palette_type == 4)")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord convert_indexed_palette_proc =
|
||||
{
|
||||
"gimp_convert_indexed_palette",
|
||||
"Convert specified image to indexed color",
|
||||
"This procedure converts the specified image to indexed color. This process requires an image of type GRAY or RGB. The `palette_type' specifies what kind of palette to use, A type of `0' means to use an optimal palette of `num_cols' generated from the colors in the image. A type of `1' means to re-use the previous palette. A type of `2' means to use the WWW-optimized palette. Type `3' means to use only black and white colors. A type of `4' means to use a palette from the gimp palettes directories.",
|
||||
N_("Convert specified image to indexed color"),
|
||||
N_("This procedure converts the specified image to indexed color. This process requires an image of type GRAY or RGB. The `palette_type' specifies what kind of palette to use, A type of `0' means to use an optimal palette of `num_cols' generated from the colors in the image. A type of `1' means to re-use the previous palette. A type of `2' means to use the WWW-optimized palette. Type `3' means to use only black and white colors. A type of `4' means to use a palette from the gimp palettes directories."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -3193,7 +3195,7 @@ convert_indexed_palette_invoker (Argument *args)
|
|||
break;
|
||||
case CUSTOM_PALETTE:
|
||||
palette_name = args[4].value.pdb_pointer;
|
||||
/* fprintf(stderr, "looking for palette `%s'\n", palette_name); */
|
||||
/* fprintf(stderr, _("looking for palette `%s'\n"), palette_name); */
|
||||
if (!palette_entries_list) palette_init_palettes(FALSE);
|
||||
for(list = palette_entries_list;
|
||||
list;
|
||||
|
|
|
@ -29,6 +29,8 @@
|
|||
#include "tools.h"
|
||||
#include "gimage.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
typedef enum
|
||||
{
|
||||
Blur,
|
||||
|
@ -126,9 +128,9 @@ create_convolve_options (void)
|
|||
int i;
|
||||
char *button_names[3] =
|
||||
{
|
||||
"Blur",
|
||||
"Sharpen",
|
||||
"Custom"
|
||||
N_("Blur"),
|
||||
N_("Sharpen"),
|
||||
N_("Custom")
|
||||
};
|
||||
|
||||
/* the new options structure */
|
||||
|
@ -140,7 +142,7 @@ create_convolve_options (void)
|
|||
vbox = gtk_vbox_new (FALSE, 2);
|
||||
|
||||
/* the main label */
|
||||
label = gtk_label_new ("Convolver Options");
|
||||
label = gtk_label_new (_("Convolver Options"));
|
||||
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
@ -148,7 +150,7 @@ create_convolve_options (void)
|
|||
hbox = gtk_hbox_new (FALSE, 1);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
|
||||
label = gtk_label_new ("Pressure");
|
||||
label = gtk_label_new (_("Pressure"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
@ -424,27 +426,27 @@ ProcArg convolve_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_DRAWABLE,
|
||||
"drawable",
|
||||
"the drawable"
|
||||
N_("the drawable")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"pressure",
|
||||
"the pressure: 0 <= pressure <= 100"
|
||||
N_("the pressure: 0 <= pressure <= 100")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"convolve_type",
|
||||
"convolve type: { BLUR (0), SHARPEN (1) }"
|
||||
N_("convolve type: { BLUR (0), SHARPEN (1) }")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"num_strokes",
|
||||
"number of stroke control points (count each coordinate as 2 points)"
|
||||
N_("number of stroke control points (count each coordinate as 2 points)")
|
||||
},
|
||||
{ PDB_FLOATARRAY,
|
||||
"strokes",
|
||||
"array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}"
|
||||
N_("array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}")
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -452,8 +454,8 @@ ProcArg convolve_args[] =
|
|||
ProcRecord convolve_proc =
|
||||
{
|
||||
"gimp_convolve",
|
||||
"Convolve (Blur, Sharpen) using the current brush",
|
||||
"This tool convolves the specified drawable with either a sharpening or blurring kernel. The pressure parameter controls the magnitude of the operation. Like the paintbrush, this tool linearly interpolates between the specified stroke coordinates.",
|
||||
N_("Convolve (Blur, Sharpen) using the current brush"),
|
||||
N_("This tool convolves the specified drawable with either a sharpening or blurring kernel. The pressure parameter controls the magnitude of the operation. Like the paintbrush, this tool linearly interpolates between the specified stroke coordinates."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
|
|
@ -31,6 +31,8 @@
|
|||
#include "temp_buf.h"
|
||||
#include "undo.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#include "channel_pvt.h"
|
||||
#include "tile.h"
|
||||
|
||||
|
@ -182,13 +184,13 @@ channel_copy (Channel *channel)
|
|||
name = channel_get_name(channel);
|
||||
ext = strrchr(name, '#');
|
||||
channel_name = (char *) g_malloc (strlen (name) + 6);
|
||||
if ((strlen(name) >= 4 && strcmp(&name[strlen(name) -4], "copy") == 0) ||
|
||||
if ((strlen(name) >= 4 && strcmp(&name[strlen(name) -4], _("copy")) == 0) ||
|
||||
(ext && (number = atoi(ext+1)) > 0 &&
|
||||
((int)(log10(number) + 1)) == strlen(ext+1)))
|
||||
/* don't have rudundant "copy"s */
|
||||
sprintf (channel_name, "%s", name);
|
||||
else
|
||||
sprintf (channel_name, "%s copy", name);
|
||||
sprintf (channel_name, N_("%s copy"), name);
|
||||
|
||||
/* allocate a new channel object */
|
||||
new_channel = channel_new (GIMP_DRAWABLE(channel)->gimage,
|
||||
|
@ -493,7 +495,7 @@ channel_new_mask (GimpImage* gimage, int width, int height)
|
|||
Channel *new_channel;
|
||||
|
||||
/* Create the new channel */
|
||||
new_channel = channel_new (gimage, width, height, "Selection Mask", 127, black);
|
||||
new_channel = channel_new (gimage, width, height, _("Selection Mask"), 127, black);
|
||||
|
||||
/* Set the validate procedure */
|
||||
tile_manager_set_validate_proc (GIMP_DRAWABLE(new_channel)->tiles, channel_validate);
|
||||
|
|
|
@ -31,6 +31,8 @@
|
|||
#include "temp_buf.h"
|
||||
#include "undo.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#include "channel_pvt.h"
|
||||
#include "tile.h"
|
||||
|
||||
|
@ -182,13 +184,13 @@ channel_copy (Channel *channel)
|
|||
name = channel_get_name(channel);
|
||||
ext = strrchr(name, '#');
|
||||
channel_name = (char *) g_malloc (strlen (name) + 6);
|
||||
if ((strlen(name) >= 4 && strcmp(&name[strlen(name) -4], "copy") == 0) ||
|
||||
if ((strlen(name) >= 4 && strcmp(&name[strlen(name) -4], _("copy")) == 0) ||
|
||||
(ext && (number = atoi(ext+1)) > 0 &&
|
||||
((int)(log10(number) + 1)) == strlen(ext+1)))
|
||||
/* don't have rudundant "copy"s */
|
||||
sprintf (channel_name, "%s", name);
|
||||
else
|
||||
sprintf (channel_name, "%s copy", name);
|
||||
sprintf (channel_name, N_("%s copy"), name);
|
||||
|
||||
/* allocate a new channel object */
|
||||
new_channel = channel_new (GIMP_DRAWABLE(channel)->gimage,
|
||||
|
@ -493,7 +495,7 @@ channel_new_mask (GimpImage* gimage, int width, int height)
|
|||
Channel *new_channel;
|
||||
|
||||
/* Create the new channel */
|
||||
new_channel = channel_new (gimage, width, height, "Selection Mask", 127, black);
|
||||
new_channel = channel_new (gimage, width, height, _("Selection Mask"), 127, black);
|
||||
|
||||
/* Set the validate procedure */
|
||||
tile_manager_set_validate_proc (GIMP_DRAWABLE(new_channel)->tiles, channel_validate);
|
||||
|
|
|
@ -37,6 +37,8 @@
|
|||
#include "tools.h"
|
||||
#include "undo.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#include "tile.h"
|
||||
|
||||
/* target size */
|
||||
|
@ -208,25 +210,25 @@ static PixelRegion distR =
|
|||
/* the blend option menu items -- the blend modes */
|
||||
static MenuItem blend_option_items[] =
|
||||
{
|
||||
{ "FG to BG (RGB)", 0, 0, blend_mode_callback, (gpointer) FG_BG_RGB_MODE, NULL, NULL },
|
||||
{ "FG to BG (HSV)", 0, 0, blend_mode_callback, (gpointer) FG_BG_HSV_MODE, NULL, NULL },
|
||||
{ "FG to Transparent", 0, 0, blend_mode_callback, (gpointer) FG_TRANS_MODE, NULL, NULL },
|
||||
{ "Custom (from editor)", 0, 0, blend_mode_callback, (gpointer) CUSTOM_MODE, NULL, NULL },
|
||||
{ N_("FG to BG RGB"), 0, 0, blend_mode_callback, (gpointer) FG_BG_RGB_MODE, NULL, NULL },
|
||||
{ N_("FG to BG HSV"), 0, 0, blend_mode_callback, (gpointer) FG_BG_HSV_MODE, NULL, NULL },
|
||||
{ N_("FG to Transparent"), 0, 0, blend_mode_callback, (gpointer) FG_TRANS_MODE, NULL, NULL },
|
||||
{ N_("Custom from editor"), 0, 0, blend_mode_callback, (gpointer) CUSTOM_MODE, NULL, NULL },
|
||||
{ NULL, 0, 0, NULL, NULL, NULL, NULL }
|
||||
};
|
||||
|
||||
/* the gradient option menu items -- the gradient modes */
|
||||
static MenuItem gradient_option_items[] =
|
||||
{
|
||||
{ "Linear", 0, 0, gradient_type_callback, (gpointer) Linear, NULL, NULL },
|
||||
{ "Bi-Linear", 0, 0, gradient_type_callback, (gpointer) BiLinear, NULL, NULL },
|
||||
{ "Radial", 0, 0, gradient_type_callback, (gpointer) Radial, NULL, NULL },
|
||||
{ "Square", 0, 0, gradient_type_callback, (gpointer) Square, NULL, NULL },
|
||||
{ "Conical (symmetric)", 0, 0, gradient_type_callback, (gpointer) ConicalSymmetric, NULL, NULL },
|
||||
{ "Conical (asymmetric)", 0, 0, gradient_type_callback, (gpointer) ConicalAsymmetric, NULL, NULL },
|
||||
{ "Shapeburst (angular)", 0, 0, gradient_type_callback, (gpointer) ShapeburstAngular, NULL, NULL },
|
||||
{ "Shapeburst (spherical)", 0, 0, gradient_type_callback, (gpointer) ShapeburstSpherical, NULL, NULL },
|
||||
{ "Shapeburst (dimpled)", 0, 0, gradient_type_callback, (gpointer) ShapeburstDimpled, NULL, NULL },
|
||||
{ N_("Linear"), 0, 0, gradient_type_callback, (gpointer) Linear, NULL, NULL },
|
||||
{ N_("Bi-Linear"), 0, 0, gradient_type_callback, (gpointer) BiLinear, NULL, NULL },
|
||||
{ N_("Radial"), 0, 0, gradient_type_callback, (gpointer) Radial, NULL, NULL },
|
||||
{ N_("Square"), 0, 0, gradient_type_callback, (gpointer) Square, NULL, NULL },
|
||||
{ N_("Conical (symmetric)"), 0, 0, gradient_type_callback, (gpointer) ConicalSymmetric, NULL, NULL },
|
||||
{ N_("Conical (asymmetric)"), 0, 0, gradient_type_callback, (gpointer) ConicalAsymmetric, NULL, NULL },
|
||||
{ N_("Shapeburst (angular)"), 0, 0, gradient_type_callback, (gpointer) ShapeburstAngular, NULL, NULL },
|
||||
{ N_("Shapeburst (spherical)"), 0, 0, gradient_type_callback, (gpointer) ShapeburstSpherical, NULL, NULL },
|
||||
{ N_("Shapeburst (dimpled)"), 0, 0, gradient_type_callback, (gpointer) ShapeburstDimpled, NULL, NULL },
|
||||
{ NULL, 0, 0, NULL, NULL, NULL, NULL }
|
||||
};
|
||||
|
||||
|
@ -237,9 +239,9 @@ static BlendOptions *blend_options = NULL;
|
|||
|
||||
static MenuItem repeat_option_items[] =
|
||||
{
|
||||
{ "None", 0, 0, repeat_type_callback, (gpointer) REPEAT_NONE, NULL, NULL },
|
||||
{ "Sawtooth wave", 0, 0, repeat_type_callback, (gpointer) REPEAT_SAWTOOTH, NULL, NULL },
|
||||
{ "Triangular wave", 0, 0, repeat_type_callback, (gpointer) REPEAT_TRIANGULAR, NULL, NULL },
|
||||
{ N_("None"), 0, 0, repeat_type_callback, (gpointer) REPEAT_NONE, NULL, NULL },
|
||||
{ N_("Sawtooth wave"), 0, 0, repeat_type_callback, (gpointer) REPEAT_SAWTOOTH, NULL, NULL },
|
||||
{ N_("Triangular wave"), 0, 0, repeat_type_callback, (gpointer) REPEAT_TRIANGULAR, NULL, NULL },
|
||||
{ NULL, 0, 0, NULL, NULL, NULL, NULL }
|
||||
};
|
||||
|
||||
|
@ -355,7 +357,7 @@ create_blend_options ()
|
|||
vbox = gtk_vbox_new (FALSE, 2);
|
||||
|
||||
/* the main label */
|
||||
label = gtk_label_new ("Blend Options");
|
||||
label = gtk_label_new (_("Blend Options"));
|
||||
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
@ -365,7 +367,7 @@ create_blend_options ()
|
|||
gtk_box_pack_start(GTK_BOX(vbox), table, TRUE, TRUE, 0);
|
||||
|
||||
/* the opacity scale */
|
||||
label = gtk_label_new ("Opacity:");
|
||||
label = gtk_label_new (_("Opacity:"));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 1.0);
|
||||
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2);
|
||||
|
@ -383,7 +385,7 @@ create_blend_options ()
|
|||
gtk_widget_show (opacity_scale);
|
||||
|
||||
/* the offset scale */
|
||||
label = gtk_label_new ("Offset:");
|
||||
label = gtk_label_new (_("Offset:"));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 1.0);
|
||||
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2);
|
||||
|
@ -401,7 +403,7 @@ create_blend_options ()
|
|||
gtk_widget_show (offset_scale);
|
||||
|
||||
/* the paint mode menu */
|
||||
label = gtk_label_new ("Mode:");
|
||||
label = gtk_label_new (_("Mode:"));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 2, 3,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2);
|
||||
|
@ -414,7 +416,7 @@ create_blend_options ()
|
|||
gtk_widget_show (pm_option_menu);
|
||||
|
||||
/* the blend mode menu */
|
||||
label = gtk_label_new ("Blend:");
|
||||
label = gtk_label_new (_("Blend:"));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 3, 4,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2);
|
||||
|
@ -427,7 +429,7 @@ create_blend_options ()
|
|||
gtk_widget_show (bm_option_menu);
|
||||
|
||||
/* the gradient type menu */
|
||||
label = gtk_label_new ("Gradient:");
|
||||
label = gtk_label_new (_("Gradient:"));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 4, 5,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2);
|
||||
|
@ -441,7 +443,7 @@ create_blend_options ()
|
|||
|
||||
/* the repeat option */
|
||||
|
||||
label = gtk_label_new("Repeat:");
|
||||
label = gtk_label_new(_("Repeat:"));
|
||||
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
|
||||
gtk_table_attach(GTK_TABLE(table), label, 0, 1, 5, 6,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2);
|
||||
|
@ -460,7 +462,7 @@ create_blend_options ()
|
|||
|
||||
/* supersampling toggle */
|
||||
|
||||
button = gtk_check_button_new_with_label("Adaptive supersampling");
|
||||
button = gtk_check_button_new_with_label(_("Adaptive supersampling"));
|
||||
gtk_box_pack_start(GTK_BOX(vbox), button, FALSE, FALSE, 0);
|
||||
gtk_signal_connect(GTK_OBJECT(button), "toggled",
|
||||
(GtkSignalFunc) supersample_toggle_update,
|
||||
|
@ -482,7 +484,7 @@ create_blend_options ()
|
|||
|
||||
/* max depth scale */
|
||||
|
||||
label = gtk_label_new("Max depth:");
|
||||
label = gtk_label_new(_("Max depth:"));
|
||||
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 1.0);
|
||||
gtk_table_attach(GTK_TABLE(table), label, 0, 1, 0, 1,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2);
|
||||
|
@ -501,7 +503,7 @@ create_blend_options ()
|
|||
|
||||
/* threshold scale */
|
||||
|
||||
label = gtk_label_new("Threshold:");
|
||||
label = gtk_label_new(_("Threshold:"));
|
||||
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 1.0);
|
||||
gtk_table_attach(GTK_TABLE(table), label, 0, 1, 1, 2,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2);
|
||||
|
@ -555,7 +557,7 @@ blend_button_press (Tool *tool,
|
|||
switch (drawable_type (gimage_active_drawable (gdisp->gimage)))
|
||||
{
|
||||
case INDEXED_GIMAGE: case INDEXEDA_GIMAGE:
|
||||
g_message ("Blend: Invalid for indexed images.");
|
||||
g_message (_("Blend: Invalid for indexed images."));
|
||||
return;
|
||||
|
||||
break;
|
||||
|
@ -580,7 +582,7 @@ blend_button_press (Tool *tool,
|
|||
|
||||
/* initialize the statusbar display */
|
||||
blend_tool->context_id = gtk_statusbar_get_context_id (GTK_STATUSBAR (gdisp->statusbar), "blend");
|
||||
gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), blend_tool->context_id, "Blend: 0, 0");
|
||||
gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), blend_tool->context_id, _("Blend: 0, 0"));
|
||||
|
||||
/* Start drawing the blend tool */
|
||||
draw_core_start (blend_tool->core, gdisp->canvas->window, tool);
|
||||
|
@ -636,7 +638,7 @@ blend_button_release (Tool *tool,
|
|||
if (return_vals[0].value.pdb_int == PDB_SUCCESS)
|
||||
gdisplays_flush ();
|
||||
else
|
||||
g_message ("Blend operation failed.");
|
||||
g_message (_("Blend operation failed."));
|
||||
|
||||
procedural_db_destroy_args (return_vals, nreturn_vals);
|
||||
}
|
||||
|
@ -662,7 +664,7 @@ blend_motion (Tool *tool,
|
|||
&blend_tool->endx, &blend_tool->endy, FALSE, 1);
|
||||
|
||||
gtk_statusbar_pop (GTK_STATUSBAR (gdisp->statusbar), blend_tool->context_id);
|
||||
g_snprintf (vector, STATUSBAR_SIZE, "Blend: %d, %d",
|
||||
g_snprintf (vector, STATUSBAR_SIZE, _("Blend: %d, %d"),
|
||||
abs(blend_tool->endx - blend_tool->startx),
|
||||
abs(blend_tool->endy - blend_tool->starty));
|
||||
gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), blend_tool->context_id, vector);
|
||||
|
@ -1248,7 +1250,7 @@ gradient_render_pixel(double x, double y, color_t *color, void *render_data)
|
|||
break;
|
||||
|
||||
default:
|
||||
fatal_error("gradient_render_pixel(): unknown gradient type %d",
|
||||
fatal_error(_("gradient_render_pixel(): unknown gradient type %d"),
|
||||
(int) rbd->gradient_type);
|
||||
return;
|
||||
}
|
||||
|
@ -1380,7 +1382,7 @@ gradient_fill_region (GImage *gimage,
|
|||
break;
|
||||
|
||||
default:
|
||||
fatal_error("gradient_fill_region(): unknown blend mode %d",
|
||||
fatal_error(_("gradient_fill_region(): unknown blend mode %d"),
|
||||
(int) blend_mode);
|
||||
break;
|
||||
}
|
||||
|
@ -1419,7 +1421,7 @@ gradient_fill_region (GImage *gimage,
|
|||
break;
|
||||
|
||||
default:
|
||||
fatal_error("gradient_fill_region(): unknown gradient type %d",
|
||||
fatal_error(_("gradient_fill_region(): unknown gradient type %d"),
|
||||
(int) gradient_type);
|
||||
break;
|
||||
}
|
||||
|
@ -1441,7 +1443,7 @@ gradient_fill_region (GImage *gimage,
|
|||
break;
|
||||
|
||||
default:
|
||||
fatal_error("gradient_fill_region(): unknown repeat mode %d",
|
||||
fatal_error(_("gradient_fill_region(): unknown repeat mode %d"),
|
||||
(int) repeat);
|
||||
break;
|
||||
}
|
||||
|
@ -1711,71 +1713,71 @@ ProcArg blend_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"The image"
|
||||
N_("The image")
|
||||
},
|
||||
{ PDB_DRAWABLE,
|
||||
"drawable",
|
||||
"The affected drawable"
|
||||
N_("The affected drawable")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"blend_mode",
|
||||
"The type of blend: { FG-BG-RGB (0), FG-BG-HSV (1), FG-TRANS (2), CUSTOM (3) }"
|
||||
N_("The type of blend: { FG-BG-RGB (0), FG-BG-HSV (1), FG-TRANS (2), CUSTOM (3) }")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"paint_mode",
|
||||
"the paint application mode: { NORMAL (0), DISSOLVE (1), BEHIND (2), MULTIPLY/BURN (3), SCREEN (4), OVERLAY (5) DIFFERENCE (6), ADDITION (7), SUBTRACT (8), DARKEN-ONLY (9), LIGHTEN-ONLY (10), HUE (11), SATURATION (12), COLOR (13), VALUE (14), DIVIDE/DODGE (15) }"
|
||||
N_("the paint application mode: { NORMAL (0), DISSOLVE (1), BEHIND (2), MULTIPLY/BURN (3), SCREEN (4), OVERLAY (5) DIFFERENCE (6), ADDITION (7), SUBTRACT (8), DARKEN-ONLY (9), LIGHTEN-ONLY (10), HUE (11), SATURATION (12), COLOR (13), VALUE (14), DIVIDE/DODGE (15) }")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"gradient_type",
|
||||
"The type of gradient: { LINEAR (0), BILINEAR (1), RADIAL (2), SQUARE (3), CONICAL-SYMMETRIC (4), CONICAL-ASYMMETRIC (5), SHAPEBURST-ANGULAR (6), SHAPEBURST-SPHERICAL (7), SHAPEBURST-DIMPLED (8) }"
|
||||
N_("The type of gradient: { LINEAR (0), BILINEAR (1), RADIAL (2), SQUARE (3), CONICAL-SYMMETRIC (4), CONICAL-ASYMMETRIC (5), SHAPEBURST-ANGULAR (6), SHAPEBURST-SPHERICAL (7), SHAPEBURST-DIMPLED (8) }")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"opacity",
|
||||
"The opacity of the final blend (0 <= opacity <= 100)"
|
||||
N_("The opacity of the final blend (0 <= opacity <= 100)")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"offset",
|
||||
"Offset relates to the starting and ending coordinates specified for the blend. This parameter is mode depndent (0 <= offset)"
|
||||
N_("Offset relates to the starting and ending coordinates specified for the blend. This parameter is mode depndent (0 <= offset)")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"repeat",
|
||||
"Repeat mode: { REPEAT-NONE (0), REPEAT-SAWTOOTH (1), REPEAT-TRIANGULAR (2) }"
|
||||
N_("Repeat mode: { REPEAT-NONE (0), REPEAT-SAWTOOTH (1), REPEAT-TRIANGULAR (2) }")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"supersample",
|
||||
"Do adaptive supersampling (true / false)"
|
||||
N_("Do adaptive supersampling (true / false)")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"max_depth",
|
||||
"Maximum recursion levels for supersampling"
|
||||
N_("Maximum recursion levels for supersampling")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"threshold",
|
||||
"Supersampling threshold"
|
||||
N_("Supersampling threshold")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"x1",
|
||||
"The x coordinate of this blend's starting point"
|
||||
N_("The x coordinate of this blend's starting point")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"y1",
|
||||
"The y coordinate of this blend's starting point"
|
||||
N_("The y coordinate of this blend's starting point")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"x2",
|
||||
"The x coordinate of this blend's ending point"
|
||||
N_("The x coordinate of this blend's ending point")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"y2",
|
||||
"The y coordinate of this blend's ending point"
|
||||
N_("The y coordinate of this blend's ending point")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord blend_proc =
|
||||
{
|
||||
"gimp_blend",
|
||||
"Blend between the starting and ending coordinates with the specified blend mode and gradient type.",
|
||||
"This tool requires information on the paint application mode, the blend mode, and the gradient type. It creates the specified variety of blend using the starting and ending coordinates as defined for each gradient type.",
|
||||
N_("Blend between the starting and ending coordinates with the specified blend mode and gradient type."),
|
||||
N_("This tool requires information on the paint application mode, the blend mode, and the gradient type. It creates the specified variety of blend using the starting and ending coordinates as defined for each gradient type."),
|
||||
"Spencer Kimball & Peter Mattis & Federico Mena Quintero",
|
||||
"Spencer Kimball & Peter Mattis & Federico Mena Quintero",
|
||||
"1995-1996",
|
||||
|
|
|
@ -25,6 +25,8 @@
|
|||
#include "paint_funcs.h"
|
||||
#include "gimage.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
static void desaturate (GimpDrawable *);
|
||||
static Argument * desaturate_invoker (Argument *);
|
||||
|
||||
|
@ -41,7 +43,7 @@ image_desaturate (gimage_ptr)
|
|||
|
||||
if (! drawable_color (drawable))
|
||||
{
|
||||
g_message ("Desaturate operates only on RGB color drawables.");
|
||||
g_message (_("Desaturate operates only on RGB color drawables."));
|
||||
return;
|
||||
}
|
||||
desaturate (drawable);
|
||||
|
@ -116,19 +118,19 @@ ProcArg desaturate_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_DRAWABLE,
|
||||
"drawable",
|
||||
"the drawable"
|
||||
N_("the drawable")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord desaturate_proc =
|
||||
{
|
||||
"gimp_desaturate",
|
||||
"Desaturate the contents of the specified drawable",
|
||||
"This procedure desaturates the contents of the specified drawable. This procedure only works on drawables of type RGB color.",
|
||||
N_("Desaturate the contents of the specified drawable"),
|
||||
N_("This procedure desaturates the contents of the specified drawable. This procedure only works on drawables of type RGB color."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
|
|
@ -24,6 +24,8 @@
|
|||
#include "interface.h"
|
||||
#include "gimage.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
static void equalize (GImage *, GimpDrawable *, int);
|
||||
static void eq_histogram (double [3][256], unsigned char [3][256], int, double);
|
||||
static Argument * equalize_invoker (Argument *);
|
||||
|
@ -234,23 +236,23 @@ ProcArg equalize_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_DRAWABLE,
|
||||
"drawable",
|
||||
"the drawable"
|
||||
N_("the drawable")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"mask_only",
|
||||
"equalization option"
|
||||
N_("equalization option")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord equalize_proc =
|
||||
{
|
||||
"gimp_equalize",
|
||||
"Equalize the contents of the specified drawable",
|
||||
"This procedure equalizes the contents of the specified drawable. Each intensity channel is equalizeed independently. The equalizeed intensity is given as inten' = (255 - inten). Indexed color drawables are not valid for this operation. The 'mask_only' option specifies whether to adjust only the area of the image within the selection bounds, or the entire image based on the histogram of the selected area. If there is no selection, the entire image is adjusted based on the histogram for the entire image.",
|
||||
N_("Equalize the contents of the specified drawable"),
|
||||
N_("This procedure equalizes the contents of the specified drawable. Each intensity channel is equalizeed independently. The equalizeed intensity is given as inten' = (255 - inten). Indexed color drawables are not valid for this operation. The 'mask_only' option specifies whether to adjust only the area of the image within the selection bounds, or the entire image based on the histogram of the selected area. If there is no selection, the entire image is adjusted based on the histogram for the entire image."),
|
||||
"Federico Mena Quintero & Spencer Kimball & Peter Mattis",
|
||||
"Federico Mena Quintero & Spencer Kimball & Peter Mattis",
|
||||
"1996",
|
||||
|
|
|
@ -79,6 +79,8 @@
|
|||
#include "undo.h"
|
||||
#include "palette.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#include "layer_pvt.h" /* ick. */
|
||||
#include "drawable_pvt.h" /* ick ick. */
|
||||
#include "tile_manager_pvt.h" /* ick ick ick. */
|
||||
|
@ -276,8 +278,8 @@ convert_to_grayscale (GimpImage* gimage)
|
|||
/* the action area structure */
|
||||
static ActionAreaItem action_items[] =
|
||||
{
|
||||
{ "OK", indexed_ok_callback, NULL, NULL },
|
||||
{ "Cancel", indexed_cancel_callback, NULL, NULL }
|
||||
{ N_("OK"), indexed_ok_callback, NULL, NULL },
|
||||
{ N_("Cancel"), indexed_cancel_callback, NULL, NULL }
|
||||
};
|
||||
|
||||
static void
|
||||
|
@ -319,12 +321,12 @@ convert_to_indexed (GimpImage *gimage)
|
|||
|
||||
dialog->shell = gtk_dialog_new ();
|
||||
gtk_window_set_wmclass (GTK_WINDOW (dialog->shell), "indexed_color_conversion", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (dialog->shell), "Indexed Color Conversion");
|
||||
gtk_window_set_title (GTK_WINDOW (dialog->shell), _("Indexed Color Conversion"));
|
||||
gtk_signal_connect (GTK_OBJECT (dialog->shell), "delete_event",
|
||||
GTK_SIGNAL_FUNC (indexed_delete_callback),
|
||||
dialog);
|
||||
|
||||
frame = gtk_frame_new ("Palette Options");
|
||||
frame = gtk_frame_new (_("Palette Options"));
|
||||
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
|
||||
gtk_container_border_width (GTK_CONTAINER (frame), 2);
|
||||
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog->shell)->vbox), frame, TRUE, TRUE, 0);
|
||||
|
@ -341,7 +343,7 @@ convert_to_indexed (GimpImage *gimage)
|
|||
gtk_container_border_width (GTK_CONTAINER (vbox), 2);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
|
||||
toggle = gtk_radio_button_new_with_label (group, "Generate optimal palette: ");
|
||||
toggle = gtk_radio_button_new_with_label (group, _("Generate optimal palette: "));
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, TRUE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
|
@ -349,7 +351,7 @@ convert_to_indexed (GimpImage *gimage)
|
|||
&(dialog->makepal_flag));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), dialog->makepal_flag);
|
||||
gtk_widget_show (toggle);
|
||||
label = gtk_label_new ("# of colors: ");
|
||||
label = gtk_label_new (_("# of colors: "));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
@ -402,7 +404,7 @@ convert_to_indexed (GimpImage *gimage)
|
|||
/* 'custom' palette from dialog */
|
||||
hbox = gtk_hbox_new (FALSE, 1);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
toggle = gtk_radio_button_new_with_label (group, "Use custom palette");
|
||||
toggle = gtk_radio_button_new_with_label (group, _("Use custom palette"));
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, TRUE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
|
@ -434,7 +436,7 @@ convert_to_indexed (GimpImage *gimage)
|
|||
{
|
||||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
toggle =
|
||||
gtk_radio_button_new_with_label (group, "Use WWW-optimised palette");
|
||||
gtk_radio_button_new_with_label (group, _("Use WWW-optimised palette"));
|
||||
{
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, TRUE, 0);
|
||||
|
@ -452,7 +454,7 @@ convert_to_indexed (GimpImage *gimage)
|
|||
hbox = gtk_hbox_new (FALSE, 1);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
toggle =
|
||||
gtk_radio_button_new_with_label (group, "Use black/white (1-bit) palette");
|
||||
gtk_radio_button_new_with_label (group, _("Use black/white (1-bit) palette"));
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, TRUE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
|
@ -462,7 +464,7 @@ convert_to_indexed (GimpImage *gimage)
|
|||
gtk_widget_show (toggle);
|
||||
gtk_widget_show (hbox);
|
||||
|
||||
frame = gtk_frame_new ("Dither Options");
|
||||
frame = gtk_frame_new (_("Dither Options"));
|
||||
{
|
||||
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
|
||||
gtk_container_border_width (GTK_CONTAINER (frame), 2);
|
||||
|
@ -476,7 +478,7 @@ convert_to_indexed (GimpImage *gimage)
|
|||
hbox = gtk_hbox_new (FALSE, 1);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
|
||||
toggle = gtk_check_button_new_with_label ("Enable Floyd-Steinberg dithering");
|
||||
toggle = gtk_check_button_new_with_label (_("Enable Floyd-Steinberg dithering"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), dialog->dither);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
|
@ -500,7 +502,7 @@ convert_to_indexed (GimpImage *gimage)
|
|||
)
|
||||
)
|
||||
{
|
||||
frame = gtk_frame_new (" [ Warning ] ");
|
||||
frame = gtk_frame_new (_(" [ Warning ] "));
|
||||
{
|
||||
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
|
||||
gtk_container_border_width (GTK_CONTAINER (frame), 2);
|
||||
|
@ -1194,7 +1196,7 @@ generate_histogram_rgb (Histogram histogram,
|
|||
* quantizing at a later stage.
|
||||
*/
|
||||
needs_quantize = TRUE;
|
||||
/* g_print ("\nmax colours exceeded - needs quantize.\n");*/
|
||||
/* g_print (_("\nmax colours exceeded - needs quantize.\n"));*/
|
||||
goto already_found;
|
||||
}
|
||||
else
|
||||
|
@ -2354,8 +2356,8 @@ median_cut_pass2_nodestruct_dither_rgb (QuantizeObj *quantobj,
|
|||
goto got_colour;
|
||||
}
|
||||
}
|
||||
g_error ("Non-existant colour was expected to "
|
||||
"be in non-destructive colourmap.");
|
||||
g_error (_("Non-existant colour was expected to "
|
||||
"be in non-destructive colourmap."));
|
||||
got_colour:
|
||||
dest[INDEXED_PIX] = lastindex;
|
||||
if (has_alpha)
|
||||
|
@ -2915,15 +2917,15 @@ ProcArg convert_rgb_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord convert_rgb_proc =
|
||||
{
|
||||
"gimp_convert_rgb",
|
||||
"Convert specified image to RGB color",
|
||||
"This procedure converts the specified image to RGB color. This process requires an image of type GRAY or INDEXED. No image content is lost in this process aside from the colormap for an indexed image.",
|
||||
N_("Convert specified image to RGB color"),
|
||||
N_("This procedure converts the specified image to RGB color. This process requires an image of type GRAY or INDEXED. No image content is lost in this process aside from the colormap for an indexed image."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -2973,15 +2975,15 @@ ProcArg convert_grayscale_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord convert_grayscale_proc =
|
||||
{
|
||||
"gimp_convert_grayscale",
|
||||
"Convert specified image to grayscale (256 intensity levels)",
|
||||
"This procedure converts the specified image to grayscale with 8 bits per pixel (256 intensity levels). This process requires an image of type RGB or INDEXED.",
|
||||
N_("Convert specified image to grayscale (256 intensity levels)"),
|
||||
N_("This procedure converts the specified image to grayscale with 8 bits per pixel (256 intensity levels). This process requires an image of type RGB or INDEXED."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -3031,23 +3033,23 @@ ProcArg convert_indexed_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"dither",
|
||||
"Floyd-Steinberg dithering"
|
||||
N_("Floyd-Steinberg dithering")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"num_cols",
|
||||
"the number of colors to quantize to"
|
||||
N_("the number of colors to quantize to")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord convert_indexed_proc =
|
||||
{
|
||||
"gimp_convert_indexed",
|
||||
"Convert specified image to indexed color",
|
||||
"This procedure converts the specified image to indexed color. This process requires an image of type GRAY or RGB. The 'num_cols' arguments specifies how many colors the resulting image should be quantized to (1-256).",
|
||||
N_("Convert specified image to indexed color"),
|
||||
N_("This procedure converts the specified image to indexed color. This process requires an image of type GRAY or RGB. The 'num_cols' arguments specifies how many colors the resulting image should be quantized to (1-256)."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -3107,31 +3109,31 @@ ProcArg convert_indexed_palette_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"dither",
|
||||
"Floyd-Steinberg dithering"
|
||||
N_("Floyd-Steinberg dithering")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"palette_type",
|
||||
"The type of palette to use, (0 optimal) (1 reuse) (2 WWW) (3 Mono) (4 Custom)"
|
||||
N_("The type of palette to use, (0 optimal) (1 reuse) (2 WWW) (3 Mono) (4 Custom)")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"num_cols",
|
||||
"the number of colors to quantize to, ignored unless (palette_type == 0)"
|
||||
N_("the number of colors to quantize to, ignored unless (palette_type == 0)")
|
||||
},
|
||||
{ PDB_STRING,
|
||||
"palette",
|
||||
"The name of the custom palette to use, ignored unless (palette_type == 4)"
|
||||
N_("The name of the custom palette to use, ignored unless (palette_type == 4)")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord convert_indexed_palette_proc =
|
||||
{
|
||||
"gimp_convert_indexed_palette",
|
||||
"Convert specified image to indexed color",
|
||||
"This procedure converts the specified image to indexed color. This process requires an image of type GRAY or RGB. The `palette_type' specifies what kind of palette to use, A type of `0' means to use an optimal palette of `num_cols' generated from the colors in the image. A type of `1' means to re-use the previous palette. A type of `2' means to use the WWW-optimized palette. Type `3' means to use only black and white colors. A type of `4' means to use a palette from the gimp palettes directories.",
|
||||
N_("Convert specified image to indexed color"),
|
||||
N_("This procedure converts the specified image to indexed color. This process requires an image of type GRAY or RGB. The `palette_type' specifies what kind of palette to use, A type of `0' means to use an optimal palette of `num_cols' generated from the colors in the image. A type of `1' means to re-use the previous palette. A type of `2' means to use the WWW-optimized palette. Type `3' means to use only black and white colors. A type of `4' means to use a palette from the gimp palettes directories."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -3193,7 +3195,7 @@ convert_indexed_palette_invoker (Argument *args)
|
|||
break;
|
||||
case CUSTOM_PALETTE:
|
||||
palette_name = args[4].value.pdb_pointer;
|
||||
/* fprintf(stderr, "looking for palette `%s'\n", palette_name); */
|
||||
/* fprintf(stderr, _("looking for palette `%s'\n"), palette_name); */
|
||||
if (!palette_entries_list) palette_init_palettes(FALSE);
|
||||
for(list = palette_entries_list;
|
||||
list;
|
||||
|
|
|
@ -31,6 +31,8 @@
|
|||
#include "paint_funcs.h"
|
||||
#include "undo.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#include "layer_pvt.h"
|
||||
#include "tile_manager_pvt.h" /* ick. */
|
||||
|
||||
|
@ -103,7 +105,7 @@ floating_sel_anchor (Layer *layer)
|
|||
return;
|
||||
if (! layer_is_floating_sel (layer))
|
||||
{
|
||||
g_message ("Cannot anchor this layer because\nit is not a floating selection.");
|
||||
g_message (_("Cannot anchor this layer because\nit is not a floating selection."));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -169,9 +171,9 @@ floating_sel_to_layer (Layer *layer)
|
|||
if (drawable_channel (layer->fs.drawable) ||
|
||||
drawable_layer_mask (layer->fs.drawable))
|
||||
{
|
||||
g_message ("Cannot create a new layer from the floating\n"
|
||||
g_message (_("Cannot create a new layer from the floating\n"
|
||||
"selection because it belongs to a\n"
|
||||
"layer mask or channel.");
|
||||
"layer mask or channel."));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -43,6 +43,8 @@
|
|||
#include "undo.h"
|
||||
#include "layer_pvt.h" /* ick. */
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#define OVERHEAD 25 /* in units of pixel area */
|
||||
#define EPSILON 5
|
||||
|
||||
|
@ -159,13 +161,13 @@ gdisplay_format_title (GimpImage *gimage,
|
|||
switch (gimage_base_type (gimage))
|
||||
{
|
||||
case RGB:
|
||||
image_type_str = (empty) ? "RGB-empty" : "RGB";
|
||||
image_type_str = (empty) ? _("RGB-empty") : _("RGB");
|
||||
break;
|
||||
case GRAY:
|
||||
image_type_str = (empty) ? "grayscale-empty" : "grayscale";
|
||||
image_type_str = (empty) ? _("grayscale-empty") : _("grayscale");
|
||||
break;
|
||||
case INDEXED:
|
||||
image_type_str = (empty) ? "indexed-empty" : "indexed";
|
||||
image_type_str = (empty) ? _("indexed-empty") : _("indexed");
|
||||
break;
|
||||
default:
|
||||
image_type_str = NULL;
|
||||
|
@ -207,11 +209,11 @@ gdisplay_delete (GDisplay *gdisp)
|
|||
deactivate the idlerendering thread before deletion! */
|
||||
if (gdisp->idle_render.active)
|
||||
{
|
||||
printf("Deleted idlerendering gdisp %p...\n", gdisp); fflush(stdout);
|
||||
printf("\tIdlerender stops now!\n"); fflush(stdout);
|
||||
printf(_("Deleted idlerendering gdisp %p...\n"), gdisp); fflush(stdout);
|
||||
printf(_("\tIdlerender stops now!\n")); fflush(stdout);
|
||||
gtk_idle_remove (gdisp->idle_render.idleid);
|
||||
gdisp->idle_render.active = FALSE;
|
||||
printf("\tDeletion finished.\n"); fflush(stdout);
|
||||
printf(_("\tDeletion finished.\n")); fflush(stdout);
|
||||
}
|
||||
|
||||
if (gdisp->scroll_gc)
|
||||
|
@ -436,7 +438,7 @@ gdisplay_idlerender_init (GDisplay *gdisp)
|
|||
{
|
||||
if (gdisp->idle_render.update_areas == NULL)
|
||||
{
|
||||
g_warning ("Wanted to start idlerender thread with no update_areas. (+memleak)");
|
||||
g_warning (_("Wanted to start idlerender thread with no update_areas. (+memleak)"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1314,57 +1316,57 @@ gdisplay_set_menu_sensitivity (GDisplay *gdisp)
|
|||
type = drawable_type (drawable);
|
||||
}
|
||||
|
||||
menus_set_sensitive ("<Image>/Layers/Raise Layer", !fs && !aux && lp && alpha);
|
||||
menus_set_sensitive ("<Image>/Layers/Lower Layer", !fs && !aux && lp && alpha);
|
||||
menus_set_sensitive ("<Image>/Layers/Anchor Layer", fs && !aux && lp);
|
||||
menus_set_sensitive ("<Image>/Layers/Merge Visible Layers", !fs && !aux && lp);
|
||||
menus_set_sensitive ("<Image>/Layers/Flatten Image", !fs && !aux && lp);
|
||||
menus_set_sensitive ("<Image>/Layers/Alpha To Selection", !aux && lp && alpha);
|
||||
menus_set_sensitive ("<Image>/Layers/Mask To Selection", !aux && lm && lp);
|
||||
menus_set_sensitive ("<Image>/Layers/Add Alpha Channel", !fs && !aux && lp && !lm && !alpha);
|
||||
menus_set_sensitive (_("<Image>/Layers/Raise Layer"), !fs && !aux && lp && alpha);
|
||||
menus_set_sensitive (_("<Image>/Layers/Lower Layer"), !fs && !aux && lp && alpha);
|
||||
menus_set_sensitive (_("<Image>/Layers/Anchor Layer"), fs && !aux && lp);
|
||||
menus_set_sensitive (_("<Image>/Layers/Merge Visible Layers"), !fs && !aux && lp);
|
||||
menus_set_sensitive (_("<Image>/Layers/Flatten Image"), !fs && !aux && lp);
|
||||
menus_set_sensitive (_("<Image>/Layers/Alpha To Selection"), !aux && lp && alpha);
|
||||
menus_set_sensitive (_("<Image>/Layers/Mask To Selection"), !aux && lm && lp);
|
||||
menus_set_sensitive (_("<Image>/Layers/Add Alpha Channel"), !fs && !aux && lp && !lm && !alpha);
|
||||
|
||||
menus_set_sensitive ("<Image>/Image/RGB", (base_type != RGB));
|
||||
menus_set_sensitive ("<Image>/Image/Grayscale", (base_type != GRAY));
|
||||
menus_set_sensitive ("<Image>/Image/Indexed", (base_type != INDEXED));
|
||||
menus_set_sensitive (_("<Image>/Image/RGB"), (base_type != RGB));
|
||||
menus_set_sensitive (_("<Image>/Image/Grayscale"), (base_type != GRAY));
|
||||
menus_set_sensitive (_("<Image>/Image/Indexed"), (base_type != INDEXED));
|
||||
|
||||
menus_set_sensitive ("<Image>/Image/Colors/Threshold", (base_type != INDEXED));
|
||||
menus_set_sensitive ("<Image>/Image/Colors/Posterize", (base_type != INDEXED));
|
||||
menus_set_sensitive ("<Image>/Image/Colors/Equalize", (base_type != INDEXED));
|
||||
menus_set_sensitive ("<Image>/Image/Colors/Invert", (base_type != INDEXED));
|
||||
menus_set_sensitive (_("<Image>/Image/Colors/Threshold"), (base_type != INDEXED));
|
||||
menus_set_sensitive (_("<Image>/Image/Colors/Posterize") , (base_type != INDEXED));
|
||||
menus_set_sensitive (_("<Image>/Image/Colors/Equalize"), (base_type != INDEXED));
|
||||
menus_set_sensitive (_("<Image>/Image/Colors/Invert"), (base_type != INDEXED));
|
||||
|
||||
menus_set_sensitive ("<Image>/Image/Colors/Color Balance", (base_type == RGB));
|
||||
menus_set_sensitive ("<Image>/Image/Colors/Brightness-Contrast", (base_type != INDEXED));
|
||||
menus_set_sensitive ("<Image>/Image/Colors/Hue-Saturation", (base_type == RGB));
|
||||
menus_set_sensitive ("<Image>/Image/Colors/Curves", (base_type != INDEXED));
|
||||
menus_set_sensitive ("<Image>/Image/Colors/Levels", (base_type != INDEXED));
|
||||
menus_set_sensitive (_("<Image>/Image/Colors/Color Balance"), (base_type == RGB));
|
||||
menus_set_sensitive (_("<Image>/Image/Colors/Brightness-Contrast"), (base_type != INDEXED));
|
||||
menus_set_sensitive (_("<Image>/Image/Colors/Hue-Saturation"), (base_type == RGB));
|
||||
menus_set_sensitive (_("<Image>/Image/Colors/Curves"), (base_type != INDEXED));
|
||||
menus_set_sensitive (_("<Image>/Image/Colors/Levels"), (base_type != INDEXED));
|
||||
|
||||
menus_set_sensitive ("<Image>/Image/Colors/Desaturate", (base_type == RGB));
|
||||
menus_set_sensitive (_("<Image>/Image/Colors/Desaturate"), (base_type == RGB));
|
||||
|
||||
menus_set_sensitive ("<Image>/Image/Alpha/Add Alpha Channel", !fs && !aux && lp && !lm && !alpha);
|
||||
menus_set_sensitive (_("<Image>/Image/Alpha/Add Alpha Channel"), !fs && !aux && lp && !lm && !alpha);
|
||||
|
||||
menus_set_sensitive ("<Image>/Select", lp);
|
||||
menus_set_sensitive ("<Image>/Edit/Cut", lp);
|
||||
menus_set_sensitive ("<Image>/Edit/Copy", lp);
|
||||
menus_set_sensitive ("<Image>/Edit/Paste", lp);
|
||||
menus_set_sensitive ("<Image>/Edit/Paste Into", lp);
|
||||
menus_set_sensitive ("<Image>/Edit/Clear", lp);
|
||||
menus_set_sensitive ("<Image>/Edit/Fill", lp);
|
||||
menus_set_sensitive ("<Image>/Edit/Stroke", lp);
|
||||
menus_set_sensitive ("<Image>/Edit/Cut Named", lp);
|
||||
menus_set_sensitive ("<Image>/Edit/Copy Named", lp);
|
||||
menus_set_sensitive ("<Image>/Edit/Paste Named", lp);
|
||||
menus_set_sensitive ("<Image>/Image/Colors", lp);
|
||||
menus_set_sensitive ("<Image>/Image/Channel Ops/Offset", lp);
|
||||
menus_set_sensitive ("<Image>/Image/Histogram", lp);
|
||||
menus_set_sensitive ("<Image>/Filters", lp);
|
||||
menus_set_sensitive (_("<Image>/Select"), lp);
|
||||
menus_set_sensitive (_("<Image>/Edit/Cut"), lp);
|
||||
menus_set_sensitive (_("<Image>/Edit/Copy"), lp);
|
||||
menus_set_sensitive (_("<Image>/Edit/Paste"), lp);
|
||||
menus_set_sensitive (_("<Image>/Edit/Paste Into"), lp);
|
||||
menus_set_sensitive (_("<Image>/Edit/Clear"), lp);
|
||||
menus_set_sensitive (_("<Image>/Edit/Fill"), lp);
|
||||
menus_set_sensitive (_("<Image>/Edit/Stroke"), lp);
|
||||
menus_set_sensitive (_("<Image>/Edit/Cut Named"), lp);
|
||||
menus_set_sensitive (_("<Image>/Edit/Copy Named"), lp);
|
||||
menus_set_sensitive (_("<Image>/Edit/Paste Named"), lp);
|
||||
menus_set_sensitive (_("<Image>/Image/Colors"), lp);
|
||||
menus_set_sensitive (_("<Image>/Image/Channel Ops/Offset"), lp);
|
||||
menus_set_sensitive (_("<Image>/Image/Histogram"), lp);
|
||||
menus_set_sensitive (_("<Image>/Filters"), lp);
|
||||
|
||||
/* save selection to channel */
|
||||
menus_set_sensitive ("<Image>/Select/Save To Channel", !fs);
|
||||
menus_set_sensitive (_("<Image>/Select/Save To Channel"), !fs);
|
||||
|
||||
menus_set_state ("<Image>/View/Toggle Rulers", GTK_WIDGET_VISIBLE (gdisp->origin) ? 1 : 0);
|
||||
menus_set_state ("<Image>/View/Toggle Guides", gdisp->draw_guides);
|
||||
menus_set_state ("<Image>/View/Snap To Guides", gdisp->snap_to_guides);
|
||||
menus_set_state ("<Image>/View/Toggle Statusbar", GTK_WIDGET_VISIBLE (gdisp->statusarea) ? 1 : 0);
|
||||
menus_set_state (_("<Image>/View/Toggle Rulers"), GTK_WIDGET_VISIBLE (gdisp->origin) ? 1 : 0);
|
||||
menus_set_state (_("<Image>/View/Toggle Guides"), gdisp->draw_guides);
|
||||
menus_set_state (_("<Image>/View/Snap To Guides"), gdisp->snap_to_guides);
|
||||
menus_set_state (_("<Image>/View/Toggle Statusbar"), GTK_WIDGET_VISIBLE (gdisp->statusarea) ? 1 : 0);
|
||||
|
||||
plug_in_set_menu_sensitivity (type);
|
||||
}
|
||||
|
@ -1752,7 +1754,7 @@ gdisplays_flush_whenever (gboolean now)
|
|||
/* this prevents multiple recursive calls to this procedure */
|
||||
if (flushing == TRUE)
|
||||
{
|
||||
g_warning ("gdisplays_flush() called recursively.");
|
||||
g_warning (_("gdisplays_flush() called recursively."));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
38
app/crop.c
38
app/crop.c
|
@ -29,6 +29,8 @@
|
|||
#include "info_dialog.h"
|
||||
#include "undo.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#define STATUSBAR_SIZE 128
|
||||
|
||||
typedef struct _crop Crop;
|
||||
|
@ -351,7 +353,7 @@ crop_motion (Tool *tool,
|
|||
crop->function == RESIZING_LEFT || crop->function == RESIZING_RIGHT)
|
||||
{
|
||||
gtk_statusbar_pop (GTK_STATUSBAR (gdisp->statusbar), crop->context_id);
|
||||
g_snprintf (size, STATUSBAR_SIZE, "Crop: %d x %d",
|
||||
g_snprintf (size, STATUSBAR_SIZE, _("Crop: %d x %d"),
|
||||
(crop->tx2 - crop->tx1), (crop->ty2 - crop->ty1));
|
||||
gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), crop->context_id, size);
|
||||
}
|
||||
|
@ -521,7 +523,7 @@ tools_new_crop ()
|
|||
Crop * private;
|
||||
|
||||
if (! crop_options)
|
||||
crop_options = tools_register_no_options (CROP, "Crop Tool Options");
|
||||
crop_options = tools_register_no_options (CROP, _("Crop Tool Options"));
|
||||
|
||||
tool = (Tool *) g_malloc (sizeof (Tool));
|
||||
private = (Crop *) g_malloc (sizeof (Crop));
|
||||
|
@ -701,7 +703,7 @@ crop_start (Tool *tool,
|
|||
|
||||
/* initialize the statusbar display */
|
||||
crop->context_id = gtk_statusbar_get_context_id (GTK_STATUSBAR (gdisp->statusbar), "crop");
|
||||
gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), crop->context_id, "Crop: 0 x 0");
|
||||
gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), crop->context_id, _("Crop: 0 x 0"));
|
||||
|
||||
draw_core_start (crop->core, gdisp->canvas->window, tool);
|
||||
}
|
||||
|
@ -713,22 +715,22 @@ crop_start (Tool *tool,
|
|||
|
||||
static ActionAreaItem action_items[3] =
|
||||
{
|
||||
{ "Crop", crop_ok_callback, NULL, NULL },
|
||||
{ "Selection", crop_selection_callback, NULL, NULL },
|
||||
{ "Close", crop_close_callback, NULL, NULL },
|
||||
{ N_("Crop"), crop_ok_callback, NULL, NULL },
|
||||
{ N_("Selection"), crop_selection_callback, NULL, NULL },
|
||||
{ N_("Close"), crop_close_callback, NULL, NULL },
|
||||
};
|
||||
|
||||
static void
|
||||
crop_info_create (Tool *tool)
|
||||
{
|
||||
/* create the info dialog */
|
||||
crop_info = info_dialog_new ("Crop Information");
|
||||
crop_info = info_dialog_new (_("Crop Information"));
|
||||
|
||||
/* add the information fields */
|
||||
info_dialog_add_field (crop_info, "X Origin: ", orig_x_buf, crop_orig_x_changed, tool);
|
||||
info_dialog_add_field (crop_info, "Y Origin: ", orig_y_buf, crop_orig_y_changed, tool);
|
||||
info_dialog_add_field (crop_info, "Width: ", width_buf, crop_width_changed, tool);
|
||||
info_dialog_add_field (crop_info, "Height: ", height_buf, crop_height_changed, tool);
|
||||
info_dialog_add_field (crop_info, _("X Origin: "), orig_x_buf, crop_orig_x_changed, tool);
|
||||
info_dialog_add_field (crop_info, _("Y Origin: "), orig_y_buf, crop_orig_y_changed, tool);
|
||||
info_dialog_add_field (crop_info, _("Width: "), width_buf, crop_width_changed, tool);
|
||||
info_dialog_add_field (crop_info, _("Height: "), height_buf, crop_height_changed, tool);
|
||||
|
||||
/* Create the action area */
|
||||
build_action_area (GTK_DIALOG (crop_info->shell), action_items, 3, 0);
|
||||
|
@ -941,31 +943,31 @@ ProcArg crop_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"new_width",
|
||||
"new image width: (0 < new_width <= width)"
|
||||
N_("new image width: (0 < new_width <= width)")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"new_height",
|
||||
"new image height: (0 < new_height <= height)"
|
||||
N_("new image height: (0 < new_height <= height)")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"offx",
|
||||
"x offset: (0 <= offx <= (width - new_width))"
|
||||
N_("x offset: (0 <= offx <= (width - new_width))")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"offy",
|
||||
"y offset: (0 <= offy <= (height - new_height))"
|
||||
N_("y offset: (0 <= offy <= (height - new_height))")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord crop_proc =
|
||||
{
|
||||
"gimp_crop",
|
||||
"Crop the image to the specified extents.",
|
||||
"This procedure crops the image so that it's new width and height are equal to the supplied parameters. Offsets are also provided which describe the position of the previous image's content. All channels and layers within the image are cropped to the new image extents; this includes the image selection mask. If any parameters are out of range, an error is returned.",
|
||||
N_("Crop the image to the specified extents."),
|
||||
N_("This procedure crops the image so that it's new width and height are equal to the supplied parameters. Offsets are also provided which describe the position of the previous image's content. All channels and layers within the image are cropped to the new image extents; this includes the image selection mask. If any parameters are out of range, an error is returned."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
|
64
app/curves.c
64
app/curves.c
|
@ -31,6 +31,8 @@
|
|||
#include "interface.h"
|
||||
#include "curves.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#define ROUND(x) ((int) ((x) + 0.5))
|
||||
|
||||
#define GRAPH 0x1
|
||||
|
@ -274,7 +276,7 @@ tools_new_curves ()
|
|||
|
||||
/* The tool options */
|
||||
if (!curves_options)
|
||||
curves_options = tools_register_no_options (CURVES, "Curves Options");
|
||||
curves_options = tools_register_no_options (CURVES, _("Curves Options"));
|
||||
|
||||
tool = (Tool *) g_malloc (sizeof (Tool));
|
||||
private = (Curves *) g_malloc (sizeof (Curves));
|
||||
|
@ -314,25 +316,25 @@ tools_free_curves (Tool *tool)
|
|||
/* the action area structure */
|
||||
static ActionAreaItem action_items[] =
|
||||
{
|
||||
{ "Reset", curves_reset_callback, NULL, NULL },
|
||||
{ "OK", curves_ok_callback, NULL, NULL },
|
||||
{ "Cancel", curves_cancel_callback, NULL, NULL }
|
||||
{ N_("Reset"), curves_reset_callback, NULL, NULL },
|
||||
{ N_("OK"), curves_ok_callback, NULL, NULL },
|
||||
{ N_("Cancel"), curves_cancel_callback, NULL, NULL }
|
||||
};
|
||||
|
||||
static MenuItem channel_items[] =
|
||||
{
|
||||
{ "Value", 0, 0, curves_value_callback, NULL, NULL, NULL },
|
||||
{ "Red", 0, 0, curves_red_callback, NULL, NULL, NULL },
|
||||
{ "Green", 0, 0, curves_green_callback, NULL, NULL, NULL },
|
||||
{ "Blue", 0, 0, curves_blue_callback, NULL, NULL, NULL },
|
||||
{ "Alpha", 0, 0, curves_alpha_callback, NULL, NULL, NULL },
|
||||
{ N_("Value"), 0, 0, curves_value_callback, NULL, NULL, NULL },
|
||||
{ N_("Red"), 0, 0, curves_red_callback, NULL, NULL, NULL },
|
||||
{ N_("Green"), 0, 0, curves_green_callback, NULL, NULL, NULL },
|
||||
{ N_("Blue"), 0, 0, curves_blue_callback, NULL, NULL, NULL },
|
||||
{ N_("Alpha"), 0, 0, curves_alpha_callback, NULL, NULL, NULL },
|
||||
{ NULL, 0, 0, NULL, NULL, NULL, NULL }
|
||||
};
|
||||
|
||||
static MenuItem curve_type_items[] =
|
||||
{
|
||||
{ "Smooth", 0, 0, curves_smooth_callback, NULL, NULL, NULL },
|
||||
{ "Free", 0, 0, curves_free_callback, NULL, NULL, NULL },
|
||||
{ N_("Smooth"), 0, 0, curves_smooth_callback, NULL, NULL, NULL },
|
||||
{ N_("Free"), 0, 0, curves_free_callback, NULL, NULL, NULL },
|
||||
{ NULL, 0, 0, NULL, NULL, NULL, NULL }
|
||||
};
|
||||
|
||||
|
@ -343,7 +345,7 @@ curves_initialize (GDisplay *gdisp)
|
|||
|
||||
if (drawable_indexed (gimage_active_drawable (gdisp->gimage)))
|
||||
{
|
||||
g_message ("Curves for indexed drawables cannot be adjusted.");
|
||||
g_message (_("Curves for indexed drawables cannot be adjusted."));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -453,7 +455,7 @@ curves_new_dialog ()
|
|||
/* The shell and main vbox */
|
||||
cd->shell = gtk_dialog_new ();
|
||||
gtk_window_set_wmclass (GTK_WINDOW (cd->shell), "curves", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (cd->shell), "Curves");
|
||||
gtk_window_set_title (GTK_WINDOW (cd->shell), _("Curves"));
|
||||
|
||||
gtk_signal_connect (GTK_OBJECT (cd->shell), "delete_event",
|
||||
GTK_SIGNAL_FUNC (curves_delete_callback),
|
||||
|
@ -467,7 +469,7 @@ curves_new_dialog ()
|
|||
channel_hbox = gtk_hbox_new (FALSE, 2);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), channel_hbox, FALSE, FALSE, 0);
|
||||
|
||||
label = gtk_label_new ("Modify Curves for Channel: ");
|
||||
label = gtk_label_new (_("Modify Curves for Channel: "));
|
||||
gtk_box_pack_start (GTK_BOX (channel_hbox), label, FALSE, FALSE, 0);
|
||||
|
||||
menu = build_menu (channel_items, NULL);
|
||||
|
@ -541,7 +543,7 @@ curves_new_dialog ()
|
|||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
|
||||
/* The option menu for selecting the drawing method */
|
||||
label = gtk_label_new ("Curve Type: ");
|
||||
label = gtk_label_new (_("Curve Type: "));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
||||
|
||||
menu = build_menu (curve_type_items, NULL);
|
||||
|
@ -554,7 +556,7 @@ curves_new_dialog ()
|
|||
gtk_option_menu_set_menu (GTK_OPTION_MENU (option_menu), menu);
|
||||
|
||||
/* The preview toggle */
|
||||
toggle = gtk_check_button_new_with_label ("Preview");
|
||||
toggle = gtk_check_button_new_with_label (_("Preview"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), cd->preview);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
|
@ -814,7 +816,7 @@ static void
|
|||
curves_preview (CurvesDialog *cd)
|
||||
{
|
||||
if (!cd->image_map)
|
||||
g_message ("curves_preview(): No image map");
|
||||
g_message (_("curves_preview(): No image map"));
|
||||
|
||||
active_tool->preserve = TRUE; /* Going to dirty the display... */
|
||||
|
||||
|
@ -1298,31 +1300,31 @@ ProcArg curves_spline_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_DRAWABLE,
|
||||
"drawable",
|
||||
"the drawable"
|
||||
N_("the drawable")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"channel",
|
||||
"the channel to modify: { VALUE (0), RED (1), GREEN (2), BLUE (3), ALPHA (4), GRAY (0) }"
|
||||
N_("the channel to modify: { VALUE (0), RED (1), GREEN (2), BLUE (3), ALPHA (4), GRAY (0) }")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"num_points",
|
||||
"the number of values in the control point array ( 3 < num_points <= 32 )"
|
||||
N_("the number of values in the control point array ( 3 < num_points <= 32 )")
|
||||
},
|
||||
{ PDB_INT8ARRAY,
|
||||
"control_pts",
|
||||
"the spline control points: { cp1.x, cp1.y, cp2.x, cp2.y, ... }"
|
||||
N_("the spline control points: { cp1.x, cp1.y, cp2.x, cp2.y, ... }")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord curves_spline_proc =
|
||||
{
|
||||
"gimp_curves_spline",
|
||||
"Modifies the intensity curve(s) for specified drawable",
|
||||
"Modifies the intensity mapping for one channel in the specified drawable. The drawable must be either grayscale or RGB, and the channel can be either an intensity component, or the value. The 'control_pts' parameter is an array of integers which define a set of control points which describe a Catmull Rom spline which yields the final intensity curve. Use the 'gimp_curves_explicit' function to explicitly modify intensity levels.",
|
||||
N_("Modifies the intensity curve(s) for specified drawable"),
|
||||
N_("Modifies the intensity mapping for one channel in the specified drawable. The drawable must be either grayscale or RGB, and the channel can be either an intensity component, or the value. The 'control_pts' parameter is an array of integers which define a set of control points which describe a Catmull Rom spline which yields the final intensity curve. Use the 'gimp_curves_explicit' function to explicitly modify intensity levels."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -1456,31 +1458,31 @@ ProcArg curves_explicit_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_DRAWABLE,
|
||||
"drawable",
|
||||
"the drawable"
|
||||
N_("the drawable")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"channel",
|
||||
"the channel to modify: { VALUE (0), RED (1), GREEN (2), BLUE (3), GRAY (0) }"
|
||||
N_("the channel to modify: { VALUE (0), RED (1), GREEN (2), BLUE (3), GRAY (0) }")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"num_bytes",
|
||||
"the number of bytes in the new curve (always 256)"
|
||||
N_("the number of bytes in the new curve (always 256)")
|
||||
},
|
||||
{ PDB_INT8ARRAY,
|
||||
"curve",
|
||||
"the explicit curve"
|
||||
N_("the explicit curve")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord curves_explicit_proc =
|
||||
{
|
||||
"gimp_curves_explicit",
|
||||
"Modifies the intensity curve(s) for specified drawable",
|
||||
"Modifies the intensity mapping for one channel in the specified drawable. The drawable must be either grayscale or RGB, and the channel can be either an intensity component, or the value. The 'curve' parameter is an array of bytes which explicitly defines how each pixel value in the drawable will be modified. Use the 'gimp_curves_spline' function to modify intensity levels with Catmull Rom splines.",
|
||||
N_("Modifies the intensity curve(s) for specified drawable"),
|
||||
N_("Modifies the intensity mapping for one channel in the specified drawable. The drawable must be either grayscale or RGB, and the channel can be either an intensity component, or the value. The 'curve' parameter is an array of bytes which explicitly defines how each pixel value in the drawable will be modified. Use the 'gimp_curves_spline' function to modify intensity levels with Catmull Rom splines."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
|
|
@ -25,6 +25,8 @@
|
|||
#include "paint_funcs.h"
|
||||
#include "gimage.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
static void desaturate (GimpDrawable *);
|
||||
static Argument * desaturate_invoker (Argument *);
|
||||
|
||||
|
@ -41,7 +43,7 @@ image_desaturate (gimage_ptr)
|
|||
|
||||
if (! drawable_color (drawable))
|
||||
{
|
||||
g_message ("Desaturate operates only on RGB color drawables.");
|
||||
g_message (_("Desaturate operates only on RGB color drawables."));
|
||||
return;
|
||||
}
|
||||
desaturate (drawable);
|
||||
|
@ -116,19 +118,19 @@ ProcArg desaturate_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_DRAWABLE,
|
||||
"drawable",
|
||||
"the drawable"
|
||||
N_("the drawable")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord desaturate_proc =
|
||||
{
|
||||
"gimp_desaturate",
|
||||
"Desaturate the contents of the specified drawable",
|
||||
"This procedure desaturates the contents of the specified drawable. This procedure only works on drawables of type RGB color.",
|
||||
N_("Desaturate the contents of the specified drawable"),
|
||||
N_("This procedure desaturates the contents of the specified drawable. This procedure only works on drawables of type RGB color."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
|
|
@ -30,6 +30,8 @@
|
|||
#include "session.h"
|
||||
#include "tools.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#define CELL_SIZE 20 /* The size of the preview cells */
|
||||
#define PREVIEW_EVENT_MASK GDK_EXPOSURE_MASK | \
|
||||
GDK_BUTTON_PRESS_MASK | \
|
||||
|
@ -113,8 +115,8 @@ int current_device = GDK_CORE_POINTER;
|
|||
/* the action area structure */
|
||||
static ActionAreaItem action_items[] =
|
||||
{
|
||||
{ "Close", devices_close_callback, NULL, NULL },
|
||||
{ "Save", (ActionCallback)devices_write_rc, NULL, NULL },
|
||||
{ N_("Close"), devices_close_callback, NULL, NULL },
|
||||
{ N_("Save"), (ActionCallback)devices_write_rc, NULL, NULL },
|
||||
};
|
||||
|
||||
void
|
||||
|
@ -351,7 +353,7 @@ devices_rc_update (gchar *name, DeviceValues values,
|
|||
}
|
||||
else
|
||||
{
|
||||
g_warning ("devices_rc_update called multiple times for not present device\n");
|
||||
g_warning (_("devices_rc_update called multiple times for not present device\n"));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -650,7 +652,7 @@ create_device_status (void)
|
|||
deviceD = g_new (DeviceInfoDialog, 1);
|
||||
deviceD->shell = gtk_dialog_new ();
|
||||
|
||||
gtk_window_set_title (GTK_WINDOW(deviceD->shell), "Device Status");
|
||||
gtk_window_set_title (GTK_WINDOW(deviceD->shell), _("Device Status"));
|
||||
gtk_window_set_policy (GTK_WINDOW (deviceD->shell), FALSE, FALSE, TRUE);
|
||||
session_set_window_geometry (deviceD->shell, &device_status_session_info, TRUE);
|
||||
|
||||
|
@ -1022,7 +1024,7 @@ device_preview_events (GtkWidget *widget,
|
|||
|
||||
if(tmp_list == NULL)
|
||||
{
|
||||
g_message("Failed to find device_info\n");
|
||||
g_message(_("Failed to find device_info\n"));
|
||||
break; /* Error no device info */
|
||||
}
|
||||
|
||||
|
|
|
@ -203,7 +203,7 @@ about_dialog_create (int timeout)
|
|||
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, TRUE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
label = gtk_label_new (_("Spencer Kimball and Peter Mattis"));
|
||||
label = gtk_label_new (_("Spencer Kimball & Peter Mattis"));
|
||||
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, TRUE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
#include "tile_manager_pvt.h"
|
||||
#include "gdisplay.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
typedef struct {
|
||||
GtkWidget *dlg;
|
||||
GtkWidget *height_spinbutton;
|
||||
|
@ -117,7 +119,7 @@ file_new_ok_callback (GtkWidget *widget,
|
|||
|
||||
/* Make the background (or first) layer */
|
||||
layer = layer_new (gimage, gimage->width, gimage->height,
|
||||
type, "Background", OPAQUE_OPACITY, NORMAL);
|
||||
type, _("Background"), OPAQUE_OPACITY, NORMAL);
|
||||
|
||||
if (layer) {
|
||||
/* add the new layer to the gimage */
|
||||
|
@ -472,7 +474,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
|
||||
vals->dlg = gtk_dialog_new ();
|
||||
gtk_window_set_wmclass (GTK_WINDOW (vals->dlg), "new_image", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (vals->dlg), "New Image");
|
||||
gtk_window_set_title (GTK_WINDOW (vals->dlg), _("New Image"));
|
||||
gtk_window_position (GTK_WINDOW (vals->dlg), GTK_WIN_POS_MOUSE);
|
||||
|
||||
/* handle the wm close signal */
|
||||
|
@ -482,7 +484,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
|
||||
gtk_container_border_width (GTK_CONTAINER (GTK_DIALOG (vals->dlg)->action_area), 2);
|
||||
|
||||
button = gtk_button_new_with_label ("OK");
|
||||
button = gtk_button_new_with_label (_("OK"));
|
||||
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
|
||||
gtk_signal_connect (GTK_OBJECT (button), "clicked",
|
||||
(GtkSignalFunc) file_new_ok_callback,
|
||||
|
@ -492,7 +494,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_widget_grab_default (button);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_button_new_with_label ("Cancel");
|
||||
button = gtk_button_new_with_label (_("Cancel"));
|
||||
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
|
||||
gtk_signal_connect (GTK_OBJECT (button), "clicked",
|
||||
(GtkSignalFunc) file_new_cancel_callback,
|
||||
|
@ -515,13 +517,13 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_widget_show (table);
|
||||
|
||||
/* label for top of table, Width */
|
||||
label = gtk_label_new ("Width");
|
||||
label = gtk_label_new (_("Width"));
|
||||
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1,
|
||||
GTK_FILL, GTK_FILL, 0, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
/* Label for top of table, Height */
|
||||
label = gtk_label_new ("Height");
|
||||
label = gtk_label_new (_("Height"));
|
||||
gtk_table_attach (GTK_TABLE (table), label, 1, 2, 0, 1,
|
||||
GTK_FILL, GTK_FILL, 0, 0);
|
||||
gtk_widget_show (label);
|
||||
|
@ -584,7 +586,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_widget_show (vals->height_units_spinbutton);
|
||||
|
||||
/* Label for right hand side of pixel size boxes */
|
||||
label = gtk_label_new ("Pixels");
|
||||
label = gtk_label_new (_("Pixels"));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_table_attach (GTK_TABLE (table), label , 2, 3, 1, 2,
|
||||
GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0);
|
||||
|
@ -592,12 +594,12 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
|
||||
/* menu and menu items for the units pop-up menu for the units entries */
|
||||
menu = gtk_menu_new();
|
||||
menuitem = gtk_menu_item_new_with_label ("inches");
|
||||
menuitem = gtk_menu_item_new_with_label (_("inches"));
|
||||
gtk_menu_append (GTK_MENU (menu), menuitem);
|
||||
gtk_signal_connect (GTK_OBJECT (menuitem), "activate",
|
||||
(GtkSignalFunc) file_new_units_inch_menu_callback, vals);
|
||||
gtk_widget_show(menuitem);
|
||||
menuitem = gtk_menu_item_new_with_label ("cm");
|
||||
menuitem = gtk_menu_item_new_with_label (_("cm"));
|
||||
gtk_menu_append (GTK_MENU (menu), menuitem);
|
||||
gtk_signal_connect (GTK_OBJECT (menuitem), "activate",
|
||||
(GtkSignalFunc) file_new_units_cm_menu_callback, vals);
|
||||
|
@ -610,7 +612,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_widget_show(optionmenu);
|
||||
|
||||
/* resolution frame */
|
||||
frame = gtk_frame_new ("Resolution");
|
||||
frame = gtk_frame_new (_("Resolution"));
|
||||
gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE, 0);
|
||||
gtk_widget_show (frame);
|
||||
|
||||
|
@ -633,7 +635,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_widget_show (vals->resolution_spinbutton);
|
||||
|
||||
/* resolution label */
|
||||
label =gtk_label_new (" pixels per ");
|
||||
label =gtk_label_new (_(" pixels per "));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, TRUE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
@ -645,12 +647,12 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
*/
|
||||
|
||||
/* probabaly should be more general here */
|
||||
menuitem = gtk_menu_item_new_with_label ("inch");
|
||||
menuitem = gtk_menu_item_new_with_label (_("inch"));
|
||||
gtk_menu_append (GTK_MENU (menu), menuitem);
|
||||
gtk_signal_connect (GTK_OBJECT (menuitem), "activate",
|
||||
(GtkSignalFunc) file_new_res_units_inch_callback, vals);
|
||||
gtk_widget_show(menuitem);
|
||||
menuitem = gtk_menu_item_new_with_label ("cm");
|
||||
menuitem = gtk_menu_item_new_with_label (_("cm"));
|
||||
gtk_signal_connect (GTK_OBJECT (menuitem), "activate",
|
||||
(GtkSignalFunc) file_new_res_units_cm_callback, vals);
|
||||
gtk_menu_append (GTK_MENU (menu), menuitem);
|
||||
|
@ -669,7 +671,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_widget_show(hbox);
|
||||
|
||||
/* frame for Image Type */
|
||||
frame = gtk_frame_new ("Image Type");
|
||||
frame = gtk_frame_new (_("Image Type"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0);
|
||||
gtk_widget_show (frame);
|
||||
|
||||
|
@ -679,7 +681,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_container_add (GTK_CONTAINER (frame), radio_box);
|
||||
gtk_widget_show (radio_box);
|
||||
|
||||
button = gtk_radio_button_new_with_label (NULL, "RGB");
|
||||
button = gtk_radio_button_new_with_label (NULL, _("RGB"));
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (button));
|
||||
gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0);
|
||||
gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) RGB);
|
||||
|
@ -690,7 +692,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_radio_button_new_with_label (group, "Grayscale");
|
||||
button = gtk_radio_button_new_with_label (group, _("Grayscale"));
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (button));
|
||||
gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0);
|
||||
gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) GRAY);
|
||||
|
@ -703,7 +705,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
|
||||
|
||||
/* frame for fill type */
|
||||
frame = gtk_frame_new ("Fill Type");
|
||||
frame = gtk_frame_new (_("Fill Type"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0);
|
||||
gtk_widget_show (frame);
|
||||
|
||||
|
@ -712,7 +714,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_container_add (GTK_CONTAINER (frame), radio_box);
|
||||
gtk_widget_show (radio_box);
|
||||
|
||||
button = gtk_radio_button_new_with_label (NULL, "Foreground");
|
||||
button = gtk_radio_button_new_with_label (NULL, _("Foreground"));
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (button));
|
||||
gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0);
|
||||
gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) FOREGROUND_FILL);
|
||||
|
@ -723,7 +725,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_radio_button_new_with_label (group, "Background");
|
||||
button = gtk_radio_button_new_with_label (group, _("Background"));
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (button));
|
||||
gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0);
|
||||
gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) BACKGROUND_FILL);
|
||||
|
@ -734,7 +736,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_radio_button_new_with_label (group, "White");
|
||||
button = gtk_radio_button_new_with_label (group, _("White"));
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (button));
|
||||
gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0);
|
||||
gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) WHITE_FILL);
|
||||
|
@ -745,7 +747,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_radio_button_new_with_label (group, "Transparent");
|
||||
button = gtk_radio_button_new_with_label (group, _("Transparent"));
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (button));
|
||||
gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0);
|
||||
gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) TRANSPARENT_FILL);
|
||||
|
|
|
@ -48,6 +48,7 @@
|
|||
#include "tools.h"
|
||||
#include "undo.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
@ -205,25 +206,25 @@ file_prefs_ok_callback (GtkWidget *widget,
|
|||
|
||||
if (levels_of_undo < 0)
|
||||
{
|
||||
g_message ("Error: Levels of undo must be zero or greater.");
|
||||
g_message (_("Error: Levels of undo must be zero or greater."));
|
||||
levels_of_undo = old_levels_of_undo;
|
||||
return;
|
||||
}
|
||||
if (marching_speed < 50)
|
||||
{
|
||||
g_message ("Error: Marching speed must be 50 or greater.");
|
||||
g_message (_("Error: Marching speed must be 50 or greater."));
|
||||
marching_speed = old_marching_speed;
|
||||
return;
|
||||
}
|
||||
if (default_width < 1)
|
||||
{
|
||||
g_message ("Error: Default width must be one or greater.");
|
||||
g_message (_("Error: Default width must be one or greater."));
|
||||
default_width = old_default_width;
|
||||
return;
|
||||
}
|
||||
if (default_height < 1)
|
||||
{
|
||||
g_message ("Error: Default height must be one or greater.");
|
||||
g_message (_("Error: Default height must be one or greater."));
|
||||
default_height = old_default_height;
|
||||
return;
|
||||
}
|
||||
|
@ -430,7 +431,7 @@ file_prefs_save_callback (GtkWidget *widget,
|
|||
gradient_path = save_gradient_path;
|
||||
|
||||
if (restart_notification)
|
||||
g_message ("You will need to restart GIMP for these changes to take effect.");
|
||||
g_message (_("You will need to restart GIMP for these changes to take effect."));
|
||||
|
||||
g_list_free (update);
|
||||
g_list_free (remove);
|
||||
|
@ -644,18 +645,18 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
GSList *group;
|
||||
char *transparencies[] =
|
||||
{
|
||||
"Light Checks",
|
||||
"Mid-Tone Checks",
|
||||
"Dark Checks",
|
||||
"White Only",
|
||||
"Gray Only",
|
||||
"Black Only",
|
||||
N_("Light Checks"),
|
||||
N_("Mid-Tone Checks"),
|
||||
N_("Dark Checks"),
|
||||
N_("White Only"),
|
||||
N_("Gray Only"),
|
||||
N_("Black Only"),
|
||||
};
|
||||
char *checks[] =
|
||||
{
|
||||
"Small Checks",
|
||||
"Medium Checks",
|
||||
"Large Checks",
|
||||
N_("Small Checks"),
|
||||
N_("Medium Checks"),
|
||||
N_("Large Checks"),
|
||||
};
|
||||
int transparency_vals[] =
|
||||
{
|
||||
|
@ -677,32 +678,32 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
int unit;
|
||||
} mem_size_units[] =
|
||||
{
|
||||
{"Bytes", 1},
|
||||
{"KiloBytes", 1024},
|
||||
{"MegaBytes", (1024*1024)}
|
||||
{N_("Bytes"), 1},
|
||||
{N_("KiloBytes"), 1024},
|
||||
{N_("MegaBytes"), (1024*1024)}
|
||||
};
|
||||
struct {
|
||||
char *label;
|
||||
char **mpath;
|
||||
} dirs[] =
|
||||
{
|
||||
{"Temp dir:", &edit_temp_path},
|
||||
{"Swap dir:", &edit_swap_path},
|
||||
{"Brushes dir:", &edit_brush_path},
|
||||
{"Gradients dir:", &edit_gradient_path},
|
||||
{"Patterns dir:", &edit_pattern_path},
|
||||
{"Palette dir:", &edit_palette_path},
|
||||
{"Plug-in dir:", &edit_plug_in_path}
|
||||
{N_("Temp dir:"), &edit_temp_path},
|
||||
{N_("Swap dir:"), &edit_swap_path},
|
||||
{N_("Brushes dir:"), &edit_brush_path},
|
||||
{N_("Gradients dir:"), &edit_gradient_path},
|
||||
{N_("Patterns dir:"), &edit_pattern_path},
|
||||
{N_("Palette dir:"), &edit_palette_path},
|
||||
{N_("Plug-in dir:"), &edit_plug_in_path}
|
||||
};
|
||||
struct {
|
||||
char *label;
|
||||
int size;
|
||||
} preview_sizes[] =
|
||||
{
|
||||
{"None",0},
|
||||
{"Small",32},
|
||||
{"Medium",64},
|
||||
{"Large",128}
|
||||
{N_("None"),0},
|
||||
{N_("Small"),32},
|
||||
{N_("Medium"),64},
|
||||
{N_("Large"),128}
|
||||
};
|
||||
int ntransparencies = sizeof (transparencies) / sizeof (transparencies[0]);
|
||||
int nchecks = sizeof (checks) / sizeof (checks[0]);
|
||||
|
@ -772,7 +773,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
|
||||
prefs_dlg = gtk_dialog_new ();
|
||||
gtk_window_set_wmclass (GTK_WINDOW (prefs_dlg), "preferences", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (prefs_dlg), "Preferences");
|
||||
gtk_window_set_title (GTK_WINDOW (prefs_dlg), _("Preferences"));
|
||||
|
||||
/* handle the wm close signal */
|
||||
gtk_signal_connect (GTK_OBJECT (prefs_dlg), "delete_event",
|
||||
|
@ -782,7 +783,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_container_border_width (GTK_CONTAINER (GTK_DIALOG (prefs_dlg)->action_area), 2);
|
||||
|
||||
/* Action area */
|
||||
button = gtk_button_new_with_label ("OK");
|
||||
button = gtk_button_new_with_label (_("OK"));
|
||||
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
|
||||
gtk_signal_connect (GTK_OBJECT (button), "clicked",
|
||||
(GtkSignalFunc) file_prefs_ok_callback,
|
||||
|
@ -792,7 +793,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_widget_grab_default (button);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_button_new_with_label ("Save");
|
||||
button = gtk_button_new_with_label (_("Save"));
|
||||
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
|
||||
gtk_signal_connect (GTK_OBJECT (button), "clicked",
|
||||
(GtkSignalFunc) file_prefs_save_callback,
|
||||
|
@ -802,7 +803,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_widget_grab_default (button);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_button_new_with_label ("Cancel");
|
||||
button = gtk_button_new_with_label (_("Cancel"));
|
||||
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
|
||||
gtk_signal_connect (GTK_OBJECT (button), "clicked",
|
||||
(GtkSignalFunc) file_prefs_cancel_callback,
|
||||
|
@ -816,7 +817,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
notebook, TRUE, TRUE, 0);
|
||||
|
||||
/* Display page */
|
||||
out_frame = gtk_frame_new ("Display settings");
|
||||
out_frame = gtk_frame_new (_("Display settings"));
|
||||
gtk_container_border_width (GTK_CONTAINER (out_frame), 10);
|
||||
gtk_widget_show (out_frame);
|
||||
|
||||
|
@ -829,7 +830,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0);
|
||||
gtk_widget_show (hbox);
|
||||
|
||||
frame = gtk_frame_new ("Default image size");
|
||||
frame = gtk_frame_new (_("Default image size"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0);
|
||||
gtk_widget_show (frame);
|
||||
|
||||
|
@ -844,13 +845,13 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_box_pack_start (GTK_BOX (abox), table, TRUE, TRUE, 0);
|
||||
gtk_widget_show (table);
|
||||
|
||||
label = gtk_label_new ("Width:");
|
||||
label = gtk_label_new (_("Width:"));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1,
|
||||
GTK_FILL, GTK_FILL, 0, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
label = gtk_label_new ("Height:");
|
||||
label = gtk_label_new (_("Height:"));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2,
|
||||
GTK_FILL, GTK_FILL, 0, 0);
|
||||
|
@ -881,7 +882,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
&default_height);
|
||||
gtk_widget_show (spinbutton);
|
||||
|
||||
frame = gtk_frame_new ("Default image type");
|
||||
frame = gtk_frame_new (_("Default image type"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0);
|
||||
gtk_widget_show (frame);
|
||||
|
||||
|
@ -890,7 +891,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_container_add (GTK_CONTAINER (frame), radio_box);
|
||||
gtk_widget_show (radio_box);
|
||||
|
||||
button = gtk_radio_button_new_with_label (NULL, "RGB");
|
||||
button = gtk_radio_button_new_with_label (NULL, _("RGB"));
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (button));
|
||||
gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0);
|
||||
gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) RGB);
|
||||
|
@ -900,7 +901,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
(GtkSignalFunc) file_prefs_toggle_callback,
|
||||
&default_type);
|
||||
gtk_widget_show (button);
|
||||
button = gtk_radio_button_new_with_label (group, "Grayscale");
|
||||
button = gtk_radio_button_new_with_label (group, _("Grayscale"));
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (button));
|
||||
gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0);
|
||||
gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) GRAY);
|
||||
|
@ -914,7 +915,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0);
|
||||
gtk_widget_show (hbox);
|
||||
|
||||
label = gtk_label_new ("Preview size:");
|
||||
label = gtk_label_new (_("Preview size:"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
@ -936,7 +937,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
if (preview_size==preview_sizes[i].size)
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU (optionmenu),i);
|
||||
|
||||
button = gtk_check_button_new_with_label("Cubic interpolation");
|
||||
button = gtk_check_button_new_with_label(_("Cubic interpolation"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
|
||||
cubic_interpolation);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), button, TRUE, TRUE, 0);
|
||||
|
@ -949,7 +950,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0);
|
||||
gtk_widget_show (hbox);
|
||||
|
||||
frame = gtk_frame_new ("Transparency Type");
|
||||
frame = gtk_frame_new (_("Transparency Type"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0);
|
||||
gtk_widget_show (frame);
|
||||
|
||||
|
@ -973,7 +974,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
&transparency_type);
|
||||
gtk_widget_show (button);
|
||||
}
|
||||
frame = gtk_frame_new ("Check Size");
|
||||
frame = gtk_frame_new (_("Check Size"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0);
|
||||
gtk_widget_show (frame);
|
||||
|
||||
|
@ -998,11 +999,11 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_widget_show (button);
|
||||
}
|
||||
|
||||
label = gtk_label_new ("Display");
|
||||
label = gtk_label_new (_("Display"));
|
||||
gtk_notebook_append_page (GTK_NOTEBOOK(notebook), out_frame, label);
|
||||
|
||||
/* Interface */
|
||||
out_frame = gtk_frame_new ("Interface settings");
|
||||
out_frame = gtk_frame_new (_("Interface settings"));
|
||||
gtk_container_border_width (GTK_CONTAINER (out_frame), 10);
|
||||
gtk_widget_show (out_frame);
|
||||
|
||||
|
@ -1011,7 +1012,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_container_add (GTK_CONTAINER (out_frame), vbox);
|
||||
gtk_widget_show (vbox);
|
||||
|
||||
button = gtk_check_button_new_with_label("Resize window on zoom");
|
||||
button = gtk_check_button_new_with_label(_("Resize window on zoom"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
|
||||
allow_resize_windows);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
|
||||
|
@ -1020,7 +1021,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
&allow_resize_windows);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_check_button_new_with_label("Perfect-but-slow pointer tracking");
|
||||
button = gtk_check_button_new_with_label(_("Perfect-but-slow pointer tracking"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
|
||||
perfectmouse);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
|
||||
|
@ -1032,7 +1033,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
/* Don't show the Auto-save button until we really
|
||||
have auto-saving in the gimp.
|
||||
|
||||
button = gtk_check_button_new_with_label("Auto save");
|
||||
button = gtk_check_button_new_with_label(_("Auto save"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
|
||||
auto_save);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
|
||||
|
@ -1042,7 +1043,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_widget_show (button);
|
||||
*/
|
||||
|
||||
button = gtk_check_button_new_with_label("Disable cursor updating");
|
||||
button = gtk_check_button_new_with_label(_("Disable cursor updating"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
|
||||
no_cursor_updating);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
|
||||
|
@ -1051,7 +1052,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
&no_cursor_updating);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_check_button_new_with_label("Show tool tips");
|
||||
button = gtk_check_button_new_with_label(_("Show tool tips"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
|
||||
show_tool_tips);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
|
||||
|
@ -1060,7 +1061,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
&show_tool_tips);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_check_button_new_with_label("Show rulers");
|
||||
button = gtk_check_button_new_with_label(_("Show rulers"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
|
||||
show_rulers);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
|
||||
|
@ -1069,7 +1070,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
&show_rulers);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_check_button_new_with_label("Show statusbar");
|
||||
button = gtk_check_button_new_with_label(_("Show statusbar"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
|
||||
show_statusbar);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
|
||||
|
@ -1082,7 +1083,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
gtk_widget_show (hbox);
|
||||
|
||||
label = gtk_label_new ("Levels of undo:");
|
||||
label = gtk_label_new (_("Levels of undo:"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
@ -1102,7 +1103,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
gtk_widget_show (hbox);
|
||||
|
||||
label = gtk_label_new ("Marching ants speed:");
|
||||
label = gtk_label_new (_("Marching ants speed:"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
@ -1122,7 +1123,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
gtk_widget_show (hbox);
|
||||
|
||||
label = gtk_label_new ("Recent Documents list size:");
|
||||
label = gtk_label_new (_("Recent Documents list size:"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
@ -1138,11 +1139,11 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
&edit_last_opened_size);
|
||||
gtk_widget_show (spinbutton);
|
||||
|
||||
label = gtk_label_new ("Interface");
|
||||
label = gtk_label_new (_("Interface"));
|
||||
gtk_notebook_append_page (GTK_NOTEBOOK(notebook), out_frame, label);
|
||||
|
||||
/* Environment */
|
||||
out_frame = gtk_frame_new ("Environment settings");
|
||||
out_frame = gtk_frame_new (_("Environment settings"));
|
||||
gtk_container_border_width (GTK_CONTAINER (out_frame), 10);
|
||||
gtk_widget_set_usize (out_frame, 320, 200);
|
||||
gtk_widget_show (out_frame);
|
||||
|
@ -1152,7 +1153,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_container_add (GTK_CONTAINER (out_frame), vbox);
|
||||
gtk_widget_show (vbox);
|
||||
|
||||
button = gtk_check_button_new_with_label("Conservative memory usage");
|
||||
button = gtk_check_button_new_with_label(_("Conservative memory usage"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
|
||||
stingy_memory_use);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
|
||||
|
@ -1165,7 +1166,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
gtk_widget_show (hbox);
|
||||
|
||||
label = gtk_label_new ("Tile cache size:");
|
||||
label = gtk_label_new (_("Tile cache size:"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
@ -1201,7 +1202,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
if (mem_size_unit == mem_size_units[i].unit)
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU (optionmenu),i);
|
||||
|
||||
button = gtk_check_button_new_with_label("Install colormap (8-bit only)");
|
||||
button = gtk_check_button_new_with_label(_("Install colormap (8-bit only)"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
|
||||
install_cmap);
|
||||
gtk_signal_connect (GTK_OBJECT (button), "toggled",
|
||||
|
@ -1212,7 +1213,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_widget_set_sensitive (GTK_WIDGET(button), FALSE);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_check_button_new_with_label("Colormap cycling (8-bit only)");
|
||||
button = gtk_check_button_new_with_label(_("Colormap cycling (8-bit only)"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
|
||||
cycled_marching_ants);
|
||||
gtk_signal_connect (GTK_OBJECT (button), "toggled",
|
||||
|
@ -1223,11 +1224,11 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_widget_set_sensitive (GTK_WIDGET(button), FALSE);
|
||||
gtk_widget_show (button);
|
||||
|
||||
label = gtk_label_new ("Environment");
|
||||
label = gtk_label_new (_("Environment"));
|
||||
gtk_notebook_append_page (GTK_NOTEBOOK(notebook), out_frame, label);
|
||||
|
||||
/* Session Management */
|
||||
out_frame = gtk_frame_new ("Session managment");
|
||||
out_frame = gtk_frame_new (_("Session managment"));
|
||||
gtk_container_border_width (GTK_CONTAINER (out_frame), 10);
|
||||
gtk_widget_set_usize (out_frame, 320, 200);
|
||||
gtk_widget_show (out_frame);
|
||||
|
@ -1237,7 +1238,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_container_add (GTK_CONTAINER (out_frame), vbox);
|
||||
gtk_widget_show (vbox);
|
||||
|
||||
button = gtk_check_button_new_with_label ("Save window positions on exit");
|
||||
button = gtk_check_button_new_with_label (_("Save window positions on exit"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
|
||||
save_session_info);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
|
||||
|
@ -1251,14 +1252,14 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
gtk_widget_show (hbox);
|
||||
|
||||
button = gtk_button_new_with_label ("Clear saved window positions");
|
||||
button = gtk_button_new_with_label (_("Clear saved window positions"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, FALSE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (button), "clicked",
|
||||
(GtkSignalFunc) file_prefs_clear_session_info_callback,
|
||||
NULL);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_check_button_new_with_label ("Always try to restore session");
|
||||
button = gtk_check_button_new_with_label (_("Always try to restore session"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
|
||||
always_restore_session);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
|
||||
|
@ -1267,7 +1268,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
&always_restore_session);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_check_button_new_with_label ("Save device status on exit");
|
||||
button = gtk_check_button_new_with_label (_("Save device status on exit"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
|
||||
save_device_status);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
|
||||
|
@ -1276,13 +1277,13 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
&save_device_status);
|
||||
gtk_widget_show (button);
|
||||
|
||||
label = gtk_label_new ("Session");
|
||||
label = gtk_label_new (_("Session"));
|
||||
gtk_notebook_append_page (GTK_NOTEBOOK(notebook), out_frame, label);
|
||||
|
||||
gtk_widget_show (notebook);
|
||||
|
||||
/* Directories */
|
||||
out_frame = gtk_frame_new ("Directories settings");
|
||||
out_frame = gtk_frame_new (_("Directories settings"));
|
||||
gtk_container_border_width (GTK_CONTAINER (out_frame), 10);
|
||||
gtk_widget_set_usize (out_frame, 320, 200);
|
||||
gtk_widget_show (out_frame);
|
||||
|
@ -1317,7 +1318,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_widget_show (entry);
|
||||
}
|
||||
|
||||
label = gtk_label_new ("Directories");
|
||||
label = gtk_label_new (_("Directories"));
|
||||
gtk_notebook_append_page (GTK_NOTEBOOK(notebook), out_frame, label);
|
||||
|
||||
gtk_widget_show (notebook);
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
#include "appenv.h"
|
||||
#include "resize.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#define EVENT_MASK GDK_EXPOSURE_MASK | GDK_BUTTON_PRESS_MASK
|
||||
#define DRAWING_AREA_SIZE 200
|
||||
#define TEXT_WIDTH 35
|
||||
|
@ -101,11 +103,11 @@ resize_widget_new (ResizeType type,
|
|||
switch (type)
|
||||
{
|
||||
case ScaleWidget:
|
||||
resize->resize_widget = gtk_frame_new ("Scale");
|
||||
resize->resize_widget = gtk_frame_new (_("Scale"));
|
||||
table = gtk_table_new (4, 2, TRUE);
|
||||
break;
|
||||
case ResizeWidget:
|
||||
resize->resize_widget = gtk_frame_new ("Resize");
|
||||
resize->resize_widget = gtk_frame_new (_("Resize"));
|
||||
table = gtk_table_new (6, 2, TRUE);
|
||||
break;
|
||||
}
|
||||
|
@ -121,7 +123,7 @@ resize_widget_new (ResizeType type,
|
|||
|
||||
/* the width label and entry */
|
||||
sprintf (size, "%d", width);
|
||||
label = gtk_label_new ("New width:");
|
||||
label = gtk_label_new (_("New width:"));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2);
|
||||
|
@ -138,7 +140,7 @@ resize_widget_new (ResizeType type,
|
|||
|
||||
/* the height label and entry */
|
||||
sprintf (size, "%d", height);
|
||||
label = gtk_label_new ("New height:");
|
||||
label = gtk_label_new (_("New height:"));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2);
|
||||
|
@ -155,7 +157,7 @@ resize_widget_new (ResizeType type,
|
|||
|
||||
/* the x scale ratio label and entry */
|
||||
sprintf (ratio_text, "%0.4f", resize->ratio_x);
|
||||
label = gtk_label_new ("X ratio:");
|
||||
label = gtk_label_new (_("X ratio:"));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 2, 3,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2);
|
||||
|
@ -172,7 +174,7 @@ resize_widget_new (ResizeType type,
|
|||
|
||||
/* the y scale ratio label and entry */
|
||||
sprintf (ratio_text, "%0.4f", resize->ratio_y);
|
||||
label = gtk_label_new ("Y ratio:");
|
||||
label = gtk_label_new (_("Y ratio:"));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 3, 4,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2);
|
||||
|
@ -191,7 +193,7 @@ resize_widget_new (ResizeType type,
|
|||
{
|
||||
/* the off_x label and entry */
|
||||
sprintf (size, "%d", 0);
|
||||
label = gtk_label_new ("X Offset:");
|
||||
label = gtk_label_new (_("Offset X:"));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 4, 5,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2);
|
||||
|
@ -208,7 +210,7 @@ resize_widget_new (ResizeType type,
|
|||
|
||||
/* the off_y label and entry */
|
||||
sprintf (size, "%d", 0);
|
||||
label = gtk_label_new ("Y Offset:");
|
||||
label = gtk_label_new (_("Offset Y:"));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 5, 6,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2);
|
||||
|
@ -225,7 +227,7 @@ resize_widget_new (ResizeType type,
|
|||
}
|
||||
|
||||
/* the constrain toggle button */
|
||||
constrain = gtk_check_button_new_with_label ("Constrain Ratio");
|
||||
constrain = gtk_check_button_new_with_label (_("Constrain Ratio"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (constrain), private->constrain);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), constrain, FALSE, FALSE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (constrain), "toggled",
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
#include "interface.h"
|
||||
#include "wilber.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#define TIPS_FILE_NAME "gimp_tips.txt"
|
||||
|
||||
static int tips_dialog_hide (GtkWidget *widget, gpointer data);
|
||||
|
@ -57,7 +59,7 @@ tips_dialog_create ()
|
|||
{
|
||||
tips_dialog = gtk_window_new (GTK_WINDOW_DIALOG);
|
||||
gtk_window_set_wmclass (GTK_WINDOW (tips_dialog), "tip_of_the_day", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (tips_dialog), "GIMP Tip of the day");
|
||||
gtk_window_set_title (GTK_WINDOW (tips_dialog), _("GIMP Tip of the day"));
|
||||
gtk_window_position (GTK_WINDOW (tips_dialog), GTK_WIN_POS_CENTER);
|
||||
gtk_signal_connect (GTK_OBJECT (tips_dialog), "delete_event",
|
||||
GTK_SIGNAL_FUNC (tips_dialog_hide), NULL);
|
||||
|
@ -102,27 +104,27 @@ tips_dialog_create ()
|
|||
gtk_box_pack_start (GTK_BOX (hbox1), tips_label, TRUE, TRUE, 3);
|
||||
gtk_widget_show (tips_label);
|
||||
|
||||
button_close = gtk_button_new_with_label ("Close");
|
||||
button_close = gtk_button_new_with_label (_("Close"));
|
||||
gtk_signal_connect (GTK_OBJECT (button_close), "clicked",
|
||||
GTK_SIGNAL_FUNC (tips_dialog_hide), NULL);
|
||||
gtk_box_pack_end (GTK_BOX (hbox2), button_close, FALSE, TRUE, 0);
|
||||
gtk_widget_show (button_close);
|
||||
|
||||
button_next = gtk_button_new_with_label ("Next Tip");
|
||||
button_next = gtk_button_new_with_label (_("Next Tip"));
|
||||
gtk_signal_connect (GTK_OBJECT (button_next), "clicked",
|
||||
GTK_SIGNAL_FUNC (tips_show_next),
|
||||
(gpointer) "next");
|
||||
gtk_box_pack_end (GTK_BOX (hbox2), button_next, FALSE, TRUE, 0);
|
||||
gtk_widget_show (button_next);
|
||||
|
||||
button_prev = gtk_button_new_with_label ("Prev. Tip");
|
||||
button_prev = gtk_button_new_with_label (_("Prev. Tip"));
|
||||
gtk_signal_connect (GTK_OBJECT (button_prev), "clicked",
|
||||
GTK_SIGNAL_FUNC (tips_show_next),
|
||||
(gpointer) "prev");
|
||||
gtk_box_pack_end (GTK_BOX (hbox2), button_prev, FALSE, TRUE, 0);
|
||||
gtk_widget_show (button_prev);
|
||||
|
||||
button_check = gtk_check_button_new_with_label ("Show tip next time");
|
||||
button_check = gtk_check_button_new_with_label (_("Show tip next time"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button_check),
|
||||
show_tips);
|
||||
gtk_signal_connect (GTK_OBJECT (button_check), "toggled",
|
||||
|
@ -220,9 +222,9 @@ read_tips_file (char *filename)
|
|||
fp = fopen (filename, "rb");
|
||||
if (!fp)
|
||||
{
|
||||
store_tip ("Your GIMP tips file appears to be missing!\n"
|
||||
store_tip (_("Your GIMP tips file appears to be missing!\n"
|
||||
"There should be a file called " TIPS_FILE_NAME " in the\n"
|
||||
"GIMP data directory. Please check your installation.");
|
||||
"GIMP data directory. Please check your installation."));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include "interface.h"
|
||||
#include "gimprc.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
static void install_run (InstallCallback);
|
||||
static void install_help (InstallCallback);
|
||||
|
@ -48,7 +49,7 @@ install_verify (InstallCallback install_callback)
|
|||
filename = gimp_directory ();
|
||||
if ('\000' == filename[0])
|
||||
{
|
||||
g_message ("No home directory--skipping GIMP user installation.");
|
||||
g_message (_("No home directory--skipping GIMP user installation."));
|
||||
(* install_callback) ();
|
||||
}
|
||||
|
||||
|
@ -63,9 +64,9 @@ install_verify (InstallCallback install_callback)
|
|||
/* Otherwise, prepare for installation */
|
||||
else if (no_interface)
|
||||
{
|
||||
g_print ("The GIMP is not properly installed for the current user\n");
|
||||
g_print ("User installation was skipped because the '--nointerface' flag was encountered\n");
|
||||
g_print ("To perform user installation, run the GIMP without the '--nointerface' flag\n");
|
||||
g_print (_("The GIMP is not properly installed for the current user\n"));
|
||||
g_print (_("User installation was skipped because the '--nointerface' flag was encountered\n"));
|
||||
g_print (_("To perform user installation, run the GIMP without the '--nointerface' flag\n"));
|
||||
|
||||
(* install_callback) ();
|
||||
}
|
||||
|
@ -84,9 +85,9 @@ install_help (InstallCallback callback)
|
|||
{
|
||||
static ActionAreaItem action_items[] =
|
||||
{
|
||||
{ "Install", help_install_callback, NULL, NULL },
|
||||
{ "Ignore", help_ignore_callback, NULL, NULL },
|
||||
{ "Quit", help_quit_callback, NULL, NULL }
|
||||
{ N_("Install"), help_install_callback, NULL, NULL },
|
||||
{ N_("Ignore"), help_ignore_callback, NULL, NULL },
|
||||
{ N_("Quit"), help_quit_callback, NULL, NULL }
|
||||
};
|
||||
GtkWidget *text;
|
||||
GtkWidget *table;
|
||||
|
@ -101,7 +102,7 @@ install_help (InstallCallback callback)
|
|||
GTK_SIGNAL_FUNC (gtk_true),
|
||||
NULL);
|
||||
gtk_window_set_wmclass (GTK_WINDOW (help_widget), "gimp_installation", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (help_widget), "GIMP Installation");
|
||||
gtk_window_set_title (GTK_WINDOW (help_widget), _("GIMP Installation"));
|
||||
gtk_window_position (GTK_WINDOW (help_widget), GTK_WIN_POS_CENTER);
|
||||
|
||||
vadj = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 0.0, 0.0, 0.0, 0.0));
|
||||
|
@ -137,188 +138,188 @@ install_help (InstallCallback callback)
|
|||
gtk_widget_realize (text);
|
||||
|
||||
gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL,
|
||||
"The GIMP - GNU Image Manipulation Program\n\n", -1);
|
||||
_("The GIMP - GNU Image Manipulation Program\n\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"Copyright (C) 1995 Spencer Kimball and Peter Mattis\n", -1);
|
||||
_("Copyright (C) 1995 Spencer Kimball and Peter Mattis\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\n", -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"This program is free software; you can redistribute it and/or modify\n", -1);
|
||||
_("This program is free software; you can redistribute it and/or modify\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"it under the terms of the GNU General Public License as published by\n", -1);
|
||||
_("it under the terms of the GNU General Public License as published by\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"the Free Software Foundation; either version 2 of the License, or\n", -1);
|
||||
_("the Free Software Foundation; either version 2 of the License, or\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"(at your option) any later version.\n", -1);
|
||||
_("(at your option) any later version.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\n", -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"This program is distributed in the hope that it will be useful,\n", -1);
|
||||
_("This program is distributed in the hope that it will be useful,\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"but WITHOUT ANY WARRANTY; without even the implied warranty of\n", -1);
|
||||
_("but WITHOUT ANY WARRANTY; without even the implied warranty of\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n", -1);
|
||||
_("MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"See the GNU General Public License for more details.\n", -1);
|
||||
_("See the GNU General Public License for more details.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\n", -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"You should have received a copy of the GNU General Public License\n", -1);
|
||||
_("You should have received a copy of the GNU General Public License\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"along with this program; if not, write to the Free Software\n", -1);
|
||||
_("along with this program; if not, write to the Free Software\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n", -1);
|
||||
_("Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\n\n", -1);
|
||||
|
||||
gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL,
|
||||
"Personal GIMP Installation\n\n", -1);
|
||||
_("Personal GIMP Installation\n\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"For a proper GIMP installation, a subdirectory called\n", -1);
|
||||
_("For a proper GIMP installation, a subdirectory called\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
gimp_directory (), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
" needs to be created. This\n", -1);
|
||||
_(" needs to be created. This\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"subdirectory will contain a number of important files:\n\n", -1);
|
||||
_("subdirectory will contain a number of important files:\n\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"gimprc\n", -1);
|
||||
_("gimprc\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThe gimprc is used to store personal preferences\n", -1);
|
||||
_("\t\tThe gimprc is used to store personal preferences\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tsuch as default GIMP behaviors & plug-in hotkeys.\n", -1);
|
||||
_("\t\tsuch as default GIMP behaviors & plug-in hotkeys.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tPaths to search for brushes, palettes, gradients\n", -1);
|
||||
_("\t\tPaths to search for brushes, palettes, gradients\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tpatterns, and plug-ins are also configured here.\n", -1);
|
||||
_("\t\tpatterns, and plug-ins are also configured here.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"pluginrc\n", -1);
|
||||
_("pluginrc\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tPlug-ins and extensions are extern programs run by\n", -1);
|
||||
_("\t\tPlug-ins and extensions are extern programs run by\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tthe GIMP which provide additional functionality.\n", -1);
|
||||
_("\t\tthe GIMP which provide additional functionality.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThese programs are searched for at run-time and\n", -1);
|
||||
_("\t\tThese programs are searched for at run-time and\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tinformation about their functionality and mod-times\n", -1);
|
||||
_("\t\tinformation about their functionality and mod-times\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tis cached in this file. This file is intended to\n", -1);
|
||||
_("\t\tis cached in this file. This file is intended to\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tbe GIMP-readable only, and should not be edited.\n", -1);
|
||||
_("\t\tbe GIMP-readable only, and should not be edited.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"brushes\n", -1);
|
||||
_("brushes\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThis is a subdirectory which can be used to store\n", -1);
|
||||
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tuser defined brushes. The default gimprc file\n", -1);
|
||||
_("\t\tuser defined brushes. The default gimprc file\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tchecks this subdirectory in addition to the system-\n", -1);
|
||||
_("\t\tchecks this subdirectory in addition to the system-\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\twide gimp brushes installation when searching for\n", -1);
|
||||
_("\t\twide gimp brushes installation when searching for\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tbrushes.\n", -1);
|
||||
_("\t\tbrushes.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"gradients\n", -1);
|
||||
_("gradients\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThis is a subdirectory which can be used to store\n", -1);
|
||||
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tuser defined gradients. The default gimprc file\n", -1);
|
||||
_("\t\tuser defined gradients. The default gimprc file\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tchecks this subdirectory in addition to the system-\n", -1);
|
||||
_("\t\tchecks this subdirectory in addition to the system-\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\twide gimp gradients installation when searching for\n", -1);
|
||||
_("\t\twide gimp gradients installation when searching for\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tgradients.\n", -1);
|
||||
_("\t\tgradients.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"gfig\n", -1);
|
||||
_("gfig\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThis is a subdirectory which can be used to store\n", -1);
|
||||
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tuser defined figures to be used by the gfig plug-in.\n", -1);
|
||||
_("\t\tuser defined figures to be used by the gfig plug-in.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThe default gimprc file checks this subdirectory in\n", -1);
|
||||
_("\t\tThe default gimprc file checks this subdirectory in\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\taddition to the systemwide gimp gfig installation\n", -1);
|
||||
_("\t\taddition to the systemwide gimp gfig installation\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\twhen searching for gfig figures.\n", -1);
|
||||
_("\t\twhen searching for gfig figures.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"gflares\n", -1);
|
||||
_("gflares\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThis is a subdirectory which can be used to store\n", -1);
|
||||
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tuser defined gflares to be used by the gflare plug-in.\n", -1);
|
||||
_("\t\tuser defined gflares to be used by the gflare plug-in.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThe default gimprc file checks this subdirectory in\n", -1);
|
||||
_("\t\tThe default gimprc file checks this subdirectory in\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\taddition to the systemwide gimp gflares installation\n", -1);
|
||||
_("\t\taddition to the systemwide gimp gflares installation\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\twhen searching for gflares.\n", -1);
|
||||
_("\t\twhen searching for gflares.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"palettes\n", -1);
|
||||
_("palettes\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThis is a subdirectory which can be used to store\n", -1);
|
||||
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tuser defined palettes. The default gimprc file\n", -1);
|
||||
_("\t\tuser defined palettes. The default gimprc file\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tchecks only this subdirectory (not the system-wide\n", -1);
|
||||
_("\t\tchecks only this subdirectory (not the system-wide\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tinstallation) when searching for palettes. During\n", -1);
|
||||
_("\t\tinstallation) when searching for palettes. During\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tinstallation, the system palettes will be copied\n", -1);
|
||||
_("\t\tinstallation, the system palettes will be copied\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\there. This is done to allow modifications made to\n", -1);
|
||||
_("\t\there. This is done to allow modifications made to\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tpalettes during GIMP execution to persist across\n", -1);
|
||||
_("\t\tpalettes during GIMP execution to persist across\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tsessions.\n", -1);
|
||||
_("\t\tsessions.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"patterns\n", -1);
|
||||
_("patterns\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThis is a subdirectory which can be used to store\n", -1);
|
||||
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tuser defined patterns. The default gimprc file\n", -1);
|
||||
_("\t\tuser defined patterns. The default gimprc file\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tchecks this subdirectory in addition to the system-\n", -1);
|
||||
_("\t\tchecks this subdirectory in addition to the system-\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\twide gimp patterns installation when searching for\n", -1);
|
||||
_("\t\twide gimp patterns installation when searching for\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tpatterns.\n", -1);
|
||||
_("\t\tpatterns.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"plug-ins\n", -1);
|
||||
_("plug-ins\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThis is a subdirectory which can be used to store\n", -1);
|
||||
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tuser created, temporary, or otherwise non-system-\n", -1);
|
||||
_("\t\tuser created, temporary, or otherwise non-system-\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tsupported plug-ins. The default gimprc file\n", -1);
|
||||
_("\t\tsupported plug-ins. The default gimprc file\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tchecks this subdirectory in addition to the system-\n", -1);
|
||||
_("\t\tchecks this subdirectory in addition to the system-\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\twide GIMP plug-in directories when searching for\n", -1);
|
||||
_("\t\twide GIMP plug-in directories when searching for\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tplug-ins.\n", -1);
|
||||
_("\t\tplug-ins.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"scripts\n", -1);
|
||||
_("scripts\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThis subdirectory is used by the GIMP to store \n", -1);
|
||||
_("\t\tThis subdirectory is used by the GIMP to store \n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tuser created and installed scripts. The default gimprc\n", -1);
|
||||
_("\t\tuser created and installed scripts. The default gimprc\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tfile checks this subdirectory in addition to the system\n", -1);
|
||||
_("\t\tfile checks this subdirectory in addition to the system\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\t-wide gimp scripts subdirectory when searching for scripts\n", -1);
|
||||
_("\t\t-wide gimp scripts subdirectory when searching for scripts\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"tmp\n", -1);
|
||||
_("tmp\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThis subdirectory is used by the GIMP to temporarily\n", -1);
|
||||
_("\t\tThis subdirectory is used by the GIMP to temporarily\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tstore undo buffers to reduce memory usage. If GIMP is\n", -1);
|
||||
_("\t\tstore undo buffers to reduce memory usage. If GIMP is\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tunceremoniously killed, files may persist in this directory\n", -1);
|
||||
_("\t\tunceremoniously killed, files may persist in this directory\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tof the form: gimp<#>.<#>. These files are useless across\n", -1);
|
||||
_("\t\tof the form: gimp<#>.<#>. These files are useless across\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tGIMP sessions and can be destroyed with impunity.\n", -1);
|
||||
_("\t\tGIMP sessions and can be destroyed with impunity.\n"), -1);
|
||||
|
||||
gtk_widget_show (vsb);
|
||||
gtk_widget_show (text);
|
||||
|
@ -361,8 +362,8 @@ install_run (InstallCallback callback)
|
|||
{
|
||||
static ActionAreaItem action_items[] =
|
||||
{
|
||||
{ "Continue", install_continue_callback, NULL, NULL },
|
||||
{ "Quit", install_quit_callback, NULL, NULL }
|
||||
{ N_("Continue"), install_continue_callback, NULL, NULL },
|
||||
{ N_("Quit"), install_quit_callback, NULL, NULL }
|
||||
};
|
||||
GtkWidget *text;
|
||||
GtkWidget *table;
|
||||
|
@ -382,7 +383,7 @@ install_run (InstallCallback callback)
|
|||
GTK_SIGNAL_FUNC (gtk_true),
|
||||
NULL);
|
||||
gtk_window_set_wmclass (GTK_WINDOW (install_widget), "installation_log", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (install_widget), "Installation Log");
|
||||
gtk_window_set_title (GTK_WINDOW (install_widget), _("Installation Log"));
|
||||
gtk_window_position (GTK_WINDOW (install_widget), GTK_WIN_POS_CENTER);
|
||||
vadj = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 0.0, 0.0, 0.0, 0.0));
|
||||
vsb = gtk_vscrollbar_new (vadj);
|
||||
|
@ -413,7 +414,7 @@ install_run (InstallCallback callback)
|
|||
/* Realize the text widget before inserting text strings */
|
||||
gtk_widget_realize (text);
|
||||
|
||||
gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL, "User Installation Log\n\n", -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL, _("User Installation Log\n\n"), -1);
|
||||
|
||||
/* Generate output */
|
||||
if ((gimp_data_dir = getenv ("GIMP_DATADIR")) != NULL)
|
||||
|
@ -425,14 +426,14 @@ install_run (InstallCallback callback)
|
|||
{
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, buffer, -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
" does not exist. Cannot install.\n", -1);
|
||||
_(" does not exist. Cannot install.\n"), -1);
|
||||
executable = FALSE;
|
||||
}
|
||||
else if (! (S_IXUSR & stat_buf.st_mode) || ! (S_IRUSR & stat_buf.st_mode))
|
||||
{
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, buffer, -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
" has invalid permissions.\nCannot install.", -1);
|
||||
_(" has invalid permissions.\nCannot install."), -1);
|
||||
executable = FALSE;
|
||||
}
|
||||
|
||||
|
@ -452,14 +453,14 @@ install_run (InstallCallback callback)
|
|||
pclose (pfp);
|
||||
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\nInstallation successful!\n", -1);
|
||||
_("\nInstallation successful!\n"), -1);
|
||||
}
|
||||
else
|
||||
executable = FALSE;
|
||||
}
|
||||
if (executable == FALSE)
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\nInstallation failed. Contact system administrator.\n", -1);
|
||||
_("\nInstallation failed. Contact system administrator.\n"), -1);
|
||||
|
||||
gtk_widget_show (vsb);
|
||||
gtk_widget_show (text);
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
#include "scale.h"
|
||||
#include "gimprc.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
static void gdisplay_close_warning_callback (GtkWidget *, gpointer);
|
||||
static void gdisplay_cancel_warning_callback (GtkWidget *, gpointer);
|
||||
|
@ -274,7 +275,7 @@ gdisplay_close_warning_callback (GtkWidget *w,
|
|||
GDisplay *gdisp;
|
||||
GtkWidget *mbox;
|
||||
|
||||
menus_set_sensitive ("<Image>/File/Close", TRUE);
|
||||
menus_set_sensitive (_("<Image>/File/Close"), TRUE);
|
||||
mbox = (GtkWidget *) client_data;
|
||||
gdisp = (GDisplay *) gtk_object_get_user_data (GTK_OBJECT (mbox));
|
||||
|
||||
|
@ -293,7 +294,7 @@ gdisplay_cancel_warning_callback (GtkWidget *w,
|
|||
{
|
||||
GtkWidget *mbox;
|
||||
|
||||
menus_set_sensitive ("<Image>/File/Close", TRUE);
|
||||
menus_set_sensitive (_("<Image>/File/Close"), TRUE);
|
||||
mbox = (GtkWidget *) client_data;
|
||||
gtk_widget_destroy (mbox);
|
||||
}
|
||||
|
@ -303,7 +304,7 @@ gdisplay_delete_warning_callback (GtkWidget *widget,
|
|||
GdkEvent *event,
|
||||
gpointer client_data)
|
||||
{
|
||||
menus_set_sensitive ("<Image>/File/Close", TRUE);
|
||||
menus_set_sensitive (_("<Image>/File/Close"), TRUE);
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -321,8 +322,8 @@ gdisplay_close_warning_dialog (char *image_name,
|
|||
{
|
||||
static ActionAreaItem mbox_action_items[2] =
|
||||
{
|
||||
{ "Close", gdisplay_close_warning_callback, NULL, NULL },
|
||||
{ "Cancel", gdisplay_cancel_warning_callback, NULL, NULL }
|
||||
{ N_("Close"), gdisplay_close_warning_callback, NULL, NULL },
|
||||
{ N_("Cancel"), gdisplay_cancel_warning_callback, NULL, NULL }
|
||||
};
|
||||
GtkWidget *mbox;
|
||||
GtkWidget *vbox;
|
||||
|
@ -339,7 +340,7 @@ gdisplay_close_warning_dialog (char *image_name,
|
|||
return;
|
||||
}
|
||||
|
||||
menus_set_sensitive ("<Image>/File/Close", FALSE);
|
||||
menus_set_sensitive (_("<Image>/File/Close"), FALSE);
|
||||
|
||||
warning_dialog = mbox = gtk_dialog_new ();
|
||||
/* should this be image_window or the actual image name??? */
|
||||
|
@ -362,7 +363,7 @@ gdisplay_close_warning_dialog (char *image_name,
|
|||
gtk_widget_show (vbox);
|
||||
|
||||
warning_buf = (char *) g_malloc (strlen (image_name) + 50);
|
||||
sprintf (warning_buf, "Changes made to %s. Close anyway?", image_name);
|
||||
sprintf (warning_buf, _("Changes were made to %s. Close anyway?"), image_name);
|
||||
label = gtk_label_new (warning_buf);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), label, TRUE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
|
|
@ -43,6 +43,8 @@
|
|||
#include "undo.h"
|
||||
#include "layer_pvt.h" /* ick. */
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#define OVERHEAD 25 /* in units of pixel area */
|
||||
#define EPSILON 5
|
||||
|
||||
|
@ -159,13 +161,13 @@ gdisplay_format_title (GimpImage *gimage,
|
|||
switch (gimage_base_type (gimage))
|
||||
{
|
||||
case RGB:
|
||||
image_type_str = (empty) ? "RGB-empty" : "RGB";
|
||||
image_type_str = (empty) ? _("RGB-empty") : _("RGB");
|
||||
break;
|
||||
case GRAY:
|
||||
image_type_str = (empty) ? "grayscale-empty" : "grayscale";
|
||||
image_type_str = (empty) ? _("grayscale-empty") : _("grayscale");
|
||||
break;
|
||||
case INDEXED:
|
||||
image_type_str = (empty) ? "indexed-empty" : "indexed";
|
||||
image_type_str = (empty) ? _("indexed-empty") : _("indexed");
|
||||
break;
|
||||
default:
|
||||
image_type_str = NULL;
|
||||
|
@ -207,11 +209,11 @@ gdisplay_delete (GDisplay *gdisp)
|
|||
deactivate the idlerendering thread before deletion! */
|
||||
if (gdisp->idle_render.active)
|
||||
{
|
||||
printf("Deleted idlerendering gdisp %p...\n", gdisp); fflush(stdout);
|
||||
printf("\tIdlerender stops now!\n"); fflush(stdout);
|
||||
printf(_("Deleted idlerendering gdisp %p...\n"), gdisp); fflush(stdout);
|
||||
printf(_("\tIdlerender stops now!\n")); fflush(stdout);
|
||||
gtk_idle_remove (gdisp->idle_render.idleid);
|
||||
gdisp->idle_render.active = FALSE;
|
||||
printf("\tDeletion finished.\n"); fflush(stdout);
|
||||
printf(_("\tDeletion finished.\n")); fflush(stdout);
|
||||
}
|
||||
|
||||
if (gdisp->scroll_gc)
|
||||
|
@ -436,7 +438,7 @@ gdisplay_idlerender_init (GDisplay *gdisp)
|
|||
{
|
||||
if (gdisp->idle_render.update_areas == NULL)
|
||||
{
|
||||
g_warning ("Wanted to start idlerender thread with no update_areas. (+memleak)");
|
||||
g_warning (_("Wanted to start idlerender thread with no update_areas. (+memleak)"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1314,57 +1316,57 @@ gdisplay_set_menu_sensitivity (GDisplay *gdisp)
|
|||
type = drawable_type (drawable);
|
||||
}
|
||||
|
||||
menus_set_sensitive ("<Image>/Layers/Raise Layer", !fs && !aux && lp && alpha);
|
||||
menus_set_sensitive ("<Image>/Layers/Lower Layer", !fs && !aux && lp && alpha);
|
||||
menus_set_sensitive ("<Image>/Layers/Anchor Layer", fs && !aux && lp);
|
||||
menus_set_sensitive ("<Image>/Layers/Merge Visible Layers", !fs && !aux && lp);
|
||||
menus_set_sensitive ("<Image>/Layers/Flatten Image", !fs && !aux && lp);
|
||||
menus_set_sensitive ("<Image>/Layers/Alpha To Selection", !aux && lp && alpha);
|
||||
menus_set_sensitive ("<Image>/Layers/Mask To Selection", !aux && lm && lp);
|
||||
menus_set_sensitive ("<Image>/Layers/Add Alpha Channel", !fs && !aux && lp && !lm && !alpha);
|
||||
menus_set_sensitive (_("<Image>/Layers/Raise Layer"), !fs && !aux && lp && alpha);
|
||||
menus_set_sensitive (_("<Image>/Layers/Lower Layer"), !fs && !aux && lp && alpha);
|
||||
menus_set_sensitive (_("<Image>/Layers/Anchor Layer"), fs && !aux && lp);
|
||||
menus_set_sensitive (_("<Image>/Layers/Merge Visible Layers"), !fs && !aux && lp);
|
||||
menus_set_sensitive (_("<Image>/Layers/Flatten Image"), !fs && !aux && lp);
|
||||
menus_set_sensitive (_("<Image>/Layers/Alpha To Selection"), !aux && lp && alpha);
|
||||
menus_set_sensitive (_("<Image>/Layers/Mask To Selection"), !aux && lm && lp);
|
||||
menus_set_sensitive (_("<Image>/Layers/Add Alpha Channel"), !fs && !aux && lp && !lm && !alpha);
|
||||
|
||||
menus_set_sensitive ("<Image>/Image/RGB", (base_type != RGB));
|
||||
menus_set_sensitive ("<Image>/Image/Grayscale", (base_type != GRAY));
|
||||
menus_set_sensitive ("<Image>/Image/Indexed", (base_type != INDEXED));
|
||||
menus_set_sensitive (_("<Image>/Image/RGB"), (base_type != RGB));
|
||||
menus_set_sensitive (_("<Image>/Image/Grayscale"), (base_type != GRAY));
|
||||
menus_set_sensitive (_("<Image>/Image/Indexed"), (base_type != INDEXED));
|
||||
|
||||
menus_set_sensitive ("<Image>/Image/Colors/Threshold", (base_type != INDEXED));
|
||||
menus_set_sensitive ("<Image>/Image/Colors/Posterize", (base_type != INDEXED));
|
||||
menus_set_sensitive ("<Image>/Image/Colors/Equalize", (base_type != INDEXED));
|
||||
menus_set_sensitive ("<Image>/Image/Colors/Invert", (base_type != INDEXED));
|
||||
menus_set_sensitive (_("<Image>/Image/Colors/Threshold"), (base_type != INDEXED));
|
||||
menus_set_sensitive (_("<Image>/Image/Colors/Posterize") , (base_type != INDEXED));
|
||||
menus_set_sensitive (_("<Image>/Image/Colors/Equalize"), (base_type != INDEXED));
|
||||
menus_set_sensitive (_("<Image>/Image/Colors/Invert"), (base_type != INDEXED));
|
||||
|
||||
menus_set_sensitive ("<Image>/Image/Colors/Color Balance", (base_type == RGB));
|
||||
menus_set_sensitive ("<Image>/Image/Colors/Brightness-Contrast", (base_type != INDEXED));
|
||||
menus_set_sensitive ("<Image>/Image/Colors/Hue-Saturation", (base_type == RGB));
|
||||
menus_set_sensitive ("<Image>/Image/Colors/Curves", (base_type != INDEXED));
|
||||
menus_set_sensitive ("<Image>/Image/Colors/Levels", (base_type != INDEXED));
|
||||
menus_set_sensitive (_("<Image>/Image/Colors/Color Balance"), (base_type == RGB));
|
||||
menus_set_sensitive (_("<Image>/Image/Colors/Brightness-Contrast"), (base_type != INDEXED));
|
||||
menus_set_sensitive (_("<Image>/Image/Colors/Hue-Saturation"), (base_type == RGB));
|
||||
menus_set_sensitive (_("<Image>/Image/Colors/Curves"), (base_type != INDEXED));
|
||||
menus_set_sensitive (_("<Image>/Image/Colors/Levels"), (base_type != INDEXED));
|
||||
|
||||
menus_set_sensitive ("<Image>/Image/Colors/Desaturate", (base_type == RGB));
|
||||
menus_set_sensitive (_("<Image>/Image/Colors/Desaturate"), (base_type == RGB));
|
||||
|
||||
menus_set_sensitive ("<Image>/Image/Alpha/Add Alpha Channel", !fs && !aux && lp && !lm && !alpha);
|
||||
menus_set_sensitive (_("<Image>/Image/Alpha/Add Alpha Channel"), !fs && !aux && lp && !lm && !alpha);
|
||||
|
||||
menus_set_sensitive ("<Image>/Select", lp);
|
||||
menus_set_sensitive ("<Image>/Edit/Cut", lp);
|
||||
menus_set_sensitive ("<Image>/Edit/Copy", lp);
|
||||
menus_set_sensitive ("<Image>/Edit/Paste", lp);
|
||||
menus_set_sensitive ("<Image>/Edit/Paste Into", lp);
|
||||
menus_set_sensitive ("<Image>/Edit/Clear", lp);
|
||||
menus_set_sensitive ("<Image>/Edit/Fill", lp);
|
||||
menus_set_sensitive ("<Image>/Edit/Stroke", lp);
|
||||
menus_set_sensitive ("<Image>/Edit/Cut Named", lp);
|
||||
menus_set_sensitive ("<Image>/Edit/Copy Named", lp);
|
||||
menus_set_sensitive ("<Image>/Edit/Paste Named", lp);
|
||||
menus_set_sensitive ("<Image>/Image/Colors", lp);
|
||||
menus_set_sensitive ("<Image>/Image/Channel Ops/Offset", lp);
|
||||
menus_set_sensitive ("<Image>/Image/Histogram", lp);
|
||||
menus_set_sensitive ("<Image>/Filters", lp);
|
||||
menus_set_sensitive (_("<Image>/Select"), lp);
|
||||
menus_set_sensitive (_("<Image>/Edit/Cut"), lp);
|
||||
menus_set_sensitive (_("<Image>/Edit/Copy"), lp);
|
||||
menus_set_sensitive (_("<Image>/Edit/Paste"), lp);
|
||||
menus_set_sensitive (_("<Image>/Edit/Paste Into"), lp);
|
||||
menus_set_sensitive (_("<Image>/Edit/Clear"), lp);
|
||||
menus_set_sensitive (_("<Image>/Edit/Fill"), lp);
|
||||
menus_set_sensitive (_("<Image>/Edit/Stroke"), lp);
|
||||
menus_set_sensitive (_("<Image>/Edit/Cut Named"), lp);
|
||||
menus_set_sensitive (_("<Image>/Edit/Copy Named"), lp);
|
||||
menus_set_sensitive (_("<Image>/Edit/Paste Named"), lp);
|
||||
menus_set_sensitive (_("<Image>/Image/Colors"), lp);
|
||||
menus_set_sensitive (_("<Image>/Image/Channel Ops/Offset"), lp);
|
||||
menus_set_sensitive (_("<Image>/Image/Histogram"), lp);
|
||||
menus_set_sensitive (_("<Image>/Filters"), lp);
|
||||
|
||||
/* save selection to channel */
|
||||
menus_set_sensitive ("<Image>/Select/Save To Channel", !fs);
|
||||
menus_set_sensitive (_("<Image>/Select/Save To Channel"), !fs);
|
||||
|
||||
menus_set_state ("<Image>/View/Toggle Rulers", GTK_WIDGET_VISIBLE (gdisp->origin) ? 1 : 0);
|
||||
menus_set_state ("<Image>/View/Toggle Guides", gdisp->draw_guides);
|
||||
menus_set_state ("<Image>/View/Snap To Guides", gdisp->snap_to_guides);
|
||||
menus_set_state ("<Image>/View/Toggle Statusbar", GTK_WIDGET_VISIBLE (gdisp->statusarea) ? 1 : 0);
|
||||
menus_set_state (_("<Image>/View/Toggle Rulers"), GTK_WIDGET_VISIBLE (gdisp->origin) ? 1 : 0);
|
||||
menus_set_state (_("<Image>/View/Toggle Guides"), gdisp->draw_guides);
|
||||
menus_set_state (_("<Image>/View/Snap To Guides"), gdisp->snap_to_guides);
|
||||
menus_set_state (_("<Image>/View/Toggle Statusbar"), GTK_WIDGET_VISIBLE (gdisp->statusarea) ? 1 : 0);
|
||||
|
||||
plug_in_set_menu_sensitivity (type);
|
||||
}
|
||||
|
@ -1752,7 +1754,7 @@ gdisplays_flush_whenever (gboolean now)
|
|||
/* this prevents multiple recursive calls to this procedure */
|
||||
if (flushing == TRUE)
|
||||
{
|
||||
g_warning ("gdisplays_flush() called recursively.");
|
||||
g_warning (_("gdisplays_flush() called recursively."));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
#include "docindex.h"
|
||||
#include "docindexif.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
idea_manager *ideas = NULL;
|
||||
static GList *idea_list = NULL; /* of gchar *. */
|
||||
static gint x = 0, y = 0, width = 0, height = 0;
|
||||
|
@ -168,13 +170,13 @@ make_idea_window( int x, int y )
|
|||
gtk_widget_show( ideas->status );
|
||||
|
||||
/* Set the GOWindow title */
|
||||
ideas->title = g_strdup( "Document Index" );
|
||||
ideas->title = g_strdup( _("Document Index") );
|
||||
|
||||
/* Set the GtkWindow title */
|
||||
gtk_window_set_title( GTK_WINDOW( ideas->window ), ideas->title );
|
||||
|
||||
/* Set the initial status message */
|
||||
gtk_statusbar_push( GTK_STATUSBAR( ideas->status ), ideas->contextid, "GTK successfully started" );
|
||||
gtk_statusbar_push( GTK_STATUSBAR( ideas->status ), ideas->contextid, _("GTK successfully started") );
|
||||
|
||||
/* Connect the signals */
|
||||
gtk_signal_connect( GTK_OBJECT( ideas->window ), "delete_event",
|
||||
|
@ -526,10 +528,10 @@ void idea_up_callback( GtkWidget *widget, gpointer data )
|
|||
{
|
||||
selected = GTK_TREE( ideas->tree )->selection->data;
|
||||
if ( idea_move( selected, -1, TRUE ) != -1 )
|
||||
gtk_statusbar_push( GTK_STATUSBAR( ideas->status ), ideas->contextid, "This file cannot be moved up." );
|
||||
gtk_statusbar_push( GTK_STATUSBAR( ideas->status ), ideas->contextid, _("This file cannot be moved up.") );
|
||||
}
|
||||
else
|
||||
gtk_statusbar_push( GTK_STATUSBAR( ideas->status ), ideas->contextid, "There's no selection to move up." );
|
||||
gtk_statusbar_push( GTK_STATUSBAR( ideas->status ), ideas->contextid, _("There's no selection to move up.") );
|
||||
}
|
||||
|
||||
void idea_down_callback( GtkWidget *widget, gpointer data )
|
||||
|
@ -539,10 +541,10 @@ void idea_down_callback( GtkWidget *widget, gpointer data )
|
|||
{
|
||||
selected = GTK_TREE( ideas->tree )->selection->data;
|
||||
if ( idea_move( selected, 1, TRUE ) != 1 )
|
||||
gtk_statusbar_push( GTK_STATUSBAR( ideas->status ), ideas->contextid, "This file cannot be moved down." );
|
||||
gtk_statusbar_push( GTK_STATUSBAR( ideas->status ), ideas->contextid, _("This file cannot be moved down.") );
|
||||
}
|
||||
else
|
||||
gtk_statusbar_push( GTK_STATUSBAR( ideas->status ), ideas->contextid, "There's no selection to move down." );
|
||||
gtk_statusbar_push( GTK_STATUSBAR( ideas->status ), ideas->contextid, _("There's no selection to move down.") );
|
||||
}
|
||||
|
||||
void idea_remove_callback( GtkWidget *widget, gpointer data )
|
||||
|
@ -554,7 +556,7 @@ void idea_remove_callback( GtkWidget *widget, gpointer data )
|
|||
idea_remove( selected );
|
||||
}
|
||||
else
|
||||
gtk_statusbar_push( GTK_STATUSBAR( ideas->status ), ideas->contextid, "There's no selection to remove." );
|
||||
gtk_statusbar_push( GTK_STATUSBAR( ideas->status ), ideas->contextid, _("There's no selection to remove.") );
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -17,6 +17,8 @@
|
|||
#include "docindex.h"
|
||||
#include "docindexif.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
void
|
||||
raise_if_match( gpointer data, gpointer user_data )
|
||||
{
|
||||
|
@ -71,27 +73,27 @@ GtkWidget *create_idea_toolbar()
|
|||
gtk_toolbar_set_button_relief( GTK_TOOLBAR( toolbar ), GTK_RELIEF_NONE );
|
||||
|
||||
gtk_toolbar_append_item( GTK_TOOLBAR( toolbar ),
|
||||
"Open", "Open a file", "Toolbar/Open",
|
||||
_("Open"), _("Open a file"), "Toolbar/Open",
|
||||
NULL,
|
||||
(GtkSignalFunc) file_open_callback, NULL);
|
||||
|
||||
gtk_toolbar_append_item( GTK_TOOLBAR( toolbar ),
|
||||
"Up", "Move the selected entry up in the index", "Toolbar/Up",
|
||||
_("Up"), _("Move the selected entry up in the index"), "Toolbar/Up",
|
||||
NULL,
|
||||
(GtkSignalFunc) idea_up_callback, NULL);
|
||||
|
||||
gtk_toolbar_append_item( GTK_TOOLBAR( toolbar ),
|
||||
"Down", "Move the selected entry down in the index", "Toolbar/Down",
|
||||
_("Down"), _("Move the selected entry down in the index"), "Toolbar/Down",
|
||||
NULL,
|
||||
(GtkSignalFunc) idea_down_callback, NULL );
|
||||
|
||||
gtk_toolbar_append_item( GTK_TOOLBAR( toolbar ),
|
||||
"Remove", "Remove the selected entry from the index", "Toolbar/Remove",
|
||||
_("Remove"), _("Remove the selected entry from the index"), "Toolbar/Remove",
|
||||
NULL,
|
||||
(GtkSignalFunc) idea_remove_callback, NULL );
|
||||
|
||||
gtk_toolbar_append_item( GTK_TOOLBAR( toolbar ),
|
||||
"Close", "Close the Document Index", "Toolbar/Hide",
|
||||
_("Close"), _("Close the Document Index"), "Toolbar/Hide",
|
||||
NULL,
|
||||
(GtkSignalFunc) idea_hide_callback, NULL );
|
||||
return toolbar;
|
||||
|
|
|
@ -25,6 +25,8 @@
|
|||
#include "global_edit.h"
|
||||
#include "edit_cmds.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
static int int_value;
|
||||
static int success;
|
||||
static Argument *return_args;
|
||||
|
@ -70,19 +72,19 @@ ProcArg edit_cut_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_DRAWABLE,
|
||||
"drawable",
|
||||
"The drawable to cut from"
|
||||
N_("the drawable to cut from")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord edit_cut_proc =
|
||||
{
|
||||
"gimp_edit_cut",
|
||||
"Cut from the specified drawable",
|
||||
"If there is a selection in the image, then the area specified by the selection is cut from the specified drawable and placed in an internal GIMP edit buffer. It can subsequently be retrieved using the 'gimp-edit-paste' command. If there is no selection, then the specified drawable will be removed and its contents stored in the internal GIMP edit buffer. The drawable MUST belong to the specified image, or an error is returned.",
|
||||
N_("Cut from the specified drawable"),
|
||||
N_("If there is a selection in the image, then the area specified by the selection is cut from the specified drawable and placed in an internal GIMP edit buffer. It can subsequently be retrieved using the 'gimp-edit-paste' command. If there is no selection, then the specified drawable will be removed and its contents stored in the internal GIMP edit buffer. The drawable MUST belong to the specified image, or an error is returned."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -140,19 +142,19 @@ ProcArg edit_copy_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_DRAWABLE,
|
||||
"drawable",
|
||||
"The drawable to copy from"
|
||||
N_("the drawable to copy from")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord edit_copy_proc =
|
||||
{
|
||||
"gimp_edit_copy",
|
||||
"Copy from the specified drawable",
|
||||
"If there is a selection in the image, then the area specified by the selection is copied from the specified drawable and placed in an internal GIMP edit buffer. It can subsequently be retrieved using the 'gimp-edit-paste' command. If there is no selection, then the specified drawable's contents will be stored in the internal GIMP edit buffer. The drawable MUST belong to the specified image, or an error is returned.",
|
||||
N_("Copy from the specified drawable"),
|
||||
N_("If there is a selection in the image, then the area specified by the selection is copied from the specified drawable and placed in an internal GIMP edit buffer. It can subsequently be retrieved using the 'gimp-edit-paste' command. If there is no selection, then the specified drawable's contents will be stored in the internal GIMP edit buffer. The drawable MUST belong to the specified image, or an error is returned."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -222,15 +224,15 @@ ProcArg edit_paste_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_DRAWABLE,
|
||||
"drawable",
|
||||
"The drawable to paste from"
|
||||
N_("the drawable to paste from")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"paste_into",
|
||||
"clear selection, or paste behind it?"
|
||||
N_("clear selection, or paste behind it?")
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -238,15 +240,15 @@ ProcArg edit_paste_out_args[] =
|
|||
{
|
||||
{ PDB_LAYER,
|
||||
"floating_sel",
|
||||
"the new floating selection"
|
||||
N_("the new floating selection")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord edit_paste_proc =
|
||||
{
|
||||
"gimp_edit_paste",
|
||||
"Paste buffer to the specified drawable",
|
||||
"This procedure pastes a copy of the internal GIMP edit buffer to the specified drawable. The GIMP edit buffer will be empty unless a call was previously made to either 'gimp-edit-cut' or 'gimp-edit-copy'. The \"paste_into\" option specifies whether to clear the current image selection, or to paste the buffer \"behind\" the selection. This allows the selection to act as a mask for the pasted buffer. Anywhere that the selection mask is non-zero, the pasted buffer will show through. The pasted buffer will be a new layer in the image which is designated as the image floating selection. If the image has a floating selection at the time of pasting, the old floating selection will be anchored to it's drawable before the new floating selection is added. This procedure returns the new floating layer. The resulting floating selection will already be attached to the specified drawable, and a subsequent call to floating_sel_attach is not needed.",
|
||||
N_("Paste buffer to the specified drawable"),
|
||||
N_("This procedure pastes a copy of the internal GIMP edit buffer to the specified drawable. The GIMP edit buffer will be empty unless a call was previously made to either 'gimp-edit-cut' or 'gimp-edit-copy'. The \"paste_into\" option specifies whether to clear the current image selection, or to paste the buffer \"behind\" the selection. This allows the selection to act as a mask for the pasted buffer. Anywhere that the selection mask is non-zero, the pasted buffer will show through. The pasted buffer will be a new layer in the image which is designated as the image floating selection. If the image has a floating selection at the time of pasting, the old floating selection will be anchored to it's drawable before the new floating selection is added. This procedure returns the new floating layer. The resulting floating selection will already be attached to the specified drawable, and a subsequent call to floating_sel_attach is not needed."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -304,19 +306,19 @@ ProcArg edit_clear_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_DRAWABLE,
|
||||
"drawable",
|
||||
"The drawable to clear from"
|
||||
N_("The drawable to clear from")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord edit_clear_proc =
|
||||
{
|
||||
"gimp_edit_clear",
|
||||
"Clear selected area of drawable",
|
||||
"This procedure clears the specified drawable. If the drawable has an alpha channel, the cleared pixels will become transparent. If the drawable does not have an alpha channel, cleared pixels will be set to the background color. This procedure only affects regions within a selection if there is a selection active.",
|
||||
N_("Clear selected area of drawable"),
|
||||
N_("This procedure clears the specified drawable. If the drawable has an alpha channel, the cleared pixels will become transparent. If the drawable does not have an alpha channel, cleared pixels will be set to the background color. This procedure only affects regions within a selection if there is a selection active."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -373,19 +375,19 @@ ProcArg edit_fill_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_DRAWABLE,
|
||||
"drawable",
|
||||
"The drawable to fill from"
|
||||
N_("the drawable to fill from")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord edit_fill_proc =
|
||||
{
|
||||
"gimp_edit_fill",
|
||||
"Fill selected area of drawable",
|
||||
"This procedure fills the specified drawable with the background color. This procedure only affects regions within a selection if there is a selection active.",
|
||||
N_("Fill selected area of drawable"),
|
||||
N_("This procedure fills the specified drawable with the background color. This procedure only affects regions within a selection if there is a selection active."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -443,19 +445,19 @@ ProcArg edit_stroke_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_DRAWABLE,
|
||||
"drawable",
|
||||
"The drawable to stroke to"
|
||||
N_("the drawable to stroke to")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord edit_stroke_proc =
|
||||
{
|
||||
"gimp_edit_stroke",
|
||||
"Stroke the current selection",
|
||||
"This procedure strokes the current selection, painting along the selection boundary with the active brush and foreground color. The paint is applied to the specified drawable regardless of the active selection.",
|
||||
N_("Stroke the current selection"),
|
||||
N_("This procedure strokes the current selection, painting along the selection boundary with the active brush and foreground color. The paint is applied to the specified drawable regardless of the active selection."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
|
|
@ -28,6 +28,8 @@
|
|||
#include "gdisplay.h"
|
||||
#include "undo.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#define EDIT_SELECT_SCROLL_LOCK 0
|
||||
#define ARROW_VELOCITY 25
|
||||
#define STATUSBAR_SIZE 128
|
||||
|
@ -149,7 +151,7 @@ init_edit_selection (Tool *tool,
|
|||
|
||||
/* initialize the statusbar display */
|
||||
edit_select.context_id = gtk_statusbar_get_context_id (GTK_STATUSBAR (gdisp->statusbar), "edit_select");
|
||||
gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), edit_select.context_id, "Move: 0, 0");
|
||||
gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), edit_select.context_id, _("Move: 0, 0"));
|
||||
|
||||
/* Create and start the selection core */
|
||||
edit_select.core = draw_core_new (edit_selection_draw);
|
||||
|
@ -294,7 +296,7 @@ edit_selection_motion (Tool *tool,
|
|||
edit_selection_snap (gdisp, mevent->x, mevent->y);
|
||||
|
||||
gtk_statusbar_pop (GTK_STATUSBAR(gdisp->statusbar), edit_select.context_id);
|
||||
g_snprintf (offset, STATUSBAR_SIZE, "Move: %d, %d",
|
||||
g_snprintf (offset, STATUSBAR_SIZE, _("Move: %d, %d"),
|
||||
(edit_select.x - edit_select.origx), (edit_select.y - edit_select.origy));
|
||||
gtk_statusbar_push (GTK_STATUSBAR(gdisp->statusbar), edit_select.context_id, offset);
|
||||
|
||||
|
|
|
@ -25,6 +25,8 @@
|
|||
/* private header file for rect_select data structure */
|
||||
#include "rect_selectP.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#define NO 0
|
||||
#define YES 1
|
||||
|
||||
|
@ -151,47 +153,47 @@ ProcArg ellipse_select_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"The image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"x",
|
||||
"x coordinate of upper-left corner of ellipse bounding box"
|
||||
N_("x coordinate of upper-left corner of ellipse bounding box")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"y",
|
||||
"y coordinate of upper-left corner of ellipse bounding box"
|
||||
N_("y coordinate of upper-left corner of ellipse bounding box")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"width",
|
||||
"the width of the ellipse: width > 0"
|
||||
N_("the width of the ellipse: width > 0")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"height",
|
||||
"the height of the ellipse: height > 0"
|
||||
N_("the height of the ellipse: height > 0")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"operation",
|
||||
"the selection operation: { ADD (0), SUB (1), REPLACE (2), INTERSECT (3) }"
|
||||
N_("the selection operation: { ADD (0), SUB (1), REPLACE (2), INTERSECT (3) }")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"antialias",
|
||||
"antialiasing On/Off"
|
||||
N_("antialiasing On/Off")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"feather",
|
||||
"feather option for selections"
|
||||
N_("feather option for selections")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"feather_radius",
|
||||
"radius for feather operation"
|
||||
N_("radius for feather operation")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord ellipse_select_proc =
|
||||
{
|
||||
"gimp_ellipse_select",
|
||||
"Create an elliptical selection over the specified image",
|
||||
"This tool creates an elliptical selection over the specified image. The elliptical region can be either added to, subtracted from, or replace the contents of the previous selection mask. If antialiasing is turned on, the edges of the elliptical region will contain intermediate values which give the appearance of a sharper, less pixelized edge. This should be set as TRUE most of the time. If the feather option is enabled, the resulting selection is blurred before combining. The blur is a gaussian blur with the specified feather radius.",
|
||||
N_("Create an elliptical selection over the specified image"),
|
||||
N_("This tool creates an elliptical selection over the specified image. The elliptical region can be either added to, subtracted from, or replace the contents of the previous selection mask. If antialiasing is turned on, the edges of the elliptical region will contain intermediate values which give the appearance of a sharper, less pixelized edge. This should be set as TRUE most of the time. If the feather option is enabled, the resulting selection is blurred before combining. The blur is a gaussian blur with the specified feather radius."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
|
|
@ -24,6 +24,8 @@
|
|||
#include "interface.h"
|
||||
#include "gimage.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
static void equalize (GImage *, GimpDrawable *, int);
|
||||
static void eq_histogram (double [3][256], unsigned char [3][256], int, double);
|
||||
static Argument * equalize_invoker (Argument *);
|
||||
|
@ -234,23 +236,23 @@ ProcArg equalize_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_DRAWABLE,
|
||||
"drawable",
|
||||
"the drawable"
|
||||
N_("the drawable")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"mask_only",
|
||||
"equalization option"
|
||||
N_("equalization option")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord equalize_proc =
|
||||
{
|
||||
"gimp_equalize",
|
||||
"Equalize the contents of the specified drawable",
|
||||
"This procedure equalizes the contents of the specified drawable. Each intensity channel is equalizeed independently. The equalizeed intensity is given as inten' = (255 - inten). Indexed color drawables are not valid for this operation. The 'mask_only' option specifies whether to adjust only the area of the image within the selection bounds, or the entire image based on the histogram of the selected area. If there is no selection, the entire image is adjusted based on the histogram for the entire image.",
|
||||
N_("Equalize the contents of the specified drawable"),
|
||||
N_("This procedure equalizes the contents of the specified drawable. Each intensity channel is equalizeed independently. The equalizeed intensity is given as inten' = (255 - inten). Indexed color drawables are not valid for this operation. The 'mask_only' option specifies whether to adjust only the area of the image within the selection bounds, or the entire image based on the histogram of the selected area. If there is no selection, the entire image is adjusted based on the histogram for the entire image."),
|
||||
"Federico Mena Quintero & Spencer Kimball & Peter Mattis",
|
||||
"Federico Mena Quintero & Spencer Kimball & Peter Mattis",
|
||||
"1996",
|
||||
|
|
36
app/eraser.c
36
app/eraser.c
|
@ -28,6 +28,8 @@
|
|||
#include "selection.h"
|
||||
#include "tools.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
/* forward function declarations */
|
||||
static void eraser_motion (PaintCore *, GimpDrawable *, gboolean, gboolean);
|
||||
static Argument * eraser_invoker (Argument *);
|
||||
|
@ -76,12 +78,12 @@ create_eraser_options (void)
|
|||
vbox = gtk_vbox_new (FALSE, 1);
|
||||
|
||||
/* the main label */
|
||||
label = gtk_label_new ("Eraser Options");
|
||||
label = gtk_label_new (_("Eraser Options"));
|
||||
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
/* the hard toggle */
|
||||
hard_toggle = gtk_check_button_new_with_label ("Hard edge");
|
||||
hard_toggle = gtk_check_button_new_with_label (_("Hard edge"));
|
||||
gtk_box_pack_start (GTK_BOX (vbox), hard_toggle, FALSE, FALSE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (hard_toggle), "toggled",
|
||||
(GtkSignalFunc) eraser_toggle_update,
|
||||
|
@ -90,7 +92,7 @@ create_eraser_options (void)
|
|||
gtk_widget_show (hard_toggle);
|
||||
|
||||
/* the incremental toggle */
|
||||
incremental_toggle = gtk_check_button_new_with_label ("Incremental");
|
||||
incremental_toggle = gtk_check_button_new_with_label (_("Incremental"));
|
||||
gtk_box_pack_start (GTK_BOX (vbox), incremental_toggle, FALSE, FALSE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (incremental_toggle), "toggled",
|
||||
(GtkSignalFunc) eraser_toggle_update,
|
||||
|
@ -202,27 +204,27 @@ ProcArg eraser_extended_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_DRAWABLE,
|
||||
"drawable",
|
||||
"the drawable"
|
||||
N_("the drawable")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"num_strokes",
|
||||
"number of stroke control points (count each coordinate as 2 points)"
|
||||
N_("number of stroke control points (count each coordinate as 2 points)")
|
||||
},
|
||||
{ PDB_FLOATARRAY,
|
||||
"strokes",
|
||||
"array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}"
|
||||
N_("array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"hardness",
|
||||
"SOFT(0) or HARD(1)"
|
||||
N_("SOFT(0) or HARD(1)")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"method",
|
||||
"CONTINUOUS(0) or INCREMENTAL(1)"
|
||||
N_("CONTINUOUS(0) or INCREMENTAL(1)")
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -230,19 +232,19 @@ ProcArg eraser_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_DRAWABLE,
|
||||
"drawable",
|
||||
"the drawable"
|
||||
N_("the drawable")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"num_strokes",
|
||||
"number of stroke control points (count each coordinate as 2 points)"
|
||||
N_("number of stroke control points (count each coordinate as 2 points)")
|
||||
},
|
||||
{ PDB_FLOATARRAY,
|
||||
"strokes",
|
||||
"array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}"
|
||||
N_("array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}")
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -250,8 +252,8 @@ ProcArg eraser_args[] =
|
|||
ProcRecord eraser_proc =
|
||||
{
|
||||
"gimp_eraser",
|
||||
"Erase using the current brush",
|
||||
"This tool erases using the current brush mask. If the specified drawable contains an alpha channel, then the erased pixels will become transparent. Otherwise, the eraser tool replaces the contents of the drawable with the background color. Like paintbrush, this tool linearly interpolates between the specified stroke coordinates.",
|
||||
N_("Erase using the current brush"),
|
||||
N_("This tool erases using the current brush mask. If the specified drawable contains an alpha channel, then the erased pixels will become transparent. Otherwise, the eraser tool replaces the contents of the drawable with the background color. Like paintbrush, this tool linearly interpolates between the specified stroke coordinates."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -272,8 +274,8 @@ ProcRecord eraser_proc =
|
|||
ProcRecord eraser_extended_proc =
|
||||
{
|
||||
"gimp_eraser_extended",
|
||||
"Erase using the current brush",
|
||||
"This tool erases using the current brush mask. If the specified drawable contains an alpha channel, then the erased pixels will become transparent. Otherwise, the eraser tool replaces the contents of the drawable with the background color. Like paintbrush, this tool linearly interpolates between the specified stroke coordinates.",
|
||||
N_("Erase using the current brush"),
|
||||
N_("This tool erases using the current brush mask. If the specified drawable contains an alpha channel, then the erased pixels will become transparent. Otherwise, the eraser tool replaces the contents of the drawable with the background color. Like paintbrush, this tool linearly interpolates between the specified stroke coordinates."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
|
|
@ -32,6 +32,8 @@
|
|||
#include "commands.h"
|
||||
#include "session.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#define ERRORS_ALL 0
|
||||
#define ERRORS_SELECTION 1
|
||||
|
||||
|
@ -133,7 +135,7 @@ error_console_file_ok_callback (GtkWidget *widget, gpointer data)
|
|||
GString *string;
|
||||
|
||||
string = g_string_new ("");
|
||||
g_string_sprintf (string, "Error opening file %s: %s", filename, g_strerror (errno));
|
||||
g_string_sprintf (string, _("Error opening file %s: %s"), filename, g_strerror (errno));
|
||||
g_message (string->str);
|
||||
g_string_free (string, TRUE);
|
||||
}
|
||||
|
@ -148,11 +150,11 @@ error_console_menu_callback (gint textscope)
|
|||
|
||||
if (!(GTK_TEXT (text)->editable.has_selection) && (textscope == ERRORS_SELECTION))
|
||||
{
|
||||
g_message ("Can't save, nothing selected!");
|
||||
g_message (_("Can't save, nothing selected!"));
|
||||
return;
|
||||
}
|
||||
|
||||
filesel = gtk_file_selection_new ("Save error log to file...");
|
||||
filesel = gtk_file_selection_new (_("Save error log to file..."));
|
||||
gtk_window_position (GTK_WINDOW (filesel), GTK_WIN_POS_MOUSE);
|
||||
gtk_window_set_wmclass (GTK_WINDOW (filesel), "save_errors", "Gimp");
|
||||
gtk_signal_connect_object (GTK_OBJECT (GTK_FILE_SELECTION (filesel)->cancel_button),
|
||||
|
@ -200,7 +202,7 @@ error_console_create_window (void)
|
|||
GtkWidget *menuitem;
|
||||
|
||||
error_console = gtk_dialog_new ();
|
||||
gtk_window_set_title (GTK_WINDOW (error_console), "GIMP Error console");
|
||||
gtk_window_set_title (GTK_WINDOW (error_console), _("GIMP Error console"));
|
||||
session_set_window_geometry (error_console, &error_console_session_info, TRUE);
|
||||
/* The next line should disappear when setting the size works in SM */
|
||||
gtk_widget_set_usize (error_console, 250, 300);
|
||||
|
@ -211,7 +213,7 @@ error_console_create_window (void)
|
|||
gtk_container_border_width (GTK_CONTAINER (GTK_DIALOG (error_console)->action_area), 2);
|
||||
|
||||
/* Action area */
|
||||
button = gtk_button_new_with_label ("Close");
|
||||
button = gtk_button_new_with_label (_("Close"));
|
||||
gtk_signal_connect (GTK_OBJECT (button), "clicked",
|
||||
(GtkSignalFunc) error_console_close_callback, NULL);
|
||||
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (error_console)->action_area), button, TRUE, TRUE, 0);
|
||||
|
@ -219,14 +221,14 @@ error_console_create_window (void)
|
|||
|
||||
menu = gtk_menu_new ();
|
||||
|
||||
menuitem = gtk_menu_item_new_with_label ("Write all errors to file...");
|
||||
menuitem = gtk_menu_item_new_with_label (_("Write all errors to file..."));
|
||||
gtk_menu_append (GTK_MENU (menu), menuitem);
|
||||
gtk_signal_connect_object (GTK_OBJECT(menuitem), "activate",
|
||||
(GtkSignalFunc) error_console_menu_callback,
|
||||
(gpointer) ERRORS_ALL);
|
||||
gtk_widget_show (menuitem);
|
||||
|
||||
menuitem = gtk_menu_item_new_with_label ("Write selection to file...");
|
||||
menuitem = gtk_menu_item_new_with_label (_("Write selection to file..."));
|
||||
gtk_menu_append (GTK_MENU (menu), menuitem);
|
||||
gtk_signal_connect_object (GTK_OBJECT(menuitem), "activate",
|
||||
(GtkSignalFunc) error_console_menu_callback,
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
#include "tile_manager_pvt.h"
|
||||
#include "gdisplay.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
typedef struct {
|
||||
GtkWidget *dlg;
|
||||
GtkWidget *height_spinbutton;
|
||||
|
@ -117,7 +119,7 @@ file_new_ok_callback (GtkWidget *widget,
|
|||
|
||||
/* Make the background (or first) layer */
|
||||
layer = layer_new (gimage, gimage->width, gimage->height,
|
||||
type, "Background", OPAQUE_OPACITY, NORMAL);
|
||||
type, _("Background"), OPAQUE_OPACITY, NORMAL);
|
||||
|
||||
if (layer) {
|
||||
/* add the new layer to the gimage */
|
||||
|
@ -472,7 +474,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
|
||||
vals->dlg = gtk_dialog_new ();
|
||||
gtk_window_set_wmclass (GTK_WINDOW (vals->dlg), "new_image", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (vals->dlg), "New Image");
|
||||
gtk_window_set_title (GTK_WINDOW (vals->dlg), _("New Image"));
|
||||
gtk_window_position (GTK_WINDOW (vals->dlg), GTK_WIN_POS_MOUSE);
|
||||
|
||||
/* handle the wm close signal */
|
||||
|
@ -482,7 +484,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
|
||||
gtk_container_border_width (GTK_CONTAINER (GTK_DIALOG (vals->dlg)->action_area), 2);
|
||||
|
||||
button = gtk_button_new_with_label ("OK");
|
||||
button = gtk_button_new_with_label (_("OK"));
|
||||
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
|
||||
gtk_signal_connect (GTK_OBJECT (button), "clicked",
|
||||
(GtkSignalFunc) file_new_ok_callback,
|
||||
|
@ -492,7 +494,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_widget_grab_default (button);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_button_new_with_label ("Cancel");
|
||||
button = gtk_button_new_with_label (_("Cancel"));
|
||||
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
|
||||
gtk_signal_connect (GTK_OBJECT (button), "clicked",
|
||||
(GtkSignalFunc) file_new_cancel_callback,
|
||||
|
@ -515,13 +517,13 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_widget_show (table);
|
||||
|
||||
/* label for top of table, Width */
|
||||
label = gtk_label_new ("Width");
|
||||
label = gtk_label_new (_("Width"));
|
||||
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1,
|
||||
GTK_FILL, GTK_FILL, 0, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
/* Label for top of table, Height */
|
||||
label = gtk_label_new ("Height");
|
||||
label = gtk_label_new (_("Height"));
|
||||
gtk_table_attach (GTK_TABLE (table), label, 1, 2, 0, 1,
|
||||
GTK_FILL, GTK_FILL, 0, 0);
|
||||
gtk_widget_show (label);
|
||||
|
@ -584,7 +586,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_widget_show (vals->height_units_spinbutton);
|
||||
|
||||
/* Label for right hand side of pixel size boxes */
|
||||
label = gtk_label_new ("Pixels");
|
||||
label = gtk_label_new (_("Pixels"));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_table_attach (GTK_TABLE (table), label , 2, 3, 1, 2,
|
||||
GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0);
|
||||
|
@ -592,12 +594,12 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
|
||||
/* menu and menu items for the units pop-up menu for the units entries */
|
||||
menu = gtk_menu_new();
|
||||
menuitem = gtk_menu_item_new_with_label ("inches");
|
||||
menuitem = gtk_menu_item_new_with_label (_("inches"));
|
||||
gtk_menu_append (GTK_MENU (menu), menuitem);
|
||||
gtk_signal_connect (GTK_OBJECT (menuitem), "activate",
|
||||
(GtkSignalFunc) file_new_units_inch_menu_callback, vals);
|
||||
gtk_widget_show(menuitem);
|
||||
menuitem = gtk_menu_item_new_with_label ("cm");
|
||||
menuitem = gtk_menu_item_new_with_label (_("cm"));
|
||||
gtk_menu_append (GTK_MENU (menu), menuitem);
|
||||
gtk_signal_connect (GTK_OBJECT (menuitem), "activate",
|
||||
(GtkSignalFunc) file_new_units_cm_menu_callback, vals);
|
||||
|
@ -610,7 +612,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_widget_show(optionmenu);
|
||||
|
||||
/* resolution frame */
|
||||
frame = gtk_frame_new ("Resolution");
|
||||
frame = gtk_frame_new (_("Resolution"));
|
||||
gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE, 0);
|
||||
gtk_widget_show (frame);
|
||||
|
||||
|
@ -633,7 +635,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_widget_show (vals->resolution_spinbutton);
|
||||
|
||||
/* resolution label */
|
||||
label =gtk_label_new (" pixels per ");
|
||||
label =gtk_label_new (_(" pixels per "));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, TRUE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
@ -645,12 +647,12 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
*/
|
||||
|
||||
/* probabaly should be more general here */
|
||||
menuitem = gtk_menu_item_new_with_label ("inch");
|
||||
menuitem = gtk_menu_item_new_with_label (_("inch"));
|
||||
gtk_menu_append (GTK_MENU (menu), menuitem);
|
||||
gtk_signal_connect (GTK_OBJECT (menuitem), "activate",
|
||||
(GtkSignalFunc) file_new_res_units_inch_callback, vals);
|
||||
gtk_widget_show(menuitem);
|
||||
menuitem = gtk_menu_item_new_with_label ("cm");
|
||||
menuitem = gtk_menu_item_new_with_label (_("cm"));
|
||||
gtk_signal_connect (GTK_OBJECT (menuitem), "activate",
|
||||
(GtkSignalFunc) file_new_res_units_cm_callback, vals);
|
||||
gtk_menu_append (GTK_MENU (menu), menuitem);
|
||||
|
@ -669,7 +671,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_widget_show(hbox);
|
||||
|
||||
/* frame for Image Type */
|
||||
frame = gtk_frame_new ("Image Type");
|
||||
frame = gtk_frame_new (_("Image Type"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0);
|
||||
gtk_widget_show (frame);
|
||||
|
||||
|
@ -679,7 +681,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_container_add (GTK_CONTAINER (frame), radio_box);
|
||||
gtk_widget_show (radio_box);
|
||||
|
||||
button = gtk_radio_button_new_with_label (NULL, "RGB");
|
||||
button = gtk_radio_button_new_with_label (NULL, _("RGB"));
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (button));
|
||||
gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0);
|
||||
gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) RGB);
|
||||
|
@ -690,7 +692,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_radio_button_new_with_label (group, "Grayscale");
|
||||
button = gtk_radio_button_new_with_label (group, _("Grayscale"));
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (button));
|
||||
gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0);
|
||||
gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) GRAY);
|
||||
|
@ -703,7 +705,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
|
||||
|
||||
/* frame for fill type */
|
||||
frame = gtk_frame_new ("Fill Type");
|
||||
frame = gtk_frame_new (_("Fill Type"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0);
|
||||
gtk_widget_show (frame);
|
||||
|
||||
|
@ -712,7 +714,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_container_add (GTK_CONTAINER (frame), radio_box);
|
||||
gtk_widget_show (radio_box);
|
||||
|
||||
button = gtk_radio_button_new_with_label (NULL, "Foreground");
|
||||
button = gtk_radio_button_new_with_label (NULL, _("Foreground"));
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (button));
|
||||
gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0);
|
||||
gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) FOREGROUND_FILL);
|
||||
|
@ -723,7 +725,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_radio_button_new_with_label (group, "Background");
|
||||
button = gtk_radio_button_new_with_label (group, _("Background"));
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (button));
|
||||
gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0);
|
||||
gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) BACKGROUND_FILL);
|
||||
|
@ -734,7 +736,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_radio_button_new_with_label (group, "White");
|
||||
button = gtk_radio_button_new_with_label (group, _("White"));
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (button));
|
||||
gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0);
|
||||
gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) WHITE_FILL);
|
||||
|
@ -745,7 +747,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_radio_button_new_with_label (group, "Transparent");
|
||||
button = gtk_radio_button_new_with_label (group, _("Transparent"));
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (button));
|
||||
gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0);
|
||||
gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) TRANSPARENT_FILL);
|
||||
|
|
130
app/fileops.c
130
app/fileops.c
|
@ -39,6 +39,8 @@
|
|||
#include "gimprc.h"
|
||||
#include "docindex.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
typedef struct _OverwriteBox OverwriteBox;
|
||||
|
||||
struct _OverwriteBox
|
||||
|
@ -112,21 +114,21 @@ static GtkWidget *save_options = NULL;
|
|||
*/
|
||||
static ProcArg file_load_args[] =
|
||||
{
|
||||
{ PDB_INT32, "run_mode", "Interactive, non-interactive." },
|
||||
{ PDB_STRING, "filename", "The name of the file to load." },
|
||||
{ PDB_STRING, "raw_filename", "The name entered." },
|
||||
{ PDB_INT32, "run_mode", N_("Interactive, non-interactive.") },
|
||||
{ PDB_STRING, "filename", N_("The name of the file to load.") },
|
||||
{ PDB_STRING, "raw_filename", N_("The name entered.") },
|
||||
};
|
||||
|
||||
static ProcArg file_load_return_vals[] =
|
||||
{
|
||||
{ PDB_IMAGE, "image", "Output image." },
|
||||
{ PDB_IMAGE, "image", N_("Output image.") },
|
||||
};
|
||||
|
||||
static ProcRecord file_load_proc =
|
||||
{
|
||||
"gimp_file_load",
|
||||
"Loads a file by extension",
|
||||
"This procedure invokes the correct file load handler according to the file's extension and/or prefix. The name of the file to load is typically a full pathname, and the name entered is what the user actually typed before prepending a directory path. The reason for this is that if the user types http://www.xcf/~gimp he wants to fetch a URL, and the full pathname will not look like a URL.",
|
||||
N_("Loads a file by extension"),
|
||||
N_("This procedure invokes the correct file load handler according to the file's extension and/or prefix. The name of the file to load is typically a full pathname, and the name entered is what the user actually typed before prepending a directory path. The reason for this is that if the user types http://www.xcf/~gimp he wants to fetch a URL, and the full pathname will not look like a URL."),
|
||||
"Josh MacDonald",
|
||||
"Josh MacDonald",
|
||||
"1997",
|
||||
|
@ -142,18 +144,18 @@ static ProcRecord file_load_proc =
|
|||
*/
|
||||
static ProcArg file_save_args[] =
|
||||
{
|
||||
{ PDB_INT32, "run_mode", "Interactive, non-interactive" },
|
||||
{ PDB_IMAGE, "image", "Input image" },
|
||||
{ PDB_DRAWABLE, "drawable", "Drawable to save" },
|
||||
{ PDB_STRING, "filename", "The name of the file to save the image in" },
|
||||
{ PDB_STRING, "raw_filename", "The name of the file to save the image in" }
|
||||
{ PDB_INT32, "run_mode", N_("Interactive, non-interactive") },
|
||||
{ PDB_IMAGE, "image", N_("Input image") },
|
||||
{ PDB_DRAWABLE, "drawable", N_("Drawable to save") },
|
||||
{ PDB_STRING, "filename", N_("The name of the file to save the image in") },
|
||||
{ PDB_STRING, "raw_filename", N_("The name of the file to save the image in") }
|
||||
};
|
||||
|
||||
static ProcRecord file_save_proc =
|
||||
{
|
||||
"gimp_file_save",
|
||||
"Saves a file by extension",
|
||||
"This procedure invokes the correct file save handler according to the file's extension and/or prefix. The name of the file to save is typically a full pathname, and the name entered is what the user actually typed before prepending a directory path. The reason for this is that if the user types http://www.xcf/~gimp he wants to fetch a URL, and the full pathname will not look like a URL.",
|
||||
N_("Saves a file by extension"),
|
||||
N_("This procedure invokes the correct file save handler according to the file's extension and/or prefix. The name of the file to save is typically a full pathname, and the name entered is what the user actually typed before prepending a directory path. The reason for this is that if the user types http://www.xcf/~gimp he wants to fetch a URL, and the full pathname will not look like a URL."),
|
||||
"Josh MacDonald",
|
||||
"Josh MacDonald",
|
||||
"1997",
|
||||
|
@ -170,19 +172,19 @@ static ProcRecord file_save_proc =
|
|||
|
||||
static ProcArg file_temp_name_args[] =
|
||||
{
|
||||
{ PDB_STRING, "extension", "The extension the file will have." }
|
||||
{ PDB_STRING, "extension", N_("The extension the file will have.") }
|
||||
};
|
||||
|
||||
static ProcArg file_temp_name_values[] =
|
||||
{
|
||||
{ PDB_STRING, "name", "The temp name." }
|
||||
{ PDB_STRING, "name", N_("The temp name.") }
|
||||
};
|
||||
|
||||
static ProcRecord file_temp_name_proc =
|
||||
{
|
||||
"gimp_temp_name",
|
||||
"Generates a unique filename.",
|
||||
"Generates a unique filename using the temp path supplied in the user's gimprc.",
|
||||
N_("Generates a unique filename."),
|
||||
N_("Generates a unique filename using the temp path supplied in the user's gimprc."),
|
||||
"Josh MacDonald",
|
||||
"Josh MacDonald",
|
||||
"1997",
|
||||
|
@ -201,24 +203,24 @@ static ProcArg register_magic_load_handler_args[] =
|
|||
{
|
||||
{ PDB_STRING,
|
||||
"procedure_name",
|
||||
"the name of the procedure to be used for loading" },
|
||||
N_("the name of the procedure to be used for loading") },
|
||||
{ PDB_STRING,
|
||||
"extensions",
|
||||
"comma separated list of extensions this handler can load (ie. \"jpeg,jpg\")" },
|
||||
N_("comma separated list of extensions this handler can load (ie. \"jpeg,jpg\")") },
|
||||
{ PDB_STRING,
|
||||
"prefixes",
|
||||
"comma separated list of prefixes this handler can load (ie. \"http:,ftp:\")" },
|
||||
N_("comma separated list of prefixes this handler can load (ie. \"http:,ftp:\")") },
|
||||
{ PDB_STRING,
|
||||
"magics",
|
||||
"comma separated list of magic file information this handler can load (ie. \"0,string,GIF\")" },
|
||||
N_("comma separated list of magic file information this handler can load (ie. \"0,string,GIF\")") },
|
||||
};
|
||||
|
||||
static ProcRecord register_magic_load_handler_proc =
|
||||
{
|
||||
"gimp_register_magic_load_handler",
|
||||
"Registers a file load handler procedure",
|
||||
"Registers a procedural database procedure to be called to load files of a \
|
||||
particular file format using magic file information.",
|
||||
N_("Registers a file load handler procedure"),
|
||||
N_("Registers a procedural database procedure to be called to load files of a \
|
||||
particular file format using magic file information."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -237,20 +239,20 @@ static ProcArg register_load_handler_args[] =
|
|||
{
|
||||
{ PDB_STRING,
|
||||
"procedure_name",
|
||||
"the name of the procedure to be used for loading" },
|
||||
N_("the name of the procedure to be used for loading") },
|
||||
{ PDB_STRING,
|
||||
"extensions",
|
||||
"comma separated list of extensions this handler can load (ie. \"jpeg,jpg\")" },
|
||||
N_("comma separated list of extensions this handler can load (ie. \"jpeg,jpg\")") },
|
||||
{ PDB_STRING,
|
||||
"prefixes",
|
||||
"comma separated list of prefixes this handler can load (ie. \"http:,ftp:\")" },
|
||||
N_("comma separated list of prefixes this handler can load (ie. \"http:,ftp:\")") },
|
||||
};
|
||||
|
||||
static ProcRecord register_load_handler_proc =
|
||||
{
|
||||
"gimp_register_load_handler",
|
||||
"Registers a file load handler procedure",
|
||||
"Registers a procedural database procedure to be called to load files of a particular file format.",
|
||||
N_("Registers a file load handler procedure"),
|
||||
N_("Registers a procedural database procedure to be called to load files of a particular file format."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -269,20 +271,20 @@ static ProcArg register_save_handler_args[] =
|
|||
{
|
||||
{ PDB_STRING,
|
||||
"procedure_name",
|
||||
"the name of the procedure to be used for saving" },
|
||||
N_("the name of the procedure to be used for saving") },
|
||||
{ PDB_STRING,
|
||||
"extensions",
|
||||
"comma separated list of extensions this handler can save (ie. \"jpeg,jpg\")" },
|
||||
N_("comma separated list of extensions this handler can save (ie. \"jpeg,jpg\")") },
|
||||
{ PDB_STRING,
|
||||
"prefixes",
|
||||
"comma separated list of prefixes this handler can save (ie. \"http:,ftp:\")" },
|
||||
N_("comma separated list of prefixes this handler can save (ie. \"http:,ftp:\")") },
|
||||
};
|
||||
|
||||
static ProcRecord register_save_handler_proc =
|
||||
{
|
||||
"gimp_register_save_handler",
|
||||
"Registers a file save handler procedure",
|
||||
"Registers a procedural database procedure to be called to save files in a particular file format.",
|
||||
N_("Registers a file save handler procedure"),
|
||||
N_("Registers a procedural database procedure to be called to save files in a particular file format."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -401,7 +403,7 @@ register_magic_load_handler_invoker (Argument *args)
|
|||
(proc->args[2].arg_type != PDB_STRING) ||
|
||||
(proc->values[0].arg_type != PDB_IMAGE)))
|
||||
{
|
||||
g_message ("load handler \"%s\" does not take the standard load handler args",
|
||||
g_message (_("load handler \"%s\" does not take the standard load handler args"),
|
||||
(char*) args[0].value.pdb_pointer);
|
||||
goto done;
|
||||
}
|
||||
|
@ -413,7 +415,7 @@ register_magic_load_handler_invoker (Argument *args)
|
|||
|
||||
if (!file_proc)
|
||||
{
|
||||
g_message ("attempt to register non-existant load handler \"%s\"",
|
||||
g_message (_("attempt to register non-existant load handler \"%s\""),
|
||||
(char*) args[0].value.pdb_pointer);
|
||||
goto done;
|
||||
}
|
||||
|
@ -447,7 +449,7 @@ register_save_handler_invoker (Argument *args)
|
|||
(proc->args[3].arg_type != PDB_STRING) ||
|
||||
(proc->args[4].arg_type != PDB_STRING)))
|
||||
{
|
||||
g_message ("save handler \"%s\" does not take the standard save handler args",
|
||||
g_message (_("save handler \"%s\" does not take the standard save handler args"),
|
||||
(char*) args[0].value.pdb_pointer);
|
||||
goto done;
|
||||
}
|
||||
|
@ -459,7 +461,7 @@ register_save_handler_invoker (Argument *args)
|
|||
|
||||
if (!file_proc)
|
||||
{
|
||||
g_message ("attempt to register non-existant save handler \"%s\"",
|
||||
g_message (_("attempt to register non-existant save handler \"%s\""),
|
||||
(char*) args[0].value.pdb_pointer);
|
||||
goto done;
|
||||
}
|
||||
|
@ -486,7 +488,7 @@ file_open_callback (GtkWidget *w,
|
|||
|
||||
if (!fileload)
|
||||
{
|
||||
fileload = gtk_file_selection_new ("Load Image");
|
||||
fileload = gtk_file_selection_new (_("Load Image"));
|
||||
gtk_window_position (GTK_WINDOW (fileload), GTK_WIN_POS_MOUSE);
|
||||
gtk_window_set_wmclass (GTK_WINDOW (fileload), "load_image", "Gimp");
|
||||
gtk_signal_connect_object (GTK_OBJECT (GTK_FILE_SELECTION (fileload)->cancel_button),
|
||||
|
@ -511,14 +513,14 @@ file_open_callback (GtkWidget *w,
|
|||
return;
|
||||
|
||||
gtk_file_selection_set_filename (GTK_FILE_SELECTION(fileload), "./");
|
||||
gtk_window_set_title (GTK_WINDOW (fileload), "Load Image");
|
||||
gtk_window_set_title (GTK_WINDOW (fileload), _("Load Image"));
|
||||
}
|
||||
|
||||
gdisplay = gdisplay_active ();
|
||||
|
||||
if (!open_options)
|
||||
{
|
||||
open_options = gtk_frame_new ("Open Options");
|
||||
open_options = gtk_frame_new (_("Open Options"));
|
||||
gtk_frame_set_shadow_type (GTK_FRAME (open_options), GTK_SHADOW_ETCHED_IN);
|
||||
|
||||
hbox = gtk_hbox_new (FALSE, 1);
|
||||
|
@ -526,7 +528,7 @@ file_open_callback (GtkWidget *w,
|
|||
gtk_container_add (GTK_CONTAINER (open_options), hbox);
|
||||
gtk_widget_show (hbox);
|
||||
|
||||
label = gtk_label_new ("Determine file type:");
|
||||
label = gtk_label_new (_("Determine file type:"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
@ -579,7 +581,7 @@ file_save_as_callback (GtkWidget *w,
|
|||
|
||||
if (!filesave)
|
||||
{
|
||||
filesave = gtk_file_selection_new ("Save Image");
|
||||
filesave = gtk_file_selection_new (_("Save Image"));
|
||||
gtk_window_set_wmclass (GTK_WINDOW (filesave), "save_image", "Gimp");
|
||||
gtk_window_position (GTK_WINDOW (filesave), GTK_WIN_POS_MOUSE);
|
||||
gtk_signal_connect_object (GTK_OBJECT (GTK_FILE_SELECTION (filesave)->cancel_button),
|
||||
|
@ -600,7 +602,7 @@ file_save_as_callback (GtkWidget *w,
|
|||
return;
|
||||
|
||||
gtk_file_selection_set_filename (GTK_FILE_SELECTION(filesave), "./");
|
||||
gtk_window_set_title (GTK_WINDOW (filesave), "Save Image");
|
||||
gtk_window_set_title (GTK_WINDOW (filesave), _("Save Image"));
|
||||
}
|
||||
|
||||
gdisplay = gdisplay_active ();
|
||||
|
@ -608,7 +610,7 @@ file_save_as_callback (GtkWidget *w,
|
|||
|
||||
if (!save_options)
|
||||
{
|
||||
save_options = gtk_frame_new ("Save Options");
|
||||
save_options = gtk_frame_new (_("Save Options"));
|
||||
gtk_frame_set_shadow_type (GTK_FRAME (save_options), GTK_SHADOW_ETCHED_IN);
|
||||
|
||||
hbox = gtk_hbox_new (FALSE, 1);
|
||||
|
@ -616,7 +618,7 @@ file_save_as_callback (GtkWidget *w,
|
|||
gtk_container_add (GTK_CONTAINER (save_options), hbox);
|
||||
gtk_widget_show (hbox);
|
||||
|
||||
label = gtk_label_new ("Determine file type:");
|
||||
label = gtk_label_new (_("Determine file type:"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
@ -875,7 +877,7 @@ file_open_ok_callback (GtkWidget *w,
|
|||
}
|
||||
else
|
||||
{
|
||||
s = g_string_new ("Open failed: ");
|
||||
s = g_string_new (_("Open failed: "));
|
||||
g_string_append (s, raw_filename);
|
||||
FILE_ERR_MESSAGE (s->str);
|
||||
g_string_free (s, TRUE);
|
||||
|
@ -963,7 +965,7 @@ file_open_ok_callback (GtkWidget *w,
|
|||
}
|
||||
else
|
||||
{
|
||||
s = g_string_new ("Open failed: ");
|
||||
s = g_string_new (_("Open failed: "));
|
||||
g_string_append (s, temp);
|
||||
FILE_ERR_MESSAGE (s->str);
|
||||
g_string_free (s, TRUE);
|
||||
|
@ -1029,7 +1031,7 @@ file_save_ok_callback (GtkWidget *w,
|
|||
else
|
||||
{
|
||||
s = g_string_new (NULL);
|
||||
g_string_sprintf (s, "%s is an irregular file (%s)", raw_filename, g_strerror(errno));
|
||||
g_string_sprintf (s, _("%s is an irregular file (%s)"), raw_filename, g_strerror(errno));
|
||||
}
|
||||
} else {
|
||||
gtk_widget_set_sensitive (GTK_WIDGET (fs), FALSE);
|
||||
|
@ -1041,7 +1043,7 @@ file_save_ok_callback (GtkWidget *w,
|
|||
}
|
||||
else
|
||||
{
|
||||
s = g_string_new ("Save failed: ");
|
||||
s = g_string_new (_("Save failed: "));
|
||||
g_string_append (s, raw_filename);
|
||||
}
|
||||
}
|
||||
|
@ -1053,10 +1055,10 @@ file_save_ok_callback (GtkWidget *w,
|
|||
static void
|
||||
file_dialog_show (GtkWidget *filesel)
|
||||
{
|
||||
menus_set_sensitive ("<Toolbox>/File/Open", FALSE);
|
||||
menus_set_sensitive ("<Image>/File/Open", FALSE);
|
||||
menus_set_sensitive ("<Image>/File/Save", FALSE);
|
||||
menus_set_sensitive ("<Image>/File/Save as", FALSE);
|
||||
menus_set_sensitive (_("<Toolbox>/File/Open"), FALSE);
|
||||
menus_set_sensitive (_("<Image>/File/Open"), FALSE);
|
||||
menus_set_sensitive (_("<Image>/File/Save"), FALSE);
|
||||
menus_set_sensitive (_("<Image>/File/Save as"), FALSE);
|
||||
|
||||
gtk_widget_show (filesel);
|
||||
}
|
||||
|
@ -1066,10 +1068,10 @@ file_dialog_hide (GtkWidget *filesel)
|
|||
{
|
||||
gtk_widget_hide (filesel);
|
||||
|
||||
menus_set_sensitive ("<Toolbox>/File/Open", TRUE);
|
||||
menus_set_sensitive ("<Image>/File/Open", TRUE);
|
||||
menus_set_sensitive ("<Image>/File/Save", TRUE);
|
||||
menus_set_sensitive ("<Image>/File/Save as", TRUE);
|
||||
menus_set_sensitive (_("<Toolbox>/File/Open"), TRUE);
|
||||
menus_set_sensitive (_("<Image>/File/Open"), TRUE);
|
||||
menus_set_sensitive (_("<Image>/File/Save"), TRUE);
|
||||
menus_set_sensitive (_("<Image>/File/Save as"), TRUE);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
@ -1079,8 +1081,8 @@ file_overwrite (char *filename, char* raw_filename)
|
|||
{
|
||||
static ActionAreaItem obox_action_items[2] =
|
||||
{
|
||||
{ "Yes", file_overwrite_yes_callback, NULL, NULL },
|
||||
{ "No", file_overwrite_no_callback, NULL, NULL }
|
||||
{ N_("Yes"), file_overwrite_yes_callback, NULL, NULL },
|
||||
{ N_("No"), file_overwrite_no_callback, NULL, NULL }
|
||||
};
|
||||
|
||||
OverwriteBox *overwrite_box;
|
||||
|
@ -1089,14 +1091,14 @@ file_overwrite (char *filename, char* raw_filename)
|
|||
char *overwrite_text;
|
||||
|
||||
overwrite_box = (OverwriteBox *) g_malloc (sizeof (OverwriteBox));
|
||||
overwrite_text = (char *) g_malloc (strlen (" exists, overwrite?") + strlen (filename) + 1);
|
||||
sprintf (overwrite_text, "%s exists, overwrite?", filename);
|
||||
overwrite_text = (char *) g_malloc (strlen (_(" exists, overwrite?")) + strlen (filename) + 1);
|
||||
sprintf (overwrite_text, _("%s exists, overwrite?"), filename);
|
||||
|
||||
overwrite_box->full_filename = filename;
|
||||
overwrite_box->raw_filename = raw_filename;
|
||||
overwrite_box->obox = gtk_dialog_new ();
|
||||
gtk_window_set_wmclass (GTK_WINDOW (overwrite_box->obox), "file_exists", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (overwrite_box->obox), "File Exists!");
|
||||
gtk_window_set_title (GTK_WINDOW (overwrite_box->obox), _("File Exists!"));
|
||||
gtk_window_position (GTK_WINDOW (overwrite_box->obox), GTK_WIN_POS_MOUSE);
|
||||
|
||||
gtk_signal_connect (GTK_OBJECT (overwrite_box->obox),
|
||||
|
@ -1145,7 +1147,7 @@ file_overwrite_yes_callback (GtkWidget *w,
|
|||
GtkWidget *fs;
|
||||
|
||||
fs = filesave;
|
||||
s = g_string_new ("Save failed: ");
|
||||
s = g_string_new (_("Save failed: "));
|
||||
g_string_append (s, overwrite_box->raw_filename);
|
||||
FILE_ERR_MESSAGE (s->str);
|
||||
g_string_free (s, TRUE);
|
||||
|
|
|
@ -26,6 +26,8 @@
|
|||
#include "undo.h"
|
||||
#include "gimage.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#include "tile_manager_pvt.h" /* ick. */
|
||||
|
||||
#define FLIP 0
|
||||
|
@ -68,8 +70,8 @@ create_flip_options (void)
|
|||
int i;
|
||||
char *button_names[2] =
|
||||
{
|
||||
"Horizontal",
|
||||
"Vertical",
|
||||
N_("Horizontal"),
|
||||
N_("Vertical"),
|
||||
};
|
||||
|
||||
/* the new options structure */
|
||||
|
@ -80,7 +82,7 @@ create_flip_options (void)
|
|||
vbox = gtk_vbox_new (FALSE, 1);
|
||||
|
||||
/* the main label */
|
||||
label = gtk_label_new ("Flip Tool Options");
|
||||
label = gtk_label_new (_("Flip Tool Options"));
|
||||
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
@ -332,15 +334,15 @@ ProcArg flip_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_DRAWABLE,
|
||||
"drawable",
|
||||
"the affected drawable"
|
||||
N_("the affected drawable")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"flip_type",
|
||||
"Type of flip: { HORIZONTAL (0), VERTICAL (1) }"
|
||||
N_("Type of flip: { HORIZONTAL (0), VERTICAL (1) }")
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -348,15 +350,15 @@ ProcArg flip_out_args[] =
|
|||
{
|
||||
{ PDB_DRAWABLE,
|
||||
"drawable",
|
||||
"the flipped drawable"
|
||||
N_("the flipped drawable")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord flip_proc =
|
||||
{
|
||||
"gimp_flip",
|
||||
"Flip the specified drawable about its center either vertically or horizontally",
|
||||
"This tool flips the specified drawable if no selection exists. If a selection exists, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then flipd by the specified amount. The return value is the ID of the flipped drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and flipd drawable. The flip type parameter indicates whether the flip will be applied horizontally or vertically.",
|
||||
N_("Flip the specified drawable about its center either vertically or horizontally"),
|
||||
N_("This tool flips the specified drawable if no selection exists. If a selection exists, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then flipd by the specified amount. The return value is the ID of the flipped drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and flipd drawable. The flip type parameter indicates whether the flip will be applied horizontally or vertically."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
|
|
@ -31,6 +31,8 @@
|
|||
#include "paint_funcs.h"
|
||||
#include "undo.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#include "layer_pvt.h"
|
||||
#include "tile_manager_pvt.h" /* ick. */
|
||||
|
||||
|
@ -103,7 +105,7 @@ floating_sel_anchor (Layer *layer)
|
|||
return;
|
||||
if (! layer_is_floating_sel (layer))
|
||||
{
|
||||
g_message ("Cannot anchor this layer because\nit is not a floating selection.");
|
||||
g_message (_("Cannot anchor this layer because\nit is not a floating selection."));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -169,9 +171,9 @@ floating_sel_to_layer (Layer *layer)
|
|||
if (drawable_channel (layer->fs.drawable) ||
|
||||
drawable_layer_mask (layer->fs.drawable))
|
||||
{
|
||||
g_message ("Cannot create a new layer from the floating\n"
|
||||
g_message (_("Cannot create a new layer from the floating\n"
|
||||
"selection because it belongs to a\n"
|
||||
"layer mask or channel.");
|
||||
"layer mask or channel."));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,8 @@
|
|||
#include "floating_sel.h"
|
||||
#include "floating_sel_cmds.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
static int int_value;
|
||||
static int success;
|
||||
|
||||
|
@ -59,15 +61,15 @@ ProcArg floating_sel_remove_args[] =
|
|||
{
|
||||
{ PDB_LAYER,
|
||||
"floating_sel",
|
||||
"the floating selection"
|
||||
N_("the floating selection")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord floating_sel_remove_proc =
|
||||
{
|
||||
"gimp_floating_sel_remove",
|
||||
"Remove the specified floating selection from its associated drawable",
|
||||
"This procedure removes the floating selection completely, without any side effects. The associated drawable is then set to active.",
|
||||
N_("Remove the specified floating selection from its associated drawable"),
|
||||
N_("This procedure removes the floating selection completely, without any side effects. The associated drawable is then set to active."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -117,15 +119,15 @@ ProcArg floating_sel_anchor_args[] =
|
|||
{
|
||||
{ PDB_LAYER,
|
||||
"floating_sel",
|
||||
"the floating selection"
|
||||
N_("the floating selection")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord floating_sel_anchor_proc =
|
||||
{
|
||||
"gimp_floating_sel_anchor",
|
||||
"Anchor the specified floating selection to its associated drawable",
|
||||
"This procedure anchors the floating selection to its associated drawable. This is similar to merging with a merge type of ClipToBottomLayer. The floating selection layer is no longer valid after this operation.",
|
||||
N_("Anchor the specified floating selection to its associated drawable"),
|
||||
N_("This procedure anchors the floating selection to its associated drawable. This is similar to merging with a merge type of ClipToBottomLayer. The floating selection layer is no longer valid after this operation."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -175,15 +177,15 @@ ProcArg floating_sel_to_layer_args[] =
|
|||
{
|
||||
{ PDB_LAYER,
|
||||
"floating_sel",
|
||||
"the floating selection"
|
||||
N_("the floating selection")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord floating_sel_to_layer_proc =
|
||||
{
|
||||
"gimp_floating_sel_to_layer",
|
||||
"Transforms the specified floating selection into a layer",
|
||||
"This procedure transforms the specified floating selection into a layer with the same offsets and extents. The composited image will look precisely the same, but the floating selection layer will no longer be clipped to the extents of the drawable it was attached to. The floating selection will become the active layer. This procedure will not work if the floating selection has a different base type from the underlying image. This might be the case if the floating selection is above an auxillary channel or a layer mask.",
|
||||
N_("Transforms the specified floating selection into a layer"),
|
||||
N_("This procedure transforms the specified floating selection into a layer with the same offsets and extents. The composited image will look precisely the same, but the floating selection layer will no longer be clipped to the extents of the drawable it was attached to. The floating selection will become the active layer. This procedure will not work if the floating selection has a different base type from the underlying image. This might be the case if the floating selection is above an auxillary channel or a layer mask."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
|
|
@ -26,6 +26,8 @@
|
|||
#include "gdisplay.h"
|
||||
#include "rect_select.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
typedef struct _free_select FreeSelect;
|
||||
|
||||
struct _free_select
|
||||
|
@ -67,7 +69,7 @@ add_point (int num_pts, int x, int y)
|
|||
global_pts = (GdkPoint *) g_realloc ((void *) global_pts, sizeof (GdkPoint) * max_segs);
|
||||
|
||||
if (!global_pts)
|
||||
fatal_error ("Unable to reallocate points array in free_select.");
|
||||
fatal_error (_("Unable to reallocate points array in free_select."));
|
||||
}
|
||||
|
||||
global_pts[num_pts].x = x;
|
||||
|
@ -212,7 +214,7 @@ scan_convert (GimpImage* gimage, int num_pts, FreeSelectPoint *pts,
|
|||
x = (long) list->data;
|
||||
list = g_slist_next(list);
|
||||
if (!list)
|
||||
g_message ("Cannot properly scanline convert polygon!\n");
|
||||
g_message (_("Cannot properly scanline convert polygon!\n"));
|
||||
else
|
||||
{
|
||||
/* bounds checking */
|
||||
|
@ -489,39 +491,39 @@ ProcArg free_select_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"The image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"num_pts",
|
||||
"number of points (count 1 coordinate as two points)"
|
||||
N_("number of points (count 1 coordinate as two points)")
|
||||
},
|
||||
{ PDB_FLOATARRAY,
|
||||
"segs",
|
||||
"array of points: { p1.x, p1.y, p2.x, p2.y, ..., pn.x, pn.y}"
|
||||
N_("array of points: { p1.x, p1.y, p2.x, p2.y, ..., pn.x, pn.y}")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"operation",
|
||||
"the selection operation: { ADD (0), SUB (1), REPLACE (2), INTERSECT (3) }"
|
||||
N_("the selection operation: { ADD (0), SUB (1), REPLACE (2), INTERSECT (3) }")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"antialias",
|
||||
"antialiasing option for selections"
|
||||
N_("antialiasing option for selections")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"feather",
|
||||
"feather option for selections"
|
||||
N_("feather option for selections")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"feather_radius",
|
||||
"radius for feather operation"
|
||||
N_("radius for feather operation")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord free_select_proc =
|
||||
{
|
||||
"gimp_free_select",
|
||||
"Create a polygonal selection over the specified image",
|
||||
"This tool creates a polygonal selection over the specified image. The polygonal region can be either added to, subtracted from, or replace the contents of the previous selection mask. The polygon is specified through an array of floating point numbers and its length. The length of array must be 2n, where n is the number of points. Each point is defined by 2 floating point values which correspond to the x and y coordinates. If the final point does not connect to the starting point, a connecting segment is automatically added. If the feather option is enabled, the resulting selection is blurred before combining. The blur is a gaussian blur with the specified feather radius.",
|
||||
N_("Create a polygonal selection over the specified image"),
|
||||
N_("This tool creates a polygonal selection over the specified image. The polygonal region can be either added to, subtracted from, or replace the contents of the previous selection mask. The polygon is specified through an array of floating point numbers and its length. The length of array must be 2n, where n is the number of points. Each point is defined by 2 floating point values which correspond to the x and y coordinates. If the final point does not connect to the starting point, a connecting segment is automatically added. If the feather option is enabled, the resulting selection is blurred before combining. The blur is a gaussian blur with the specified feather radius."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
|
102
app/gdisplay.c
102
app/gdisplay.c
|
@ -43,6 +43,8 @@
|
|||
#include "undo.h"
|
||||
#include "layer_pvt.h" /* ick. */
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#define OVERHEAD 25 /* in units of pixel area */
|
||||
#define EPSILON 5
|
||||
|
||||
|
@ -159,13 +161,13 @@ gdisplay_format_title (GimpImage *gimage,
|
|||
switch (gimage_base_type (gimage))
|
||||
{
|
||||
case RGB:
|
||||
image_type_str = (empty) ? "RGB-empty" : "RGB";
|
||||
image_type_str = (empty) ? _("RGB-empty") : _("RGB");
|
||||
break;
|
||||
case GRAY:
|
||||
image_type_str = (empty) ? "grayscale-empty" : "grayscale";
|
||||
image_type_str = (empty) ? _("grayscale-empty") : _("grayscale");
|
||||
break;
|
||||
case INDEXED:
|
||||
image_type_str = (empty) ? "indexed-empty" : "indexed";
|
||||
image_type_str = (empty) ? _("indexed-empty") : _("indexed");
|
||||
break;
|
||||
default:
|
||||
image_type_str = NULL;
|
||||
|
@ -207,11 +209,11 @@ gdisplay_delete (GDisplay *gdisp)
|
|||
deactivate the idlerendering thread before deletion! */
|
||||
if (gdisp->idle_render.active)
|
||||
{
|
||||
printf("Deleted idlerendering gdisp %p...\n", gdisp); fflush(stdout);
|
||||
printf("\tIdlerender stops now!\n"); fflush(stdout);
|
||||
printf(_("Deleted idlerendering gdisp %p...\n"), gdisp); fflush(stdout);
|
||||
printf(_("\tIdlerender stops now!\n")); fflush(stdout);
|
||||
gtk_idle_remove (gdisp->idle_render.idleid);
|
||||
gdisp->idle_render.active = FALSE;
|
||||
printf("\tDeletion finished.\n"); fflush(stdout);
|
||||
printf(_("\tDeletion finished.\n")); fflush(stdout);
|
||||
}
|
||||
|
||||
if (gdisp->scroll_gc)
|
||||
|
@ -436,7 +438,7 @@ gdisplay_idlerender_init (GDisplay *gdisp)
|
|||
{
|
||||
if (gdisp->idle_render.update_areas == NULL)
|
||||
{
|
||||
g_warning ("Wanted to start idlerender thread with no update_areas. (+memleak)");
|
||||
g_warning (_("Wanted to start idlerender thread with no update_areas. (+memleak)"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1314,57 +1316,57 @@ gdisplay_set_menu_sensitivity (GDisplay *gdisp)
|
|||
type = drawable_type (drawable);
|
||||
}
|
||||
|
||||
menus_set_sensitive ("<Image>/Layers/Raise Layer", !fs && !aux && lp && alpha);
|
||||
menus_set_sensitive ("<Image>/Layers/Lower Layer", !fs && !aux && lp && alpha);
|
||||
menus_set_sensitive ("<Image>/Layers/Anchor Layer", fs && !aux && lp);
|
||||
menus_set_sensitive ("<Image>/Layers/Merge Visible Layers", !fs && !aux && lp);
|
||||
menus_set_sensitive ("<Image>/Layers/Flatten Image", !fs && !aux && lp);
|
||||
menus_set_sensitive ("<Image>/Layers/Alpha To Selection", !aux && lp && alpha);
|
||||
menus_set_sensitive ("<Image>/Layers/Mask To Selection", !aux && lm && lp);
|
||||
menus_set_sensitive ("<Image>/Layers/Add Alpha Channel", !fs && !aux && lp && !lm && !alpha);
|
||||
menus_set_sensitive (_("<Image>/Layers/Raise Layer"), !fs && !aux && lp && alpha);
|
||||
menus_set_sensitive (_("<Image>/Layers/Lower Layer"), !fs && !aux && lp && alpha);
|
||||
menus_set_sensitive (_("<Image>/Layers/Anchor Layer"), fs && !aux && lp);
|
||||
menus_set_sensitive (_("<Image>/Layers/Merge Visible Layers"), !fs && !aux && lp);
|
||||
menus_set_sensitive (_("<Image>/Layers/Flatten Image"), !fs && !aux && lp);
|
||||
menus_set_sensitive (_("<Image>/Layers/Alpha To Selection"), !aux && lp && alpha);
|
||||
menus_set_sensitive (_("<Image>/Layers/Mask To Selection"), !aux && lm && lp);
|
||||
menus_set_sensitive (_("<Image>/Layers/Add Alpha Channel"), !fs && !aux && lp && !lm && !alpha);
|
||||
|
||||
menus_set_sensitive ("<Image>/Image/RGB", (base_type != RGB));
|
||||
menus_set_sensitive ("<Image>/Image/Grayscale", (base_type != GRAY));
|
||||
menus_set_sensitive ("<Image>/Image/Indexed", (base_type != INDEXED));
|
||||
menus_set_sensitive (_("<Image>/Image/RGB"), (base_type != RGB));
|
||||
menus_set_sensitive (_("<Image>/Image/Grayscale"), (base_type != GRAY));
|
||||
menus_set_sensitive (_("<Image>/Image/Indexed"), (base_type != INDEXED));
|
||||
|
||||
menus_set_sensitive ("<Image>/Image/Colors/Threshold", (base_type != INDEXED));
|
||||
menus_set_sensitive ("<Image>/Image/Colors/Posterize", (base_type != INDEXED));
|
||||
menus_set_sensitive ("<Image>/Image/Colors/Equalize", (base_type != INDEXED));
|
||||
menus_set_sensitive ("<Image>/Image/Colors/Invert", (base_type != INDEXED));
|
||||
menus_set_sensitive (_("<Image>/Image/Colors/Threshold"), (base_type != INDEXED));
|
||||
menus_set_sensitive (_("<Image>/Image/Colors/Posterize") , (base_type != INDEXED));
|
||||
menus_set_sensitive (_("<Image>/Image/Colors/Equalize"), (base_type != INDEXED));
|
||||
menus_set_sensitive (_("<Image>/Image/Colors/Invert"), (base_type != INDEXED));
|
||||
|
||||
menus_set_sensitive ("<Image>/Image/Colors/Color Balance", (base_type == RGB));
|
||||
menus_set_sensitive ("<Image>/Image/Colors/Brightness-Contrast", (base_type != INDEXED));
|
||||
menus_set_sensitive ("<Image>/Image/Colors/Hue-Saturation", (base_type == RGB));
|
||||
menus_set_sensitive ("<Image>/Image/Colors/Curves", (base_type != INDEXED));
|
||||
menus_set_sensitive ("<Image>/Image/Colors/Levels", (base_type != INDEXED));
|
||||
menus_set_sensitive (_("<Image>/Image/Colors/Color Balance"), (base_type == RGB));
|
||||
menus_set_sensitive (_("<Image>/Image/Colors/Brightness-Contrast"), (base_type != INDEXED));
|
||||
menus_set_sensitive (_("<Image>/Image/Colors/Hue-Saturation"), (base_type == RGB));
|
||||
menus_set_sensitive (_("<Image>/Image/Colors/Curves"), (base_type != INDEXED));
|
||||
menus_set_sensitive (_("<Image>/Image/Colors/Levels"), (base_type != INDEXED));
|
||||
|
||||
menus_set_sensitive ("<Image>/Image/Colors/Desaturate", (base_type == RGB));
|
||||
menus_set_sensitive (_("<Image>/Image/Colors/Desaturate"), (base_type == RGB));
|
||||
|
||||
menus_set_sensitive ("<Image>/Image/Alpha/Add Alpha Channel", !fs && !aux && lp && !lm && !alpha);
|
||||
menus_set_sensitive (_("<Image>/Image/Alpha/Add Alpha Channel"), !fs && !aux && lp && !lm && !alpha);
|
||||
|
||||
menus_set_sensitive ("<Image>/Select", lp);
|
||||
menus_set_sensitive ("<Image>/Edit/Cut", lp);
|
||||
menus_set_sensitive ("<Image>/Edit/Copy", lp);
|
||||
menus_set_sensitive ("<Image>/Edit/Paste", lp);
|
||||
menus_set_sensitive ("<Image>/Edit/Paste Into", lp);
|
||||
menus_set_sensitive ("<Image>/Edit/Clear", lp);
|
||||
menus_set_sensitive ("<Image>/Edit/Fill", lp);
|
||||
menus_set_sensitive ("<Image>/Edit/Stroke", lp);
|
||||
menus_set_sensitive ("<Image>/Edit/Cut Named", lp);
|
||||
menus_set_sensitive ("<Image>/Edit/Copy Named", lp);
|
||||
menus_set_sensitive ("<Image>/Edit/Paste Named", lp);
|
||||
menus_set_sensitive ("<Image>/Image/Colors", lp);
|
||||
menus_set_sensitive ("<Image>/Image/Channel Ops/Offset", lp);
|
||||
menus_set_sensitive ("<Image>/Image/Histogram", lp);
|
||||
menus_set_sensitive ("<Image>/Filters", lp);
|
||||
menus_set_sensitive (_("<Image>/Select"), lp);
|
||||
menus_set_sensitive (_("<Image>/Edit/Cut"), lp);
|
||||
menus_set_sensitive (_("<Image>/Edit/Copy"), lp);
|
||||
menus_set_sensitive (_("<Image>/Edit/Paste"), lp);
|
||||
menus_set_sensitive (_("<Image>/Edit/Paste Into"), lp);
|
||||
menus_set_sensitive (_("<Image>/Edit/Clear"), lp);
|
||||
menus_set_sensitive (_("<Image>/Edit/Fill"), lp);
|
||||
menus_set_sensitive (_("<Image>/Edit/Stroke"), lp);
|
||||
menus_set_sensitive (_("<Image>/Edit/Cut Named"), lp);
|
||||
menus_set_sensitive (_("<Image>/Edit/Copy Named"), lp);
|
||||
menus_set_sensitive (_("<Image>/Edit/Paste Named"), lp);
|
||||
menus_set_sensitive (_("<Image>/Image/Colors"), lp);
|
||||
menus_set_sensitive (_("<Image>/Image/Channel Ops/Offset"), lp);
|
||||
menus_set_sensitive (_("<Image>/Image/Histogram"), lp);
|
||||
menus_set_sensitive (_("<Image>/Filters"), lp);
|
||||
|
||||
/* save selection to channel */
|
||||
menus_set_sensitive ("<Image>/Select/Save To Channel", !fs);
|
||||
menus_set_sensitive (_("<Image>/Select/Save To Channel"), !fs);
|
||||
|
||||
menus_set_state ("<Image>/View/Toggle Rulers", GTK_WIDGET_VISIBLE (gdisp->origin) ? 1 : 0);
|
||||
menus_set_state ("<Image>/View/Toggle Guides", gdisp->draw_guides);
|
||||
menus_set_state ("<Image>/View/Snap To Guides", gdisp->snap_to_guides);
|
||||
menus_set_state ("<Image>/View/Toggle Statusbar", GTK_WIDGET_VISIBLE (gdisp->statusarea) ? 1 : 0);
|
||||
menus_set_state (_("<Image>/View/Toggle Rulers"), GTK_WIDGET_VISIBLE (gdisp->origin) ? 1 : 0);
|
||||
menus_set_state (_("<Image>/View/Toggle Guides"), gdisp->draw_guides);
|
||||
menus_set_state (_("<Image>/View/Snap To Guides"), gdisp->snap_to_guides);
|
||||
menus_set_state (_("<Image>/View/Toggle Statusbar"), GTK_WIDGET_VISIBLE (gdisp->statusarea) ? 1 : 0);
|
||||
|
||||
plug_in_set_menu_sensitivity (type);
|
||||
}
|
||||
|
@ -1752,7 +1754,7 @@ gdisplays_flush_whenever (gboolean now)
|
|||
/* this prevents multiple recursive calls to this procedure */
|
||||
if (flushing == TRUE)
|
||||
{
|
||||
g_warning ("gdisplays_flush() called recursively.");
|
||||
g_warning (_("gdisplays_flush() called recursively."));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
#include "scale.h"
|
||||
#include "gimprc.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
static void gdisplay_close_warning_callback (GtkWidget *, gpointer);
|
||||
static void gdisplay_cancel_warning_callback (GtkWidget *, gpointer);
|
||||
|
@ -274,7 +275,7 @@ gdisplay_close_warning_callback (GtkWidget *w,
|
|||
GDisplay *gdisp;
|
||||
GtkWidget *mbox;
|
||||
|
||||
menus_set_sensitive ("<Image>/File/Close", TRUE);
|
||||
menus_set_sensitive (_("<Image>/File/Close"), TRUE);
|
||||
mbox = (GtkWidget *) client_data;
|
||||
gdisp = (GDisplay *) gtk_object_get_user_data (GTK_OBJECT (mbox));
|
||||
|
||||
|
@ -293,7 +294,7 @@ gdisplay_cancel_warning_callback (GtkWidget *w,
|
|||
{
|
||||
GtkWidget *mbox;
|
||||
|
||||
menus_set_sensitive ("<Image>/File/Close", TRUE);
|
||||
menus_set_sensitive (_("<Image>/File/Close"), TRUE);
|
||||
mbox = (GtkWidget *) client_data;
|
||||
gtk_widget_destroy (mbox);
|
||||
}
|
||||
|
@ -303,7 +304,7 @@ gdisplay_delete_warning_callback (GtkWidget *widget,
|
|||
GdkEvent *event,
|
||||
gpointer client_data)
|
||||
{
|
||||
menus_set_sensitive ("<Image>/File/Close", TRUE);
|
||||
menus_set_sensitive (_("<Image>/File/Close"), TRUE);
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -321,8 +322,8 @@ gdisplay_close_warning_dialog (char *image_name,
|
|||
{
|
||||
static ActionAreaItem mbox_action_items[2] =
|
||||
{
|
||||
{ "Close", gdisplay_close_warning_callback, NULL, NULL },
|
||||
{ "Cancel", gdisplay_cancel_warning_callback, NULL, NULL }
|
||||
{ N_("Close"), gdisplay_close_warning_callback, NULL, NULL },
|
||||
{ N_("Cancel"), gdisplay_cancel_warning_callback, NULL, NULL }
|
||||
};
|
||||
GtkWidget *mbox;
|
||||
GtkWidget *vbox;
|
||||
|
@ -339,7 +340,7 @@ gdisplay_close_warning_dialog (char *image_name,
|
|||
return;
|
||||
}
|
||||
|
||||
menus_set_sensitive ("<Image>/File/Close", FALSE);
|
||||
menus_set_sensitive (_("<Image>/File/Close"), FALSE);
|
||||
|
||||
warning_dialog = mbox = gtk_dialog_new ();
|
||||
/* should this be image_window or the actual image name??? */
|
||||
|
@ -362,7 +363,7 @@ gdisplay_close_warning_dialog (char *image_name,
|
|||
gtk_widget_show (vbox);
|
||||
|
||||
warning_buf = (char *) g_malloc (strlen (image_name) + 50);
|
||||
sprintf (warning_buf, "Changes made to %s. Close anyway?", image_name);
|
||||
sprintf (warning_buf, _("Changes were made to %s. Close anyway?"), image_name);
|
||||
label = gtk_label_new (warning_buf);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), label, TRUE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
|
|
@ -50,6 +50,8 @@ gimage_foreach (GFunc func, gpointer user_data);
|
|||
|
||||
|
||||
#define gimage_set_filename gimp_image_set_filename
|
||||
#define gimage_set_resolution gimp_image_set_resolution
|
||||
#define gimage_get_resolution gimp_image_get_resolution
|
||||
#define gimage_resize gimp_image_resize
|
||||
#define gimage_scale gimp_image_scale
|
||||
#define gimage_shadow gimp_image_shadow
|
||||
|
|
|
@ -31,6 +31,8 @@
|
|||
#include "temp_buf.h"
|
||||
#include "undo.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#include "channel_pvt.h"
|
||||
#include "tile.h"
|
||||
|
||||
|
@ -182,13 +184,13 @@ channel_copy (Channel *channel)
|
|||
name = channel_get_name(channel);
|
||||
ext = strrchr(name, '#');
|
||||
channel_name = (char *) g_malloc (strlen (name) + 6);
|
||||
if ((strlen(name) >= 4 && strcmp(&name[strlen(name) -4], "copy") == 0) ||
|
||||
if ((strlen(name) >= 4 && strcmp(&name[strlen(name) -4], _("copy")) == 0) ||
|
||||
(ext && (number = atoi(ext+1)) > 0 &&
|
||||
((int)(log10(number) + 1)) == strlen(ext+1)))
|
||||
/* don't have rudundant "copy"s */
|
||||
sprintf (channel_name, "%s", name);
|
||||
else
|
||||
sprintf (channel_name, "%s copy", name);
|
||||
sprintf (channel_name, N_("%s copy"), name);
|
||||
|
||||
/* allocate a new channel object */
|
||||
new_channel = channel_new (GIMP_DRAWABLE(channel)->gimage,
|
||||
|
@ -493,7 +495,7 @@ channel_new_mask (GimpImage* gimage, int width, int height)
|
|||
Channel *new_channel;
|
||||
|
||||
/* Create the new channel */
|
||||
new_channel = channel_new (gimage, width, height, "Selection Mask", 127, black);
|
||||
new_channel = channel_new (gimage, width, height, _("Selection Mask"), 127, black);
|
||||
|
||||
/* Set the validate procedure */
|
||||
tile_manager_set_validate_proc (GIMP_DRAWABLE(new_channel)->tiles, channel_validate);
|
||||
|
|
|
@ -25,6 +25,8 @@
|
|||
#include "paint_funcs.h"
|
||||
#include "gimage.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
static void desaturate (GimpDrawable *);
|
||||
static Argument * desaturate_invoker (Argument *);
|
||||
|
||||
|
@ -41,7 +43,7 @@ image_desaturate (gimage_ptr)
|
|||
|
||||
if (! drawable_color (drawable))
|
||||
{
|
||||
g_message ("Desaturate operates only on RGB color drawables.");
|
||||
g_message (_("Desaturate operates only on RGB color drawables."));
|
||||
return;
|
||||
}
|
||||
desaturate (drawable);
|
||||
|
@ -116,19 +118,19 @@ ProcArg desaturate_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_DRAWABLE,
|
||||
"drawable",
|
||||
"the drawable"
|
||||
N_("the drawable")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord desaturate_proc =
|
||||
{
|
||||
"gimp_desaturate",
|
||||
"Desaturate the contents of the specified drawable",
|
||||
"This procedure desaturates the contents of the specified drawable. This procedure only works on drawables of type RGB color.",
|
||||
N_("Desaturate the contents of the specified drawable"),
|
||||
N_("This procedure desaturates the contents of the specified drawable. This procedure only works on drawables of type RGB color."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
|
|
@ -24,6 +24,8 @@
|
|||
#include "interface.h"
|
||||
#include "gimage.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
static void equalize (GImage *, GimpDrawable *, int);
|
||||
static void eq_histogram (double [3][256], unsigned char [3][256], int, double);
|
||||
static Argument * equalize_invoker (Argument *);
|
||||
|
@ -234,23 +236,23 @@ ProcArg equalize_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_DRAWABLE,
|
||||
"drawable",
|
||||
"the drawable"
|
||||
N_("the drawable")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"mask_only",
|
||||
"equalization option"
|
||||
N_("equalization option")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord equalize_proc =
|
||||
{
|
||||
"gimp_equalize",
|
||||
"Equalize the contents of the specified drawable",
|
||||
"This procedure equalizes the contents of the specified drawable. Each intensity channel is equalizeed independently. The equalizeed intensity is given as inten' = (255 - inten). Indexed color drawables are not valid for this operation. The 'mask_only' option specifies whether to adjust only the area of the image within the selection bounds, or the entire image based on the histogram of the selected area. If there is no selection, the entire image is adjusted based on the histogram for the entire image.",
|
||||
N_("Equalize the contents of the specified drawable"),
|
||||
N_("This procedure equalizes the contents of the specified drawable. Each intensity channel is equalizeed independently. The equalizeed intensity is given as inten' = (255 - inten). Indexed color drawables are not valid for this operation. The 'mask_only' option specifies whether to adjust only the area of the image within the selection bounds, or the entire image based on the histogram of the selected area. If there is no selection, the entire image is adjusted based on the histogram for the entire image."),
|
||||
"Federico Mena Quintero & Spencer Kimball & Peter Mattis",
|
||||
"Federico Mena Quintero & Spencer Kimball & Peter Mattis",
|
||||
"1996",
|
||||
|
|
|
@ -79,6 +79,8 @@
|
|||
#include "undo.h"
|
||||
#include "palette.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#include "layer_pvt.h" /* ick. */
|
||||
#include "drawable_pvt.h" /* ick ick. */
|
||||
#include "tile_manager_pvt.h" /* ick ick ick. */
|
||||
|
@ -276,8 +278,8 @@ convert_to_grayscale (GimpImage* gimage)
|
|||
/* the action area structure */
|
||||
static ActionAreaItem action_items[] =
|
||||
{
|
||||
{ "OK", indexed_ok_callback, NULL, NULL },
|
||||
{ "Cancel", indexed_cancel_callback, NULL, NULL }
|
||||
{ N_("OK"), indexed_ok_callback, NULL, NULL },
|
||||
{ N_("Cancel"), indexed_cancel_callback, NULL, NULL }
|
||||
};
|
||||
|
||||
static void
|
||||
|
@ -319,12 +321,12 @@ convert_to_indexed (GimpImage *gimage)
|
|||
|
||||
dialog->shell = gtk_dialog_new ();
|
||||
gtk_window_set_wmclass (GTK_WINDOW (dialog->shell), "indexed_color_conversion", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (dialog->shell), "Indexed Color Conversion");
|
||||
gtk_window_set_title (GTK_WINDOW (dialog->shell), _("Indexed Color Conversion"));
|
||||
gtk_signal_connect (GTK_OBJECT (dialog->shell), "delete_event",
|
||||
GTK_SIGNAL_FUNC (indexed_delete_callback),
|
||||
dialog);
|
||||
|
||||
frame = gtk_frame_new ("Palette Options");
|
||||
frame = gtk_frame_new (_("Palette Options"));
|
||||
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
|
||||
gtk_container_border_width (GTK_CONTAINER (frame), 2);
|
||||
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog->shell)->vbox), frame, TRUE, TRUE, 0);
|
||||
|
@ -341,7 +343,7 @@ convert_to_indexed (GimpImage *gimage)
|
|||
gtk_container_border_width (GTK_CONTAINER (vbox), 2);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
|
||||
toggle = gtk_radio_button_new_with_label (group, "Generate optimal palette: ");
|
||||
toggle = gtk_radio_button_new_with_label (group, _("Generate optimal palette: "));
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, TRUE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
|
@ -349,7 +351,7 @@ convert_to_indexed (GimpImage *gimage)
|
|||
&(dialog->makepal_flag));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), dialog->makepal_flag);
|
||||
gtk_widget_show (toggle);
|
||||
label = gtk_label_new ("# of colors: ");
|
||||
label = gtk_label_new (_("# of colors: "));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
@ -402,7 +404,7 @@ convert_to_indexed (GimpImage *gimage)
|
|||
/* 'custom' palette from dialog */
|
||||
hbox = gtk_hbox_new (FALSE, 1);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
toggle = gtk_radio_button_new_with_label (group, "Use custom palette");
|
||||
toggle = gtk_radio_button_new_with_label (group, _("Use custom palette"));
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, TRUE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
|
@ -434,7 +436,7 @@ convert_to_indexed (GimpImage *gimage)
|
|||
{
|
||||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
toggle =
|
||||
gtk_radio_button_new_with_label (group, "Use WWW-optimised palette");
|
||||
gtk_radio_button_new_with_label (group, _("Use WWW-optimised palette"));
|
||||
{
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, TRUE, 0);
|
||||
|
@ -452,7 +454,7 @@ convert_to_indexed (GimpImage *gimage)
|
|||
hbox = gtk_hbox_new (FALSE, 1);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
toggle =
|
||||
gtk_radio_button_new_with_label (group, "Use black/white (1-bit) palette");
|
||||
gtk_radio_button_new_with_label (group, _("Use black/white (1-bit) palette"));
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, TRUE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
|
@ -462,7 +464,7 @@ convert_to_indexed (GimpImage *gimage)
|
|||
gtk_widget_show (toggle);
|
||||
gtk_widget_show (hbox);
|
||||
|
||||
frame = gtk_frame_new ("Dither Options");
|
||||
frame = gtk_frame_new (_("Dither Options"));
|
||||
{
|
||||
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
|
||||
gtk_container_border_width (GTK_CONTAINER (frame), 2);
|
||||
|
@ -476,7 +478,7 @@ convert_to_indexed (GimpImage *gimage)
|
|||
hbox = gtk_hbox_new (FALSE, 1);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
|
||||
toggle = gtk_check_button_new_with_label ("Enable Floyd-Steinberg dithering");
|
||||
toggle = gtk_check_button_new_with_label (_("Enable Floyd-Steinberg dithering"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), dialog->dither);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
|
||||
|
@ -500,7 +502,7 @@ convert_to_indexed (GimpImage *gimage)
|
|||
)
|
||||
)
|
||||
{
|
||||
frame = gtk_frame_new (" [ Warning ] ");
|
||||
frame = gtk_frame_new (_(" [ Warning ] "));
|
||||
{
|
||||
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
|
||||
gtk_container_border_width (GTK_CONTAINER (frame), 2);
|
||||
|
@ -1194,7 +1196,7 @@ generate_histogram_rgb (Histogram histogram,
|
|||
* quantizing at a later stage.
|
||||
*/
|
||||
needs_quantize = TRUE;
|
||||
/* g_print ("\nmax colours exceeded - needs quantize.\n");*/
|
||||
/* g_print (_("\nmax colours exceeded - needs quantize.\n"));*/
|
||||
goto already_found;
|
||||
}
|
||||
else
|
||||
|
@ -2354,8 +2356,8 @@ median_cut_pass2_nodestruct_dither_rgb (QuantizeObj *quantobj,
|
|||
goto got_colour;
|
||||
}
|
||||
}
|
||||
g_error ("Non-existant colour was expected to "
|
||||
"be in non-destructive colourmap.");
|
||||
g_error (_("Non-existant colour was expected to "
|
||||
"be in non-destructive colourmap."));
|
||||
got_colour:
|
||||
dest[INDEXED_PIX] = lastindex;
|
||||
if (has_alpha)
|
||||
|
@ -2915,15 +2917,15 @@ ProcArg convert_rgb_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord convert_rgb_proc =
|
||||
{
|
||||
"gimp_convert_rgb",
|
||||
"Convert specified image to RGB color",
|
||||
"This procedure converts the specified image to RGB color. This process requires an image of type GRAY or INDEXED. No image content is lost in this process aside from the colormap for an indexed image.",
|
||||
N_("Convert specified image to RGB color"),
|
||||
N_("This procedure converts the specified image to RGB color. This process requires an image of type GRAY or INDEXED. No image content is lost in this process aside from the colormap for an indexed image."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -2973,15 +2975,15 @@ ProcArg convert_grayscale_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord convert_grayscale_proc =
|
||||
{
|
||||
"gimp_convert_grayscale",
|
||||
"Convert specified image to grayscale (256 intensity levels)",
|
||||
"This procedure converts the specified image to grayscale with 8 bits per pixel (256 intensity levels). This process requires an image of type RGB or INDEXED.",
|
||||
N_("Convert specified image to grayscale (256 intensity levels)"),
|
||||
N_("This procedure converts the specified image to grayscale with 8 bits per pixel (256 intensity levels). This process requires an image of type RGB or INDEXED."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -3031,23 +3033,23 @@ ProcArg convert_indexed_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"dither",
|
||||
"Floyd-Steinberg dithering"
|
||||
N_("Floyd-Steinberg dithering")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"num_cols",
|
||||
"the number of colors to quantize to"
|
||||
N_("the number of colors to quantize to")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord convert_indexed_proc =
|
||||
{
|
||||
"gimp_convert_indexed",
|
||||
"Convert specified image to indexed color",
|
||||
"This procedure converts the specified image to indexed color. This process requires an image of type GRAY or RGB. The 'num_cols' arguments specifies how many colors the resulting image should be quantized to (1-256).",
|
||||
N_("Convert specified image to indexed color"),
|
||||
N_("This procedure converts the specified image to indexed color. This process requires an image of type GRAY or RGB. The 'num_cols' arguments specifies how many colors the resulting image should be quantized to (1-256)."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -3107,31 +3109,31 @@ ProcArg convert_indexed_palette_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"dither",
|
||||
"Floyd-Steinberg dithering"
|
||||
N_("Floyd-Steinberg dithering")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"palette_type",
|
||||
"The type of palette to use, (0 optimal) (1 reuse) (2 WWW) (3 Mono) (4 Custom)"
|
||||
N_("The type of palette to use, (0 optimal) (1 reuse) (2 WWW) (3 Mono) (4 Custom)")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"num_cols",
|
||||
"the number of colors to quantize to, ignored unless (palette_type == 0)"
|
||||
N_("the number of colors to quantize to, ignored unless (palette_type == 0)")
|
||||
},
|
||||
{ PDB_STRING,
|
||||
"palette",
|
||||
"The name of the custom palette to use, ignored unless (palette_type == 4)"
|
||||
N_("The name of the custom palette to use, ignored unless (palette_type == 4)")
|
||||
}
|
||||
};
|
||||
|
||||
ProcRecord convert_indexed_palette_proc =
|
||||
{
|
||||
"gimp_convert_indexed_palette",
|
||||
"Convert specified image to indexed color",
|
||||
"This procedure converts the specified image to indexed color. This process requires an image of type GRAY or RGB. The `palette_type' specifies what kind of palette to use, A type of `0' means to use an optimal palette of `num_cols' generated from the colors in the image. A type of `1' means to re-use the previous palette. A type of `2' means to use the WWW-optimized palette. Type `3' means to use only black and white colors. A type of `4' means to use a palette from the gimp palettes directories.",
|
||||
N_("Convert specified image to indexed color"),
|
||||
N_("This procedure converts the specified image to indexed color. This process requires an image of type GRAY or RGB. The `palette_type' specifies what kind of palette to use, A type of `0' means to use an optimal palette of `num_cols' generated from the colors in the image. A type of `1' means to re-use the previous palette. A type of `2' means to use the WWW-optimized palette. Type `3' means to use only black and white colors. A type of `4' means to use a palette from the gimp palettes directories."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -3193,7 +3195,7 @@ convert_indexed_palette_invoker (Argument *args)
|
|||
break;
|
||||
case CUSTOM_PALETTE:
|
||||
palette_name = args[4].value.pdb_pointer;
|
||||
/* fprintf(stderr, "looking for palette `%s'\n", palette_name); */
|
||||
/* fprintf(stderr, _("looking for palette `%s'\n"), palette_name); */
|
||||
if (!palette_entries_list) palette_init_palettes(FALSE);
|
||||
for(list = palette_entries_list;
|
||||
list;
|
||||
|
|
|
@ -203,7 +203,7 @@ about_dialog_create (int timeout)
|
|||
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, TRUE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
label = gtk_label_new (_("Spencer Kimball and Peter Mattis"));
|
||||
label = gtk_label_new (_("Spencer Kimball & Peter Mattis"));
|
||||
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, TRUE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include "actionarea.h"
|
||||
#include "math.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
static void brush_edit_close_callback (GtkWidget *w, void *data);
|
||||
static gint brush_edit_preview_resize (GtkWidget *widget, GdkEvent *event,
|
||||
|
@ -34,7 +35,7 @@ static gint brush_edit_preview_resize (GtkWidget *widget, GdkEvent *event,
|
|||
/* the action area structure */
|
||||
static ActionAreaItem action_items[] =
|
||||
{
|
||||
{ "Close", brush_edit_close_callback, NULL, NULL }
|
||||
{ N_("Close"), brush_edit_close_callback, NULL, NULL }
|
||||
};
|
||||
|
||||
static void
|
||||
|
@ -196,7 +197,7 @@ brush_edit_generated_new ()
|
|||
begw->shell = gtk_dialog_new ();
|
||||
gtk_window_set_wmclass (GTK_WINDOW (begw->shell), "generatedbrusheditor",
|
||||
"Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (begw->shell), "Brush Editor");
|
||||
gtk_window_set_title (GTK_WINDOW (begw->shell), _("Brush Editor"));
|
||||
gtk_window_set_policy(GTK_WINDOW(begw->shell), FALSE, TRUE, FALSE);
|
||||
|
||||
vbox = gtk_vbox_new (FALSE, 1);
|
||||
|
@ -236,7 +237,7 @@ brush_edit_generated_new ()
|
|||
gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, FALSE, 0);
|
||||
|
||||
/* brush radius scale */
|
||||
label = gtk_label_new ("Radius:");
|
||||
label = gtk_label_new (_("Radius:"));
|
||||
gtk_misc_set_alignment (GTK_MISC(label), 1.0, 0.5);
|
||||
/* gtk_table_attach(GTK_TABLE (table), label, 0, 1, 0, 1, 0, 0, 0, 0); */
|
||||
gtk_table_attach(GTK_TABLE (table), label, 0, 1, 0, 1, 3, 0, 0, 0);
|
||||
|
@ -253,7 +254,7 @@ brush_edit_generated_new ()
|
|||
|
||||
/* brush hardness scale */
|
||||
|
||||
label = gtk_label_new ("Hardness:");
|
||||
label = gtk_label_new (_("Hardness:"));
|
||||
gtk_misc_set_alignment (GTK_MISC(label), 1.0, 0.5);
|
||||
gtk_table_attach(GTK_TABLE (table), label, 0, 1, 1, 2, 0, 0, 0, 0);
|
||||
begw->hardness_data = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 1.0, 0.01, 0.01, 0.0));
|
||||
|
@ -269,7 +270,7 @@ brush_edit_generated_new ()
|
|||
|
||||
/* brush aspect ratio scale */
|
||||
|
||||
label = gtk_label_new ("Aspect Ratio:");
|
||||
label = gtk_label_new (_("Aspect Ratio:"));
|
||||
gtk_misc_set_alignment (GTK_MISC(label), 1.0, 0.5);
|
||||
gtk_table_attach(GTK_TABLE (table), label, 0, 1, 2, 3, 0, 0, 0, 0);
|
||||
begw->aspect_ratio_data = GTK_ADJUSTMENT (gtk_adjustment_new (1.0, 1.0, 20.0, 0.1, 1.0, 0.0));
|
||||
|
@ -285,7 +286,7 @@ brush_edit_generated_new ()
|
|||
|
||||
/* brush angle scale */
|
||||
|
||||
label = gtk_label_new ("Angle:");
|
||||
label = gtk_label_new (_("Angle:"));
|
||||
gtk_misc_set_alignment (GTK_MISC(label), 1.0, 0.5);
|
||||
gtk_table_attach(GTK_TABLE (table), label, 0, 1, 3, 4, 0, 0, 0, 0);
|
||||
begw->angle_data = GTK_ADJUSTMENT (gtk_adjustment_new (00.0, 0.0, 180.0, 0.1, 1.0, 0.0));
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
#include "paint_funcs.h"
|
||||
#include "session.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#define STD_CELL_WIDTH 24
|
||||
#define STD_CELL_HEIGHT 24
|
||||
|
@ -91,30 +92,30 @@ static void spacing_scale_update (GtkAdjustment *, gpointer);
|
|||
/* the option menu items -- the paint modes */
|
||||
static MenuItem option_items[] =
|
||||
{
|
||||
{ "Normal", 0, 0, paint_mode_menu_callback, (gpointer) NORMAL_MODE, NULL, NULL },
|
||||
{ "Dissolve", 0, 0, paint_mode_menu_callback, (gpointer) DISSOLVE_MODE, NULL, NULL },
|
||||
{ "Behind", 0, 0, paint_mode_menu_callback, (gpointer) BEHIND_MODE, NULL, NULL },
|
||||
{ "Multiply (Burn)", 0, 0, paint_mode_menu_callback, (gpointer) MULTIPLY_MODE, NULL, NULL },
|
||||
{ "Divide (Dodge)", 0, 0, paint_mode_menu_callback, (gpointer) DIVIDE_MODE, NULL, NULL },
|
||||
{ "Screen", 0, 0, paint_mode_menu_callback, (gpointer) SCREEN_MODE, NULL, NULL },
|
||||
{ "Overlay", 0, 0, paint_mode_menu_callback, (gpointer) OVERLAY_MODE, NULL, NULL },
|
||||
{ "Difference", 0, 0, paint_mode_menu_callback, (gpointer) DIFFERENCE_MODE, NULL, NULL },
|
||||
{ "Addition", 0, 0, paint_mode_menu_callback, (gpointer) ADDITION_MODE, NULL, NULL },
|
||||
{ "Subtract", 0, 0, paint_mode_menu_callback, (gpointer) SUBTRACT_MODE, NULL, NULL },
|
||||
{ "Darken Only", 0, 0, paint_mode_menu_callback, (gpointer) DARKEN_ONLY_MODE, NULL, NULL },
|
||||
{ "Lighten Only", 0, 0, paint_mode_menu_callback, (gpointer) LIGHTEN_ONLY_MODE, NULL, NULL },
|
||||
{ "Hue", 0, 0, paint_mode_menu_callback, (gpointer) HUE_MODE, NULL, NULL },
|
||||
{ "Saturation", 0, 0, paint_mode_menu_callback, (gpointer) SATURATION_MODE, NULL, NULL },
|
||||
{ "Color", 0, 0, paint_mode_menu_callback, (gpointer) COLOR_MODE, NULL, NULL },
|
||||
{ "Value", 0, 0, paint_mode_menu_callback, (gpointer) VALUE_MODE, NULL, NULL },
|
||||
{ N_("Normal"), 0, 0, paint_mode_menu_callback, (gpointer) NORMAL_MODE, NULL, NULL },
|
||||
{ N_("Dissolve"), 0, 0, paint_mode_menu_callback, (gpointer) DISSOLVE_MODE, NULL, NULL },
|
||||
{ N_("Behind"), 0, 0, paint_mode_menu_callback, (gpointer) BEHIND_MODE, NULL, NULL },
|
||||
{ N_("Multiply (Burn)"), 0, 0, paint_mode_menu_callback, (gpointer) MULTIPLY_MODE, NULL, NULL },
|
||||
{ N_("Divide (Dodge)"), 0, 0, paint_mode_menu_callback, (gpointer) DIVIDE_MODE, NULL, NULL },
|
||||
{ N_("Screen"), 0, 0, paint_mode_menu_callback, (gpointer) SCREEN_MODE, NULL, NULL },
|
||||
{ N_("Overlay"), 0, 0, paint_mode_menu_callback, (gpointer) OVERLAY_MODE, NULL, NULL },
|
||||
{ N_("Difference"), 0, 0, paint_mode_menu_callback, (gpointer) DIFFERENCE_MODE, NULL, NULL },
|
||||
{ N_("Addition"), 0, 0, paint_mode_menu_callback, (gpointer) ADDITION_MODE, NULL, NULL },
|
||||
{ N_("Subtract"), 0, 0, paint_mode_menu_callback, (gpointer) SUBTRACT_MODE, NULL, NULL },
|
||||
{ N_("Darken Only"), 0, 0, paint_mode_menu_callback, (gpointer) DARKEN_ONLY_MODE, NULL, NULL },
|
||||
{ N_("Lighten Only"), 0, 0, paint_mode_menu_callback, (gpointer) LIGHTEN_ONLY_MODE, NULL, NULL },
|
||||
{ N_("Hue"), 0, 0, paint_mode_menu_callback, (gpointer) HUE_MODE, NULL, NULL },
|
||||
{ N_("Saturation"), 0, 0, paint_mode_menu_callback, (gpointer) SATURATION_MODE, NULL, NULL },
|
||||
{ N_("Color"), 0, 0, paint_mode_menu_callback, (gpointer) COLOR_MODE, NULL, NULL },
|
||||
{ N_("Value"), 0, 0, paint_mode_menu_callback, (gpointer) VALUE_MODE, NULL, NULL },
|
||||
{ NULL, 0, 0, NULL, NULL, NULL, NULL }
|
||||
};
|
||||
|
||||
/* the action area structure */
|
||||
static ActionAreaItem action_items[] =
|
||||
{
|
||||
{ "Close", brush_select_close_callback, NULL, NULL },
|
||||
{ "Refresh", brush_select_refresh_callback, NULL, NULL }
|
||||
{ N_("Close"), brush_select_close_callback, NULL, NULL },
|
||||
{ N_("Refresh"), brush_select_refresh_callback, NULL, NULL }
|
||||
};
|
||||
|
||||
static BrushEditGeneratedWindow *brush_edit_generated_dialog;
|
||||
|
@ -186,7 +187,7 @@ brush_select_new (gchar * title,
|
|||
|
||||
if(!title)
|
||||
{
|
||||
gtk_window_set_title (GTK_WINDOW (bsp->shell), "Brush Selection");
|
||||
gtk_window_set_title (GTK_WINDOW (bsp->shell), _("Brush Selection"));
|
||||
session_set_window_geometry (bsp->shell, &brush_select_session_info, TRUE);
|
||||
}
|
||||
else
|
||||
|
@ -254,7 +255,7 @@ brush_select_new (gchar * title,
|
|||
util_box = gtk_hbox_new (FALSE, 5);
|
||||
gtk_box_pack_start (GTK_BOX (bsp->options_box), util_box, FALSE, FALSE, 0);
|
||||
|
||||
bsp->brush_name = gtk_label_new ("Active");
|
||||
bsp->brush_name = gtk_label_new (_("Active"));
|
||||
gtk_box_pack_start (GTK_BOX (util_box), bsp->brush_name, FALSE, FALSE, 2);
|
||||
bsp->brush_size = gtk_label_new ("(0x0)");
|
||||
gtk_box_pack_start (GTK_BOX (util_box), bsp->brush_size, FALSE, FALSE, 2);
|
||||
|
@ -266,7 +267,7 @@ brush_select_new (gchar * title,
|
|||
/* Create the paint mode option menu */
|
||||
util_box = gtk_hbox_new (FALSE, 2);
|
||||
gtk_box_pack_start (GTK_BOX (bsp->options_box), util_box, FALSE, FALSE, 0);
|
||||
label = gtk_label_new ("Mode:");
|
||||
label = gtk_label_new (_("Mode:"));
|
||||
gtk_box_pack_start (GTK_BOX (util_box), label, FALSE, FALSE, 2);
|
||||
menu = create_paint_mode_menu (paint_mode_menu_callback,(gpointer)bsp);
|
||||
option_menu = gtk_option_menu_new ();
|
||||
|
@ -280,7 +281,7 @@ brush_select_new (gchar * title,
|
|||
/* Create the opacity scale widget */
|
||||
util_box = gtk_hbox_new (FALSE, 2);
|
||||
gtk_box_pack_start (GTK_BOX (bsp->options_box), util_box, FALSE, FALSE, 0);
|
||||
label = gtk_label_new ("Opacity:");
|
||||
label = gtk_label_new (_("Opacity:"));
|
||||
gtk_box_pack_start (GTK_BOX (util_box), label, FALSE, FALSE, 2);
|
||||
bsp->opacity_data =
|
||||
GTK_ADJUSTMENT (gtk_adjustment_new ((active)?init_opacity:100.0, 0.0, 100.0, 1.0, 1.0, 0.0));
|
||||
|
@ -297,7 +298,7 @@ brush_select_new (gchar * title,
|
|||
|
||||
util_box = gtk_hbox_new (FALSE, 2);
|
||||
gtk_box_pack_start (GTK_BOX (bsp->options_box), util_box, FALSE, FALSE, 0);
|
||||
label = gtk_label_new ("Spacing:");
|
||||
label = gtk_label_new (_("Spacing:"));
|
||||
gtk_box_pack_start (GTK_BOX (util_box), label, FALSE, FALSE, 2);
|
||||
bsp->spacing_data = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 1000.0, 1.0, 1.0, 0.0));
|
||||
slider = gtk_hscale_new (bsp->spacing_data);
|
||||
|
@ -314,7 +315,7 @@ brush_select_new (gchar * title,
|
|||
/* Create the edit/new buttons */
|
||||
util_box = gtk_hbox_new (FALSE, 2);
|
||||
gtk_box_pack_start (GTK_BOX (bsp->options_box), util_box, FALSE, FALSE, 0);
|
||||
bsp->edit_button = gtk_button_new_with_label ("Edit Brush");
|
||||
bsp->edit_button = gtk_button_new_with_label (_("Edit Brush"));
|
||||
gtk_signal_connect (GTK_OBJECT (bsp->edit_button), "clicked",
|
||||
(GtkSignalFunc) edit_brush_callback,
|
||||
NULL);
|
||||
|
@ -323,7 +324,7 @@ brush_select_new (gchar * title,
|
|||
|
||||
gtk_box_pack_start (GTK_BOX (util_box), bsp->edit_button, TRUE, TRUE, 5);
|
||||
|
||||
button2 = gtk_button_new_with_label ("New Brush");
|
||||
button2 = gtk_button_new_with_label (_("New Brush"));
|
||||
gtk_signal_connect (GTK_OBJECT (button2), "clicked",
|
||||
(GtkSignalFunc) new_brush_callback,
|
||||
NULL);
|
||||
|
@ -494,7 +495,7 @@ brush_change_callbacks(BrushSelectP bsp, gint closing)
|
|||
PDB_END);
|
||||
|
||||
if (!return_vals || return_vals[0].value.pdb_int != PDB_SUCCESS)
|
||||
g_message ("failed to run brush callback function");
|
||||
g_message (_("failed to run brush callback function"));
|
||||
|
||||
procedural_db_destroy_args (return_vals, nreturn_vals);
|
||||
}
|
||||
|
@ -1016,8 +1017,8 @@ edit_brush_callback (GtkWidget *w, GdkEvent *e, gpointer data)
|
|||
}
|
||||
}
|
||||
else
|
||||
g_message("We are all fresh out of brush editors today,\n"
|
||||
"please write your own or try back tomorrow\n");
|
||||
g_message(_("We are all fresh out of brush editors today,\n"
|
||||
"please write your own or try back tomorrow\n"));
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
@ -1270,35 +1271,35 @@ ProcArg brushes_popup_in_args[] =
|
|||
{
|
||||
{ PDB_STRING,
|
||||
"brush_callback",
|
||||
"the callback PDB proc to call when brush selection is made"
|
||||
N_("the callback PDB proc to call when brush selection is made")
|
||||
},
|
||||
{ PDB_STRING,
|
||||
"popup title",
|
||||
"title to give the popup window",
|
||||
N_("title to give the popup window"),
|
||||
},
|
||||
{ PDB_STRING,
|
||||
"initial brush",
|
||||
"The name of the brush to set as the first selected",
|
||||
N_("The name of the brush to set as the first selected"),
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"initial opacity",
|
||||
"The initial opacity of the brush",
|
||||
N_("The initial opacity of the brush"),
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"initial spacing",
|
||||
"The initial spacing of the brush (if < 0 then use brush default spacing)",
|
||||
N_("The initial spacing of the brush (if < 0 then use brush default spacing)"),
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"initial paint mode",
|
||||
"The initial paint mode: { NORMAL (0), DISSOLVE (1), BEHIND (2), MULTIPLY/BURN (3), SCREEN (4), OVERLAY (5) DIFFERENCE (6), ADDITION (7), SUBTRACT (8), DARKEN-ONLY (9), LIGHTEN-ONLY (10), HUE (11), SATURATION (12), COLOR (13), VALUE (14), DIVIDE/DODGE (15) }",
|
||||
N_("The initial paint mode: { NORMAL (0), DISSOLVE (1), BEHIND (2), MULTIPLY/BURN (3), SCREEN (4), OVERLAY (5) DIFFERENCE (6), ADDITION (7), SUBTRACT (8), DARKEN-ONLY (9), LIGHTEN-ONLY (10), HUE (11), SATURATION (12), COLOR (13), VALUE (14), DIVIDE/DODGE (15) }"),
|
||||
},
|
||||
};
|
||||
|
||||
ProcRecord brushes_popup_proc =
|
||||
{
|
||||
"gimp_brushes_popup",
|
||||
"Invokes the Gimp brush selection",
|
||||
"This procedure popups the brush selection dialog",
|
||||
N_("Invokes the Gimp brush selection"),
|
||||
N_("This procedure popups the brush selection dialog"),
|
||||
"Andy Thomas",
|
||||
"Andy Thomas",
|
||||
"1998",
|
||||
|
|
|
@ -51,6 +51,8 @@
|
|||
#include "tools/delete.xpm"
|
||||
#include "tools/delete_is.xpm"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#include "channel_pvt.h"
|
||||
|
||||
|
||||
|
@ -159,17 +161,17 @@ static int button_last_id = 0;
|
|||
|
||||
static MenuItem channels_ops[] =
|
||||
{
|
||||
{ "New Channel", 'N', GDK_CONTROL_MASK,
|
||||
{ N_("New Channel"), 'N', GDK_CONTROL_MASK,
|
||||
channels_dialog_new_channel_callback, NULL, NULL, NULL },
|
||||
{ "Raise Channel", 'F', GDK_CONTROL_MASK,
|
||||
{ N_("Raise Channel"), 'F', GDK_CONTROL_MASK,
|
||||
channels_dialog_raise_channel_callback, NULL, NULL, NULL },
|
||||
{ "Lower Channel", 'B', GDK_CONTROL_MASK,
|
||||
{ N_("Lower Channel"), 'B', GDK_CONTROL_MASK,
|
||||
channels_dialog_lower_channel_callback, NULL, NULL, NULL },
|
||||
{ "Duplicate Channel", 'C', GDK_CONTROL_MASK,
|
||||
{ N_("Duplicate Channel"), 'C', GDK_CONTROL_MASK,
|
||||
channels_dialog_duplicate_channel_callback, NULL, NULL, NULL },
|
||||
{ "Delete Channel", 'X', GDK_CONTROL_MASK,
|
||||
{ N_("Delete Channel"), 'X', GDK_CONTROL_MASK,
|
||||
channels_dialog_delete_channel_callback, NULL, NULL, NULL },
|
||||
{ "Channel To Selection", 'S', GDK_CONTROL_MASK,
|
||||
{ N_("Channel To Selection"), 'S', GDK_CONTROL_MASK,
|
||||
channels_dialog_channel_to_sel_callback, NULL, NULL, NULL },
|
||||
{ NULL, 0, 0, NULL, NULL, NULL, NULL },
|
||||
};
|
||||
|
@ -177,11 +179,11 @@ static MenuItem channels_ops[] =
|
|||
/* the ops buttons */
|
||||
static OpsButton channels_ops_buttons[] =
|
||||
{
|
||||
{ new_xpm, new_is_xpm, channels_dialog_new_channel_callback, "New Channel", NULL, NULL, NULL, NULL, NULL, NULL },
|
||||
{ raise_xpm, raise_is_xpm, channels_dialog_raise_channel_callback, "Raise Channel", NULL, NULL, NULL, NULL, NULL, NULL },
|
||||
{ lower_xpm, lower_is_xpm, channels_dialog_lower_channel_callback, "Lower Channel", NULL, NULL, NULL, NULL, NULL, NULL },
|
||||
{ duplicate_xpm, duplicate_is_xpm, channels_dialog_duplicate_channel_callback, "Duplicate Channel", NULL, NULL, NULL, NULL, NULL, NULL },
|
||||
{ delete_xpm, delete_is_xpm, channels_dialog_delete_channel_callback, "Delete Channel", NULL, NULL, NULL, NULL, NULL, NULL },
|
||||
{ new_xpm, new_is_xpm, channels_dialog_new_channel_callback, N_("New Channel"), NULL, NULL, NULL, NULL, NULL, NULL },
|
||||
{ raise_xpm, raise_is_xpm, channels_dialog_raise_channel_callback, N_("Raise Channel"), NULL, NULL, NULL, NULL, NULL, NULL },
|
||||
{ lower_xpm, lower_is_xpm, channels_dialog_lower_channel_callback, N_("Lower Channel"), NULL, NULL, NULL, NULL, NULL, NULL },
|
||||
{ duplicate_xpm, duplicate_is_xpm, channels_dialog_duplicate_channel_callback, N_("Duplicate Channel"), NULL, NULL, NULL, NULL, NULL, NULL },
|
||||
{ delete_xpm, delete_is_xpm, channels_dialog_delete_channel_callback, N_("Delete Channel"), NULL, NULL, NULL, NULL, NULL, NULL },
|
||||
{ NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL}
|
||||
};
|
||||
|
||||
|
@ -608,7 +610,7 @@ channels_dialog_set_channel (ChannelWidget *channel_widget)
|
|||
gtk_list_select_item (GTK_LIST (channelsD->channel_list), 2);
|
||||
break;
|
||||
case Auxillary:
|
||||
g_error ("error in %s at %d: this shouldn't happen.",
|
||||
g_error (_("error in %s at %d: this shouldn't happen."),
|
||||
__FILE__, __LINE__);
|
||||
break;
|
||||
}
|
||||
|
@ -662,7 +664,7 @@ channels_dialog_unset_channel (ChannelWidget * channel_widget)
|
|||
gtk_list_unselect_item (GTK_LIST (channelsD->channel_list), 2);
|
||||
break;
|
||||
case Auxillary:
|
||||
g_error ("error in %s at %d: this shouldn't happen.",
|
||||
g_error (_("error in %s at %d: this shouldn't happen."),
|
||||
__FILE__, __LINE__);
|
||||
break;
|
||||
}
|
||||
|
@ -1065,11 +1067,11 @@ create_channel_widget (GImage *gimage,
|
|||
/* the channel name label */
|
||||
switch (channel_widget->type)
|
||||
{
|
||||
case Red: channel_widget->label = gtk_label_new ("Red"); break;
|
||||
case Green: channel_widget->label = gtk_label_new ("Green"); break;
|
||||
case Blue: channel_widget->label = gtk_label_new ("Blue"); break;
|
||||
case Gray: channel_widget->label = gtk_label_new ("Gray"); break;
|
||||
case Indexed: channel_widget->label = gtk_label_new ("Indexed"); break;
|
||||
case Red: channel_widget->label = gtk_label_new (_("Red")); break;
|
||||
case Green: channel_widget->label = gtk_label_new (_("Green")); break;
|
||||
case Blue: channel_widget->label = gtk_label_new (_("Blue")); break;
|
||||
case Gray: channel_widget->label = gtk_label_new (_("Gray")); break;
|
||||
case Indexed: channel_widget->label = gtk_label_new (_("Indexed")); break;
|
||||
case Auxillary: channel_widget->label = gtk_label_new (channel_get_name(channel)); break;
|
||||
}
|
||||
|
||||
|
@ -1772,8 +1774,8 @@ channels_dialog_new_channel_query (GimpImage* gimage)
|
|||
{
|
||||
static ActionAreaItem action_items[2] =
|
||||
{
|
||||
{ "OK", new_channel_query_ok_callback, NULL, NULL },
|
||||
{ "Cancel", new_channel_query_cancel_callback, NULL, NULL }
|
||||
{ N_("OK"), new_channel_query_ok_callback, NULL, NULL },
|
||||
{ N_("Cancel"), new_channel_query_cancel_callback, NULL, NULL }
|
||||
};
|
||||
NewChannelOptions *options;
|
||||
GtkWidget *vbox;
|
||||
|
@ -1791,7 +1793,7 @@ channels_dialog_new_channel_query (GimpImage* gimage)
|
|||
/* the dialog */
|
||||
options->query_box = gtk_dialog_new ();
|
||||
gtk_window_set_wmclass (GTK_WINDOW (options->query_box), "new_channel_options", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (options->query_box), "New Channel Options");
|
||||
gtk_window_set_title (GTK_WINDOW (options->query_box), _("New Channel Options"));
|
||||
gtk_window_position (GTK_WINDOW (options->query_box), GTK_WIN_POS_MOUSE);
|
||||
|
||||
/* handle the wm close signal */
|
||||
|
@ -1809,7 +1811,7 @@ channels_dialog_new_channel_query (GimpImage* gimage)
|
|||
gtk_box_pack_start (GTK_BOX (vbox), table, TRUE, TRUE, 0);
|
||||
|
||||
/* the name entry hbox, label and entry */
|
||||
label = gtk_label_new ("Channel name: ");
|
||||
label = gtk_label_new (_("Channel name: "));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK, 0, 1);
|
||||
|
@ -1819,11 +1821,11 @@ channels_dialog_new_channel_query (GimpImage* gimage)
|
|||
gtk_widget_set_usize (options->name_entry, 75, 0);
|
||||
gtk_table_attach (GTK_TABLE (table), options->name_entry, 1, 2, 0, 1,
|
||||
GTK_EXPAND | GTK_SHRINK | GTK_FILL, GTK_SHRINK, 1, 1);
|
||||
gtk_entry_set_text (GTK_ENTRY (options->name_entry), (channel_name ? channel_name : "New Channel"));
|
||||
gtk_entry_set_text (GTK_ENTRY (options->name_entry), (channel_name ? channel_name : _("New Channel")));
|
||||
gtk_widget_show (options->name_entry);
|
||||
|
||||
/* the opacity scale */
|
||||
label = gtk_label_new ("Fill Opacity: ");
|
||||
label = gtk_label_new (_("Fill Opacity: "));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK, 0, 1);
|
||||
|
@ -1945,8 +1947,8 @@ channels_dialog_edit_channel_query (ChannelWidget *channel_widget)
|
|||
{
|
||||
static ActionAreaItem action_items[2] =
|
||||
{
|
||||
{ "OK", edit_channel_query_ok_callback, NULL, NULL },
|
||||
{ "Cancel", edit_channel_query_cancel_callback, NULL, NULL }
|
||||
{ N_("OK"), edit_channel_query_ok_callback, NULL, NULL },
|
||||
{ N_("Cancel"), edit_channel_query_cancel_callback, NULL, NULL }
|
||||
};
|
||||
EditChannelOptions *options;
|
||||
GtkWidget *vbox;
|
||||
|
@ -1970,7 +1972,7 @@ channels_dialog_edit_channel_query (ChannelWidget *channel_widget)
|
|||
/* the dialog */
|
||||
options->query_box = gtk_dialog_new ();
|
||||
gtk_window_set_wmclass (GTK_WINDOW (options->query_box), "edit_channel_atributes", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (options->query_box), "Edit Channel Attributes");
|
||||
gtk_window_set_title (GTK_WINDOW (options->query_box), _("Edit Channel Attributes"));
|
||||
gtk_window_position (GTK_WINDOW (options->query_box), GTK_WIN_POS_MOUSE);
|
||||
|
||||
/* deal with the wm close signal */
|
||||
|
@ -1990,7 +1992,7 @@ channels_dialog_edit_channel_query (ChannelWidget *channel_widget)
|
|||
hbox = gtk_hbox_new (FALSE, 1);
|
||||
gtk_table_attach (GTK_TABLE (table), hbox, 0, 1, 0, 1,
|
||||
GTK_EXPAND | GTK_FILL, 0, 2, 2);
|
||||
label = gtk_label_new ("Channel name:");
|
||||
label = gtk_label_new (_("Channel name:"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
options->name_entry = gtk_entry_new ();
|
||||
|
@ -2005,7 +2007,7 @@ channels_dialog_edit_channel_query (ChannelWidget *channel_widget)
|
|||
gtk_table_attach (GTK_TABLE (table), hbox, 0, 1, 1, 2,
|
||||
GTK_EXPAND | GTK_FILL, 0, 2, 2);
|
||||
|
||||
label = gtk_label_new ("Fill Opacity");
|
||||
label = gtk_label_new (_("Fill Opacity"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
|
|
@ -26,6 +26,8 @@
|
|||
#include "session.h"
|
||||
#include "color_area.h" /* for color_area_draw_rect */
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#define XY_DEF_WIDTH 240
|
||||
#define XY_DEF_HEIGHT 240
|
||||
#define Z_DEF_WIDTH 15
|
||||
|
@ -133,8 +135,8 @@ static ColorSelectFillUpdateProc update_procs[] =
|
|||
|
||||
static ActionAreaItem action_items[2] =
|
||||
{
|
||||
{ "OK", color_select_ok_callback, NULL, NULL },
|
||||
{ "Cancel", color_select_cancel_callback, NULL, NULL },
|
||||
{ N_("OK"), color_select_ok_callback, NULL, NULL },
|
||||
{ N_("Cancel"), color_select_cancel_callback, NULL, NULL },
|
||||
};
|
||||
|
||||
ColorSelectP
|
||||
|
@ -183,7 +185,7 @@ color_select_new (int r,
|
|||
|
||||
csp->shell = gtk_dialog_new ();
|
||||
gtk_window_set_wmclass (GTK_WINDOW (csp->shell), "color_selection", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (csp->shell), "Color Selection");
|
||||
gtk_window_set_title (GTK_WINDOW (csp->shell), _("Color Selection"));
|
||||
gtk_window_set_policy (GTK_WINDOW (csp->shell), FALSE, FALSE, FALSE);
|
||||
|
||||
|
||||
|
@ -335,7 +337,7 @@ color_select_new (int r,
|
|||
csp);
|
||||
gtk_widget_show (csp->hex_entry);
|
||||
|
||||
label = gtk_label_new ("Hex Triplet:");
|
||||
label = gtk_label_new (_("Hex Triplet:"));
|
||||
gtk_box_pack_end (GTK_BOX (hex_hbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
@ -344,13 +346,13 @@ color_select_new (int r,
|
|||
action_items[1].user_data = csp;
|
||||
if (csp->wants_updates)
|
||||
{
|
||||
action_items[0].label = "Close";
|
||||
action_items[1].label = "Revert to Old Color";
|
||||
action_items[0].label = _("Close");
|
||||
action_items[1].label = _("Revert to Old Color");
|
||||
}
|
||||
else
|
||||
{
|
||||
action_items[0].label = "OK";
|
||||
action_items[1].label = "Cancel";
|
||||
action_items[0].label = _("OK");
|
||||
action_items[1].label = _("Cancel");
|
||||
}
|
||||
build_action_area (GTK_DIALOG (csp->shell), action_items, 2, 0);
|
||||
|
||||
|
|
|
@ -67,6 +67,8 @@
|
|||
#include "tools.h"
|
||||
#include "undo.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
GtkWidget * shell;
|
||||
|
@ -360,7 +362,7 @@ select_border_cmd_callback (GtkWidget *widget,
|
|||
gdisp = gdisplay_active ();
|
||||
|
||||
sprintf (initial, "%d", gimage_mask_border_radius);
|
||||
query_string_box ("Border Selection", "Border selection by:", initial,
|
||||
query_string_box (_("Border Selection"), _("Border selection by:"), initial,
|
||||
gimage_mask_border_callback, gdisp->gimage);
|
||||
}
|
||||
|
||||
|
@ -374,7 +376,7 @@ select_feather_cmd_callback (GtkWidget *widget,
|
|||
gdisp = gdisplay_active ();
|
||||
|
||||
sprintf (initial, "%f", gimage_mask_feather_radius);
|
||||
query_string_box ("Feather Selection", "Feather selection by:", initial,
|
||||
query_string_box (_("Feather Selection"), _("Feather selection by:"), initial,
|
||||
gimage_mask_feather_callback, gdisp->gimage);
|
||||
}
|
||||
|
||||
|
@ -388,7 +390,7 @@ select_grow_cmd_callback (GtkWidget *widget,
|
|||
gdisp = gdisplay_active ();
|
||||
|
||||
sprintf (initial, "%d", gimage_mask_grow_pixels);
|
||||
query_string_box ("Grow Selection", "Grow selection by:", initial,
|
||||
query_string_box (_("Grow Selection"), _("Grow selection by:"), initial,
|
||||
gimage_mask_grow_callback, gdisp->gimage);
|
||||
}
|
||||
|
||||
|
@ -402,7 +404,7 @@ select_shrink_cmd_callback (GtkWidget *widget,
|
|||
gdisp = gdisplay_active ();
|
||||
|
||||
sprintf (initial, "%d", gimage_mask_shrink_pixels);
|
||||
query_string_box ("Shrink Selection", "Shrink selection by:", initial,
|
||||
query_string_box (_("Shrink Selection"), _("Shrink selection by:"), initial,
|
||||
gimage_mask_shrink_callback, gdisp->gimage);
|
||||
}
|
||||
|
||||
|
@ -736,8 +738,8 @@ image_resize_cmd_callback (GtkWidget *widget,
|
|||
{
|
||||
static ActionAreaItem action_items[2] =
|
||||
{
|
||||
{ "OK", image_resize_callback, NULL, NULL },
|
||||
{ "Cancel", image_cancel_callback, NULL, NULL }
|
||||
{ N_("OK"), image_resize_callback, NULL, NULL },
|
||||
{ N_("Cancel"), image_cancel_callback, NULL, NULL }
|
||||
};
|
||||
GDisplay * gdisp;
|
||||
GtkWidget *vbox;
|
||||
|
@ -753,7 +755,7 @@ image_resize_cmd_callback (GtkWidget *widget,
|
|||
/* the dialog */
|
||||
image_resize->shell = gtk_dialog_new ();
|
||||
gtk_window_set_wmclass (GTK_WINDOW (image_resize->shell), "image_resize", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (image_resize->shell), "Image Resize");
|
||||
gtk_window_set_title (GTK_WINDOW (image_resize->shell), _("Image Resize"));
|
||||
gtk_window_set_policy (GTK_WINDOW (image_resize->shell), FALSE, FALSE, TRUE);
|
||||
gtk_window_position (GTK_WINDOW (image_resize->shell), GTK_WIN_POS_MOUSE);
|
||||
|
||||
|
@ -783,8 +785,8 @@ image_scale_cmd_callback (GtkWidget *widget,
|
|||
{
|
||||
static ActionAreaItem action_items[2] =
|
||||
{
|
||||
{ "OK", image_scale_callback, NULL, NULL },
|
||||
{ "Cancel", image_cancel_callback, NULL, NULL }
|
||||
{ N_("OK"), image_scale_callback, NULL, NULL },
|
||||
{ N_("Cancel"), image_cancel_callback, NULL, NULL }
|
||||
};
|
||||
GDisplay * gdisp;
|
||||
GtkWidget *vbox;
|
||||
|
@ -800,7 +802,7 @@ image_scale_cmd_callback (GtkWidget *widget,
|
|||
/* the dialog */
|
||||
image_scale->shell = gtk_dialog_new ();
|
||||
gtk_window_set_wmclass (GTK_WINDOW (image_scale->shell), "image_scale", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (image_scale->shell), "Image Scale");
|
||||
gtk_window_set_title (GTK_WINDOW (image_scale->shell), _("Image Scale"));
|
||||
gtk_window_set_policy (GTK_WINDOW (image_scale->shell), FALSE, FALSE, TRUE);
|
||||
gtk_window_position (GTK_WINDOW (image_scale->shell), GTK_WIN_POS_MOUSE);
|
||||
|
||||
|
@ -1096,7 +1098,7 @@ image_resize_callback (GtkWidget *w,
|
|||
}
|
||||
else
|
||||
{
|
||||
g_message ("Resize Error: Both width and height must be greater than zero.");
|
||||
g_message (_("Resize Error: Both width and height must be greater than zero."));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -1126,7 +1128,7 @@ image_scale_callback (GtkWidget *w,
|
|||
}
|
||||
else
|
||||
{
|
||||
g_message ("Scale Error: Both width and height must be greater than zero.");
|
||||
g_message (_("Scale Error: Both width and height must be greater than zero."));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,6 +30,8 @@
|
|||
#include "session.h"
|
||||
#include "tools.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#define CELL_SIZE 20 /* The size of the preview cells */
|
||||
#define PREVIEW_EVENT_MASK GDK_EXPOSURE_MASK | \
|
||||
GDK_BUTTON_PRESS_MASK | \
|
||||
|
@ -113,8 +115,8 @@ int current_device = GDK_CORE_POINTER;
|
|||
/* the action area structure */
|
||||
static ActionAreaItem action_items[] =
|
||||
{
|
||||
{ "Close", devices_close_callback, NULL, NULL },
|
||||
{ "Save", (ActionCallback)devices_write_rc, NULL, NULL },
|
||||
{ N_("Close"), devices_close_callback, NULL, NULL },
|
||||
{ N_("Save"), (ActionCallback)devices_write_rc, NULL, NULL },
|
||||
};
|
||||
|
||||
void
|
||||
|
@ -351,7 +353,7 @@ devices_rc_update (gchar *name, DeviceValues values,
|
|||
}
|
||||
else
|
||||
{
|
||||
g_warning ("devices_rc_update called multiple times for not present device\n");
|
||||
g_warning (_("devices_rc_update called multiple times for not present device\n"));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -650,7 +652,7 @@ create_device_status (void)
|
|||
deviceD = g_new (DeviceInfoDialog, 1);
|
||||
deviceD->shell = gtk_dialog_new ();
|
||||
|
||||
gtk_window_set_title (GTK_WINDOW(deviceD->shell), "Device Status");
|
||||
gtk_window_set_title (GTK_WINDOW(deviceD->shell), _("Device Status"));
|
||||
gtk_window_set_policy (GTK_WINDOW (deviceD->shell), FALSE, FALSE, TRUE);
|
||||
session_set_window_geometry (deviceD->shell, &device_status_session_info, TRUE);
|
||||
|
||||
|
@ -1022,7 +1024,7 @@ device_preview_events (GtkWidget *widget,
|
|||
|
||||
if(tmp_list == NULL)
|
||||
{
|
||||
g_message("Failed to find device_info\n");
|
||||
g_message(_("Failed to find device_info\n"));
|
||||
break; /* Error no device info */
|
||||
}
|
||||
|
||||
|
|
|
@ -14,6 +14,8 @@
|
|||
#include "tile_manager_pvt.h"
|
||||
#include "gdisplay.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
typedef struct {
|
||||
GtkWidget *dlg;
|
||||
GtkWidget *height_spinbutton;
|
||||
|
@ -117,7 +119,7 @@ file_new_ok_callback (GtkWidget *widget,
|
|||
|
||||
/* Make the background (or first) layer */
|
||||
layer = layer_new (gimage, gimage->width, gimage->height,
|
||||
type, "Background", OPAQUE_OPACITY, NORMAL);
|
||||
type, _("Background"), OPAQUE_OPACITY, NORMAL);
|
||||
|
||||
if (layer) {
|
||||
/* add the new layer to the gimage */
|
||||
|
@ -472,7 +474,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
|
||||
vals->dlg = gtk_dialog_new ();
|
||||
gtk_window_set_wmclass (GTK_WINDOW (vals->dlg), "new_image", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (vals->dlg), "New Image");
|
||||
gtk_window_set_title (GTK_WINDOW (vals->dlg), _("New Image"));
|
||||
gtk_window_position (GTK_WINDOW (vals->dlg), GTK_WIN_POS_MOUSE);
|
||||
|
||||
/* handle the wm close signal */
|
||||
|
@ -482,7 +484,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
|
||||
gtk_container_border_width (GTK_CONTAINER (GTK_DIALOG (vals->dlg)->action_area), 2);
|
||||
|
||||
button = gtk_button_new_with_label ("OK");
|
||||
button = gtk_button_new_with_label (_("OK"));
|
||||
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
|
||||
gtk_signal_connect (GTK_OBJECT (button), "clicked",
|
||||
(GtkSignalFunc) file_new_ok_callback,
|
||||
|
@ -492,7 +494,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_widget_grab_default (button);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_button_new_with_label ("Cancel");
|
||||
button = gtk_button_new_with_label (_("Cancel"));
|
||||
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
|
||||
gtk_signal_connect (GTK_OBJECT (button), "clicked",
|
||||
(GtkSignalFunc) file_new_cancel_callback,
|
||||
|
@ -515,13 +517,13 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_widget_show (table);
|
||||
|
||||
/* label for top of table, Width */
|
||||
label = gtk_label_new ("Width");
|
||||
label = gtk_label_new (_("Width"));
|
||||
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1,
|
||||
GTK_FILL, GTK_FILL, 0, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
/* Label for top of table, Height */
|
||||
label = gtk_label_new ("Height");
|
||||
label = gtk_label_new (_("Height"));
|
||||
gtk_table_attach (GTK_TABLE (table), label, 1, 2, 0, 1,
|
||||
GTK_FILL, GTK_FILL, 0, 0);
|
||||
gtk_widget_show (label);
|
||||
|
@ -584,7 +586,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_widget_show (vals->height_units_spinbutton);
|
||||
|
||||
/* Label for right hand side of pixel size boxes */
|
||||
label = gtk_label_new ("Pixels");
|
||||
label = gtk_label_new (_("Pixels"));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_table_attach (GTK_TABLE (table), label , 2, 3, 1, 2,
|
||||
GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0);
|
||||
|
@ -592,12 +594,12 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
|
||||
/* menu and menu items for the units pop-up menu for the units entries */
|
||||
menu = gtk_menu_new();
|
||||
menuitem = gtk_menu_item_new_with_label ("inches");
|
||||
menuitem = gtk_menu_item_new_with_label (_("inches"));
|
||||
gtk_menu_append (GTK_MENU (menu), menuitem);
|
||||
gtk_signal_connect (GTK_OBJECT (menuitem), "activate",
|
||||
(GtkSignalFunc) file_new_units_inch_menu_callback, vals);
|
||||
gtk_widget_show(menuitem);
|
||||
menuitem = gtk_menu_item_new_with_label ("cm");
|
||||
menuitem = gtk_menu_item_new_with_label (_("cm"));
|
||||
gtk_menu_append (GTK_MENU (menu), menuitem);
|
||||
gtk_signal_connect (GTK_OBJECT (menuitem), "activate",
|
||||
(GtkSignalFunc) file_new_units_cm_menu_callback, vals);
|
||||
|
@ -610,7 +612,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_widget_show(optionmenu);
|
||||
|
||||
/* resolution frame */
|
||||
frame = gtk_frame_new ("Resolution");
|
||||
frame = gtk_frame_new (_("Resolution"));
|
||||
gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE, 0);
|
||||
gtk_widget_show (frame);
|
||||
|
||||
|
@ -633,7 +635,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_widget_show (vals->resolution_spinbutton);
|
||||
|
||||
/* resolution label */
|
||||
label =gtk_label_new (" pixels per ");
|
||||
label =gtk_label_new (_(" pixels per "));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, TRUE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
@ -645,12 +647,12 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
*/
|
||||
|
||||
/* probabaly should be more general here */
|
||||
menuitem = gtk_menu_item_new_with_label ("inch");
|
||||
menuitem = gtk_menu_item_new_with_label (_("inch"));
|
||||
gtk_menu_append (GTK_MENU (menu), menuitem);
|
||||
gtk_signal_connect (GTK_OBJECT (menuitem), "activate",
|
||||
(GtkSignalFunc) file_new_res_units_inch_callback, vals);
|
||||
gtk_widget_show(menuitem);
|
||||
menuitem = gtk_menu_item_new_with_label ("cm");
|
||||
menuitem = gtk_menu_item_new_with_label (_("cm"));
|
||||
gtk_signal_connect (GTK_OBJECT (menuitem), "activate",
|
||||
(GtkSignalFunc) file_new_res_units_cm_callback, vals);
|
||||
gtk_menu_append (GTK_MENU (menu), menuitem);
|
||||
|
@ -669,7 +671,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_widget_show(hbox);
|
||||
|
||||
/* frame for Image Type */
|
||||
frame = gtk_frame_new ("Image Type");
|
||||
frame = gtk_frame_new (_("Image Type"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0);
|
||||
gtk_widget_show (frame);
|
||||
|
||||
|
@ -679,7 +681,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_container_add (GTK_CONTAINER (frame), radio_box);
|
||||
gtk_widget_show (radio_box);
|
||||
|
||||
button = gtk_radio_button_new_with_label (NULL, "RGB");
|
||||
button = gtk_radio_button_new_with_label (NULL, _("RGB"));
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (button));
|
||||
gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0);
|
||||
gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) RGB);
|
||||
|
@ -690,7 +692,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_radio_button_new_with_label (group, "Grayscale");
|
||||
button = gtk_radio_button_new_with_label (group, _("Grayscale"));
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (button));
|
||||
gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0);
|
||||
gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) GRAY);
|
||||
|
@ -703,7 +705,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
|
||||
|
||||
/* frame for fill type */
|
||||
frame = gtk_frame_new ("Fill Type");
|
||||
frame = gtk_frame_new (_("Fill Type"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0);
|
||||
gtk_widget_show (frame);
|
||||
|
||||
|
@ -712,7 +714,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_container_add (GTK_CONTAINER (frame), radio_box);
|
||||
gtk_widget_show (radio_box);
|
||||
|
||||
button = gtk_radio_button_new_with_label (NULL, "Foreground");
|
||||
button = gtk_radio_button_new_with_label (NULL, _("Foreground"));
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (button));
|
||||
gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0);
|
||||
gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) FOREGROUND_FILL);
|
||||
|
@ -723,7 +725,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_radio_button_new_with_label (group, "Background");
|
||||
button = gtk_radio_button_new_with_label (group, _("Background"));
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (button));
|
||||
gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0);
|
||||
gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) BACKGROUND_FILL);
|
||||
|
@ -734,7 +736,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_radio_button_new_with_label (group, "White");
|
||||
button = gtk_radio_button_new_with_label (group, _("White"));
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (button));
|
||||
gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0);
|
||||
gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) WHITE_FILL);
|
||||
|
@ -745,7 +747,7 @@ file_new_cmd_callback (GtkWidget *widget,
|
|||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_radio_button_new_with_label (group, "Transparent");
|
||||
button = gtk_radio_button_new_with_label (group, _("Transparent"));
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (button));
|
||||
gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0);
|
||||
gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) TRANSPARENT_FILL);
|
||||
|
|
|
@ -67,6 +67,8 @@
|
|||
#include "tools.h"
|
||||
#include "undo.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
GtkWidget * shell;
|
||||
|
@ -360,7 +362,7 @@ select_border_cmd_callback (GtkWidget *widget,
|
|||
gdisp = gdisplay_active ();
|
||||
|
||||
sprintf (initial, "%d", gimage_mask_border_radius);
|
||||
query_string_box ("Border Selection", "Border selection by:", initial,
|
||||
query_string_box (_("Border Selection"), _("Border selection by:"), initial,
|
||||
gimage_mask_border_callback, gdisp->gimage);
|
||||
}
|
||||
|
||||
|
@ -374,7 +376,7 @@ select_feather_cmd_callback (GtkWidget *widget,
|
|||
gdisp = gdisplay_active ();
|
||||
|
||||
sprintf (initial, "%f", gimage_mask_feather_radius);
|
||||
query_string_box ("Feather Selection", "Feather selection by:", initial,
|
||||
query_string_box (_("Feather Selection"), _("Feather selection by:"), initial,
|
||||
gimage_mask_feather_callback, gdisp->gimage);
|
||||
}
|
||||
|
||||
|
@ -388,7 +390,7 @@ select_grow_cmd_callback (GtkWidget *widget,
|
|||
gdisp = gdisplay_active ();
|
||||
|
||||
sprintf (initial, "%d", gimage_mask_grow_pixels);
|
||||
query_string_box ("Grow Selection", "Grow selection by:", initial,
|
||||
query_string_box (_("Grow Selection"), _("Grow selection by:"), initial,
|
||||
gimage_mask_grow_callback, gdisp->gimage);
|
||||
}
|
||||
|
||||
|
@ -402,7 +404,7 @@ select_shrink_cmd_callback (GtkWidget *widget,
|
|||
gdisp = gdisplay_active ();
|
||||
|
||||
sprintf (initial, "%d", gimage_mask_shrink_pixels);
|
||||
query_string_box ("Shrink Selection", "Shrink selection by:", initial,
|
||||
query_string_box (_("Shrink Selection"), _("Shrink selection by:"), initial,
|
||||
gimage_mask_shrink_callback, gdisp->gimage);
|
||||
}
|
||||
|
||||
|
@ -736,8 +738,8 @@ image_resize_cmd_callback (GtkWidget *widget,
|
|||
{
|
||||
static ActionAreaItem action_items[2] =
|
||||
{
|
||||
{ "OK", image_resize_callback, NULL, NULL },
|
||||
{ "Cancel", image_cancel_callback, NULL, NULL }
|
||||
{ N_("OK"), image_resize_callback, NULL, NULL },
|
||||
{ N_("Cancel"), image_cancel_callback, NULL, NULL }
|
||||
};
|
||||
GDisplay * gdisp;
|
||||
GtkWidget *vbox;
|
||||
|
@ -753,7 +755,7 @@ image_resize_cmd_callback (GtkWidget *widget,
|
|||
/* the dialog */
|
||||
image_resize->shell = gtk_dialog_new ();
|
||||
gtk_window_set_wmclass (GTK_WINDOW (image_resize->shell), "image_resize", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (image_resize->shell), "Image Resize");
|
||||
gtk_window_set_title (GTK_WINDOW (image_resize->shell), _("Image Resize"));
|
||||
gtk_window_set_policy (GTK_WINDOW (image_resize->shell), FALSE, FALSE, TRUE);
|
||||
gtk_window_position (GTK_WINDOW (image_resize->shell), GTK_WIN_POS_MOUSE);
|
||||
|
||||
|
@ -783,8 +785,8 @@ image_scale_cmd_callback (GtkWidget *widget,
|
|||
{
|
||||
static ActionAreaItem action_items[2] =
|
||||
{
|
||||
{ "OK", image_scale_callback, NULL, NULL },
|
||||
{ "Cancel", image_cancel_callback, NULL, NULL }
|
||||
{ N_("OK"), image_scale_callback, NULL, NULL },
|
||||
{ N_("Cancel"), image_cancel_callback, NULL, NULL }
|
||||
};
|
||||
GDisplay * gdisp;
|
||||
GtkWidget *vbox;
|
||||
|
@ -800,7 +802,7 @@ image_scale_cmd_callback (GtkWidget *widget,
|
|||
/* the dialog */
|
||||
image_scale->shell = gtk_dialog_new ();
|
||||
gtk_window_set_wmclass (GTK_WINDOW (image_scale->shell), "image_scale", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (image_scale->shell), "Image Scale");
|
||||
gtk_window_set_title (GTK_WINDOW (image_scale->shell), _("Image Scale"));
|
||||
gtk_window_set_policy (GTK_WINDOW (image_scale->shell), FALSE, FALSE, TRUE);
|
||||
gtk_window_position (GTK_WINDOW (image_scale->shell), GTK_WIN_POS_MOUSE);
|
||||
|
||||
|
@ -1096,7 +1098,7 @@ image_resize_callback (GtkWidget *w,
|
|||
}
|
||||
else
|
||||
{
|
||||
g_message ("Resize Error: Both width and height must be greater than zero.");
|
||||
g_message (_("Resize Error: Both width and height must be greater than zero."));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -1126,7 +1128,7 @@ image_scale_callback (GtkWidget *w,
|
|||
}
|
||||
else
|
||||
{
|
||||
g_message ("Scale Error: Both width and height must be greater than zero.");
|
||||
g_message (_("Scale Error: Both width and height must be greater than zero."));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,6 +30,8 @@
|
|||
#include "session.h"
|
||||
#include "tools.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#define CELL_SIZE 20 /* The size of the preview cells */
|
||||
#define PREVIEW_EVENT_MASK GDK_EXPOSURE_MASK | \
|
||||
GDK_BUTTON_PRESS_MASK | \
|
||||
|
@ -113,8 +115,8 @@ int current_device = GDK_CORE_POINTER;
|
|||
/* the action area structure */
|
||||
static ActionAreaItem action_items[] =
|
||||
{
|
||||
{ "Close", devices_close_callback, NULL, NULL },
|
||||
{ "Save", (ActionCallback)devices_write_rc, NULL, NULL },
|
||||
{ N_("Close"), devices_close_callback, NULL, NULL },
|
||||
{ N_("Save"), (ActionCallback)devices_write_rc, NULL, NULL },
|
||||
};
|
||||
|
||||
void
|
||||
|
@ -351,7 +353,7 @@ devices_rc_update (gchar *name, DeviceValues values,
|
|||
}
|
||||
else
|
||||
{
|
||||
g_warning ("devices_rc_update called multiple times for not present device\n");
|
||||
g_warning (_("devices_rc_update called multiple times for not present device\n"));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -650,7 +652,7 @@ create_device_status (void)
|
|||
deviceD = g_new (DeviceInfoDialog, 1);
|
||||
deviceD->shell = gtk_dialog_new ();
|
||||
|
||||
gtk_window_set_title (GTK_WINDOW(deviceD->shell), "Device Status");
|
||||
gtk_window_set_title (GTK_WINDOW(deviceD->shell), _("Device Status"));
|
||||
gtk_window_set_policy (GTK_WINDOW (deviceD->shell), FALSE, FALSE, TRUE);
|
||||
session_set_window_geometry (deviceD->shell, &device_status_session_info, TRUE);
|
||||
|
||||
|
@ -1022,7 +1024,7 @@ device_preview_events (GtkWidget *widget,
|
|||
|
||||
if(tmp_list == NULL)
|
||||
{
|
||||
g_message("Failed to find device_info\n");
|
||||
g_message(_("Failed to find device_info\n"));
|
||||
break; /* Error no device info */
|
||||
}
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#define MRU_MENU_ENTRY_SIZE sizeof (N_("/File/MRU00"))
|
||||
#define MRU_MENU_ENTRY_SIZE sizeof ("/File/MRU00 ")
|
||||
#define MRU_MENU_ACCEL_SIZE sizeof ("<control>0")
|
||||
|
||||
static void menus_init (void);
|
||||
|
@ -79,7 +79,6 @@ static GtkItemFactoryEntry image_entries[] =
|
|||
{ N_("/File/Preferences..."), NULL, file_pref_cmd_callback, 0 },
|
||||
{ N_("/File/---"), NULL, NULL, 0, "<Separator>" },
|
||||
|
||||
|
||||
{ N_("/File/Close"), "<control>W", file_close_cmd_callback, 0 },
|
||||
{ N_("/File/Quit"), "<control>Q", file_quit_cmd_callback, 0 },
|
||||
{ N_("/File/---"), NULL, NULL, 0, "<Separator>" },
|
||||
|
@ -310,7 +309,7 @@ menus_tools_create (ToolInfo *tool_info)
|
|||
|
||||
/* entry.path = g_strconcat ("<Image>", tool_info->menu_path, NULL);*/
|
||||
/* entry.callback_data = tool_info; */
|
||||
entry.path = tool_info->menu_path;
|
||||
entry.path = gettext(tool_info->menu_path);
|
||||
entry.accelerator = tool_info->menu_accel;
|
||||
entry.callback = tools_select_cmd_callback;
|
||||
entry.callback_action = tool_info->tool_id;
|
||||
|
@ -340,12 +339,12 @@ menus_set_sensitive (char *path,
|
|||
if (ifactory)
|
||||
{
|
||||
widget = gtk_item_factory_get_widget (ifactory, path);
|
||||
|
||||
|
||||
gtk_widget_set_sensitive (widget, sensitive);
|
||||
}
|
||||
if (!ifactory || !widget)
|
||||
printf (_("Unable to set sensitivity for menu which doesn't exist:\n%s"), path);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
menus_set_state (char *path,
|
||||
|
@ -509,9 +508,7 @@ menus_init_mru ()
|
|||
|
||||
gtk_item_factory_create_items_ac (toolbox_factory, last_opened_size,
|
||||
last_opened_entries, NULL, 2);
|
||||
gtk_item_factory_create_item (toolbox_factory, &file_menu_separator, NULL, 2);
|
||||
gtk_item_factory_create_item (toolbox_factory, &toolbox_end, NULL, 2);
|
||||
|
||||
|
||||
for (i=0; i < last_opened_size; i++)
|
||||
{
|
||||
widget = gtk_item_factory_get_widget (toolbox_factory,
|
||||
|
@ -540,6 +537,14 @@ menus_init_toolbox ()
|
|||
translated_entries, NULL, 2);
|
||||
free_translated_entries(translated_entries, n_toolbox_entries);
|
||||
menus_init_mru ();
|
||||
|
||||
translated_entries=translate_entries(&file_menu_separator,1);
|
||||
gtk_item_factory_create_item (toolbox_factory, translated_entries, NULL, 2);
|
||||
free_translated_entries(translated_entries, 1);
|
||||
|
||||
translated_entries=translate_entries(&toolbox_end,1);
|
||||
gtk_item_factory_create_item (toolbox_factory, translated_entries, NULL, 2);
|
||||
free_translated_entries(translated_entries, 1);
|
||||
}
|
||||
|
||||
static GtkItemFactoryEntry *
|
||||
|
|
|
@ -59,6 +59,7 @@ struct _Palette {
|
|||
GtkWidget *color_area;
|
||||
GtkWidget *color_name;
|
||||
GtkWidget *palette_ops;
|
||||
GtkWidget *clist;
|
||||
GdkGC *gc;
|
||||
GtkAdjustment *sbar_data;
|
||||
PaletteEntriesP entries;
|
||||
|
@ -110,6 +111,8 @@ static int num_palette_entries = 0;
|
|||
static unsigned char foreground[3] = { 0, 0, 0 };
|
||||
static unsigned char background[3] = { 255, 255, 255 };
|
||||
|
||||
static PaletteEntriesP p_entries = NULL;
|
||||
|
||||
/* Color select dialog */
|
||||
/* static ColorSelectP color_select = NULL;
|
||||
static int color_select_active = 0; */
|
||||
|
@ -146,11 +149,13 @@ palettes_free ()
|
|||
void
|
||||
palette_create ()
|
||||
{
|
||||
/* why isnt this stuff in the Palette struct? */
|
||||
GtkWidget *vbox;
|
||||
GtkWidget *hbox;
|
||||
GtkWidget *sbar;
|
||||
GtkWidget *frame;
|
||||
GtkWidget *options_box;
|
||||
GtkWidget *clist_box;
|
||||
GtkWidget *arrow_hbox;
|
||||
GtkWidget *label;
|
||||
GtkWidget *arrow;
|
||||
|
@ -167,7 +172,7 @@ palette_create ()
|
|||
palette->color_select = NULL;
|
||||
palette->color_select_active = 0;
|
||||
palette->scroll_offset = 0;
|
||||
palette->gc = NULL;
|
||||
palette->gc = NULL;\
|
||||
palette->updating = FALSE;
|
||||
|
||||
/* The shell and main vbox */
|
||||
|
@ -189,6 +194,10 @@ palette_create ()
|
|||
options_box = gtk_hbox_new (FALSE, 1);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), options_box, FALSE, FALSE, 0);
|
||||
|
||||
/* the clist box */
|
||||
clist_box = gtk_hbox_new(FALSE, 1);
|
||||
gtk_box_pack_start(GTK_BOX(vbox), clist_box, FALSE, FALSE, 0);
|
||||
|
||||
/* The popup menu -- palette_ops */
|
||||
for (i = 0; palette_ops[i].label; i++)
|
||||
palette_ops[i].user_data = palette;
|
||||
|
@ -216,11 +225,28 @@ palette_create ()
|
|||
gtk_widget_show (menu_bar_item);
|
||||
gtk_widget_show (menu_bar);
|
||||
|
||||
/* the clist */
|
||||
palette->clist = gtk_clist_new(1); /* one column */
|
||||
/* dont forget the callback */
|
||||
/* It isn't necessary to shadow the border, but it looks nice :) */
|
||||
gtk_clist_set_border(GTK_CLIST(palette->clist), GTK_SHADOW_OUT);
|
||||
gtk_clist_set_column_width (GTK_CLIST(palette->clist), 0, 100);
|
||||
/* slap the clist in place of the option menu for testing */
|
||||
gtk_box_pack_start (GTK_BOX (clist_box), palette->clist, TRUE, TRUE, 0);
|
||||
gtk_widget_show(palette->clist);
|
||||
|
||||
gtk_signal_connect(GTK_OBJECT(palette->clist), "select_row",
|
||||
GTK_SIGNAL_FUNC(palette_entries_set_callback),
|
||||
(gpointer) p_entries);
|
||||
|
||||
|
||||
/* The option menu */
|
||||
palette->option_menu = gtk_option_menu_new ();
|
||||
gtk_box_pack_start (GTK_BOX (options_box), palette->option_menu, TRUE, TRUE, 0);
|
||||
gtk_widget_show (palette->option_menu);
|
||||
gtk_widget_show (options_box);
|
||||
/* slap both of them into that box for now... */
|
||||
/* palette->option_menu = gtk_option_menu_new (); */
|
||||
/* gtk_box_pack_start (GTK_BOX (options_box), palette->option_menu, TRUE, TRUE, 0); */
|
||||
/* gtk_widget_show (palette->option_menu); */
|
||||
/* gtk_widget_show (options_box); */
|
||||
gtk_widget_show(clist_box);
|
||||
|
||||
/* The active color name */
|
||||
palette->color_name = gtk_entry_new ();
|
||||
|
@ -442,7 +468,7 @@ palette_create_palette_menu (PaletteP palette,
|
|||
{
|
||||
GtkWidget *menu_item;
|
||||
GSList *list;
|
||||
PaletteEntriesP p_entries = NULL;
|
||||
/* PaletteEntriesP p_entries = NULL; */
|
||||
PaletteEntriesP found_entries = NULL;
|
||||
int i = 0;
|
||||
int default_index = -1;
|
||||
|
@ -468,12 +494,18 @@ palette_create_palette_menu (PaletteP palette,
|
|||
default_index = i;
|
||||
}
|
||||
|
||||
menu_item = gtk_menu_item_new_with_label (p_entries->name);
|
||||
gtk_signal_connect (GTK_OBJECT (menu_item), "activate",
|
||||
(GtkSignalFunc) palette_entries_set_callback,
|
||||
(gpointer) p_entries);
|
||||
gtk_container_add (GTK_CONTAINER (palette->menu), menu_item);
|
||||
gtk_widget_show (menu_item);
|
||||
/* add each palette to the clist */
|
||||
/* casting? */
|
||||
gtk_clist_append( (GtkCList*)(palette->clist), &p_entries->name);
|
||||
|
||||
|
||||
|
||||
/* menu_item = gtk_menu_item_new_with_label (p_entries->name); */
|
||||
/* gtk_signal_connect (GTK_OBJECT (menu_item), "activate", */
|
||||
/* (GtkSignalFunc) palette_entries_set_callback, */
|
||||
/* (gpointer) p_entries); */
|
||||
/* gtk_container_add (GTK_CONTAINER (palette->menu), menu_item); */
|
||||
/* gtk_widget_show (menu_item); */
|
||||
|
||||
i++;
|
||||
}
|
||||
|
|
|
@ -59,6 +59,8 @@
|
|||
|
||||
#include "tile.h" /* ick. */
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#define SEPARATE_PROGRESS_BAR
|
||||
|
||||
|
||||
|
@ -161,17 +163,17 @@ static ProcArg progress_init_args[] =
|
|||
{
|
||||
{ PDB_STRING,
|
||||
"message",
|
||||
"Message to use in the progress dialog." },
|
||||
N_("Message to use in the progress dialog.") },
|
||||
{ PDB_INT32,
|
||||
"gdisplay",
|
||||
"GDisplay to update progressbar in, or -1 for a seperate window" }
|
||||
N_("GDisplay to update progressbar in, or -1 for a seperate window") }
|
||||
};
|
||||
|
||||
static ProcRecord progress_init_proc =
|
||||
{
|
||||
"gimp_progress_init",
|
||||
"Initializes the progress bar for the current plug-in",
|
||||
"Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.",
|
||||
N_("Initializes the progress bar for the current plug-in"),
|
||||
N_("Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -187,14 +189,14 @@ static ProcArg progress_update_args[] =
|
|||
{
|
||||
{ PDB_FLOAT,
|
||||
"percentage",
|
||||
"Percentage of progress completed" }
|
||||
N_("Percentage of progress completed") }
|
||||
};
|
||||
|
||||
static ProcRecord progress_update_proc =
|
||||
{
|
||||
"gimp_progress_update",
|
||||
"Updates the progress bar for the current plug-in",
|
||||
"Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.",
|
||||
N_("Updates the progress bar for the current plug-in"),
|
||||
N_("Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -211,14 +213,14 @@ static ProcArg message_args[] =
|
|||
{
|
||||
{ PDB_STRING,
|
||||
"message",
|
||||
"Message to display in the dialog." }
|
||||
N_("Message to display in the dialog.") }
|
||||
};
|
||||
|
||||
static ProcRecord message_proc =
|
||||
{
|
||||
"gimp_message",
|
||||
"Displays a dialog box with a message",
|
||||
"Displays a dialog box with a message. Useful for status or error reporting.",
|
||||
N_("Displays a dialog box with a message"),
|
||||
N_("Displays a dialog box with a message. Useful for status or error reporting."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -235,14 +237,14 @@ static ProcArg message_handler_get_out_args[] =
|
|||
{
|
||||
{ PDB_INT32,
|
||||
"handler",
|
||||
"the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }" }
|
||||
N_("the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }") }
|
||||
};
|
||||
|
||||
static ProcRecord message_handler_get_proc =
|
||||
{
|
||||
"gimp_message_handler_get",
|
||||
"Returns the current state of where warning messages are displayed.",
|
||||
"This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.",
|
||||
N_("Returns the current state of where warning messages are displayed."),
|
||||
N_("This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."),
|
||||
"Manish Singh",
|
||||
"Manish Singh",
|
||||
"1998",
|
||||
|
@ -258,14 +260,14 @@ static ProcArg message_handler_set_args[] =
|
|||
{
|
||||
{ PDB_INT32,
|
||||
"handler",
|
||||
"the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }" }
|
||||
N_("the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }") }
|
||||
};
|
||||
|
||||
static ProcRecord message_handler_set_proc =
|
||||
{
|
||||
"gimp_message_handler_set",
|
||||
"Controls where warning messages are displayed.",
|
||||
"This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.",
|
||||
N_("Controls where warning messages are displayed."),
|
||||
N_("This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."),
|
||||
"Manish Singh",
|
||||
"Manish Singh",
|
||||
"1998",
|
||||
|
@ -281,15 +283,15 @@ static ProcArg plugin_temp_PDB_name_out_args[] =
|
|||
{
|
||||
{ PDB_STRING,
|
||||
"Temp name",
|
||||
"A unique temporary name for a temporary PDB entry name",
|
||||
N_("A unique temporary name for a temporary PDB entry name"),
|
||||
},
|
||||
};
|
||||
|
||||
static ProcRecord plugin_temp_PDB_name_proc =
|
||||
{
|
||||
"gimp_temp_PDB_name",
|
||||
"Generates a unique temporary PDB name",
|
||||
"This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name.",
|
||||
N_("Generates a unique temporary PDB name"),
|
||||
N_("This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name."),
|
||||
"Andy Thomas",
|
||||
"Andy Thomas",
|
||||
"1998",
|
||||
|
@ -340,13 +342,13 @@ plug_in_init ()
|
|||
{
|
||||
shm_ID = shmget (IPC_PRIVATE, TILE_WIDTH * TILE_HEIGHT * 4, IPC_CREAT | 0777);
|
||||
if (shm_ID == -1)
|
||||
g_message ("shmget failed...disabling shared memory tile transport\n");
|
||||
g_message (_("shmget failed...disabling shared memory tile transport\n"));
|
||||
else
|
||||
{
|
||||
shm_addr = (guchar*) shmat (shm_ID, 0, 0);
|
||||
if (shm_addr == (guchar*) -1)
|
||||
{
|
||||
g_message ("shmat failed...disabling shared memory tile transport\n");
|
||||
g_message (_("shmat failed...disabling shared memory tile transport\n"));
|
||||
shm_ID = -1;
|
||||
}
|
||||
|
||||
|
@ -372,14 +374,14 @@ plug_in_init ()
|
|||
else
|
||||
sprintf (filename, "%s/pluginrc", gimp_directory ());
|
||||
|
||||
app_init_update_status("Resource configuration", filename, -1);
|
||||
app_init_update_status(_("Resource configuration"), filename, -1);
|
||||
parse_gimprc_file (filename);
|
||||
|
||||
/* query any plug-ins that have changed since we last wrote out
|
||||
* the pluginrc file.
|
||||
*/
|
||||
tmp = plug_in_defs;
|
||||
app_init_update_status("Plug-ins", "", 0);
|
||||
app_init_update_status(_("Plug-ins"), "", 0);
|
||||
nplugins = g_slist_length(tmp);
|
||||
nth = 0;
|
||||
while (tmp)
|
||||
|
@ -391,7 +393,7 @@ plug_in_init ()
|
|||
{
|
||||
write_pluginrc = TRUE;
|
||||
if ((be_verbose == TRUE) || (no_splash == TRUE))
|
||||
g_print ("query plug-in: \"%s\"\n", plug_in_def->prog);
|
||||
g_print (_("query plug-in: \"%s\"\n"), plug_in_def->prog);
|
||||
plug_in_query (plug_in_def->prog, plug_in_def);
|
||||
}
|
||||
app_init_update_status(NULL, plug_in_def->prog, nth/nplugins);
|
||||
|
@ -428,7 +430,7 @@ plug_in_init ()
|
|||
if (write_pluginrc)
|
||||
{
|
||||
if ((be_verbose == TRUE) || (no_splash == TRUE))
|
||||
g_print ("writing \"%s\"\n", filename);
|
||||
g_print (_("writing \"%s\"\n"), filename);
|
||||
plug_in_write_rc (filename);
|
||||
}
|
||||
|
||||
|
@ -441,8 +443,8 @@ plug_in_init ()
|
|||
/* run the available extensions */
|
||||
tmp = proc_defs;
|
||||
if ((be_verbose == TRUE) || (no_splash == TRUE))
|
||||
g_print ("Starting extensions: ");
|
||||
app_init_update_status("Extensions", "", 0);
|
||||
g_print (_("Starting extensions: "));
|
||||
app_init_update_status(_("Extensions"), "", 0);
|
||||
nplugins = g_slist_length(tmp); nth = 0;
|
||||
|
||||
while (tmp)
|
||||
|
@ -729,7 +731,7 @@ plug_in_def_add (PlugInDef *plug_in_def)
|
|||
}
|
||||
|
||||
write_pluginrc = TRUE;
|
||||
g_print ("\"%s\" executable not found\n", plug_in_def->prog);
|
||||
g_print (_("\"%s\" executable not found\n"), plug_in_def->prog);
|
||||
g_free (plug_in_def->prog);
|
||||
g_free (plug_in_def);
|
||||
}
|
||||
|
@ -782,7 +784,7 @@ plug_in_new (char *name)
|
|||
path = search_in_path (plug_in_path, name);
|
||||
if (!path)
|
||||
{
|
||||
g_message ("unable to locate plug-in: \"%s\"", name);
|
||||
g_message (_("unable to locate plug-in: \"%s\""), name);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@ -879,7 +881,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
*/
|
||||
if ((pipe (my_read) == -1) || (pipe (my_write) == -1))
|
||||
{
|
||||
g_message ("unable to open pipe");
|
||||
g_message (_("unable to open pipe"));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -927,7 +929,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
}
|
||||
else if (plug_in->pid == -1)
|
||||
{
|
||||
g_message ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
g_message (_("unable to run plug-in: %s\n"), plug_in->args[0]);
|
||||
plug_in_destroy (plug_in);
|
||||
return 0;
|
||||
}
|
||||
|
@ -1263,8 +1265,8 @@ plug_in_set_menu_sensitivity (int base_type)
|
|||
menus_set_sensitive (proc_def->menu_path, sensitive);
|
||||
if (last_plug_in && (last_plug_in == &(proc_def->db_info)))
|
||||
{
|
||||
menus_set_sensitive ("<Image>/Filters/Repeat last", sensitive);
|
||||
menus_set_sensitive ("<Image>/Filters/Re-show last", sensitive);
|
||||
menus_set_sensitive (_("<Image>/Filters/Repeat last"), sensitive);
|
||||
menus_set_sensitive (_("<Image>/Filters/Re-show last"), sensitive);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1303,18 +1305,18 @@ plug_in_handle_message (WireMessage *msg)
|
|||
plug_in_handle_quit ();
|
||||
break;
|
||||
case GP_CONFIG:
|
||||
g_message ("plug_in_handle_message(): received a config message (should not happen)\n");
|
||||
g_message (_("plug_in_handle_message(): received a config message (should not happen)\n"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
break;
|
||||
case GP_TILE_REQ:
|
||||
plug_in_handle_tile_req (msg->data);
|
||||
break;
|
||||
case GP_TILE_ACK:
|
||||
g_message ("plug_in_handle_message(): received a config message (should not happen)\n");
|
||||
g_message (_("plug_in_handle_message(): received a config message (should not happen)\n"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
break;
|
||||
case GP_TILE_DATA:
|
||||
g_message ("plug_in_handle_message(): received a config message (should not happen)\n");
|
||||
g_message (_("plug_in_handle_message(): received a config message (should not happen)\n"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
break;
|
||||
case GP_PROC_RUN:
|
||||
|
@ -1325,7 +1327,7 @@ plug_in_handle_message (WireMessage *msg)
|
|||
plug_in_close (current_plug_in, FALSE);
|
||||
break;
|
||||
case GP_TEMP_PROC_RUN:
|
||||
g_message ("plug_in_handle_message(): received a temp proc run message (should not happen)\n");
|
||||
g_message (_("plug_in_handle_message(): received a temp proc run message (should not happen)\n"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
break;
|
||||
case GP_TEMP_PROC_RETURN:
|
||||
|
@ -1372,21 +1374,21 @@ plug_in_handle_tile_req (GPTileReq *tile_req)
|
|||
|
||||
if (!gp_tile_data_write (current_writefd, &tile_data))
|
||||
{
|
||||
g_message ("plug_in_handle_tile_req: ERROR");
|
||||
g_message (_("plug_in_handle_tile_req: ERROR"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!wire_read_msg (current_readfd, &msg))
|
||||
{
|
||||
g_message ("plug_in_handle_tile_req: ERROR");
|
||||
g_message (_("plug_in_handle_tile_req: ERROR"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
||||
if (msg.type != GP_TILE_DATA)
|
||||
{
|
||||
g_message ("expected tile data and received: %d\n", msg.type);
|
||||
g_message (_("expected tile data and received: %d\n"), msg.type);
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1400,7 +1402,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req)
|
|||
|
||||
if (!tm)
|
||||
{
|
||||
g_message ("plug-in requested invalid drawable (killing)\n");
|
||||
g_message (_("plug-in requested invalid drawable (killing)\n"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1408,7 +1410,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req)
|
|||
tile = tile_manager_get (tm, tile_info->tile_num, TRUE, TRUE);
|
||||
if (!tile)
|
||||
{
|
||||
g_message ("plug-in requested invalid tile (killing)\n");
|
||||
g_message (_("plug-in requested invalid tile (killing)\n"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1423,7 +1425,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req)
|
|||
wire_destroy (&msg);
|
||||
if (!gp_tile_ack_write (current_writefd))
|
||||
{
|
||||
g_message ("plug_in_handle_tile_req: ERROR");
|
||||
g_message (_("plug_in_handle_tile_req: ERROR"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1437,7 +1439,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req)
|
|||
|
||||
if (!tm)
|
||||
{
|
||||
g_message ("plug-in requested invalid drawable (killing)\n");
|
||||
g_message (_("plug-in requested invalid drawable (killing)\n"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1445,7 +1447,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req)
|
|||
tile = tile_manager_get (tm, tile_req->tile_num, TRUE, FALSE);
|
||||
if (!tile)
|
||||
{
|
||||
g_message ("plug-in requested invalid tile (killing)\n");
|
||||
g_message (_("plug-in requested invalid tile (killing)\n"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1465,7 +1467,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req)
|
|||
|
||||
if (!gp_tile_data_write (current_writefd, &tile_data))
|
||||
{
|
||||
g_message ("plug_in_handle_tile_req: ERROR");
|
||||
g_message (_("plug_in_handle_tile_req: ERROR"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1474,14 +1476,14 @@ plug_in_handle_tile_req (GPTileReq *tile_req)
|
|||
|
||||
if (!wire_read_msg (current_readfd, &msg))
|
||||
{
|
||||
g_message ("plug_in_handle_tile_req: ERROR");
|
||||
g_message (_("plug_in_handle_tile_req: ERROR"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
||||
if (msg.type != GP_TILE_ACK)
|
||||
{
|
||||
g_message ("expected tile ack and received: %d\n", msg.type);
|
||||
g_message (_("expected tile ack and received: %d\n"), msg.type);
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1505,7 +1507,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run)
|
|||
if (!proc_rec)
|
||||
{
|
||||
/* THIS IS PROBABLY NOT CORRECT -josh */
|
||||
g_message ("PDB lookup failed on %s\n", proc_run->name);
|
||||
g_message (_("PDB lookup failed on %s\n"), proc_run->name);
|
||||
plug_in_args_destroy (args, proc_run->nparams, FALSE);
|
||||
return;
|
||||
}
|
||||
|
@ -1529,7 +1531,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run)
|
|||
|
||||
if (!gp_proc_return_write (current_writefd, &proc_return))
|
||||
{
|
||||
g_message ("plug_in_handle_proc_run: ERROR");
|
||||
g_message (_("plug_in_handle_proc_run: ERROR"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1573,7 +1575,7 @@ plug_in_handle_proc_return (GPProcReturn *proc_return)
|
|||
plug_in_push (blocked->plug_in);
|
||||
if (!gp_proc_return_write (current_writefd, proc_return))
|
||||
{
|
||||
g_message ("plug_in_handle_proc_run: ERROR");
|
||||
g_message (_("plug_in_handle_proc_run: ERROR"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1612,8 +1614,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install)
|
|||
if ((proc_install->nparams < 1) ||
|
||||
(proc_install->params[0].type != PDB_INT32))
|
||||
{
|
||||
g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which "
|
||||
"does not take the standard plug-in args",
|
||||
g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which "
|
||||
"does not take the standard plug-in args"),
|
||||
current_plug_in->args[0], proc_install->name);
|
||||
return;
|
||||
}
|
||||
|
@ -1625,8 +1627,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install)
|
|||
(proc_install->params[1].type != PDB_IMAGE) ||
|
||||
(proc_install->params[2].type != PDB_DRAWABLE))
|
||||
{
|
||||
g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which "
|
||||
"does not take the standard plug-in args",
|
||||
g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which "
|
||||
"does not take the standard plug-in args"),
|
||||
current_plug_in->args[0], proc_install->name);
|
||||
return;
|
||||
}
|
||||
|
@ -1638,8 +1640,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install)
|
|||
(proc_install->params[1].type != PDB_STRING) ||
|
||||
(proc_install->params[2].type != PDB_STRING))
|
||||
{
|
||||
g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which "
|
||||
"does not take the standard plug-in args",
|
||||
g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which "
|
||||
"does not take the standard plug-in args"),
|
||||
current_plug_in->args[0], proc_install->name);
|
||||
return;
|
||||
}
|
||||
|
@ -1653,17 +1655,17 @@ plug_in_handle_proc_install (GPProcInstall *proc_install)
|
|||
(proc_install->params[3].type != PDB_STRING) ||
|
||||
(proc_install->params[4].type != PDB_STRING))
|
||||
{
|
||||
g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which "
|
||||
"does not take the standard plug-in args",
|
||||
g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which "
|
||||
"does not take the standard plug-in args"),
|
||||
current_plug_in->args[0], proc_install->name);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
g_message ("plug-in \"%s\" attempted to install procedure \"%s\" in "
|
||||
g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" in "
|
||||
"an invalid menu location. Use either \"<Toolbox>\", \"<Image>\", "
|
||||
"\"<Load>\", or \"<Save>\".",
|
||||
"\"<Load>\", or \"<Save>\"."),
|
||||
current_plug_in->args[0], proc_install->name);
|
||||
return;
|
||||
}
|
||||
|
@ -1681,9 +1683,9 @@ plug_in_handle_proc_install (GPProcInstall *proc_install)
|
|||
proc_install->params[i].type == PDB_STRINGARRAY) &&
|
||||
proc_install->params[i-1].type != PDB_INT32)
|
||||
{
|
||||
g_message ("plug_in \"%s\" attempted to install procedure \"%s\" "
|
||||
g_message (_("plug_in \"%s\" attempted to install procedure \"%s\" "
|
||||
"which fails to comply with the array parameter "
|
||||
"passing standard. Argument %d is noncompliant.",
|
||||
"passing standard. Argument %d is noncompliant."),
|
||||
current_plug_in->args[0], proc_install->name, i);
|
||||
return;
|
||||
}
|
||||
|
@ -2091,7 +2093,7 @@ plug_in_init_file (char *filename)
|
|||
|
||||
if (strcmp (name, plug_in_name) == 0)
|
||||
{
|
||||
g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename);
|
||||
g_print (_("duplicate plug-in: \"%s\" (skipping)\n"), filename);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -2265,7 +2267,7 @@ plug_in_callback (GtkWidget *widget,
|
|||
}
|
||||
else
|
||||
{
|
||||
g_message ("Uh-oh, no active gdisplay for the plug-in!");
|
||||
g_message (_("Uh-oh, no active gdisplay for the plug-in!"));
|
||||
g_free (args);
|
||||
return;
|
||||
}
|
||||
|
@ -2286,7 +2288,7 @@ plug_in_callback (GtkWidget *widget,
|
|||
}
|
||||
else
|
||||
{
|
||||
g_message ("Uh-oh, no active gdisplay for the temporary procedure!");
|
||||
g_message (_("Uh-oh, no active gdisplay for the temporary procedure!"));
|
||||
g_free (args);
|
||||
return;
|
||||
}
|
||||
|
@ -2294,7 +2296,7 @@ plug_in_callback (GtkWidget *widget,
|
|||
break;
|
||||
|
||||
default:
|
||||
g_error ("Unknown procedure type.");
|
||||
g_error (_("Unknown procedure type."));
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -2600,7 +2602,7 @@ plug_in_params_to_args (GPParam *params,
|
|||
colorarray[2] = params[i].data.d_color.blue;
|
||||
break;
|
||||
case PDB_REGION:
|
||||
g_message ("the \"region\" arg type is not currently supported");
|
||||
g_message (_("the \"region\" arg type is not currently supported"));
|
||||
break;
|
||||
case PDB_DISPLAY:
|
||||
args[i].value.pdb_int = params[i].data.d_display;
|
||||
|
@ -2765,7 +2767,7 @@ plug_in_args_to_params (Argument *args,
|
|||
}
|
||||
break;
|
||||
case PDB_REGION:
|
||||
g_message ("the \"region\" arg type is not currently supported");
|
||||
g_message (_("the \"region\" arg type is not currently supported"));
|
||||
break;
|
||||
case PDB_DISPLAY:
|
||||
params[i].data.d_display = args[i].value.pdb_int;
|
||||
|
@ -2882,7 +2884,7 @@ plug_in_params_destroy (GPParam *params,
|
|||
case PDB_COLOR:
|
||||
break;
|
||||
case PDB_REGION:
|
||||
g_message ("the \"region\" arg type is not currently supported");
|
||||
g_message (_("the \"region\" arg type is not currently supported"));
|
||||
break;
|
||||
case PDB_DISPLAY:
|
||||
case PDB_IMAGE:
|
||||
|
@ -2967,7 +2969,7 @@ plug_in_args_destroy (Argument *args,
|
|||
g_free (args[i].value.pdb_pointer);
|
||||
break;
|
||||
case PDB_REGION:
|
||||
g_message ("the \"region\" arg type is not currently supported");
|
||||
g_message (_("the \"region\" arg type is not currently supported"));
|
||||
break;
|
||||
case PDB_DISPLAY:
|
||||
case PDB_IMAGE:
|
||||
|
@ -3156,7 +3158,7 @@ plug_in_progress_init (PlugIn *plug_in,
|
|||
gtk_box_pack_start (GTK_BOX (vbox), plug_in->progress_bar, TRUE, TRUE, 0);
|
||||
gtk_widget_show (plug_in->progress_bar);
|
||||
|
||||
button = gtk_button_new_with_label ("Cancel");
|
||||
button = gtk_button_new_with_label (_("Cancel"));
|
||||
gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
|
||||
(GtkSignalFunc) gtk_widget_destroy,
|
||||
GTK_OBJECT (plug_in->progress));
|
||||
|
|
|
@ -59,6 +59,8 @@
|
|||
|
||||
#include "tile.h" /* ick. */
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#define SEPARATE_PROGRESS_BAR
|
||||
|
||||
|
||||
|
@ -161,17 +163,17 @@ static ProcArg progress_init_args[] =
|
|||
{
|
||||
{ PDB_STRING,
|
||||
"message",
|
||||
"Message to use in the progress dialog." },
|
||||
N_("Message to use in the progress dialog.") },
|
||||
{ PDB_INT32,
|
||||
"gdisplay",
|
||||
"GDisplay to update progressbar in, or -1 for a seperate window" }
|
||||
N_("GDisplay to update progressbar in, or -1 for a seperate window") }
|
||||
};
|
||||
|
||||
static ProcRecord progress_init_proc =
|
||||
{
|
||||
"gimp_progress_init",
|
||||
"Initializes the progress bar for the current plug-in",
|
||||
"Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.",
|
||||
N_("Initializes the progress bar for the current plug-in"),
|
||||
N_("Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -187,14 +189,14 @@ static ProcArg progress_update_args[] =
|
|||
{
|
||||
{ PDB_FLOAT,
|
||||
"percentage",
|
||||
"Percentage of progress completed" }
|
||||
N_("Percentage of progress completed") }
|
||||
};
|
||||
|
||||
static ProcRecord progress_update_proc =
|
||||
{
|
||||
"gimp_progress_update",
|
||||
"Updates the progress bar for the current plug-in",
|
||||
"Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.",
|
||||
N_("Updates the progress bar for the current plug-in"),
|
||||
N_("Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -211,14 +213,14 @@ static ProcArg message_args[] =
|
|||
{
|
||||
{ PDB_STRING,
|
||||
"message",
|
||||
"Message to display in the dialog." }
|
||||
N_("Message to display in the dialog.") }
|
||||
};
|
||||
|
||||
static ProcRecord message_proc =
|
||||
{
|
||||
"gimp_message",
|
||||
"Displays a dialog box with a message",
|
||||
"Displays a dialog box with a message. Useful for status or error reporting.",
|
||||
N_("Displays a dialog box with a message"),
|
||||
N_("Displays a dialog box with a message. Useful for status or error reporting."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -235,14 +237,14 @@ static ProcArg message_handler_get_out_args[] =
|
|||
{
|
||||
{ PDB_INT32,
|
||||
"handler",
|
||||
"the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }" }
|
||||
N_("the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }") }
|
||||
};
|
||||
|
||||
static ProcRecord message_handler_get_proc =
|
||||
{
|
||||
"gimp_message_handler_get",
|
||||
"Returns the current state of where warning messages are displayed.",
|
||||
"This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.",
|
||||
N_("Returns the current state of where warning messages are displayed."),
|
||||
N_("This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."),
|
||||
"Manish Singh",
|
||||
"Manish Singh",
|
||||
"1998",
|
||||
|
@ -258,14 +260,14 @@ static ProcArg message_handler_set_args[] =
|
|||
{
|
||||
{ PDB_INT32,
|
||||
"handler",
|
||||
"the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }" }
|
||||
N_("the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }") }
|
||||
};
|
||||
|
||||
static ProcRecord message_handler_set_proc =
|
||||
{
|
||||
"gimp_message_handler_set",
|
||||
"Controls where warning messages are displayed.",
|
||||
"This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.",
|
||||
N_("Controls where warning messages are displayed."),
|
||||
N_("This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."),
|
||||
"Manish Singh",
|
||||
"Manish Singh",
|
||||
"1998",
|
||||
|
@ -281,15 +283,15 @@ static ProcArg plugin_temp_PDB_name_out_args[] =
|
|||
{
|
||||
{ PDB_STRING,
|
||||
"Temp name",
|
||||
"A unique temporary name for a temporary PDB entry name",
|
||||
N_("A unique temporary name for a temporary PDB entry name"),
|
||||
},
|
||||
};
|
||||
|
||||
static ProcRecord plugin_temp_PDB_name_proc =
|
||||
{
|
||||
"gimp_temp_PDB_name",
|
||||
"Generates a unique temporary PDB name",
|
||||
"This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name.",
|
||||
N_("Generates a unique temporary PDB name"),
|
||||
N_("This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name."),
|
||||
"Andy Thomas",
|
||||
"Andy Thomas",
|
||||
"1998",
|
||||
|
@ -340,13 +342,13 @@ plug_in_init ()
|
|||
{
|
||||
shm_ID = shmget (IPC_PRIVATE, TILE_WIDTH * TILE_HEIGHT * 4, IPC_CREAT | 0777);
|
||||
if (shm_ID == -1)
|
||||
g_message ("shmget failed...disabling shared memory tile transport\n");
|
||||
g_message (_("shmget failed...disabling shared memory tile transport\n"));
|
||||
else
|
||||
{
|
||||
shm_addr = (guchar*) shmat (shm_ID, 0, 0);
|
||||
if (shm_addr == (guchar*) -1)
|
||||
{
|
||||
g_message ("shmat failed...disabling shared memory tile transport\n");
|
||||
g_message (_("shmat failed...disabling shared memory tile transport\n"));
|
||||
shm_ID = -1;
|
||||
}
|
||||
|
||||
|
@ -372,14 +374,14 @@ plug_in_init ()
|
|||
else
|
||||
sprintf (filename, "%s/pluginrc", gimp_directory ());
|
||||
|
||||
app_init_update_status("Resource configuration", filename, -1);
|
||||
app_init_update_status(_("Resource configuration"), filename, -1);
|
||||
parse_gimprc_file (filename);
|
||||
|
||||
/* query any plug-ins that have changed since we last wrote out
|
||||
* the pluginrc file.
|
||||
*/
|
||||
tmp = plug_in_defs;
|
||||
app_init_update_status("Plug-ins", "", 0);
|
||||
app_init_update_status(_("Plug-ins"), "", 0);
|
||||
nplugins = g_slist_length(tmp);
|
||||
nth = 0;
|
||||
while (tmp)
|
||||
|
@ -391,7 +393,7 @@ plug_in_init ()
|
|||
{
|
||||
write_pluginrc = TRUE;
|
||||
if ((be_verbose == TRUE) || (no_splash == TRUE))
|
||||
g_print ("query plug-in: \"%s\"\n", plug_in_def->prog);
|
||||
g_print (_("query plug-in: \"%s\"\n"), plug_in_def->prog);
|
||||
plug_in_query (plug_in_def->prog, plug_in_def);
|
||||
}
|
||||
app_init_update_status(NULL, plug_in_def->prog, nth/nplugins);
|
||||
|
@ -428,7 +430,7 @@ plug_in_init ()
|
|||
if (write_pluginrc)
|
||||
{
|
||||
if ((be_verbose == TRUE) || (no_splash == TRUE))
|
||||
g_print ("writing \"%s\"\n", filename);
|
||||
g_print (_("writing \"%s\"\n"), filename);
|
||||
plug_in_write_rc (filename);
|
||||
}
|
||||
|
||||
|
@ -441,8 +443,8 @@ plug_in_init ()
|
|||
/* run the available extensions */
|
||||
tmp = proc_defs;
|
||||
if ((be_verbose == TRUE) || (no_splash == TRUE))
|
||||
g_print ("Starting extensions: ");
|
||||
app_init_update_status("Extensions", "", 0);
|
||||
g_print (_("Starting extensions: "));
|
||||
app_init_update_status(_("Extensions"), "", 0);
|
||||
nplugins = g_slist_length(tmp); nth = 0;
|
||||
|
||||
while (tmp)
|
||||
|
@ -729,7 +731,7 @@ plug_in_def_add (PlugInDef *plug_in_def)
|
|||
}
|
||||
|
||||
write_pluginrc = TRUE;
|
||||
g_print ("\"%s\" executable not found\n", plug_in_def->prog);
|
||||
g_print (_("\"%s\" executable not found\n"), plug_in_def->prog);
|
||||
g_free (plug_in_def->prog);
|
||||
g_free (plug_in_def);
|
||||
}
|
||||
|
@ -782,7 +784,7 @@ plug_in_new (char *name)
|
|||
path = search_in_path (plug_in_path, name);
|
||||
if (!path)
|
||||
{
|
||||
g_message ("unable to locate plug-in: \"%s\"", name);
|
||||
g_message (_("unable to locate plug-in: \"%s\""), name);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@ -879,7 +881,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
*/
|
||||
if ((pipe (my_read) == -1) || (pipe (my_write) == -1))
|
||||
{
|
||||
g_message ("unable to open pipe");
|
||||
g_message (_("unable to open pipe"));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -927,7 +929,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
}
|
||||
else if (plug_in->pid == -1)
|
||||
{
|
||||
g_message ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
g_message (_("unable to run plug-in: %s\n"), plug_in->args[0]);
|
||||
plug_in_destroy (plug_in);
|
||||
return 0;
|
||||
}
|
||||
|
@ -1263,8 +1265,8 @@ plug_in_set_menu_sensitivity (int base_type)
|
|||
menus_set_sensitive (proc_def->menu_path, sensitive);
|
||||
if (last_plug_in && (last_plug_in == &(proc_def->db_info)))
|
||||
{
|
||||
menus_set_sensitive ("<Image>/Filters/Repeat last", sensitive);
|
||||
menus_set_sensitive ("<Image>/Filters/Re-show last", sensitive);
|
||||
menus_set_sensitive (_("<Image>/Filters/Repeat last"), sensitive);
|
||||
menus_set_sensitive (_("<Image>/Filters/Re-show last"), sensitive);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1303,18 +1305,18 @@ plug_in_handle_message (WireMessage *msg)
|
|||
plug_in_handle_quit ();
|
||||
break;
|
||||
case GP_CONFIG:
|
||||
g_message ("plug_in_handle_message(): received a config message (should not happen)\n");
|
||||
g_message (_("plug_in_handle_message(): received a config message (should not happen)\n"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
break;
|
||||
case GP_TILE_REQ:
|
||||
plug_in_handle_tile_req (msg->data);
|
||||
break;
|
||||
case GP_TILE_ACK:
|
||||
g_message ("plug_in_handle_message(): received a config message (should not happen)\n");
|
||||
g_message (_("plug_in_handle_message(): received a config message (should not happen)\n"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
break;
|
||||
case GP_TILE_DATA:
|
||||
g_message ("plug_in_handle_message(): received a config message (should not happen)\n");
|
||||
g_message (_("plug_in_handle_message(): received a config message (should not happen)\n"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
break;
|
||||
case GP_PROC_RUN:
|
||||
|
@ -1325,7 +1327,7 @@ plug_in_handle_message (WireMessage *msg)
|
|||
plug_in_close (current_plug_in, FALSE);
|
||||
break;
|
||||
case GP_TEMP_PROC_RUN:
|
||||
g_message ("plug_in_handle_message(): received a temp proc run message (should not happen)\n");
|
||||
g_message (_("plug_in_handle_message(): received a temp proc run message (should not happen)\n"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
break;
|
||||
case GP_TEMP_PROC_RETURN:
|
||||
|
@ -1372,21 +1374,21 @@ plug_in_handle_tile_req (GPTileReq *tile_req)
|
|||
|
||||
if (!gp_tile_data_write (current_writefd, &tile_data))
|
||||
{
|
||||
g_message ("plug_in_handle_tile_req: ERROR");
|
||||
g_message (_("plug_in_handle_tile_req: ERROR"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!wire_read_msg (current_readfd, &msg))
|
||||
{
|
||||
g_message ("plug_in_handle_tile_req: ERROR");
|
||||
g_message (_("plug_in_handle_tile_req: ERROR"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
||||
if (msg.type != GP_TILE_DATA)
|
||||
{
|
||||
g_message ("expected tile data and received: %d\n", msg.type);
|
||||
g_message (_("expected tile data and received: %d\n"), msg.type);
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1400,7 +1402,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req)
|
|||
|
||||
if (!tm)
|
||||
{
|
||||
g_message ("plug-in requested invalid drawable (killing)\n");
|
||||
g_message (_("plug-in requested invalid drawable (killing)\n"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1408,7 +1410,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req)
|
|||
tile = tile_manager_get (tm, tile_info->tile_num, TRUE, TRUE);
|
||||
if (!tile)
|
||||
{
|
||||
g_message ("plug-in requested invalid tile (killing)\n");
|
||||
g_message (_("plug-in requested invalid tile (killing)\n"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1423,7 +1425,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req)
|
|||
wire_destroy (&msg);
|
||||
if (!gp_tile_ack_write (current_writefd))
|
||||
{
|
||||
g_message ("plug_in_handle_tile_req: ERROR");
|
||||
g_message (_("plug_in_handle_tile_req: ERROR"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1437,7 +1439,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req)
|
|||
|
||||
if (!tm)
|
||||
{
|
||||
g_message ("plug-in requested invalid drawable (killing)\n");
|
||||
g_message (_("plug-in requested invalid drawable (killing)\n"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1445,7 +1447,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req)
|
|||
tile = tile_manager_get (tm, tile_req->tile_num, TRUE, FALSE);
|
||||
if (!tile)
|
||||
{
|
||||
g_message ("plug-in requested invalid tile (killing)\n");
|
||||
g_message (_("plug-in requested invalid tile (killing)\n"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1465,7 +1467,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req)
|
|||
|
||||
if (!gp_tile_data_write (current_writefd, &tile_data))
|
||||
{
|
||||
g_message ("plug_in_handle_tile_req: ERROR");
|
||||
g_message (_("plug_in_handle_tile_req: ERROR"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1474,14 +1476,14 @@ plug_in_handle_tile_req (GPTileReq *tile_req)
|
|||
|
||||
if (!wire_read_msg (current_readfd, &msg))
|
||||
{
|
||||
g_message ("plug_in_handle_tile_req: ERROR");
|
||||
g_message (_("plug_in_handle_tile_req: ERROR"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
||||
if (msg.type != GP_TILE_ACK)
|
||||
{
|
||||
g_message ("expected tile ack and received: %d\n", msg.type);
|
||||
g_message (_("expected tile ack and received: %d\n"), msg.type);
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1505,7 +1507,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run)
|
|||
if (!proc_rec)
|
||||
{
|
||||
/* THIS IS PROBABLY NOT CORRECT -josh */
|
||||
g_message ("PDB lookup failed on %s\n", proc_run->name);
|
||||
g_message (_("PDB lookup failed on %s\n"), proc_run->name);
|
||||
plug_in_args_destroy (args, proc_run->nparams, FALSE);
|
||||
return;
|
||||
}
|
||||
|
@ -1529,7 +1531,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run)
|
|||
|
||||
if (!gp_proc_return_write (current_writefd, &proc_return))
|
||||
{
|
||||
g_message ("plug_in_handle_proc_run: ERROR");
|
||||
g_message (_("plug_in_handle_proc_run: ERROR"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1573,7 +1575,7 @@ plug_in_handle_proc_return (GPProcReturn *proc_return)
|
|||
plug_in_push (blocked->plug_in);
|
||||
if (!gp_proc_return_write (current_writefd, proc_return))
|
||||
{
|
||||
g_message ("plug_in_handle_proc_run: ERROR");
|
||||
g_message (_("plug_in_handle_proc_run: ERROR"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1612,8 +1614,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install)
|
|||
if ((proc_install->nparams < 1) ||
|
||||
(proc_install->params[0].type != PDB_INT32))
|
||||
{
|
||||
g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which "
|
||||
"does not take the standard plug-in args",
|
||||
g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which "
|
||||
"does not take the standard plug-in args"),
|
||||
current_plug_in->args[0], proc_install->name);
|
||||
return;
|
||||
}
|
||||
|
@ -1625,8 +1627,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install)
|
|||
(proc_install->params[1].type != PDB_IMAGE) ||
|
||||
(proc_install->params[2].type != PDB_DRAWABLE))
|
||||
{
|
||||
g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which "
|
||||
"does not take the standard plug-in args",
|
||||
g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which "
|
||||
"does not take the standard plug-in args"),
|
||||
current_plug_in->args[0], proc_install->name);
|
||||
return;
|
||||
}
|
||||
|
@ -1638,8 +1640,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install)
|
|||
(proc_install->params[1].type != PDB_STRING) ||
|
||||
(proc_install->params[2].type != PDB_STRING))
|
||||
{
|
||||
g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which "
|
||||
"does not take the standard plug-in args",
|
||||
g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which "
|
||||
"does not take the standard plug-in args"),
|
||||
current_plug_in->args[0], proc_install->name);
|
||||
return;
|
||||
}
|
||||
|
@ -1653,17 +1655,17 @@ plug_in_handle_proc_install (GPProcInstall *proc_install)
|
|||
(proc_install->params[3].type != PDB_STRING) ||
|
||||
(proc_install->params[4].type != PDB_STRING))
|
||||
{
|
||||
g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which "
|
||||
"does not take the standard plug-in args",
|
||||
g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which "
|
||||
"does not take the standard plug-in args"),
|
||||
current_plug_in->args[0], proc_install->name);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
g_message ("plug-in \"%s\" attempted to install procedure \"%s\" in "
|
||||
g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" in "
|
||||
"an invalid menu location. Use either \"<Toolbox>\", \"<Image>\", "
|
||||
"\"<Load>\", or \"<Save>\".",
|
||||
"\"<Load>\", or \"<Save>\"."),
|
||||
current_plug_in->args[0], proc_install->name);
|
||||
return;
|
||||
}
|
||||
|
@ -1681,9 +1683,9 @@ plug_in_handle_proc_install (GPProcInstall *proc_install)
|
|||
proc_install->params[i].type == PDB_STRINGARRAY) &&
|
||||
proc_install->params[i-1].type != PDB_INT32)
|
||||
{
|
||||
g_message ("plug_in \"%s\" attempted to install procedure \"%s\" "
|
||||
g_message (_("plug_in \"%s\" attempted to install procedure \"%s\" "
|
||||
"which fails to comply with the array parameter "
|
||||
"passing standard. Argument %d is noncompliant.",
|
||||
"passing standard. Argument %d is noncompliant."),
|
||||
current_plug_in->args[0], proc_install->name, i);
|
||||
return;
|
||||
}
|
||||
|
@ -2091,7 +2093,7 @@ plug_in_init_file (char *filename)
|
|||
|
||||
if (strcmp (name, plug_in_name) == 0)
|
||||
{
|
||||
g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename);
|
||||
g_print (_("duplicate plug-in: \"%s\" (skipping)\n"), filename);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -2265,7 +2267,7 @@ plug_in_callback (GtkWidget *widget,
|
|||
}
|
||||
else
|
||||
{
|
||||
g_message ("Uh-oh, no active gdisplay for the plug-in!");
|
||||
g_message (_("Uh-oh, no active gdisplay for the plug-in!"));
|
||||
g_free (args);
|
||||
return;
|
||||
}
|
||||
|
@ -2286,7 +2288,7 @@ plug_in_callback (GtkWidget *widget,
|
|||
}
|
||||
else
|
||||
{
|
||||
g_message ("Uh-oh, no active gdisplay for the temporary procedure!");
|
||||
g_message (_("Uh-oh, no active gdisplay for the temporary procedure!"));
|
||||
g_free (args);
|
||||
return;
|
||||
}
|
||||
|
@ -2294,7 +2296,7 @@ plug_in_callback (GtkWidget *widget,
|
|||
break;
|
||||
|
||||
default:
|
||||
g_error ("Unknown procedure type.");
|
||||
g_error (_("Unknown procedure type."));
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -2600,7 +2602,7 @@ plug_in_params_to_args (GPParam *params,
|
|||
colorarray[2] = params[i].data.d_color.blue;
|
||||
break;
|
||||
case PDB_REGION:
|
||||
g_message ("the \"region\" arg type is not currently supported");
|
||||
g_message (_("the \"region\" arg type is not currently supported"));
|
||||
break;
|
||||
case PDB_DISPLAY:
|
||||
args[i].value.pdb_int = params[i].data.d_display;
|
||||
|
@ -2765,7 +2767,7 @@ plug_in_args_to_params (Argument *args,
|
|||
}
|
||||
break;
|
||||
case PDB_REGION:
|
||||
g_message ("the \"region\" arg type is not currently supported");
|
||||
g_message (_("the \"region\" arg type is not currently supported"));
|
||||
break;
|
||||
case PDB_DISPLAY:
|
||||
params[i].data.d_display = args[i].value.pdb_int;
|
||||
|
@ -2882,7 +2884,7 @@ plug_in_params_destroy (GPParam *params,
|
|||
case PDB_COLOR:
|
||||
break;
|
||||
case PDB_REGION:
|
||||
g_message ("the \"region\" arg type is not currently supported");
|
||||
g_message (_("the \"region\" arg type is not currently supported"));
|
||||
break;
|
||||
case PDB_DISPLAY:
|
||||
case PDB_IMAGE:
|
||||
|
@ -2967,7 +2969,7 @@ plug_in_args_destroy (Argument *args,
|
|||
g_free (args[i].value.pdb_pointer);
|
||||
break;
|
||||
case PDB_REGION:
|
||||
g_message ("the \"region\" arg type is not currently supported");
|
||||
g_message (_("the \"region\" arg type is not currently supported"));
|
||||
break;
|
||||
case PDB_DISPLAY:
|
||||
case PDB_IMAGE:
|
||||
|
@ -3156,7 +3158,7 @@ plug_in_progress_init (PlugIn *plug_in,
|
|||
gtk_box_pack_start (GTK_BOX (vbox), plug_in->progress_bar, TRUE, TRUE, 0);
|
||||
gtk_widget_show (plug_in->progress_bar);
|
||||
|
||||
button = gtk_button_new_with_label ("Cancel");
|
||||
button = gtk_button_new_with_label (_("Cancel"));
|
||||
gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
|
||||
(GtkSignalFunc) gtk_widget_destroy,
|
||||
GTK_OBJECT (plug_in->progress));
|
||||
|
|
|
@ -48,6 +48,7 @@
|
|||
#include "tools.h"
|
||||
#include "undo.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
@ -205,25 +206,25 @@ file_prefs_ok_callback (GtkWidget *widget,
|
|||
|
||||
if (levels_of_undo < 0)
|
||||
{
|
||||
g_message ("Error: Levels of undo must be zero or greater.");
|
||||
g_message (_("Error: Levels of undo must be zero or greater."));
|
||||
levels_of_undo = old_levels_of_undo;
|
||||
return;
|
||||
}
|
||||
if (marching_speed < 50)
|
||||
{
|
||||
g_message ("Error: Marching speed must be 50 or greater.");
|
||||
g_message (_("Error: Marching speed must be 50 or greater."));
|
||||
marching_speed = old_marching_speed;
|
||||
return;
|
||||
}
|
||||
if (default_width < 1)
|
||||
{
|
||||
g_message ("Error: Default width must be one or greater.");
|
||||
g_message (_("Error: Default width must be one or greater."));
|
||||
default_width = old_default_width;
|
||||
return;
|
||||
}
|
||||
if (default_height < 1)
|
||||
{
|
||||
g_message ("Error: Default height must be one or greater.");
|
||||
g_message (_("Error: Default height must be one or greater."));
|
||||
default_height = old_default_height;
|
||||
return;
|
||||
}
|
||||
|
@ -430,7 +431,7 @@ file_prefs_save_callback (GtkWidget *widget,
|
|||
gradient_path = save_gradient_path;
|
||||
|
||||
if (restart_notification)
|
||||
g_message ("You will need to restart GIMP for these changes to take effect.");
|
||||
g_message (_("You will need to restart GIMP for these changes to take effect."));
|
||||
|
||||
g_list_free (update);
|
||||
g_list_free (remove);
|
||||
|
@ -644,18 +645,18 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
GSList *group;
|
||||
char *transparencies[] =
|
||||
{
|
||||
"Light Checks",
|
||||
"Mid-Tone Checks",
|
||||
"Dark Checks",
|
||||
"White Only",
|
||||
"Gray Only",
|
||||
"Black Only",
|
||||
N_("Light Checks"),
|
||||
N_("Mid-Tone Checks"),
|
||||
N_("Dark Checks"),
|
||||
N_("White Only"),
|
||||
N_("Gray Only"),
|
||||
N_("Black Only"),
|
||||
};
|
||||
char *checks[] =
|
||||
{
|
||||
"Small Checks",
|
||||
"Medium Checks",
|
||||
"Large Checks",
|
||||
N_("Small Checks"),
|
||||
N_("Medium Checks"),
|
||||
N_("Large Checks"),
|
||||
};
|
||||
int transparency_vals[] =
|
||||
{
|
||||
|
@ -677,32 +678,32 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
int unit;
|
||||
} mem_size_units[] =
|
||||
{
|
||||
{"Bytes", 1},
|
||||
{"KiloBytes", 1024},
|
||||
{"MegaBytes", (1024*1024)}
|
||||
{N_("Bytes"), 1},
|
||||
{N_("KiloBytes"), 1024},
|
||||
{N_("MegaBytes"), (1024*1024)}
|
||||
};
|
||||
struct {
|
||||
char *label;
|
||||
char **mpath;
|
||||
} dirs[] =
|
||||
{
|
||||
{"Temp dir:", &edit_temp_path},
|
||||
{"Swap dir:", &edit_swap_path},
|
||||
{"Brushes dir:", &edit_brush_path},
|
||||
{"Gradients dir:", &edit_gradient_path},
|
||||
{"Patterns dir:", &edit_pattern_path},
|
||||
{"Palette dir:", &edit_palette_path},
|
||||
{"Plug-in dir:", &edit_plug_in_path}
|
||||
{N_("Temp dir:"), &edit_temp_path},
|
||||
{N_("Swap dir:"), &edit_swap_path},
|
||||
{N_("Brushes dir:"), &edit_brush_path},
|
||||
{N_("Gradients dir:"), &edit_gradient_path},
|
||||
{N_("Patterns dir:"), &edit_pattern_path},
|
||||
{N_("Palette dir:"), &edit_palette_path},
|
||||
{N_("Plug-in dir:"), &edit_plug_in_path}
|
||||
};
|
||||
struct {
|
||||
char *label;
|
||||
int size;
|
||||
} preview_sizes[] =
|
||||
{
|
||||
{"None",0},
|
||||
{"Small",32},
|
||||
{"Medium",64},
|
||||
{"Large",128}
|
||||
{N_("None"),0},
|
||||
{N_("Small"),32},
|
||||
{N_("Medium"),64},
|
||||
{N_("Large"),128}
|
||||
};
|
||||
int ntransparencies = sizeof (transparencies) / sizeof (transparencies[0]);
|
||||
int nchecks = sizeof (checks) / sizeof (checks[0]);
|
||||
|
@ -772,7 +773,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
|
||||
prefs_dlg = gtk_dialog_new ();
|
||||
gtk_window_set_wmclass (GTK_WINDOW (prefs_dlg), "preferences", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (prefs_dlg), "Preferences");
|
||||
gtk_window_set_title (GTK_WINDOW (prefs_dlg), _("Preferences"));
|
||||
|
||||
/* handle the wm close signal */
|
||||
gtk_signal_connect (GTK_OBJECT (prefs_dlg), "delete_event",
|
||||
|
@ -782,7 +783,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_container_border_width (GTK_CONTAINER (GTK_DIALOG (prefs_dlg)->action_area), 2);
|
||||
|
||||
/* Action area */
|
||||
button = gtk_button_new_with_label ("OK");
|
||||
button = gtk_button_new_with_label (_("OK"));
|
||||
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
|
||||
gtk_signal_connect (GTK_OBJECT (button), "clicked",
|
||||
(GtkSignalFunc) file_prefs_ok_callback,
|
||||
|
@ -792,7 +793,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_widget_grab_default (button);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_button_new_with_label ("Save");
|
||||
button = gtk_button_new_with_label (_("Save"));
|
||||
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
|
||||
gtk_signal_connect (GTK_OBJECT (button), "clicked",
|
||||
(GtkSignalFunc) file_prefs_save_callback,
|
||||
|
@ -802,7 +803,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_widget_grab_default (button);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_button_new_with_label ("Cancel");
|
||||
button = gtk_button_new_with_label (_("Cancel"));
|
||||
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
|
||||
gtk_signal_connect (GTK_OBJECT (button), "clicked",
|
||||
(GtkSignalFunc) file_prefs_cancel_callback,
|
||||
|
@ -816,7 +817,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
notebook, TRUE, TRUE, 0);
|
||||
|
||||
/* Display page */
|
||||
out_frame = gtk_frame_new ("Display settings");
|
||||
out_frame = gtk_frame_new (_("Display settings"));
|
||||
gtk_container_border_width (GTK_CONTAINER (out_frame), 10);
|
||||
gtk_widget_show (out_frame);
|
||||
|
||||
|
@ -829,7 +830,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0);
|
||||
gtk_widget_show (hbox);
|
||||
|
||||
frame = gtk_frame_new ("Default image size");
|
||||
frame = gtk_frame_new (_("Default image size"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0);
|
||||
gtk_widget_show (frame);
|
||||
|
||||
|
@ -844,13 +845,13 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_box_pack_start (GTK_BOX (abox), table, TRUE, TRUE, 0);
|
||||
gtk_widget_show (table);
|
||||
|
||||
label = gtk_label_new ("Width:");
|
||||
label = gtk_label_new (_("Width:"));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1,
|
||||
GTK_FILL, GTK_FILL, 0, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
label = gtk_label_new ("Height:");
|
||||
label = gtk_label_new (_("Height:"));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2,
|
||||
GTK_FILL, GTK_FILL, 0, 0);
|
||||
|
@ -881,7 +882,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
&default_height);
|
||||
gtk_widget_show (spinbutton);
|
||||
|
||||
frame = gtk_frame_new ("Default image type");
|
||||
frame = gtk_frame_new (_("Default image type"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0);
|
||||
gtk_widget_show (frame);
|
||||
|
||||
|
@ -890,7 +891,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_container_add (GTK_CONTAINER (frame), radio_box);
|
||||
gtk_widget_show (radio_box);
|
||||
|
||||
button = gtk_radio_button_new_with_label (NULL, "RGB");
|
||||
button = gtk_radio_button_new_with_label (NULL, _("RGB"));
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (button));
|
||||
gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0);
|
||||
gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) RGB);
|
||||
|
@ -900,7 +901,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
(GtkSignalFunc) file_prefs_toggle_callback,
|
||||
&default_type);
|
||||
gtk_widget_show (button);
|
||||
button = gtk_radio_button_new_with_label (group, "Grayscale");
|
||||
button = gtk_radio_button_new_with_label (group, _("Grayscale"));
|
||||
group = gtk_radio_button_group (GTK_RADIO_BUTTON (button));
|
||||
gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0);
|
||||
gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) GRAY);
|
||||
|
@ -914,7 +915,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0);
|
||||
gtk_widget_show (hbox);
|
||||
|
||||
label = gtk_label_new ("Preview size:");
|
||||
label = gtk_label_new (_("Preview size:"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
@ -936,7 +937,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
if (preview_size==preview_sizes[i].size)
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU (optionmenu),i);
|
||||
|
||||
button = gtk_check_button_new_with_label("Cubic interpolation");
|
||||
button = gtk_check_button_new_with_label(_("Cubic interpolation"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
|
||||
cubic_interpolation);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), button, TRUE, TRUE, 0);
|
||||
|
@ -949,7 +950,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0);
|
||||
gtk_widget_show (hbox);
|
||||
|
||||
frame = gtk_frame_new ("Transparency Type");
|
||||
frame = gtk_frame_new (_("Transparency Type"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0);
|
||||
gtk_widget_show (frame);
|
||||
|
||||
|
@ -973,7 +974,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
&transparency_type);
|
||||
gtk_widget_show (button);
|
||||
}
|
||||
frame = gtk_frame_new ("Check Size");
|
||||
frame = gtk_frame_new (_("Check Size"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0);
|
||||
gtk_widget_show (frame);
|
||||
|
||||
|
@ -998,11 +999,11 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_widget_show (button);
|
||||
}
|
||||
|
||||
label = gtk_label_new ("Display");
|
||||
label = gtk_label_new (_("Display"));
|
||||
gtk_notebook_append_page (GTK_NOTEBOOK(notebook), out_frame, label);
|
||||
|
||||
/* Interface */
|
||||
out_frame = gtk_frame_new ("Interface settings");
|
||||
out_frame = gtk_frame_new (_("Interface settings"));
|
||||
gtk_container_border_width (GTK_CONTAINER (out_frame), 10);
|
||||
gtk_widget_show (out_frame);
|
||||
|
||||
|
@ -1011,7 +1012,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_container_add (GTK_CONTAINER (out_frame), vbox);
|
||||
gtk_widget_show (vbox);
|
||||
|
||||
button = gtk_check_button_new_with_label("Resize window on zoom");
|
||||
button = gtk_check_button_new_with_label(_("Resize window on zoom"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
|
||||
allow_resize_windows);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
|
||||
|
@ -1020,7 +1021,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
&allow_resize_windows);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_check_button_new_with_label("Perfect-but-slow pointer tracking");
|
||||
button = gtk_check_button_new_with_label(_("Perfect-but-slow pointer tracking"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
|
||||
perfectmouse);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
|
||||
|
@ -1032,7 +1033,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
/* Don't show the Auto-save button until we really
|
||||
have auto-saving in the gimp.
|
||||
|
||||
button = gtk_check_button_new_with_label("Auto save");
|
||||
button = gtk_check_button_new_with_label(_("Auto save"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
|
||||
auto_save);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
|
||||
|
@ -1042,7 +1043,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_widget_show (button);
|
||||
*/
|
||||
|
||||
button = gtk_check_button_new_with_label("Disable cursor updating");
|
||||
button = gtk_check_button_new_with_label(_("Disable cursor updating"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
|
||||
no_cursor_updating);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
|
||||
|
@ -1051,7 +1052,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
&no_cursor_updating);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_check_button_new_with_label("Show tool tips");
|
||||
button = gtk_check_button_new_with_label(_("Show tool tips"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
|
||||
show_tool_tips);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
|
||||
|
@ -1060,7 +1061,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
&show_tool_tips);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_check_button_new_with_label("Show rulers");
|
||||
button = gtk_check_button_new_with_label(_("Show rulers"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
|
||||
show_rulers);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
|
||||
|
@ -1069,7 +1070,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
&show_rulers);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_check_button_new_with_label("Show statusbar");
|
||||
button = gtk_check_button_new_with_label(_("Show statusbar"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
|
||||
show_statusbar);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
|
||||
|
@ -1082,7 +1083,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
gtk_widget_show (hbox);
|
||||
|
||||
label = gtk_label_new ("Levels of undo:");
|
||||
label = gtk_label_new (_("Levels of undo:"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
@ -1102,7 +1103,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
gtk_widget_show (hbox);
|
||||
|
||||
label = gtk_label_new ("Marching ants speed:");
|
||||
label = gtk_label_new (_("Marching ants speed:"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
@ -1122,7 +1123,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
gtk_widget_show (hbox);
|
||||
|
||||
label = gtk_label_new ("Recent Documents list size:");
|
||||
label = gtk_label_new (_("Recent Documents list size:"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
@ -1138,11 +1139,11 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
&edit_last_opened_size);
|
||||
gtk_widget_show (spinbutton);
|
||||
|
||||
label = gtk_label_new ("Interface");
|
||||
label = gtk_label_new (_("Interface"));
|
||||
gtk_notebook_append_page (GTK_NOTEBOOK(notebook), out_frame, label);
|
||||
|
||||
/* Environment */
|
||||
out_frame = gtk_frame_new ("Environment settings");
|
||||
out_frame = gtk_frame_new (_("Environment settings"));
|
||||
gtk_container_border_width (GTK_CONTAINER (out_frame), 10);
|
||||
gtk_widget_set_usize (out_frame, 320, 200);
|
||||
gtk_widget_show (out_frame);
|
||||
|
@ -1152,7 +1153,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_container_add (GTK_CONTAINER (out_frame), vbox);
|
||||
gtk_widget_show (vbox);
|
||||
|
||||
button = gtk_check_button_new_with_label("Conservative memory usage");
|
||||
button = gtk_check_button_new_with_label(_("Conservative memory usage"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
|
||||
stingy_memory_use);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
|
||||
|
@ -1165,7 +1166,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
gtk_widget_show (hbox);
|
||||
|
||||
label = gtk_label_new ("Tile cache size:");
|
||||
label = gtk_label_new (_("Tile cache size:"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
@ -1201,7 +1202,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
if (mem_size_unit == mem_size_units[i].unit)
|
||||
gtk_option_menu_set_history(GTK_OPTION_MENU (optionmenu),i);
|
||||
|
||||
button = gtk_check_button_new_with_label("Install colormap (8-bit only)");
|
||||
button = gtk_check_button_new_with_label(_("Install colormap (8-bit only)"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
|
||||
install_cmap);
|
||||
gtk_signal_connect (GTK_OBJECT (button), "toggled",
|
||||
|
@ -1212,7 +1213,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_widget_set_sensitive (GTK_WIDGET(button), FALSE);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_check_button_new_with_label("Colormap cycling (8-bit only)");
|
||||
button = gtk_check_button_new_with_label(_("Colormap cycling (8-bit only)"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
|
||||
cycled_marching_ants);
|
||||
gtk_signal_connect (GTK_OBJECT (button), "toggled",
|
||||
|
@ -1223,11 +1224,11 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_widget_set_sensitive (GTK_WIDGET(button), FALSE);
|
||||
gtk_widget_show (button);
|
||||
|
||||
label = gtk_label_new ("Environment");
|
||||
label = gtk_label_new (_("Environment"));
|
||||
gtk_notebook_append_page (GTK_NOTEBOOK(notebook), out_frame, label);
|
||||
|
||||
/* Session Management */
|
||||
out_frame = gtk_frame_new ("Session managment");
|
||||
out_frame = gtk_frame_new (_("Session managment"));
|
||||
gtk_container_border_width (GTK_CONTAINER (out_frame), 10);
|
||||
gtk_widget_set_usize (out_frame, 320, 200);
|
||||
gtk_widget_show (out_frame);
|
||||
|
@ -1237,7 +1238,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_container_add (GTK_CONTAINER (out_frame), vbox);
|
||||
gtk_widget_show (vbox);
|
||||
|
||||
button = gtk_check_button_new_with_label ("Save window positions on exit");
|
||||
button = gtk_check_button_new_with_label (_("Save window positions on exit"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
|
||||
save_session_info);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
|
||||
|
@ -1251,14 +1252,14 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
gtk_widget_show (hbox);
|
||||
|
||||
button = gtk_button_new_with_label ("Clear saved window positions");
|
||||
button = gtk_button_new_with_label (_("Clear saved window positions"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, FALSE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (button), "clicked",
|
||||
(GtkSignalFunc) file_prefs_clear_session_info_callback,
|
||||
NULL);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_check_button_new_with_label ("Always try to restore session");
|
||||
button = gtk_check_button_new_with_label (_("Always try to restore session"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
|
||||
always_restore_session);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
|
||||
|
@ -1267,7 +1268,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
&always_restore_session);
|
||||
gtk_widget_show (button);
|
||||
|
||||
button = gtk_check_button_new_with_label ("Save device status on exit");
|
||||
button = gtk_check_button_new_with_label (_("Save device status on exit"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button),
|
||||
save_device_status);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
|
||||
|
@ -1276,13 +1277,13 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
&save_device_status);
|
||||
gtk_widget_show (button);
|
||||
|
||||
label = gtk_label_new ("Session");
|
||||
label = gtk_label_new (_("Session"));
|
||||
gtk_notebook_append_page (GTK_NOTEBOOK(notebook), out_frame, label);
|
||||
|
||||
gtk_widget_show (notebook);
|
||||
|
||||
/* Directories */
|
||||
out_frame = gtk_frame_new ("Directories settings");
|
||||
out_frame = gtk_frame_new (_("Directories settings"));
|
||||
gtk_container_border_width (GTK_CONTAINER (out_frame), 10);
|
||||
gtk_widget_set_usize (out_frame, 320, 200);
|
||||
gtk_widget_show (out_frame);
|
||||
|
@ -1317,7 +1318,7 @@ file_pref_cmd_callback (GtkWidget *widget,
|
|||
gtk_widget_show (entry);
|
||||
}
|
||||
|
||||
label = gtk_label_new ("Directories");
|
||||
label = gtk_label_new (_("Directories"));
|
||||
gtk_notebook_append_page (GTK_NOTEBOOK(notebook), out_frame, label);
|
||||
|
||||
gtk_widget_show (notebook);
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
#include "appenv.h"
|
||||
#include "resize.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#define EVENT_MASK GDK_EXPOSURE_MASK | GDK_BUTTON_PRESS_MASK
|
||||
#define DRAWING_AREA_SIZE 200
|
||||
#define TEXT_WIDTH 35
|
||||
|
@ -101,11 +103,11 @@ resize_widget_new (ResizeType type,
|
|||
switch (type)
|
||||
{
|
||||
case ScaleWidget:
|
||||
resize->resize_widget = gtk_frame_new ("Scale");
|
||||
resize->resize_widget = gtk_frame_new (_("Scale"));
|
||||
table = gtk_table_new (4, 2, TRUE);
|
||||
break;
|
||||
case ResizeWidget:
|
||||
resize->resize_widget = gtk_frame_new ("Resize");
|
||||
resize->resize_widget = gtk_frame_new (_("Resize"));
|
||||
table = gtk_table_new (6, 2, TRUE);
|
||||
break;
|
||||
}
|
||||
|
@ -121,7 +123,7 @@ resize_widget_new (ResizeType type,
|
|||
|
||||
/* the width label and entry */
|
||||
sprintf (size, "%d", width);
|
||||
label = gtk_label_new ("New width:");
|
||||
label = gtk_label_new (_("New width:"));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2);
|
||||
|
@ -138,7 +140,7 @@ resize_widget_new (ResizeType type,
|
|||
|
||||
/* the height label and entry */
|
||||
sprintf (size, "%d", height);
|
||||
label = gtk_label_new ("New height:");
|
||||
label = gtk_label_new (_("New height:"));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2);
|
||||
|
@ -155,7 +157,7 @@ resize_widget_new (ResizeType type,
|
|||
|
||||
/* the x scale ratio label and entry */
|
||||
sprintf (ratio_text, "%0.4f", resize->ratio_x);
|
||||
label = gtk_label_new ("X ratio:");
|
||||
label = gtk_label_new (_("X ratio:"));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 2, 3,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2);
|
||||
|
@ -172,7 +174,7 @@ resize_widget_new (ResizeType type,
|
|||
|
||||
/* the y scale ratio label and entry */
|
||||
sprintf (ratio_text, "%0.4f", resize->ratio_y);
|
||||
label = gtk_label_new ("Y ratio:");
|
||||
label = gtk_label_new (_("Y ratio:"));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 3, 4,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2);
|
||||
|
@ -191,7 +193,7 @@ resize_widget_new (ResizeType type,
|
|||
{
|
||||
/* the off_x label and entry */
|
||||
sprintf (size, "%d", 0);
|
||||
label = gtk_label_new ("X Offset:");
|
||||
label = gtk_label_new (_("Offset X:"));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 4, 5,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2);
|
||||
|
@ -208,7 +210,7 @@ resize_widget_new (ResizeType type,
|
|||
|
||||
/* the off_y label and entry */
|
||||
sprintf (size, "%d", 0);
|
||||
label = gtk_label_new ("Y Offset:");
|
||||
label = gtk_label_new (_("Offset Y:"));
|
||||
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
|
||||
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 5, 6,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2);
|
||||
|
@ -225,7 +227,7 @@ resize_widget_new (ResizeType type,
|
|||
}
|
||||
|
||||
/* the constrain toggle button */
|
||||
constrain = gtk_check_button_new_with_label ("Constrain Ratio");
|
||||
constrain = gtk_check_button_new_with_label (_("Constrain Ratio"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (constrain), private->constrain);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), constrain, FALSE, FALSE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (constrain), "toggled",
|
||||
|
|
|
@ -54,6 +54,8 @@
|
|||
#include "gimprc.h"
|
||||
#include "session.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
static void sessionrc_write_info (SessionInfo *, FILE *);
|
||||
static void session_open_dialog (SessionInfo *);
|
||||
static void session_reset_open_state (SessionInfo *);
|
||||
|
@ -141,13 +143,13 @@ save_sessionrc (void)
|
|||
if (!fp)
|
||||
return;
|
||||
|
||||
fprintf(fp, "# GIMP sessionrc\n");
|
||||
fprintf(fp, "# This file takes session-specific info (that is info,\n");
|
||||
fprintf(fp, "# you want to keep between two gimp-sessions). You are\n");
|
||||
fprintf(fp, "# not supposed to edit it manually, but of course you\n");
|
||||
fprintf(fp, "# can do. This file will be entirely rewritten every time\n");
|
||||
fprintf(fp, "# you quit the gimp. If this file isn't found, defaults\n");
|
||||
fprintf(fp, "# are used.\n\n");
|
||||
fprintf(fp, _("# GIMP sessionrc\n"));
|
||||
fprintf(fp, _("# This file takes session-specific info (that is info,\n"));
|
||||
fprintf(fp, _("# you want to keep between two gimp-sessions). You are\n"));
|
||||
fprintf(fp, _("# not supposed to edit it manually, but of course you\n"));
|
||||
fprintf(fp, _("# can do. This file will be entirely rewritten every time\n"));
|
||||
fprintf(fp, _("# you quit the gimp. If this file isn't found, defaults\n"));
|
||||
fprintf(fp, _("# are used.\n\n"));
|
||||
|
||||
/* save window geometries */
|
||||
g_list_foreach (session_info_updates, (GFunc)sessionrc_write_info, fp);
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
#include "interface.h"
|
||||
#include "wilber.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#define TIPS_FILE_NAME "gimp_tips.txt"
|
||||
|
||||
static int tips_dialog_hide (GtkWidget *widget, gpointer data);
|
||||
|
@ -57,7 +59,7 @@ tips_dialog_create ()
|
|||
{
|
||||
tips_dialog = gtk_window_new (GTK_WINDOW_DIALOG);
|
||||
gtk_window_set_wmclass (GTK_WINDOW (tips_dialog), "tip_of_the_day", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (tips_dialog), "GIMP Tip of the day");
|
||||
gtk_window_set_title (GTK_WINDOW (tips_dialog), _("GIMP Tip of the day"));
|
||||
gtk_window_position (GTK_WINDOW (tips_dialog), GTK_WIN_POS_CENTER);
|
||||
gtk_signal_connect (GTK_OBJECT (tips_dialog), "delete_event",
|
||||
GTK_SIGNAL_FUNC (tips_dialog_hide), NULL);
|
||||
|
@ -102,27 +104,27 @@ tips_dialog_create ()
|
|||
gtk_box_pack_start (GTK_BOX (hbox1), tips_label, TRUE, TRUE, 3);
|
||||
gtk_widget_show (tips_label);
|
||||
|
||||
button_close = gtk_button_new_with_label ("Close");
|
||||
button_close = gtk_button_new_with_label (_("Close"));
|
||||
gtk_signal_connect (GTK_OBJECT (button_close), "clicked",
|
||||
GTK_SIGNAL_FUNC (tips_dialog_hide), NULL);
|
||||
gtk_box_pack_end (GTK_BOX (hbox2), button_close, FALSE, TRUE, 0);
|
||||
gtk_widget_show (button_close);
|
||||
|
||||
button_next = gtk_button_new_with_label ("Next Tip");
|
||||
button_next = gtk_button_new_with_label (_("Next Tip"));
|
||||
gtk_signal_connect (GTK_OBJECT (button_next), "clicked",
|
||||
GTK_SIGNAL_FUNC (tips_show_next),
|
||||
(gpointer) "next");
|
||||
gtk_box_pack_end (GTK_BOX (hbox2), button_next, FALSE, TRUE, 0);
|
||||
gtk_widget_show (button_next);
|
||||
|
||||
button_prev = gtk_button_new_with_label ("Prev. Tip");
|
||||
button_prev = gtk_button_new_with_label (_("Prev. Tip"));
|
||||
gtk_signal_connect (GTK_OBJECT (button_prev), "clicked",
|
||||
GTK_SIGNAL_FUNC (tips_show_next),
|
||||
(gpointer) "prev");
|
||||
gtk_box_pack_end (GTK_BOX (hbox2), button_prev, FALSE, TRUE, 0);
|
||||
gtk_widget_show (button_prev);
|
||||
|
||||
button_check = gtk_check_button_new_with_label ("Show tip next time");
|
||||
button_check = gtk_check_button_new_with_label (_("Show tip next time"));
|
||||
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button_check),
|
||||
show_tips);
|
||||
gtk_signal_connect (GTK_OBJECT (button_check), "toggled",
|
||||
|
@ -220,9 +222,9 @@ read_tips_file (char *filename)
|
|||
fp = fopen (filename, "rb");
|
||||
if (!fp)
|
||||
{
|
||||
store_tip ("Your GIMP tips file appears to be missing!\n"
|
||||
store_tip (_("Your GIMP tips file appears to be missing!\n"
|
||||
"There should be a file called " TIPS_FILE_NAME " in the\n"
|
||||
"GIMP data directory. Please check your installation.");
|
||||
"GIMP data directory. Please check your installation."));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include "interface.h"
|
||||
#include "gimprc.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
static void install_run (InstallCallback);
|
||||
static void install_help (InstallCallback);
|
||||
|
@ -48,7 +49,7 @@ install_verify (InstallCallback install_callback)
|
|||
filename = gimp_directory ();
|
||||
if ('\000' == filename[0])
|
||||
{
|
||||
g_message ("No home directory--skipping GIMP user installation.");
|
||||
g_message (_("No home directory--skipping GIMP user installation."));
|
||||
(* install_callback) ();
|
||||
}
|
||||
|
||||
|
@ -63,9 +64,9 @@ install_verify (InstallCallback install_callback)
|
|||
/* Otherwise, prepare for installation */
|
||||
else if (no_interface)
|
||||
{
|
||||
g_print ("The GIMP is not properly installed for the current user\n");
|
||||
g_print ("User installation was skipped because the '--nointerface' flag was encountered\n");
|
||||
g_print ("To perform user installation, run the GIMP without the '--nointerface' flag\n");
|
||||
g_print (_("The GIMP is not properly installed for the current user\n"));
|
||||
g_print (_("User installation was skipped because the '--nointerface' flag was encountered\n"));
|
||||
g_print (_("To perform user installation, run the GIMP without the '--nointerface' flag\n"));
|
||||
|
||||
(* install_callback) ();
|
||||
}
|
||||
|
@ -84,9 +85,9 @@ install_help (InstallCallback callback)
|
|||
{
|
||||
static ActionAreaItem action_items[] =
|
||||
{
|
||||
{ "Install", help_install_callback, NULL, NULL },
|
||||
{ "Ignore", help_ignore_callback, NULL, NULL },
|
||||
{ "Quit", help_quit_callback, NULL, NULL }
|
||||
{ N_("Install"), help_install_callback, NULL, NULL },
|
||||
{ N_("Ignore"), help_ignore_callback, NULL, NULL },
|
||||
{ N_("Quit"), help_quit_callback, NULL, NULL }
|
||||
};
|
||||
GtkWidget *text;
|
||||
GtkWidget *table;
|
||||
|
@ -101,7 +102,7 @@ install_help (InstallCallback callback)
|
|||
GTK_SIGNAL_FUNC (gtk_true),
|
||||
NULL);
|
||||
gtk_window_set_wmclass (GTK_WINDOW (help_widget), "gimp_installation", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (help_widget), "GIMP Installation");
|
||||
gtk_window_set_title (GTK_WINDOW (help_widget), _("GIMP Installation"));
|
||||
gtk_window_position (GTK_WINDOW (help_widget), GTK_WIN_POS_CENTER);
|
||||
|
||||
vadj = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 0.0, 0.0, 0.0, 0.0));
|
||||
|
@ -137,188 +138,188 @@ install_help (InstallCallback callback)
|
|||
gtk_widget_realize (text);
|
||||
|
||||
gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL,
|
||||
"The GIMP - GNU Image Manipulation Program\n\n", -1);
|
||||
_("The GIMP - GNU Image Manipulation Program\n\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"Copyright (C) 1995 Spencer Kimball and Peter Mattis\n", -1);
|
||||
_("Copyright (C) 1995 Spencer Kimball and Peter Mattis\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\n", -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"This program is free software; you can redistribute it and/or modify\n", -1);
|
||||
_("This program is free software; you can redistribute it and/or modify\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"it under the terms of the GNU General Public License as published by\n", -1);
|
||||
_("it under the terms of the GNU General Public License as published by\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"the Free Software Foundation; either version 2 of the License, or\n", -1);
|
||||
_("the Free Software Foundation; either version 2 of the License, or\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"(at your option) any later version.\n", -1);
|
||||
_("(at your option) any later version.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\n", -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"This program is distributed in the hope that it will be useful,\n", -1);
|
||||
_("This program is distributed in the hope that it will be useful,\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"but WITHOUT ANY WARRANTY; without even the implied warranty of\n", -1);
|
||||
_("but WITHOUT ANY WARRANTY; without even the implied warranty of\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n", -1);
|
||||
_("MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"See the GNU General Public License for more details.\n", -1);
|
||||
_("See the GNU General Public License for more details.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\n", -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"You should have received a copy of the GNU General Public License\n", -1);
|
||||
_("You should have received a copy of the GNU General Public License\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"along with this program; if not, write to the Free Software\n", -1);
|
||||
_("along with this program; if not, write to the Free Software\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n", -1);
|
||||
_("Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\n\n", -1);
|
||||
|
||||
gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL,
|
||||
"Personal GIMP Installation\n\n", -1);
|
||||
_("Personal GIMP Installation\n\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"For a proper GIMP installation, a subdirectory called\n", -1);
|
||||
_("For a proper GIMP installation, a subdirectory called\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
gimp_directory (), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
" needs to be created. This\n", -1);
|
||||
_(" needs to be created. This\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"subdirectory will contain a number of important files:\n\n", -1);
|
||||
_("subdirectory will contain a number of important files:\n\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"gimprc\n", -1);
|
||||
_("gimprc\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThe gimprc is used to store personal preferences\n", -1);
|
||||
_("\t\tThe gimprc is used to store personal preferences\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tsuch as default GIMP behaviors & plug-in hotkeys.\n", -1);
|
||||
_("\t\tsuch as default GIMP behaviors & plug-in hotkeys.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tPaths to search for brushes, palettes, gradients\n", -1);
|
||||
_("\t\tPaths to search for brushes, palettes, gradients\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tpatterns, and plug-ins are also configured here.\n", -1);
|
||||
_("\t\tpatterns, and plug-ins are also configured here.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"pluginrc\n", -1);
|
||||
_("pluginrc\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tPlug-ins and extensions are extern programs run by\n", -1);
|
||||
_("\t\tPlug-ins and extensions are extern programs run by\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tthe GIMP which provide additional functionality.\n", -1);
|
||||
_("\t\tthe GIMP which provide additional functionality.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThese programs are searched for at run-time and\n", -1);
|
||||
_("\t\tThese programs are searched for at run-time and\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tinformation about their functionality and mod-times\n", -1);
|
||||
_("\t\tinformation about their functionality and mod-times\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tis cached in this file. This file is intended to\n", -1);
|
||||
_("\t\tis cached in this file. This file is intended to\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tbe GIMP-readable only, and should not be edited.\n", -1);
|
||||
_("\t\tbe GIMP-readable only, and should not be edited.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"brushes\n", -1);
|
||||
_("brushes\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThis is a subdirectory which can be used to store\n", -1);
|
||||
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tuser defined brushes. The default gimprc file\n", -1);
|
||||
_("\t\tuser defined brushes. The default gimprc file\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tchecks this subdirectory in addition to the system-\n", -1);
|
||||
_("\t\tchecks this subdirectory in addition to the system-\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\twide gimp brushes installation when searching for\n", -1);
|
||||
_("\t\twide gimp brushes installation when searching for\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tbrushes.\n", -1);
|
||||
_("\t\tbrushes.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"gradients\n", -1);
|
||||
_("gradients\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThis is a subdirectory which can be used to store\n", -1);
|
||||
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tuser defined gradients. The default gimprc file\n", -1);
|
||||
_("\t\tuser defined gradients. The default gimprc file\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tchecks this subdirectory in addition to the system-\n", -1);
|
||||
_("\t\tchecks this subdirectory in addition to the system-\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\twide gimp gradients installation when searching for\n", -1);
|
||||
_("\t\twide gimp gradients installation when searching for\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tgradients.\n", -1);
|
||||
_("\t\tgradients.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"gfig\n", -1);
|
||||
_("gfig\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThis is a subdirectory which can be used to store\n", -1);
|
||||
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tuser defined figures to be used by the gfig plug-in.\n", -1);
|
||||
_("\t\tuser defined figures to be used by the gfig plug-in.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThe default gimprc file checks this subdirectory in\n", -1);
|
||||
_("\t\tThe default gimprc file checks this subdirectory in\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\taddition to the systemwide gimp gfig installation\n", -1);
|
||||
_("\t\taddition to the systemwide gimp gfig installation\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\twhen searching for gfig figures.\n", -1);
|
||||
_("\t\twhen searching for gfig figures.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"gflares\n", -1);
|
||||
_("gflares\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThis is a subdirectory which can be used to store\n", -1);
|
||||
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tuser defined gflares to be used by the gflare plug-in.\n", -1);
|
||||
_("\t\tuser defined gflares to be used by the gflare plug-in.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThe default gimprc file checks this subdirectory in\n", -1);
|
||||
_("\t\tThe default gimprc file checks this subdirectory in\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\taddition to the systemwide gimp gflares installation\n", -1);
|
||||
_("\t\taddition to the systemwide gimp gflares installation\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\twhen searching for gflares.\n", -1);
|
||||
_("\t\twhen searching for gflares.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"palettes\n", -1);
|
||||
_("palettes\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThis is a subdirectory which can be used to store\n", -1);
|
||||
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tuser defined palettes. The default gimprc file\n", -1);
|
||||
_("\t\tuser defined palettes. The default gimprc file\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tchecks only this subdirectory (not the system-wide\n", -1);
|
||||
_("\t\tchecks only this subdirectory (not the system-wide\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tinstallation) when searching for palettes. During\n", -1);
|
||||
_("\t\tinstallation) when searching for palettes. During\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tinstallation, the system palettes will be copied\n", -1);
|
||||
_("\t\tinstallation, the system palettes will be copied\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\there. This is done to allow modifications made to\n", -1);
|
||||
_("\t\there. This is done to allow modifications made to\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tpalettes during GIMP execution to persist across\n", -1);
|
||||
_("\t\tpalettes during GIMP execution to persist across\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tsessions.\n", -1);
|
||||
_("\t\tsessions.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"patterns\n", -1);
|
||||
_("patterns\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThis is a subdirectory which can be used to store\n", -1);
|
||||
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tuser defined patterns. The default gimprc file\n", -1);
|
||||
_("\t\tuser defined patterns. The default gimprc file\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tchecks this subdirectory in addition to the system-\n", -1);
|
||||
_("\t\tchecks this subdirectory in addition to the system-\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\twide gimp patterns installation when searching for\n", -1);
|
||||
_("\t\twide gimp patterns installation when searching for\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tpatterns.\n", -1);
|
||||
_("\t\tpatterns.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"plug-ins\n", -1);
|
||||
_("plug-ins\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThis is a subdirectory which can be used to store\n", -1);
|
||||
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tuser created, temporary, or otherwise non-system-\n", -1);
|
||||
_("\t\tuser created, temporary, or otherwise non-system-\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tsupported plug-ins. The default gimprc file\n", -1);
|
||||
_("\t\tsupported plug-ins. The default gimprc file\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tchecks this subdirectory in addition to the system-\n", -1);
|
||||
_("\t\tchecks this subdirectory in addition to the system-\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\twide GIMP plug-in directories when searching for\n", -1);
|
||||
_("\t\twide GIMP plug-in directories when searching for\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tplug-ins.\n", -1);
|
||||
_("\t\tplug-ins.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"scripts\n", -1);
|
||||
_("scripts\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThis subdirectory is used by the GIMP to store \n", -1);
|
||||
_("\t\tThis subdirectory is used by the GIMP to store \n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tuser created and installed scripts. The default gimprc\n", -1);
|
||||
_("\t\tuser created and installed scripts. The default gimprc\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tfile checks this subdirectory in addition to the system\n", -1);
|
||||
_("\t\tfile checks this subdirectory in addition to the system\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\t-wide gimp scripts subdirectory when searching for scripts\n", -1);
|
||||
_("\t\t-wide gimp scripts subdirectory when searching for scripts\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"tmp\n", -1);
|
||||
_("tmp\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThis subdirectory is used by the GIMP to temporarily\n", -1);
|
||||
_("\t\tThis subdirectory is used by the GIMP to temporarily\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tstore undo buffers to reduce memory usage. If GIMP is\n", -1);
|
||||
_("\t\tstore undo buffers to reduce memory usage. If GIMP is\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tunceremoniously killed, files may persist in this directory\n", -1);
|
||||
_("\t\tunceremoniously killed, files may persist in this directory\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tof the form: gimp<#>.<#>. These files are useless across\n", -1);
|
||||
_("\t\tof the form: gimp<#>.<#>. These files are useless across\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tGIMP sessions and can be destroyed with impunity.\n", -1);
|
||||
_("\t\tGIMP sessions and can be destroyed with impunity.\n"), -1);
|
||||
|
||||
gtk_widget_show (vsb);
|
||||
gtk_widget_show (text);
|
||||
|
@ -361,8 +362,8 @@ install_run (InstallCallback callback)
|
|||
{
|
||||
static ActionAreaItem action_items[] =
|
||||
{
|
||||
{ "Continue", install_continue_callback, NULL, NULL },
|
||||
{ "Quit", install_quit_callback, NULL, NULL }
|
||||
{ N_("Continue"), install_continue_callback, NULL, NULL },
|
||||
{ N_("Quit"), install_quit_callback, NULL, NULL }
|
||||
};
|
||||
GtkWidget *text;
|
||||
GtkWidget *table;
|
||||
|
@ -382,7 +383,7 @@ install_run (InstallCallback callback)
|
|||
GTK_SIGNAL_FUNC (gtk_true),
|
||||
NULL);
|
||||
gtk_window_set_wmclass (GTK_WINDOW (install_widget), "installation_log", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (install_widget), "Installation Log");
|
||||
gtk_window_set_title (GTK_WINDOW (install_widget), _("Installation Log"));
|
||||
gtk_window_position (GTK_WINDOW (install_widget), GTK_WIN_POS_CENTER);
|
||||
vadj = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 0.0, 0.0, 0.0, 0.0));
|
||||
vsb = gtk_vscrollbar_new (vadj);
|
||||
|
@ -413,7 +414,7 @@ install_run (InstallCallback callback)
|
|||
/* Realize the text widget before inserting text strings */
|
||||
gtk_widget_realize (text);
|
||||
|
||||
gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL, "User Installation Log\n\n", -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL, _("User Installation Log\n\n"), -1);
|
||||
|
||||
/* Generate output */
|
||||
if ((gimp_data_dir = getenv ("GIMP_DATADIR")) != NULL)
|
||||
|
@ -425,14 +426,14 @@ install_run (InstallCallback callback)
|
|||
{
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, buffer, -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
" does not exist. Cannot install.\n", -1);
|
||||
_(" does not exist. Cannot install.\n"), -1);
|
||||
executable = FALSE;
|
||||
}
|
||||
else if (! (S_IXUSR & stat_buf.st_mode) || ! (S_IRUSR & stat_buf.st_mode))
|
||||
{
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, buffer, -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
" has invalid permissions.\nCannot install.", -1);
|
||||
_(" has invalid permissions.\nCannot install."), -1);
|
||||
executable = FALSE;
|
||||
}
|
||||
|
||||
|
@ -452,14 +453,14 @@ install_run (InstallCallback callback)
|
|||
pclose (pfp);
|
||||
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\nInstallation successful!\n", -1);
|
||||
_("\nInstallation successful!\n"), -1);
|
||||
}
|
||||
else
|
||||
executable = FALSE;
|
||||
}
|
||||
if (executable == FALSE)
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\nInstallation failed. Contact system administrator.\n", -1);
|
||||
_("\nInstallation failed. Contact system administrator.\n"), -1);
|
||||
|
||||
gtk_widget_show (vsb);
|
||||
gtk_widget_show (text);
|
||||
|
|
205
app/install.c
205
app/install.c
|
@ -26,6 +26,7 @@
|
|||
#include "interface.h"
|
||||
#include "gimprc.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
static void install_run (InstallCallback);
|
||||
static void install_help (InstallCallback);
|
||||
|
@ -48,7 +49,7 @@ install_verify (InstallCallback install_callback)
|
|||
filename = gimp_directory ();
|
||||
if ('\000' == filename[0])
|
||||
{
|
||||
g_message ("No home directory--skipping GIMP user installation.");
|
||||
g_message (_("No home directory--skipping GIMP user installation."));
|
||||
(* install_callback) ();
|
||||
}
|
||||
|
||||
|
@ -63,9 +64,9 @@ install_verify (InstallCallback install_callback)
|
|||
/* Otherwise, prepare for installation */
|
||||
else if (no_interface)
|
||||
{
|
||||
g_print ("The GIMP is not properly installed for the current user\n");
|
||||
g_print ("User installation was skipped because the '--nointerface' flag was encountered\n");
|
||||
g_print ("To perform user installation, run the GIMP without the '--nointerface' flag\n");
|
||||
g_print (_("The GIMP is not properly installed for the current user\n"));
|
||||
g_print (_("User installation was skipped because the '--nointerface' flag was encountered\n"));
|
||||
g_print (_("To perform user installation, run the GIMP without the '--nointerface' flag\n"));
|
||||
|
||||
(* install_callback) ();
|
||||
}
|
||||
|
@ -84,9 +85,9 @@ install_help (InstallCallback callback)
|
|||
{
|
||||
static ActionAreaItem action_items[] =
|
||||
{
|
||||
{ "Install", help_install_callback, NULL, NULL },
|
||||
{ "Ignore", help_ignore_callback, NULL, NULL },
|
||||
{ "Quit", help_quit_callback, NULL, NULL }
|
||||
{ N_("Install"), help_install_callback, NULL, NULL },
|
||||
{ N_("Ignore"), help_ignore_callback, NULL, NULL },
|
||||
{ N_("Quit"), help_quit_callback, NULL, NULL }
|
||||
};
|
||||
GtkWidget *text;
|
||||
GtkWidget *table;
|
||||
|
@ -101,7 +102,7 @@ install_help (InstallCallback callback)
|
|||
GTK_SIGNAL_FUNC (gtk_true),
|
||||
NULL);
|
||||
gtk_window_set_wmclass (GTK_WINDOW (help_widget), "gimp_installation", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (help_widget), "GIMP Installation");
|
||||
gtk_window_set_title (GTK_WINDOW (help_widget), _("GIMP Installation"));
|
||||
gtk_window_position (GTK_WINDOW (help_widget), GTK_WIN_POS_CENTER);
|
||||
|
||||
vadj = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 0.0, 0.0, 0.0, 0.0));
|
||||
|
@ -137,188 +138,188 @@ install_help (InstallCallback callback)
|
|||
gtk_widget_realize (text);
|
||||
|
||||
gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL,
|
||||
"The GIMP - GNU Image Manipulation Program\n\n", -1);
|
||||
_("The GIMP - GNU Image Manipulation Program\n\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"Copyright (C) 1995 Spencer Kimball and Peter Mattis\n", -1);
|
||||
_("Copyright (C) 1995 Spencer Kimball and Peter Mattis\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\n", -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"This program is free software; you can redistribute it and/or modify\n", -1);
|
||||
_("This program is free software; you can redistribute it and/or modify\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"it under the terms of the GNU General Public License as published by\n", -1);
|
||||
_("it under the terms of the GNU General Public License as published by\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"the Free Software Foundation; either version 2 of the License, or\n", -1);
|
||||
_("the Free Software Foundation; either version 2 of the License, or\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"(at your option) any later version.\n", -1);
|
||||
_("(at your option) any later version.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\n", -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"This program is distributed in the hope that it will be useful,\n", -1);
|
||||
_("This program is distributed in the hope that it will be useful,\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"but WITHOUT ANY WARRANTY; without even the implied warranty of\n", -1);
|
||||
_("but WITHOUT ANY WARRANTY; without even the implied warranty of\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n", -1);
|
||||
_("MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"See the GNU General Public License for more details.\n", -1);
|
||||
_("See the GNU General Public License for more details.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\n", -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"You should have received a copy of the GNU General Public License\n", -1);
|
||||
_("You should have received a copy of the GNU General Public License\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"along with this program; if not, write to the Free Software\n", -1);
|
||||
_("along with this program; if not, write to the Free Software\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n", -1);
|
||||
_("Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\n\n", -1);
|
||||
|
||||
gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL,
|
||||
"Personal GIMP Installation\n\n", -1);
|
||||
_("Personal GIMP Installation\n\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"For a proper GIMP installation, a subdirectory called\n", -1);
|
||||
_("For a proper GIMP installation, a subdirectory called\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
gimp_directory (), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
" needs to be created. This\n", -1);
|
||||
_(" needs to be created. This\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"subdirectory will contain a number of important files:\n\n", -1);
|
||||
_("subdirectory will contain a number of important files:\n\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"gimprc\n", -1);
|
||||
_("gimprc\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThe gimprc is used to store personal preferences\n", -1);
|
||||
_("\t\tThe gimprc is used to store personal preferences\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tsuch as default GIMP behaviors & plug-in hotkeys.\n", -1);
|
||||
_("\t\tsuch as default GIMP behaviors & plug-in hotkeys.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tPaths to search for brushes, palettes, gradients\n", -1);
|
||||
_("\t\tPaths to search for brushes, palettes, gradients\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tpatterns, and plug-ins are also configured here.\n", -1);
|
||||
_("\t\tpatterns, and plug-ins are also configured here.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"pluginrc\n", -1);
|
||||
_("pluginrc\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tPlug-ins and extensions are extern programs run by\n", -1);
|
||||
_("\t\tPlug-ins and extensions are extern programs run by\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tthe GIMP which provide additional functionality.\n", -1);
|
||||
_("\t\tthe GIMP which provide additional functionality.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThese programs are searched for at run-time and\n", -1);
|
||||
_("\t\tThese programs are searched for at run-time and\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tinformation about their functionality and mod-times\n", -1);
|
||||
_("\t\tinformation about their functionality and mod-times\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tis cached in this file. This file is intended to\n", -1);
|
||||
_("\t\tis cached in this file. This file is intended to\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tbe GIMP-readable only, and should not be edited.\n", -1);
|
||||
_("\t\tbe GIMP-readable only, and should not be edited.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"brushes\n", -1);
|
||||
_("brushes\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThis is a subdirectory which can be used to store\n", -1);
|
||||
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tuser defined brushes. The default gimprc file\n", -1);
|
||||
_("\t\tuser defined brushes. The default gimprc file\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tchecks this subdirectory in addition to the system-\n", -1);
|
||||
_("\t\tchecks this subdirectory in addition to the system-\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\twide gimp brushes installation when searching for\n", -1);
|
||||
_("\t\twide gimp brushes installation when searching for\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tbrushes.\n", -1);
|
||||
_("\t\tbrushes.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"gradients\n", -1);
|
||||
_("gradients\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThis is a subdirectory which can be used to store\n", -1);
|
||||
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tuser defined gradients. The default gimprc file\n", -1);
|
||||
_("\t\tuser defined gradients. The default gimprc file\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tchecks this subdirectory in addition to the system-\n", -1);
|
||||
_("\t\tchecks this subdirectory in addition to the system-\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\twide gimp gradients installation when searching for\n", -1);
|
||||
_("\t\twide gimp gradients installation when searching for\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tgradients.\n", -1);
|
||||
_("\t\tgradients.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"gfig\n", -1);
|
||||
_("gfig\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThis is a subdirectory which can be used to store\n", -1);
|
||||
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tuser defined figures to be used by the gfig plug-in.\n", -1);
|
||||
_("\t\tuser defined figures to be used by the gfig plug-in.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThe default gimprc file checks this subdirectory in\n", -1);
|
||||
_("\t\tThe default gimprc file checks this subdirectory in\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\taddition to the systemwide gimp gfig installation\n", -1);
|
||||
_("\t\taddition to the systemwide gimp gfig installation\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\twhen searching for gfig figures.\n", -1);
|
||||
_("\t\twhen searching for gfig figures.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"gflares\n", -1);
|
||||
_("gflares\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThis is a subdirectory which can be used to store\n", -1);
|
||||
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tuser defined gflares to be used by the gflare plug-in.\n", -1);
|
||||
_("\t\tuser defined gflares to be used by the gflare plug-in.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThe default gimprc file checks this subdirectory in\n", -1);
|
||||
_("\t\tThe default gimprc file checks this subdirectory in\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\taddition to the systemwide gimp gflares installation\n", -1);
|
||||
_("\t\taddition to the systemwide gimp gflares installation\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\twhen searching for gflares.\n", -1);
|
||||
_("\t\twhen searching for gflares.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"palettes\n", -1);
|
||||
_("palettes\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThis is a subdirectory which can be used to store\n", -1);
|
||||
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tuser defined palettes. The default gimprc file\n", -1);
|
||||
_("\t\tuser defined palettes. The default gimprc file\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tchecks only this subdirectory (not the system-wide\n", -1);
|
||||
_("\t\tchecks only this subdirectory (not the system-wide\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tinstallation) when searching for palettes. During\n", -1);
|
||||
_("\t\tinstallation) when searching for palettes. During\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tinstallation, the system palettes will be copied\n", -1);
|
||||
_("\t\tinstallation, the system palettes will be copied\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\there. This is done to allow modifications made to\n", -1);
|
||||
_("\t\there. This is done to allow modifications made to\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tpalettes during GIMP execution to persist across\n", -1);
|
||||
_("\t\tpalettes during GIMP execution to persist across\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tsessions.\n", -1);
|
||||
_("\t\tsessions.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"patterns\n", -1);
|
||||
_("patterns\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThis is a subdirectory which can be used to store\n", -1);
|
||||
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tuser defined patterns. The default gimprc file\n", -1);
|
||||
_("\t\tuser defined patterns. The default gimprc file\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tchecks this subdirectory in addition to the system-\n", -1);
|
||||
_("\t\tchecks this subdirectory in addition to the system-\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\twide gimp patterns installation when searching for\n", -1);
|
||||
_("\t\twide gimp patterns installation when searching for\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tpatterns.\n", -1);
|
||||
_("\t\tpatterns.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"plug-ins\n", -1);
|
||||
_("plug-ins\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThis is a subdirectory which can be used to store\n", -1);
|
||||
_("\t\tThis is a subdirectory which can be used to store\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tuser created, temporary, or otherwise non-system-\n", -1);
|
||||
_("\t\tuser created, temporary, or otherwise non-system-\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tsupported plug-ins. The default gimprc file\n", -1);
|
||||
_("\t\tsupported plug-ins. The default gimprc file\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tchecks this subdirectory in addition to the system-\n", -1);
|
||||
_("\t\tchecks this subdirectory in addition to the system-\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\twide GIMP plug-in directories when searching for\n", -1);
|
||||
_("\t\twide GIMP plug-in directories when searching for\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tplug-ins.\n", -1);
|
||||
_("\t\tplug-ins.\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"scripts\n", -1);
|
||||
_("scripts\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThis subdirectory is used by the GIMP to store \n", -1);
|
||||
_("\t\tThis subdirectory is used by the GIMP to store \n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tuser created and installed scripts. The default gimprc\n", -1);
|
||||
_("\t\tuser created and installed scripts. The default gimprc\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tfile checks this subdirectory in addition to the system\n", -1);
|
||||
_("\t\tfile checks this subdirectory in addition to the system\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\t-wide gimp scripts subdirectory when searching for scripts\n", -1);
|
||||
_("\t\t-wide gimp scripts subdirectory when searching for scripts\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL,
|
||||
"tmp\n", -1);
|
||||
_("tmp\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tThis subdirectory is used by the GIMP to temporarily\n", -1);
|
||||
_("\t\tThis subdirectory is used by the GIMP to temporarily\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tstore undo buffers to reduce memory usage. If GIMP is\n", -1);
|
||||
_("\t\tstore undo buffers to reduce memory usage. If GIMP is\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tunceremoniously killed, files may persist in this directory\n", -1);
|
||||
_("\t\tunceremoniously killed, files may persist in this directory\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tof the form: gimp<#>.<#>. These files are useless across\n", -1);
|
||||
_("\t\tof the form: gimp<#>.<#>. These files are useless across\n"), -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\t\tGIMP sessions and can be destroyed with impunity.\n", -1);
|
||||
_("\t\tGIMP sessions and can be destroyed with impunity.\n"), -1);
|
||||
|
||||
gtk_widget_show (vsb);
|
||||
gtk_widget_show (text);
|
||||
|
@ -361,8 +362,8 @@ install_run (InstallCallback callback)
|
|||
{
|
||||
static ActionAreaItem action_items[] =
|
||||
{
|
||||
{ "Continue", install_continue_callback, NULL, NULL },
|
||||
{ "Quit", install_quit_callback, NULL, NULL }
|
||||
{ N_("Continue"), install_continue_callback, NULL, NULL },
|
||||
{ N_("Quit"), install_quit_callback, NULL, NULL }
|
||||
};
|
||||
GtkWidget *text;
|
||||
GtkWidget *table;
|
||||
|
@ -382,7 +383,7 @@ install_run (InstallCallback callback)
|
|||
GTK_SIGNAL_FUNC (gtk_true),
|
||||
NULL);
|
||||
gtk_window_set_wmclass (GTK_WINDOW (install_widget), "installation_log", "Gimp");
|
||||
gtk_window_set_title (GTK_WINDOW (install_widget), "Installation Log");
|
||||
gtk_window_set_title (GTK_WINDOW (install_widget), _("Installation Log"));
|
||||
gtk_window_position (GTK_WINDOW (install_widget), GTK_WIN_POS_CENTER);
|
||||
vadj = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 0.0, 0.0, 0.0, 0.0));
|
||||
vsb = gtk_vscrollbar_new (vadj);
|
||||
|
@ -413,7 +414,7 @@ install_run (InstallCallback callback)
|
|||
/* Realize the text widget before inserting text strings */
|
||||
gtk_widget_realize (text);
|
||||
|
||||
gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL, "User Installation Log\n\n", -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL, _("User Installation Log\n\n"), -1);
|
||||
|
||||
/* Generate output */
|
||||
if ((gimp_data_dir = getenv ("GIMP_DATADIR")) != NULL)
|
||||
|
@ -425,14 +426,14 @@ install_run (InstallCallback callback)
|
|||
{
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, buffer, -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
" does not exist. Cannot install.\n", -1);
|
||||
_(" does not exist. Cannot install.\n"), -1);
|
||||
executable = FALSE;
|
||||
}
|
||||
else if (! (S_IXUSR & stat_buf.st_mode) || ! (S_IRUSR & stat_buf.st_mode))
|
||||
{
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, buffer, -1);
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
" has invalid permissions.\nCannot install.", -1);
|
||||
_(" has invalid permissions.\nCannot install."), -1);
|
||||
executable = FALSE;
|
||||
}
|
||||
|
||||
|
@ -452,14 +453,14 @@ install_run (InstallCallback callback)
|
|||
pclose (pfp);
|
||||
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\nInstallation successful!\n", -1);
|
||||
_("\nInstallation successful!\n"), -1);
|
||||
}
|
||||
else
|
||||
executable = FALSE;
|
||||
}
|
||||
if (executable == FALSE)
|
||||
gtk_text_insert (GTK_TEXT (text), font, NULL, NULL,
|
||||
"\nInstallation failed. Contact system administrator.\n", -1);
|
||||
_("\nInstallation failed. Contact system administrator.\n"), -1);
|
||||
|
||||
gtk_widget_show (vsb);
|
||||
gtk_widget_show (text);
|
||||
|
|
21
app/menus.c
21
app/menus.c
|
@ -35,7 +35,7 @@
|
|||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#define MRU_MENU_ENTRY_SIZE sizeof (N_("/File/MRU00"))
|
||||
#define MRU_MENU_ENTRY_SIZE sizeof ("/File/MRU00 ")
|
||||
#define MRU_MENU_ACCEL_SIZE sizeof ("<control>0")
|
||||
|
||||
static void menus_init (void);
|
||||
|
@ -79,7 +79,6 @@ static GtkItemFactoryEntry image_entries[] =
|
|||
{ N_("/File/Preferences..."), NULL, file_pref_cmd_callback, 0 },
|
||||
{ N_("/File/---"), NULL, NULL, 0, "<Separator>" },
|
||||
|
||||
|
||||
{ N_("/File/Close"), "<control>W", file_close_cmd_callback, 0 },
|
||||
{ N_("/File/Quit"), "<control>Q", file_quit_cmd_callback, 0 },
|
||||
{ N_("/File/---"), NULL, NULL, 0, "<Separator>" },
|
||||
|
@ -310,7 +309,7 @@ menus_tools_create (ToolInfo *tool_info)
|
|||
|
||||
/* entry.path = g_strconcat ("<Image>", tool_info->menu_path, NULL);*/
|
||||
/* entry.callback_data = tool_info; */
|
||||
entry.path = tool_info->menu_path;
|
||||
entry.path = gettext(tool_info->menu_path);
|
||||
entry.accelerator = tool_info->menu_accel;
|
||||
entry.callback = tools_select_cmd_callback;
|
||||
entry.callback_action = tool_info->tool_id;
|
||||
|
@ -340,12 +339,12 @@ menus_set_sensitive (char *path,
|
|||
if (ifactory)
|
||||
{
|
||||
widget = gtk_item_factory_get_widget (ifactory, path);
|
||||
|
||||
|
||||
gtk_widget_set_sensitive (widget, sensitive);
|
||||
}
|
||||
if (!ifactory || !widget)
|
||||
printf (_("Unable to set sensitivity for menu which doesn't exist:\n%s"), path);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
menus_set_state (char *path,
|
||||
|
@ -509,9 +508,7 @@ menus_init_mru ()
|
|||
|
||||
gtk_item_factory_create_items_ac (toolbox_factory, last_opened_size,
|
||||
last_opened_entries, NULL, 2);
|
||||
gtk_item_factory_create_item (toolbox_factory, &file_menu_separator, NULL, 2);
|
||||
gtk_item_factory_create_item (toolbox_factory, &toolbox_end, NULL, 2);
|
||||
|
||||
|
||||
for (i=0; i < last_opened_size; i++)
|
||||
{
|
||||
widget = gtk_item_factory_get_widget (toolbox_factory,
|
||||
|
@ -540,6 +537,14 @@ menus_init_toolbox ()
|
|||
translated_entries, NULL, 2);
|
||||
free_translated_entries(translated_entries, n_toolbox_entries);
|
||||
menus_init_mru ();
|
||||
|
||||
translated_entries=translate_entries(&file_menu_separator,1);
|
||||
gtk_item_factory_create_item (toolbox_factory, translated_entries, NULL, 2);
|
||||
free_translated_entries(translated_entries, 1);
|
||||
|
||||
translated_entries=translate_entries(&toolbox_end,1);
|
||||
gtk_item_factory_create_item (toolbox_factory, translated_entries, NULL, 2);
|
||||
free_translated_entries(translated_entries, 1);
|
||||
}
|
||||
|
||||
static GtkItemFactoryEntry *
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#define MRU_MENU_ENTRY_SIZE sizeof (N_("/File/MRU00"))
|
||||
#define MRU_MENU_ENTRY_SIZE sizeof ("/File/MRU00 ")
|
||||
#define MRU_MENU_ACCEL_SIZE sizeof ("<control>0")
|
||||
|
||||
static void menus_init (void);
|
||||
|
@ -79,7 +79,6 @@ static GtkItemFactoryEntry image_entries[] =
|
|||
{ N_("/File/Preferences..."), NULL, file_pref_cmd_callback, 0 },
|
||||
{ N_("/File/---"), NULL, NULL, 0, "<Separator>" },
|
||||
|
||||
|
||||
{ N_("/File/Close"), "<control>W", file_close_cmd_callback, 0 },
|
||||
{ N_("/File/Quit"), "<control>Q", file_quit_cmd_callback, 0 },
|
||||
{ N_("/File/---"), NULL, NULL, 0, "<Separator>" },
|
||||
|
@ -310,7 +309,7 @@ menus_tools_create (ToolInfo *tool_info)
|
|||
|
||||
/* entry.path = g_strconcat ("<Image>", tool_info->menu_path, NULL);*/
|
||||
/* entry.callback_data = tool_info; */
|
||||
entry.path = tool_info->menu_path;
|
||||
entry.path = gettext(tool_info->menu_path);
|
||||
entry.accelerator = tool_info->menu_accel;
|
||||
entry.callback = tools_select_cmd_callback;
|
||||
entry.callback_action = tool_info->tool_id;
|
||||
|
@ -340,12 +339,12 @@ menus_set_sensitive (char *path,
|
|||
if (ifactory)
|
||||
{
|
||||
widget = gtk_item_factory_get_widget (ifactory, path);
|
||||
|
||||
|
||||
gtk_widget_set_sensitive (widget, sensitive);
|
||||
}
|
||||
if (!ifactory || !widget)
|
||||
printf (_("Unable to set sensitivity for menu which doesn't exist:\n%s"), path);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
menus_set_state (char *path,
|
||||
|
@ -509,9 +508,7 @@ menus_init_mru ()
|
|||
|
||||
gtk_item_factory_create_items_ac (toolbox_factory, last_opened_size,
|
||||
last_opened_entries, NULL, 2);
|
||||
gtk_item_factory_create_item (toolbox_factory, &file_menu_separator, NULL, 2);
|
||||
gtk_item_factory_create_item (toolbox_factory, &toolbox_end, NULL, 2);
|
||||
|
||||
|
||||
for (i=0; i < last_opened_size; i++)
|
||||
{
|
||||
widget = gtk_item_factory_get_widget (toolbox_factory,
|
||||
|
@ -540,6 +537,14 @@ menus_init_toolbox ()
|
|||
translated_entries, NULL, 2);
|
||||
free_translated_entries(translated_entries, n_toolbox_entries);
|
||||
menus_init_mru ();
|
||||
|
||||
translated_entries=translate_entries(&file_menu_separator,1);
|
||||
gtk_item_factory_create_item (toolbox_factory, translated_entries, NULL, 2);
|
||||
free_translated_entries(translated_entries, 1);
|
||||
|
||||
translated_entries=translate_entries(&toolbox_end,1);
|
||||
gtk_item_factory_create_item (toolbox_factory, translated_entries, NULL, 2);
|
||||
free_translated_entries(translated_entries, 1);
|
||||
}
|
||||
|
||||
static GtkItemFactoryEntry *
|
||||
|
|
|
@ -59,6 +59,8 @@
|
|||
|
||||
#include "tile.h" /* ick. */
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#define SEPARATE_PROGRESS_BAR
|
||||
|
||||
|
||||
|
@ -161,17 +163,17 @@ static ProcArg progress_init_args[] =
|
|||
{
|
||||
{ PDB_STRING,
|
||||
"message",
|
||||
"Message to use in the progress dialog." },
|
||||
N_("Message to use in the progress dialog.") },
|
||||
{ PDB_INT32,
|
||||
"gdisplay",
|
||||
"GDisplay to update progressbar in, or -1 for a seperate window" }
|
||||
N_("GDisplay to update progressbar in, or -1 for a seperate window") }
|
||||
};
|
||||
|
||||
static ProcRecord progress_init_proc =
|
||||
{
|
||||
"gimp_progress_init",
|
||||
"Initializes the progress bar for the current plug-in",
|
||||
"Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.",
|
||||
N_("Initializes the progress bar for the current plug-in"),
|
||||
N_("Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -187,14 +189,14 @@ static ProcArg progress_update_args[] =
|
|||
{
|
||||
{ PDB_FLOAT,
|
||||
"percentage",
|
||||
"Percentage of progress completed" }
|
||||
N_("Percentage of progress completed") }
|
||||
};
|
||||
|
||||
static ProcRecord progress_update_proc =
|
||||
{
|
||||
"gimp_progress_update",
|
||||
"Updates the progress bar for the current plug-in",
|
||||
"Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.",
|
||||
N_("Updates the progress bar for the current plug-in"),
|
||||
N_("Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -211,14 +213,14 @@ static ProcArg message_args[] =
|
|||
{
|
||||
{ PDB_STRING,
|
||||
"message",
|
||||
"Message to display in the dialog." }
|
||||
N_("Message to display in the dialog.") }
|
||||
};
|
||||
|
||||
static ProcRecord message_proc =
|
||||
{
|
||||
"gimp_message",
|
||||
"Displays a dialog box with a message",
|
||||
"Displays a dialog box with a message. Useful for status or error reporting.",
|
||||
N_("Displays a dialog box with a message"),
|
||||
N_("Displays a dialog box with a message. Useful for status or error reporting."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
@ -235,14 +237,14 @@ static ProcArg message_handler_get_out_args[] =
|
|||
{
|
||||
{ PDB_INT32,
|
||||
"handler",
|
||||
"the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }" }
|
||||
N_("the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }") }
|
||||
};
|
||||
|
||||
static ProcRecord message_handler_get_proc =
|
||||
{
|
||||
"gimp_message_handler_get",
|
||||
"Returns the current state of where warning messages are displayed.",
|
||||
"This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.",
|
||||
N_("Returns the current state of where warning messages are displayed."),
|
||||
N_("This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."),
|
||||
"Manish Singh",
|
||||
"Manish Singh",
|
||||
"1998",
|
||||
|
@ -258,14 +260,14 @@ static ProcArg message_handler_set_args[] =
|
|||
{
|
||||
{ PDB_INT32,
|
||||
"handler",
|
||||
"the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }" }
|
||||
N_("the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }") }
|
||||
};
|
||||
|
||||
static ProcRecord message_handler_set_proc =
|
||||
{
|
||||
"gimp_message_handler_set",
|
||||
"Controls where warning messages are displayed.",
|
||||
"This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.",
|
||||
N_("Controls where warning messages are displayed."),
|
||||
N_("This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."),
|
||||
"Manish Singh",
|
||||
"Manish Singh",
|
||||
"1998",
|
||||
|
@ -281,15 +283,15 @@ static ProcArg plugin_temp_PDB_name_out_args[] =
|
|||
{
|
||||
{ PDB_STRING,
|
||||
"Temp name",
|
||||
"A unique temporary name for a temporary PDB entry name",
|
||||
N_("A unique temporary name for a temporary PDB entry name"),
|
||||
},
|
||||
};
|
||||
|
||||
static ProcRecord plugin_temp_PDB_name_proc =
|
||||
{
|
||||
"gimp_temp_PDB_name",
|
||||
"Generates a unique temporary PDB name",
|
||||
"This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name.",
|
||||
N_("Generates a unique temporary PDB name"),
|
||||
N_("This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name."),
|
||||
"Andy Thomas",
|
||||
"Andy Thomas",
|
||||
"1998",
|
||||
|
@ -340,13 +342,13 @@ plug_in_init ()
|
|||
{
|
||||
shm_ID = shmget (IPC_PRIVATE, TILE_WIDTH * TILE_HEIGHT * 4, IPC_CREAT | 0777);
|
||||
if (shm_ID == -1)
|
||||
g_message ("shmget failed...disabling shared memory tile transport\n");
|
||||
g_message (_("shmget failed...disabling shared memory tile transport\n"));
|
||||
else
|
||||
{
|
||||
shm_addr = (guchar*) shmat (shm_ID, 0, 0);
|
||||
if (shm_addr == (guchar*) -1)
|
||||
{
|
||||
g_message ("shmat failed...disabling shared memory tile transport\n");
|
||||
g_message (_("shmat failed...disabling shared memory tile transport\n"));
|
||||
shm_ID = -1;
|
||||
}
|
||||
|
||||
|
@ -372,14 +374,14 @@ plug_in_init ()
|
|||
else
|
||||
sprintf (filename, "%s/pluginrc", gimp_directory ());
|
||||
|
||||
app_init_update_status("Resource configuration", filename, -1);
|
||||
app_init_update_status(_("Resource configuration"), filename, -1);
|
||||
parse_gimprc_file (filename);
|
||||
|
||||
/* query any plug-ins that have changed since we last wrote out
|
||||
* the pluginrc file.
|
||||
*/
|
||||
tmp = plug_in_defs;
|
||||
app_init_update_status("Plug-ins", "", 0);
|
||||
app_init_update_status(_("Plug-ins"), "", 0);
|
||||
nplugins = g_slist_length(tmp);
|
||||
nth = 0;
|
||||
while (tmp)
|
||||
|
@ -391,7 +393,7 @@ plug_in_init ()
|
|||
{
|
||||
write_pluginrc = TRUE;
|
||||
if ((be_verbose == TRUE) || (no_splash == TRUE))
|
||||
g_print ("query plug-in: \"%s\"\n", plug_in_def->prog);
|
||||
g_print (_("query plug-in: \"%s\"\n"), plug_in_def->prog);
|
||||
plug_in_query (plug_in_def->prog, plug_in_def);
|
||||
}
|
||||
app_init_update_status(NULL, plug_in_def->prog, nth/nplugins);
|
||||
|
@ -428,7 +430,7 @@ plug_in_init ()
|
|||
if (write_pluginrc)
|
||||
{
|
||||
if ((be_verbose == TRUE) || (no_splash == TRUE))
|
||||
g_print ("writing \"%s\"\n", filename);
|
||||
g_print (_("writing \"%s\"\n"), filename);
|
||||
plug_in_write_rc (filename);
|
||||
}
|
||||
|
||||
|
@ -441,8 +443,8 @@ plug_in_init ()
|
|||
/* run the available extensions */
|
||||
tmp = proc_defs;
|
||||
if ((be_verbose == TRUE) || (no_splash == TRUE))
|
||||
g_print ("Starting extensions: ");
|
||||
app_init_update_status("Extensions", "", 0);
|
||||
g_print (_("Starting extensions: "));
|
||||
app_init_update_status(_("Extensions"), "", 0);
|
||||
nplugins = g_slist_length(tmp); nth = 0;
|
||||
|
||||
while (tmp)
|
||||
|
@ -729,7 +731,7 @@ plug_in_def_add (PlugInDef *plug_in_def)
|
|||
}
|
||||
|
||||
write_pluginrc = TRUE;
|
||||
g_print ("\"%s\" executable not found\n", plug_in_def->prog);
|
||||
g_print (_("\"%s\" executable not found\n"), plug_in_def->prog);
|
||||
g_free (plug_in_def->prog);
|
||||
g_free (plug_in_def);
|
||||
}
|
||||
|
@ -782,7 +784,7 @@ plug_in_new (char *name)
|
|||
path = search_in_path (plug_in_path, name);
|
||||
if (!path)
|
||||
{
|
||||
g_message ("unable to locate plug-in: \"%s\"", name);
|
||||
g_message (_("unable to locate plug-in: \"%s\""), name);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
@ -879,7 +881,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
*/
|
||||
if ((pipe (my_read) == -1) || (pipe (my_write) == -1))
|
||||
{
|
||||
g_message ("unable to open pipe");
|
||||
g_message (_("unable to open pipe"));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -927,7 +929,7 @@ plug_in_open (PlugIn *plug_in)
|
|||
}
|
||||
else if (plug_in->pid == -1)
|
||||
{
|
||||
g_message ("unable to run plug-in: %s\n", plug_in->args[0]);
|
||||
g_message (_("unable to run plug-in: %s\n"), plug_in->args[0]);
|
||||
plug_in_destroy (plug_in);
|
||||
return 0;
|
||||
}
|
||||
|
@ -1263,8 +1265,8 @@ plug_in_set_menu_sensitivity (int base_type)
|
|||
menus_set_sensitive (proc_def->menu_path, sensitive);
|
||||
if (last_plug_in && (last_plug_in == &(proc_def->db_info)))
|
||||
{
|
||||
menus_set_sensitive ("<Image>/Filters/Repeat last", sensitive);
|
||||
menus_set_sensitive ("<Image>/Filters/Re-show last", sensitive);
|
||||
menus_set_sensitive (_("<Image>/Filters/Repeat last"), sensitive);
|
||||
menus_set_sensitive (_("<Image>/Filters/Re-show last"), sensitive);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1303,18 +1305,18 @@ plug_in_handle_message (WireMessage *msg)
|
|||
plug_in_handle_quit ();
|
||||
break;
|
||||
case GP_CONFIG:
|
||||
g_message ("plug_in_handle_message(): received a config message (should not happen)\n");
|
||||
g_message (_("plug_in_handle_message(): received a config message (should not happen)\n"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
break;
|
||||
case GP_TILE_REQ:
|
||||
plug_in_handle_tile_req (msg->data);
|
||||
break;
|
||||
case GP_TILE_ACK:
|
||||
g_message ("plug_in_handle_message(): received a config message (should not happen)\n");
|
||||
g_message (_("plug_in_handle_message(): received a config message (should not happen)\n"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
break;
|
||||
case GP_TILE_DATA:
|
||||
g_message ("plug_in_handle_message(): received a config message (should not happen)\n");
|
||||
g_message (_("plug_in_handle_message(): received a config message (should not happen)\n"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
break;
|
||||
case GP_PROC_RUN:
|
||||
|
@ -1325,7 +1327,7 @@ plug_in_handle_message (WireMessage *msg)
|
|||
plug_in_close (current_plug_in, FALSE);
|
||||
break;
|
||||
case GP_TEMP_PROC_RUN:
|
||||
g_message ("plug_in_handle_message(): received a temp proc run message (should not happen)\n");
|
||||
g_message (_("plug_in_handle_message(): received a temp proc run message (should not happen)\n"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
break;
|
||||
case GP_TEMP_PROC_RETURN:
|
||||
|
@ -1372,21 +1374,21 @@ plug_in_handle_tile_req (GPTileReq *tile_req)
|
|||
|
||||
if (!gp_tile_data_write (current_writefd, &tile_data))
|
||||
{
|
||||
g_message ("plug_in_handle_tile_req: ERROR");
|
||||
g_message (_("plug_in_handle_tile_req: ERROR"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!wire_read_msg (current_readfd, &msg))
|
||||
{
|
||||
g_message ("plug_in_handle_tile_req: ERROR");
|
||||
g_message (_("plug_in_handle_tile_req: ERROR"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
||||
if (msg.type != GP_TILE_DATA)
|
||||
{
|
||||
g_message ("expected tile data and received: %d\n", msg.type);
|
||||
g_message (_("expected tile data and received: %d\n"), msg.type);
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1400,7 +1402,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req)
|
|||
|
||||
if (!tm)
|
||||
{
|
||||
g_message ("plug-in requested invalid drawable (killing)\n");
|
||||
g_message (_("plug-in requested invalid drawable (killing)\n"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1408,7 +1410,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req)
|
|||
tile = tile_manager_get (tm, tile_info->tile_num, TRUE, TRUE);
|
||||
if (!tile)
|
||||
{
|
||||
g_message ("plug-in requested invalid tile (killing)\n");
|
||||
g_message (_("plug-in requested invalid tile (killing)\n"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1423,7 +1425,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req)
|
|||
wire_destroy (&msg);
|
||||
if (!gp_tile_ack_write (current_writefd))
|
||||
{
|
||||
g_message ("plug_in_handle_tile_req: ERROR");
|
||||
g_message (_("plug_in_handle_tile_req: ERROR"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1437,7 +1439,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req)
|
|||
|
||||
if (!tm)
|
||||
{
|
||||
g_message ("plug-in requested invalid drawable (killing)\n");
|
||||
g_message (_("plug-in requested invalid drawable (killing)\n"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1445,7 +1447,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req)
|
|||
tile = tile_manager_get (tm, tile_req->tile_num, TRUE, FALSE);
|
||||
if (!tile)
|
||||
{
|
||||
g_message ("plug-in requested invalid tile (killing)\n");
|
||||
g_message (_("plug-in requested invalid tile (killing)\n"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1465,7 +1467,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req)
|
|||
|
||||
if (!gp_tile_data_write (current_writefd, &tile_data))
|
||||
{
|
||||
g_message ("plug_in_handle_tile_req: ERROR");
|
||||
g_message (_("plug_in_handle_tile_req: ERROR"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1474,14 +1476,14 @@ plug_in_handle_tile_req (GPTileReq *tile_req)
|
|||
|
||||
if (!wire_read_msg (current_readfd, &msg))
|
||||
{
|
||||
g_message ("plug_in_handle_tile_req: ERROR");
|
||||
g_message (_("plug_in_handle_tile_req: ERROR"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
||||
if (msg.type != GP_TILE_ACK)
|
||||
{
|
||||
g_message ("expected tile ack and received: %d\n", msg.type);
|
||||
g_message (_("expected tile ack and received: %d\n"), msg.type);
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1505,7 +1507,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run)
|
|||
if (!proc_rec)
|
||||
{
|
||||
/* THIS IS PROBABLY NOT CORRECT -josh */
|
||||
g_message ("PDB lookup failed on %s\n", proc_run->name);
|
||||
g_message (_("PDB lookup failed on %s\n"), proc_run->name);
|
||||
plug_in_args_destroy (args, proc_run->nparams, FALSE);
|
||||
return;
|
||||
}
|
||||
|
@ -1529,7 +1531,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run)
|
|||
|
||||
if (!gp_proc_return_write (current_writefd, &proc_return))
|
||||
{
|
||||
g_message ("plug_in_handle_proc_run: ERROR");
|
||||
g_message (_("plug_in_handle_proc_run: ERROR"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1573,7 +1575,7 @@ plug_in_handle_proc_return (GPProcReturn *proc_return)
|
|||
plug_in_push (blocked->plug_in);
|
||||
if (!gp_proc_return_write (current_writefd, proc_return))
|
||||
{
|
||||
g_message ("plug_in_handle_proc_run: ERROR");
|
||||
g_message (_("plug_in_handle_proc_run: ERROR"));
|
||||
plug_in_close (current_plug_in, TRUE);
|
||||
return;
|
||||
}
|
||||
|
@ -1612,8 +1614,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install)
|
|||
if ((proc_install->nparams < 1) ||
|
||||
(proc_install->params[0].type != PDB_INT32))
|
||||
{
|
||||
g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which "
|
||||
"does not take the standard plug-in args",
|
||||
g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which "
|
||||
"does not take the standard plug-in args"),
|
||||
current_plug_in->args[0], proc_install->name);
|
||||
return;
|
||||
}
|
||||
|
@ -1625,8 +1627,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install)
|
|||
(proc_install->params[1].type != PDB_IMAGE) ||
|
||||
(proc_install->params[2].type != PDB_DRAWABLE))
|
||||
{
|
||||
g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which "
|
||||
"does not take the standard plug-in args",
|
||||
g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which "
|
||||
"does not take the standard plug-in args"),
|
||||
current_plug_in->args[0], proc_install->name);
|
||||
return;
|
||||
}
|
||||
|
@ -1638,8 +1640,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install)
|
|||
(proc_install->params[1].type != PDB_STRING) ||
|
||||
(proc_install->params[2].type != PDB_STRING))
|
||||
{
|
||||
g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which "
|
||||
"does not take the standard plug-in args",
|
||||
g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which "
|
||||
"does not take the standard plug-in args"),
|
||||
current_plug_in->args[0], proc_install->name);
|
||||
return;
|
||||
}
|
||||
|
@ -1653,17 +1655,17 @@ plug_in_handle_proc_install (GPProcInstall *proc_install)
|
|||
(proc_install->params[3].type != PDB_STRING) ||
|
||||
(proc_install->params[4].type != PDB_STRING))
|
||||
{
|
||||
g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which "
|
||||
"does not take the standard plug-in args",
|
||||
g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which "
|
||||
"does not take the standard plug-in args"),
|
||||
current_plug_in->args[0], proc_install->name);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
g_message ("plug-in \"%s\" attempted to install procedure \"%s\" in "
|
||||
g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" in "
|
||||
"an invalid menu location. Use either \"<Toolbox>\", \"<Image>\", "
|
||||
"\"<Load>\", or \"<Save>\".",
|
||||
"\"<Load>\", or \"<Save>\"."),
|
||||
current_plug_in->args[0], proc_install->name);
|
||||
return;
|
||||
}
|
||||
|
@ -1681,9 +1683,9 @@ plug_in_handle_proc_install (GPProcInstall *proc_install)
|
|||
proc_install->params[i].type == PDB_STRINGARRAY) &&
|
||||
proc_install->params[i-1].type != PDB_INT32)
|
||||
{
|
||||
g_message ("plug_in \"%s\" attempted to install procedure \"%s\" "
|
||||
g_message (_("plug_in \"%s\" attempted to install procedure \"%s\" "
|
||||
"which fails to comply with the array parameter "
|
||||
"passing standard. Argument %d is noncompliant.",
|
||||
"passing standard. Argument %d is noncompliant."),
|
||||
current_plug_in->args[0], proc_install->name, i);
|
||||
return;
|
||||
}
|
||||
|
@ -2091,7 +2093,7 @@ plug_in_init_file (char *filename)
|
|||
|
||||
if (strcmp (name, plug_in_name) == 0)
|
||||
{
|
||||
g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename);
|
||||
g_print (_("duplicate plug-in: \"%s\" (skipping)\n"), filename);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -2265,7 +2267,7 @@ plug_in_callback (GtkWidget *widget,
|
|||
}
|
||||
else
|
||||
{
|
||||
g_message ("Uh-oh, no active gdisplay for the plug-in!");
|
||||
g_message (_("Uh-oh, no active gdisplay for the plug-in!"));
|
||||
g_free (args);
|
||||
return;
|
||||
}
|
||||
|
@ -2286,7 +2288,7 @@ plug_in_callback (GtkWidget *widget,
|
|||
}
|
||||
else
|
||||
{
|
||||
g_message ("Uh-oh, no active gdisplay for the temporary procedure!");
|
||||
g_message (_("Uh-oh, no active gdisplay for the temporary procedure!"));
|
||||
g_free (args);
|
||||
return;
|
||||
}
|
||||
|
@ -2294,7 +2296,7 @@ plug_in_callback (GtkWidget *widget,
|
|||
break;
|
||||
|
||||
default:
|
||||
g_error ("Unknown procedure type.");
|
||||
g_error (_("Unknown procedure type."));
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -2600,7 +2602,7 @@ plug_in_params_to_args (GPParam *params,
|
|||
colorarray[2] = params[i].data.d_color.blue;
|
||||
break;
|
||||
case PDB_REGION:
|
||||
g_message ("the \"region\" arg type is not currently supported");
|
||||
g_message (_("the \"region\" arg type is not currently supported"));
|
||||
break;
|
||||
case PDB_DISPLAY:
|
||||
args[i].value.pdb_int = params[i].data.d_display;
|
||||
|
@ -2765,7 +2767,7 @@ plug_in_args_to_params (Argument *args,
|
|||
}
|
||||
break;
|
||||
case PDB_REGION:
|
||||
g_message ("the \"region\" arg type is not currently supported");
|
||||
g_message (_("the \"region\" arg type is not currently supported"));
|
||||
break;
|
||||
case PDB_DISPLAY:
|
||||
params[i].data.d_display = args[i].value.pdb_int;
|
||||
|
@ -2882,7 +2884,7 @@ plug_in_params_destroy (GPParam *params,
|
|||
case PDB_COLOR:
|
||||
break;
|
||||
case PDB_REGION:
|
||||
g_message ("the \"region\" arg type is not currently supported");
|
||||
g_message (_("the \"region\" arg type is not currently supported"));
|
||||
break;
|
||||
case PDB_DISPLAY:
|
||||
case PDB_IMAGE:
|
||||
|
@ -2967,7 +2969,7 @@ plug_in_args_destroy (Argument *args,
|
|||
g_free (args[i].value.pdb_pointer);
|
||||
break;
|
||||
case PDB_REGION:
|
||||
g_message ("the \"region\" arg type is not currently supported");
|
||||
g_message (_("the \"region\" arg type is not currently supported"));
|
||||
break;
|
||||
case PDB_DISPLAY:
|
||||
case PDB_IMAGE:
|
||||
|
@ -3156,7 +3158,7 @@ plug_in_progress_init (PlugIn *plug_in,
|
|||
gtk_box_pack_start (GTK_BOX (vbox), plug_in->progress_bar, TRUE, TRUE, 0);
|
||||
gtk_widget_show (plug_in->progress_bar);
|
||||
|
||||
button = gtk_button_new_with_label ("Cancel");
|
||||
button = gtk_button_new_with_label (_("Cancel"));
|
||||
gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
|
||||
(GtkSignalFunc) gtk_widget_destroy,
|
||||
GTK_OBJECT (plug_in->progress));
|
||||
|
|
|
@ -94,7 +94,7 @@ static int color_hash_hits;
|
|||
static unsigned char * tmp_buffer; /* temporary buffer available upon request */
|
||||
static int tmp_buffer_size;
|
||||
static unsigned char no_mask = OPAQUE_OPACITY;
|
||||
|
||||
static int add_lut[256][256];
|
||||
|
||||
/*******************************/
|
||||
/* Local function prototypes */
|
||||
|
@ -320,6 +320,8 @@ void
|
|||
paint_funcs_setup ()
|
||||
{
|
||||
int i;
|
||||
int j,k;
|
||||
int tmp_sum;
|
||||
|
||||
/* allocate the temporary buffer */
|
||||
tmp_buffer = (unsigned char *) g_malloc (STD_BUF_SIZE);
|
||||
|
@ -344,6 +346,30 @@ paint_funcs_setup ()
|
|||
random_table[i] = random_table[swap];
|
||||
random_table[swap] = tmp;
|
||||
}
|
||||
|
||||
for (j = 0; j < 256; j++)
|
||||
{ //rows
|
||||
for (k = 0; k < 256; k++)
|
||||
{ //column
|
||||
tmp_sum = j + k;
|
||||
// printf("tmp_sum: %d", tmp_sum);
|
||||
if(tmp_sum > 255)
|
||||
tmp_sum = 255;
|
||||
// printf(" max: %d \n", add_lut[j][k]);
|
||||
add_lut[j][k] = tmp_sum;
|
||||
}
|
||||
}
|
||||
|
||||
/* for (j = 0; j < 255; j++) */
|
||||
/* { //rows */
|
||||
/* for (k = 0; k < 255; k++) */
|
||||
/* { //column */
|
||||
/* printf ("%d",add_lut[j][k]); */
|
||||
/* printf(" "); */
|
||||
/* } */
|
||||
/* printf("\n"); */
|
||||
/* } */
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -829,8 +855,9 @@ add_pixels (const unsigned char *src1,
|
|||
{
|
||||
for (b = 0; b < alpha; b++)
|
||||
{
|
||||
sum = src1[b] + src2[b];
|
||||
dest[b] = MAX255 (sum);
|
||||
// sum = src1[b] + src2[b];
|
||||
dest[b] = add_lut[ (src1[b])] [(src2[b])];
|
||||
// dest[b] = MAX255 (sum);
|
||||
/* dest[b] = sum | ((sum&256) - ((sum&256) >> 8)); */
|
||||
/* dest[b] = (sum > 255) ? 255 : sum; */ /* older, little slower */
|
||||
}
|
||||
|
|
|
@ -29,6 +29,8 @@
|
|||
#include "tools.h"
|
||||
#include "gimage.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
typedef struct _AirbrushTimeout AirbrushTimeout;
|
||||
|
||||
struct _AirbrushTimeout
|
||||
|
@ -92,7 +94,7 @@ create_airbrush_options (void)
|
|||
vbox = gtk_vbox_new (FALSE, 1);
|
||||
|
||||
/* the main label */
|
||||
label = gtk_label_new ("Airbrush Options");
|
||||
label = gtk_label_new (_("Airbrush Options"));
|
||||
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
@ -101,7 +103,7 @@ create_airbrush_options (void)
|
|||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
gtk_widget_show (hbox);
|
||||
|
||||
label = gtk_label_new ("Rate");
|
||||
label = gtk_label_new (_("Rate"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
@ -119,7 +121,7 @@ create_airbrush_options (void)
|
|||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
gtk_widget_show (hbox);
|
||||
|
||||
label = gtk_label_new ("Pressure");
|
||||
label = gtk_label_new (_("Pressure"));
|
||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
|
@ -155,7 +157,7 @@ airbrush_paint_func (PaintCore *paint_core,
|
|||
/* timer_state = OFF; */
|
||||
if (timer_state == ON)
|
||||
{
|
||||
g_warning ("killing stray timer, please report to lewing@gimp.org");
|
||||
g_warning (_("killing stray timer, please report to lewing@gimp.org"));
|
||||
gtk_timeout_remove (timer);
|
||||
}
|
||||
timer_state = OFF;
|
||||
|
@ -295,23 +297,23 @@ ProcArg airbrush_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_DRAWABLE,
|
||||
"drawable",
|
||||
"the drawable"
|
||||
N_("the drawable")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"pressure",
|
||||
"The pressure of the airbrush strokes: 0 <= pressure <= 100"
|
||||
N_("The pressure of the airbrush strokes: 0 <= pressure <= 100")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"num_strokes",
|
||||
"number of stroke control points (count each coordinate as 2 points)"
|
||||
N_("number of stroke control points (count each coordinate as 2 points)")
|
||||
},
|
||||
{ PDB_FLOATARRAY,
|
||||
"strokes",
|
||||
"array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}"
|
||||
N_("array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}")
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -319,8 +321,8 @@ ProcArg airbrush_args[] =
|
|||
ProcRecord airbrush_proc =
|
||||
{
|
||||
"gimp_airbrush",
|
||||
"Paint in the current brush with varying pressure. Paint application is time-dependent",
|
||||
"This tool simulates the use of an airbrush. Paint pressure represents the relative intensity of the paint application. High pressure results in a thicker layer of paint while low pressure results in a thinner layer.",
|
||||
N_("Paint in the current brush with varying pressure. Paint application is time-dependent"),
|
||||
N_("This tool simulates the use of an airbrush. Paint pressure represents the relative intensity of the paint application. High pressure results in a thicker layer of paint while low pressure results in a thinner layer."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
|
|
@ -31,6 +31,8 @@
|
|||
#include "selection.h"
|
||||
#include "tools.h"
|
||||
|
||||
#include "libgimp/gimpintl.h"
|
||||
|
||||
#define TARGET_HEIGHT 15
|
||||
#define TARGET_WIDTH 15
|
||||
|
||||
|
@ -112,8 +114,8 @@ create_clone_options (void)
|
|||
int i;
|
||||
char *button_names[2] =
|
||||
{
|
||||
"Image Source",
|
||||
"Pattern Source"
|
||||
N_("Image Source"),
|
||||
N_("Pattern Source")
|
||||
};
|
||||
|
||||
/* the new options structure */
|
||||
|
@ -125,12 +127,12 @@ create_clone_options (void)
|
|||
vbox = gtk_vbox_new (FALSE, 1);
|
||||
|
||||
/* the main label */
|
||||
label = gtk_label_new ("Clone Tool Options");
|
||||
label = gtk_label_new (_("Clone Tool Options"));
|
||||
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
|
||||
gtk_widget_show (label);
|
||||
|
||||
/* the radio frame and box */
|
||||
radio_frame = gtk_frame_new ("Source");
|
||||
radio_frame = gtk_frame_new (_("Source"));
|
||||
gtk_box_pack_start (GTK_BOX (vbox), radio_frame, FALSE, FALSE, 0);
|
||||
|
||||
radio_box = gtk_vbox_new (FALSE, 1);
|
||||
|
@ -151,7 +153,7 @@ create_clone_options (void)
|
|||
gtk_widget_show (radio_frame);
|
||||
|
||||
/* the aligned toggle button */
|
||||
aligned_toggle = gtk_check_button_new_with_label ("Aligned");
|
||||
aligned_toggle = gtk_check_button_new_with_label (_("Aligned"));
|
||||
gtk_box_pack_start (GTK_BOX (vbox), aligned_toggle, FALSE, FALSE, 0);
|
||||
gtk_signal_connect (GTK_OBJECT (aligned_toggle), "toggled",
|
||||
(GtkSignalFunc) clone_toggle_update,
|
||||
|
@ -228,7 +230,7 @@ clone_paint_func (PaintCore *paint_core,
|
|||
|
||||
if (clone_options->type == PatternClone)
|
||||
if (!get_active_pattern ())
|
||||
g_message ("No patterns available for this operation.");
|
||||
g_message (_("No patterns available for this operation."));
|
||||
break;
|
||||
|
||||
case FINISH_PAINT :
|
||||
|
@ -541,35 +543,35 @@ ProcArg clone_args[] =
|
|||
{
|
||||
{ PDB_IMAGE,
|
||||
"image",
|
||||
"the image"
|
||||
N_("the image")
|
||||
},
|
||||
{ PDB_DRAWABLE,
|
||||
"drawable",
|
||||
"the drawable"
|
||||
N_("the drawable")
|
||||
},
|
||||
{ PDB_DRAWABLE,
|
||||
"src_drawable",
|
||||
"the source drawable"
|
||||
N_("the source drawable")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"clone_type",
|
||||
"the type of clone: { IMAGE-CLONE (0), PATTERN-CLONE (1) }"
|
||||
N_("the type of clone: { IMAGE-CLONE (0), PATTERN-CLONE (1) }")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"src_x",
|
||||
"the x coordinate in the source image"
|
||||
N_("the x coordinate in the source image")
|
||||
},
|
||||
{ PDB_FLOAT,
|
||||
"src_y",
|
||||
"the y coordinate in the source image"
|
||||
N_("the y coordinate in the source image")
|
||||
},
|
||||
{ PDB_INT32,
|
||||
"num_strokes",
|
||||
"number of stroke control points (count each coordinate as 2 points)"
|
||||
N_("number of stroke control points (count each coordinate as 2 points)")
|
||||
},
|
||||
{ PDB_FLOATARRAY,
|
||||
"strokes",
|
||||
"array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}"
|
||||
N_("array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}")
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -577,8 +579,8 @@ ProcArg clone_args[] =
|
|||
ProcRecord clone_proc =
|
||||
{
|
||||
"gimp_clone",
|
||||
"Clone from the source to the dest drawable using the current brush",
|
||||
"This tool clones (copies) from the source drawable starting at the specified source coordinates to the dest drawable. If the \"clone_type\" argument is set to PATTERN-CLONE, then the current pattern is used as the source and the \"src_drawable\" argument is ignored. Pattern cloning assumes a tileable pattern and mods the sum of the src coordinates and subsequent stroke offsets with the width and height of the pattern. For image cloning, if the sum of the src coordinates and subsequent stroke offsets exceeds the extents of the src drawable, then no paint is transferred. The clone tool is capable of transforming between any image types including RGB->Indexed--although converting from any type to indexed is significantly slower.",
|
||||
N_("Clone from the source to the dest drawable using the current brush"),
|
||||
N_("This tool clones (copies) from the source drawable starting at the specified source coordinates to the dest drawable. If the \"clone_type\" argument is set to PATTERN-CLONE, then the current pattern is used as the source and the \"src_drawable\" argument is ignored. Pattern cloning assumes a tileable pattern and mods the sum of the src coordinates and subsequent stroke offsets with the width and height of the pattern. For image cloning, if the sum of the src coordinates and subsequent stroke offsets exceeds the extents of the src drawable, then no paint is transferred. The clone tool is capable of transforming between any image types including RGB->Indexed--although converting from any type to indexed is significantly slower."),
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"Spencer Kimball & Peter Mattis",
|
||||
"1995-1996",
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue