Commit d2ea549d authored by Manish Singh's avatar Manish Singh

stuff from patches/i18n by Daniel Egger

* app/*: stuff from patches/i18n by Daniel Egger

* app/channels_dialog.c: fixes minor buglets in the channels dialog

-Yosh
parent 57b32958
Tue Dec 15 16:18:40 PST 1998 Manish Singh <yosh@gimp.org>
* app/*: stuff from patches/i18n by Daniel Egger
* app/channels_dialog.c: fixes minor buglets in the channels
dialog
Mon Dec 14 18:56:42 PST 1998 Manish Singh <yosh@gimp.org>
* removed intl virtual modules, use them new fangled
......
......@@ -165,17 +165,17 @@ static ProcArg progress_init_args[] =
{
{ PDB_STRING,
"message",
N_("Message to use in the progress dialog.") },
"Message to use in the progress dialog." },
{ PDB_INT32,
"gdisplay",
N_("GDisplay to update progressbar in, or -1 for a seperate window") }
"GDisplay to update progressbar in, or -1 for a seperate window" }
};
static ProcRecord progress_init_proc =
{
"gimp_progress_init",
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."),
"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.",
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
"1995-1996",
......@@ -191,14 +191,14 @@ static ProcArg progress_update_args[] =
{
{ PDB_FLOAT,
"percentage",
N_("Percentage of progress completed") }
"Percentage of progress completed" }
};
static ProcRecord progress_update_proc =
{
"gimp_progress_update",
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."),
"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.",
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
"1995-1996",
......@@ -215,14 +215,14 @@ static ProcArg message_args[] =
{
{ PDB_STRING,
"message",
N_("Message to display in the dialog.") }
"Message to display in the dialog." }
};
static ProcRecord message_proc =
{
"gimp_message",
N_("Displays a dialog box with a message"),
N_("Displays a dialog box with a message. Useful for status or error reporting."),
"Displays a dialog box with a message",
"Displays a dialog box with a message. Useful for status or error reporting.",
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
"1995-1996",
......@@ -239,14 +239,14 @@ static ProcArg message_handler_get_out_args[] =
{
{ PDB_INT32,
"handler",
N_("the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }") }
"the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }" }
};
static ProcRecord message_handler_get_proc =
{
"gimp_message_handler_get",
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."),
"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.",
"Manish Singh",
"Manish Singh",
"1998",
......@@ -262,14 +262,14 @@ static ProcArg message_handler_set_args[] =
{
{ PDB_INT32,
"handler",
N_("the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }") }
"the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }" }
};
static ProcRecord message_handler_set_proc =
{
"gimp_message_handler_set",
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."),
"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.",
"Manish Singh",
"Manish Singh",
"1998",
......@@ -285,15 +285,15 @@ static ProcArg plugin_temp_PDB_name_out_args[] =
{
{ PDB_STRING,
"Temp name",
N_("A unique temporary name for a temporary PDB entry name"),
"A unique temporary name for a temporary PDB entry name",
},
};
static ProcRecord plugin_temp_PDB_name_proc =
{
"gimp_temp_PDB_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."),
"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.",
"Andy Thomas",
"Andy Thomas",
"1998",
......
......@@ -99,16 +99,16 @@ static ProcArg quit_args[] =
{
{ PDB_INT32,
"kill",
N_("Flag specifying whether to kill the gimp process or exit normally") },
"Flag specifying whether to kill the gimp process or exit normally" },
};
static ProcRecord quit_proc =
{
"gimp_quit",
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"),
"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",
"1995-1996",
PDB_INTERNAL,
1,
......@@ -346,7 +346,7 @@ make_initialization_status_window(void)
NULL);
gtk_window_set_wmclass (GTK_WINDOW(win_initstatus), "gimp_startup", "Gimp");
gtk_window_set_title(GTK_WINDOW(win_initstatus),
"GIMP Startup");
_("GIMP Startup"));
if (no_splash_image == FALSE && splash_logo_load_size (win_initstatus))
{
......
......@@ -392,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), N_("Color Balance"));
gtk_window_set_title (GTK_WINDOW (cbd->shell), _("Color Balance"));
/* handle the wm close signal */
gtk_signal_connect (GTK_OBJECT (cbd->shell), "delete_event",
......@@ -879,35 +879,35 @@ ProcArg color_balance_args[] =
{
{ PDB_DRAWABLE,
"drawable",
N_("the drawable")
"the drawable"
},
{ PDB_INT32,
"transfer_mode",
N_("Transfer mode: { SHADOWS (0), MIDTONES (1), HIGHLIGHTS (2) }")
"Transfer mode: { SHADOWS (0), MIDTONES (1), HIGHLIGHTS (2) }"
},
{ PDB_INT32,
"preserve_lum",
N_("Preserve luminosity values at each pixel")
"Preserve luminosity values at each pixel"
},
{ PDB_FLOAT,
"cyan_red",
N_("Cyan-Red color balance: (-100 <= cyan_red <= 100)")
"Cyan-Red color balance: (-100 <= cyan_red <= 100)"
},
{ PDB_FLOAT,
"magenta_green",
N_("Magenta-Green color balance: (-100 <= magenta_green <= 100)")
"Magenta-Green color balance: (-100 <= magenta_green <= 100)"
},
{ PDB_FLOAT,
"yellow_blue",
N_("Yellow-Blue color balance: (-100 <= yellow_blue <= 100)")
"Yellow-Blue color balance: (-100 <= yellow_blue <= 100)"
}
};
ProcRecord color_balance_proc =
{
"gimp_color_balance",
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."),
"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.",
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
"1997",
......
......@@ -613,23 +613,23 @@ ProcArg threshold_args[] =
{
{ PDB_DRAWABLE,
"drawable",
N_("the drawable")
"the drawable"
},
{ PDB_INT32,
"low_threshold",
N_("the low threshold value: (0 <= low_threshold <= 255)")
"the low threshold value: (0 <= low_threshold <= 255)"
},
{ PDB_INT32,
"high_threshold",
N_("the high threshold value: (0 <= high_threshold <= 255)")
"the high threshold value: (0 <= high_threshold <= 255)"
}
};
ProcRecord threshold_proc =
{
"gimp_threshold",
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."),
"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.",
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
"1997",
......
......@@ -1374,7 +1374,7 @@ bezier_convert (BezierSelect *bezier_sel,
list = list->next;
/*
if (!list)
g_message ("cannot properly scanline convert bezier curve: %d", i);
g_message (_("cannot properly scanline convert bezier curve: %d"), i);
else
*/
{
......
......@@ -1712,67 +1712,67 @@ ProcArg blend_args[] =
{
{ PDB_DRAWABLE,
"drawable",
N_("The affected drawable")
"The affected drawable"
},
{ PDB_INT32,
"blend_mode",
N_("The type of blend: { FG-BG-RGB (0), FG-BG-HSV (1), FG-TRANS (2), CUSTOM (3) }")
"The type of blend: { FG-BG-RGB (0), FG-BG-HSV (1), FG-TRANS (2), CUSTOM (3) }"
},
{ PDB_INT32,
"paint_mode",
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) }")
"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",
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) }")
"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",
N_("The opacity of the final blend (0 <= opacity <= 100)")
"The opacity of the final blend (0 <= opacity <= 100)"
},
{ PDB_FLOAT,
"offset",
N_("Offset relates to the starting and ending coordinates specified for the blend. This parameter is mode depndent (0 <= offset)")
"Offset relates to the starting and ending coordinates specified for the blend. This parameter is mode depndent (0 <= offset)"
},
{ PDB_INT32,
"repeat",
N_("Repeat mode: { REPEAT-NONE (0), REPEAT-SAWTOOTH (1), REPEAT-TRIANGULAR (2) }")
"Repeat mode: { REPEAT-NONE (0), REPEAT-SAWTOOTH (1), REPEAT-TRIANGULAR (2) }"
},
{ PDB_INT32,
"supersample",
N_("Do adaptive supersampling (true / false)")
"Do adaptive supersampling (true / false)"
},
{ PDB_INT32,
"max_depth",
N_("Maximum recursion levels for supersampling")
"Maximum recursion levels for supersampling"
},
{ PDB_FLOAT,
"threshold",
N_("Supersampling threshold")
"Supersampling threshold"
},
{ PDB_FLOAT,
"x1",
N_("The x coordinate of this blend's starting point")
"The x coordinate of this blend's starting point"
},
{ PDB_FLOAT,
"y1",
N_("The y coordinate of this blend's starting point")
"The y coordinate of this blend's starting point"
},
{ PDB_FLOAT,
"x2",
N_("The x coordinate of this blend's ending point")
"The x coordinate of this blend's ending point"
},
{ PDB_FLOAT,
"y2",
N_("The y coordinate of this blend's ending point")
"The y coordinate of this blend's ending point"
}
};
ProcRecord blend_proc =
{
"gimp_blend",
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."),
"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.",
"Spencer Kimball & Peter Mattis & Federico Mena Quintero",
"Spencer Kimball & Peter Mattis & Federico Mena Quintero",
"1995-1996",
......
......@@ -1272,35 +1272,35 @@ ProcArg brushes_popup_in_args[] =
{
{ PDB_STRING,
"brush_callback",
N_("the callback PDB proc to call when brush selection is made")
"the callback PDB proc to call when brush selection is made"
},
{ PDB_STRING,
"popup title",
N_("title to give the popup window"),
"title to give the popup window",
},
{ PDB_STRING,
"initial brush",
N_("The name of the brush to set as the first selected"),
"The name of the brush to set as the first selected",
},
{ PDB_FLOAT,
"initial opacity",
N_("The initial opacity of the brush"),
"The initial opacity of the brush",
},
{ PDB_INT32,
"initial spacing",
N_("The initial spacing of the brush (if < 0 then use brush default spacing)"),
"The initial spacing of the brush (if < 0 then use brush default spacing)",
},
{ PDB_INT32,
"initial paint mode",
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) }"),
"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",
N_("Invokes the Gimp brush selection"),
N_("This procedure popups the brush selection dialog"),
"Invokes the Gimp brush selection",
"This procedure popups the brush selection dialog",
"Andy Thomas",
"Andy Thomas",
"1998",
......@@ -1385,15 +1385,15 @@ ProcArg brush_close_popup_in_args[] =
{
{ PDB_STRING,
"callback_PDB_entry_name",
N_("The name of the callback registered for this popup"),
"The name of the callback registered for this popup",
},
};
ProcRecord brushes_close_popup_proc =
{
"gimp_brushes_close_popup",
N_("Popdown the Gimp brush selection"),
N_("This procedure closes an opened brush selection dialog"),
"Popdown the Gimp brush selection",
"This procedure closes an opened brush selection dialog",
"Andy Thomas",
"Andy Thomas",
"1998",
......@@ -1473,31 +1473,31 @@ ProcArg brush_set_popup_in_args[] =
{
{ PDB_STRING,
"callback_PDB_entry_name",
N_("The name of the callback registered for this popup"),
"The name of the callback registered for this popup",
},
{ PDB_STRING,
"brushname",
N_("The name of the brush to set as selected"),
"The name of the brush to set as selected",
},
{ PDB_FLOAT,
"opacity",
N_("The initial opacity of the brush"),
"The initial opacity of the brush",
},
{ PDB_INT32,
"spacing",
N_("The initial spacing of the brush (if < 0 then use brush default spacing)"),
"The initial spacing of the brush (if < 0 then use brush default spacing)",
},
{ PDB_INT32,
"initial paint mode",
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) }"),
"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_set_popup_proc =
{
"gimp_brushes_set_popup",
N_("Sets the current brush selection in a popup"),
N_("Sets the current brush selection in a popup"),
"Sets the current brush selection in a popup",
"Sets the current brush selection in a popup",
"Andy Thomas",
"Andy Thomas",
"1998",
......
......@@ -190,7 +190,7 @@ channel_copy (Channel *channel)
/* don't have rudundant "copy"s */
sprintf (channel_name, "%s", name);
else
sprintf (channel_name, N_("%s copy"), name);
sprintf (channel_name, _("%s copy"), name);
/* allocate a new channel object */
new_channel = channel_new (GIMP_DRAWABLE(channel)->gimage,
......
......@@ -28,6 +28,8 @@
#include "interface.h"
#include "palette.h"
#include "libgimp/gimpintl.h"
#include "channel_pvt.h"
#define ENTRY_WIDTH 60
......@@ -100,7 +102,7 @@ channel_ops_offset (GimpImage* gimage)
off_d->dlg = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (off_d->dlg), "offset", "Gimp");
gtk_window_set_title (GTK_WINDOW (off_d->dlg), "Offset");
gtk_window_set_title (GTK_WINDOW (off_d->dlg), _("Offset"));
/* handle the wm close signal */
gtk_signal_connect (GTK_OBJECT (off_d->dlg), "delete_event",
......@@ -108,7 +110,7 @@ channel_ops_offset (GimpImage* gimage)
off_d);
/* 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) offset_ok_callback,
......@@ -117,7 +119,7 @@ channel_ops_offset (GimpImage* gimage)
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) offset_cancel_callback,
......@@ -134,7 +136,7 @@ channel_ops_offset (GimpImage* gimage)
table = gtk_table_new (2, 2, FALSE);
gtk_box_pack_start (GTK_BOX (vbox), table, TRUE, TRUE, 0);
label = gtk_label_new ("Offset X:");
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, 0, 1, GTK_FILL, GTK_FILL, 2, 2);
off_d->off_x_entry = gtk_entry_new ();
......@@ -144,7 +146,7 @@ channel_ops_offset (GimpImage* gimage)
gtk_widget_show (label);
gtk_widget_show (off_d->off_x_entry);
label = gtk_label_new ("Offset Y:");
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, 1, 2, GTK_FILL, GTK_FILL, 2, 2);
off_d->off_y_entry = gtk_entry_new ();
......@@ -156,19 +158,19 @@ channel_ops_offset (GimpImage* gimage)
gtk_widget_show (table);
/* the wrap around option */
check = gtk_check_button_new_with_label ("Wrap-Around");
check = gtk_check_button_new_with_label (_("Wrap-Around"));
gtk_box_pack_start (GTK_BOX (vbox), check, FALSE, FALSE, 0);
gtk_widget_show (check);
/* The fill options */
off_d->fill_options = gtk_frame_new ("Fill Options");
off_d->fill_options = gtk_frame_new (_("Fill Options"));
gtk_frame_set_shadow_type (GTK_FRAME (off_d->fill_options), GTK_SHADOW_ETCHED_IN);
gtk_box_pack_start (GTK_BOX (vbox), off_d->fill_options, FALSE, TRUE, 0);
toggle_vbox = gtk_vbox_new (FALSE, 1);
gtk_container_set_border_width (GTK_CONTAINER (toggle_vbox), 5);
gtk_container_add (GTK_CONTAINER (off_d->fill_options), toggle_vbox);
toggle = gtk_radio_button_new_with_label (group, "Background");
toggle = gtk_radio_button_new_with_label (group, _("Background"));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
......@@ -179,7 +181,7 @@ channel_ops_offset (GimpImage* gimage)
if (drawable_has_alpha (drawable))
{
toggle = gtk_radio_button_new_with_label (group, "Transparent");
toggle = gtk_radio_button_new_with_label (group, _("Transparent"));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
......@@ -190,7 +192,7 @@ channel_ops_offset (GimpImage* gimage)
}
/* the by half height and half width offtion */
push = gtk_button_new_with_label ("Offset by (x/2),(y/2)");
push = gtk_button_new_with_label (_("Offset by (x/2),(y/2)"));
gtk_box_pack_start (GTK_BOX (vbox), push, FALSE, FALSE,0);
gtk_widget_show (push);
......
......@@ -151,9 +151,6 @@ static GdkPixmap *channel_pixmap[3] = { NULL, NULL, NULL };
static int suspend_gimage_notify = 0;
static guint32 button_click_time = 0;
static int button_last_id = 0;
static MenuItem channels_ops[] =
{
{ N_("New Channel"), 'N', GDK_CONTROL_MASK,
......@@ -322,7 +319,7 @@ channels_dialog_flush ()
/* Switch positions of items if necessary */
list = channelsD->channel_widgets;
pos = -channelsD->num_components + 1;
pos = -channelsD->num_components;
while (list)
{
cw = (ChannelWidget *) list->data;
......@@ -770,16 +767,6 @@ channel_list_events (GtkWidget *widget,
gtk_menu_popup (GTK_MENU (channelsD->ops_menu), NULL, NULL, NULL, NULL, bevent->button, bevent->time);
return TRUE;
}
/* Grumble - we have to handle double clicks ourselves because channels_dialog_flush is broken */
if (channel_widget->type == Auxillary) {
if ((event->button.time < (button_click_time + 250)) && (channel_widget->ID == button_last_id)) {
channels_dialog_edit_channel_query (channel_widget);
return TRUE;
} else {
button_click_time = event->button.time;
button_last_id = channel_widget->ID;
}
}
break;
case GDK_2BUTTON_PRESS:
......
......@@ -549,31 +549,31 @@ ProcArg clone_args[] =
{
{ PDB_DRAWABLE,
"drawable",
N_("the drawable")
"the drawable"
},
{ PDB_DRAWABLE,
"src_drawable",
N_("the source drawable")
"the source drawable"
},
{ PDB_INT32,
"clone_type",
N_("the type of clone: { IMAGE-CLONE (0), PATTERN-CLONE (1) }")
"the type of clone: { IMAGE-CLONE (0), PATTERN-CLONE (1) }"
},
{ PDB_FLOAT,
"src_x",
N_("the x coordinate in the source image")
"the x coordinate in the source image"
},
{ PDB_FLOAT,
"src_y",
N_("the y coordinate in the source image")
"the y coordinate in the source image"
},
{ PDB_INT32,
"num_strokes",
N_("number of stroke control points (count each coordinate as 2 points)")
"number of stroke control points (count each coordinate as 2 points)"
},
{ PDB_FLOATARRAY,
"strokes",
N_("array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}")
"array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}"
}
};
......@@ -581,8 +581,8 @@ ProcArg clone_args[] =
ProcRecord clone_proc =
{
"gimp_clone",
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."),
"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.",
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
"1995-1996",
......
......@@ -392,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), N_("Color Balance"));
gtk_window_set_title (GTK_WINDOW (cbd->shell), _("Color Balance"));
/* handle the wm close signal */
gtk_signal_connect (GTK_OBJECT (cbd->shell), "delete_event",
......@@ -879,35 +879,35 @@ ProcArg color_balance_args[] =
{
{ PDB_DRAWABLE,
"drawable",
N_("the drawable")
"the drawable"
},
{ PDB_INT32,
"transfer_mode",
N_("Transfer mode: { SHADOWS (0), MIDTONES (1), HIGHLIGHTS (2) }")
"Transfer mode: { SHADOWS (0), MIDTONES (1), HIGHLIGHTS (2) }"
},
{ PDB_INT32,
"preserve_lum",
N_("Preserve luminosity values at each pixel")
"Preserve luminosity values at each pixel"
},
{ PDB_FLOAT,
"cyan_red",
N_("Cyan-Red color balance: (-100 <= cyan_red <= 100)")
"Cyan-Red color balance: (-100 <= cyan_red <= 100)"
},
{ PDB_FLOAT,
"magenta_green",
N_("Magenta-Green color balance: (-100 <= magenta_green <= 100)")
"Magenta-Green color balance: (-100 <= magenta_green <= 100)"
},
{ PDB_FLOAT,
"yellow_blue",
N_("Yellow-Blue color balance: (-100 <= yellow_blue <= 100)")
"Yellow-Blue color balance: (-100 <= yellow_blue <= 100)"
}
};
ProcRecord color_balance_proc =
{
"gimp_color_balance",
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."),
"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.",
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
"1997",
......
......@@ -426,23 +426,23 @@ ProcArg convolve_args[] =
{
{ PDB_DRAWABLE,
"drawable",
N_("the drawable")
"the drawable"
},
{ PDB_FLOAT,
"pressure",
N_("the pressure: 0 <= pressure <= 100")
"the pressure: 0 <= pressure <= 100"
},
{ PDB_INT32,