applied gimp-stric-981116-1, lots o files changes in app. i18n patch.

* applied gimp-stric-981116-1, lots o files changes in app. i18n patch.

* plug-ins/gfig/gfig.c: applied gimp-tml-981121-0, use proper PDB params

-Yosh
This commit is contained in:
Manish Singh 1998-11-23 14:47:09 +00:00
parent 25f3cc8d31
commit cb80e23d3b
103 changed files with 1604 additions and 1472 deletions

View File

@ -1,3 +1,11 @@
Mon Nov 23 06:44:10 PST 1998 Manish Singh <yosh@gimp.org>
* applied gimp-stric-981116-1, lots o files changes in app. i18n
patch.
* plug-ins/gfig/gfig.c: applied gimp-tml-981121-0, use proper PDB
params
Mon Nov 23 01:17:57 PST 1998 Manish Singh <yosh@gimp.org>
* configure.in: require GTK+ 1.1.5

View File

@ -23,12 +23,12 @@
#include "libgimp/gimpfeatures.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#include "about_dialog.h"
#include "interface.h"
#include "config.h"
#define ANIMATION_STEPS 16
#define ANIMATION_SIZE 2

View File

@ -18,6 +18,9 @@
#include "appenv.h"
#include "actionarea.h"
#include "config.h"
#include "libgimp/gimpintl.h"
void
build_action_area (GtkDialog * dlg,
ActionAreaItem * actions,
@ -31,7 +34,7 @@ build_action_area (GtkDialog * dlg,
for (i = 0; i < num_actions; i++)
{
button = gtk_button_new_with_label (actions[i].label);
button = gtk_button_new_with_label (gettext(actions[i].label));
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
gtk_box_pack_start (GTK_BOX (dlg->action_area), button, TRUE, TRUE, 0);

View File

@ -103,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);
@ -121,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);

View File

@ -29,6 +29,8 @@
#include "image_map.h"
#include "interface.h"
#include "libgimp/gimpintl.h"
#define HUE_PARTITION_MASK GDK_EXPOSURE_MASK | GDK_ENTER_NOTIFY_MASK
#define TEXT_WIDTH 45
@ -317,7 +319,7 @@ tools_new_hue_saturation ()
/* The tool options */
if (!hue_saturation_options)
hue_saturation_options = tools_register_no_options (HUE_SATURATION, "Hue-Saturation Options");
hue_saturation_options = tools_register_no_options (HUE_SATURATION, _("Hue-Saturation Options"));
tool = (Tool *) g_malloc (sizeof (Tool));
private = (HueSaturation *) g_malloc (sizeof (HueSaturation));
@ -361,7 +363,7 @@ hue_saturation_initialize (GDisplay *gdisp)
if (! drawable_color (gimage_active_drawable (gdisp->gimage)))
{
g_message ("Hue-Saturation operates only on RGB color drawables.");
g_message (_("Hue-Saturation operates only on RGB color drawables."));
return;
}
@ -407,8 +409,8 @@ hue_saturation_free ()
/* the action area structure */
static ActionAreaItem action_items[] =
{
{ "OK", hue_saturation_ok_callback, NULL, NULL },
{ "Cancel", hue_saturation_cancel_callback, NULL, NULL }
{ N_("OK"), hue_saturation_ok_callback, NULL, NULL },
{ N_("Cancel"), hue_saturation_cancel_callback, NULL, NULL }
};
static HueSaturationDialog *
@ -430,13 +432,13 @@ hue_saturation_new_dialog ()
int i;
char *hue_partition_names[7] =
{
"Master",
"R",
"Y",
"G",
"C",
"B",
"M"
N_("Master"),
N_("R"),
N_("Y"),
N_("G"),
N_("C"),
N_("B"),
N_("M")
};
ActionCallback hue_partition_callbacks[7] =
{
@ -456,7 +458,7 @@ hue_saturation_new_dialog ()
/* The shell and main vbox */
hsd->shell = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (hsd->shell), "hue_saturation", "Gimp");
gtk_window_set_title (GTK_WINDOW (hsd->shell), "Hue-Saturation");
gtk_window_set_title (GTK_WINDOW (hsd->shell), _("Hue-Saturation"));
/* handle the wm close signal */
gtk_signal_connect (GTK_OBJECT (hsd->shell), "delete_event",
@ -518,7 +520,7 @@ hue_saturation_new_dialog ()
vbox = gtk_vbox_new (FALSE, 2);
gtk_box_pack_start (GTK_BOX (main_hbox), vbox, FALSE, FALSE, 0);
label = gtk_label_new ("Hue / Lightness / Saturation Adjustments");
label = gtk_label_new (_("Hue / Lightness / Saturation Adjustments"));
gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5);
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
@ -528,7 +530,7 @@ hue_saturation_new_dialog ()
gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, FALSE, 0);
/* Create the hue scale widget */
label = gtk_label_new ("Hue");
label = gtk_label_new (_("Hue"));
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);
@ -562,7 +564,7 @@ hue_saturation_new_dialog ()
/* Create the lightness scale widget */
label = gtk_label_new ("Lightness");
label = gtk_label_new (_("Lightness"));
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);
@ -596,7 +598,7 @@ hue_saturation_new_dialog ()
/* Create the saturation scale widget */
label = gtk_label_new ("Saturation");
label = gtk_label_new (_("Saturation"));
gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 2, 3,
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2);
@ -619,7 +621,7 @@ hue_saturation_new_dialog ()
hsd->saturation_text = gtk_entry_new ();
gtk_widget_set_usize (hsd->saturation_text, TEXT_WIDTH, TEXT_HEIGHT);
gtk_table_attach (GTK_TABLE (table), hsd->saturation_text, 2, 3, 2, 3,
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2);
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 3, 2);
gtk_signal_connect (GTK_OBJECT (hsd->saturation_text), "changed",
(GtkSignalFunc) hue_saturation_saturation_text_update,
hsd);
@ -634,7 +636,7 @@ hue_saturation_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), hsd->preview);
gtk_box_pack_start (GTK_BOX (hbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
@ -731,7 +733,7 @@ static void
hue_saturation_preview (HueSaturationDialog *hsd)
{
if (!hsd->image_map)
g_message ("hue_saturation_preview(): No image map");
g_message (_("hue_saturation_preview(): No image map"));
active_tool->preserve = TRUE;
image_map_apply (hsd->image_map, hue_saturation, (void *) hsd);
active_tool->preserve = FALSE;

View File

@ -167,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);
@ -186,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);
@ -205,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 ();
@ -216,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);
@ -226,7 +226,7 @@ create_bucket_options (void)
/* the radio buttons */
for (i = 0; i < 2; i++)
{
radio_button = gtk_radio_button_new_with_label (group, button_names[i]);
radio_button = gtk_radio_button_new_with_label (group, gettext(button_names[i]));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (radio_button));
gtk_signal_connect (GTK_OBJECT (radio_button), "toggled",
(GtkSignalFunc) bucket_fill_mode_callback,

View File

@ -19,6 +19,9 @@
#include "buildmenu.h"
#include "interface.h"
#include "config.h"
#include "libgimp/gimpintl.h"
GtkWidget *
build_menu (MenuItem *items,
GtkAccelGroup *accel_group)
@ -38,7 +41,7 @@ build_menu (MenuItem *items,
}
else
{
menu_item = gtk_menu_item_new_with_label (items->label);
menu_item = gtk_menu_item_new_with_label (gettext(items->label));
gtk_container_add (GTK_CONTAINER (menu), menu_item);
if (items->accelerator_key && accel_group)

View File

@ -141,7 +141,7 @@ create_clone_options (void)
/* the radio buttons */
for (i = 0; i < 2; i++)
{
radio_button = gtk_radio_button_new_with_label (group, button_names[i]);
radio_button = gtk_radio_button_new_with_label (group, gettext(button_names[i]));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (radio_button));
gtk_signal_connect (GTK_OBJECT (radio_button), "toggled",
(GtkSignalFunc) clone_type_callback,

View File

@ -150,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);
@ -171,7 +171,7 @@ create_convolve_options (void)
/* the radio buttons */
for (i = 0; i < 2; i++)
{
radio_button = gtk_radio_button_new_with_label (group, button_names[i]);
radio_button = gtk_radio_button_new_with_label (group, gettext(button_names[i]));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (radio_button));
gtk_box_pack_start (GTK_BOX (radio_box), radio_button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (radio_button), "toggled",

View File

@ -32,6 +32,8 @@
#include "tools.h"
#include "undo.h"
#include "libgimp/gimpintl.h"
#include "tile_manager_pvt.h"
#include "drawable_pvt.h"
@ -279,7 +281,7 @@ edit_paste (GImage *gimage,
int cx, cy;
/* Make a new floating layer */
float_layer = layer_from_tiles (gimage, drawable, paste, "Pasted Layer", OPAQUE_OPACITY, NORMAL);
float_layer = layer_from_tiles (gimage, drawable, paste, _("Pasted Layer"), OPAQUE_OPACITY, NORMAL);
if (float_layer)
{
@ -586,9 +588,9 @@ paste_named_buffer (GDisplay *gdisp)
{
static ActionAreaItem action_items[3] =
{
{ "Paste", named_buffer_paste_callback, NULL, NULL },
{ "Delete", named_buffer_delete_callback, NULL, NULL },
{ "Cancel", named_buffer_cancel_callback, NULL, NULL }
{ N_("Paste"), named_buffer_paste_callback, NULL, NULL },
{ N_("Delete"), named_buffer_delete_callback, NULL, NULL },
{ N_("Cancel"), named_buffer_cancel_callback, NULL, NULL }
};
PasteNamedDlg *pn_dlg;
GtkWidget *vbox;
@ -601,7 +603,7 @@ paste_named_buffer (GDisplay *gdisp)
pn_dlg->shell = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (pn_dlg->shell), "paste_named_buffer", "Gimp");
gtk_window_set_title (GTK_WINDOW (pn_dlg->shell), "Paste Named Buffer");
gtk_window_set_title (GTK_WINDOW (pn_dlg->shell), _("Paste Named Buffer"));
gtk_window_position (GTK_WINDOW (pn_dlg->shell), GTK_WIN_POS_MOUSE);
gtk_signal_connect (GTK_OBJECT (pn_dlg->shell), "delete_event",
@ -613,7 +615,7 @@ paste_named_buffer (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 paste:");
label = gtk_label_new (_("Select a buffer to paste:"));
gtk_box_pack_start (GTK_BOX (vbox), label, TRUE, FALSE, 0);
gtk_widget_show (label);
@ -632,7 +634,7 @@ paste_named_buffer (GDisplay *gdisp)
set_list_of_named_buffers (pn_dlg->list);
gtk_widget_show (pn_dlg->list);
paste_into = gtk_check_button_new_with_label ("Replace Current Selection");
paste_into = gtk_check_button_new_with_label (_("Replace Current Selection"));
gtk_box_pack_start (GTK_BOX (vbox), paste_into, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (paste_into), "toggled",
(GtkSignalFunc) named_buffer_paste_into_update,
@ -694,7 +696,7 @@ named_edit_cut (void *gdisp_ptr)
gdisp = (GDisplay *) gdisp_ptr;
active_tool_control (HALT, gdisp_ptr);
query_string_box ("Cut Named", "Enter a name for this buffer", NULL,
query_string_box (_("Cut Named"), _("Enter a name for this buffer"), NULL,
cut_named_buffer_callback, gdisp);
return TRUE;
}
@ -723,7 +725,7 @@ named_edit_copy (void *gdisp_ptr)
gdisp = (GDisplay *) gdisp_ptr;
query_string_box ("Copy Named", "Enter a name for this buffer", NULL,
query_string_box (_("Copy Named"), _("Enter a name for this buffer"), NULL,
copy_named_buffer_callback, gdisp);
return TRUE;
}

View File

@ -25,6 +25,8 @@
#include "gimprc.h"
#include "brush_header.h"
#include "libgimp/gimpintl.h"
enum{
DIRTY,
RENAME,
@ -195,14 +197,14 @@ gimp_brush_load(GimpBrush *brush, char *filename)
brush->name = (char *) g_malloc (sizeof (char) * bn_size);
if ((fread (brush->name, 1, bn_size, fp)) < bn_size)
{
g_message ("Error in GIMP brush file...aborting.");
g_message (_("Error in GIMP brush file...aborting."));
fclose (fp);
gimp_object_destroy (brush);
return;
}
}
else
brush->name = g_strdup ("Unnamed");
brush->name = g_strdup (_("Unnamed"));
switch(header.version)
{
@ -220,10 +222,10 @@ gimp_brush_load(GimpBrush *brush, char *filename)
/* Read the brush mask data */
if ((fread (temp_buf_data (brush->mask), 1, header.width * header.height,
fp)) < header.width * header.height)
g_message ("GIMP brush file appears to be truncated.");
g_message (_("GIMP brush file appears to be truncated."));
break;
default:
g_message ("Unknown brush format version #%d in \"%s\"\n",
g_message (_("Unknown brush format version #%d in \"%s\"\n"),
header.version, filename);
fclose (fp);
gimp_object_destroy (brush);

View File

@ -25,6 +25,8 @@
#include "gimprc.h"
#include "brush_header.h"
#include "libgimp/gimpintl.h"
enum{
DIRTY,
RENAME,
@ -195,14 +197,14 @@ gimp_brush_load(GimpBrush *brush, char *filename)
brush->name = (char *) g_malloc (sizeof (char) * bn_size);
if ((fread (brush->name, 1, bn_size, fp)) < bn_size)
{
g_message ("Error in GIMP brush file...aborting.");
g_message (_("Error in GIMP brush file...aborting."));
fclose (fp);
gimp_object_destroy (brush);
return;
}
}
else
brush->name = g_strdup ("Unnamed");
brush->name = g_strdup (_("Unnamed"));
switch(header.version)
{
@ -220,10 +222,10 @@ gimp_brush_load(GimpBrush *brush, char *filename)
/* Read the brush mask data */
if ((fread (temp_buf_data (brush->mask), 1, header.width * header.height,
fp)) < header.width * header.height)
g_message ("GIMP brush file appears to be truncated.");
g_message (_("GIMP brush file appears to be truncated."));
break;
default:
g_message ("Unknown brush format version #%d in \"%s\"\n",
g_message (_("Unknown brush format version #%d in \"%s\"\n"),
header.version, filename);
fclose (fp);
gimp_object_destroy (brush);

View File

@ -44,7 +44,7 @@ image_equalize (gimage_ptr)
if (drawable_indexed (drawable))
{
g_message ("Equalize does not operate on indexed drawables.");
g_message (_("Equalize does not operate on indexed drawables."));
return;
}
equalize (gimage, drawable, mask_only);

View File

@ -24,6 +24,8 @@
#include "invert.h"
#include "gimage.h"
#include "libgimp/gimpintl.h"
static void invert (GimpDrawable *);
static Argument * invert_invoker (Argument *);
@ -42,7 +44,7 @@ image_invert (gimage_ptr)
if (drawable_indexed (drawable))
{
g_message ("Invert does not operate on indexed drawables.");
g_message (_("Invert does not operate on indexed drawables."));
return;
}
@ -52,7 +54,7 @@ image_invert (gimage_ptr)
PDB_END);
if (return_vals[0].value.pdb_int != PDB_SUCCESS)
g_message ("Invert operation failed.");
g_message (_("Invert operation failed."));
procedural_db_destroy_args (return_vals, nreturn_vals);
}

View File

@ -26,6 +26,7 @@
#include "gimage_mask.h"
#include "parasitelist.h"
#include "libgimp/gimpintl.h"
enum {
INVALIDATE_PREVIEW,
@ -158,7 +159,7 @@ gimp_drawable_fill (GimpDrawable *drawable, guchar r, guchar g,
c[ALPHA_I_PIX] = a;
break;
default:
g_message ("Can't fill unknown image type.");
g_message (_("Can't fill unknown image type."));
break;
}
@ -600,7 +601,7 @@ gimp_drawable_configure (GimpDrawable *drawable,
int alpha;
if (!name)
name = "unnamed";
name = _("unnamed");
switch (type)
{
@ -617,7 +618,7 @@ gimp_drawable_configure (GimpDrawable *drawable,
case INDEXEDA_GIMAGE:
bpp = 2; alpha = 1; break;
default:
g_message ("Layer type %d not supported.", type);
g_message (_("Layer type %d not supported."), type);
return;
}

View File

@ -32,6 +32,8 @@
#include "tools.h"
#include "undo.h"
#include "libgimp/gimpintl.h"
#include "tile_manager_pvt.h"
#include "drawable_pvt.h"
@ -279,7 +281,7 @@ edit_paste (GImage *gimage,
int cx, cy;
/* Make a new floating layer */
float_layer = layer_from_tiles (gimage, drawable, paste, "Pasted Layer", OPAQUE_OPACITY, NORMAL);
float_layer = layer_from_tiles (gimage, drawable, paste, _("Pasted Layer"), OPAQUE_OPACITY, NORMAL);
if (float_layer)
{
@ -586,9 +588,9 @@ paste_named_buffer (GDisplay *gdisp)
{
static ActionAreaItem action_items[3] =
{
{ "Paste", named_buffer_paste_callback, NULL, NULL },
{ "Delete", named_buffer_delete_callback, NULL, NULL },
{ "Cancel", named_buffer_cancel_callback, NULL, NULL }
{ N_("Paste"), named_buffer_paste_callback, NULL, NULL },
{ N_("Delete"), named_buffer_delete_callback, NULL, NULL },
{ N_("Cancel"), named_buffer_cancel_callback, NULL, NULL }
};
PasteNamedDlg *pn_dlg;
GtkWidget *vbox;
@ -601,7 +603,7 @@ paste_named_buffer (GDisplay *gdisp)
pn_dlg->shell = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (pn_dlg->shell), "paste_named_buffer", "Gimp");
gtk_window_set_title (GTK_WINDOW (pn_dlg->shell), "Paste Named Buffer");
gtk_window_set_title (GTK_WINDOW (pn_dlg->shell), _("Paste Named Buffer"));
gtk_window_position (GTK_WINDOW (pn_dlg->shell), GTK_WIN_POS_MOUSE);
gtk_signal_connect (GTK_OBJECT (pn_dlg->shell), "delete_event",
@ -613,7 +615,7 @@ paste_named_buffer (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 paste:");
label = gtk_label_new (_("Select a buffer to paste:"));
gtk_box_pack_start (GTK_BOX (vbox), label, TRUE, FALSE, 0);
gtk_widget_show (label);
@ -632,7 +634,7 @@ paste_named_buffer (GDisplay *gdisp)
set_list_of_named_buffers (pn_dlg->list);
gtk_widget_show (pn_dlg->list);
paste_into = gtk_check_button_new_with_label ("Replace Current Selection");
paste_into = gtk_check_button_new_with_label (_("Replace Current Selection"));
gtk_box_pack_start (GTK_BOX (vbox), paste_into, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (paste_into), "toggled",
(GtkSignalFunc) named_buffer_paste_into_update,
@ -694,7 +696,7 @@ named_edit_cut (void *gdisp_ptr)
gdisp = (GDisplay *) gdisp_ptr;
active_tool_control (HALT, gdisp_ptr);
query_string_box ("Cut Named", "Enter a name for this buffer", NULL,
query_string_box (_("Cut Named"), _("Enter a name for this buffer"), NULL,
cut_named_buffer_callback, gdisp);
return TRUE;
}
@ -723,7 +725,7 @@ named_edit_copy (void *gdisp_ptr)
gdisp = (GDisplay *) gdisp_ptr;
query_string_box ("Copy Named", "Enter a name for this buffer", NULL,
query_string_box (_("Copy Named"), _("Enter a name for this buffer"), NULL,
copy_named_buffer_callback, gdisp);
return TRUE;
}

View File

@ -16,8 +16,8 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include <string.h>
#include "gimpimageP.h"
#include "gimpimageP.h"
#include "drawable.h"
#include "floating_sel.h"
#include "gdisplay.h"
@ -30,6 +30,8 @@
#include "undo.h"
#include "gimpsignal.h"
#include "libgimp/gimpintl.h"
#include "tile_manager.h"
#include "tile.h"
#include "layer_pvt.h"
@ -532,7 +534,7 @@ gimp_image_apply_image (GimpImage *gimage, GimpDrawable *drawable, PixelRegion *
operation = valid_combinations [drawable_type (drawable)][src2PR->bytes];
if (operation == -1)
{
g_message ("gimp_image_apply_image sent illegal parameters");
g_message (_("gimp_image_apply_image sent illegal parameters"));
return;
}
@ -626,7 +628,7 @@ gimp_image_replace_image (GimpImage *gimage, GimpDrawable *drawable, PixelRegion
operation = valid_combinations [drawable_type (drawable)][src2PR->bytes];
if (operation == -1)
{
g_message ("gimp_image_apply_image sent illegal parameters");
g_message (_("gimp_image_apply_image sent illegal parameters"));
return;
}
@ -904,7 +906,7 @@ gimp_image_get_new_tattoo(GimpImage *image)
{
image->tattoo_state++;
if (image->tattoo_state <= 0)
g_warning("Tattoo state has become corrupt (2.1 billion operation limit exceded)");
g_warning(_("Tattoo state has become corrupt (2.1 billion operation limit exceded)"));
return (image->tattoo_state);
}
@ -948,7 +950,7 @@ project_indexed (GimpImage *gimage, Layer *layer,
initial_region (src, dest, NULL, gimage->cmap, layer->opacity,
layer->mode, gimage->visible, INITIAL_INDEXED);
else
g_message ("Unable to project indexed image.");
g_message (_("Unable to project indexed image."));
}
@ -1710,7 +1712,7 @@ gimp_image_raise_layer (GimpImage *gimage, Layer *layer_arg)
}
else
{
g_message ("Layer cannot be raised any further");
g_message (_("Layer cannot be raised any further"));
return NULL;
}
}
@ -1782,7 +1784,7 @@ gimp_image_lower_layer (GimpImage *gimage, Layer *layer_arg)
}
else
{
g_message ("Layer cannot be lowered any further");
g_message (_("Layer cannot be lowered any further"));
return NULL;
}
}
@ -1811,12 +1813,12 @@ gimp_image_raise_layer_to_top (GimpImage *gimage, Layer *layer_arg)
if (layer == layer_arg)
{
/* layer_arg is already the top_layer */
g_message ("Layer is already on top");
g_message (_("Layer is already on top"));
return NULL;
}
if (! layer_has_alpha (layer_arg))
{
g_message ("cant raise Layer without alpha");
g_message (_("Can't raise Layer without alpha"));
return NULL;
}
@ -1908,7 +1910,7 @@ gimp_image_lower_layer_to_bottom (GimpImage *gimage, Layer *layer_arg)
if (layer == layer_arg)
{
/* there is no next layer below layer_arg */
g_message ("Layer is already on bottom");
g_message (_("Layer is already on bottom"));
}
/* bottom is reached, we can stop now */
break;
@ -1921,7 +1923,7 @@ gimp_image_lower_layer_to_bottom (GimpImage *gimage, Layer *layer_arg)
}
else
{
g_message ("BG has no alpha, layer was placed above");
g_message (_("BG has no alpha, layer was placed above"));
break;
}
@ -1978,7 +1980,7 @@ gimp_image_merge_visible_layers (GimpImage *gimage, MergeType merge_type)
}
else
{
g_message ("There are not enough visible layers for a merge.\nThere must be at least two.");
g_message (_("There are not enough visible layers for a merge.\nThere must be at least two."));
g_slist_free (merge_list);
return NULL;
}
@ -2050,7 +2052,7 @@ gimp_image_merge_down (GimpImage *gimage,
}
else
{
g_message ("There are not enough visible layers for a merge down.");
g_message (_("There are not enough visible layers for a merge down."));
g_slist_free (merge_list);
return NULL;
}
@ -2161,7 +2163,7 @@ gimp_image_merge_layers (GimpImage *gimage, GSList *merge_list, MergeType merge_
type, drawable_get_name (GIMP_DRAWABLE(layer)), OPAQUE_OPACITY, NORMAL_MODE);
if (!merge_layer) {
g_message ("gimp_image_merge_layers: could not allocate merge layer");
g_message (_("gimp_image_merge_layers: could not allocate merge layer"));
return NULL;
}
@ -2194,7 +2196,7 @@ gimp_image_merge_layers (GimpImage *gimage, GSList *merge_list, MergeType merge_
if (!merge_layer) {
g_message ("gimp_image_merge_layers: could not allocate merge layer");
g_message (_("gimp_image_merge_layers: could not allocate merge layer"));
return NULL;
}
@ -2233,7 +2235,7 @@ gimp_image_merge_layers (GimpImage *gimage, GSList *merge_list, MergeType merge_
operation = valid_combinations [drawable_type (GIMP_DRAWABLE(merge_layer))][drawable_bytes (GIMP_DRAWABLE(layer))];
if (operation == -1)
{
g_message ("gimp_image_merge_layers attempting to merge incompatible layers\n");
g_message (_("gimp_image_merge_layers attempting to merge incompatible layers\n"));
return NULL;
}
@ -2313,7 +2315,7 @@ gimp_image_add_layer (GimpImage *gimage, Layer *float_layer, int position)
if (GIMP_DRAWABLE(float_layer)->gimage != NULL &&
GIMP_DRAWABLE(float_layer)->gimage != gimage)
{
g_message ("gimp_image_add_layer: attempt to add layer to wrong image");
g_message (_("gimp_image_add_layer: attempt to add layer to wrong image"));
return NULL;
}
@ -2323,7 +2325,7 @@ gimp_image_add_layer (GimpImage *gimage, Layer *float_layer, int position)
{
if (ll->data == float_layer)
{
g_message ("gimp_image_add_layer: trying to add layer to image twice");
g_message (_("gimp_image_add_layer: trying to add layer to image twice"));
return NULL;
}
ll = g_slist_next(ll);
@ -2433,22 +2435,24 @@ LayerMask *
gimp_image_add_layer_mask (GimpImage *gimage, Layer *layer, LayerMask *mask)
{
LayerMaskUndo *lmu;
char *error = NULL;;
if (layer->mask != NULL)
error = "Unable to add a layer mask since\nthe layer already has one.";
{
g_message(_("Unable to add a layer mask since\nthe layer already has one."));
}
if (drawable_indexed (GIMP_DRAWABLE(layer)))
error = "Unable to add a layer mask to a\nlayer in an indexed image.";
{
g_message(_("Unable to add a layer mask to a\nlayer in an indexed image."));
}
if (! layer_has_alpha (layer))
error = "Cannot add layer mask to a layer\nwith no alpha channel.";
{
g_message(_("Cannot add layer mask to a layer\nwith no alpha channel."));
}
if (drawable_width (GIMP_DRAWABLE(layer)) != drawable_width (GIMP_DRAWABLE(mask)) || drawable_height (GIMP_DRAWABLE(layer)) != drawable_height (GIMP_DRAWABLE(mask)))
error = "Cannot add layer mask of different dimensions than specified layer.";
if (error)
{
g_message (error);
return NULL;
}
{
g_message(_("Cannot add layer mask of different dimensions than specified layer."));
return NULL;
}
layer_add_mask (layer, mask);
@ -2550,7 +2554,7 @@ gimp_image_raise_channel (GimpImage *gimage, Channel * channel_arg)
}
else
{
g_message ("Channel cannot be raised any further");
g_message (_("Channel cannot be raised any further"));
return NULL;
}
}
@ -2597,7 +2601,7 @@ gimp_image_lower_channel (GimpImage *gimage, Channel *channel_arg)
}
else
{
g_message ("Channel cannot be lowered any further");
g_message (_("Channel cannot be lowered any further"));
return NULL;
}
}
@ -2617,7 +2621,7 @@ gimp_image_add_channel (GimpImage *gimage, Channel *channel, int position)
if (GIMP_DRAWABLE(channel)->gimage != NULL &&
GIMP_DRAWABLE(channel)->gimage != gimage)
{
g_message ("gimp_image_add_channel: attempt to add channel to wrong image");
g_message (_("gimp_image_add_channel: attempt to add channel to wrong image"));
return NULL;
}
@ -2627,7 +2631,7 @@ gimp_image_add_channel (GimpImage *gimage, Channel *channel, int position)
{
if (cc->data == channel)
{
g_message ("gimp_image_add_channel: trying to add channel to image twice");
g_message (_("gimp_image_add_channel: trying to add channel to image twice"));
return NULL;
}
cc = g_slist_next (cc);
@ -2753,7 +2757,7 @@ gimp_image_filename (GimpImage *gimage)
if (gimage->has_filename)
return gimage->filename;
else
return "Untitled";
return _("Untitled");
}
int

View File

@ -31,6 +31,8 @@
#include "paint_core.h"
#include "undo.h"
#include "libgimp/gimpintl.h"
#include "layer_pvt.h"
#include "tile_manager_pvt.h"
#include "drawable_pvt.h"
@ -209,7 +211,7 @@ gimage_mask_extract (gimage, drawable, cut_gimage, keep_indexed)
non_empty = drawable_mask_bounds (drawable, &x1, &y1, &x2, &y2);
if (non_empty && (!(x2 - x1) || !(y2 - y1)))
{
g_message ("Unable to cut/copy because the selected\nregion is empty.");
g_message (_("Unable to cut/copy because the selected\nregion is empty."));
return NULL;
}
@ -332,7 +334,7 @@ gimage_mask_float (gimage, drawable, off_x, off_y)
non_empty = drawable_mask_bounds ( (drawable), &x1, &y1, &x2, &y2);
if (! non_empty || (x2 - x1) == 0 || (y2 - y1) == 0)
{
g_message ("Float Selection: No selection to float.");
g_message (_("Float Selection: No selection to float."));
return NULL;
}
@ -343,7 +345,7 @@ gimage_mask_float (gimage, drawable, off_x, off_y)
tiles = gimage_mask_extract (gimage, drawable, TRUE, FALSE);
/* Create a new layer from the buffer */
layer = layer_from_tiles (gimage, drawable, tiles, "Floated Layer", OPAQUE_OPACITY, NORMAL);
layer = layer_from_tiles (gimage, drawable, tiles, _("Floated Layer"), OPAQUE_OPACITY, NORMAL);
/* Set the offsets */
GIMP_DRAWABLE(layer)->offset_x = tiles->x + off_x;
@ -486,7 +488,7 @@ gimage_mask_layer_alpha (gimage, layer)
}
else
{
g_message ("The active layer has no alpha channel\nto convert to a selection.");
g_message (_("The active layer has no alpha channel\nto convert to a selection."));
return;
}
}
@ -505,7 +507,7 @@ gimage_mask_layer_mask (gimage, layer)
}
else
{
g_message ("The active layer has no mask\nto convert to a selection.");
g_message (_("The active layer has no mask\nto convert to a selection."));
return;
}
}
@ -554,7 +556,7 @@ gimage_mask_stroke (gimage, drawable)
if (! gimage_mask_boundary (gimage, &bs_in, &bs_out, &num_segs_in, &num_segs_out))
{
g_message ("No selection to stroke!");
g_message (_("No selection to stroke!"));
return FALSE;
}

View File

@ -16,8 +16,8 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include <string.h>
#include "gimpimageP.h"
#include "gimpimageP.h"
#include "drawable.h"
#include "floating_sel.h"
#include "gdisplay.h"
@ -30,6 +30,8 @@
#include "undo.h"
#include "gimpsignal.h"
#include "libgimp/gimpintl.h"
#include "tile_manager.h"
#include "tile.h"
#include "layer_pvt.h"
@ -532,7 +534,7 @@ gimp_image_apply_image (GimpImage *gimage, GimpDrawable *drawable, PixelRegion *
operation = valid_combinations [drawable_type (drawable)][src2PR->bytes];
if (operation == -1)
{
g_message ("gimp_image_apply_image sent illegal parameters");
g_message (_("gimp_image_apply_image sent illegal parameters"));
return;
}
@ -626,7 +628,7 @@ gimp_image_replace_image (GimpImage *gimage, GimpDrawable *drawable, PixelRegion
operation = valid_combinations [drawable_type (drawable)][src2PR->bytes];
if (operation == -1)
{
g_message ("gimp_image_apply_image sent illegal parameters");
g_message (_("gimp_image_apply_image sent illegal parameters"));
return;
}
@ -904,7 +906,7 @@ gimp_image_get_new_tattoo(GimpImage *image)
{
image->tattoo_state++;
if (image->tattoo_state <= 0)
g_warning("Tattoo state has become corrupt (2.1 billion operation limit exceded)");
g_warning(_("Tattoo state has become corrupt (2.1 billion operation limit exceded)"));
return (image->tattoo_state);
}
@ -948,7 +950,7 @@ project_indexed (GimpImage *gimage, Layer *layer,
initial_region (src, dest, NULL, gimage->cmap, layer->opacity,
layer->mode, gimage->visible, INITIAL_INDEXED);
else
g_message ("Unable to project indexed image.");
g_message (_("Unable to project indexed image."));
}
@ -1710,7 +1712,7 @@ gimp_image_raise_layer (GimpImage *gimage, Layer *layer_arg)
}
else
{
g_message ("Layer cannot be raised any further");
g_message (_("Layer cannot be raised any further"));
return NULL;
}
}
@ -1782,7 +1784,7 @@ gimp_image_lower_layer (GimpImage *gimage, Layer *layer_arg)
}
else
{
g_message ("Layer cannot be lowered any further");
g_message (_("Layer cannot be lowered any further"));
return NULL;
}
}
@ -1811,12 +1813,12 @@ gimp_image_raise_layer_to_top (GimpImage *gimage, Layer *layer_arg)
if (layer == layer_arg)
{
/* layer_arg is already the top_layer */
g_message ("Layer is already on top");
g_message (_("Layer is already on top"));
return NULL;
}
if (! layer_has_alpha (layer_arg))
{
g_message ("cant raise Layer without alpha");
g_message (_("Can't raise Layer without alpha"));
return NULL;
}
@ -1908,7 +1910,7 @@ gimp_image_lower_layer_to_bottom (GimpImage *gimage, Layer *layer_arg)
if (layer == layer_arg)
{
/* there is no next layer below layer_arg */
g_message ("Layer is already on bottom");
g_message (_("Layer is already on bottom"));
}
/* bottom is reached, we can stop now */
break;
@ -1921,7 +1923,7 @@ gimp_image_lower_layer_to_bottom (GimpImage *gimage, Layer *layer_arg)
}
else
{
g_message ("BG has no alpha, layer was placed above");
g_message (_("BG has no alpha, layer was placed above"));
break;
}
@ -1978,7 +1980,7 @@ gimp_image_merge_visible_layers (GimpImage *gimage, MergeType merge_type)
}
else
{
g_message ("There are not enough visible layers for a merge.\nThere must be at least two.");
g_message (_("There are not enough visible layers for a merge.\nThere must be at least two."));
g_slist_free (merge_list);
return NULL;
}
@ -2050,7 +2052,7 @@ gimp_image_merge_down (GimpImage *gimage,
}
else
{
g_message ("There are not enough visible layers for a merge down.");
g_message (_("There are not enough visible layers for a merge down."));
g_slist_free (merge_list);
return NULL;
}
@ -2161,7 +2163,7 @@ gimp_image_merge_layers (GimpImage *gimage, GSList *merge_list, MergeType merge_
type, drawable_get_name (GIMP_DRAWABLE(layer)), OPAQUE_OPACITY, NORMAL_MODE);
if (!merge_layer) {
g_message ("gimp_image_merge_layers: could not allocate merge layer");
g_message (_("gimp_image_merge_layers: could not allocate merge layer"));
return NULL;
}
@ -2194,7 +2196,7 @@ gimp_image_merge_layers (GimpImage *gimage, GSList *merge_list, MergeType merge_
if (!merge_layer) {
g_message ("gimp_image_merge_layers: could not allocate merge layer");
g_message (_("gimp_image_merge_layers: could not allocate merge layer"));
return NULL;
}
@ -2233,7 +2235,7 @@ gimp_image_merge_layers (GimpImage *gimage, GSList *merge_list, MergeType merge_
operation = valid_combinations [drawable_type (GIMP_DRAWABLE(merge_layer))][drawable_bytes (GIMP_DRAWABLE(layer))];
if (operation == -1)
{
g_message ("gimp_image_merge_layers attempting to merge incompatible layers\n");
g_message (_("gimp_image_merge_layers attempting to merge incompatible layers\n"));
return NULL;
}
@ -2313,7 +2315,7 @@ gimp_image_add_layer (GimpImage *gimage, Layer *float_layer, int position)
if (GIMP_DRAWABLE(float_layer)->gimage != NULL &&
GIMP_DRAWABLE(float_layer)->gimage != gimage)
{
g_message ("gimp_image_add_layer: attempt to add layer to wrong image");
g_message (_("gimp_image_add_layer: attempt to add layer to wrong image"));
return NULL;
}
@ -2323,7 +2325,7 @@ gimp_image_add_layer (GimpImage *gimage, Layer *float_layer, int position)
{
if (ll->data == float_layer)
{
g_message ("gimp_image_add_layer: trying to add layer to image twice");
g_message (_("gimp_image_add_layer: trying to add layer to image twice"));
return NULL;
}
ll = g_slist_next(ll);
@ -2433,22 +2435,24 @@ LayerMask *
gimp_image_add_layer_mask (GimpImage *gimage, Layer *layer, LayerMask *mask)
{
LayerMaskUndo *lmu;
char *error = NULL;;
if (layer->mask != NULL)
error = "Unable to add a layer mask since\nthe layer already has one.";
{
g_message(_("Unable to add a layer mask since\nthe layer already has one."));
}
if (drawable_indexed (GIMP_DRAWABLE(layer)))
error = "Unable to add a layer mask to a\nlayer in an indexed image.";
{
g_message(_("Unable to add a layer mask to a\nlayer in an indexed image."));
}
if (! layer_has_alpha (layer))
error = "Cannot add layer mask to a layer\nwith no alpha channel.";
{
g_message(_("Cannot add layer mask to a layer\nwith no alpha channel."));
}
if (drawable_width (GIMP_DRAWABLE(layer)) != drawable_width (GIMP_DRAWABLE(mask)) || drawable_height (GIMP_DRAWABLE(layer)) != drawable_height (GIMP_DRAWABLE(mask)))
error = "Cannot add layer mask of different dimensions than specified layer.";
if (error)
{
g_message (error);
return NULL;
}
{
g_message(_("Cannot add layer mask of different dimensions than specified layer."));
return NULL;
}
layer_add_mask (layer, mask);
@ -2550,7 +2554,7 @@ gimp_image_raise_channel (GimpImage *gimage, Channel * channel_arg)
}
else
{
g_message ("Channel cannot be raised any further");
g_message (_("Channel cannot be raised any further"));
return NULL;
}
}
@ -2597,7 +2601,7 @@ gimp_image_lower_channel (GimpImage *gimage, Channel *channel_arg)
}
else
{
g_message ("Channel cannot be lowered any further");
g_message (_("Channel cannot be lowered any further"));
return NULL;
}
}
@ -2617,7 +2621,7 @@ gimp_image_add_channel (GimpImage *gimage, Channel *channel, int position)
if (GIMP_DRAWABLE(channel)->gimage != NULL &&
GIMP_DRAWABLE(channel)->gimage != gimage)
{
g_message ("gimp_image_add_channel: attempt to add channel to wrong image");
g_message (_("gimp_image_add_channel: attempt to add channel to wrong image"));
return NULL;
}
@ -2627,7 +2631,7 @@ gimp_image_add_channel (GimpImage *gimage, Channel *channel, int position)
{
if (cc->data == channel)
{
g_message ("gimp_image_add_channel: trying to add channel to image twice");
g_message (_("gimp_image_add_channel: trying to add channel to image twice"));
return NULL;
}
cc = g_slist_next (cc);
@ -2753,7 +2757,7 @@ gimp_image_filename (GimpImage *gimage)
if (gimage->has_filename)
return gimage->filename;
else
return "Untitled";
return _("Untitled");
}
int

View File

@ -16,8 +16,8 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include <string.h>
#include "gimpimageP.h"
#include "gimpimageP.h"
#include "drawable.h"
#include "floating_sel.h"
#include "gdisplay.h"
@ -30,6 +30,8 @@
#include "undo.h"
#include "gimpsignal.h"
#include "libgimp/gimpintl.h"
#include "tile_manager.h"
#include "tile.h"
#include "layer_pvt.h"
@ -532,7 +534,7 @@ gimp_image_apply_image (GimpImage *gimage, GimpDrawable *drawable, PixelRegion *
operation = valid_combinations [drawable_type (drawable)][src2PR->bytes];
if (operation == -1)
{
g_message ("gimp_image_apply_image sent illegal parameters");
g_message (_("gimp_image_apply_image sent illegal parameters"));
return;
}
@ -626,7 +628,7 @@ gimp_image_replace_image (GimpImage *gimage, GimpDrawable *drawable, PixelRegion
operation = valid_combinations [drawable_type (drawable)][src2PR->bytes];
if (operation == -1)
{
g_message ("gimp_image_apply_image sent illegal parameters");
g_message (_("gimp_image_apply_image sent illegal parameters"));
return;
}
@ -904,7 +906,7 @@ gimp_image_get_new_tattoo(GimpImage *image)
{
image->tattoo_state++;
if (image->tattoo_state <= 0)
g_warning("Tattoo state has become corrupt (2.1 billion operation limit exceded)");
g_warning(_("Tattoo state has become corrupt (2.1 billion operation limit exceded)"));
return (image->tattoo_state);
}
@ -948,7 +950,7 @@ project_indexed (GimpImage *gimage, Layer *layer,
initial_region (src, dest, NULL, gimage->cmap, layer->opacity,
layer->mode, gimage->visible, INITIAL_INDEXED);
else
g_message ("Unable to project indexed image.");
g_message (_("Unable to project indexed image."));
}
@ -1710,7 +1712,7 @@ gimp_image_raise_layer (GimpImage *gimage, Layer *layer_arg)
}
else
{
g_message ("Layer cannot be raised any further");
g_message (_("Layer cannot be raised any further"));
return NULL;
}
}
@ -1782,7 +1784,7 @@ gimp_image_lower_layer (GimpImage *gimage, Layer *layer_arg)
}
else
{
g_message ("Layer cannot be lowered any further");
g_message (_("Layer cannot be lowered any further"));
return NULL;
}
}
@ -1811,12 +1813,12 @@ gimp_image_raise_layer_to_top (GimpImage *gimage, Layer *layer_arg)
if (layer == layer_arg)
{
/* layer_arg is already the top_layer */
g_message ("Layer is already on top");
g_message (_("Layer is already on top"));
return NULL;
}
if (! layer_has_alpha (layer_arg))
{
g_message ("cant raise Layer without alpha");
g_message (_("Can't raise Layer without alpha"));
return NULL;
}
@ -1908,7 +1910,7 @@ gimp_image_lower_layer_to_bottom (GimpImage *gimage, Layer *layer_arg)
if (layer == layer_arg)
{
/* there is no next layer below layer_arg */
g_message ("Layer is already on bottom");
g_message (_("Layer is already on bottom"));
}
/* bottom is reached, we can stop now */
break;
@ -1921,7 +1923,7 @@ gimp_image_lower_layer_to_bottom (GimpImage *gimage, Layer *layer_arg)
}
else
{
g_message ("BG has no alpha, layer was placed above");
g_message (_("BG has no alpha, layer was placed above"));
break;
}
@ -1978,7 +1980,7 @@ gimp_image_merge_visible_layers (GimpImage *gimage, MergeType merge_type)
}
else
{
g_message ("There are not enough visible layers for a merge.\nThere must be at least two.");
g_message (_("There are not enough visible layers for a merge.\nThere must be at least two."));
g_slist_free (merge_list);
return NULL;
}
@ -2050,7 +2052,7 @@ gimp_image_merge_down (GimpImage *gimage,
}
else
{
g_message ("There are not enough visible layers for a merge down.");
g_message (_("There are not enough visible layers for a merge down."));
g_slist_free (merge_list);
return NULL;
}
@ -2161,7 +2163,7 @@ gimp_image_merge_layers (GimpImage *gimage, GSList *merge_list, MergeType merge_
type, drawable_get_name (GIMP_DRAWABLE(layer)), OPAQUE_OPACITY, NORMAL_MODE);
if (!merge_layer) {
g_message ("gimp_image_merge_layers: could not allocate merge layer");
g_message (_("gimp_image_merge_layers: could not allocate merge layer"));
return NULL;
}
@ -2194,7 +2196,7 @@ gimp_image_merge_layers (GimpImage *gimage, GSList *merge_list, MergeType merge_
if (!merge_layer) {
g_message ("gimp_image_merge_layers: could not allocate merge layer");
g_message (_("gimp_image_merge_layers: could not allocate merge layer"));
return NULL;
}
@ -2233,7 +2235,7 @@ gimp_image_merge_layers (GimpImage *gimage, GSList *merge_list, MergeType merge_
operation = valid_combinations [drawable_type (GIMP_DRAWABLE(merge_layer))][drawable_bytes (GIMP_DRAWABLE(layer))];
if (operation == -1)
{
g_message ("gimp_image_merge_layers attempting to merge incompatible layers\n");
g_message (_("gimp_image_merge_layers attempting to merge incompatible layers\n"));
return NULL;
}
@ -2313,7 +2315,7 @@ gimp_image_add_layer (GimpImage *gimage, Layer *float_layer, int position)
if (GIMP_DRAWABLE(float_layer)->gimage != NULL &&
GIMP_DRAWABLE(float_layer)->gimage != gimage)
{
g_message ("gimp_image_add_layer: attempt to add layer to wrong image");
g_message (_("gimp_image_add_layer: attempt to add layer to wrong image"));
return NULL;
}
@ -2323,7 +2325,7 @@ gimp_image_add_layer (GimpImage *gimage, Layer *float_layer, int position)
{
if (ll->data == float_layer)
{
g_message ("gimp_image_add_layer: trying to add layer to image twice");
g_message (_("gimp_image_add_layer: trying to add layer to image twice"));
return NULL;
}
ll = g_slist_next(ll);
@ -2433,22 +2435,24 @@ LayerMask *
gimp_image_add_layer_mask (GimpImage *gimage, Layer *layer, LayerMask *mask)
{
LayerMaskUndo *lmu;
char *error = NULL;;
if (layer->mask != NULL)
error = "Unable to add a layer mask since\nthe layer already has one.";
{
g_message(_("Unable to add a layer mask since\nthe layer already has one."));
}
if (drawable_indexed (GIMP_DRAWABLE(layer)))
error = "Unable to add a layer mask to a\nlayer in an indexed image.";
{
g_message(_("Unable to add a layer mask to a\nlayer in an indexed image."));
}
if (! layer_has_alpha (layer))
error = "Cannot add layer mask to a layer\nwith no alpha channel.";
{
g_message(_("Cannot add layer mask to a layer\nwith no alpha channel."));
}
if (drawable_width (GIMP_DRAWABLE(layer)) != drawable_width (GIMP_DRAWABLE(mask)) || drawable_height (GIMP_DRAWABLE(layer)) != drawable_height (GIMP_DRAWABLE(mask)))
error = "Cannot add layer mask of different dimensions than specified layer.";
if (error)
{
g_message (error);
return NULL;
}
{
g_message(_("Cannot add layer mask of different dimensions than specified layer."));
return NULL;
}
layer_add_mask (layer, mask);
@ -2550,7 +2554,7 @@ gimp_image_raise_channel (GimpImage *gimage, Channel * channel_arg)
}
else
{
g_message ("Channel cannot be raised any further");
g_message (_("Channel cannot be raised any further"));
return NULL;
}
}
@ -2597,7 +2601,7 @@ gimp_image_lower_channel (GimpImage *gimage, Channel *channel_arg)
}
else
{
g_message ("Channel cannot be lowered any further");
g_message (_("Channel cannot be lowered any further"));
return NULL;
}
}
@ -2617,7 +2621,7 @@ gimp_image_add_channel (GimpImage *gimage, Channel *channel, int position)
if (GIMP_DRAWABLE(channel)->gimage != NULL &&
GIMP_DRAWABLE(channel)->gimage != gimage)
{
g_message ("gimp_image_add_channel: attempt to add channel to wrong image");
g_message (_("gimp_image_add_channel: attempt to add channel to wrong image"));
return NULL;
}
@ -2627,7 +2631,7 @@ gimp_image_add_channel (GimpImage *gimage, Channel *channel, int position)
{
if (cc->data == channel)
{
g_message ("gimp_image_add_channel: trying to add channel to image twice");
g_message (_("gimp_image_add_channel: trying to add channel to image twice"));
return NULL;
}
cc = g_slist_next (cc);
@ -2753,7 +2757,7 @@ gimp_image_filename (GimpImage *gimage)
if (gimage->has_filename)
return gimage->filename;
else
return "Untitled";
return _("Untitled");
}
int

View File

@ -16,8 +16,8 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include <string.h>
#include "gimpimageP.h"
#include "gimpimageP.h"
#include "drawable.h"
#include "floating_sel.h"
#include "gdisplay.h"
@ -30,6 +30,8 @@
#include "undo.h"
#include "gimpsignal.h"
#include "libgimp/gimpintl.h"
#include "tile_manager.h"
#include "tile.h"
#include "layer_pvt.h"
@ -532,7 +534,7 @@ gimp_image_apply_image (GimpImage *gimage, GimpDrawable *drawable, PixelRegion *
operation = valid_combinations [drawable_type (drawable)][src2PR->bytes];
if (operation == -1)
{
g_message ("gimp_image_apply_image sent illegal parameters");
g_message (_("gimp_image_apply_image sent illegal parameters"));
return;
}
@ -626,7 +628,7 @@ gimp_image_replace_image (GimpImage *gimage, GimpDrawable *drawable, PixelRegion
operation = valid_combinations [drawable_type (drawable)][src2PR->bytes];
if (operation == -1)
{
g_message ("gimp_image_apply_image sent illegal parameters");
g_message (_("gimp_image_apply_image sent illegal parameters"));
return;
}
@ -904,7 +906,7 @@ gimp_image_get_new_tattoo(GimpImage *image)
{
image->tattoo_state++;
if (image->tattoo_state <= 0)
g_warning("Tattoo state has become corrupt (2.1 billion operation limit exceded)");
g_warning(_("Tattoo state has become corrupt (2.1 billion operation limit exceded)"));
return (image->tattoo_state);
}
@ -948,7 +950,7 @@ project_indexed (GimpImage *gimage, Layer *layer,
initial_region (src, dest, NULL, gimage->cmap, layer->opacity,
layer->mode, gimage->visible, INITIAL_INDEXED);
else
g_message ("Unable to project indexed image.");
g_message (_("Unable to project indexed image."));
}
@ -1710,7 +1712,7 @@ gimp_image_raise_layer (GimpImage *gimage, Layer *layer_arg)
}
else
{
g_message ("Layer cannot be raised any further");
g_message (_("Layer cannot be raised any further"));
return NULL;
}
}
@ -1782,7 +1784,7 @@ gimp_image_lower_layer (GimpImage *gimage, Layer *layer_arg)
}
else
{
g_message ("Layer cannot be lowered any further");
g_message (_("Layer cannot be lowered any further"));
return NULL;
}
}
@ -1811,12 +1813,12 @@ gimp_image_raise_layer_to_top (GimpImage *gimage, Layer *layer_arg)
if (layer == layer_arg)
{
/* layer_arg is already the top_layer */
g_message ("Layer is already on top");
g_message (_("Layer is already on top"));
return NULL;
}
if (! layer_has_alpha (layer_arg))
{
g_message ("cant raise Layer without alpha");
g_message (_("Can't raise Layer without alpha"));
return NULL;
}
@ -1908,7 +1910,7 @@ gimp_image_lower_layer_to_bottom (GimpImage *gimage, Layer *layer_arg)
if (layer == layer_arg)
{
/* there is no next layer below layer_arg */
g_message ("Layer is already on bottom");
g_message (_("Layer is already on bottom"));
}
/* bottom is reached, we can stop now */
break;
@ -1921,7 +1923,7 @@ gimp_image_lower_layer_to_bottom (GimpImage *gimage, Layer *layer_arg)
}
else
{
g_message ("BG has no alpha, layer was placed above");
g_message (_("BG has no alpha, layer was placed above"));
break;
}
@ -1978,7 +1980,7 @@ gimp_image_merge_visible_layers (GimpImage *gimage, MergeType merge_type)
}
else
{
g_message ("There are not enough visible layers for a merge.\nThere must be at least two.");
g_message (_("There are not enough visible layers for a merge.\nThere must be at least two."));
g_slist_free (merge_list);
return NULL;
}
@ -2050,7 +2052,7 @@ gimp_image_merge_down (GimpImage *gimage,
}
else
{
g_message ("There are not enough visible layers for a merge down.");
g_message (_("There are not enough visible layers for a merge down."));
g_slist_free (merge_list);
return NULL;
}
@ -2161,7 +2163,7 @@ gimp_image_merge_layers (GimpImage *gimage, GSList *merge_list, MergeType merge_
type, drawable_get_name (GIMP_DRAWABLE(layer)), OPAQUE_OPACITY, NORMAL_MODE);
if (!merge_layer) {
g_message ("gimp_image_merge_layers: could not allocate merge layer");
g_message (_("gimp_image_merge_layers: could not allocate merge layer"));
return NULL;
}
@ -2194,7 +2196,7 @@ gimp_image_merge_layers (GimpImage *gimage, GSList *merge_list, MergeType merge_
if (!merge_layer) {
g_message ("gimp_image_merge_layers: could not allocate merge layer");
g_message (_("gimp_image_merge_layers: could not allocate merge layer"));
return NULL;
}
@ -2233,7 +2235,7 @@ gimp_image_merge_layers (GimpImage *gimage, GSList *merge_list, MergeType merge_
operation = valid_combinations [drawable_type (GIMP_DRAWABLE(merge_layer))][drawable_bytes (GIMP_DRAWABLE(layer))];
if (operation == -1)
{
g_message ("gimp_image_merge_layers attempting to merge incompatible layers\n");
g_message (_("gimp_image_merge_layers attempting to merge incompatible layers\n"));
return NULL;
}
@ -2313,7 +2315,7 @@ gimp_image_add_layer (GimpImage *gimage, Layer *float_layer, int position)
if (GIMP_DRAWABLE(float_layer)->gimage != NULL &&
GIMP_DRAWABLE(float_layer)->gimage != gimage)
{
g_message ("gimp_image_add_layer: attempt to add layer to wrong image");
g_message (_("gimp_image_add_layer: attempt to add layer to wrong image"));
return NULL;
}
@ -2323,7 +2325,7 @@ gimp_image_add_layer (GimpImage *gimage, Layer *float_layer, int position)
{
if (ll->data == float_layer)
{
g_message ("gimp_image_add_layer: trying to add layer to image twice");
g_message (_("gimp_image_add_layer: trying to add layer to image twice"));
return NULL;
}
ll = g_slist_next(ll);
@ -2433,22 +2435,24 @@ LayerMask *
gimp_image_add_layer_mask (GimpImage *gimage, Layer *layer, LayerMask *mask)
{
LayerMaskUndo *lmu;
char *error = NULL;;
if (layer->mask != NULL)
error = "Unable to add a layer mask since\nthe layer already has one.";
{
g_message(_("Unable to add a layer mask since\nthe layer already has one."));
}
if (drawable_indexed (GIMP_DRAWABLE(layer)))
error = "Unable to add a layer mask to a\nlayer in an indexed image.";
{
g_message(_("Unable to add a layer mask to a\nlayer in an indexed image."));
}
if (! layer_has_alpha (layer))
error = "Cannot add layer mask to a layer\nwith no alpha channel.";
{
g_message(_("Cannot add layer mask to a layer\nwith no alpha channel."));
}
if (drawable_width (GIMP_DRAWABLE(layer)) != drawable_width (GIMP_DRAWABLE(mask)) || drawable_height (GIMP_DRAWABLE(layer)) != drawable_height (GIMP_DRAWABLE(mask)))
error = "Cannot add layer mask of different dimensions than specified layer.";
if (error)
{
g_message (error);
return NULL;
}
{
g_message(_("Cannot add layer mask of different dimensions than specified layer."));
return NULL;
}
layer_add_mask (layer, mask);
@ -2550,7 +2554,7 @@ gimp_image_raise_channel (GimpImage *gimage, Channel * channel_arg)
}
else
{
g_message ("Channel cannot be raised any further");
g_message (_("Channel cannot be raised any further"));
return NULL;
}
}
@ -2597,7 +2601,7 @@ gimp_image_lower_channel (GimpImage *gimage, Channel *channel_arg)
}
else
{
g_message ("Channel cannot be lowered any further");
g_message (_("Channel cannot be lowered any further"));
return NULL;
}
}
@ -2617,7 +2621,7 @@ gimp_image_add_channel (GimpImage *gimage, Channel *channel, int position)
if (GIMP_DRAWABLE(channel)->gimage != NULL &&
GIMP_DRAWABLE(channel)->gimage != gimage)
{
g_message ("gimp_image_add_channel: attempt to add channel to wrong image");
g_message (_("gimp_image_add_channel: attempt to add channel to wrong image"));
return NULL;
}
@ -2627,7 +2631,7 @@ gimp_image_add_channel (GimpImage *gimage, Channel *channel, int position)
{
if (cc->data == channel)
{
g_message ("gimp_image_add_channel: trying to add channel to image twice");
g_message (_("gimp_image_add_channel: trying to add channel to image twice"));
return NULL;
}
cc = g_slist_next (cc);
@ -2753,7 +2757,7 @@ gimp_image_filename (GimpImage *gimage)
if (gimage->has_filename)
return gimage->filename;
else
return "Untitled";
return _("Untitled");
}
int

View File

@ -16,8 +16,8 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include <string.h>
#include "gimpimageP.h"
#include "gimpimageP.h"
#include "drawable.h"
#include "floating_sel.h"
#include "gdisplay.h"
@ -30,6 +30,8 @@
#include "undo.h"
#include "gimpsignal.h"
#include "libgimp/gimpintl.h"
#include "tile_manager.h"
#include "tile.h"
#include "layer_pvt.h"
@ -532,7 +534,7 @@ gimp_image_apply_image (GimpImage *gimage, GimpDrawable *drawable, PixelRegion *
operation = valid_combinations [drawable_type (drawable)][src2PR->bytes];
if (operation == -1)
{
g_message ("gimp_image_apply_image sent illegal parameters");
g_message (_("gimp_image_apply_image sent illegal parameters"));
return;
}
@ -626,7 +628,7 @@ gimp_image_replace_image (GimpImage *gimage, GimpDrawable *drawable, PixelRegion
operation = valid_combinations [drawable_type (drawable)][src2PR->bytes];
if (operation == -1)
{
g_message ("gimp_image_apply_image sent illegal parameters");
g_message (_("gimp_image_apply_image sent illegal parameters"));
return;
}
@ -904,7 +906,7 @@ gimp_image_get_new_tattoo(GimpImage *image)
{
image->tattoo_state++;
if (image->tattoo_state <= 0)
g_warning("Tattoo state has become corrupt (2.1 billion operation limit exceded)");
g_warning(_("Tattoo state has become corrupt (2.1 billion operation limit exceded)"));
return (image->tattoo_state);
}
@ -948,7 +950,7 @@ project_indexed (GimpImage *gimage, Layer *layer,
initial_region (src, dest, NULL, gimage->cmap, layer->opacity,
layer->mode, gimage->visible, INITIAL_INDEXED);
else
g_message ("Unable to project indexed image.");
g_message (_("Unable to project indexed image."));
}
@ -1710,7 +1712,7 @@ gimp_image_raise_layer (GimpImage *gimage, Layer *layer_arg)
}
else
{
g_message ("Layer cannot be raised any further");
g_message (_("Layer cannot be raised any further"));
return NULL;
}
}
@ -1782,7 +1784,7 @@ gimp_image_lower_layer (GimpImage *gimage, Layer *layer_arg)
}
else
{
g_message ("Layer cannot be lowered any further");
g_message (_("Layer cannot be lowered any further"));
return NULL;
}
}
@ -1811,12 +1813,12 @@ gimp_image_raise_layer_to_top (GimpImage *gimage, Layer *layer_arg)
if (layer == layer_arg)
{
/* layer_arg is already the top_layer */
g_message ("Layer is already on top");
g_message (_("Layer is already on top"));
return NULL;
}
if (! layer_has_alpha (layer_arg))
{
g_message ("cant raise Layer without alpha");
g_message (_("Can't raise Layer without alpha"));
return NULL;
}
@ -1908,7 +1910,7 @@ gimp_image_lower_layer_to_bottom (GimpImage *gimage, Layer *layer_arg)
if (layer == layer_arg)
{
/* there is no next layer below layer_arg */
g_message ("Layer is already on bottom");
g_message (_("Layer is already on bottom"));
}
/* bottom is reached, we can stop now */
break;
@ -1921,7 +1923,7 @@ gimp_image_lower_layer_to_bottom (GimpImage *gimage, Layer *layer_arg)
}
else
{
g_message ("BG has no alpha, layer was placed above");
g_message (_("BG has no alpha, layer was placed above"));
break;
}
@ -1978,7 +1980,7 @@ gimp_image_merge_visible_layers (GimpImage *gimage, MergeType merge_type)
}
else
{
g_message ("There are not enough visible layers for a merge.\nThere must be at least two.");
g_message (_("There are not enough visible layers for a merge.\nThere must be at least two."));
g_slist_free (merge_list);
return NULL;
}
@ -2050,7 +2052,7 @@ gimp_image_merge_down (GimpImage *gimage,
}
else
{
g_message ("There are not enough visible layers for a merge down.");
g_message (_("There are not enough visible layers for a merge down."));
g_slist_free (merge_list);
return NULL;
}
@ -2161,7 +2163,7 @@ gimp_image_merge_layers (GimpImage *gimage, GSList *merge_list, MergeType merge_
type, drawable_get_name (GIMP_DRAWABLE(layer)), OPAQUE_OPACITY, NORMAL_MODE);
if (!merge_layer) {
g_message ("gimp_image_merge_layers: could not allocate merge layer");
g_message (_("gimp_image_merge_layers: could not allocate merge layer"));
return NULL;
}
@ -2194,7 +2196,7 @@ gimp_image_merge_layers (GimpImage *gimage, GSList *merge_list, MergeType merge_
if (!merge_layer) {
g_message ("gimp_image_merge_layers: could not allocate merge layer");
g_message (_("gimp_image_merge_layers: could not allocate merge layer"));
return NULL;
}
@ -2233,7 +2235,7 @@ gimp_image_merge_layers (GimpImage *gimage, GSList *merge_list, MergeType merge_
operation = valid_combinations [drawable_type (GIMP_DRAWABLE(merge_layer))][drawable_bytes (GIMP_DRAWABLE(layer))];
if (operation == -1)
{
g_message ("gimp_image_merge_layers attempting to merge incompatible layers\n");
g_message (_("gimp_image_merge_layers attempting to merge incompatible layers\n"));
return NULL;
}
@ -2313,7 +2315,7 @@ gimp_image_add_layer (GimpImage *gimage, Layer *float_layer, int position)
if (GIMP_DRAWABLE(float_layer)->gimage != NULL &&
GIMP_DRAWABLE(float_layer)->gimage != gimage)
{
g_message ("gimp_image_add_layer: attempt to add layer to wrong image");
g_message (_("gimp_image_add_layer: attempt to add layer to wrong image"));
return NULL;
}
@ -2323,7 +2325,7 @@ gimp_image_add_layer (GimpImage *gimage, Layer *float_layer, int position)
{
if (ll->data == float_layer)
{
g_message ("gimp_image_add_layer: trying to add layer to image twice");
g_message (_("gimp_image_add_layer: trying to add layer to image twice"));
return NULL;
}
ll = g_slist_next(ll);
@ -2433,22 +2435,24 @@ LayerMask *
gimp_image_add_layer_mask (GimpImage *gimage, Layer *layer, LayerMask *mask)
{
LayerMaskUndo *lmu;
char *error = NULL;;
if (layer->mask != NULL)
error = "Unable to add a layer mask since\nthe layer already has one.";
{
g_message(_("Unable to add a layer mask since\nthe layer already has one."));
}
if (drawable_indexed (GIMP_DRAWABLE(layer)))
error = "Unable to add a layer mask to a\nlayer in an indexed image.";
{
g_message(_("Unable to add a layer mask to a\nlayer in an indexed image."));
}
if (! layer_has_alpha (layer))
error = "Cannot add layer mask to a layer\nwith no alpha channel.";
{
g_message(_("Cannot add layer mask to a layer\nwith no alpha channel."));
}
if (drawable_width (GIMP_DRAWABLE(layer)) != drawable_width (GIMP_DRAWABLE(mask)) || drawable_height (GIMP_DRAWABLE(layer)) != drawable_height (GIMP_DRAWABLE(mask)))
error = "Cannot add layer mask of different dimensions than specified layer.";
if (error)
{
g_message (error);
return NULL;
}
{
g_message(_("Cannot add layer mask of different dimensions than specified layer."));
return NULL;
}
layer_add_mask (layer, mask);
@ -2550,7 +2554,7 @@ gimp_image_raise_channel (GimpImage *gimage, Channel * channel_arg)
}
else
{
g_message ("Channel cannot be raised any further");
g_message (_("Channel cannot be raised any further"));
return NULL;
}
}
@ -2597,7 +2601,7 @@ gimp_image_lower_channel (GimpImage *gimage, Channel *channel_arg)
}
else
{
g_message ("Channel cannot be lowered any further");
g_message (_("Channel cannot be lowered any further"));
return NULL;
}
}
@ -2617,7 +2621,7 @@ gimp_image_add_channel (GimpImage *gimage, Channel *channel, int position)
if (GIMP_DRAWABLE(channel)->gimage != NULL &&
GIMP_DRAWABLE(channel)->gimage != gimage)
{
g_message ("gimp_image_add_channel: attempt to add channel to wrong image");
g_message (_("gimp_image_add_channel: attempt to add channel to wrong image"));
return NULL;
}
@ -2627,7 +2631,7 @@ gimp_image_add_channel (GimpImage *gimage, Channel *channel, int position)
{
if (cc->data == channel)
{
g_message ("gimp_image_add_channel: trying to add channel to image twice");
g_message (_("gimp_image_add_channel: trying to add channel to image twice"));
return NULL;
}
cc = g_slist_next (cc);
@ -2753,7 +2757,7 @@ gimp_image_filename (GimpImage *gimage)
if (gimage->has_filename)
return gimage->filename;
else
return "Untitled";
return _("Untitled");
}
int

View File

@ -16,8 +16,8 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include <string.h>
#include "gimpimageP.h"
#include "gimpimageP.h"
#include "drawable.h"
#include "floating_sel.h"
#include "gdisplay.h"
@ -30,6 +30,8 @@
#include "undo.h"
#include "gimpsignal.h"
#include "libgimp/gimpintl.h"
#include "tile_manager.h"
#include "tile.h"
#include "layer_pvt.h"
@ -532,7 +534,7 @@ gimp_image_apply_image (GimpImage *gimage, GimpDrawable *drawable, PixelRegion *
operation = valid_combinations [drawable_type (drawable)][src2PR->bytes];
if (operation == -1)
{
g_message ("gimp_image_apply_image sent illegal parameters");
g_message (_("gimp_image_apply_image sent illegal parameters"));
return;
}
@ -626,7 +628,7 @@ gimp_image_replace_image (GimpImage *gimage, GimpDrawable *drawable, PixelRegion
operation = valid_combinations [drawable_type (drawable)][src2PR->bytes];
if (operation == -1)
{
g_message ("gimp_image_apply_image sent illegal parameters");
g_message (_("gimp_image_apply_image sent illegal parameters"));
return;
}
@ -904,7 +906,7 @@ gimp_image_get_new_tattoo(GimpImage *image)
{
image->tattoo_state++;
if (image->tattoo_state <= 0)
g_warning("Tattoo state has become corrupt (2.1 billion operation limit exceded)");
g_warning(_("Tattoo state has become corrupt (2.1 billion operation limit exceded)"));
return (image->tattoo_state);
}
@ -948,7 +950,7 @@ project_indexed (GimpImage *gimage, Layer *layer,
initial_region (src, dest, NULL, gimage->cmap, layer->opacity,
layer->mode, gimage->visible, INITIAL_INDEXED);
else
g_message ("Unable to project indexed image.");
g_message (_("Unable to project indexed image."));
}
@ -1710,7 +1712,7 @@ gimp_image_raise_layer (GimpImage *gimage, Layer *layer_arg)
}
else
{
g_message ("Layer cannot be raised any further");
g_message (_("Layer cannot be raised any further"));
return NULL;
}
}
@ -1782,7 +1784,7 @@ gimp_image_lower_layer (GimpImage *gimage, Layer *layer_arg)
}
else
{
g_message ("Layer cannot be lowered any further");
g_message (_("Layer cannot be lowered any further"));
return NULL;
}
}
@ -1811,12 +1813,12 @@ gimp_image_raise_layer_to_top (GimpImage *gimage, Layer *layer_arg)
if (layer == layer_arg)
{
/* layer_arg is already the top_layer */
g_message ("Layer is already on top");
g_message (_("Layer is already on top"));
return NULL;
}
if (! layer_has_alpha (layer_arg))
{
g_message ("cant raise Layer without alpha");
g_message (_("Can't raise Layer without alpha"));
return NULL;
}
@ -1908,7 +1910,7 @@ gimp_image_lower_layer_to_bottom (GimpImage *gimage, Layer *layer_arg)
if (layer == layer_arg)
{
/* there is no next layer below layer_arg */
g_message ("Layer is already on bottom");
g_message (_("Layer is already on bottom"));
}
/* bottom is reached, we can stop now */
break;
@ -1921,7 +1923,7 @@ gimp_image_lower_layer_to_bottom (GimpImage *gimage, Layer *layer_arg)
}
else
{
g_message ("BG has no alpha, layer was placed above");
g_message (_("BG has no alpha, layer was placed above"));
break;
}
@ -1978,7 +1980,7 @@ gimp_image_merge_visible_layers (GimpImage *gimage, MergeType merge_type)
}
else
{
g_message ("There are not enough visible layers for a merge.\nThere must be at least two.");
g_message (_("There are not enough visible layers for a merge.\nThere must be at least two."));
g_slist_free (merge_list);
return NULL;
}
@ -2050,7 +2052,7 @@ gimp_image_merge_down (GimpImage *gimage,
}
else
{
g_message ("There are not enough visible layers for a merge down.");
g_message (_("There are not enough visible layers for a merge down."));
g_slist_free (merge_list);
return NULL;
}
@ -2161,7 +2163,7 @@ gimp_image_merge_layers (GimpImage *gimage, GSList *merge_list, MergeType merge_
type, drawable_get_name (GIMP_DRAWABLE(layer)), OPAQUE_OPACITY, NORMAL_MODE);
if (!merge_layer) {
g_message ("gimp_image_merge_layers: could not allocate merge layer");
g_message (_("gimp_image_merge_layers: could not allocate merge layer"));
return NULL;
}
@ -2194,7 +2196,7 @@ gimp_image_merge_layers (GimpImage *gimage, GSList *merge_list, MergeType merge_
if (!merge_layer) {
g_message ("gimp_image_merge_layers: could not allocate merge layer");
g_message (_("gimp_image_merge_layers: could not allocate merge layer"));
return NULL;
}
@ -2233,7 +2235,7 @@ gimp_image_merge_layers (GimpImage *gimage, GSList *merge_list, MergeType merge_
operation = valid_combinations [drawable_type (GIMP_DRAWABLE(merge_layer))][drawable_bytes (GIMP_DRAWABLE(layer))];
if (operation == -1)
{
g_message ("gimp_image_merge_layers attempting to merge incompatible layers\n");
g_message (_("gimp_image_merge_layers attempting to merge incompatible layers\n"));
return NULL;
}
@ -2313,7 +2315,7 @@ gimp_image_add_layer (GimpImage *gimage, Layer *float_layer, int position)
if (GIMP_DRAWABLE(float_layer)->gimage != NULL &&
GIMP_DRAWABLE(float_layer)->gimage != gimage)
{
g_message ("gimp_image_add_layer: attempt to add layer to wrong image");
g_message (_("gimp_image_add_layer: attempt to add layer to wrong image"));
return NULL;
}
@ -2323,7 +2325,7 @@ gimp_image_add_layer (GimpImage *gimage, Layer *float_layer, int position)
{
if (ll->data == float_layer)
{
g_message ("gimp_image_add_layer: trying to add layer to image twice");
g_message (_("gimp_image_add_layer: trying to add layer to image twice"));
return NULL;
}
ll = g_slist_next(ll);
@ -2433,22 +2435,24 @@ LayerMask *
gimp_image_add_layer_mask (GimpImage *gimage, Layer *layer, LayerMask *mask)
{
LayerMaskUndo *lmu;
char *error = NULL;;
if (layer->mask != NULL)
error = "Unable to add a layer mask since\nthe layer already has one.";
{
g_message(_("Unable to add a layer mask since\nthe layer already has one."));
}
if (drawable_indexed (GIMP_DRAWABLE(layer)))
error = "Unable to add a layer mask to a\nlayer in an indexed image.";
{
g_message(_("Unable to add a layer mask to a\nlayer in an indexed image."));
}
if (! layer_has_alpha (layer))
error = "Cannot add layer mask to a layer\nwith no alpha channel.";
{
g_message(_("Cannot add layer mask to a layer\nwith no alpha channel."));
}
if (drawable_width (GIMP_DRAWABLE(layer)) != drawable_width (GIMP_DRAWABLE(mask)) || drawable_height (GIMP_DRAWABLE(layer)) != drawable_height (GIMP_DRAWABLE(mask)))
error = "Cannot add layer mask of different dimensions than specified layer.";
if (error)
{
g_message (error);
return NULL;
}
{
g_message(_("Cannot add layer mask of different dimensions than specified layer."));
return NULL;
}
layer_add_mask (layer, mask);
@ -2550,7 +2554,7 @@ gimp_image_raise_channel (GimpImage *gimage, Channel * channel_arg)
}
else
{
g_message ("Channel cannot be raised any further");
g_message (_("Channel cannot be raised any further"));
return NULL;
}
}
@ -2597,7 +2601,7 @@ gimp_image_lower_channel (GimpImage *gimage, Channel *channel_arg)
}
else
{
g_message ("Channel cannot be lowered any further");
g_message (_("Channel cannot be lowered any further"));
return NULL;
}
}
@ -2617,7 +2621,7 @@ gimp_image_add_channel (GimpImage *gimage, Channel *channel, int position)
if (GIMP_DRAWABLE(channel)->gimage != NULL &&
GIMP_DRAWABLE(channel)->gimage != gimage)
{
g_message ("gimp_image_add_channel: attempt to add channel to wrong image");
g_message (_("gimp_image_add_channel: attempt to add channel to wrong image"));
return NULL;
}
@ -2627,7 +2631,7 @@ gimp_image_add_channel (GimpImage *gimage, Channel *channel, int position)
{
if (cc->data == channel)
{
g_message ("gimp_image_add_channel: trying to add channel to image twice");
g_message (_("gimp_image_add_channel: trying to add channel to image twice"));
return NULL;
}
cc = g_slist_next (cc);
@ -2753,7 +2757,7 @@ gimp_image_filename (GimpImage *gimage)
if (gimage->has_filename)
return gimage->filename;
else
return "Untitled";
return _("Untitled");
}
int

View File

@ -29,6 +29,8 @@
#include "tile_manager_pvt.h"
#include "libgimp/gimpintl.h"
#define WAITING 0
#define WORKING 1
@ -278,7 +280,7 @@ image_map_abort (ImageMap image_map)
/* if the user has changed the image depth get out quickly */
if (destPR.bytes != srcPR.bytes)
{
g_message ("image depth change, unable to restore original image");
g_message (_("image depth change, unable to restore original image"));
tile_manager_destroy (_image_map->undo_tiles);
g_free (_image_map);
return;

View File

@ -16,8 +16,8 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include <string.h>
#include "gimpimageP.h"
#include "gimpimageP.h"
#include "drawable.h"
#include "floating_sel.h"
#include "gdisplay.h"
@ -30,6 +30,8 @@
#include "undo.h"
#include "gimpsignal.h"
#include "libgimp/gimpintl.h"
#include "tile_manager.h"
#include "tile.h"
#include "layer_pvt.h"
@ -532,7 +534,7 @@ gimp_image_apply_image (GimpImage *gimage, GimpDrawable *drawable, PixelRegion *
operation = valid_combinations [drawable_type (drawable)][src2PR->bytes];
if (operation == -1)
{
g_message ("gimp_image_apply_image sent illegal parameters");
g_message (_("gimp_image_apply_image sent illegal parameters"));
return;
}
@ -626,7 +628,7 @@ gimp_image_replace_image (GimpImage *gimage, GimpDrawable *drawable, PixelRegion
operation = valid_combinations [drawable_type (drawable)][src2PR->bytes];
if (operation == -1)
{
g_message ("gimp_image_apply_image sent illegal parameters");
g_message (_("gimp_image_apply_image sent illegal parameters"));
return;
}
@ -904,7 +906,7 @@ gimp_image_get_new_tattoo(GimpImage *image)
{
image->tattoo_state++;
if (image->tattoo_state <= 0)
g_warning("Tattoo state has become corrupt (2.1 billion operation limit exceded)");
g_warning(_("Tattoo state has become corrupt (2.1 billion operation limit exceded)"));
return (image->tattoo_state);
}
@ -948,7 +950,7 @@ project_indexed (GimpImage *gimage, Layer *layer,
initial_region (src, dest, NULL, gimage->cmap, layer->opacity,
layer->mode, gimage->visible, INITIAL_INDEXED);
else
g_message ("Unable to project indexed image.");
g_message (_("Unable to project indexed image."));
}
@ -1710,7 +1712,7 @@ gimp_image_raise_layer (GimpImage *gimage, Layer *layer_arg)
}
else
{
g_message ("Layer cannot be raised any further");
g_message (_("Layer cannot be raised any further"));
return NULL;
}
}
@ -1782,7 +1784,7 @@ gimp_image_lower_layer (GimpImage *gimage, Layer *layer_arg)
}
else
{
g_message ("Layer cannot be lowered any further");
g_message (_("Layer cannot be lowered any further"));
return NULL;
}
}
@ -1811,12 +1813,12 @@ gimp_image_raise_layer_to_top (GimpImage *gimage, Layer *layer_arg)
if (layer == layer_arg)
{
/* layer_arg is already the top_layer */
g_message ("Layer is already on top");
g_message (_("Layer is already on top"));
return NULL;
}
if (! layer_has_alpha (layer_arg))
{
g_message ("cant raise Layer without alpha");
g_message (_("Can't raise Layer without alpha"));
return NULL;
}
@ -1908,7 +1910,7 @@ gimp_image_lower_layer_to_bottom (GimpImage *gimage, Layer *layer_arg)
if (layer == layer_arg)
{
/* there is no next layer below layer_arg */
g_message ("Layer is already on bottom");
g_message (_("Layer is already on bottom"));
}
/* bottom is reached, we can stop now */
break;
@ -1921,7 +1923,7 @@ gimp_image_lower_layer_to_bottom (GimpImage *gimage, Layer *layer_arg)
}
else
{
g_message ("BG has no alpha, layer was placed above");
g_message (_("BG has no alpha, layer was placed above"));
break;
}
@ -1978,7 +1980,7 @@ gimp_image_merge_visible_layers (GimpImage *gimage, MergeType merge_type)
}
else
{
g_message ("There are not enough visible layers for a merge.\nThere must be at least two.");
g_message (_("There are not enough visible layers for a merge.\nThere must be at least two."));
g_slist_free (merge_list);
return NULL;
}
@ -2050,7 +2052,7 @@ gimp_image_merge_down (GimpImage *gimage,
}
else
{
g_message ("There are not enough visible layers for a merge down.");
g_message (_("There are not enough visible layers for a merge down."));
g_slist_free (merge_list);
return NULL;
}
@ -2161,7 +2163,7 @@ gimp_image_merge_layers (GimpImage *gimage, GSList *merge_list, MergeType merge_
type, drawable_get_name (GIMP_DRAWABLE(layer)), OPAQUE_OPACITY, NORMAL_MODE);
if (!merge_layer) {
g_message ("gimp_image_merge_layers: could not allocate merge layer");
g_message (_("gimp_image_merge_layers: could not allocate merge layer"));
return NULL;
}
@ -2194,7 +2196,7 @@ gimp_image_merge_layers (GimpImage *gimage, GSList *merge_list, MergeType merge_
if (!merge_layer) {
g_message ("gimp_image_merge_layers: could not allocate merge layer");
g_message (_("gimp_image_merge_layers: could not allocate merge layer"));
return NULL;
}
@ -2233,7 +2235,7 @@ gimp_image_merge_layers (GimpImage *gimage, GSList *merge_list, MergeType merge_
operation = valid_combinations [drawable_type (GIMP_DRAWABLE(merge_layer))][drawable_bytes (GIMP_DRAWABLE(layer))];
if (operation == -1)
{
g_message ("gimp_image_merge_layers attempting to merge incompatible layers\n");
g_message (_("gimp_image_merge_layers attempting to merge incompatible layers\n"));
return NULL;
}
@ -2313,7 +2315,7 @@ gimp_image_add_layer (GimpImage *gimage, Layer *float_layer, int position)
if (GIMP_DRAWABLE(float_layer)->gimage != NULL &&
GIMP_DRAWABLE(float_layer)->gimage != gimage)
{
g_message ("gimp_image_add_layer: attempt to add layer to wrong image");
g_message (_("gimp_image_add_layer: attempt to add layer to wrong image"));
return NULL;
}
@ -2323,7 +2325,7 @@ gimp_image_add_layer (GimpImage *gimage, Layer *float_layer, int position)
{
if (ll->data == float_layer)
{
g_message ("gimp_image_add_layer: trying to add layer to image twice");
g_message (_("gimp_image_add_layer: trying to add layer to image twice"));
return NULL;
}
ll = g_slist_next(ll);
@ -2433,22 +2435,24 @@ LayerMask *
gimp_image_add_layer_mask (GimpImage *gimage, Layer *layer, LayerMask *mask)
{
LayerMaskUndo *lmu;
char *error = NULL;;
if (layer->mask != NULL)
error = "Unable to add a layer mask since\nthe layer already has one.";
{
g_message(_("Unable to add a layer mask since\nthe layer already has one."));
}
if (drawable_indexed (GIMP_DRAWABLE(layer)))
error = "Unable to add a layer mask to a\nlayer in an indexed image.";
{
g_message(_("Unable to add a layer mask to a\nlayer in an indexed image."));
}
if (! layer_has_alpha (layer))
error = "Cannot add layer mask to a layer\nwith no alpha channel.";
{
g_message(_("Cannot add layer mask to a layer\nwith no alpha channel."));
}
if (drawable_width (GIMP_DRAWABLE(layer)) != drawable_width (GIMP_DRAWABLE(mask)) || drawable_height (GIMP_DRAWABLE(layer)) != drawable_height (GIMP_DRAWABLE(mask)))
error = "Cannot add layer mask of different dimensions than specified layer.";
if (error)
{
g_message (error);
return NULL;
}
{
g_message(_("Cannot add layer mask of different dimensions than specified layer."));
return NULL;
}
layer_add_mask (layer, mask);
@ -2550,7 +2554,7 @@ gimp_image_raise_channel (GimpImage *gimage, Channel * channel_arg)
}
else
{
g_message ("Channel cannot be raised any further");
g_message (_("Channel cannot be raised any further"));
return NULL;
}
}
@ -2597,7 +2601,7 @@ gimp_image_lower_channel (GimpImage *gimage, Channel *channel_arg)
}
else
{
g_message ("Channel cannot be lowered any further");
g_message (_("Channel cannot be lowered any further"));
return NULL;
}
}
@ -2617,7 +2621,7 @@ gimp_image_add_channel (GimpImage *gimage, Channel *channel, int position)
if (GIMP_DRAWABLE(channel)->gimage != NULL &&
GIMP_DRAWABLE(channel)->gimage != gimage)
{
g_message ("gimp_image_add_channel: attempt to add channel to wrong image");
g_message (_("gimp_image_add_channel: attempt to add channel to wrong image"));
return NULL;
}
@ -2627,7 +2631,7 @@ gimp_image_add_channel (GimpImage *gimage, Channel *channel, int position)
{
if (cc->data == channel)
{
g_message ("gimp_image_add_channel: trying to add channel to image twice");
g_message (_("gimp_image_add_channel: trying to add channel to image twice"));
return NULL;
}
cc = g_slist_next (cc);
@ -2753,7 +2757,7 @@ gimp_image_filename (GimpImage *gimage)
if (gimage->has_filename)
return gimage->filename;
else
return "Untitled";
return _("Untitled");
}
int

View File

@ -23,12 +23,12 @@
#include "libgimp/gimpfeatures.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#include "about_dialog.h"
#include "interface.h"
#include "config.h"
#define ANIMATION_STEPS 16
#define ANIMATION_SIZE 2

View File

@ -28,6 +28,8 @@
#include "gximage.h"
#include "interface.h"
#include "libgimp/gimpintl.h"
#define MAX_BUF 256
typedef struct _InfoWinData InfoWinData;
@ -45,12 +47,12 @@ struct _InfoWinData
/* The different classes of visuals */
static char *visual_classes[] =
{
"Static Gray",
"Grayscale",
"Static Color",
"Pseudo Color",
"True Color",
"Direct Color",
N_("Static Gray"),
N_("Grayscale"),
N_("Static Color"),
N_("Pseudo Color"),
N_("True Color"),
N_("Direct Color"),
};
@ -117,7 +119,7 @@ info_window_close_callback (GtkWidget *w,
static ActionAreaItem action_items[] =
{
{ "Close", info_window_close_callback, NULL, NULL },
{ N_("Close"), info_window_close_callback, NULL, NULL },
};
InfoDialog *
@ -136,7 +138,7 @@ info_window_create (void *gdisp_ptr)
/* allocate the title buffer */
title_buf = (char *) g_malloc (sizeof (char) * (strlen (title) + 15));
sprintf (title_buf, "%s: Window Info", title);
sprintf (title_buf, _("%s: Window Info"), title);
/* create the info dialog */
info_win = info_dialog_new (title_buf);
@ -153,18 +155,18 @@ info_window_create (void *gdisp_ptr)
iwd->shades_str[0] = '\0';
/* add the information fields */
info_dialog_add_field (info_win, "Dimensions (w x h): ", iwd->dimensions_str, NULL, NULL);
info_dialog_add_field (info_win, "Resolution: ", iwd->resolution_str, NULL, NULL);
info_dialog_add_field (info_win, "Scale Ratio: ", iwd->scale_str, NULL, NULL);
info_dialog_add_field (info_win, "Display Type: ", iwd->color_type_str, NULL, NULL);
info_dialog_add_field (info_win, "Visual Class: ", iwd->visual_class_str, NULL, NULL);
info_dialog_add_field (info_win, "Visual Depth: ", iwd->visual_depth_str, NULL, NULL);
info_dialog_add_field (info_win, _("Dimensions (w x h): "), iwd->dimensions_str, NULL, NULL);
info_dialog_add_field (info_win, _("Resolution: "), iwd->resolution_str, NULL, NULL);
info_dialog_add_field (info_win, _("Scale Ratio: "), iwd->scale_str, NULL, NULL);
info_dialog_add_field (info_win, _("Display Type: "), iwd->color_type_str, NULL, NULL);
info_dialog_add_field (info_win, _("Visual Class: "), iwd->visual_class_str, NULL, NULL);
info_dialog_add_field (info_win, _("Visual Depth: "), iwd->visual_depth_str, NULL, NULL);
if (type == RGB)
info_dialog_add_field (info_win, "Shades of Color: ", iwd->shades_str, NULL, NULL);
info_dialog_add_field (info_win, _("Shades of Color: "), iwd->shades_str, NULL, NULL);
else if (type == INDEXED)
info_dialog_add_field (info_win, "Shades: ", iwd->shades_str, NULL, NULL);
info_dialog_add_field (info_win, _("Shades: "), iwd->shades_str, NULL, NULL);
else if (type == GRAY)
info_dialog_add_field (info_win, "Shades of Gray: ", iwd->shades_str, NULL, NULL);
info_dialog_add_field (info_win, _("Shades of Gray: "), iwd->shades_str, NULL, NULL);
/* update the fields */
info_window_update (info_win, gdisp_ptr);
@ -211,11 +213,11 @@ info_window_update (InfoDialog *info_win,
/* color type */
if (type == RGB)
sprintf (iwd->color_type_str, "%s", "RGB Color");
sprintf (iwd->color_type_str, "%s", _("RGB Color"));
else if (type == GRAY)
sprintf (iwd->color_type_str, "%s", "Grayscale");
sprintf (iwd->color_type_str, "%s", _("Grayscale"));
else if (type == INDEXED)
sprintf (iwd->color_type_str, "%s", "Indexed Color");
sprintf (iwd->color_type_str, "%s", _("Indexed Color"));
/* visual class */
if (type == RGB ||

View File

@ -47,6 +47,7 @@
#include "tools.h"
#include "undo.h"
#include "config.h"
#include "libgimp/gimpintl.h"
typedef struct
@ -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);
@ -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);
@ -961,7 +962,7 @@ file_pref_cmd_callback (GtkWidget *widget,
group = NULL;
for (i = 0; i < ntransparencies; i++)
{
button = gtk_radio_button_new_with_label (group, transparencies[i]);
button = gtk_radio_button_new_with_label (group, gettext(transparencies[i]));
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),
@ -985,7 +986,7 @@ file_pref_cmd_callback (GtkWidget *widget,
group = NULL;
for (i = 0; i < nchecks; i++)
{
button = gtk_radio_button_new_with_label (group, checks[i]);
button = gtk_radio_button_new_with_label (group, gettext(checks[i]));
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),
@ -1186,7 +1187,7 @@ file_pref_cmd_callback (GtkWidget *widget,
menu = gtk_menu_new ();
for (i = 0; i < nmem_size_units; i++)
{
menuitem = gtk_menu_item_new_with_label (mem_size_units[i].label);
menuitem = gtk_menu_item_new_with_label (gettext(mem_size_units[i].label));
gtk_menu_append (GTK_MENU (menu), menuitem);
gtk_signal_connect (GTK_OBJECT (menuitem), "activate",
(GtkSignalFunc) file_prefs_mem_size_unit_callback,
@ -1300,7 +1301,7 @@ file_pref_cmd_callback (GtkWidget *widget,
for (i = 0; i < ndirs; i++)
{
label = gtk_label_new (dirs[i].label);
label = gtk_label_new (gettext(dirs[i].label));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, i, i+1,
GTK_FILL, GTK_FILL, 0, 0);

View File

@ -26,6 +26,7 @@
#include "interface.h"
#include "gimprc.h"
#include "config.h"
#include "libgimp/gimpintl.h"
static void install_run (InstallCallback);

View File

@ -38,6 +38,8 @@
#include "pixmaps.h"
#include "libgimp/gimpintl.h"
/* local functions */
static void tools_select_update (GtkWidget *widget,
gpointer data);
@ -226,9 +228,9 @@ create_color_area (GtkWidget *parent)
col_area = color_area_create (54, 42, default_pixmap, swap_pixmap);
gtk_container_add (GTK_CONTAINER (alignment), col_area);
gtk_tooltips_set_tip (tool_tips, col_area, "Foreground & background colors. The small black "
gtk_tooltips_set_tip (tool_tips, col_area, _("Foreground & background colors. The small black "
"and white squares reset colors. The small arrows swap colors. Double "
"click to change colors.",
"click to change colors."),
NULL);
gtk_widget_show (col_area);
gtk_widget_show (alignment);
@ -312,7 +314,7 @@ create_tools (GtkWidget *parent)
(GtkSignalFunc) tools_button_press,
(gpointer) tool_info[j].tool_id);
gtk_tooltips_set_tip (tool_tips, button, tool_info[j].tool_desc, tool_info[i].private_tip);
gtk_tooltips_set_tip (tool_tips, button, gettext(tool_info[j].tool_desc), tool_info[i].private_tip);
gtk_widget_show (pixmap);
gtk_widget_show (alignment);
@ -441,7 +443,7 @@ create_toolbox ()
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_wmclass (GTK_WINDOW (window), "toolbox", "Gimp");
gtk_window_set_title (GTK_WINDOW (window), "The GIMP");
gtk_window_set_title (GTK_WINDOW (window), _("The GIMP"));
session_set_window_geometry (window, &toolbox_session_info, TRUE);
gtk_signal_connect (GTK_OBJECT (window), "delete_event",
GTK_SIGNAL_FUNC (toolbox_delete),
@ -727,7 +729,7 @@ create_display_shell (GDisplay* gdisp,
gtk_widget_set_usize (gdisp->progressbar, 80, -1);
gtk_box_pack_start (GTK_BOX (gdisp->statusarea), gdisp->progressbar, FALSE, TRUE, 0);
gdisp->cancelbutton = gtk_button_new_with_label("Cancel");
gdisp->cancelbutton = gtk_button_new_with_label(_("Cancel"));
gtk_box_pack_start (GTK_BOX (gdisp->statusarea), gdisp->cancelbutton, FALSE, TRUE, 0);
gtk_widget_set_sensitive (gdisp->cancelbutton, FALSE);
@ -820,7 +822,7 @@ query_string_box (char *title,
gtk_container_border_width (GTK_CONTAINER (GTK_DIALOG (qbox)->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) query_box_ok_callback,
@ -829,7 +831,7 @@ query_string_box (char *title,
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) query_box_cancel_callback,
@ -946,14 +948,14 @@ message_box (char *message,
mbox = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (mbox), "gimp_message", "Gimp");
gtk_window_set_title (GTK_WINDOW (mbox), "GIMP Message");
gtk_window_set_title (GTK_WINDOW (mbox), _("GIMP Message"));
gtk_window_position (GTK_WINDOW (mbox), GTK_WIN_POS_MOUSE);
gtk_container_border_width (GTK_CONTAINER (GTK_DIALOG (mbox)->action_area), 2);
gtk_signal_connect (GTK_OBJECT (mbox), "delete_event",
GTK_SIGNAL_FUNC (message_box_delete_callback),
msg_box);
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) message_box_close_callback,

View File

@ -38,6 +38,8 @@
#include "pixmaps.h"
#include "libgimp/gimpintl.h"
/* local functions */
static void tools_select_update (GtkWidget *widget,
gpointer data);
@ -226,9 +228,9 @@ create_color_area (GtkWidget *parent)
col_area = color_area_create (54, 42, default_pixmap, swap_pixmap);
gtk_container_add (GTK_CONTAINER (alignment), col_area);
gtk_tooltips_set_tip (tool_tips, col_area, "Foreground & background colors. The small black "
gtk_tooltips_set_tip (tool_tips, col_area, _("Foreground & background colors. The small black "
"and white squares reset colors. The small arrows swap colors. Double "
"click to change colors.",
"click to change colors."),
NULL);
gtk_widget_show (col_area);
gtk_widget_show (alignment);
@ -312,7 +314,7 @@ create_tools (GtkWidget *parent)
(GtkSignalFunc) tools_button_press,
(gpointer) tool_info[j].tool_id);
gtk_tooltips_set_tip (tool_tips, button, tool_info[j].tool_desc, tool_info[i].private_tip);
gtk_tooltips_set_tip (tool_tips, button, gettext(tool_info[j].tool_desc), tool_info[i].private_tip);
gtk_widget_show (pixmap);
gtk_widget_show (alignment);
@ -441,7 +443,7 @@ create_toolbox ()
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_wmclass (GTK_WINDOW (window), "toolbox", "Gimp");
gtk_window_set_title (GTK_WINDOW (window), "The GIMP");
gtk_window_set_title (GTK_WINDOW (window), _("The GIMP"));
session_set_window_geometry (window, &toolbox_session_info, TRUE);
gtk_signal_connect (GTK_OBJECT (window), "delete_event",
GTK_SIGNAL_FUNC (toolbox_delete),
@ -727,7 +729,7 @@ create_display_shell (GDisplay* gdisp,
gtk_widget_set_usize (gdisp->progressbar, 80, -1);
gtk_box_pack_start (GTK_BOX (gdisp->statusarea), gdisp->progressbar, FALSE, TRUE, 0);
gdisp->cancelbutton = gtk_button_new_with_label("Cancel");
gdisp->cancelbutton = gtk_button_new_with_label(_("Cancel"));
gtk_box_pack_start (GTK_BOX (gdisp->statusarea), gdisp->cancelbutton, FALSE, TRUE, 0);
gtk_widget_set_sensitive (gdisp->cancelbutton, FALSE);
@ -820,7 +822,7 @@ query_string_box (char *title,
gtk_container_border_width (GTK_CONTAINER (GTK_DIALOG (qbox)->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) query_box_ok_callback,
@ -829,7 +831,7 @@ query_string_box (char *title,
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) query_box_cancel_callback,
@ -946,14 +948,14 @@ message_box (char *message,
mbox = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (mbox), "gimp_message", "Gimp");
gtk_window_set_title (GTK_WINDOW (mbox), "GIMP Message");
gtk_window_set_title (GTK_WINDOW (mbox), _("GIMP Message"));
gtk_window_position (GTK_WINDOW (mbox), GTK_WIN_POS_MOUSE);
gtk_container_border_width (GTK_CONTAINER (GTK_DIALOG (mbox)->action_area), 2);
gtk_signal_connect (GTK_OBJECT (mbox), "delete_event",
GTK_SIGNAL_FUNC (message_box_delete_callback),
msg_box);
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) message_box_close_callback,

View File

@ -44,7 +44,7 @@ image_equalize (gimage_ptr)
if (drawable_indexed (drawable))
{
g_message ("Equalize does not operate on indexed drawables.");
g_message (_("Equalize does not operate on indexed drawables."));
return;
}
equalize (gimage, drawable, mask_only);

View File

@ -92,7 +92,7 @@ create_flip_options (void)
/* the radio buttons */
for (i = 0; i < 2; i++)
{
radio_button = gtk_radio_button_new_with_label (group, button_names[i]);
radio_button = gtk_radio_button_new_with_label (group, gettext(button_names[i]));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (radio_button));
gtk_box_pack_start (GTK_BOX (radio_box), radio_button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (radio_button), "toggled",

View File

@ -31,6 +31,8 @@
#include "paint_core.h"
#include "undo.h"
#include "libgimp/gimpintl.h"
#include "layer_pvt.h"
#include "tile_manager_pvt.h"
#include "drawable_pvt.h"
@ -209,7 +211,7 @@ gimage_mask_extract (gimage, drawable, cut_gimage, keep_indexed)
non_empty = drawable_mask_bounds (drawable, &x1, &y1, &x2, &y2);
if (non_empty && (!(x2 - x1) || !(y2 - y1)))
{
g_message ("Unable to cut/copy because the selected\nregion is empty.");
g_message (_("Unable to cut/copy because the selected\nregion is empty."));
return NULL;
}
@ -332,7 +334,7 @@ gimage_mask_float (gimage, drawable, off_x, off_y)
non_empty = drawable_mask_bounds ( (drawable), &x1, &y1, &x2, &y2);
if (! non_empty || (x2 - x1) == 0 || (y2 - y1) == 0)
{
g_message ("Float Selection: No selection to float.");
g_message (_("Float Selection: No selection to float."));
return NULL;
}
@ -343,7 +345,7 @@ gimage_mask_float (gimage, drawable, off_x, off_y)
tiles = gimage_mask_extract (gimage, drawable, TRUE, FALSE);
/* Create a new layer from the buffer */
layer = layer_from_tiles (gimage, drawable, tiles, "Floated Layer", OPAQUE_OPACITY, NORMAL);
layer = layer_from_tiles (gimage, drawable, tiles, _("Floated Layer"), OPAQUE_OPACITY, NORMAL);
/* Set the offsets */
GIMP_DRAWABLE(layer)->offset_x = tiles->x + off_x;
@ -486,7 +488,7 @@ gimage_mask_layer_alpha (gimage, layer)
}
else
{
g_message ("The active layer has no alpha channel\nto convert to a selection.");
g_message (_("The active layer has no alpha channel\nto convert to a selection."));
return;
}
}
@ -505,7 +507,7 @@ gimage_mask_layer_mask (gimage, layer)
}
else
{
g_message ("The active layer has no mask\nto convert to a selection.");
g_message (_("The active layer has no mask\nto convert to a selection."));
return;
}
}
@ -554,7 +556,7 @@ gimage_mask_stroke (gimage, drawable)
if (! gimage_mask_boundary (gimage, &bs_in, &bs_out, &num_segs_in, &num_segs_out))
{
g_message ("No selection to stroke!");
g_message (_("No selection to stroke!"));
return FALSE;
}

View File

@ -25,6 +25,8 @@
#include "gimprc.h"
#include "brush_header.h"
#include "libgimp/gimpintl.h"
enum{
DIRTY,
RENAME,
@ -195,14 +197,14 @@ gimp_brush_load(GimpBrush *brush, char *filename)
brush->name = (char *) g_malloc (sizeof (char) * bn_size);
if ((fread (brush->name, 1, bn_size, fp)) < bn_size)
{
g_message ("Error in GIMP brush file...aborting.");
g_message (_("Error in GIMP brush file...aborting."));
fclose (fp);
gimp_object_destroy (brush);
return;
}
}
else
brush->name = g_strdup ("Unnamed");
brush->name = g_strdup (_("Unnamed"));
switch(header.version)
{
@ -220,10 +222,10 @@ gimp_brush_load(GimpBrush *brush, char *filename)
/* Read the brush mask data */
if ((fread (temp_buf_data (brush->mask), 1, header.width * header.height,
fp)) < header.width * header.height)
g_message ("GIMP brush file appears to be truncated.");
g_message (_("GIMP brush file appears to be truncated."));
break;
default:
g_message ("Unknown brush format version #%d in \"%s\"\n",
g_message (_("Unknown brush format version #%d in \"%s\"\n"),
header.version, filename);
fclose (fp);
gimp_object_destroy (brush);

View File

@ -42,6 +42,7 @@
#include "gimplistP.h"
#include "gimpbrushlistP.h"
#include "libgimp/gimpintl.h"
/* global variables */
GimpBrush *active_brush = NULL;
@ -198,7 +199,7 @@ get_active_brush ()
{
have_default_brush = 0;
if (!active_brush)
fatal_error ("Specified default brush not found!");
fatal_error (_("Specified default brush not found!"));
}
else if (! active_brush && brush_list)
/* need a gimp_list_get_first() type function */

View File

@ -44,7 +44,7 @@ image_equalize (gimage_ptr)
if (drawable_indexed (drawable))
{
g_message ("Equalize does not operate on indexed drawables.");
g_message (_("Equalize does not operate on indexed drawables."));
return;
}
equalize (gimage, drawable, mask_only);

View File

@ -24,6 +24,8 @@
#include "invert.h"
#include "gimage.h"
#include "libgimp/gimpintl.h"
static void invert (GimpDrawable *);
static Argument * invert_invoker (Argument *);
@ -42,7 +44,7 @@ image_invert (gimage_ptr)
if (drawable_indexed (drawable))
{
g_message ("Invert does not operate on indexed drawables.");
g_message (_("Invert does not operate on indexed drawables."));
return;
}
@ -52,7 +54,7 @@ image_invert (gimage_ptr)
PDB_END);
if (return_vals[0].value.pdb_int != PDB_SUCCESS)
g_message ("Invert operation failed.");
g_message (_("Invert operation failed."));
procedural_db_destroy_args (return_vals, nreturn_vals);
}

View File

@ -26,6 +26,7 @@
#include "gimage_mask.h"
#include "parasitelist.h"
#include "libgimp/gimpintl.h"
enum {
INVALIDATE_PREVIEW,
@ -158,7 +159,7 @@ gimp_drawable_fill (GimpDrawable *drawable, guchar r, guchar g,
c[ALPHA_I_PIX] = a;
break;
default:
g_message ("Can't fill unknown image type.");
g_message (_("Can't fill unknown image type."));
break;
}
@ -600,7 +601,7 @@ gimp_drawable_configure (GimpDrawable *drawable,
int alpha;
if (!name)
name = "unnamed";
name = _("unnamed");
switch (type)
{
@ -617,7 +618,7 @@ gimp_drawable_configure (GimpDrawable *drawable,
case INDEXEDA_GIMAGE:
bpp = 2; alpha = 1; break;
default:
g_message ("Layer type %d not supported.", type);
g_message (_("Layer type %d not supported."), type);
return;
}

View File

@ -16,8 +16,8 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include <string.h>
#include "gimpimageP.h"
#include "gimpimageP.h"
#include "drawable.h"
#include "floating_sel.h"
#include "gdisplay.h"
@ -30,6 +30,8 @@
#include "undo.h"
#include "gimpsignal.h"
#include "libgimp/gimpintl.h"
#include "tile_manager.h"
#include "tile.h"
#include "layer_pvt.h"
@ -532,7 +534,7 @@ gimp_image_apply_image (GimpImage *gimage, GimpDrawable *drawable, PixelRegion *
operation = valid_combinations [drawable_type (drawable)][src2PR->bytes];
if (operation == -1)
{
g_message ("gimp_image_apply_image sent illegal parameters");
g_message (_("gimp_image_apply_image sent illegal parameters"));
return;
}
@ -626,7 +628,7 @@ gimp_image_replace_image (GimpImage *gimage, GimpDrawable *drawable, PixelRegion
operation = valid_combinations [drawable_type (drawable)][src2PR->bytes];
if (operation == -1)
{
g_message ("gimp_image_apply_image sent illegal parameters");
g_message (_("gimp_image_apply_image sent illegal parameters"));
return;
}
@ -904,7 +906,7 @@ gimp_image_get_new_tattoo(GimpImage *image)
{
image->tattoo_state++;
if (image->tattoo_state <= 0)
g_warning("Tattoo state has become corrupt (2.1 billion operation limit exceded)");
g_warning(_("Tattoo state has become corrupt (2.1 billion operation limit exceded)"));
return (image->tattoo_state);
}
@ -948,7 +950,7 @@ project_indexed (GimpImage *gimage, Layer *layer,
initial_region (src, dest, NULL, gimage->cmap, layer->opacity,
layer->mode, gimage->visible, INITIAL_INDEXED);
else
g_message ("Unable to project indexed image.");
g_message (_("Unable to project indexed image."));
}
@ -1710,7 +1712,7 @@ gimp_image_raise_layer (GimpImage *gimage, Layer *layer_arg)
}
else
{
g_message ("Layer cannot be raised any further");
g_message (_("Layer cannot be raised any further"));
return NULL;
}
}
@ -1782,7 +1784,7 @@ gimp_image_lower_layer (GimpImage *gimage, Layer *layer_arg)
}
else
{
g_message ("Layer cannot be lowered any further");
g_message (_("Layer cannot be lowered any further"));
return NULL;
}
}
@ -1811,12 +1813,12 @@ gimp_image_raise_layer_to_top (GimpImage *gimage, Layer *layer_arg)
if (layer == layer_arg)
{
/* layer_arg is already the top_layer */
g_message ("Layer is already on top");
g_message (_("Layer is already on top"));
return NULL;
}
if (! layer_has_alpha (layer_arg))
{
g_message ("cant raise Layer without alpha");
g_message (_("Can't raise Layer without alpha"));
return NULL;
}
@ -1908,7 +1910,7 @@ gimp_image_lower_layer_to_bottom (GimpImage *gimage, Layer *layer_arg)
if (layer == layer_arg)
{
/* there is no next layer below layer_arg */
g_message ("Layer is already on bottom");
g_message (_("Layer is already on bottom"));
}
/* bottom is reached, we can stop now */
break;
@ -1921,7 +1923,7 @@ gimp_image_lower_layer_to_bottom (GimpImage *gimage, Layer *layer_arg)
}
else
{
g_message ("BG has no alpha, layer was placed above");
g_message (_("BG has no alpha, layer was placed above"));
break;
}
@ -1978,7 +1980,7 @@ gimp_image_merge_visible_layers (GimpImage *gimage, MergeType merge_type)
}
else
{
g_message ("There are not enough visible layers for a merge.\nThere must be at least two.");
g_message (_("There are not enough visible layers for a merge.\nThere must be at least two."));
g_slist_free (merge_list);
return NULL;
}
@ -2050,7 +2052,7 @@ gimp_image_merge_down (GimpImage *gimage,
}
else
{
g_message ("There are not enough visible layers for a merge down.");
g_message (_("There are not enough visible layers for a merge down."));
g_slist_free (merge_list);
return NULL;
}
@ -2161,7 +2163,7 @@ gimp_image_merge_layers (GimpImage *gimage, GSList *merge_list, MergeType merge_
type, drawable_get_name (GIMP_DRAWABLE(layer)), OPAQUE_OPACITY, NORMAL_MODE);
if (!merge_layer) {
g_message ("gimp_image_merge_layers: could not allocate merge layer");
g_message (_("gimp_image_merge_layers: could not allocate merge layer"));
return NULL;
}
@ -2194,7 +2196,7 @@ gimp_image_merge_layers (GimpImage *gimage, GSList *merge_list, MergeType merge_
if (!merge_layer) {
g_message ("gimp_image_merge_layers: could not allocate merge layer");
g_message (_("gimp_image_merge_layers: could not allocate merge layer"));
return NULL;
}
@ -2233,7 +2235,7 @@ gimp_image_merge_layers (GimpImage *gimage, GSList *merge_list, MergeType merge_
operation = valid_combinations [drawable_type (GIMP_DRAWABLE(merge_layer))][drawable_bytes (GIMP_DRAWABLE(layer))];
if (operation == -1)
{
g_message ("gimp_image_merge_layers attempting to merge incompatible layers\n");
g_message (_("gimp_image_merge_layers attempting to merge incompatible layers\n"));
return NULL;
}
@ -2313,7 +2315,7 @@ gimp_image_add_layer (GimpImage *gimage, Layer *float_layer, int position)
if (GIMP_DRAWABLE(float_layer)->gimage != NULL &&
GIMP_DRAWABLE(float_layer)->gimage != gimage)
{
g_message ("gimp_image_add_layer: attempt to add layer to wrong image");
g_message (_("gimp_image_add_layer: attempt to add layer to wrong image"));
return NULL;
}
@ -2323,7 +2325,7 @@ gimp_image_add_layer (GimpImage *gimage, Layer *float_layer, int position)
{
if (ll->data == float_layer)
{
g_message ("gimp_image_add_layer: trying to add layer to image twice");
g_message (_("gimp_image_add_layer: trying to add layer to image twice"));
return NULL;
}
ll = g_slist_next(ll);
@ -2433,22 +2435,24 @@ LayerMask *
gimp_image_add_layer_mask (GimpImage *gimage, Layer *layer, LayerMask *mask)
{
LayerMaskUndo *lmu;
char *error = NULL;;
if (layer->mask != NULL)
error = "Unable to add a layer mask since\nthe layer already has one.";
{
g_message(_("Unable to add a layer mask since\nthe layer already has one."));
}
if (drawable_indexed (GIMP_DRAWABLE(layer)))
error = "Unable to add a layer mask to a\nlayer in an indexed image.";
{
g_message(_("Unable to add a layer mask to a\nlayer in an indexed image."));
}
if (! layer_has_alpha (layer))
error = "Cannot add layer mask to a layer\nwith no alpha channel.";
{
g_message(_("Cannot add layer mask to a layer\nwith no alpha channel."));
}
if (drawable_width (GIMP_DRAWABLE(layer)) != drawable_width (GIMP_DRAWABLE(mask)) || drawable_height (GIMP_DRAWABLE(layer)) != drawable_height (GIMP_DRAWABLE(mask)))
error = "Cannot add layer mask of different dimensions than specified layer.";
if (error)
{
g_message (error);
return NULL;
}
{
g_message(_("Cannot add layer mask of different dimensions than specified layer."));
return NULL;
}
layer_add_mask (layer, mask);
@ -2550,7 +2554,7 @@ gimp_image_raise_channel (GimpImage *gimage, Channel * channel_arg)
}
else
{
g_message ("Channel cannot be raised any further");
g_message (_("Channel cannot be raised any further"));
return NULL;
}
}
@ -2597,7 +2601,7 @@ gimp_image_lower_channel (GimpImage *gimage, Channel *channel_arg)
}
else
{
g_message ("Channel cannot be lowered any further");
g_message (_("Channel cannot be lowered any further"));
return NULL;
}
}
@ -2617,7 +2621,7 @@ gimp_image_add_channel (GimpImage *gimage, Channel *channel, int position)
if (GIMP_DRAWABLE(channel)->gimage != NULL &&
GIMP_DRAWABLE(channel)->gimage != gimage)
{
g_message ("gimp_image_add_channel: attempt to add channel to wrong image");
g_message (_("gimp_image_add_channel: attempt to add channel to wrong image"));
return NULL;
}
@ -2627,7 +2631,7 @@ gimp_image_add_channel (GimpImage *gimage, Channel *channel, int position)
{
if (cc->data == channel)
{
g_message ("gimp_image_add_channel: trying to add channel to image twice");
g_message (_("gimp_image_add_channel: trying to add channel to image twice"));
return NULL;
}
cc = g_slist_next (cc);
@ -2753,7 +2757,7 @@ gimp_image_filename (GimpImage *gimage)
if (gimage->has_filename)
return gimage->filename;
else
return "Untitled";
return _("Untitled");
}
int

View File

@ -36,6 +36,9 @@
#include "session.h"
#include "tools.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#define ERROR 0
#define DONE 1
#define OK 2
@ -293,7 +296,7 @@ gimp_directory ()
gimp_dir[len_env_home_dir] = '/';
}
else
g_message ("warning: no home directory.");
g_message (_("warning: no home directory."));
strncpy (&gimp_dir[len_env_home_dir+1],
env_gimp_dir,
@ -308,7 +311,7 @@ gimp_directory ()
gimp_dir[len_env_home_dir] = '/';
}
else
g_message ("warning: no home directory.");
g_message (_("warning: no home directory."));
strncpy (&gimp_dir[len_env_home_dir+1],
GIMPDIR,
@ -340,7 +343,7 @@ parse_gimprc ()
else
sprintf (libfilename, "%s/gimprc", DATADIR);
app_init_update_status("Resource configuration", libfilename, -1);
app_init_update_status(_("Resource configuration"), libfilename, -1);
if (alternate_system_gimprc != NULL)
{
strncpy (libfilename, alternate_system_gimprc, 512);
@ -380,7 +383,7 @@ parse_gimprc_file (char *filename)
return;
if ((be_verbose == TRUE) || (no_splash == TRUE))
g_print ("parsing \"%s\"\n", filename);
g_print (_("parsing \"%s\"\n"), filename);
cur_token = -1;
next_token = -1;
@ -399,9 +402,9 @@ parse_gimprc_file (char *filename)
if (status == ERROR)
{
g_print ("error parsing: \"%s\"\n", filename);
g_print (" at line %d column %d\n", parse_info.linenum, parse_info.charnum);
g_print (" unexpected token: %s\n", token_sym);
g_print (_("error parsing: \"%s\"\n"), filename);
g_print (_(" at line %d column %d\n"), parse_info.linenum, parse_info.charnum);
g_print (_(" unexpected token: %s\n"), token_sym);
}
}
@ -1118,7 +1121,7 @@ parse_plug_in_def (gpointer val1p,
return OK;
error:
g_message ("error parsing pluginrc");
g_message (_("error parsing pluginrc"));
tmp_list = plug_in_def->proc_defs;
while (tmp_list)
{
@ -1453,7 +1456,7 @@ transform_path (char *path,
}
else
{
terminate("gimprc token referenced but not defined: %s", token);
terminate(_("gimprc token referenced but not defined: %s"), token);
}
}
tmp2 = transform_path (tmp2, FALSE);
@ -2150,10 +2153,10 @@ open_backup_file (char *filename,
if ((*fp_old = fopen (filename, "rb")) == NULL)
{
if (errno == EACCES)
return "Can't open gimprc; permission problems";
return _("Can't open gimprc; permission problems");
if (errno == ENOENT)
return "Can't open gimprc; file does not exist";
return "Can't open gimprc, reason unknown";
return _("Can't open gimprc; file does not exist");
return _("Can't open gimprc, reason unknown");
}
oldfilename = g_malloc (strlen (filename) + 5);
@ -2162,10 +2165,10 @@ open_backup_file (char *filename,
{
g_free (oldfilename);
if (errno == EACCES)
return "Can't rename gimprc to gimprc.old; permission problems";
return _("Can't rename gimprc to gimprc.old; permission problems");
if (errno == EISDIR)
return "Can't rename gimprc to gimprc.old; gimprc.old is a directory";
return "Can't rename gimprc to gimprc.old, reason unknown";
return _("Can't rename gimprc to gimprc.old; gimprc.old is a directory");
return _("Can't rename gimprc to gimprc.old, reason unknown");
}
if ((*fp_new = fopen (filename, "wb")) == NULL)
@ -2173,8 +2176,8 @@ open_backup_file (char *filename,
(void) rename (oldfilename, filename);
g_free (oldfilename);
if (errno == EACCES)
return "Can't write to gimprc; permission problems";
return "Can't write to gimprc, reason unknown";
return _("Can't write to gimprc; permission problems");
return _("Can't write to gimprc, reason unknown");
}
g_free (oldfilename);

View File

@ -32,6 +32,8 @@
#include "tools.h"
#include "undo.h"
#include "libgimp/gimpintl.h"
#include "tile_manager_pvt.h"
#include "drawable_pvt.h"
@ -279,7 +281,7 @@ edit_paste (GImage *gimage,
int cx, cy;
/* Make a new floating layer */
float_layer = layer_from_tiles (gimage, drawable, paste, "Pasted Layer", OPAQUE_OPACITY, NORMAL);
float_layer = layer_from_tiles (gimage, drawable, paste, _("Pasted Layer"), OPAQUE_OPACITY, NORMAL);
if (float_layer)
{
@ -586,9 +588,9 @@ paste_named_buffer (GDisplay *gdisp)
{
static ActionAreaItem action_items[3] =
{
{ "Paste", named_buffer_paste_callback, NULL, NULL },
{ "Delete", named_buffer_delete_callback, NULL, NULL },
{ "Cancel", named_buffer_cancel_callback, NULL, NULL }
{ N_("Paste"), named_buffer_paste_callback, NULL, NULL },
{ N_("Delete"), named_buffer_delete_callback, NULL, NULL },
{ N_("Cancel"), named_buffer_cancel_callback, NULL, NULL }
};
PasteNamedDlg *pn_dlg;
GtkWidget *vbox;
@ -601,7 +603,7 @@ paste_named_buffer (GDisplay *gdisp)
pn_dlg->shell = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (pn_dlg->shell), "paste_named_buffer", "Gimp");
gtk_window_set_title (GTK_WINDOW (pn_dlg->shell), "Paste Named Buffer");
gtk_window_set_title (GTK_WINDOW (pn_dlg->shell), _("Paste Named Buffer"));
gtk_window_position (GTK_WINDOW (pn_dlg->shell), GTK_WIN_POS_MOUSE);
gtk_signal_connect (GTK_OBJECT (pn_dlg->shell), "delete_event",
@ -613,7 +615,7 @@ paste_named_buffer (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 paste:");
label = gtk_label_new (_("Select a buffer to paste:"));
gtk_box_pack_start (GTK_BOX (vbox), label, TRUE, FALSE, 0);
gtk_widget_show (label);
@ -632,7 +634,7 @@ paste_named_buffer (GDisplay *gdisp)
set_list_of_named_buffers (pn_dlg->list);
gtk_widget_show (pn_dlg->list);
paste_into = gtk_check_button_new_with_label ("Replace Current Selection");
paste_into = gtk_check_button_new_with_label (_("Replace Current Selection"));
gtk_box_pack_start (GTK_BOX (vbox), paste_into, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (paste_into), "toggled",
(GtkSignalFunc) named_buffer_paste_into_update,
@ -694,7 +696,7 @@ named_edit_cut (void *gdisp_ptr)
gdisp = (GDisplay *) gdisp_ptr;
active_tool_control (HALT, gdisp_ptr);
query_string_box ("Cut Named", "Enter a name for this buffer", NULL,
query_string_box (_("Cut Named"), _("Enter a name for this buffer"), NULL,
cut_named_buffer_callback, gdisp);
return TRUE;
}
@ -723,7 +725,7 @@ named_edit_copy (void *gdisp_ptr)
gdisp = (GDisplay *) gdisp_ptr;
query_string_box ("Copy Named", "Enter a name for this buffer", NULL,
query_string_box (_("Copy Named"), _("Enter a name for this buffer"), NULL,
copy_named_buffer_callback, gdisp);
return TRUE;
}

View File

@ -168,6 +168,9 @@
#include "session.h"
#include "gradient_header.h"
#include "config.h"
#include "libgimp/gimpintl.h"
/***** Magic numbers *****/
#ifndef M_PI
@ -395,17 +398,17 @@ gradient_t *grad_default_gradient = NULL;
gradient_editor_t *g_editor = NULL; /* The gradient editor */
static char *blending_types[] = {
"Linear",
"Curved",
"Sinusoidal",
"Spherical (increasing)",
"Spherical (decreasing)"
N_("Linear"),
N_("Curved"),
N_("Sinusoidal"),
N_("Spherical (increasing)"),
N_("Spherical (decreasing)")
}; /* blending_types */
static char *coloring_types[] = {
"Plain RGB",
"HSV (counter-clockwise hue)",
"HSV (clockwise hue)"
N_("Plain RGB"),
N_("HSV (counter-clockwise hue)"),
N_("HSV (clockwise hue)")
}; /* coloring_types */
@ -426,7 +429,7 @@ gradients_init(int no_data)
curr_gradient = (gradient_t *) gradients_list->data;
else {
curr_gradient = grad_create_default_gradient();
curr_gradient->name = g_strdup("Default");
curr_gradient->name = g_strdup(_("Default"));
curr_gradient->filename = build_user_filename(curr_gradient->name, gradient_path);
curr_gradient->dirty = FALSE;
@ -502,7 +505,7 @@ grad_get_color_at(double pos, double *r, double *g, double *b, double *a)
default:
grad_dump_gradient(curr_gradient, stderr);
fatal_error("grad_get_color_at(): aieee, unknown gradient type %d", (int) seg->type);
fatal_error(_("grad_get_color_at(): aieee, unknown gradient type %d"), (int) seg->type);
factor = 0.0; /* Shut up -Wall */
break;
} /* switch */
@ -555,7 +558,7 @@ grad_get_color_at(double pos, double *r, double *g, double *b, double *a)
default:
grad_dump_gradient(curr_gradient, stderr);
fatal_error("grad_get_color_at(): aieee, unknown coloring mode %d",
fatal_error(_("grad_get_color_at(): aieee, unknown coloring mode %d"),
(int) seg->color);
break;
} /* switch */
@ -617,7 +620,7 @@ grad_create_gradient_editor_init(gint need_show)
g_editor->shell = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_wmclass (GTK_WINDOW(g_editor->shell), "gradient_editor", "Gimp");
gtk_container_border_width(GTK_CONTAINER(g_editor->shell), 0);
gtk_window_set_title(GTK_WINDOW(g_editor->shell), "Gradient Editor");
gtk_window_set_title(GTK_WINDOW(g_editor->shell), _("Gradient Editor"));
/* handle window manager close signals */
gtk_signal_connect (GTK_OBJECT (g_editor->shell), "delete_event",
@ -646,7 +649,7 @@ grad_create_gradient_editor_init(gint need_show)
GTK_EXPAND | GTK_FILL, GTK_FILL, 8, 2);
gtk_widget_show(g_editor->hint_label);
button = ed_create_button("Close", 0.5, 0.5, (GtkSignalFunc) ed_close_callback, NULL);
button = ed_create_button(N_("Close"), 0.5, 0.5, (GtkSignalFunc) ed_close_callback, NULL);
gtk_widget_set_usize(button, GRAD_CLOSE_BUTTON_WIDTH, 0);
gtk_table_attach(GTK_TABLE(table), button, 1, 2, 0, 2, GTK_FILL, GTK_EXPAND | GTK_FILL, 8, 0);
gtk_widget_show(button);
@ -660,7 +663,7 @@ grad_create_gradient_editor_init(gint need_show)
/* Gradients list box */
label = gtk_label_new("Gradients");
label = gtk_label_new(_("Gradients: "));
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
gtk_widget_show(label);
@ -680,8 +683,8 @@ grad_create_gradient_editor_init(gint need_show)
gtk_clist_set_row_height(GTK_CLIST(g_editor->clist), 18);
gtk_clist_set_column_width(GTK_CLIST(g_editor->clist), 0, 52);
gtk_clist_set_column_title(GTK_CLIST(g_editor->clist), 0, "Gradient");
gtk_clist_set_column_title(GTK_CLIST(g_editor->clist), 1, "Name");
gtk_clist_set_column_title(GTK_CLIST(g_editor->clist), 0, _("Gradient"));
gtk_clist_set_column_title(GTK_CLIST(g_editor->clist), 1, _("Name"));
gtk_clist_column_titles_show(GTK_CLIST(g_editor->clist));
gtk_box_pack_start(GTK_BOX(hbox), scrolled_win, TRUE, TRUE, 0);
@ -710,37 +713,37 @@ grad_create_gradient_editor_init(gint need_show)
/* Buttons for gradient functions */
button = ed_create_button("New gradient", 0.0, 0.5,
button = ed_create_button(N_("New gradient"), 0.0, 0.5,
(GtkSignalFunc) ed_new_gradient_callback, NULL);
gtk_box_pack_start(GTK_BOX(gvbox), button, TRUE, TRUE, 0);
gtk_widget_show(button);
button = ed_create_button("Copy gradient", 0.0, 0.5,
button = ed_create_button(N_("Copy gradient"), 0.0, 0.5,
(GtkSignalFunc) ed_copy_gradient_callback, NULL);
gtk_box_pack_start(GTK_BOX(gvbox), button, TRUE, TRUE, 0);
gtk_widget_show(button);
button = ed_create_button("Delete gradient", 0.0, 0.5,
button = ed_create_button(N_("Delete gradient"), 0.0, 0.5,
(GtkSignalFunc) ed_delete_gradient_callback, NULL);
gtk_box_pack_start(GTK_BOX(gvbox), button, TRUE, TRUE, 0);
gtk_widget_show(button);
button = ed_create_button("Save as POV-Ray", 0.0, 0.5,
button = ed_create_button(N_("Save as POV-Ray"), 0.0, 0.5,
(GtkSignalFunc) ed_save_pov_callback, NULL);
gtk_box_pack_start(GTK_BOX(gvbox), button, TRUE, TRUE, 0);
gtk_widget_show(button);
button = ed_create_button("Save Gradients", 0.0, 0.5,
button = ed_create_button(N_("Save Gradients"), 0.0, 0.5,
(GtkSignalFunc) ed_save_grads_callback, NULL);
gtk_box_pack_start(GTK_BOX(gvbox), button, TRUE, TRUE, 0);
gtk_widget_show(button);
button = ed_create_button("Rename Gradient", 0.0, 0.5,
button = ed_create_button(N_("Rename Gradient"), 0.0, 0.5,
(GtkSignalFunc) ed_rename_grads_callback, NULL);
gtk_box_pack_start(GTK_BOX(gvbox), button, TRUE, TRUE, 0);
gtk_widget_show(button);
button = ed_create_button("Refresh gradients", 0.0, 0.5,
button = ed_create_button(N_("Refresh gradients"), 0.0, 0.5,
(GtkSignalFunc) ed_refresh_callback, NULL);
gtk_box_pack_start(GTK_BOX(gvbox), button, TRUE, TRUE, 0);
gtk_widget_show(button);
@ -754,15 +757,15 @@ grad_create_gradient_editor_init(gint need_show)
/* Zoom buttons */
button = ed_create_button("Zoom all", 0.5, 0.5, (GtkSignalFunc) ed_zoom_all_callback, g_editor);
button = ed_create_button(N_("Zoom all"), 0.5, 0.5, (GtkSignalFunc) ed_zoom_all_callback, g_editor);
gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0);
gtk_widget_show(button);
button = ed_create_button("Zoom -", 0.5, 0.5, (GtkSignalFunc) ed_zoom_out_callback, g_editor);
button = ed_create_button(N_("Zoom -"), 0.5, 0.5, (GtkSignalFunc) ed_zoom_out_callback, g_editor);
gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0);
gtk_widget_show(button);
button = ed_create_button("Zoom +", 0.5, 0.5, (GtkSignalFunc) ed_zoom_in_callback, g_editor);
button = ed_create_button(N_("Zoom +"), 0.5, 0.5, (GtkSignalFunc) ed_zoom_in_callback, g_editor);
gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0);
gtk_widget_show(button);
@ -791,7 +794,7 @@ grad_create_gradient_editor_init(gint need_show)
g_editor->instant_update = 1;
button = gtk_check_button_new_with_label("Instant update");
button = gtk_check_button_new_with_label(_("Instant update"));
gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0);
gtk_signal_connect(GTK_OBJECT(button), "toggled",
(GtkSignalFunc) ed_instant_update_update,
@ -964,7 +967,7 @@ ed_create_button(gchar *label, double xalign, double yalign, GtkSignalFunc signa
GtkWidget *text;
button = gtk_button_new();
text = gtk_label_new(label);
text = gtk_label_new(gettext(label));
gtk_misc_set_alignment(GTK_MISC(text), xalign, yalign);
gtk_container_add(GTK_CONTAINER(button), text);
@ -1251,9 +1254,9 @@ ed_close_callback(GtkWidget *widget, gpointer client_data)
static void
ed_new_gradient_callback(GtkWidget *widget, gpointer client_data)
{
query_string_box("New gradient",
"Enter a name for the new gradient",
"untitled",
query_string_box(_("New gradient"),
_("Enter a name for the new gradient"),
_("untitled"),
ed_do_new_gradient_callback, NULL);
} /* ed_new_gradient_callback */
@ -1270,7 +1273,7 @@ ed_do_new_gradient_callback(GtkWidget *widget, gpointer client_data, gpointer ca
gradient_name = (char *) call_data;
if (!gradient_name) {
g_message ("ed_do_new_gradient_callback(): oops, received NULL in call_data");
g_message (_("ed_do_new_gradient_callback(): oops, received NULL in call_data"));
return;
} /* if */
@ -1309,7 +1312,7 @@ ed_do_rename_gradient_callback(GtkWidget *widget, gpointer client_data, gpointer
gradient_name = (char *) call_data;
if (!gradient_name) {
g_message ("ed_do_rename_gradient_callback(): oops, received NULL in call_data");
g_message (_("ed_do_rename_gradient_callback(): oops, received NULL in call_data"));
return;
} /* if */
@ -1327,7 +1330,7 @@ ed_do_rename_gradient_callback(GtkWidget *widget, gpointer client_data, gpointer
} /* while */
if (!grad || !grad_list) {
g_message ("ed_do_rename_gradient_callback(): oops, can't find gradient to rename");
g_message (_("ed_do_rename_gradient_callback(): oops, can't find gradient to rename"));
return;
} /* if */
@ -1360,10 +1363,10 @@ ed_copy_gradient_callback(GtkWidget *widget, gpointer client_data)
name = g_malloc((strlen(curr_gradient->name) + 6) * sizeof(char));
sprintf(name, "%s copy", curr_gradient->name);
sprintf(name, _("%s copy"), curr_gradient->name);
query_string_box("Copy gradient",
"Enter a name for the copied gradient",
query_string_box(_("Copy gradient"),
_("Enter a name for the copied gradient"),
name,
ed_do_copy_gradient_callback, NULL);
@ -1384,7 +1387,7 @@ ed_do_copy_gradient_callback(GtkWidget *widget, gpointer client_data, gpointer c
gradient_name = (char *) call_data;
if (!gradient_name) {
g_message ("ed_do_copy_gradient_callback(): oops, received NULL in call_data");
g_message (_("ed_do_copy_gradient_callback(): oops, received NULL in call_data"));
return;
} /* if */
@ -1449,7 +1452,7 @@ ed_delete_gradient_callback(GtkWidget *widget, gpointer client_data)
return;
dialog = gtk_dialog_new();
gtk_window_set_title(GTK_WINDOW(dialog), "Delete gradient");
gtk_window_set_title(GTK_WINDOW(dialog), _("Delete gradient"));
gtk_window_position(GTK_WINDOW(dialog), GTK_WIN_POS_MOUSE);
gtk_container_border_width(GTK_CONTAINER(dialog), 0);
@ -1461,13 +1464,13 @@ ed_delete_gradient_callback(GtkWidget *widget, gpointer client_data)
/* Question */
label = gtk_label_new("Are you sure you want to delete");
label = gtk_label_new(_("Are you sure you want to delete"));
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
gtk_widget_show(label);
str = g_malloc((strlen(curr_gradient->name) + 32 * sizeof(char)));
sprintf(str, "\"%s\" from the list and from disk?", curr_gradient->name);
sprintf(str, _("\"%s\" from the list and from disk?"), curr_gradient->name);
label = gtk_label_new(str);
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
@ -1478,7 +1481,7 @@ ed_delete_gradient_callback(GtkWidget *widget, gpointer client_data)
/* Buttons */
button = ed_create_button("Delete", 0.5, 0.5,
button = ed_create_button(N_("Delete"), 0.5, 0.5,
(GtkSignalFunc) ed_do_delete_gradient_callback,
(gpointer) dialog);
GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
@ -1487,7 +1490,7 @@ ed_delete_gradient_callback(GtkWidget *widget, gpointer client_data)
gtk_widget_grab_default(button);
gtk_widget_show(button);
button = ed_create_button("Cancel", 0.5, 0.5,
button = ed_create_button(N_("Cancel"), 0.5, 0.5,
(GtkSignalFunc) ed_cancel_delete_gradient_callback,
(gpointer) dialog);
GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
@ -1536,7 +1539,7 @@ ed_do_delete_gradient_callback(GtkWidget *widget, gpointer client_data)
} /* while */
if (tmp == NULL)
fatal_error("ed_do_delete_gradient_callback(): aieee, could not find gradient to delete!");
fatal_error(_("ed_do_delete_gradient_callback(): aieee, could not find gradient to delete!"));
/* Delete gradient from gradients list */
@ -1592,8 +1595,8 @@ ed_rename_grads_callback(GtkWidget *widget, gpointer client_data)
if(curr_gradient == NULL)
return;
query_string_box("Rename gradient",
"Enter a new name for the gradient",
query_string_box(_("Rename gradient"),
_("Enter a new name for the gradient"),
curr_gradient->name,
ed_do_rename_gradient_callback, curr_gradient);
}
@ -1607,7 +1610,7 @@ ed_save_pov_callback(GtkWidget *widget, gpointer client_data)
if (curr_gradient == NULL) return;
window = gtk_file_selection_new("Save as POV-Ray");
window = gtk_file_selection_new(_("Save as POV-Ray"));
gtk_window_position(GTK_WINDOW(window), GTK_WIN_POS_MOUSE);
gtk_signal_connect(GTK_OBJECT(GTK_FILE_SELECTION(window)->ok_button),
@ -1665,7 +1668,7 @@ ed_do_save_pov_callback(GtkWidget *widget, gpointer client_data)
file = fopen(filename, "wb");
if (!file)
g_message ("ed_do_save_pov_callback(): oops, could not open \"%s\"", filename);
g_message (_("ed_do_save_pov_callback(): oops, could not open \"%s\""), filename);
else {
fprintf(file, "/* color_map file created by the GIMP */\n");
fprintf(file, "/* http://www.gimp.org/ */\n");
@ -1727,7 +1730,7 @@ ed_scrollbar_update(GtkAdjustment *adjustment, gpointer data)
{
char str[256];
sprintf(str, "Zoom factor: %d:1 Displaying [%0.6f, %0.6f]",
sprintf(str, _("Zoom factor: %d:1 Displaying [%0.6f, %0.6f]"),
g_editor->zoom_factor, adjustment->value, adjustment->value + adjustment->page_size);
ed_set_hint(str);
@ -1931,10 +1934,10 @@ prev_set_hint(gint x)
calc_rgb_to_hsv(&h, &s, &v);
sprintf(str, "Position: %0.6f "
sprintf(str, _("Position: %0.6f "
"RGB (%0.3f, %0.3f, %0.3f) "
"HSV (%0.3f, %0.3f, %0.3f) "
"Opacity: %0.3f",
"Opacity: %0.3f"),
xpos, r, g, b, h * 360.0, s, v, a);
ed_set_hint(str);
@ -1955,7 +1958,7 @@ prev_set_foreground(gint x)
palette_set_foreground(r * 255.0, g * 255.0, b * 255.0);
sprintf(str, "Foreground color set to RGB (%d, %d, %d) <-> (%0.3f, %0.3f, %0.3f)",
sprintf(str, _("Foreground color set to RGB (%d, %d, %d) <-> (%0.3f, %0.3f, %0.3f)"),
(int) (r * 255.0),
(int) (g * 255.0),
(int) (b * 255.0),
@ -2244,28 +2247,28 @@ control_do_hint(gint x, gint y)
case GRAD_DRAG_LEFT:
if (seg != NULL) {
if (seg->prev != NULL)
ed_set_hint("Drag: move Shift+drag: move & compress");
ed_set_hint(_("Drag: move Shift+drag: move & compress"));
else
ed_set_hint("Click: select Shift+click: extend selection");
ed_set_hint(_("Click: select Shift+click: extend selection"));
} else
ed_set_hint("Click: select Shift+click: extend selection");
ed_set_hint(_("Click: select Shift+click: extend selection"));
break;
case GRAD_DRAG_MIDDLE:
ed_set_hint("Click: select Shift+click: extend selection "
"Drag: move");
ed_set_hint(_("Click: select Shift+click: extend selection "
"Drag: move"));
break;
default:
g_message ("control_do_hint: oops, in_handle is true "
"yet we got handle type %d", (int) handle);
g_message (_("control_do_hint: oops, in_handle is true "
"yet we got handle type %d"), (int) handle);
break;
} /* switch */
} else
ed_set_hint("Click: select Shift+click: extend selection "
"Drag: move Shift+drag: move & compress");
ed_set_hint(_("Click: select Shift+click: extend selection "
"Drag: move Shift+drag: move & compress"));
} /* control_do_hint */
@ -2363,8 +2366,8 @@ control_button_press(gint x, gint y, guint button, guint state)
return;
default:
g_message ("control_button_press(): oops, in_handle is true "
"yet we got handle type %d", (int) handle);
g_message (_("control_button_press(): oops, in_handle is true "
"yet we got handle type %d"), (int) handle);
return;
} /* switch */
else {
@ -2407,7 +2410,7 @@ control_point_in_handle(gint x, gint y, grad_segment_t *seg, control_drag_mode_t
break;
default:
g_message ("control_point_in_handle(): oops, can not handle drag mode %d",
g_message (_("control_point_in_handle(): oops, can not handle drag mode %d"),
(int) handle);
return 0;
} /* switch */
@ -2468,7 +2471,7 @@ control_motion(gint x)
g_editor->control_sel_r,
seg, pos);
sprintf(str, "Handle position: %0.6f", seg->left);
sprintf(str, _("Handle position: %0.6f"), seg->left);
ed_set_hint(str);
break;
@ -2477,7 +2480,7 @@ control_motion(gint x)
pos = control_calc_g_pos(x);
seg->middle = BOUNDS(pos, seg->left + EPSILON, seg->right - EPSILON);
sprintf(str, "Handle position: %0.6f", seg->middle);
sprintf(str, _("Handle position: %0.6f"), seg->middle);
ed_set_hint(str);
break;
@ -2494,14 +2497,14 @@ control_motion(gint x)
g_editor->control_last_gx += delta;
sprintf(str, "Distance: %0.6f",
sprintf(str, _("Distance: %0.6f"),
g_editor->control_last_gx - g_editor->control_orig_pos);
ed_set_hint(str);
break;
default:
fatal_error("control_motion(): aieee, attempt to move bogus handle %d",
fatal_error(_("control_motion(): aieee, attempt to move bogus handle %d"),
(int) g_editor->control_drag_mode);
break;
} /* switch */
@ -2954,7 +2957,7 @@ cpopup_create_main_menu(void)
/* Left endpoint */
menuitem = cpopup_create_color_item(&g_editor->left_color_preview, &label);
gtk_label_set(GTK_LABEL(label), "Left endpoint's color");
gtk_label_set(GTK_LABEL(label), _("Left endpoint's color"));
gtk_signal_connect(GTK_OBJECT(menuitem), "activate",
(GtkSignalFunc) cpopup_set_left_color_callback,
NULL);
@ -2966,11 +2969,11 @@ cpopup_create_main_menu(void)
'L', 0,
GTK_ACCEL_VISIBLE | GTK_ACCEL_LOCKED);
menuitem = gtk_menu_item_new_with_label("Load from");
menuitem = gtk_menu_item_new_with_label(_("Load from"));
g_editor->control_left_load_popup = cpopup_create_load_menu(g_editor->left_load_color_boxes,
g_editor->left_load_labels,
"Left neighbor's right endpoint",
"Right endpoint",
_("Left neighbor's right endpoint"),
_("Right endpoint"),
(GtkSignalFunc)
cpopup_load_left_callback,
'L', GDK_CONTROL_MASK,
@ -2980,7 +2983,7 @@ cpopup_create_main_menu(void)
gtk_menu_append(GTK_MENU(menu), menuitem);
gtk_widget_show(menuitem);
menuitem = gtk_menu_item_new_with_label("Save to");
menuitem = gtk_menu_item_new_with_label(_("Save to"));
g_editor->control_left_save_popup = cpopup_create_save_menu(g_editor->left_save_color_boxes,
g_editor->left_save_labels,
(GtkSignalFunc)
@ -2996,7 +2999,7 @@ cpopup_create_main_menu(void)
gtk_widget_show(menuitem);
menuitem = cpopup_create_color_item(&g_editor->right_color_preview, &label);
gtk_label_set(GTK_LABEL(label), "Right endpoint's color");
gtk_label_set(GTK_LABEL(label), _("Right endpoint's color"));
gtk_signal_connect(GTK_OBJECT(menuitem), "activate",
(GtkSignalFunc) cpopup_set_right_color_callback,
NULL);
@ -3008,11 +3011,11 @@ cpopup_create_main_menu(void)
'R', 0,
GTK_ACCEL_VISIBLE | GTK_ACCEL_LOCKED);
menuitem = gtk_menu_item_new_with_label("Load from");
menuitem = gtk_menu_item_new_with_label(_("Load from"));
g_editor->control_right_load_popup = cpopup_create_load_menu(g_editor->right_load_color_boxes,
g_editor->right_load_labels,
"Right neighbor's left endpoint",
"Left endpoint",
_("Right neighbor's left endpoint"),
_("Left endpoint"),
(GtkSignalFunc)
cpopup_load_right_callback,
'R', GDK_CONTROL_MASK,
@ -3022,7 +3025,7 @@ cpopup_create_main_menu(void)
gtk_menu_append(GTK_MENU(menu), menuitem);
gtk_widget_show(menuitem);
menuitem = gtk_menu_item_new_with_label("Save to");
menuitem = gtk_menu_item_new_with_label(_("Save to"));
g_editor->control_right_save_popup = cpopup_create_save_menu(g_editor->right_save_color_boxes,
g_editor->right_save_labels,
(GtkSignalFunc)
@ -3134,7 +3137,7 @@ cpopup_create_main_menu(void)
gtk_menu_append(GTK_MENU(menu), menuitem);
gtk_widget_show(menuitem);
menuitem = gtk_menu_item_new_with_label("Selection operations");
menuitem = gtk_menu_item_new_with_label(_("Selection operations"));
g_editor->control_sel_ops_popup = cpopup_create_sel_ops_menu();
gtk_menu_item_set_submenu(GTK_MENU_ITEM(menuitem), g_editor->control_sel_ops_popup);
gtk_menu_append(GTK_MENU(menu), menuitem);
@ -3287,42 +3290,42 @@ cpopup_adjust_menus(void)
if (g_editor->control_sel_l == g_editor->control_sel_r) {
gtk_label_set(GTK_LABEL(g_editor->control_blending_label),
"Blending function for segment");
_("Blending function for segment"));
gtk_label_set(GTK_LABEL(g_editor->control_coloring_label),
"Coloring type for segment");
_("Coloring type for segment"));
gtk_label_set(GTK_LABEL(g_editor->control_splitm_label),
"Split segment at midpoint");
_("Split segment at midpoint"));
gtk_label_set(GTK_LABEL(g_editor->control_splitu_label),
"Split segment uniformly");
_("Split segment uniformly"));
gtk_label_set(GTK_LABEL(g_editor->control_delete_label),
"Delete segment");
_("Delete segment"));
gtk_label_set(GTK_LABEL(g_editor->control_recenter_label),
"Re-center segment's midpoint");
_("Re-center segment's midpoint"));
gtk_label_set(GTK_LABEL(g_editor->control_redistribute_label),
"Re-distribute handles in segment");
_("Re-distribute handles in segment"));
gtk_label_set(GTK_LABEL(g_editor->control_flip_label),
"Flip segment");
_("Flip segment"));
gtk_label_set(GTK_LABEL(g_editor->control_replicate_label),
"Replicate segment");
_("Replicate segment"));
} else {
gtk_label_set(GTK_LABEL(g_editor->control_blending_label),
"Blending function for selection");
_("Blending function for selection"));
gtk_label_set(GTK_LABEL(g_editor->control_coloring_label),
"Coloring type for selection");
_("Coloring type for selection"));
gtk_label_set(GTK_LABEL(g_editor->control_splitm_label),
"Split segments at midpoints");
_("Split segments at midpoints"));
gtk_label_set(GTK_LABEL(g_editor->control_splitu_label),
"Split segments uniformly");
_("Split segments uniformly"));
gtk_label_set(GTK_LABEL(g_editor->control_delete_label),
"Delete selection");
_("Delete selection"));
gtk_label_set(GTK_LABEL(g_editor->control_recenter_label),
"Re-center midpoints in selection");
_("Re-center midpoints in selection"));
gtk_label_set(GTK_LABEL(g_editor->control_redistribute_label),
"Re-distribute handles in selection");
_("Re-distribute handles in selection"));
gtk_label_set(GTK_LABEL(g_editor->control_flip_label),
"Flip selection");
_("Flip selection"));
gtk_label_set(GTK_LABEL(g_editor->control_replicate_label),
"Replicate selection");
_("Replicate selection"));
} /* else */
/* Adjust blending and coloring menus */
@ -3634,7 +3637,7 @@ cpopup_create_load_menu(GtkWidget **color_boxes, GtkWidget **labels,
gtk_label_set(GTK_LABEL(labels[0]), label1);
gtk_label_set(GTK_LABEL(labels[1]), label2);
gtk_label_set(GTK_LABEL(labels[2]), "FG color");
gtk_label_set(GTK_LABEL(labels[2]), _("FG color"));
return menu;
} /* cpopup_create_load_menu */
@ -3679,7 +3682,7 @@ cpopup_update_saved_color(int n, double r, double g, double b, double a)
cpopup_render_color_box(GTK_PREVIEW(g_editor->right_save_color_boxes[n]),
r, g, b, a);
sprintf(str, "RGBA (%0.3f, %0.3f, %0.3f, %0.3f)", r, g, b, a);
sprintf(str, _("RGBA (%0.3f, %0.3f, %0.3f, %0.3f)"), r, g, b, a);
gtk_label_set(GTK_LABEL(g_editor->left_load_labels[n + 3]), str);
gtk_label_set(GTK_LABEL(g_editor->left_save_labels[n]), str);
@ -3937,9 +3940,9 @@ cpopup_create_coloring_menu(void)
for (i = 0; i < num_items; i++) {
if (i == (num_items - 1))
menuitem = gtk_radio_menu_item_new_with_label(group, "(Varies)");
menuitem = gtk_radio_menu_item_new_with_label(group, _("(Varies)"));
else
menuitem = gtk_radio_menu_item_new_with_label(group, coloring_types[i]);
menuitem = gtk_radio_menu_item_new_with_label(group, gettext(coloring_types[i]));
group = gtk_radio_menu_item_group(GTK_RADIO_MENU_ITEM(menuitem));
@ -4035,7 +4038,7 @@ cpopup_create_sel_ops_menu(void)
gtk_menu_append(GTK_MENU(menu), menuitem);
gtk_widget_show(menuitem);
menuitem = gtk_menu_item_new_with_label("Blend endpoints' colors");
menuitem = gtk_menu_item_new_with_label(_("Blend endpoints' colors"));
gtk_signal_connect(GTK_OBJECT(menuitem), "activate",
(GtkSignalFunc) cpopup_blend_colors,
NULL);
@ -4048,7 +4051,7 @@ cpopup_create_sel_ops_menu(void)
'B', 0,
GTK_ACCEL_VISIBLE | GTK_ACCEL_LOCKED);
menuitem = gtk_menu_item_new_with_label("Blend endpoints' opacity");
menuitem = gtk_menu_item_new_with_label(_("Blend endpoints' opacity"));
gtk_signal_connect(GTK_OBJECT(menuitem), "activate",
(GtkSignalFunc) cpopup_blend_opacity,
NULL);
@ -4281,7 +4284,7 @@ cpopup_set_left_color_callback(GtkWidget *widget, gpointer data)
g_editor->left_saved_dirty = curr_gradient->dirty;
g_editor->left_saved_segments = cpopup_save_selection();
cpopup_create_color_dialog("Left endpoint color",
cpopup_create_color_dialog(_("Left endpoint color"),
g_editor->control_sel_l->r0,
g_editor->control_sel_l->g0,
g_editor->control_sel_l->b0,
@ -4382,7 +4385,7 @@ cpopup_set_right_color_callback(GtkWidget *widget, gpointer data)
g_editor->right_saved_dirty = curr_gradient->dirty;
g_editor->right_saved_segments = cpopup_save_selection();
cpopup_create_color_dialog("Right endpoint color",
cpopup_create_color_dialog(_("Right endpoint color"),
g_editor->control_sel_r->r1,
g_editor->control_sel_r->g1,
g_editor->control_sel_r->b1,
@ -4515,8 +4518,8 @@ cpopup_split_uniform_callback(GtkWidget *widget, gpointer data)
dialog = gtk_dialog_new();
gtk_window_set_title(GTK_WINDOW(dialog),
(g_editor->control_sel_l == g_editor->control_sel_r) ?
"Split segment uniformly" :
"Split segments uniformly");
_("Split segment uniformly") :
_("Split segments uniformly"));
gtk_window_position(GTK_WINDOW(dialog), GTK_WIN_POS_MOUSE);
gtk_container_border_width(GTK_CONTAINER(dialog), 0);
@ -4528,14 +4531,14 @@ cpopup_split_uniform_callback(GtkWidget *widget, gpointer data)
/* Instructions */
label = gtk_label_new("Please select the number of uniform parts");
label = gtk_label_new(_("Please select the number of uniform parts"));
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
gtk_widget_show(label);
label = gtk_label_new((g_editor->control_sel_l == g_editor->control_sel_r) ?
"in which you want to split the selected segment" :
"in which you want to split the segments in the selection");
_("in which you want to split the selected segment") :
_("in which you want to split the segments in the selection"));
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
gtk_widget_show(label);
@ -4557,7 +4560,7 @@ cpopup_split_uniform_callback(GtkWidget *widget, gpointer data)
/* Buttons */
button = ed_create_button("Split", 0.5, 0.5,
button = ed_create_button(N_("Split"), 0.5, 0.5,
(GtkSignalFunc) cpopup_split_uniform_split_callback,
(gpointer) dialog);
GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
@ -4566,7 +4569,7 @@ cpopup_split_uniform_callback(GtkWidget *widget, gpointer data)
gtk_widget_grab_default(button);
gtk_widget_show(button);
button = ed_create_button("Cancel", 0.5, 0.5,
button = ed_create_button(N_("Cancel"), 0.5, 0.5,
(GtkSignalFunc) cpopup_split_uniform_cancel_callback,
(gpointer) dialog);
GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
@ -4870,8 +4873,8 @@ cpopup_replicate_callback(GtkWidget *widget, gpointer data)
dialog = gtk_dialog_new();
gtk_window_set_title(GTK_WINDOW(dialog),
(g_editor->control_sel_l == g_editor->control_sel_r) ?
"Replicate segment" :
"Replicate selection");
_("Replicate segment") :
_("Replicate selection"));
gtk_window_position(GTK_WINDOW(dialog), GTK_WIN_POS_MOUSE);
gtk_container_border_width(GTK_CONTAINER(dialog), 0);
@ -4883,14 +4886,14 @@ cpopup_replicate_callback(GtkWidget *widget, gpointer data)
/* Instructions */
label = gtk_label_new("Please select the number of times");
label = gtk_label_new(_("Please select the number of times"));
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
gtk_widget_show(label);
label = gtk_label_new((g_editor->control_sel_l == g_editor->control_sel_r) ?
"you want to replicate the selected segment" :
"you want to replicate the selection");
_("you want to replicate the selected segment") :
_("you want to replicate the selection"));
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
gtk_widget_show(label);
@ -4912,7 +4915,7 @@ cpopup_replicate_callback(GtkWidget *widget, gpointer data)
/* Buttons */
button = ed_create_button("Replicate", 0.5, 0.5,
button = ed_create_button(N_("Replicate"), 0.5, 0.5,
(GtkSignalFunc) cpopup_do_replicate_callback,
(gpointer) dialog);
GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
@ -4921,7 +4924,7 @@ cpopup_replicate_callback(GtkWidget *widget, gpointer data)
gtk_widget_grab_default(button);
gtk_widget_show(button);
button = ed_create_button("Cancel", 0.5, 0.5,
button = ed_create_button(N_("Cancel"), 0.5, 0.5,
(GtkSignalFunc) cpopup_replicate_cancel_callback,
(gpointer) dialog);
GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
@ -5423,7 +5426,7 @@ grad_load_gradient(char *filename)
num_segments = atoi(line);
if (num_segments < 1) {
g_message ("grad_load_gradient(): invalid number of segments in \"%s\"", filename);
g_message (_("grad_load_gradient(): invalid number of segments in \"%s\""), filename);
g_free(grad);
return;
} /* if */
@ -5446,9 +5449,9 @@ grad_load_gradient(char *filename)
&(seg->r0), &(seg->g0), &(seg->b0), &(seg->a0),
&(seg->r1), &(seg->g1), &(seg->b1), &(seg->a1),
&type, &color) != 13) {
g_message ("grad_load_gradient(): badly formatted "
g_message (_("grad_load_gradient(): badly formatted "
"gradient segment %d in \"%s\" --- bad things may "
"happen soon", i, filename);
"happen soon"), i, filename);
} else {
seg->type = (grad_type_t) type;
seg->color = (grad_color_t) color;
@ -5480,13 +5483,13 @@ grad_save_gradient(gradient_t *grad, char *filename)
g_assert(grad != NULL);
if (!filename) {
g_message ("grad_save_gradient(): can not save gradient with NULL filename");
g_message (_("grad_save_gradient(): can not save gradient with NULL filename"));
return;
} /* if */
file = fopen(filename, "wb");
if (!file) {
g_message ("grad_save_gradient(): can't open \"%s\"", filename);
g_message (_("grad_save_gradient(): can't open \"%s\""), filename);
return;
} /* if */
@ -5688,7 +5691,7 @@ seg_get_segment_at(gradient_t *grad, double pos)
/* Oops: we should have found a segment, but we didn't */
grad_dump_gradient(curr_gradient, stderr);
fatal_error("seg_get_segment_at(): aieee, no matching segment for position %0.15f", pos);
fatal_error(_("seg_get_segment_at(): aieee, no matching segment for position %0.15f"), pos);
return NULL; /* To shut up -Wall */
} /* seg_get_segment_at */

View File

@ -168,6 +168,9 @@
#include "session.h"
#include "gradient_header.h"
#include "config.h"
#include "libgimp/gimpintl.h"
/***** Magic numbers *****/
#ifndef M_PI
@ -395,17 +398,17 @@ gradient_t *grad_default_gradient = NULL;
gradient_editor_t *g_editor = NULL; /* The gradient editor */
static char *blending_types[] = {
"Linear",
"Curved",
"Sinusoidal",
"Spherical (increasing)",
"Spherical (decreasing)"
N_("Linear"),
N_("Curved"),
N_("Sinusoidal"),
N_("Spherical (increasing)"),
N_("Spherical (decreasing)")
}; /* blending_types */
static char *coloring_types[] = {
"Plain RGB",
"HSV (counter-clockwise hue)",
"HSV (clockwise hue)"
N_("Plain RGB"),
N_("HSV (counter-clockwise hue)"),
N_("HSV (clockwise hue)")
}; /* coloring_types */
@ -426,7 +429,7 @@ gradients_init(int no_data)
curr_gradient = (gradient_t *) gradients_list->data;
else {
curr_gradient = grad_create_default_gradient();
curr_gradient->name = g_strdup("Default");
curr_gradient->name = g_strdup(_("Default"));
curr_gradient->filename = build_user_filename(curr_gradient->name, gradient_path);
curr_gradient->dirty = FALSE;
@ -502,7 +505,7 @@ grad_get_color_at(double pos, double *r, double *g, double *b, double *a)
default:
grad_dump_gradient(curr_gradient, stderr);
fatal_error("grad_get_color_at(): aieee, unknown gradient type %d", (int) seg->type);
fatal_error(_("grad_get_color_at(): aieee, unknown gradient type %d"), (int) seg->type);
factor = 0.0; /* Shut up -Wall */
break;
} /* switch */
@ -555,7 +558,7 @@ grad_get_color_at(double pos, double *r, double *g, double *b, double *a)
default:
grad_dump_gradient(curr_gradient, stderr);
fatal_error("grad_get_color_at(): aieee, unknown coloring mode %d",
fatal_error(_("grad_get_color_at(): aieee, unknown coloring mode %d"),
(int) seg->color);
break;
} /* switch */
@ -617,7 +620,7 @@ grad_create_gradient_editor_init(gint need_show)
g_editor->shell = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_wmclass (GTK_WINDOW(g_editor->shell), "gradient_editor", "Gimp");
gtk_container_border_width(GTK_CONTAINER(g_editor->shell), 0);
gtk_window_set_title(GTK_WINDOW(g_editor->shell), "Gradient Editor");
gtk_window_set_title(GTK_WINDOW(g_editor->shell), _("Gradient Editor"));
/* handle window manager close signals */
gtk_signal_connect (GTK_OBJECT (g_editor->shell), "delete_event",
@ -646,7 +649,7 @@ grad_create_gradient_editor_init(gint need_show)
GTK_EXPAND | GTK_FILL, GTK_FILL, 8, 2);
gtk_widget_show(g_editor->hint_label);
button = ed_create_button("Close", 0.5, 0.5, (GtkSignalFunc) ed_close_callback, NULL);
button = ed_create_button(N_("Close"), 0.5, 0.5, (GtkSignalFunc) ed_close_callback, NULL);
gtk_widget_set_usize(button, GRAD_CLOSE_BUTTON_WIDTH, 0);
gtk_table_attach(GTK_TABLE(table), button, 1, 2, 0, 2, GTK_FILL, GTK_EXPAND | GTK_FILL, 8, 0);
gtk_widget_show(button);
@ -660,7 +663,7 @@ grad_create_gradient_editor_init(gint need_show)
/* Gradients list box */
label = gtk_label_new("Gradients");
label = gtk_label_new(_("Gradients: "));
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
gtk_widget_show(label);
@ -680,8 +683,8 @@ grad_create_gradient_editor_init(gint need_show)
gtk_clist_set_row_height(GTK_CLIST(g_editor->clist), 18);
gtk_clist_set_column_width(GTK_CLIST(g_editor->clist), 0, 52);
gtk_clist_set_column_title(GTK_CLIST(g_editor->clist), 0, "Gradient");
gtk_clist_set_column_title(GTK_CLIST(g_editor->clist), 1, "Name");
gtk_clist_set_column_title(GTK_CLIST(g_editor->clist), 0, _("Gradient"));
gtk_clist_set_column_title(GTK_CLIST(g_editor->clist), 1, _("Name"));
gtk_clist_column_titles_show(GTK_CLIST(g_editor->clist));
gtk_box_pack_start(GTK_BOX(hbox), scrolled_win, TRUE, TRUE, 0);
@ -710,37 +713,37 @@ grad_create_gradient_editor_init(gint need_show)
/* Buttons for gradient functions */
button = ed_create_button("New gradient", 0.0, 0.5,
button = ed_create_button(N_("New gradient"), 0.0, 0.5,
(GtkSignalFunc) ed_new_gradient_callback, NULL);
gtk_box_pack_start(GTK_BOX(gvbox), button, TRUE, TRUE, 0);
gtk_widget_show(button);
button = ed_create_button("Copy gradient", 0.0, 0.5,
button = ed_create_button(N_("Copy gradient"), 0.0, 0.5,
(GtkSignalFunc) ed_copy_gradient_callback, NULL);
gtk_box_pack_start(GTK_BOX(gvbox), button, TRUE, TRUE, 0);
gtk_widget_show(button);
button = ed_create_button("Delete gradient", 0.0, 0.5,
button = ed_create_button(N_("Delete gradient"), 0.0, 0.5,
(GtkSignalFunc) ed_delete_gradient_callback, NULL);
gtk_box_pack_start(GTK_BOX(gvbox), button, TRUE, TRUE, 0);
gtk_widget_show(button);
button = ed_create_button("Save as POV-Ray", 0.0, 0.5,
button = ed_create_button(N_("Save as POV-Ray"), 0.0, 0.5,
(GtkSignalFunc) ed_save_pov_callback, NULL);
gtk_box_pack_start(GTK_BOX(gvbox), button, TRUE, TRUE, 0);
gtk_widget_show(button);
button = ed_create_button("Save Gradients", 0.0, 0.5,
button = ed_create_button(N_("Save Gradients"), 0.0, 0.5,
(GtkSignalFunc) ed_save_grads_callback, NULL);
gtk_box_pack_start(GTK_BOX(gvbox), button, TRUE, TRUE, 0);
gtk_widget_show(button);
button = ed_create_button("Rename Gradient", 0.0, 0.5,
button = ed_create_button(N_("Rename Gradient"), 0.0, 0.5,
(GtkSignalFunc) ed_rename_grads_callback, NULL);
gtk_box_pack_start(GTK_BOX(gvbox), button, TRUE, TRUE, 0);
gtk_widget_show(button);
button = ed_create_button("Refresh gradients", 0.0, 0.5,
button = ed_create_button(N_("Refresh gradients"), 0.0, 0.5,
(GtkSignalFunc) ed_refresh_callback, NULL);
gtk_box_pack_start(GTK_BOX(gvbox), button, TRUE, TRUE, 0);
gtk_widget_show(button);
@ -754,15 +757,15 @@ grad_create_gradient_editor_init(gint need_show)
/* Zoom buttons */
button = ed_create_button("Zoom all", 0.5, 0.5, (GtkSignalFunc) ed_zoom_all_callback, g_editor);
button = ed_create_button(N_("Zoom all"), 0.5, 0.5, (GtkSignalFunc) ed_zoom_all_callback, g_editor);
gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0);
gtk_widget_show(button);
button = ed_create_button("Zoom -", 0.5, 0.5, (GtkSignalFunc) ed_zoom_out_callback, g_editor);
button = ed_create_button(N_("Zoom -"), 0.5, 0.5, (GtkSignalFunc) ed_zoom_out_callback, g_editor);
gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0);
gtk_widget_show(button);
button = ed_create_button("Zoom +", 0.5, 0.5, (GtkSignalFunc) ed_zoom_in_callback, g_editor);
button = ed_create_button(N_("Zoom +"), 0.5, 0.5, (GtkSignalFunc) ed_zoom_in_callback, g_editor);
gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0);
gtk_widget_show(button);
@ -791,7 +794,7 @@ grad_create_gradient_editor_init(gint need_show)
g_editor->instant_update = 1;
button = gtk_check_button_new_with_label("Instant update");
button = gtk_check_button_new_with_label(_("Instant update"));
gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0);
gtk_signal_connect(GTK_OBJECT(button), "toggled",
(GtkSignalFunc) ed_instant_update_update,
@ -964,7 +967,7 @@ ed_create_button(gchar *label, double xalign, double yalign, GtkSignalFunc signa
GtkWidget *text;
button = gtk_button_new();
text = gtk_label_new(label);
text = gtk_label_new(gettext(label));
gtk_misc_set_alignment(GTK_MISC(text), xalign, yalign);
gtk_container_add(GTK_CONTAINER(button), text);
@ -1251,9 +1254,9 @@ ed_close_callback(GtkWidget *widget, gpointer client_data)
static void
ed_new_gradient_callback(GtkWidget *widget, gpointer client_data)
{
query_string_box("New gradient",
"Enter a name for the new gradient",
"untitled",
query_string_box(_("New gradient"),
_("Enter a name for the new gradient"),
_("untitled"),
ed_do_new_gradient_callback, NULL);
} /* ed_new_gradient_callback */
@ -1270,7 +1273,7 @@ ed_do_new_gradient_callback(GtkWidget *widget, gpointer client_data, gpointer ca
gradient_name = (char *) call_data;
if (!gradient_name) {
g_message ("ed_do_new_gradient_callback(): oops, received NULL in call_data");
g_message (_("ed_do_new_gradient_callback(): oops, received NULL in call_data"));
return;
} /* if */
@ -1309,7 +1312,7 @@ ed_do_rename_gradient_callback(GtkWidget *widget, gpointer client_data, gpointer
gradient_name = (char *) call_data;
if (!gradient_name) {
g_message ("ed_do_rename_gradient_callback(): oops, received NULL in call_data");
g_message (_("ed_do_rename_gradient_callback(): oops, received NULL in call_data"));
return;
} /* if */
@ -1327,7 +1330,7 @@ ed_do_rename_gradient_callback(GtkWidget *widget, gpointer client_data, gpointer
} /* while */
if (!grad || !grad_list) {
g_message ("ed_do_rename_gradient_callback(): oops, can't find gradient to rename");
g_message (_("ed_do_rename_gradient_callback(): oops, can't find gradient to rename"));
return;
} /* if */
@ -1360,10 +1363,10 @@ ed_copy_gradient_callback(GtkWidget *widget, gpointer client_data)
name = g_malloc((strlen(curr_gradient->name) + 6) * sizeof(char));
sprintf(name, "%s copy", curr_gradient->name);
sprintf(name, _("%s copy"), curr_gradient->name);
query_string_box("Copy gradient",
"Enter a name for the copied gradient",
query_string_box(_("Copy gradient"),
_("Enter a name for the copied gradient"),
name,
ed_do_copy_gradient_callback, NULL);
@ -1384,7 +1387,7 @@ ed_do_copy_gradient_callback(GtkWidget *widget, gpointer client_data, gpointer c
gradient_name = (char *) call_data;
if (!gradient_name) {
g_message ("ed_do_copy_gradient_callback(): oops, received NULL in call_data");
g_message (_("ed_do_copy_gradient_callback(): oops, received NULL in call_data"));
return;
} /* if */
@ -1449,7 +1452,7 @@ ed_delete_gradient_callback(GtkWidget *widget, gpointer client_data)
return;
dialog = gtk_dialog_new();
gtk_window_set_title(GTK_WINDOW(dialog), "Delete gradient");
gtk_window_set_title(GTK_WINDOW(dialog), _("Delete gradient"));
gtk_window_position(GTK_WINDOW(dialog), GTK_WIN_POS_MOUSE);
gtk_container_border_width(GTK_CONTAINER(dialog), 0);
@ -1461,13 +1464,13 @@ ed_delete_gradient_callback(GtkWidget *widget, gpointer client_data)
/* Question */
label = gtk_label_new("Are you sure you want to delete");
label = gtk_label_new(_("Are you sure you want to delete"));
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
gtk_widget_show(label);
str = g_malloc((strlen(curr_gradient->name) + 32 * sizeof(char)));
sprintf(str, "\"%s\" from the list and from disk?", curr_gradient->name);
sprintf(str, _("\"%s\" from the list and from disk?"), curr_gradient->name);
label = gtk_label_new(str);
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
@ -1478,7 +1481,7 @@ ed_delete_gradient_callback(GtkWidget *widget, gpointer client_data)
/* Buttons */
button = ed_create_button("Delete", 0.5, 0.5,
button = ed_create_button(N_("Delete"), 0.5, 0.5,
(GtkSignalFunc) ed_do_delete_gradient_callback,
(gpointer) dialog);
GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
@ -1487,7 +1490,7 @@ ed_delete_gradient_callback(GtkWidget *widget, gpointer client_data)
gtk_widget_grab_default(button);
gtk_widget_show(button);
button = ed_create_button("Cancel", 0.5, 0.5,
button = ed_create_button(N_("Cancel"), 0.5, 0.5,
(GtkSignalFunc) ed_cancel_delete_gradient_callback,
(gpointer) dialog);
GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
@ -1536,7 +1539,7 @@ ed_do_delete_gradient_callback(GtkWidget *widget, gpointer client_data)
} /* while */
if (tmp == NULL)
fatal_error("ed_do_delete_gradient_callback(): aieee, could not find gradient to delete!");
fatal_error(_("ed_do_delete_gradient_callback(): aieee, could not find gradient to delete!"));
/* Delete gradient from gradients list */
@ -1592,8 +1595,8 @@ ed_rename_grads_callback(GtkWidget *widget, gpointer client_data)
if(curr_gradient == NULL)
return;
query_string_box("Rename gradient",
"Enter a new name for the gradient",
query_string_box(_("Rename gradient"),
_("Enter a new name for the gradient"),
curr_gradient->name,
ed_do_rename_gradient_callback, curr_gradient);
}
@ -1607,7 +1610,7 @@ ed_save_pov_callback(GtkWidget *widget, gpointer client_data)
if (curr_gradient == NULL) return;
window = gtk_file_selection_new("Save as POV-Ray");
window = gtk_file_selection_new(_("Save as POV-Ray"));
gtk_window_position(GTK_WINDOW(window), GTK_WIN_POS_MOUSE);
gtk_signal_connect(GTK_OBJECT(GTK_FILE_SELECTION(window)->ok_button),
@ -1665,7 +1668,7 @@ ed_do_save_pov_callback(GtkWidget *widget, gpointer client_data)
file = fopen(filename, "wb");
if (!file)
g_message ("ed_do_save_pov_callback(): oops, could not open \"%s\"", filename);
g_message (_("ed_do_save_pov_callback(): oops, could not open \"%s\""), filename);
else {
fprintf(file, "/* color_map file created by the GIMP */\n");
fprintf(file, "/* http://www.gimp.org/ */\n");
@ -1727,7 +1730,7 @@ ed_scrollbar_update(GtkAdjustment *adjustment, gpointer data)
{
char str[256];
sprintf(str, "Zoom factor: %d:1 Displaying [%0.6f, %0.6f]",
sprintf(str, _("Zoom factor: %d:1 Displaying [%0.6f, %0.6f]"),
g_editor->zoom_factor, adjustment->value, adjustment->value + adjustment->page_size);
ed_set_hint(str);
@ -1931,10 +1934,10 @@ prev_set_hint(gint x)
calc_rgb_to_hsv(&h, &s, &v);
sprintf(str, "Position: %0.6f "
sprintf(str, _("Position: %0.6f "
"RGB (%0.3f, %0.3f, %0.3f) "
"HSV (%0.3f, %0.3f, %0.3f) "
"Opacity: %0.3f",
"Opacity: %0.3f"),
xpos, r, g, b, h * 360.0, s, v, a);
ed_set_hint(str);
@ -1955,7 +1958,7 @@ prev_set_foreground(gint x)
palette_set_foreground(r * 255.0, g * 255.0, b * 255.0);
sprintf(str, "Foreground color set to RGB (%d, %d, %d) <-> (%0.3f, %0.3f, %0.3f)",
sprintf(str, _("Foreground color set to RGB (%d, %d, %d) <-> (%0.3f, %0.3f, %0.3f)"),
(int) (r * 255.0),
(int) (g * 255.0),
(int) (b * 255.0),
@ -2244,28 +2247,28 @@ control_do_hint(gint x, gint y)
case GRAD_DRAG_LEFT:
if (seg != NULL) {
if (seg->prev != NULL)
ed_set_hint("Drag: move Shift+drag: move & compress");
ed_set_hint(_("Drag: move Shift+drag: move & compress"));
else
ed_set_hint("Click: select Shift+click: extend selection");
ed_set_hint(_("Click: select Shift+click: extend selection"));
} else
ed_set_hint("Click: select Shift+click: extend selection");
ed_set_hint(_("Click: select Shift+click: extend selection"));
break;
case GRAD_DRAG_MIDDLE:
ed_set_hint("Click: select Shift+click: extend selection "
"Drag: move");
ed_set_hint(_("Click: select Shift+click: extend selection "
"Drag: move"));
break;
default:
g_message ("control_do_hint: oops, in_handle is true "
"yet we got handle type %d", (int) handle);
g_message (_("control_do_hint: oops, in_handle is true "
"yet we got handle type %d"), (int) handle);
break;
} /* switch */
} else
ed_set_hint("Click: select Shift+click: extend selection "
"Drag: move Shift+drag: move & compress");
ed_set_hint(_("Click: select Shift+click: extend selection "
"Drag: move Shift+drag: move & compress"));
} /* control_do_hint */
@ -2363,8 +2366,8 @@ control_button_press(gint x, gint y, guint button, guint state)
return;
default:
g_message ("control_button_press(): oops, in_handle is true "
"yet we got handle type %d", (int) handle);
g_message (_("control_button_press(): oops, in_handle is true "
"yet we got handle type %d"), (int) handle);
return;
} /* switch */
else {
@ -2407,7 +2410,7 @@ control_point_in_handle(gint x, gint y, grad_segment_t *seg, control_drag_mode_t
break;
default:
g_message ("control_point_in_handle(): oops, can not handle drag mode %d",
g_message (_("control_point_in_handle(): oops, can not handle drag mode %d"),
(int) handle);
return 0;
} /* switch */
@ -2468,7 +2471,7 @@ control_motion(gint x)
g_editor->control_sel_r,
seg, pos);
sprintf(str, "Handle position: %0.6f", seg->left);
sprintf(str, _("Handle position: %0.6f"), seg->left);
ed_set_hint(str);
break;
@ -2477,7 +2480,7 @@ control_motion(gint x)
pos = control_calc_g_pos(x);
seg->middle = BOUNDS(pos, seg->left + EPSILON, seg->right - EPSILON);
sprintf(str, "Handle position: %0.6f", seg->middle);
sprintf(str, _("Handle position: %0.6f"), seg->middle);
ed_set_hint(str);
break;
@ -2494,14 +2497,14 @@ control_motion(gint x)
g_editor->control_last_gx += delta;
sprintf(str, "Distance: %0.6f",
sprintf(str, _("Distance: %0.6f"),
g_editor->control_last_gx - g_editor->control_orig_pos);
ed_set_hint(str);
break;
default:
fatal_error("control_motion(): aieee, attempt to move bogus handle %d",
fatal_error(_("control_motion(): aieee, attempt to move bogus handle %d"),
(int) g_editor->control_drag_mode);
break;
} /* switch */
@ -2954,7 +2957,7 @@ cpopup_create_main_menu(void)
/* Left endpoint */
menuitem = cpopup_create_color_item(&g_editor->left_color_preview, &label);
gtk_label_set(GTK_LABEL(label), "Left endpoint's color");
gtk_label_set(GTK_LABEL(label), _("Left endpoint's color"));
gtk_signal_connect(GTK_OBJECT(menuitem), "activate",
(GtkSignalFunc) cpopup_set_left_color_callback,
NULL);
@ -2966,11 +2969,11 @@ cpopup_create_main_menu(void)
'L', 0,
GTK_ACCEL_VISIBLE | GTK_ACCEL_LOCKED);
menuitem = gtk_menu_item_new_with_label("Load from");
menuitem = gtk_menu_item_new_with_label(_("Load from"));
g_editor->control_left_load_popup = cpopup_create_load_menu(g_editor->left_load_color_boxes,
g_editor->left_load_labels,
"Left neighbor's right endpoint",
"Right endpoint",
_("Left neighbor's right endpoint"),
_("Right endpoint"),
(GtkSignalFunc)
cpopup_load_left_callback,
'L', GDK_CONTROL_MASK,
@ -2980,7 +2983,7 @@ cpopup_create_main_menu(void)
gtk_menu_append(GTK_MENU(menu), menuitem);
gtk_widget_show(menuitem);
menuitem = gtk_menu_item_new_with_label("Save to");
menuitem = gtk_menu_item_new_with_label(_("Save to"));
g_editor->control_left_save_popup = cpopup_create_save_menu(g_editor->left_save_color_boxes,
g_editor->left_save_labels,
(GtkSignalFunc)
@ -2996,7 +2999,7 @@ cpopup_create_main_menu(void)
gtk_widget_show(menuitem);
menuitem = cpopup_create_color_item(&g_editor->right_color_preview, &label);
gtk_label_set(GTK_LABEL(label), "Right endpoint's color");
gtk_label_set(GTK_LABEL(label), _("Right endpoint's color"));
gtk_signal_connect(GTK_OBJECT(menuitem), "activate",
(GtkSignalFunc) cpopup_set_right_color_callback,
NULL);
@ -3008,11 +3011,11 @@ cpopup_create_main_menu(void)
'R', 0,
GTK_ACCEL_VISIBLE | GTK_ACCEL_LOCKED);
menuitem = gtk_menu_item_new_with_label("Load from");
menuitem = gtk_menu_item_new_with_label(_("Load from"));
g_editor->control_right_load_popup = cpopup_create_load_menu(g_editor->right_load_color_boxes,
g_editor->right_load_labels,
"Right neighbor's left endpoint",
"Left endpoint",
_("Right neighbor's left endpoint"),
_("Left endpoint"),
(GtkSignalFunc)
cpopup_load_right_callback,
'R', GDK_CONTROL_MASK,
@ -3022,7 +3025,7 @@ cpopup_create_main_menu(void)
gtk_menu_append(GTK_MENU(menu), menuitem);
gtk_widget_show(menuitem);
menuitem = gtk_menu_item_new_with_label("Save to");
menuitem = gtk_menu_item_new_with_label(_("Save to"));
g_editor->control_right_save_popup = cpopup_create_save_menu(g_editor->right_save_color_boxes,
g_editor->right_save_labels,
(GtkSignalFunc)
@ -3134,7 +3137,7 @@ cpopup_create_main_menu(void)
gtk_menu_append(GTK_MENU(menu), menuitem);
gtk_widget_show(menuitem);
menuitem = gtk_menu_item_new_with_label("Selection operations");
menuitem = gtk_menu_item_new_with_label(_("Selection operations"));
g_editor->control_sel_ops_popup = cpopup_create_sel_ops_menu();
gtk_menu_item_set_submenu(GTK_MENU_ITEM(menuitem), g_editor->control_sel_ops_popup);
gtk_menu_append(GTK_MENU(menu), menuitem);
@ -3287,42 +3290,42 @@ cpopup_adjust_menus(void)
if (g_editor->control_sel_l == g_editor->control_sel_r) {
gtk_label_set(GTK_LABEL(g_editor->control_blending_label),
"Blending function for segment");
_("Blending function for segment"));
gtk_label_set(GTK_LABEL(g_editor->control_coloring_label),
"Coloring type for segment");
_("Coloring type for segment"));
gtk_label_set(GTK_LABEL(g_editor->control_splitm_label),
"Split segment at midpoint");
_("Split segment at midpoint"));
gtk_label_set(GTK_LABEL(g_editor->control_splitu_label),
"Split segment uniformly");
_("Split segment uniformly"));
gtk_label_set(GTK_LABEL(g_editor->control_delete_label),
"Delete segment");
_("Delete segment"));
gtk_label_set(GTK_LABEL(g_editor->control_recenter_label),
"Re-center segment's midpoint");
_("Re-center segment's midpoint"));
gtk_label_set(GTK_LABEL(g_editor->control_redistribute_label),
"Re-distribute handles in segment");
_("Re-distribute handles in segment"));
gtk_label_set(GTK_LABEL(g_editor->control_flip_label),
"Flip segment");
_("Flip segment"));
gtk_label_set(GTK_LABEL(g_editor->control_replicate_label),
"Replicate segment");
_("Replicate segment"));
} else {
gtk_label_set(GTK_LABEL(g_editor->control_blending_label),
"Blending function for selection");
_("Blending function for selection"));
gtk_label_set(GTK_LABEL(g_editor->control_coloring_label),
"Coloring type for selection");
_("Coloring type for selection"));
gtk_label_set(GTK_LABEL(g_editor->control_splitm_label),
"Split segments at midpoints");
_("Split segments at midpoints"));
gtk_label_set(GTK_LABEL(g_editor->control_splitu_label),
"Split segments uniformly");
_("Split segments uniformly"));
gtk_label_set(GTK_LABEL(g_editor->control_delete_label),
"Delete selection");
_("Delete selection"));
gtk_label_set(GTK_LABEL(g_editor->control_recenter_label),
"Re-center midpoints in selection");
_("Re-center midpoints in selection"));
gtk_label_set(GTK_LABEL(g_editor->control_redistribute_label),
"Re-distribute handles in selection");
_("Re-distribute handles in selection"));
gtk_label_set(GTK_LABEL(g_editor->control_flip_label),
"Flip selection");
_("Flip selection"));
gtk_label_set(GTK_LABEL(g_editor->control_replicate_label),
"Replicate selection");
_("Replicate selection"));
} /* else */
/* Adjust blending and coloring menus */
@ -3634,7 +3637,7 @@ cpopup_create_load_menu(GtkWidget **color_boxes, GtkWidget **labels,
gtk_label_set(GTK_LABEL(labels[0]), label1);
gtk_label_set(GTK_LABEL(labels[1]), label2);
gtk_label_set(GTK_LABEL(labels[2]), "FG color");
gtk_label_set(GTK_LABEL(labels[2]), _("FG color"));
return menu;
} /* cpopup_create_load_menu */
@ -3679,7 +3682,7 @@ cpopup_update_saved_color(int n, double r, double g, double b, double a)
cpopup_render_color_box(GTK_PREVIEW(g_editor->right_save_color_boxes[n]),
r, g, b, a);
sprintf(str, "RGBA (%0.3f, %0.3f, %0.3f, %0.3f)", r, g, b, a);
sprintf(str, _("RGBA (%0.3f, %0.3f, %0.3f, %0.3f)"), r, g, b, a);
gtk_label_set(GTK_LABEL(g_editor->left_load_labels[n + 3]), str);
gtk_label_set(GTK_LABEL(g_editor->left_save_labels[n]), str);
@ -3937,9 +3940,9 @@ cpopup_create_coloring_menu(void)
for (i = 0; i < num_items; i++) {
if (i == (num_items - 1))
menuitem = gtk_radio_menu_item_new_with_label(group, "(Varies)");
menuitem = gtk_radio_menu_item_new_with_label(group, _("(Varies)"));
else
menuitem = gtk_radio_menu_item_new_with_label(group, coloring_types[i]);
menuitem = gtk_radio_menu_item_new_with_label(group, gettext(coloring_types[i]));
group = gtk_radio_menu_item_group(GTK_RADIO_MENU_ITEM(menuitem));
@ -4035,7 +4038,7 @@ cpopup_create_sel_ops_menu(void)
gtk_menu_append(GTK_MENU(menu), menuitem);
gtk_widget_show(menuitem);
menuitem = gtk_menu_item_new_with_label("Blend endpoints' colors");
menuitem = gtk_menu_item_new_with_label(_("Blend endpoints' colors"));
gtk_signal_connect(GTK_OBJECT(menuitem), "activate",
(GtkSignalFunc) cpopup_blend_colors,
NULL);
@ -4048,7 +4051,7 @@ cpopup_create_sel_ops_menu(void)
'B', 0,
GTK_ACCEL_VISIBLE | GTK_ACCEL_LOCKED);
menuitem = gtk_menu_item_new_with_label("Blend endpoints' opacity");
menuitem = gtk_menu_item_new_with_label(_("Blend endpoints' opacity"));
gtk_signal_connect(GTK_OBJECT(menuitem), "activate",
(GtkSignalFunc) cpopup_blend_opacity,
NULL);
@ -4281,7 +4284,7 @@ cpopup_set_left_color_callback(GtkWidget *widget, gpointer data)
g_editor->left_saved_dirty = curr_gradient->dirty;
g_editor->left_saved_segments = cpopup_save_selection();
cpopup_create_color_dialog("Left endpoint color",
cpopup_create_color_dialog(_("Left endpoint color"),
g_editor->control_sel_l->r0,
g_editor->control_sel_l->g0,
g_editor->control_sel_l->b0,
@ -4382,7 +4385,7 @@ cpopup_set_right_color_callback(GtkWidget *widget, gpointer data)
g_editor->right_saved_dirty = curr_gradient->dirty;
g_editor->right_saved_segments = cpopup_save_selection();
cpopup_create_color_dialog("Right endpoint color",
cpopup_create_color_dialog(_("Right endpoint color"),
g_editor->control_sel_r->r1,
g_editor->control_sel_r->g1,
g_editor->control_sel_r->b1,
@ -4515,8 +4518,8 @@ cpopup_split_uniform_callback(GtkWidget *widget, gpointer data)
dialog = gtk_dialog_new();
gtk_window_set_title(GTK_WINDOW(dialog),
(g_editor->control_sel_l == g_editor->control_sel_r) ?
"Split segment uniformly" :
"Split segments uniformly");
_("Split segment uniformly") :
_("Split segments uniformly"));
gtk_window_position(GTK_WINDOW(dialog), GTK_WIN_POS_MOUSE);
gtk_container_border_width(GTK_CONTAINER(dialog), 0);
@ -4528,14 +4531,14 @@ cpopup_split_uniform_callback(GtkWidget *widget, gpointer data)
/* Instructions */
label = gtk_label_new("Please select the number of uniform parts");
label = gtk_label_new(_("Please select the number of uniform parts"));
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
gtk_widget_show(label);
label = gtk_label_new((g_editor->control_sel_l == g_editor->control_sel_r) ?
"in which you want to split the selected segment" :
"in which you want to split the segments in the selection");
_("in which you want to split the selected segment") :
_("in which you want to split the segments in the selection"));
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
gtk_widget_show(label);
@ -4557,7 +4560,7 @@ cpopup_split_uniform_callback(GtkWidget *widget, gpointer data)
/* Buttons */
button = ed_create_button("Split", 0.5, 0.5,
button = ed_create_button(N_("Split"), 0.5, 0.5,
(GtkSignalFunc) cpopup_split_uniform_split_callback,
(gpointer) dialog);
GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
@ -4566,7 +4569,7 @@ cpopup_split_uniform_callback(GtkWidget *widget, gpointer data)
gtk_widget_grab_default(button);
gtk_widget_show(button);
button = ed_create_button("Cancel", 0.5, 0.5,
button = ed_create_button(N_("Cancel"), 0.5, 0.5,
(GtkSignalFunc) cpopup_split_uniform_cancel_callback,
(gpointer) dialog);
GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
@ -4870,8 +4873,8 @@ cpopup_replicate_callback(GtkWidget *widget, gpointer data)
dialog = gtk_dialog_new();
gtk_window_set_title(GTK_WINDOW(dialog),
(g_editor->control_sel_l == g_editor->control_sel_r) ?
"Replicate segment" :
"Replicate selection");
_("Replicate segment") :
_("Replicate selection"));
gtk_window_position(GTK_WINDOW(dialog), GTK_WIN_POS_MOUSE);
gtk_container_border_width(GTK_CONTAINER(dialog), 0);
@ -4883,14 +4886,14 @@ cpopup_replicate_callback(GtkWidget *widget, gpointer data)
/* Instructions */
label = gtk_label_new("Please select the number of times");
label = gtk_label_new(_("Please select the number of times"));
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
gtk_widget_show(label);
label = gtk_label_new((g_editor->control_sel_l == g_editor->control_sel_r) ?
"you want to replicate the selected segment" :
"you want to replicate the selection");
_("you want to replicate the selected segment") :
_("you want to replicate the selection"));
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
gtk_widget_show(label);
@ -4912,7 +4915,7 @@ cpopup_replicate_callback(GtkWidget *widget, gpointer data)
/* Buttons */
button = ed_create_button("Replicate", 0.5, 0.5,
button = ed_create_button(N_("Replicate"), 0.5, 0.5,
(GtkSignalFunc) cpopup_do_replicate_callback,
(gpointer) dialog);
GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
@ -4921,7 +4924,7 @@ cpopup_replicate_callback(GtkWidget *widget, gpointer data)
gtk_widget_grab_default(button);
gtk_widget_show(button);
button = ed_create_button("Cancel", 0.5, 0.5,
button = ed_create_button(N_("Cancel"), 0.5, 0.5,
(GtkSignalFunc) cpopup_replicate_cancel_callback,
(gpointer) dialog);
GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
@ -5423,7 +5426,7 @@ grad_load_gradient(char *filename)
num_segments = atoi(line);
if (num_segments < 1) {
g_message ("grad_load_gradient(): invalid number of segments in \"%s\"", filename);
g_message (_("grad_load_gradient(): invalid number of segments in \"%s\""), filename);
g_free(grad);
return;
} /* if */
@ -5446,9 +5449,9 @@ grad_load_gradient(char *filename)
&(seg->r0), &(seg->g0), &(seg->b0), &(seg->a0),
&(seg->r1), &(seg->g1), &(seg->b1), &(seg->a1),
&type, &color) != 13) {
g_message ("grad_load_gradient(): badly formatted "
g_message (_("grad_load_gradient(): badly formatted "
"gradient segment %d in \"%s\" --- bad things may "
"happen soon", i, filename);
"happen soon"), i, filename);
} else {
seg->type = (grad_type_t) type;
seg->color = (grad_color_t) color;
@ -5480,13 +5483,13 @@ grad_save_gradient(gradient_t *grad, char *filename)
g_assert(grad != NULL);
if (!filename) {
g_message ("grad_save_gradient(): can not save gradient with NULL filename");
g_message (_("grad_save_gradient(): can not save gradient with NULL filename"));
return;
} /* if */
file = fopen(filename, "wb");
if (!file) {
g_message ("grad_save_gradient(): can't open \"%s\"", filename);
g_message (_("grad_save_gradient(): can't open \"%s\""), filename);
return;
} /* if */
@ -5688,7 +5691,7 @@ seg_get_segment_at(gradient_t *grad, double pos)
/* Oops: we should have found a segment, but we didn't */
grad_dump_gradient(curr_gradient, stderr);
fatal_error("seg_get_segment_at(): aieee, no matching segment for position %0.15f", pos);
fatal_error(_("seg_get_segment_at(): aieee, no matching segment for position %0.15f"), pos);
return NULL; /* To shut up -Wall */
} /* seg_get_segment_at */

View File

@ -23,12 +23,12 @@
#include "libgimp/gimpfeatures.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#include "about_dialog.h"
#include "interface.h"
#include "config.h"
#define ANIMATION_STEPS 16
#define ANIMATION_SIZE 2

View File

@ -168,6 +168,9 @@
#include "session.h"
#include "gradient_header.h"
#include "config.h"
#include "libgimp/gimpintl.h"
/***** Magic numbers *****/
#ifndef M_PI
@ -395,17 +398,17 @@ gradient_t *grad_default_gradient = NULL;
gradient_editor_t *g_editor = NULL; /* The gradient editor */
static char *blending_types[] = {
"Linear",
"Curved",
"Sinusoidal",
"Spherical (increasing)",
"Spherical (decreasing)"
N_("Linear"),
N_("Curved"),
N_("Sinusoidal"),
N_("Spherical (increasing)"),
N_("Spherical (decreasing)")
}; /* blending_types */
static char *coloring_types[] = {
"Plain RGB",
"HSV (counter-clockwise hue)",
"HSV (clockwise hue)"
N_("Plain RGB"),
N_("HSV (counter-clockwise hue)"),
N_("HSV (clockwise hue)")
}; /* coloring_types */
@ -426,7 +429,7 @@ gradients_init(int no_data)
curr_gradient = (gradient_t *) gradients_list->data;
else {
curr_gradient = grad_create_default_gradient();
curr_gradient->name = g_strdup("Default");
curr_gradient->name = g_strdup(_("Default"));
curr_gradient->filename = build_user_filename(curr_gradient->name, gradient_path);
curr_gradient->dirty = FALSE;
@ -502,7 +505,7 @@ grad_get_color_at(double pos, double *r, double *g, double *b, double *a)
default:
grad_dump_gradient(curr_gradient, stderr);
fatal_error("grad_get_color_at(): aieee, unknown gradient type %d", (int) seg->type);
fatal_error(_("grad_get_color_at(): aieee, unknown gradient type %d"), (int) seg->type);
factor = 0.0; /* Shut up -Wall */
break;
} /* switch */
@ -555,7 +558,7 @@ grad_get_color_at(double pos, double *r, double *g, double *b, double *a)
default:
grad_dump_gradient(curr_gradient, stderr);
fatal_error("grad_get_color_at(): aieee, unknown coloring mode %d",
fatal_error(_("grad_get_color_at(): aieee, unknown coloring mode %d"),
(int) seg->color);
break;
} /* switch */
@ -617,7 +620,7 @@ grad_create_gradient_editor_init(gint need_show)
g_editor->shell = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_wmclass (GTK_WINDOW(g_editor->shell), "gradient_editor", "Gimp");
gtk_container_border_width(GTK_CONTAINER(g_editor->shell), 0);
gtk_window_set_title(GTK_WINDOW(g_editor->shell), "Gradient Editor");
gtk_window_set_title(GTK_WINDOW(g_editor->shell), _("Gradient Editor"));
/* handle window manager close signals */
gtk_signal_connect (GTK_OBJECT (g_editor->shell), "delete_event",
@ -646,7 +649,7 @@ grad_create_gradient_editor_init(gint need_show)
GTK_EXPAND | GTK_FILL, GTK_FILL, 8, 2);
gtk_widget_show(g_editor->hint_label);
button = ed_create_button("Close", 0.5, 0.5, (GtkSignalFunc) ed_close_callback, NULL);
button = ed_create_button(N_("Close"), 0.5, 0.5, (GtkSignalFunc) ed_close_callback, NULL);
gtk_widget_set_usize(button, GRAD_CLOSE_BUTTON_WIDTH, 0);
gtk_table_attach(GTK_TABLE(table), button, 1, 2, 0, 2, GTK_FILL, GTK_EXPAND | GTK_FILL, 8, 0);
gtk_widget_show(button);
@ -660,7 +663,7 @@ grad_create_gradient_editor_init(gint need_show)
/* Gradients list box */
label = gtk_label_new("Gradients");
label = gtk_label_new(_("Gradients: "));
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
gtk_widget_show(label);
@ -680,8 +683,8 @@ grad_create_gradient_editor_init(gint need_show)
gtk_clist_set_row_height(GTK_CLIST(g_editor->clist), 18);
gtk_clist_set_column_width(GTK_CLIST(g_editor->clist), 0, 52);
gtk_clist_set_column_title(GTK_CLIST(g_editor->clist), 0, "Gradient");
gtk_clist_set_column_title(GTK_CLIST(g_editor->clist), 1, "Name");
gtk_clist_set_column_title(GTK_CLIST(g_editor->clist), 0, _("Gradient"));
gtk_clist_set_column_title(GTK_CLIST(g_editor->clist), 1, _("Name"));
gtk_clist_column_titles_show(GTK_CLIST(g_editor->clist));
gtk_box_pack_start(GTK_BOX(hbox), scrolled_win, TRUE, TRUE, 0);
@ -710,37 +713,37 @@ grad_create_gradient_editor_init(gint need_show)
/* Buttons for gradient functions */
button = ed_create_button("New gradient", 0.0, 0.5,
button = ed_create_button(N_("New gradient"), 0.0, 0.5,
(GtkSignalFunc) ed_new_gradient_callback, NULL);
gtk_box_pack_start(GTK_BOX(gvbox), button, TRUE, TRUE, 0);
gtk_widget_show(button);
button = ed_create_button("Copy gradient", 0.0, 0.5,
button = ed_create_button(N_("Copy gradient"), 0.0, 0.5,
(GtkSignalFunc) ed_copy_gradient_callback, NULL);
gtk_box_pack_start(GTK_BOX(gvbox), button, TRUE, TRUE, 0);
gtk_widget_show(button);
button = ed_create_button("Delete gradient", 0.0, 0.5,
button = ed_create_button(N_("Delete gradient"), 0.0, 0.5,
(GtkSignalFunc) ed_delete_gradient_callback, NULL);
gtk_box_pack_start(GTK_BOX(gvbox), button, TRUE, TRUE, 0);
gtk_widget_show(button);
button = ed_create_button("Save as POV-Ray", 0.0, 0.5,
button = ed_create_button(N_("Save as POV-Ray"), 0.0, 0.5,
(GtkSignalFunc) ed_save_pov_callback, NULL);
gtk_box_pack_start(GTK_BOX(gvbox), button, TRUE, TRUE, 0);
gtk_widget_show(button);
button = ed_create_button("Save Gradients", 0.0, 0.5,
button = ed_create_button(N_("Save Gradients"), 0.0, 0.5,
(GtkSignalFunc) ed_save_grads_callback, NULL);
gtk_box_pack_start(GTK_BOX(gvbox), button, TRUE, TRUE, 0);
gtk_widget_show(button);
button = ed_create_button("Rename Gradient", 0.0, 0.5,
button = ed_create_button(N_("Rename Gradient"), 0.0, 0.5,
(GtkSignalFunc) ed_rename_grads_callback, NULL);
gtk_box_pack_start(GTK_BOX(gvbox), button, TRUE, TRUE, 0);
gtk_widget_show(button);
button = ed_create_button("Refresh gradients", 0.0, 0.5,
button = ed_create_button(N_("Refresh gradients"), 0.0, 0.5,
(GtkSignalFunc) ed_refresh_callback, NULL);
gtk_box_pack_start(GTK_BOX(gvbox), button, TRUE, TRUE, 0);
gtk_widget_show(button);
@ -754,15 +757,15 @@ grad_create_gradient_editor_init(gint need_show)
/* Zoom buttons */
button = ed_create_button("Zoom all", 0.5, 0.5, (GtkSignalFunc) ed_zoom_all_callback, g_editor);
button = ed_create_button(N_("Zoom all"), 0.5, 0.5, (GtkSignalFunc) ed_zoom_all_callback, g_editor);
gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0);
gtk_widget_show(button);
button = ed_create_button("Zoom -", 0.5, 0.5, (GtkSignalFunc) ed_zoom_out_callback, g_editor);
button = ed_create_button(N_("Zoom -"), 0.5, 0.5, (GtkSignalFunc) ed_zoom_out_callback, g_editor);
gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0);
gtk_widget_show(button);
button = ed_create_button("Zoom +", 0.5, 0.5, (GtkSignalFunc) ed_zoom_in_callback, g_editor);
button = ed_create_button(N_("Zoom +"), 0.5, 0.5, (GtkSignalFunc) ed_zoom_in_callback, g_editor);
gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0);
gtk_widget_show(button);
@ -791,7 +794,7 @@ grad_create_gradient_editor_init(gint need_show)
g_editor->instant_update = 1;
button = gtk_check_button_new_with_label("Instant update");
button = gtk_check_button_new_with_label(_("Instant update"));
gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0);
gtk_signal_connect(GTK_OBJECT(button), "toggled",
(GtkSignalFunc) ed_instant_update_update,
@ -964,7 +967,7 @@ ed_create_button(gchar *label, double xalign, double yalign, GtkSignalFunc signa
GtkWidget *text;
button = gtk_button_new();
text = gtk_label_new(label);
text = gtk_label_new(gettext(label));
gtk_misc_set_alignment(GTK_MISC(text), xalign, yalign);
gtk_container_add(GTK_CONTAINER(button), text);
@ -1251,9 +1254,9 @@ ed_close_callback(GtkWidget *widget, gpointer client_data)
static void
ed_new_gradient_callback(GtkWidget *widget, gpointer client_data)
{
query_string_box("New gradient",
"Enter a name for the new gradient",
"untitled",
query_string_box(_("New gradient"),
_("Enter a name for the new gradient"),
_("untitled"),
ed_do_new_gradient_callback, NULL);
} /* ed_new_gradient_callback */
@ -1270,7 +1273,7 @@ ed_do_new_gradient_callback(GtkWidget *widget, gpointer client_data, gpointer ca
gradient_name = (char *) call_data;
if (!gradient_name) {
g_message ("ed_do_new_gradient_callback(): oops, received NULL in call_data");
g_message (_("ed_do_new_gradient_callback(): oops, received NULL in call_data"));
return;
} /* if */
@ -1309,7 +1312,7 @@ ed_do_rename_gradient_callback(GtkWidget *widget, gpointer client_data, gpointer
gradient_name = (char *) call_data;
if (!gradient_name) {
g_message ("ed_do_rename_gradient_callback(): oops, received NULL in call_data");
g_message (_("ed_do_rename_gradient_callback(): oops, received NULL in call_data"));
return;
} /* if */
@ -1327,7 +1330,7 @@ ed_do_rename_gradient_callback(GtkWidget *widget, gpointer client_data, gpointer
} /* while */
if (!grad || !grad_list) {
g_message ("ed_do_rename_gradient_callback(): oops, can't find gradient to rename");
g_message (_("ed_do_rename_gradient_callback(): oops, can't find gradient to rename"));
return;
} /* if */
@ -1360,10 +1363,10 @@ ed_copy_gradient_callback(GtkWidget *widget, gpointer client_data)
name = g_malloc((strlen(curr_gradient->name) + 6) * sizeof(char));
sprintf(name, "%s copy", curr_gradient->name);
sprintf(name, _("%s copy"), curr_gradient->name);
query_string_box("Copy gradient",
"Enter a name for the copied gradient",
query_string_box(_("Copy gradient"),
_("Enter a name for the copied gradient"),
name,
ed_do_copy_gradient_callback, NULL);
@ -1384,7 +1387,7 @@ ed_do_copy_gradient_callback(GtkWidget *widget, gpointer client_data, gpointer c
gradient_name = (char *) call_data;
if (!gradient_name) {
g_message ("ed_do_copy_gradient_callback(): oops, received NULL in call_data");
g_message (_("ed_do_copy_gradient_callback(): oops, received NULL in call_data"));
return;
} /* if */
@ -1449,7 +1452,7 @@ ed_delete_gradient_callback(GtkWidget *widget, gpointer client_data)
return;
dialog = gtk_dialog_new();
gtk_window_set_title(GTK_WINDOW(dialog), "Delete gradient");
gtk_window_set_title(GTK_WINDOW(dialog), _("Delete gradient"));
gtk_window_position(GTK_WINDOW(dialog), GTK_WIN_POS_MOUSE);
gtk_container_border_width(GTK_CONTAINER(dialog), 0);
@ -1461,13 +1464,13 @@ ed_delete_gradient_callback(GtkWidget *widget, gpointer client_data)
/* Question */
label = gtk_label_new("Are you sure you want to delete");
label = gtk_label_new(_("Are you sure you want to delete"));
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
gtk_widget_show(label);
str = g_malloc((strlen(curr_gradient->name) + 32 * sizeof(char)));
sprintf(str, "\"%s\" from the list and from disk?", curr_gradient->name);
sprintf(str, _("\"%s\" from the list and from disk?"), curr_gradient->name);
label = gtk_label_new(str);
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
@ -1478,7 +1481,7 @@ ed_delete_gradient_callback(GtkWidget *widget, gpointer client_data)
/* Buttons */
button = ed_create_button("Delete", 0.5, 0.5,
button = ed_create_button(N_("Delete"), 0.5, 0.5,
(GtkSignalFunc) ed_do_delete_gradient_callback,
(gpointer) dialog);
GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
@ -1487,7 +1490,7 @@ ed_delete_gradient_callback(GtkWidget *widget, gpointer client_data)
gtk_widget_grab_default(button);
gtk_widget_show(button);
button = ed_create_button("Cancel", 0.5, 0.5,
button = ed_create_button(N_("Cancel"), 0.5, 0.5,
(GtkSignalFunc) ed_cancel_delete_gradient_callback,
(gpointer) dialog);
GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
@ -1536,7 +1539,7 @@ ed_do_delete_gradient_callback(GtkWidget *widget, gpointer client_data)
} /* while */
if (tmp == NULL)
fatal_error("ed_do_delete_gradient_callback(): aieee, could not find gradient to delete!");
fatal_error(_("ed_do_delete_gradient_callback(): aieee, could not find gradient to delete!"));
/* Delete gradient from gradients list */
@ -1592,8 +1595,8 @@ ed_rename_grads_callback(GtkWidget *widget, gpointer client_data)
if(curr_gradient == NULL)
return;
query_string_box("Rename gradient",
"Enter a new name for the gradient",
query_string_box(_("Rename gradient"),
_("Enter a new name for the gradient"),
curr_gradient->name,
ed_do_rename_gradient_callback, curr_gradient);
}
@ -1607,7 +1610,7 @@ ed_save_pov_callback(GtkWidget *widget, gpointer client_data)
if (curr_gradient == NULL) return;
window = gtk_file_selection_new("Save as POV-Ray");
window = gtk_file_selection_new(_("Save as POV-Ray"));
gtk_window_position(GTK_WINDOW(window), GTK_WIN_POS_MOUSE);
gtk_signal_connect(GTK_OBJECT(GTK_FILE_SELECTION(window)->ok_button),
@ -1665,7 +1668,7 @@ ed_do_save_pov_callback(GtkWidget *widget, gpointer client_data)
file = fopen(filename, "wb");
if (!file)
g_message ("ed_do_save_pov_callback(): oops, could not open \"%s\"", filename);
g_message (_("ed_do_save_pov_callback(): oops, could not open \"%s\""), filename);
else {
fprintf(file, "/* color_map file created by the GIMP */\n");
fprintf(file, "/* http://www.gimp.org/ */\n");
@ -1727,7 +1730,7 @@ ed_scrollbar_update(GtkAdjustment *adjustment, gpointer data)
{
char str[256];
sprintf(str, "Zoom factor: %d:1 Displaying [%0.6f, %0.6f]",
sprintf(str, _("Zoom factor: %d:1 Displaying [%0.6f, %0.6f]"),
g_editor->zoom_factor, adjustment->value, adjustment->value + adjustment->page_size);
ed_set_hint(str);
@ -1931,10 +1934,10 @@ prev_set_hint(gint x)
calc_rgb_to_hsv(&h, &s, &v);
sprintf(str, "Position: %0.6f "
sprintf(str, _("Position: %0.6f "
"RGB (%0.3f, %0.3f, %0.3f) "
"HSV (%0.3f, %0.3f, %0.3f) "
"Opacity: %0.3f",
"Opacity: %0.3f"),
xpos, r, g, b, h * 360.0, s, v, a);
ed_set_hint(str);
@ -1955,7 +1958,7 @@ prev_set_foreground(gint x)
palette_set_foreground(r * 255.0, g * 255.0, b * 255.0);
sprintf(str, "Foreground color set to RGB (%d, %d, %d) <-> (%0.3f, %0.3f, %0.3f)",
sprintf(str, _("Foreground color set to RGB (%d, %d, %d) <-> (%0.3f, %0.3f, %0.3f)"),
(int) (r * 255.0),
(int) (g * 255.0),
(int) (b * 255.0),
@ -2244,28 +2247,28 @@ control_do_hint(gint x, gint y)
case GRAD_DRAG_LEFT:
if (seg != NULL) {
if (seg->prev != NULL)
ed_set_hint("Drag: move Shift+drag: move & compress");
ed_set_hint(_("Drag: move Shift+drag: move & compress"));
else
ed_set_hint("Click: select Shift+click: extend selection");
ed_set_hint(_("Click: select Shift+click: extend selection"));
} else
ed_set_hint("Click: select Shift+click: extend selection");
ed_set_hint(_("Click: select Shift+click: extend selection"));
break;
case GRAD_DRAG_MIDDLE:
ed_set_hint("Click: select Shift+click: extend selection "
"Drag: move");
ed_set_hint(_("Click: select Shift+click: extend selection "
"Drag: move"));
break;
default:
g_message ("control_do_hint: oops, in_handle is true "
"yet we got handle type %d", (int) handle);
g_message (_("control_do_hint: oops, in_handle is true "
"yet we got handle type %d"), (int) handle);
break;
} /* switch */
} else
ed_set_hint("Click: select Shift+click: extend selection "
"Drag: move Shift+drag: move & compress");
ed_set_hint(_("Click: select Shift+click: extend selection "
"Drag: move Shift+drag: move & compress"));
} /* control_do_hint */
@ -2363,8 +2366,8 @@ control_button_press(gint x, gint y, guint button, guint state)
return;
default:
g_message ("control_button_press(): oops, in_handle is true "
"yet we got handle type %d", (int) handle);
g_message (_("control_button_press(): oops, in_handle is true "
"yet we got handle type %d"), (int) handle);
return;
} /* switch */
else {
@ -2407,7 +2410,7 @@ control_point_in_handle(gint x, gint y, grad_segment_t *seg, control_drag_mode_t
break;
default:
g_message ("control_point_in_handle(): oops, can not handle drag mode %d",
g_message (_("control_point_in_handle(): oops, can not handle drag mode %d"),
(int) handle);
return 0;
} /* switch */
@ -2468,7 +2471,7 @@ control_motion(gint x)
g_editor->control_sel_r,
seg, pos);
sprintf(str, "Handle position: %0.6f", seg->left);
sprintf(str, _("Handle position: %0.6f"), seg->left);
ed_set_hint(str);
break;
@ -2477,7 +2480,7 @@ control_motion(gint x)
pos = control_calc_g_pos(x);
seg->middle = BOUNDS(pos, seg->left + EPSILON, seg->right - EPSILON);
sprintf(str, "Handle position: %0.6f", seg->middle);
sprintf(str, _("Handle position: %0.6f"), seg->middle);
ed_set_hint(str);
break;
@ -2494,14 +2497,14 @@ control_motion(gint x)
g_editor->control_last_gx += delta;
sprintf(str, "Distance: %0.6f",
sprintf(str, _("Distance: %0.6f"),
g_editor->control_last_gx - g_editor->control_orig_pos);
ed_set_hint(str);
break;
default:
fatal_error("control_motion(): aieee, attempt to move bogus handle %d",
fatal_error(_("control_motion(): aieee, attempt to move bogus handle %d"),
(int) g_editor->control_drag_mode);
break;
} /* switch */
@ -2954,7 +2957,7 @@ cpopup_create_main_menu(void)
/* Left endpoint */
menuitem = cpopup_create_color_item(&g_editor->left_color_preview, &label);
gtk_label_set(GTK_LABEL(label), "Left endpoint's color");
gtk_label_set(GTK_LABEL(label), _("Left endpoint's color"));
gtk_signal_connect(GTK_OBJECT(menuitem), "activate",
(GtkSignalFunc) cpopup_set_left_color_callback,
NULL);
@ -2966,11 +2969,11 @@ cpopup_create_main_menu(void)
'L', 0,
GTK_ACCEL_VISIBLE | GTK_ACCEL_LOCKED);
menuitem = gtk_menu_item_new_with_label("Load from");
menuitem = gtk_menu_item_new_with_label(_("Load from"));
g_editor->control_left_load_popup = cpopup_create_load_menu(g_editor->left_load_color_boxes,
g_editor->left_load_labels,
"Left neighbor's right endpoint",
"Right endpoint",
_("Left neighbor's right endpoint"),
_("Right endpoint"),
(GtkSignalFunc)
cpopup_load_left_callback,
'L', GDK_CONTROL_MASK,
@ -2980,7 +2983,7 @@ cpopup_create_main_menu(void)
gtk_menu_append(GTK_MENU(menu), menuitem);
gtk_widget_show(menuitem);
menuitem = gtk_menu_item_new_with_label("Save to");
menuitem = gtk_menu_item_new_with_label(_("Save to"));
g_editor->control_left_save_popup = cpopup_create_save_menu(g_editor->left_save_color_boxes,
g_editor->left_save_labels,
(GtkSignalFunc)
@ -2996,7 +2999,7 @@ cpopup_create_main_menu(void)
gtk_widget_show(menuitem);
menuitem = cpopup_create_color_item(&g_editor->right_color_preview, &label);
gtk_label_set(GTK_LABEL(label), "Right endpoint's color");
gtk_label_set(GTK_LABEL(label), _("Right endpoint's color"));
gtk_signal_connect(GTK_OBJECT(menuitem), "activate",
(GtkSignalFunc) cpopup_set_right_color_callback,
NULL);
@ -3008,11 +3011,11 @@ cpopup_create_main_menu(void)
'R', 0,
GTK_ACCEL_VISIBLE | GTK_ACCEL_LOCKED);
menuitem = gtk_menu_item_new_with_label("Load from");
menuitem = gtk_menu_item_new_with_label(_("Load from"));
g_editor->control_right_load_popup = cpopup_create_load_menu(g_editor->right_load_color_boxes,
g_editor->right_load_labels,
"Right neighbor's left endpoint",
"Left endpoint",
_("Right neighbor's left endpoint"),
_("Left endpoint"),
(GtkSignalFunc)
cpopup_load_right_callback,
'R', GDK_CONTROL_MASK,
@ -3022,7 +3025,7 @@ cpopup_create_main_menu(void)
gtk_menu_append(GTK_MENU(menu), menuitem);
gtk_widget_show(menuitem);
menuitem = gtk_menu_item_new_with_label("Save to");
menuitem = gtk_menu_item_new_with_label(_("Save to"));
g_editor->control_right_save_popup = cpopup_create_save_menu(g_editor->right_save_color_boxes,
g_editor->right_save_labels,
(GtkSignalFunc)
@ -3134,7 +3137,7 @@ cpopup_create_main_menu(void)
gtk_menu_append(GTK_MENU(menu), menuitem);
gtk_widget_show(menuitem);
menuitem = gtk_menu_item_new_with_label("Selection operations");
menuitem = gtk_menu_item_new_with_label(_("Selection operations"));
g_editor->control_sel_ops_popup = cpopup_create_sel_ops_menu();
gtk_menu_item_set_submenu(GTK_MENU_ITEM(menuitem), g_editor->control_sel_ops_popup);
gtk_menu_append(GTK_MENU(menu), menuitem);
@ -3287,42 +3290,42 @@ cpopup_adjust_menus(void)
if (g_editor->control_sel_l == g_editor->control_sel_r) {
gtk_label_set(GTK_LABEL(g_editor->control_blending_label),
"Blending function for segment");
_("Blending function for segment"));
gtk_label_set(GTK_LABEL(g_editor->control_coloring_label),
"Coloring type for segment");
_("Coloring type for segment"));
gtk_label_set(GTK_LABEL(g_editor->control_splitm_label),
"Split segment at midpoint");
_("Split segment at midpoint"));
gtk_label_set(GTK_LABEL(g_editor->control_splitu_label),
"Split segment uniformly");
_("Split segment uniformly"));
gtk_label_set(GTK_LABEL(g_editor->control_delete_label),
"Delete segment");
_("Delete segment"));
gtk_label_set(GTK_LABEL(g_editor->control_recenter_label),
"Re-center segment's midpoint");
_("Re-center segment's midpoint"));
gtk_label_set(GTK_LABEL(g_editor->control_redistribute_label),
"Re-distribute handles in segment");
_("Re-distribute handles in segment"));
gtk_label_set(GTK_LABEL(g_editor->control_flip_label),
"Flip segment");
_("Flip segment"));
gtk_label_set(GTK_LABEL(g_editor->control_replicate_label),
"Replicate segment");
_("Replicate segment"));
} else {
gtk_label_set(GTK_LABEL(g_editor->control_blending_label),
"Blending function for selection");
_("Blending function for selection"));
gtk_label_set(GTK_LABEL(g_editor->control_coloring_label),
"Coloring type for selection");
_("Coloring type for selection"));
gtk_label_set(GTK_LABEL(g_editor->control_splitm_label),
"Split segments at midpoints");
_("Split segments at midpoints"));
gtk_label_set(GTK_LABEL(g_editor->control_splitu_label),
"Split segments uniformly");
_("Split segments uniformly"));
gtk_label_set(GTK_LABEL(g_editor->control_delete_label),
"Delete selection");
_("Delete selection"));
gtk_label_set(GTK_LABEL(g_editor->control_recenter_label),
"Re-center midpoints in selection");
_("Re-center midpoints in selection"));
gtk_label_set(GTK_LABEL(g_editor->control_redistribute_label),
"Re-distribute handles in selection");
_("Re-distribute handles in selection"));
gtk_label_set(GTK_LABEL(g_editor->control_flip_label),
"Flip selection");
_("Flip selection"));
gtk_label_set(GTK_LABEL(g_editor->control_replicate_label),
"Replicate selection");
_("Replicate selection"));
} /* else */
/* Adjust blending and coloring menus */
@ -3634,7 +3637,7 @@ cpopup_create_load_menu(GtkWidget **color_boxes, GtkWidget **labels,
gtk_label_set(GTK_LABEL(labels[0]), label1);
gtk_label_set(GTK_LABEL(labels[1]), label2);
gtk_label_set(GTK_LABEL(labels[2]), "FG color");
gtk_label_set(GTK_LABEL(labels[2]), _("FG color"));
return menu;
} /* cpopup_create_load_menu */
@ -3679,7 +3682,7 @@ cpopup_update_saved_color(int n, double r, double g, double b, double a)
cpopup_render_color_box(GTK_PREVIEW(g_editor->right_save_color_boxes[n]),
r, g, b, a);
sprintf(str, "RGBA (%0.3f, %0.3f, %0.3f, %0.3f)", r, g, b, a);
sprintf(str, _("RGBA (%0.3f, %0.3f, %0.3f, %0.3f)"), r, g, b, a);
gtk_label_set(GTK_LABEL(g_editor->left_load_labels[n + 3]), str);
gtk_label_set(GTK_LABEL(g_editor->left_save_labels[n]), str);
@ -3937,9 +3940,9 @@ cpopup_create_coloring_menu(void)
for (i = 0; i < num_items; i++) {
if (i == (num_items - 1))
menuitem = gtk_radio_menu_item_new_with_label(group, "(Varies)");
menuitem = gtk_radio_menu_item_new_with_label(group, _("(Varies)"));
else
menuitem = gtk_radio_menu_item_new_with_label(group, coloring_types[i]);
menuitem = gtk_radio_menu_item_new_with_label(group, gettext(coloring_types[i]));
group = gtk_radio_menu_item_group(GTK_RADIO_MENU_ITEM(menuitem));
@ -4035,7 +4038,7 @@ cpopup_create_sel_ops_menu(void)
gtk_menu_append(GTK_MENU(menu), menuitem);
gtk_widget_show(menuitem);
menuitem = gtk_menu_item_new_with_label("Blend endpoints' colors");
menuitem = gtk_menu_item_new_with_label(_("Blend endpoints' colors"));
gtk_signal_connect(GTK_OBJECT(menuitem), "activate",
(GtkSignalFunc) cpopup_blend_colors,
NULL);
@ -4048,7 +4051,7 @@ cpopup_create_sel_ops_menu(void)
'B', 0,
GTK_ACCEL_VISIBLE | GTK_ACCEL_LOCKED);
menuitem = gtk_menu_item_new_with_label("Blend endpoints' opacity");
menuitem = gtk_menu_item_new_with_label(_("Blend endpoints' opacity"));
gtk_signal_connect(GTK_OBJECT(menuitem), "activate",
(GtkSignalFunc) cpopup_blend_opacity,
NULL);
@ -4281,7 +4284,7 @@ cpopup_set_left_color_callback(GtkWidget *widget, gpointer data)
g_editor->left_saved_dirty = curr_gradient->dirty;
g_editor->left_saved_segments = cpopup_save_selection();
cpopup_create_color_dialog("Left endpoint color",
cpopup_create_color_dialog(_("Left endpoint color"),
g_editor->control_sel_l->r0,
g_editor->control_sel_l->g0,
g_editor->control_sel_l->b0,
@ -4382,7 +4385,7 @@ cpopup_set_right_color_callback(GtkWidget *widget, gpointer data)
g_editor->right_saved_dirty = curr_gradient->dirty;
g_editor->right_saved_segments = cpopup_save_selection();
cpopup_create_color_dialog("Right endpoint color",
cpopup_create_color_dialog(_("Right endpoint color"),
g_editor->control_sel_r->r1,
g_editor->control_sel_r->g1,
g_editor->control_sel_r->b1,
@ -4515,8 +4518,8 @@ cpopup_split_uniform_callback(GtkWidget *widget, gpointer data)
dialog = gtk_dialog_new();
gtk_window_set_title(GTK_WINDOW(dialog),
(g_editor->control_sel_l == g_editor->control_sel_r) ?
"Split segment uniformly" :
"Split segments uniformly");
_("Split segment uniformly") :
_("Split segments uniformly"));
gtk_window_position(GTK_WINDOW(dialog), GTK_WIN_POS_MOUSE);
gtk_container_border_width(GTK_CONTAINER(dialog), 0);
@ -4528,14 +4531,14 @@ cpopup_split_uniform_callback(GtkWidget *widget, gpointer data)
/* Instructions */
label = gtk_label_new("Please select the number of uniform parts");
label = gtk_label_new(_("Please select the number of uniform parts"));
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
gtk_widget_show(label);
label = gtk_label_new((g_editor->control_sel_l == g_editor->control_sel_r) ?
"in which you want to split the selected segment" :
"in which you want to split the segments in the selection");
_("in which you want to split the selected segment") :
_("in which you want to split the segments in the selection"));
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
gtk_widget_show(label);
@ -4557,7 +4560,7 @@ cpopup_split_uniform_callback(GtkWidget *widget, gpointer data)
/* Buttons */
button = ed_create_button("Split", 0.5, 0.5,
button = ed_create_button(N_("Split"), 0.5, 0.5,
(GtkSignalFunc) cpopup_split_uniform_split_callback,
(gpointer) dialog);
GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
@ -4566,7 +4569,7 @@ cpopup_split_uniform_callback(GtkWidget *widget, gpointer data)
gtk_widget_grab_default(button);
gtk_widget_show(button);
button = ed_create_button("Cancel", 0.5, 0.5,
button = ed_create_button(N_("Cancel"), 0.5, 0.5,
(GtkSignalFunc) cpopup_split_uniform_cancel_callback,
(gpointer) dialog);
GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
@ -4870,8 +4873,8 @@ cpopup_replicate_callback(GtkWidget *widget, gpointer data)
dialog = gtk_dialog_new();
gtk_window_set_title(GTK_WINDOW(dialog),
(g_editor->control_sel_l == g_editor->control_sel_r) ?
"Replicate segment" :
"Replicate selection");
_("Replicate segment") :
_("Replicate selection"));
gtk_window_position(GTK_WINDOW(dialog), GTK_WIN_POS_MOUSE);
gtk_container_border_width(GTK_CONTAINER(dialog), 0);
@ -4883,14 +4886,14 @@ cpopup_replicate_callback(GtkWidget *widget, gpointer data)
/* Instructions */
label = gtk_label_new("Please select the number of times");
label = gtk_label_new(_("Please select the number of times"));
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
gtk_widget_show(label);
label = gtk_label_new((g_editor->control_sel_l == g_editor->control_sel_r) ?
"you want to replicate the selected segment" :
"you want to replicate the selection");
_("you want to replicate the selected segment") :
_("you want to replicate the selection"));
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
gtk_widget_show(label);
@ -4912,7 +4915,7 @@ cpopup_replicate_callback(GtkWidget *widget, gpointer data)
/* Buttons */
button = ed_create_button("Replicate", 0.5, 0.5,
button = ed_create_button(N_("Replicate"), 0.5, 0.5,
(GtkSignalFunc) cpopup_do_replicate_callback,
(gpointer) dialog);
GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
@ -4921,7 +4924,7 @@ cpopup_replicate_callback(GtkWidget *widget, gpointer data)
gtk_widget_grab_default(button);
gtk_widget_show(button);
button = ed_create_button("Cancel", 0.5, 0.5,
button = ed_create_button(N_("Cancel"), 0.5, 0.5,
(GtkSignalFunc) cpopup_replicate_cancel_callback,
(gpointer) dialog);
GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
@ -5423,7 +5426,7 @@ grad_load_gradient(char *filename)
num_segments = atoi(line);
if (num_segments < 1) {
g_message ("grad_load_gradient(): invalid number of segments in \"%s\"", filename);
g_message (_("grad_load_gradient(): invalid number of segments in \"%s\""), filename);
g_free(grad);
return;
} /* if */
@ -5446,9 +5449,9 @@ grad_load_gradient(char *filename)
&(seg->r0), &(seg->g0), &(seg->b0), &(seg->a0),
&(seg->r1), &(seg->g1), &(seg->b1), &(seg->a1),
&type, &color) != 13) {
g_message ("grad_load_gradient(): badly formatted "
g_message (_("grad_load_gradient(): badly formatted "
"gradient segment %d in \"%s\" --- bad things may "
"happen soon", i, filename);
"happen soon"), i, filename);
} else {
seg->type = (grad_type_t) type;
seg->color = (grad_color_t) color;
@ -5480,13 +5483,13 @@ grad_save_gradient(gradient_t *grad, char *filename)
g_assert(grad != NULL);
if (!filename) {
g_message ("grad_save_gradient(): can not save gradient with NULL filename");
g_message (_("grad_save_gradient(): can not save gradient with NULL filename"));
return;
} /* if */
file = fopen(filename, "wb");
if (!file) {
g_message ("grad_save_gradient(): can't open \"%s\"", filename);
g_message (_("grad_save_gradient(): can't open \"%s\""), filename);
return;
} /* if */
@ -5688,7 +5691,7 @@ seg_get_segment_at(gradient_t *grad, double pos)
/* Oops: we should have found a segment, but we didn't */
grad_dump_gradient(curr_gradient, stderr);
fatal_error("seg_get_segment_at(): aieee, no matching segment for position %0.15f", pos);
fatal_error(_("seg_get_segment_at(): aieee, no matching segment for position %0.15f"), pos);
return NULL; /* To shut up -Wall */
} /* seg_get_segment_at */

View File

@ -28,6 +28,8 @@
#include "gximage.h"
#include "interface.h"
#include "libgimp/gimpintl.h"
#define MAX_BUF 256
typedef struct _InfoWinData InfoWinData;
@ -45,12 +47,12 @@ struct _InfoWinData
/* The different classes of visuals */
static char *visual_classes[] =
{
"Static Gray",
"Grayscale",
"Static Color",
"Pseudo Color",
"True Color",
"Direct Color",
N_("Static Gray"),
N_("Grayscale"),
N_("Static Color"),
N_("Pseudo Color"),
N_("True Color"),
N_("Direct Color"),
};
@ -117,7 +119,7 @@ info_window_close_callback (GtkWidget *w,
static ActionAreaItem action_items[] =
{
{ "Close", info_window_close_callback, NULL, NULL },
{ N_("Close"), info_window_close_callback, NULL, NULL },
};
InfoDialog *
@ -136,7 +138,7 @@ info_window_create (void *gdisp_ptr)
/* allocate the title buffer */
title_buf = (char *) g_malloc (sizeof (char) * (strlen (title) + 15));
sprintf (title_buf, "%s: Window Info", title);
sprintf (title_buf, _("%s: Window Info"), title);
/* create the info dialog */
info_win = info_dialog_new (title_buf);
@ -153,18 +155,18 @@ info_window_create (void *gdisp_ptr)
iwd->shades_str[0] = '\0';
/* add the information fields */
info_dialog_add_field (info_win, "Dimensions (w x h): ", iwd->dimensions_str, NULL, NULL);
info_dialog_add_field (info_win, "Resolution: ", iwd->resolution_str, NULL, NULL);
info_dialog_add_field (info_win, "Scale Ratio: ", iwd->scale_str, NULL, NULL);
info_dialog_add_field (info_win, "Display Type: ", iwd->color_type_str, NULL, NULL);
info_dialog_add_field (info_win, "Visual Class: ", iwd->visual_class_str, NULL, NULL);
info_dialog_add_field (info_win, "Visual Depth: ", iwd->visual_depth_str, NULL, NULL);
info_dialog_add_field (info_win, _("Dimensions (w x h): "), iwd->dimensions_str, NULL, NULL);
info_dialog_add_field (info_win, _("Resolution: "), iwd->resolution_str, NULL, NULL);
info_dialog_add_field (info_win, _("Scale Ratio: "), iwd->scale_str, NULL, NULL);
info_dialog_add_field (info_win, _("Display Type: "), iwd->color_type_str, NULL, NULL);
info_dialog_add_field (info_win, _("Visual Class: "), iwd->visual_class_str, NULL, NULL);
info_dialog_add_field (info_win, _("Visual Depth: "), iwd->visual_depth_str, NULL, NULL);
if (type == RGB)
info_dialog_add_field (info_win, "Shades of Color: ", iwd->shades_str, NULL, NULL);
info_dialog_add_field (info_win, _("Shades of Color: "), iwd->shades_str, NULL, NULL);
else if (type == INDEXED)
info_dialog_add_field (info_win, "Shades: ", iwd->shades_str, NULL, NULL);
info_dialog_add_field (info_win, _("Shades: "), iwd->shades_str, NULL, NULL);
else if (type == GRAY)
info_dialog_add_field (info_win, "Shades of Gray: ", iwd->shades_str, NULL, NULL);
info_dialog_add_field (info_win, _("Shades of Gray: "), iwd->shades_str, NULL, NULL);
/* update the fields */
info_window_update (info_win, gdisp_ptr);
@ -211,11 +213,11 @@ info_window_update (InfoDialog *info_win,
/* color type */
if (type == RGB)
sprintf (iwd->color_type_str, "%s", "RGB Color");
sprintf (iwd->color_type_str, "%s", _("RGB Color"));
else if (type == GRAY)
sprintf (iwd->color_type_str, "%s", "Grayscale");
sprintf (iwd->color_type_str, "%s", _("Grayscale"));
else if (type == INDEXED)
sprintf (iwd->color_type_str, "%s", "Indexed Color");
sprintf (iwd->color_type_str, "%s", _("Indexed Color"));
/* visual class */
if (type == RGB ||

View File

@ -43,6 +43,8 @@
#include "session.h"
#include "undo.h"
#include "libgimp/gimpintl.h"
#include "tools/eye.xbm"
#include "tools/linked.xbm"
#include "tools/layer.xbm"
@ -217,41 +219,41 @@ static int suspend_gimage_notify = 0;
static MenuItem layers_ops[] =
{
{ "New Layer", 'N', GDK_CONTROL_MASK,
{ N_("New Layer"), 'N', GDK_CONTROL_MASK,
layers_dialog_new_layer_callback, NULL, NULL, NULL },
{ "Raise Layer", 'F', GDK_CONTROL_MASK,
{ N_("Raise Layer"), 'F', GDK_CONTROL_MASK,
layers_dialog_raise_layer_callback, NULL, NULL, NULL },
{ "Lower Layer", 'B', GDK_CONTROL_MASK,
{ N_("Lower Layer"), 'B', GDK_CONTROL_MASK,
layers_dialog_lower_layer_callback, NULL, NULL, NULL },
{ "Duplicate Layer", 'C', GDK_CONTROL_MASK,
{ N_("Duplicate Layer"), 'C', GDK_CONTROL_MASK,
layers_dialog_duplicate_layer_callback, NULL, NULL, NULL },
{ "Delete Layer", 'X', GDK_CONTROL_MASK,
{ N_("Delete Layer"), 'X', GDK_CONTROL_MASK,
layers_dialog_delete_layer_callback, NULL, NULL, NULL },
{ "Scale Layer", 'S', GDK_CONTROL_MASK,
{ N_("Scale Layer"), 'S', GDK_CONTROL_MASK,
layers_dialog_scale_layer_callback, NULL, NULL, NULL },
{ "Resize Layer", 'R', GDK_CONTROL_MASK,
{ N_("Resize Layer"), 'R', GDK_CONTROL_MASK,
layers_dialog_resize_layer_callback, NULL, NULL, NULL },
{ "Add Layer Mask", 0, 0,
{ N_("Add Layer Mask"), 0, 0,
layers_dialog_add_layer_mask_callback, NULL, NULL, NULL },
{ "Apply Layer Mask", 0, 0,
{ N_("Apply Layer Mask"), 0, 0,
layers_dialog_apply_layer_mask_callback, NULL, NULL, NULL },
{ "Anchor Layer", 'H', GDK_CONTROL_MASK,
{ N_("Anchor Layer"), 'H', GDK_CONTROL_MASK,
layers_dialog_anchor_layer_callback, NULL, NULL, NULL },
{ "Merge Visible Layers", 'M', GDK_CONTROL_MASK,
{ N_("Merge Visible Layers"), 'M', GDK_CONTROL_MASK,
layers_dialog_merge_layers_callback, NULL, NULL, NULL },
{ "Merge Down", 'M', GDK_CONTROL_MASK,
{ N_("Merge Down"), 'M', GDK_CONTROL_MASK,
layers_dialog_merge_down_callback, NULL, NULL, NULL },
{ "Flatten Image", 0, 0,
{ N_("Flatten Image"), 0, 0,
layers_dialog_flatten_image_callback, NULL, NULL, NULL },
{ "Alpha To Selection", 0, 0,
{ N_("Alpha To Selection"), 0, 0,
layers_dialog_alpha_select_callback, NULL, NULL, NULL },
{ "Mask To Selection", 0, 0,
{ N_("Mask To Selection"), 0, 0,
layers_dialog_mask_select_callback, NULL, NULL, NULL },
{ "Add Alpha Channel", 0, 0,
{ N_("Add Alpha Channel"), 0, 0,
layers_dialog_add_alpha_channel_callback, NULL, NULL, NULL },
{ "Layer to Top", 'T', GDK_CONTROL_MASK,
{ N_("Layer to Top"), 'T', GDK_CONTROL_MASK,
layers_dialog_raise_layer_to_top_callback, NULL, NULL, NULL },
{ "Layer to Bottom", 'U', GDK_CONTROL_MASK,
{ N_("Layer to Bottom"), 'U', GDK_CONTROL_MASK,
layers_dialog_lower_layer_to_bottom_callback, NULL, NULL, NULL },
{ NULL, 0, 0, NULL, NULL, NULL, NULL },
};
@ -259,33 +261,33 @@ static MenuItem layers_ops[] =
/* 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 },
{ "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_("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 ops buttons */
static OpsButton layers_ops_buttons[] =
{
{ new_xpm, layers_dialog_new_layer_callback, "New Layer", NULL },
{ raise_xpm, layers_dialog_raise_layer_callback, "Raise Layer", NULL },
{ lower_xpm, layers_dialog_lower_layer_callback, "Lower Layer", NULL },
{ duplicate_xpm, layers_dialog_duplicate_layer_callback, "Duplicate Layer", NULL },
{ delete_xpm, layers_dialog_delete_layer_callback, "Delete Layer", NULL },
{ anchor_xpm, layers_dialog_anchor_layer_callback, "Anchor Layer", NULL },
{ new_xpm, layers_dialog_new_layer_callback, N_("New Layer"), NULL },
{ raise_xpm, layers_dialog_raise_layer_callback, N_("Raise Layer"), NULL },
{ lower_xpm, layers_dialog_lower_layer_callback, N_("Lower Layer"), NULL },
{ duplicate_xpm, layers_dialog_duplicate_layer_callback, N_("Duplicate Layer"), NULL },
{ delete_xpm, layers_dialog_delete_layer_callback, N_("Delete Layer"), NULL },
{ anchor_xpm, layers_dialog_anchor_layer_callback, N_("Anchor Layer"), NULL },
{ NULL, NULL, NULL, NULL }
};
@ -308,7 +310,7 @@ lc_dialog_create (GimpImage* gimage)
{
lc_shell = gtk_dialog_new ();
gtk_window_set_title (GTK_WINDOW (lc_shell), "Layers & Channels");
gtk_window_set_title (GTK_WINDOW (lc_shell), _("Layers & Channels"));
gtk_window_set_wmclass (GTK_WINDOW (lc_shell), "layers_and_channels", "Gimp");
session_set_window_geometry (lc_shell, &lc_dialog_session_info, TRUE);
gtk_container_border_width (GTK_CONTAINER (GTK_DIALOG (lc_shell)->vbox), 2);
@ -330,7 +332,7 @@ lc_dialog_create (GimpImage* gimage)
gtk_box_pack_start (GTK_BOX(lc_subshell), util_box, FALSE, FALSE, 0);
/* The GIMP image option menu */
label = gtk_label_new ("Image:");
label = gtk_label_new (_("Image:"));
gtk_box_pack_start (GTK_BOX (util_box), label, FALSE, FALSE, 2);
image_option_menu = gtk_option_menu_new ();
image_menu = create_image_menu (&gimage, &default_index, image_menu_callback);
@ -352,13 +354,13 @@ lc_dialog_create (GimpImage* gimage)
notebook = gtk_notebook_new ();
gtk_box_pack_start (GTK_BOX(lc_subshell), notebook, TRUE, TRUE, 0);
label = gtk_label_new ("Layers");
label = gtk_label_new (_("Layers"));
gtk_notebook_append_page (GTK_NOTEBOOK (notebook),
layers_dialog_create (),
label);
gtk_widget_show (label);
label = gtk_label_new ("Channels");
label = gtk_label_new (_("Channels"));
gtk_notebook_append_page (GTK_NOTEBOOK (notebook),
channels_dialog_create (),
label);
@ -371,7 +373,7 @@ lc_dialog_create (GimpImage* gimage)
gtk_container_border_width (GTK_CONTAINER (GTK_DIALOG(lc_shell)->action_area), 1);
/* The close button */
button = gtk_button_new_with_label ("Close");
button = gtk_button_new_with_label (_("Close"));
gtk_box_pack_start (GTK_BOX (GTK_DIALOG(lc_shell)->action_area), button, TRUE, TRUE, 0);
gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
(GtkSignalFunc) lc_dialog_close_callback,
@ -675,7 +677,7 @@ layers_dialog_create ()
layersD->mode_box = util_box = gtk_hbox_new (FALSE, 1);
gtk_box_pack_start (GTK_BOX (vbox), 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 = build_menu (option_items, NULL);
@ -686,7 +688,7 @@ layers_dialog_create ()
gtk_widget_show (layersD->mode_option_menu);
gtk_option_menu_set_menu (GTK_OPTION_MENU (layersD->mode_option_menu), menu);
layersD->preserve_trans = gtk_check_button_new_with_label ("Keep Trans.");
layersD->preserve_trans = gtk_check_button_new_with_label (_("Keep Trans."));
gtk_box_pack_start (GTK_BOX (util_box), layersD->preserve_trans, FALSE, FALSE, 2);
gtk_signal_connect (GTK_OBJECT (layersD->preserve_trans), "toggled",
(GtkSignalFunc) preserve_trans_update,
@ -698,7 +700,7 @@ layers_dialog_create ()
/* Opacity scale */
layersD->opacity_box = util_box = gtk_hbox_new (FALSE, 1);
gtk_box_pack_start (GTK_BOX (vbox), 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);
layersD->opacity_data = GTK_ADJUSTMENT (gtk_adjustment_new (100.0, 0.0, 100.0, 1.0, 1.0, 0.0));
slider = gtk_hscale_new (layersD->opacity_data);
@ -821,7 +823,7 @@ create_image_menu (GimpImage** def,
if (!data.num_items)
{
GtkWidget* menu_item;
menu_item = gtk_menu_item_new_with_label ("none");
menu_item = gtk_menu_item_new_with_label (_("none"));
gtk_container_add (GTK_CONTAINER (data.menu), menu_item);
gtk_widget_show (menu_item);
}
@ -859,7 +861,7 @@ layers_dialog_update (GimpImage* gimage)
layer_widget_delete (lw);
}
if (layersD->layer_widgets)
g_message ("layersD->layer_widgets not empty!");
g_message (_("layersD->layer_widgets not empty!"));
layersD->layer_widgets = NULL;
/* Find the preview extents */
@ -1427,7 +1429,7 @@ paint_mode_menu_get_position (gint mode)
i++;
}
g_message ("Unknown layer mode");
g_message (_("Unknown layer mode"));
return 0;
}
@ -2110,7 +2112,7 @@ create_layer_widget (GImage *gimage,
/* the layer name label */
if (layer_is_floating_sel (layer))
layer_widget->label = gtk_label_new ("Floating Selection");
layer_widget->label = gtk_label_new (_("Floating Selection"));
else
layer_widget->label = gtk_label_new (layer_get_name(layer));
gtk_box_pack_start (GTK_BOX (hbox), layer_widget->label, FALSE, FALSE, 2);
@ -2932,7 +2934,7 @@ layer_widget_layer_flush (GtkWidget *widget,
}
if (layer_is_floating_sel (layer_widget->layer))
name = "Floating Selection";
name = _("Floating Selection");
else
name = layer_get_name(layer_widget->layer);
@ -3049,7 +3051,7 @@ new_layer_query_ok_callback (GtkWidget *w,
}
else
{
g_message ("new_layer_query_ok_callback: could not allocate new layer");
g_message (_("new_layer_query_ok_callback: could not allocate new layer"));
}
}
@ -3125,8 +3127,8 @@ layers_dialog_new_layer_query (GimpImage* gimage)
{
static ActionAreaItem action_items[2] =
{
{ "OK", new_layer_query_ok_callback, NULL, NULL },
{ "Cancel", new_layer_query_cancel_callback, NULL, NULL }
{ N_("OK"), new_layer_query_ok_callback, NULL, NULL },
{ N_("Cancel"), new_layer_query_cancel_callback, NULL, NULL }
};
NewLayerOptions *options;
GtkWidget *vbox;
@ -3140,10 +3142,10 @@ layers_dialog_new_layer_query (GimpImage* gimage)
char size[12];
char *button_names[4] =
{
"Foreground",
"Background",
"White",
"Transparent"
N_("Foreground"),
N_("Background"),
N_("White"),
N_("Transparent")
};
ActionCallback button_callbacks[4] =
{
@ -3161,7 +3163,7 @@ layers_dialog_new_layer_query (GimpImage* gimage)
/* the dialog */
options->query_box = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (options->query_box), "new_layer_options", "Gimp");
gtk_window_set_title (GTK_WINDOW (options->query_box), "New Layer Options");
gtk_window_set_title (GTK_WINDOW (options->query_box), _("New Layer Options"));
gtk_window_position (GTK_WINDOW (options->query_box), GTK_WIN_POS_MOUSE);
/* handle the wm close signal */
@ -3178,7 +3180,7 @@ layers_dialog_new_layer_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 ("Layer name:");
label = gtk_label_new (_("Layer 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);
@ -3188,12 +3190,12 @@ layers_dialog_new_layer_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), (layer_name ? layer_name : "New Layer"));
gtk_entry_set_text (GTK_ENTRY (options->name_entry), (layer_name ? layer_name : _("New Layer")));
gtk_widget_show (options->name_entry);
/* the xsize entry hbox, label and entry */
sprintf (size, "%d", gimage->width);
label = gtk_label_new ("Layer width:");
label = gtk_label_new (_("Layer width: "));
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);
@ -3207,7 +3209,7 @@ layers_dialog_new_layer_query (GimpImage* gimage)
/* the ysize entry hbox, label and entry */
sprintf (size, "%d", gimage->height);
label = gtk_label_new ("Layer height:");
label = gtk_label_new (_("Layer height: "));
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, 0, 1);
@ -3222,7 +3224,7 @@ layers_dialog_new_layer_query (GimpImage* gimage)
gtk_widget_show (table);
/* the radio frame and box */
radio_frame = gtk_frame_new ("Layer Fill Type");
radio_frame = gtk_frame_new (_("Layer Fill Type"));
gtk_box_pack_start (GTK_BOX (vbox), radio_frame, FALSE, FALSE, 0);
radio_box = gtk_vbox_new (FALSE, 1);
@ -3231,7 +3233,7 @@ layers_dialog_new_layer_query (GimpImage* gimage)
/* the radio buttons */
for (i = 0; i < 4; i++)
{
radio_button = gtk_radio_button_new_with_label (group, button_names[i]);
radio_button = gtk_radio_button_new_with_label (group, gettext(button_names[i]));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (radio_button));
gtk_box_pack_start (GTK_BOX (radio_box), radio_button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (radio_button), "toggled",
@ -3324,8 +3326,8 @@ layers_dialog_edit_layer_query (LayerWidget *layer_widget)
{
static ActionAreaItem action_items[2] =
{
{ "OK", edit_layer_query_ok_callback, NULL, NULL },
{ "Cancel", edit_layer_query_cancel_callback, NULL, NULL }
{ N_("OK"), edit_layer_query_ok_callback, NULL, NULL },
{ N_("Cancel"), edit_layer_query_cancel_callback, NULL, NULL }
};
EditLayerOptions *options;
GtkWidget *vbox;
@ -3338,7 +3340,7 @@ layers_dialog_edit_layer_query (LayerWidget *layer_widget)
/* the dialog */
options->query_box = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (options->query_box), "edit_layer_attrributes", "Gimp");
gtk_window_set_title (GTK_WINDOW (options->query_box), "Edit Layer Attributes");
gtk_window_set_title (GTK_WINDOW (options->query_box), _("Edit Layer Attributes"));
gtk_window_position (GTK_WINDOW (options->query_box), GTK_WIN_POS_MOUSE);
/* handle the wm close signal */
@ -3354,14 +3356,14 @@ layers_dialog_edit_layer_query (LayerWidget *layer_widget)
/* the name entry hbox, label and entry */
hbox = gtk_hbox_new (FALSE, 1);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new ("Layer name:");
label = gtk_label_new (_("Layer name: "));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
options->name_entry = gtk_entry_new ();
gtk_box_pack_start (GTK_BOX (hbox), options->name_entry, TRUE, TRUE, 0);
gtk_entry_set_text (GTK_ENTRY (options->name_entry),
((layer_is_floating_sel (layer_widget->layer) ?
"Floating Selection" : layer_get_name(layer_widget->layer))));
_("Floating Selection") : layer_get_name(layer_widget->layer))));
gtk_widget_show (options->name_entry);
gtk_widget_show (hbox);
@ -3464,8 +3466,8 @@ layers_dialog_add_mask_query (Layer *layer)
{
static ActionAreaItem action_items[2] =
{
{ "OK", add_mask_query_ok_callback, NULL, NULL },
{ "Cancel", add_mask_query_cancel_callback, NULL, NULL }
{ N_("OK"), add_mask_query_ok_callback, NULL, NULL },
{ N_("Cancel"), add_mask_query_cancel_callback, NULL, NULL }
};
AddMaskOptions *options;
GtkWidget *vbox;
@ -3477,9 +3479,9 @@ layers_dialog_add_mask_query (Layer *layer)
int i;
char *button_names[3] =
{
"White (Full Opacity)",
"Black (Full Transparency)",
"Layer's Alpha Channel"
N_("White (Full Opacity)"),
N_("Black (Full Transparency)"),
N_("Layer's Alpha Channel")
};
ActionCallback button_callbacks[3] =
{
@ -3496,7 +3498,7 @@ layers_dialog_add_mask_query (Layer *layer)
/* the dialog */
options->query_box = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (options->query_box), "add_mask_options", "Gimp");
gtk_window_set_title (GTK_WINDOW (options->query_box), "Add Mask Options");
gtk_window_set_title (GTK_WINDOW (options->query_box), _("Add Mask Options"));
gtk_window_position (GTK_WINDOW (options->query_box), GTK_WIN_POS_MOUSE);
/* handle the wm close signal */
@ -3510,7 +3512,7 @@ layers_dialog_add_mask_query (Layer *layer)
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (options->query_box)->vbox), vbox, TRUE, TRUE, 0);
/* the name entry hbox, label and entry */
label = gtk_label_new ("Initialize Layer Mask To:");
label = gtk_label_new (_("Initialize Layer Mask To:"));
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
@ -3524,7 +3526,7 @@ layers_dialog_add_mask_query (Layer *layer)
/* the radio buttons */
for (i = 0; i < 3; i++)
{
radio_button = gtk_radio_button_new_with_label (group, button_names[i]);
radio_button = gtk_radio_button_new_with_label (group, gettext(button_names[i]));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (radio_button));
gtk_box_pack_start (GTK_BOX (radio_box), radio_button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (radio_button), "toggled",
@ -3609,9 +3611,9 @@ layers_dialog_apply_mask_query (Layer *layer)
{
static ActionAreaItem action_items[3] =
{
{ "Apply", apply_mask_query_apply_callback, NULL, NULL },
{ "Discard", apply_mask_query_discard_callback, NULL, NULL },
{ "Cancel", apply_mask_query_cancel_callback, NULL, NULL }
{ N_("Apply"), apply_mask_query_apply_callback, NULL, NULL },
{ N_("Discard"), apply_mask_query_discard_callback, NULL, NULL },
{ N_("Cancel"), apply_mask_query_cancel_callback, NULL, NULL }
};
ApplyMaskOptions *options;
GtkWidget *vbox;
@ -3624,7 +3626,7 @@ layers_dialog_apply_mask_query (Layer *layer)
/* the dialog */
options->query_box = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (options->query_box), "layer_mask_options", "Gimp");
gtk_window_set_title (GTK_WINDOW (options->query_box), "Layer Mask Options");
gtk_window_set_title (GTK_WINDOW (options->query_box), _("Layer Mask Options"));
gtk_window_position (GTK_WINDOW (options->query_box), GTK_WIN_POS_MOUSE);
/* handle the wm close signal */
@ -3639,7 +3641,7 @@ layers_dialog_apply_mask_query (Layer *layer)
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (options->query_box)->vbox), vbox, TRUE, TRUE, 0);
/* the name entry hbox, label and entry */
label = gtk_label_new ("Apply layer mask?");
label = gtk_label_new (_("Apply layer mask?"));
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
@ -3702,7 +3704,7 @@ scale_layer_query_ok_callback (GtkWidget *w,
g_free (options);
}
else
g_message ("Invalid width or height. Both must be positive.");
g_message (_("Invalid width or height. Both must be positive."));
}
static void
@ -3732,8 +3734,8 @@ layers_dialog_scale_layer_query (Layer *layer)
{
static ActionAreaItem action_items[3] =
{
{ "OK", scale_layer_query_ok_callback, NULL, NULL },
{ "Cancel", scale_layer_query_cancel_callback, NULL, NULL }
{ N_("OK"), scale_layer_query_ok_callback, NULL, NULL },
{ N_("Cancel"), scale_layer_query_cancel_callback, NULL, NULL }
};
ScaleLayerOptions *options;
GtkWidget *vbox;
@ -3748,7 +3750,7 @@ layers_dialog_scale_layer_query (Layer *layer)
/* the dialog */
options->query_box = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (options->query_box), "scale_layer", "Gimp");
gtk_window_set_title (GTK_WINDOW (options->query_box), "Scale Layer");
gtk_window_set_title (GTK_WINDOW (options->query_box), _("Scale Layer"));
gtk_window_set_policy (GTK_WINDOW (options->query_box), FALSE, FALSE, TRUE);
gtk_window_position (GTK_WINDOW (options->query_box), GTK_WIN_POS_MOUSE);
@ -3823,7 +3825,7 @@ resize_layer_query_ok_callback (GtkWidget *w,
g_free (options);
}
else
g_message ("Invalid width or height. Both must be positive.");
g_message (_("Invalid width or height. Both must be positive."));
}
static void
@ -3853,8 +3855,8 @@ layers_dialog_resize_layer_query (Layer *layer)
{
static ActionAreaItem action_items[3] =
{
{ "OK", resize_layer_query_ok_callback, NULL, NULL },
{ "Cancel", resize_layer_query_cancel_callback, NULL, NULL }
{ N_("OK"), resize_layer_query_ok_callback, NULL, NULL },
{ N_("Cancel"), resize_layer_query_cancel_callback, NULL, NULL }
};
ResizeLayerOptions *options;
GtkWidget *vbox;
@ -3869,7 +3871,7 @@ layers_dialog_resize_layer_query (Layer *layer)
/* the dialog */
options->query_box = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (options->query_box), "resize_layer", "Gimp");
gtk_window_set_title (GTK_WINDOW (options->query_box), "Resize Layer");
gtk_window_set_title (GTK_WINDOW (options->query_box), _("Resize Layer"));
gtk_window_set_policy (GTK_WINDOW (options->query_box), FALSE, TRUE, TRUE);
gtk_window_set_policy (GTK_WINDOW (options->query_box), FALSE, FALSE, TRUE);
gtk_window_position (GTK_WINDOW (options->query_box), GTK_WIN_POS_MOUSE);
@ -3984,8 +3986,8 @@ layers_dialog_layer_merge_query (GImage *gimage,
{
static ActionAreaItem action_items[2] =
{
{ "OK", layer_merge_query_ok_callback, NULL, NULL },
{ "Cancel", layer_merge_query_cancel_callback, NULL, NULL }
{ N_("OK"), layer_merge_query_ok_callback, NULL, NULL },
{ N_("Cancel"), layer_merge_query_cancel_callback, NULL, NULL }
};
LayerMergeOptions *options;
GtkWidget *vbox;
@ -3997,9 +3999,9 @@ layers_dialog_layer_merge_query (GImage *gimage,
int i;
char *button_names[3] =
{
"Expanded as necessary",
"Clipped to image",
"Clipped to bottom layer"
N_("Expanded as necessary"),
N_("Clipped to image"),
N_("Clipped to bottom layer")
};
ActionCallback button_callbacks[3] =
{
@ -4017,7 +4019,7 @@ layers_dialog_layer_merge_query (GImage *gimage,
/* the dialog */
options->query_box = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (options->query_box), "layer_merge_options", "Gimp");
gtk_window_set_title (GTK_WINDOW (options->query_box), "Layer Merge Options");
gtk_window_set_title (GTK_WINDOW (options->query_box), _("Layer Merge Options"));
gtk_window_position (GTK_WINDOW (options->query_box), GTK_WIN_POS_MOUSE);
/* hadle the wm close signal */
@ -4032,9 +4034,9 @@ layers_dialog_layer_merge_query (GImage *gimage,
/* the name entry hbox, label and entry */
if (merge_visible)
label = gtk_label_new ("Final, merged layer should be:");
label = gtk_label_new (_("Final, merged layer should be:"));
else
label = gtk_label_new ("Final, anchored layer should be:");
label = gtk_label_new (_("Final, anchored layer should be:"));
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
@ -4049,7 +4051,7 @@ layers_dialog_layer_merge_query (GImage *gimage,
/* the radio buttons */
for (i = 0; i < 3; i++)
{
radio_button = gtk_radio_button_new_with_label (group, button_names[i]);
radio_button = gtk_radio_button_new_with_label (group, gettext(button_names[i]));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (radio_button));
gtk_box_pack_start (GTK_BOX (radio_box), radio_button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (radio_button), "toggled",

View File

@ -37,6 +37,8 @@
#include "palette.h"
#include "session.h"
#include "libgimp/gimpintl.h"
#define ENTRY_WIDTH 12
#define ENTRY_HEIGHT 10
#define SPACING 1
@ -116,18 +118,18 @@ static int color_select_active = 0; */
static ActionAreaItem action_items[] =
{
{ "New", palette_new_callback, NULL, NULL },
{ "Edit", palette_edit_callback, NULL, NULL },
{ "Delete", palette_delete_callback, NULL, NULL },
{ "Close", palette_close_callback, NULL, NULL },
{ N_("New"), palette_new_callback, NULL, NULL },
{ N_("Edit"), palette_edit_callback, NULL, NULL },
{ N_("Delete"), palette_delete_callback, NULL, NULL },
{ N_("Close"), palette_close_callback, NULL, NULL },
};
static MenuItem palette_ops[] =
{
{ "New Palette", 0, 0, palette_new_entries_callback, NULL, NULL, NULL },
{ "Delete Palette", 0, 0, palette_delete_entries_callback, NULL, NULL, NULL },
{ "Refresh Palettes", 0, 0, palette_refresh_callback, NULL, NULL, NULL },
{ "Close", 0, 0, palette_close_callback, NULL, NULL, NULL },
{ N_("New Palette"), 0, 0, palette_new_entries_callback, NULL, NULL, NULL },
{ N_("Delete Palette"), 0, 0, palette_delete_entries_callback, NULL, NULL, NULL },
{ N_("Refresh Palettes"), 0, 0, palette_refresh_callback, NULL, NULL, NULL },
{ N_("Close"), 0, 0, palette_close_callback, NULL, NULL, NULL },
{ NULL, 0, 0, NULL, NULL, NULL, NULL },
};
@ -175,7 +177,7 @@ palette_create ()
gtk_window_set_wmclass (GTK_WINDOW (palette->shell), "color_palette", "Gimp");
session_set_window_geometry (palette->shell, &palette_session_info, FALSE);
gtk_window_set_policy (GTK_WINDOW (palette->shell), FALSE, FALSE, FALSE);
gtk_window_set_title (GTK_WINDOW (palette->shell), "Color Palette");
gtk_window_set_title (GTK_WINDOW (palette->shell), _("Color Palette"));
vbox = gtk_vbox_new (FALSE, 1);
gtk_container_border_width (GTK_CONTAINER (vbox), 1);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (palette->shell)->vbox), vbox, TRUE, TRUE, 0);
@ -203,7 +205,7 @@ palette_create ()
gtk_menu_item_set_submenu (GTK_MENU_ITEM (menu_bar_item), palette->palette_ops);
arrow_hbox = gtk_hbox_new (FALSE, 1);
gtk_container_add (GTK_CONTAINER (menu_bar_item), arrow_hbox);
label = gtk_label_new ("Ops");
label = gtk_label_new (_("Ops"));
arrow = gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_OUT);
gtk_box_pack_start (GTK_BOX (arrow_hbox), arrow, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (arrow_hbox), label, FALSE, FALSE, 4);
@ -224,7 +226,7 @@ palette_create ()
/* The active color name */
palette->color_name = gtk_entry_new ();
gtk_entry_set_text (GTK_ENTRY (palette->color_name), "Active Color Name");
gtk_entry_set_text (GTK_ENTRY (palette->color_name), _("Active Color Name"));
gtk_box_pack_start (GTK_BOX (vbox), palette->color_name, FALSE, FALSE, 0);
gtk_widget_show (palette->color_name);
@ -480,7 +482,7 @@ palette_create_palette_menu (PaletteP palette,
if (i == 0)
{
menu_item = gtk_menu_item_new_with_label ("none");
menu_item = gtk_menu_item_new_with_label (_("none"));
gtk_container_add (GTK_CONTAINER (palette->menu), menu_item);
gtk_widget_show (menu_item);
@ -614,7 +616,7 @@ palette_entries_save (PaletteEntriesP palette,
/* Open the requested file */
if (! (fp = fopen (filename, "wb")))
{
g_message ("can't save palette \"%s\"\n", filename);
g_message (_("can't save palette \"%s\"\n"), filename);
return;
}
@ -700,7 +702,7 @@ palette_change_color (int r,
switch (state)
{
case COLOR_NEW:
palette->color = palette_add_entry (palette->entries, "Untitled", r, g, b);
palette->color = palette_add_entry (palette->entries, _("Untitled"), r, g, b);
palette_calc_scrollbar (palette);
palette_draw_entries (palette);
@ -832,11 +834,11 @@ palette_new_callback (GtkWidget *w,
{
if (active_color == FOREGROUND)
palette->color =
palette_add_entry (palette->entries, "Untitled",
palette_add_entry (palette->entries, _("Untitled"),
foreground[0], foreground[1], foreground[2]);
else if (active_color == BACKGROUND)
palette->color =
palette_add_entry (palette->entries, "Untitled",
palette_add_entry (palette->entries, _("Untitled"),
background[0], background[1], background[2]);
palette_calc_scrollbar (palette);
@ -950,7 +952,7 @@ static void
palette_new_entries_callback (GtkWidget *w,
gpointer client_data)
{
query_string_box ("New Palette", "Enter a name for new palette", NULL,
query_string_box (_("New Palette"), _("Enter a name for new palette"), NULL,
palette_add_entries_callback, NULL);
}
@ -1347,7 +1349,7 @@ palette_add_entry (PaletteEntriesP entries,
if (name)
entry->name = g_strdup (name);
else
entry->name = g_strdup ("Untitled");
entry->name = g_strdup (_("Untitled"));
entry->position = entries->n_colors;
entries->colors = g_slist_append (entries->colors, entry);
@ -1399,7 +1401,7 @@ palette_delete_entry (PaletteP palette)
}
if (palette->entries->n_colors == 0)
palette->color = palette_add_entry (palette->entries, "Black", 0, 0, 0);
palette->color = palette_add_entry (palette->entries, _("Black"), 0, 0, 0);
palette_calc_scrollbar (palette);
palette_draw_entries (palette);

View File

@ -47,6 +47,7 @@
#include "tools.h"
#include "undo.h"
#include "config.h"
#include "libgimp/gimpintl.h"
typedef struct
@ -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);
@ -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);
@ -961,7 +962,7 @@ file_pref_cmd_callback (GtkWidget *widget,
group = NULL;
for (i = 0; i < ntransparencies; i++)
{
button = gtk_radio_button_new_with_label (group, transparencies[i]);
button = gtk_radio_button_new_with_label (group, gettext(transparencies[i]));
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),
@ -985,7 +986,7 @@ file_pref_cmd_callback (GtkWidget *widget,
group = NULL;
for (i = 0; i < nchecks; i++)
{
button = gtk_radio_button_new_with_label (group, checks[i]);
button = gtk_radio_button_new_with_label (group, gettext(checks[i]));
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),
@ -1186,7 +1187,7 @@ file_pref_cmd_callback (GtkWidget *widget,
menu = gtk_menu_new ();
for (i = 0; i < nmem_size_units; i++)
{
menuitem = gtk_menu_item_new_with_label (mem_size_units[i].label);
menuitem = gtk_menu_item_new_with_label (gettext(mem_size_units[i].label));
gtk_menu_append (GTK_MENU (menu), menuitem);
gtk_signal_connect (GTK_OBJECT (menuitem), "activate",
(GtkSignalFunc) file_prefs_mem_size_unit_callback,
@ -1300,7 +1301,7 @@ file_pref_cmd_callback (GtkWidget *widget,
for (i = 0; i < ndirs; i++)
{
label = gtk_label_new (dirs[i].label);
label = gtk_label_new (gettext(dirs[i].label));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, i, i+1,
GTK_FILL, GTK_FILL, 0, 0);

View File

@ -26,6 +26,7 @@
#include "interface.h"
#include "gimprc.h"
#include "config.h"
#include "libgimp/gimpintl.h"
static void install_run (InstallCallback);

View File

@ -29,6 +29,8 @@
#include "image_map.h"
#include "interface.h"
#include "libgimp/gimpintl.h"
#define HUE_PARTITION_MASK GDK_EXPOSURE_MASK | GDK_ENTER_NOTIFY_MASK
#define TEXT_WIDTH 45
@ -317,7 +319,7 @@ tools_new_hue_saturation ()
/* The tool options */
if (!hue_saturation_options)
hue_saturation_options = tools_register_no_options (HUE_SATURATION, "Hue-Saturation Options");
hue_saturation_options = tools_register_no_options (HUE_SATURATION, _("Hue-Saturation Options"));
tool = (Tool *) g_malloc (sizeof (Tool));
private = (HueSaturation *) g_malloc (sizeof (HueSaturation));
@ -361,7 +363,7 @@ hue_saturation_initialize (GDisplay *gdisp)
if (! drawable_color (gimage_active_drawable (gdisp->gimage)))
{
g_message ("Hue-Saturation operates only on RGB color drawables.");
g_message (_("Hue-Saturation operates only on RGB color drawables."));
return;
}
@ -407,8 +409,8 @@ hue_saturation_free ()
/* the action area structure */
static ActionAreaItem action_items[] =
{
{ "OK", hue_saturation_ok_callback, NULL, NULL },
{ "Cancel", hue_saturation_cancel_callback, NULL, NULL }
{ N_("OK"), hue_saturation_ok_callback, NULL, NULL },
{ N_("Cancel"), hue_saturation_cancel_callback, NULL, NULL }
};
static HueSaturationDialog *
@ -430,13 +432,13 @@ hue_saturation_new_dialog ()
int i;
char *hue_partition_names[7] =
{
"Master",
"R",
"Y",
"G",
"C",
"B",
"M"
N_("Master"),
N_("R"),
N_("Y"),
N_("G"),
N_("C"),
N_("B"),
N_("M")
};
ActionCallback hue_partition_callbacks[7] =
{
@ -456,7 +458,7 @@ hue_saturation_new_dialog ()
/* The shell and main vbox */
hsd->shell = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (hsd->shell), "hue_saturation", "Gimp");
gtk_window_set_title (GTK_WINDOW (hsd->shell), "Hue-Saturation");
gtk_window_set_title (GTK_WINDOW (hsd->shell), _("Hue-Saturation"));
/* handle the wm close signal */
gtk_signal_connect (GTK_OBJECT (hsd->shell), "delete_event",
@ -518,7 +520,7 @@ hue_saturation_new_dialog ()
vbox = gtk_vbox_new (FALSE, 2);
gtk_box_pack_start (GTK_BOX (main_hbox), vbox, FALSE, FALSE, 0);
label = gtk_label_new ("Hue / Lightness / Saturation Adjustments");
label = gtk_label_new (_("Hue / Lightness / Saturation Adjustments"));
gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5);
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
@ -528,7 +530,7 @@ hue_saturation_new_dialog ()
gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, FALSE, 0);
/* Create the hue scale widget */
label = gtk_label_new ("Hue");
label = gtk_label_new (_("Hue"));
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);
@ -562,7 +564,7 @@ hue_saturation_new_dialog ()
/* Create the lightness scale widget */
label = gtk_label_new ("Lightness");
label = gtk_label_new (_("Lightness"));
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);
@ -596,7 +598,7 @@ hue_saturation_new_dialog ()
/* Create the saturation scale widget */
label = gtk_label_new ("Saturation");
label = gtk_label_new (_("Saturation"));
gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 2, 3,
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2);
@ -619,7 +621,7 @@ hue_saturation_new_dialog ()
hsd->saturation_text = gtk_entry_new ();
gtk_widget_set_usize (hsd->saturation_text, TEXT_WIDTH, TEXT_HEIGHT);
gtk_table_attach (GTK_TABLE (table), hsd->saturation_text, 2, 3, 2, 3,
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2);
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 3, 2);
gtk_signal_connect (GTK_OBJECT (hsd->saturation_text), "changed",
(GtkSignalFunc) hue_saturation_saturation_text_update,
hsd);
@ -634,7 +636,7 @@ hue_saturation_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), hsd->preview);
gtk_box_pack_start (GTK_BOX (hbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
@ -731,7 +733,7 @@ static void
hue_saturation_preview (HueSaturationDialog *hsd)
{
if (!hsd->image_map)
g_message ("hue_saturation_preview(): No image map");
g_message (_("hue_saturation_preview(): No image map"));
active_tool->preserve = TRUE;
image_map_apply (hsd->image_map, hue_saturation, (void *) hsd);
active_tool->preserve = FALSE;

View File

@ -29,6 +29,8 @@
#include "tile_manager_pvt.h"
#include "libgimp/gimpintl.h"
#define WAITING 0
#define WORKING 1
@ -278,7 +280,7 @@ image_map_abort (ImageMap image_map)
/* if the user has changed the image depth get out quickly */
if (destPR.bytes != srcPR.bytes)
{
g_message ("image depth change, unable to restore original image");
g_message (_("image depth change, unable to restore original image"));
tile_manager_destroy (_image_map->undo_tiles);
g_free (_image_map);
return;

View File

@ -36,6 +36,8 @@
#include "palette.h"
#include "undo.h"
#include "libgimp/gimpintl.h"
#define EVENT_MASK GDK_BUTTON_PRESS_MASK | GDK_ENTER_NOTIFY_MASK
#define CELL_WIDTH 12
@ -91,12 +93,12 @@ static int color_select_active = 0;
/* the action area structure */
static ActionAreaItem action_items[] =
{
{ "Close", indexed_palette_close_callback, NULL, NULL },
{ N_("Close"), indexed_palette_close_callback, NULL, NULL },
};
static MenuItem indexed_color_ops[] =
{
{ "Close", 'W', GDK_CONTROL_MASK,
{ N_("Close"), 'W', GDK_CONTROL_MASK,
indexed_palette_close_callback, NULL, NULL, NULL },
{ NULL, 0, 0, NULL, NULL, NULL, NULL },
};
@ -135,7 +137,7 @@ indexed_palette_create (GimpImage* gimage)
indexedP->shell = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (indexedP->shell), "indexed_color_palette", "Gimp");
gtk_window_set_policy (GTK_WINDOW (indexedP->shell), FALSE, TRUE, TRUE);
gtk_window_set_title (GTK_WINDOW (indexedP->shell), "Indexed Color Palette");
gtk_window_set_title (GTK_WINDOW (indexedP->shell), _("Indexed Color Palette"));
gtk_window_add_accel_group (GTK_WINDOW (indexedP->shell), accel_group);
gtk_signal_connect (GTK_OBJECT (indexedP->shell), "delete_event",
GTK_SIGNAL_FUNC (gtk_widget_hide_on_delete),
@ -151,7 +153,7 @@ indexed_palette_create (GimpImage* gimage)
gtk_box_pack_start (GTK_BOX (vbox), util_box, FALSE, FALSE, 0);
/* The GIMP image option menu */
label = gtk_label_new ("Image:");
label = gtk_label_new (_("Image:"));
gtk_box_pack_start (GTK_BOX (util_box), label, FALSE, FALSE, 2);
indexedP->image_option_menu = gtk_option_menu_new ();
gtk_box_pack_start (GTK_BOX (util_box), indexedP->image_option_menu, TRUE, TRUE, 2);
@ -172,7 +174,7 @@ indexed_palette_create (GimpImage* gimage)
gtk_menu_item_set_submenu (GTK_MENU_ITEM (menu_bar_item), ops_menu);
arrow_hbox = gtk_hbox_new (FALSE, 1);
gtk_container_add (GTK_CONTAINER (menu_bar_item), arrow_hbox);
label = gtk_label_new ("Ops");
label = gtk_label_new (_("Operations"));
arrow = gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_OUT);
gtk_box_pack_start (GTK_BOX (arrow_hbox), arrow, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (arrow_hbox), label, FALSE, FALSE, 4);
@ -211,7 +213,7 @@ indexed_palette_create (GimpImage* gimage)
/* some helpful hints */
hbox = gtk_hbox_new(FALSE, 1);
gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 1);
label = gtk_label_new (" Click to select color. Right-click to edit color");
label = gtk_label_new (_("Click to select color. Right-click to edit color"));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 1);
gtk_widget_show (hbox);
@ -529,7 +531,7 @@ create_image_menu (GimpImage** def,
if (!data.num_items)
{
GtkWidget* menu_item;
menu_item = gtk_menu_item_new_with_label ("none");
menu_item = gtk_menu_item_new_with_label (_("none"));
gtk_container_add (GTK_CONTAINER (data.menu), menu_item);
gtk_widget_show (menu_item);
}

View File

@ -28,6 +28,8 @@
#include "gximage.h"
#include "interface.h"
#include "libgimp/gimpintl.h"
#define MAX_BUF 256
typedef struct _InfoWinData InfoWinData;
@ -45,12 +47,12 @@ struct _InfoWinData
/* The different classes of visuals */
static char *visual_classes[] =
{
"Static Gray",
"Grayscale",
"Static Color",
"Pseudo Color",
"True Color",
"Direct Color",
N_("Static Gray"),
N_("Grayscale"),
N_("Static Color"),
N_("Pseudo Color"),
N_("True Color"),
N_("Direct Color"),
};
@ -117,7 +119,7 @@ info_window_close_callback (GtkWidget *w,
static ActionAreaItem action_items[] =
{
{ "Close", info_window_close_callback, NULL, NULL },
{ N_("Close"), info_window_close_callback, NULL, NULL },
};
InfoDialog *
@ -136,7 +138,7 @@ info_window_create (void *gdisp_ptr)
/* allocate the title buffer */
title_buf = (char *) g_malloc (sizeof (char) * (strlen (title) + 15));
sprintf (title_buf, "%s: Window Info", title);
sprintf (title_buf, _("%s: Window Info"), title);
/* create the info dialog */
info_win = info_dialog_new (title_buf);
@ -153,18 +155,18 @@ info_window_create (void *gdisp_ptr)
iwd->shades_str[0] = '\0';
/* add the information fields */
info_dialog_add_field (info_win, "Dimensions (w x h): ", iwd->dimensions_str, NULL, NULL);
info_dialog_add_field (info_win, "Resolution: ", iwd->resolution_str, NULL, NULL);
info_dialog_add_field (info_win, "Scale Ratio: ", iwd->scale_str, NULL, NULL);
info_dialog_add_field (info_win, "Display Type: ", iwd->color_type_str, NULL, NULL);
info_dialog_add_field (info_win, "Visual Class: ", iwd->visual_class_str, NULL, NULL);
info_dialog_add_field (info_win, "Visual Depth: ", iwd->visual_depth_str, NULL, NULL);
info_dialog_add_field (info_win, _("Dimensions (w x h): "), iwd->dimensions_str, NULL, NULL);
info_dialog_add_field (info_win, _("Resolution: "), iwd->resolution_str, NULL, NULL);
info_dialog_add_field (info_win, _("Scale Ratio: "), iwd->scale_str, NULL, NULL);
info_dialog_add_field (info_win, _("Display Type: "), iwd->color_type_str, NULL, NULL);
info_dialog_add_field (info_win, _("Visual Class: "), iwd->visual_class_str, NULL, NULL);
info_dialog_add_field (info_win, _("Visual Depth: "), iwd->visual_depth_str, NULL, NULL);
if (type == RGB)
info_dialog_add_field (info_win, "Shades of Color: ", iwd->shades_str, NULL, NULL);
info_dialog_add_field (info_win, _("Shades of Color: "), iwd->shades_str, NULL, NULL);
else if (type == INDEXED)
info_dialog_add_field (info_win, "Shades: ", iwd->shades_str, NULL, NULL);
info_dialog_add_field (info_win, _("Shades: "), iwd->shades_str, NULL, NULL);
else if (type == GRAY)
info_dialog_add_field (info_win, "Shades of Gray: ", iwd->shades_str, NULL, NULL);
info_dialog_add_field (info_win, _("Shades of Gray: "), iwd->shades_str, NULL, NULL);
/* update the fields */
info_window_update (info_win, gdisp_ptr);
@ -211,11 +213,11 @@ info_window_update (InfoDialog *info_win,
/* color type */
if (type == RGB)
sprintf (iwd->color_type_str, "%s", "RGB Color");
sprintf (iwd->color_type_str, "%s", _("RGB Color"));
else if (type == GRAY)
sprintf (iwd->color_type_str, "%s", "Grayscale");
sprintf (iwd->color_type_str, "%s", _("Grayscale"));
else if (type == INDEXED)
sprintf (iwd->color_type_str, "%s", "Indexed Color");
sprintf (iwd->color_type_str, "%s", _("Indexed Color"));
/* visual class */
if (type == RGB ||

View File

@ -27,6 +27,8 @@
#include "blob.h"
#include "gdisplay.h"
#include "libgimp/gimpintl.h"
#include "tile.h" /* ick. */
#include <math.h>
@ -163,14 +165,14 @@ create_ink_options ()
vbox = gtk_vbox_new (FALSE, 1);
/* the main label */
label = gtk_label_new ("Ink Options");
label = gtk_label_new (_("Ink Options"));
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
/* size slider */
hbox = gtk_hbox_new (FALSE, 2);
gtk_box_pack_start (GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new ("Size:");
label = gtk_label_new (_("Size:"));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 2);
adj = GTK_ADJUSTMENT (gtk_adjustment_new (3.0, 0.0, 20.0, 1.0, 5.0, 0.0));
@ -186,7 +188,7 @@ create_ink_options ()
/* sens slider */
hbox = gtk_hbox_new (FALSE, 2);
gtk_box_pack_start (GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new ("Sensitivity:");
label = gtk_label_new (_("Sensitivity:"));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 2);
adj = GTK_ADJUSTMENT (gtk_adjustment_new (1.0, 0.0, 1.0, 0.01, 0.1, 0.0));
@ -206,7 +208,7 @@ create_ink_options ()
hbox = gtk_hbox_new (FALSE, 2);
gtk_box_pack_start (GTK_BOX(vbox), hbox, FALSE, FALSE, 5);
label = gtk_label_new ("Shape:");
label = gtk_label_new (_("Shape:"));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
aspect_frame = gtk_aspect_frame_new (NULL, 0.5, 0.5, 1.0, FALSE);

View File

@ -26,6 +26,7 @@
#include "interface.h"
#include "gimprc.h"
#include "config.h"
#include "libgimp/gimpintl.h"
static void install_run (InstallCallback);

View File

@ -38,6 +38,8 @@
#include "pixmaps.h"
#include "libgimp/gimpintl.h"
/* local functions */
static void tools_select_update (GtkWidget *widget,
gpointer data);
@ -226,9 +228,9 @@ create_color_area (GtkWidget *parent)
col_area = color_area_create (54, 42, default_pixmap, swap_pixmap);
gtk_container_add (GTK_CONTAINER (alignment), col_area);
gtk_tooltips_set_tip (tool_tips, col_area, "Foreground & background colors. The small black "
gtk_tooltips_set_tip (tool_tips, col_area, _("Foreground & background colors. The small black "
"and white squares reset colors. The small arrows swap colors. Double "
"click to change colors.",
"click to change colors."),
NULL);
gtk_widget_show (col_area);
gtk_widget_show (alignment);
@ -312,7 +314,7 @@ create_tools (GtkWidget *parent)
(GtkSignalFunc) tools_button_press,
(gpointer) tool_info[j].tool_id);
gtk_tooltips_set_tip (tool_tips, button, tool_info[j].tool_desc, tool_info[i].private_tip);
gtk_tooltips_set_tip (tool_tips, button, gettext(tool_info[j].tool_desc), tool_info[i].private_tip);
gtk_widget_show (pixmap);
gtk_widget_show (alignment);
@ -441,7 +443,7 @@ create_toolbox ()
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_wmclass (GTK_WINDOW (window), "toolbox", "Gimp");
gtk_window_set_title (GTK_WINDOW (window), "The GIMP");
gtk_window_set_title (GTK_WINDOW (window), _("The GIMP"));
session_set_window_geometry (window, &toolbox_session_info, TRUE);
gtk_signal_connect (GTK_OBJECT (window), "delete_event",
GTK_SIGNAL_FUNC (toolbox_delete),
@ -727,7 +729,7 @@ create_display_shell (GDisplay* gdisp,
gtk_widget_set_usize (gdisp->progressbar, 80, -1);
gtk_box_pack_start (GTK_BOX (gdisp->statusarea), gdisp->progressbar, FALSE, TRUE, 0);
gdisp->cancelbutton = gtk_button_new_with_label("Cancel");
gdisp->cancelbutton = gtk_button_new_with_label(_("Cancel"));
gtk_box_pack_start (GTK_BOX (gdisp->statusarea), gdisp->cancelbutton, FALSE, TRUE, 0);
gtk_widget_set_sensitive (gdisp->cancelbutton, FALSE);
@ -820,7 +822,7 @@ query_string_box (char *title,
gtk_container_border_width (GTK_CONTAINER (GTK_DIALOG (qbox)->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) query_box_ok_callback,
@ -829,7 +831,7 @@ query_string_box (char *title,
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) query_box_cancel_callback,
@ -946,14 +948,14 @@ message_box (char *message,
mbox = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (mbox), "gimp_message", "Gimp");
gtk_window_set_title (GTK_WINDOW (mbox), "GIMP Message");
gtk_window_set_title (GTK_WINDOW (mbox), _("GIMP Message"));
gtk_window_position (GTK_WINDOW (mbox), GTK_WIN_POS_MOUSE);
gtk_container_border_width (GTK_CONTAINER (GTK_DIALOG (mbox)->action_area), 2);
gtk_signal_connect (GTK_OBJECT (mbox), "delete_event",
GTK_SIGNAL_FUNC (message_box_delete_callback),
msg_box);
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) message_box_close_callback,

View File

@ -74,6 +74,7 @@
#include "parasite_cmds.h"
#include "procedural_db.h"
#include "libgimp/gimpintl.h"
void
internal_procs_init ()
@ -82,7 +83,7 @@ internal_procs_init ()
/* grep -c procedural_db_register internal_procs.c */
gfloat total_pcount = 257;
app_init_update_status("Internal Procedures", "Tool procedures",
app_init_update_status(_("Internal Procedures"), _("Tool procedures"),
pcount/total_pcount);
/* Tool procedures */
@ -115,7 +116,7 @@ internal_procs_init ()
procedural_db_register (&text_tool_get_extents_proc_ext); pcount++;
procedural_db_register (&text_tool_get_extents_proc_fontname); pcount++;
app_init_update_status(NULL, "GDisplay procedures",
app_init_update_status(NULL, _("GDisplay procedures"),
pcount/total_pcount);
/* GDisplay procedures */
@ -123,7 +124,7 @@ internal_procs_init ()
procedural_db_register (&gdisplay_delete_proc); pcount++;
procedural_db_register (&gdisplays_flush_proc); pcount++;
app_init_update_status(NULL, "Edit procedures",
app_init_update_status(NULL, _("Edit procedures"),
pcount/total_pcount);
/* Edit procedures */
@ -134,7 +135,7 @@ internal_procs_init ()
procedural_db_register (&edit_fill_proc); pcount++;
procedural_db_register (&edit_stroke_proc); pcount++;
app_init_update_status(NULL, "GImage procedures",
app_init_update_status(NULL, _("GImage procedures"),
pcount/total_pcount);
/* GImage procedures */
@ -199,7 +200,7 @@ internal_procs_init ()
procedural_db_register (&gimp_image_get_layer_by_tattoo_proc); pcount++;
procedural_db_register (&gimp_image_get_channel_by_tattoo_proc); pcount++;
app_init_update_status(NULL, "GImage mask procedures",
app_init_update_status(NULL, _("GImage mask procedures"),
pcount/total_pcount);
/* GImage mask procedures */
@ -221,7 +222,7 @@ internal_procs_init ()
procedural_db_register (&gimage_mask_load_proc); pcount++;
procedural_db_register (&gimage_mask_save_proc); pcount++;
app_init_update_status(NULL, "Layer procedures",
app_init_update_status(NULL, _("Layer procedures"),
pcount/total_pcount);
/* Layer procedures */
@ -256,7 +257,7 @@ internal_procs_init ()
procedural_db_register (&layer_get_linked_proc); pcount++;
procedural_db_register (&layer_set_linked_proc); pcount++;
app_init_update_status(NULL, "Channel procedures",
app_init_update_status(NULL, _("Channel procedures"),
pcount/total_pcount);
/* Channel procedures */
@ -275,7 +276,7 @@ internal_procs_init ()
procedural_db_register (&channel_set_color_proc); pcount++;
procedural_db_register (&channel_get_tattoo_proc); pcount++;
app_init_update_status(NULL, "Drawable procedures",
app_init_update_status(NULL, _("Drawable procedures"),
pcount/total_pcount);
/* Drawable procedures */
@ -303,7 +304,7 @@ internal_procs_init ()
procedural_db_register (&gimp_drawable_attach_parasite_proc); pcount++;
procedural_db_register (&gimp_drawable_detach_parasite_proc); pcount++;
app_init_update_status(NULL, "Floating selections",
app_init_update_status(NULL, _("Floating selections"),
pcount/total_pcount);
/* Floating Selections */
@ -314,14 +315,14 @@ internal_procs_init ()
procedural_db_register (&floating_sel_rigor_proc); pcount++;
procedural_db_register (&floating_sel_relax_proc); pcount++;
app_init_update_status(NULL, "Undo",
app_init_update_status(NULL, _("Undo"),
pcount/total_pcount);
/* Undo */
procedural_db_register (&undo_push_group_start_proc); pcount++;
procedural_db_register (&undo_push_group_end_proc); pcount++;
app_init_update_status(NULL, "Palette",
app_init_update_status(NULL, _("Palette"),
pcount/total_pcount);
/* Palette */
@ -333,7 +334,7 @@ internal_procs_init ()
procedural_db_register (&palette_swap_colors_proc); pcount++;
procedural_db_register (&palette_refresh_proc); pcount++;
app_init_update_status(NULL, "Interface procedures",
app_init_update_status(NULL, _("Interface procedures"),
pcount/total_pcount);
/* Interface procs */
@ -369,7 +370,7 @@ internal_procs_init ()
procedural_db_register (&gradients_set_popup_proc); pcount++;
procedural_db_register (&gradients_get_gradient_data_proc); pcount++;
app_init_update_status(NULL, "Image procedures",
app_init_update_status(NULL, _("Image procedures"),
pcount/total_pcount);
/* Image procedures */
@ -392,19 +393,19 @@ internal_procs_init ()
procedural_db_register (&convert_indexed_proc); pcount++;
procedural_db_register (&convert_indexed_palette_proc); pcount++;
app_init_update_status(NULL, "Channel ops",
app_init_update_status(NULL, _("Channel ops"),
pcount/total_pcount);
/* Channel Ops procedures */
procedural_db_register (&channel_ops_duplicate_proc); pcount++;
procedural_db_register (&channel_ops_offset_proc); pcount++;
app_init_update_status(NULL, "gimprc ops",
app_init_update_status(NULL, _("gimprc ops"),
pcount/total_pcount);
/* Gimprc procedures */
procedural_db_register (&gimprc_query_proc); pcount++;
app_init_update_status(NULL, "parasites",
app_init_update_status(NULL, _("parasites"),
pcount/total_pcount);
/* parasite procedures */
procedural_db_register (&parasite_new_proc); pcount++;
@ -412,7 +413,7 @@ internal_procs_init ()
procedural_db_register (&gimp_attach_parasite_proc); pcount++;
procedural_db_register (&gimp_detach_parasite_proc); pcount++;
app_init_update_status(NULL, "Procedural database",
app_init_update_status(NULL, _("Procedural database"),
pcount/total_pcount);
/* Procedural Database */

View File

@ -24,6 +24,8 @@
#include "invert.h"
#include "gimage.h"
#include "libgimp/gimpintl.h"
static void invert (GimpDrawable *);
static Argument * invert_invoker (Argument *);
@ -42,7 +44,7 @@ image_invert (gimage_ptr)
if (drawable_indexed (drawable))
{
g_message ("Invert does not operate on indexed drawables.");
g_message (_("Invert does not operate on indexed drawables."));
return;
}
@ -52,7 +54,7 @@ image_invert (gimage_ptr)
PDB_END);
if (return_vals[0].value.pdb_int != PDB_SUCCESS)
g_message ("Invert operation failed.");
g_message (_("Invert operation failed."));
procedural_db_destroy_args (return_vals, nreturn_vals);
}

View File

@ -39,6 +39,8 @@
#include "temp_buf.h"
#include "tools.h"
#include "libgimp/gimpintl.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
@ -315,13 +317,13 @@ iscissors_selection_options (void)
vbox = gtk_vbox_new (FALSE, 1);
/* the main label */
label = gtk_label_new ("Intelligent Scissors Options");
label = gtk_label_new (_("Intelligent Scissors Options"));
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
/* the antialias toggle button */
antialias_toggle = gtk_check_button_new_with_label ("Antialiasing");
antialias_toggle = gtk_check_button_new_with_label (_("Antialiasing"));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON(antialias_toggle),
options->antialias);
gtk_box_pack_start (GTK_BOX (vbox), antialias_toggle, FALSE, FALSE, 0);
@ -331,7 +333,7 @@ iscissors_selection_options (void)
gtk_widget_show (antialias_toggle);
/* the feather toggle button */
feather_toggle = gtk_check_button_new_with_label ("Feather");
feather_toggle = gtk_check_button_new_with_label (_("Feather"));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON(feather_toggle),
options->feather);
gtk_box_pack_start (GTK_BOX (vbox), feather_toggle, FALSE, FALSE, 0);
@ -344,7 +346,7 @@ iscissors_selection_options (void)
hbox = gtk_hbox_new (FALSE, 1);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new ("Feather Radius");
label = gtk_label_new (_("Feather Radius: "));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
@ -364,7 +366,7 @@ iscissors_selection_options (void)
hbox = gtk_hbox_new (FALSE, 1);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new ("Curve Resolution");
label = gtk_label_new (_("Curve Resolution: "));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
@ -384,7 +386,7 @@ iscissors_selection_options (void)
hbox = gtk_hbox_new (FALSE, 1);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new ("Edge Detect Thresh.");
label = gtk_label_new (_("Edge Detect Threshold: "));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
@ -404,7 +406,7 @@ iscissors_selection_options (void)
hbox = gtk_hbox_new (FALSE, 1);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new ("Elasticity.");
label = gtk_label_new (_("Elasticity: "));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
@ -422,7 +424,7 @@ iscissors_selection_options (void)
/* the convert to bezier button */
convert_button = gtk_button_new_with_label ("Convert to Bezier Curve");
convert_button = gtk_button_new_with_label (_("Convert to Bezier Curve"));
gtk_box_pack_start (GTK_BOX (vbox), convert_button, TRUE, TRUE, 0);
gtk_signal_connect(GTK_OBJECT (convert_button) , "clicked",
(GtkSignalFunc) selection_to_bezier,
@ -952,7 +954,7 @@ add_segment (int *num_segs,
segs = (GdkSegment *) g_realloc ((void *) segs, sizeof (GdkSegment) * max_segs);
if (!segs)
fatal_error ("Unable to reallocate segment array in iscissors.");
fatal_error (_("Unable to reallocate segment array in iscissors."));
}
if (*num_segs)
@ -995,7 +997,7 @@ add_point (int *num_pts,
pts = (Point *) g_realloc ((void *) pts, sizeof (Point) * max_pts);
if (!pts)
fatal_error ("Unable to reallocate points array in iscissors.");
fatal_error (_("Unable to reallocate points array in iscissors."));
}
pts[*num_pts].x = x;
@ -1799,7 +1801,7 @@ bezierify_boundary (Tool *tool)
if (iscissors->num_pts < 4)
{
g_message ("Boundary contains < 4 points! Cannot bezierify.");
g_message (_("Boundary contains < 4 points! Cannot bezierify."));
return;
}

View File

@ -43,6 +43,8 @@
#include "session.h"
#include "undo.h"
#include "libgimp/gimpintl.h"
#include "tools/eye.xbm"
#include "tools/linked.xbm"
#include "tools/layer.xbm"
@ -217,41 +219,41 @@ static int suspend_gimage_notify = 0;
static MenuItem layers_ops[] =
{
{ "New Layer", 'N', GDK_CONTROL_MASK,
{ N_("New Layer"), 'N', GDK_CONTROL_MASK,
layers_dialog_new_layer_callback, NULL, NULL, NULL },
{ "Raise Layer", 'F', GDK_CONTROL_MASK,
{ N_("Raise Layer"), 'F', GDK_CONTROL_MASK,
layers_dialog_raise_layer_callback, NULL, NULL, NULL },
{ "Lower Layer", 'B', GDK_CONTROL_MASK,
{ N_("Lower Layer"), 'B', GDK_CONTROL_MASK,
layers_dialog_lower_layer_callback, NULL, NULL, NULL },
{ "Duplicate Layer", 'C', GDK_CONTROL_MASK,
{ N_("Duplicate Layer"), 'C', GDK_CONTROL_MASK,
layers_dialog_duplicate_layer_callback, NULL, NULL, NULL },
{ "Delete Layer", 'X', GDK_CONTROL_MASK,
{ N_("Delete Layer"), 'X', GDK_CONTROL_MASK,
layers_dialog_delete_layer_callback, NULL, NULL, NULL },
{ "Scale Layer", 'S', GDK_CONTROL_MASK,
{ N_("Scale Layer"), 'S', GDK_CONTROL_MASK,
layers_dialog_scale_layer_callback, NULL, NULL, NULL },
{ "Resize Layer", 'R', GDK_CONTROL_MASK,
{ N_("Resize Layer"), 'R', GDK_CONTROL_MASK,
layers_dialog_resize_layer_callback, NULL, NULL, NULL },
{ "Add Layer Mask", 0, 0,
{ N_("Add Layer Mask"), 0, 0,
layers_dialog_add_layer_mask_callback, NULL, NULL, NULL },
{ "Apply Layer Mask", 0, 0,
{ N_("Apply Layer Mask"), 0, 0,
layers_dialog_apply_layer_mask_callback, NULL, NULL, NULL },
{ "Anchor Layer", 'H', GDK_CONTROL_MASK,
{ N_("Anchor Layer"), 'H', GDK_CONTROL_MASK,
layers_dialog_anchor_layer_callback, NULL, NULL, NULL },
{ "Merge Visible Layers", 'M', GDK_CONTROL_MASK,
{ N_("Merge Visible Layers"), 'M', GDK_CONTROL_MASK,
layers_dialog_merge_layers_callback, NULL, NULL, NULL },
{ "Merge Down", 'M', GDK_CONTROL_MASK,
{ N_("Merge Down"), 'M', GDK_CONTROL_MASK,
layers_dialog_merge_down_callback, NULL, NULL, NULL },
{ "Flatten Image", 0, 0,
{ N_("Flatten Image"), 0, 0,
layers_dialog_flatten_image_callback, NULL, NULL, NULL },
{ "Alpha To Selection", 0, 0,
{ N_("Alpha To Selection"), 0, 0,
layers_dialog_alpha_select_callback, NULL, NULL, NULL },
{ "Mask To Selection", 0, 0,
{ N_("Mask To Selection"), 0, 0,
layers_dialog_mask_select_callback, NULL, NULL, NULL },
{ "Add Alpha Channel", 0, 0,
{ N_("Add Alpha Channel"), 0, 0,
layers_dialog_add_alpha_channel_callback, NULL, NULL, NULL },
{ "Layer to Top", 'T', GDK_CONTROL_MASK,
{ N_("Layer to Top"), 'T', GDK_CONTROL_MASK,
layers_dialog_raise_layer_to_top_callback, NULL, NULL, NULL },
{ "Layer to Bottom", 'U', GDK_CONTROL_MASK,
{ N_("Layer to Bottom"), 'U', GDK_CONTROL_MASK,
layers_dialog_lower_layer_to_bottom_callback, NULL, NULL, NULL },
{ NULL, 0, 0, NULL, NULL, NULL, NULL },
};
@ -259,33 +261,33 @@ static MenuItem layers_ops[] =
/* 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 },
{ "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_("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 ops buttons */
static OpsButton layers_ops_buttons[] =
{
{ new_xpm, layers_dialog_new_layer_callback, "New Layer", NULL },
{ raise_xpm, layers_dialog_raise_layer_callback, "Raise Layer", NULL },
{ lower_xpm, layers_dialog_lower_layer_callback, "Lower Layer", NULL },
{ duplicate_xpm, layers_dialog_duplicate_layer_callback, "Duplicate Layer", NULL },
{ delete_xpm, layers_dialog_delete_layer_callback, "Delete Layer", NULL },
{ anchor_xpm, layers_dialog_anchor_layer_callback, "Anchor Layer", NULL },
{ new_xpm, layers_dialog_new_layer_callback, N_("New Layer"), NULL },
{ raise_xpm, layers_dialog_raise_layer_callback, N_("Raise Layer"), NULL },
{ lower_xpm, layers_dialog_lower_layer_callback, N_("Lower Layer"), NULL },
{ duplicate_xpm, layers_dialog_duplicate_layer_callback, N_("Duplicate Layer"), NULL },
{ delete_xpm, layers_dialog_delete_layer_callback, N_("Delete Layer"), NULL },
{ anchor_xpm, layers_dialog_anchor_layer_callback, N_("Anchor Layer"), NULL },
{ NULL, NULL, NULL, NULL }
};
@ -308,7 +310,7 @@ lc_dialog_create (GimpImage* gimage)
{
lc_shell = gtk_dialog_new ();
gtk_window_set_title (GTK_WINDOW (lc_shell), "Layers & Channels");
gtk_window_set_title (GTK_WINDOW (lc_shell), _("Layers & Channels"));
gtk_window_set_wmclass (GTK_WINDOW (lc_shell), "layers_and_channels", "Gimp");
session_set_window_geometry (lc_shell, &lc_dialog_session_info, TRUE);
gtk_container_border_width (GTK_CONTAINER (GTK_DIALOG (lc_shell)->vbox), 2);
@ -330,7 +332,7 @@ lc_dialog_create (GimpImage* gimage)
gtk_box_pack_start (GTK_BOX(lc_subshell), util_box, FALSE, FALSE, 0);
/* The GIMP image option menu */
label = gtk_label_new ("Image:");
label = gtk_label_new (_("Image:"));
gtk_box_pack_start (GTK_BOX (util_box), label, FALSE, FALSE, 2);
image_option_menu = gtk_option_menu_new ();
image_menu = create_image_menu (&gimage, &default_index, image_menu_callback);
@ -352,13 +354,13 @@ lc_dialog_create (GimpImage* gimage)
notebook = gtk_notebook_new ();
gtk_box_pack_start (GTK_BOX(lc_subshell), notebook, TRUE, TRUE, 0);
label = gtk_label_new ("Layers");
label = gtk_label_new (_("Layers"));
gtk_notebook_append_page (GTK_NOTEBOOK (notebook),
layers_dialog_create (),
label);
gtk_widget_show (label);
label = gtk_label_new ("Channels");
label = gtk_label_new (_("Channels"));
gtk_notebook_append_page (GTK_NOTEBOOK (notebook),
channels_dialog_create (),
label);
@ -371,7 +373,7 @@ lc_dialog_create (GimpImage* gimage)
gtk_container_border_width (GTK_CONTAINER (GTK_DIALOG(lc_shell)->action_area), 1);
/* The close button */
button = gtk_button_new_with_label ("Close");
button = gtk_button_new_with_label (_("Close"));
gtk_box_pack_start (GTK_BOX (GTK_DIALOG(lc_shell)->action_area), button, TRUE, TRUE, 0);
gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
(GtkSignalFunc) lc_dialog_close_callback,
@ -675,7 +677,7 @@ layers_dialog_create ()
layersD->mode_box = util_box = gtk_hbox_new (FALSE, 1);
gtk_box_pack_start (GTK_BOX (vbox), 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 = build_menu (option_items, NULL);
@ -686,7 +688,7 @@ layers_dialog_create ()
gtk_widget_show (layersD->mode_option_menu);
gtk_option_menu_set_menu (GTK_OPTION_MENU (layersD->mode_option_menu), menu);
layersD->preserve_trans = gtk_check_button_new_with_label ("Keep Trans.");
layersD->preserve_trans = gtk_check_button_new_with_label (_("Keep Trans."));
gtk_box_pack_start (GTK_BOX (util_box), layersD->preserve_trans, FALSE, FALSE, 2);
gtk_signal_connect (GTK_OBJECT (layersD->preserve_trans), "toggled",
(GtkSignalFunc) preserve_trans_update,
@ -698,7 +700,7 @@ layers_dialog_create ()
/* Opacity scale */
layersD->opacity_box = util_box = gtk_hbox_new (FALSE, 1);
gtk_box_pack_start (GTK_BOX (vbox), 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);
layersD->opacity_data = GTK_ADJUSTMENT (gtk_adjustment_new (100.0, 0.0, 100.0, 1.0, 1.0, 0.0));
slider = gtk_hscale_new (layersD->opacity_data);
@ -821,7 +823,7 @@ create_image_menu (GimpImage** def,
if (!data.num_items)
{
GtkWidget* menu_item;
menu_item = gtk_menu_item_new_with_label ("none");
menu_item = gtk_menu_item_new_with_label (_("none"));
gtk_container_add (GTK_CONTAINER (data.menu), menu_item);
gtk_widget_show (menu_item);
}
@ -859,7 +861,7 @@ layers_dialog_update (GimpImage* gimage)
layer_widget_delete (lw);
}
if (layersD->layer_widgets)
g_message ("layersD->layer_widgets not empty!");
g_message (_("layersD->layer_widgets not empty!"));
layersD->layer_widgets = NULL;
/* Find the preview extents */
@ -1427,7 +1429,7 @@ paint_mode_menu_get_position (gint mode)
i++;
}
g_message ("Unknown layer mode");
g_message (_("Unknown layer mode"));
return 0;
}
@ -2110,7 +2112,7 @@ create_layer_widget (GImage *gimage,
/* the layer name label */
if (layer_is_floating_sel (layer))
layer_widget->label = gtk_label_new ("Floating Selection");
layer_widget->label = gtk_label_new (_("Floating Selection"));
else
layer_widget->label = gtk_label_new (layer_get_name(layer));
gtk_box_pack_start (GTK_BOX (hbox), layer_widget->label, FALSE, FALSE, 2);
@ -2932,7 +2934,7 @@ layer_widget_layer_flush (GtkWidget *widget,
}
if (layer_is_floating_sel (layer_widget->layer))
name = "Floating Selection";
name = _("Floating Selection");
else
name = layer_get_name(layer_widget->layer);
@ -3049,7 +3051,7 @@ new_layer_query_ok_callback (GtkWidget *w,
}
else
{
g_message ("new_layer_query_ok_callback: could not allocate new layer");
g_message (_("new_layer_query_ok_callback: could not allocate new layer"));
}
}
@ -3125,8 +3127,8 @@ layers_dialog_new_layer_query (GimpImage* gimage)
{
static ActionAreaItem action_items[2] =
{
{ "OK", new_layer_query_ok_callback, NULL, NULL },
{ "Cancel", new_layer_query_cancel_callback, NULL, NULL }
{ N_("OK"), new_layer_query_ok_callback, NULL, NULL },
{ N_("Cancel"), new_layer_query_cancel_callback, NULL, NULL }
};
NewLayerOptions *options;
GtkWidget *vbox;
@ -3140,10 +3142,10 @@ layers_dialog_new_layer_query (GimpImage* gimage)
char size[12];
char *button_names[4] =
{
"Foreground",
"Background",
"White",
"Transparent"
N_("Foreground"),
N_("Background"),
N_("White"),
N_("Transparent")
};
ActionCallback button_callbacks[4] =
{
@ -3161,7 +3163,7 @@ layers_dialog_new_layer_query (GimpImage* gimage)
/* the dialog */
options->query_box = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (options->query_box), "new_layer_options", "Gimp");
gtk_window_set_title (GTK_WINDOW (options->query_box), "New Layer Options");
gtk_window_set_title (GTK_WINDOW (options->query_box), _("New Layer Options"));
gtk_window_position (GTK_WINDOW (options->query_box), GTK_WIN_POS_MOUSE);
/* handle the wm close signal */
@ -3178,7 +3180,7 @@ layers_dialog_new_layer_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 ("Layer name:");
label = gtk_label_new (_("Layer 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);
@ -3188,12 +3190,12 @@ layers_dialog_new_layer_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), (layer_name ? layer_name : "New Layer"));
gtk_entry_set_text (GTK_ENTRY (options->name_entry), (layer_name ? layer_name : _("New Layer")));
gtk_widget_show (options->name_entry);
/* the xsize entry hbox, label and entry */
sprintf (size, "%d", gimage->width);
label = gtk_label_new ("Layer width:");
label = gtk_label_new (_("Layer width: "));
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);
@ -3207,7 +3209,7 @@ layers_dialog_new_layer_query (GimpImage* gimage)
/* the ysize entry hbox, label and entry */
sprintf (size, "%d", gimage->height);
label = gtk_label_new ("Layer height:");
label = gtk_label_new (_("Layer height: "));
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, 0, 1);
@ -3222,7 +3224,7 @@ layers_dialog_new_layer_query (GimpImage* gimage)
gtk_widget_show (table);
/* the radio frame and box */
radio_frame = gtk_frame_new ("Layer Fill Type");
radio_frame = gtk_frame_new (_("Layer Fill Type"));
gtk_box_pack_start (GTK_BOX (vbox), radio_frame, FALSE, FALSE, 0);
radio_box = gtk_vbox_new (FALSE, 1);
@ -3231,7 +3233,7 @@ layers_dialog_new_layer_query (GimpImage* gimage)
/* the radio buttons */
for (i = 0; i < 4; i++)
{
radio_button = gtk_radio_button_new_with_label (group, button_names[i]);
radio_button = gtk_radio_button_new_with_label (group, gettext(button_names[i]));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (radio_button));
gtk_box_pack_start (GTK_BOX (radio_box), radio_button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (radio_button), "toggled",
@ -3324,8 +3326,8 @@ layers_dialog_edit_layer_query (LayerWidget *layer_widget)
{
static ActionAreaItem action_items[2] =
{
{ "OK", edit_layer_query_ok_callback, NULL, NULL },
{ "Cancel", edit_layer_query_cancel_callback, NULL, NULL }
{ N_("OK"), edit_layer_query_ok_callback, NULL, NULL },
{ N_("Cancel"), edit_layer_query_cancel_callback, NULL, NULL }
};
EditLayerOptions *options;
GtkWidget *vbox;
@ -3338,7 +3340,7 @@ layers_dialog_edit_layer_query (LayerWidget *layer_widget)
/* the dialog */
options->query_box = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (options->query_box), "edit_layer_attrributes", "Gimp");
gtk_window_set_title (GTK_WINDOW (options->query_box), "Edit Layer Attributes");
gtk_window_set_title (GTK_WINDOW (options->query_box), _("Edit Layer Attributes"));
gtk_window_position (GTK_WINDOW (options->query_box), GTK_WIN_POS_MOUSE);
/* handle the wm close signal */
@ -3354,14 +3356,14 @@ layers_dialog_edit_layer_query (LayerWidget *layer_widget)
/* the name entry hbox, label and entry */
hbox = gtk_hbox_new (FALSE, 1);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new ("Layer name:");
label = gtk_label_new (_("Layer name: "));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
options->name_entry = gtk_entry_new ();
gtk_box_pack_start (GTK_BOX (hbox), options->name_entry, TRUE, TRUE, 0);
gtk_entry_set_text (GTK_ENTRY (options->name_entry),
((layer_is_floating_sel (layer_widget->layer) ?
"Floating Selection" : layer_get_name(layer_widget->layer))));
_("Floating Selection") : layer_get_name(layer_widget->layer))));
gtk_widget_show (options->name_entry);
gtk_widget_show (hbox);
@ -3464,8 +3466,8 @@ layers_dialog_add_mask_query (Layer *layer)
{
static ActionAreaItem action_items[2] =
{
{ "OK", add_mask_query_ok_callback, NULL, NULL },
{ "Cancel", add_mask_query_cancel_callback, NULL, NULL }
{ N_("OK"), add_mask_query_ok_callback, NULL, NULL },
{ N_("Cancel"), add_mask_query_cancel_callback, NULL, NULL }
};
AddMaskOptions *options;
GtkWidget *vbox;
@ -3477,9 +3479,9 @@ layers_dialog_add_mask_query (Layer *layer)
int i;
char *button_names[3] =
{
"White (Full Opacity)",
"Black (Full Transparency)",
"Layer's Alpha Channel"
N_("White (Full Opacity)"),
N_("Black (Full Transparency)"),
N_("Layer's Alpha Channel")
};
ActionCallback button_callbacks[3] =
{
@ -3496,7 +3498,7 @@ layers_dialog_add_mask_query (Layer *layer)
/* the dialog */
options->query_box = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (options->query_box), "add_mask_options", "Gimp");
gtk_window_set_title (GTK_WINDOW (options->query_box), "Add Mask Options");
gtk_window_set_title (GTK_WINDOW (options->query_box), _("Add Mask Options"));
gtk_window_position (GTK_WINDOW (options->query_box), GTK_WIN_POS_MOUSE);
/* handle the wm close signal */
@ -3510,7 +3512,7 @@ layers_dialog_add_mask_query (Layer *layer)
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (options->query_box)->vbox), vbox, TRUE, TRUE, 0);
/* the name entry hbox, label and entry */
label = gtk_label_new ("Initialize Layer Mask To:");
label = gtk_label_new (_("Initialize Layer Mask To:"));
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
@ -3524,7 +3526,7 @@ layers_dialog_add_mask_query (Layer *layer)
/* the radio buttons */
for (i = 0; i < 3; i++)
{
radio_button = gtk_radio_button_new_with_label (group, button_names[i]);
radio_button = gtk_radio_button_new_with_label (group, gettext(button_names[i]));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (radio_button));
gtk_box_pack_start (GTK_BOX (radio_box), radio_button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (radio_button), "toggled",
@ -3609,9 +3611,9 @@ layers_dialog_apply_mask_query (Layer *layer)
{
static ActionAreaItem action_items[3] =
{
{ "Apply", apply_mask_query_apply_callback, NULL, NULL },
{ "Discard", apply_mask_query_discard_callback, NULL, NULL },
{ "Cancel", apply_mask_query_cancel_callback, NULL, NULL }
{ N_("Apply"), apply_mask_query_apply_callback, NULL, NULL },
{ N_("Discard"), apply_mask_query_discard_callback, NULL, NULL },
{ N_("Cancel"), apply_mask_query_cancel_callback, NULL, NULL }
};
ApplyMaskOptions *options;
GtkWidget *vbox;
@ -3624,7 +3626,7 @@ layers_dialog_apply_mask_query (Layer *layer)
/* the dialog */
options->query_box = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (options->query_box), "layer_mask_options", "Gimp");
gtk_window_set_title (GTK_WINDOW (options->query_box), "Layer Mask Options");
gtk_window_set_title (GTK_WINDOW (options->query_box), _("Layer Mask Options"));
gtk_window_position (GTK_WINDOW (options->query_box), GTK_WIN_POS_MOUSE);
/* handle the wm close signal */
@ -3639,7 +3641,7 @@ layers_dialog_apply_mask_query (Layer *layer)
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (options->query_box)->vbox), vbox, TRUE, TRUE, 0);
/* the name entry hbox, label and entry */
label = gtk_label_new ("Apply layer mask?");
label = gtk_label_new (_("Apply layer mask?"));
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
@ -3702,7 +3704,7 @@ scale_layer_query_ok_callback (GtkWidget *w,
g_free (options);
}
else
g_message ("Invalid width or height. Both must be positive.");
g_message (_("Invalid width or height. Both must be positive."));
}
static void
@ -3732,8 +3734,8 @@ layers_dialog_scale_layer_query (Layer *layer)
{
static ActionAreaItem action_items[3] =
{
{ "OK", scale_layer_query_ok_callback, NULL, NULL },
{ "Cancel", scale_layer_query_cancel_callback, NULL, NULL }
{ N_("OK"), scale_layer_query_ok_callback, NULL, NULL },
{ N_("Cancel"), scale_layer_query_cancel_callback, NULL, NULL }
};
ScaleLayerOptions *options;
GtkWidget *vbox;
@ -3748,7 +3750,7 @@ layers_dialog_scale_layer_query (Layer *layer)
/* the dialog */
options->query_box = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (options->query_box), "scale_layer", "Gimp");
gtk_window_set_title (GTK_WINDOW (options->query_box), "Scale Layer");
gtk_window_set_title (GTK_WINDOW (options->query_box), _("Scale Layer"));
gtk_window_set_policy (GTK_WINDOW (options->query_box), FALSE, FALSE, TRUE);
gtk_window_position (GTK_WINDOW (options->query_box), GTK_WIN_POS_MOUSE);
@ -3823,7 +3825,7 @@ resize_layer_query_ok_callback (GtkWidget *w,
g_free (options);
}
else
g_message ("Invalid width or height. Both must be positive.");
g_message (_("Invalid width or height. Both must be positive."));
}
static void
@ -3853,8 +3855,8 @@ layers_dialog_resize_layer_query (Layer *layer)
{
static ActionAreaItem action_items[3] =
{
{ "OK", resize_layer_query_ok_callback, NULL, NULL },
{ "Cancel", resize_layer_query_cancel_callback, NULL, NULL }
{ N_("OK"), resize_layer_query_ok_callback, NULL, NULL },
{ N_("Cancel"), resize_layer_query_cancel_callback, NULL, NULL }
};
ResizeLayerOptions *options;
GtkWidget *vbox;
@ -3869,7 +3871,7 @@ layers_dialog_resize_layer_query (Layer *layer)
/* the dialog */
options->query_box = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (options->query_box), "resize_layer", "Gimp");
gtk_window_set_title (GTK_WINDOW (options->query_box), "Resize Layer");
gtk_window_set_title (GTK_WINDOW (options->query_box), _("Resize Layer"));
gtk_window_set_policy (GTK_WINDOW (options->query_box), FALSE, TRUE, TRUE);
gtk_window_set_policy (GTK_WINDOW (options->query_box), FALSE, FALSE, TRUE);
gtk_window_position (GTK_WINDOW (options->query_box), GTK_WIN_POS_MOUSE);
@ -3984,8 +3986,8 @@ layers_dialog_layer_merge_query (GImage *gimage,
{
static ActionAreaItem action_items[2] =
{
{ "OK", layer_merge_query_ok_callback, NULL, NULL },
{ "Cancel", layer_merge_query_cancel_callback, NULL, NULL }
{ N_("OK"), layer_merge_query_ok_callback, NULL, NULL },
{ N_("Cancel"), layer_merge_query_cancel_callback, NULL, NULL }
};
LayerMergeOptions *options;
GtkWidget *vbox;
@ -3997,9 +3999,9 @@ layers_dialog_layer_merge_query (GImage *gimage,
int i;
char *button_names[3] =
{
"Expanded as necessary",
"Clipped to image",
"Clipped to bottom layer"
N_("Expanded as necessary"),
N_("Clipped to image"),
N_("Clipped to bottom layer")
};
ActionCallback button_callbacks[3] =
{
@ -4017,7 +4019,7 @@ layers_dialog_layer_merge_query (GImage *gimage,
/* the dialog */
options->query_box = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (options->query_box), "layer_merge_options", "Gimp");
gtk_window_set_title (GTK_WINDOW (options->query_box), "Layer Merge Options");
gtk_window_set_title (GTK_WINDOW (options->query_box), _("Layer Merge Options"));
gtk_window_position (GTK_WINDOW (options->query_box), GTK_WIN_POS_MOUSE);
/* hadle the wm close signal */
@ -4032,9 +4034,9 @@ layers_dialog_layer_merge_query (GImage *gimage,
/* the name entry hbox, label and entry */
if (merge_visible)
label = gtk_label_new ("Final, merged layer should be:");
label = gtk_label_new (_("Final, merged layer should be:"));
else
label = gtk_label_new ("Final, anchored layer should be:");
label = gtk_label_new (_("Final, anchored layer should be:"));
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
@ -4049,7 +4051,7 @@ layers_dialog_layer_merge_query (GImage *gimage,
/* the radio buttons */
for (i = 0; i < 3; i++)
{
radio_button = gtk_radio_button_new_with_label (group, button_names[i]);
radio_button = gtk_radio_button_new_with_label (group, gettext(button_names[i]));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (radio_button));
gtk_box_pack_start (GTK_BOX (radio_box), radio_button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (radio_button), "toggled",

View File

@ -103,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);
@ -121,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);

View File

@ -141,7 +141,7 @@ create_clone_options (void)
/* the radio buttons */
for (i = 0; i < 2; i++)
{
radio_button = gtk_radio_button_new_with_label (group, button_names[i]);
radio_button = gtk_radio_button_new_with_label (group, gettext(button_names[i]));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (radio_button));
gtk_signal_connect (GTK_OBJECT (radio_button), "toggled",
(GtkSignalFunc) clone_type_callback,

View File

@ -150,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);
@ -171,7 +171,7 @@ create_convolve_options (void)
/* the radio buttons */
for (i = 0; i < 2; i++)
{
radio_button = gtk_radio_button_new_with_label (group, button_names[i]);
radio_button = gtk_radio_button_new_with_label (group, gettext(button_names[i]));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (radio_button));
gtk_box_pack_start (GTK_BOX (radio_box), radio_button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (radio_button), "toggled",

View File

@ -27,6 +27,8 @@
#include "blob.h"
#include "gdisplay.h"
#include "libgimp/gimpintl.h"
#include "tile.h" /* ick. */
#include <math.h>
@ -163,14 +165,14 @@ create_ink_options ()
vbox = gtk_vbox_new (FALSE, 1);
/* the main label */
label = gtk_label_new ("Ink Options");
label = gtk_label_new (_("Ink Options"));
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
/* size slider */
hbox = gtk_hbox_new (FALSE, 2);
gtk_box_pack_start (GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new ("Size:");
label = gtk_label_new (_("Size:"));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 2);
adj = GTK_ADJUSTMENT (gtk_adjustment_new (3.0, 0.0, 20.0, 1.0, 5.0, 0.0));
@ -186,7 +188,7 @@ create_ink_options ()
/* sens slider */
hbox = gtk_hbox_new (FALSE, 2);
gtk_box_pack_start (GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new ("Sensitivity:");
label = gtk_label_new (_("Sensitivity:"));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 2);
adj = GTK_ADJUSTMENT (gtk_adjustment_new (1.0, 0.0, 1.0, 0.01, 0.1, 0.0));
@ -206,7 +208,7 @@ create_ink_options ()
hbox = gtk_hbox_new (FALSE, 2);
gtk_box_pack_start (GTK_BOX(vbox), hbox, FALSE, FALSE, 5);
label = gtk_label_new ("Shape:");
label = gtk_label_new (_("Shape:"));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
aspect_frame = gtk_aspect_frame_new (NULL, 0.5, 0.5, 1.0, FALSE);

View File

@ -141,7 +141,7 @@ create_clone_options (void)
/* the radio buttons */
for (i = 0; i < 2; i++)
{
radio_button = gtk_radio_button_new_with_label (group, button_names[i]);
radio_button = gtk_radio_button_new_with_label (group, gettext(button_names[i]));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (radio_button));
gtk_signal_connect (GTK_OBJECT (radio_button), "toggled",
(GtkSignalFunc) clone_type_callback,

View File

@ -37,6 +37,8 @@
#include "palette.h"
#include "session.h"
#include "libgimp/gimpintl.h"
#define ENTRY_WIDTH 12
#define ENTRY_HEIGHT 10
#define SPACING 1
@ -116,18 +118,18 @@ static int color_select_active = 0; */
static ActionAreaItem action_items[] =
{
{ "New", palette_new_callback, NULL, NULL },
{ "Edit", palette_edit_callback, NULL, NULL },
{ "Delete", palette_delete_callback, NULL, NULL },
{ "Close", palette_close_callback, NULL, NULL },
{ N_("New"), palette_new_callback, NULL, NULL },
{ N_("Edit"), palette_edit_callback, NULL, NULL },
{ N_("Delete"), palette_delete_callback, NULL, NULL },
{ N_("Close"), palette_close_callback, NULL, NULL },
};
static MenuItem palette_ops[] =
{
{ "New Palette", 0, 0, palette_new_entries_callback, NULL, NULL, NULL },
{ "Delete Palette", 0, 0, palette_delete_entries_callback, NULL, NULL, NULL },
{ "Refresh Palettes", 0, 0, palette_refresh_callback, NULL, NULL, NULL },
{ "Close", 0, 0, palette_close_callback, NULL, NULL, NULL },
{ N_("New Palette"), 0, 0, palette_new_entries_callback, NULL, NULL, NULL },
{ N_("Delete Palette"), 0, 0, palette_delete_entries_callback, NULL, NULL, NULL },
{ N_("Refresh Palettes"), 0, 0, palette_refresh_callback, NULL, NULL, NULL },
{ N_("Close"), 0, 0, palette_close_callback, NULL, NULL, NULL },
{ NULL, 0, 0, NULL, NULL, NULL, NULL },
};
@ -175,7 +177,7 @@ palette_create ()
gtk_window_set_wmclass (GTK_WINDOW (palette->shell), "color_palette", "Gimp");
session_set_window_geometry (palette->shell, &palette_session_info, FALSE);
gtk_window_set_policy (GTK_WINDOW (palette->shell), FALSE, FALSE, FALSE);
gtk_window_set_title (GTK_WINDOW (palette->shell), "Color Palette");
gtk_window_set_title (GTK_WINDOW (palette->shell), _("Color Palette"));
vbox = gtk_vbox_new (FALSE, 1);
gtk_container_border_width (GTK_CONTAINER (vbox), 1);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (palette->shell)->vbox), vbox, TRUE, TRUE, 0);
@ -203,7 +205,7 @@ palette_create ()
gtk_menu_item_set_submenu (GTK_MENU_ITEM (menu_bar_item), palette->palette_ops);
arrow_hbox = gtk_hbox_new (FALSE, 1);
gtk_container_add (GTK_CONTAINER (menu_bar_item), arrow_hbox);
label = gtk_label_new ("Ops");
label = gtk_label_new (_("Ops"));
arrow = gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_OUT);
gtk_box_pack_start (GTK_BOX (arrow_hbox), arrow, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (arrow_hbox), label, FALSE, FALSE, 4);
@ -224,7 +226,7 @@ palette_create ()
/* The active color name */
palette->color_name = gtk_entry_new ();
gtk_entry_set_text (GTK_ENTRY (palette->color_name), "Active Color Name");
gtk_entry_set_text (GTK_ENTRY (palette->color_name), _("Active Color Name"));
gtk_box_pack_start (GTK_BOX (vbox), palette->color_name, FALSE, FALSE, 0);
gtk_widget_show (palette->color_name);
@ -480,7 +482,7 @@ palette_create_palette_menu (PaletteP palette,
if (i == 0)
{
menu_item = gtk_menu_item_new_with_label ("none");
menu_item = gtk_menu_item_new_with_label (_("none"));
gtk_container_add (GTK_CONTAINER (palette->menu), menu_item);
gtk_widget_show (menu_item);
@ -614,7 +616,7 @@ palette_entries_save (PaletteEntriesP palette,
/* Open the requested file */
if (! (fp = fopen (filename, "wb")))
{
g_message ("can't save palette \"%s\"\n", filename);
g_message (_("can't save palette \"%s\"\n"), filename);
return;
}
@ -700,7 +702,7 @@ palette_change_color (int r,
switch (state)
{
case COLOR_NEW:
palette->color = palette_add_entry (palette->entries, "Untitled", r, g, b);
palette->color = palette_add_entry (palette->entries, _("Untitled"), r, g, b);
palette_calc_scrollbar (palette);
palette_draw_entries (palette);
@ -832,11 +834,11 @@ palette_new_callback (GtkWidget *w,
{
if (active_color == FOREGROUND)
palette->color =
palette_add_entry (palette->entries, "Untitled",
palette_add_entry (palette->entries, _("Untitled"),
foreground[0], foreground[1], foreground[2]);
else if (active_color == BACKGROUND)
palette->color =
palette_add_entry (palette->entries, "Untitled",
palette_add_entry (palette->entries, _("Untitled"),
background[0], background[1], background[2]);
palette_calc_scrollbar (palette);
@ -950,7 +952,7 @@ static void
palette_new_entries_callback (GtkWidget *w,
gpointer client_data)
{
query_string_box ("New Palette", "Enter a name for new palette", NULL,
query_string_box (_("New Palette"), _("Enter a name for new palette"), NULL,
palette_add_entries_callback, NULL);
}
@ -1347,7 +1349,7 @@ palette_add_entry (PaletteEntriesP entries,
if (name)
entry->name = g_strdup (name);
else
entry->name = g_strdup ("Untitled");
entry->name = g_strdup (_("Untitled"));
entry->position = entries->n_colors;
entries->colors = g_slist_append (entries->colors, entry);
@ -1399,7 +1401,7 @@ palette_delete_entry (PaletteP palette)
}
if (palette->entries->n_colors == 0)
palette->color = palette_add_entry (palette->entries, "Black", 0, 0, 0);
palette->color = palette_add_entry (palette->entries, _("Black"), 0, 0, 0);
palette_calc_scrollbar (palette);
palette_draw_entries (palette);

View File

@ -47,6 +47,7 @@
#include "tools.h"
#include "undo.h"
#include "config.h"
#include "libgimp/gimpintl.h"
typedef struct
@ -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);
@ -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);
@ -961,7 +962,7 @@ file_pref_cmd_callback (GtkWidget *widget,
group = NULL;
for (i = 0; i < ntransparencies; i++)
{
button = gtk_radio_button_new_with_label (group, transparencies[i]);
button = gtk_radio_button_new_with_label (group, gettext(transparencies[i]));
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),
@ -985,7 +986,7 @@ file_pref_cmd_callback (GtkWidget *widget,
group = NULL;
for (i = 0; i < nchecks; i++)
{
button = gtk_radio_button_new_with_label (group, checks[i]);
button = gtk_radio_button_new_with_label (group, gettext(checks[i]));
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),
@ -1186,7 +1187,7 @@ file_pref_cmd_callback (GtkWidget *widget,
menu = gtk_menu_new ();
for (i = 0; i < nmem_size_units; i++)
{
menuitem = gtk_menu_item_new_with_label (mem_size_units[i].label);
menuitem = gtk_menu_item_new_with_label (gettext(mem_size_units[i].label));
gtk_menu_append (GTK_MENU (menu), menuitem);
gtk_signal_connect (GTK_OBJECT (menuitem), "activate",
(GtkSignalFunc) file_prefs_mem_size_unit_callback,
@ -1300,7 +1301,7 @@ file_pref_cmd_callback (GtkWidget *widget,
for (i = 0; i < ndirs; i++)
{
label = gtk_label_new (dirs[i].label);
label = gtk_label_new (gettext(dirs[i].label));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, i, i+1,
GTK_FILL, GTK_FILL, 0, 0);

View File

@ -24,6 +24,7 @@
#include "rect_select.h"
#include "rect_selectP.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#define NO 0
@ -198,7 +199,7 @@ create_selection_options (ToolType tool_type)
hbox = gtk_hbox_new (TRUE, 5);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new (_(" Width: "));
label = gtk_label_new (_("Width: "));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
adj = (GtkAdjustment *) gtk_adjustment_new (options->fixed_width, 1.0,
32767.0, 1.0, 50.0, 0.0);
@ -216,7 +217,7 @@ create_selection_options (ToolType tool_type)
hbox = gtk_hbox_new (TRUE, 5);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new (_(" Height: "));
label = gtk_label_new (_("Height: "));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
adj = (GtkAdjustment *) gtk_adjustment_new (options->fixed_height, 1.0,
32767.0, 1.0, 50.0, 0.0);
@ -246,7 +247,7 @@ create_selection_options (ToolType tool_type)
hbox = gtk_hbox_new (FALSE, 1);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new (_("Feather Radius"));
label = gtk_label_new (_("Feather Radius: "));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);

View File

@ -181,7 +181,7 @@ init_text_options(TextToolOptions *options)
/* Create the border hbox, border spinner, and label */
hbox = gtk_hbox_new(FALSE, 2);
label = gtk_label_new (_("Border"));
label = gtk_label_new (_("Border: "));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0);
gtk_widget_show(label);

View File

@ -57,6 +57,7 @@
#include "tools.h"
#include "transform_tool.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#include "pixmaps2.h"

View File

@ -103,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);
@ -121,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);

View File

@ -167,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);
@ -186,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);
@ -205,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 ();
@ -216,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);
@ -226,7 +226,7 @@ create_bucket_options (void)
/* the radio buttons */
for (i = 0; i < 2; i++)
{
radio_button = gtk_radio_button_new_with_label (group, button_names[i]);
radio_button = gtk_radio_button_new_with_label (group, gettext(button_names[i]));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (radio_button));
gtk_signal_connect (GTK_OBJECT (radio_button), "toggled",
(GtkSignalFunc) bucket_fill_mode_callback,

View File

@ -141,7 +141,7 @@ create_clone_options (void)
/* the radio buttons */
for (i = 0; i < 2; i++)
{
radio_button = gtk_radio_button_new_with_label (group, button_names[i]);
radio_button = gtk_radio_button_new_with_label (group, gettext(button_names[i]));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (radio_button));
gtk_signal_connect (GTK_OBJECT (radio_button), "toggled",
(GtkSignalFunc) clone_type_callback,

View File

@ -150,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);
@ -171,7 +171,7 @@ create_convolve_options (void)
/* the radio buttons */
for (i = 0; i < 2; i++)
{
radio_button = gtk_radio_button_new_with_label (group, button_names[i]);
radio_button = gtk_radio_button_new_with_label (group, gettext(button_names[i]));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (radio_button));
gtk_box_pack_start (GTK_BOX (radio_box), radio_button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (radio_button), "toggled",

View File

@ -92,7 +92,7 @@ create_flip_options (void)
/* the radio buttons */
for (i = 0; i < 2; i++)
{
radio_button = gtk_radio_button_new_with_label (group, button_names[i]);
radio_button = gtk_radio_button_new_with_label (group, gettext(button_names[i]));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (radio_button));
gtk_box_pack_start (GTK_BOX (radio_box), radio_button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (radio_button), "toggled",

View File

@ -103,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);
@ -121,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);

View File

@ -167,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);
@ -186,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);
@ -205,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 ();
@ -216,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);
@ -226,7 +226,7 @@ create_bucket_options (void)
/* the radio buttons */
for (i = 0; i < 2; i++)
{
radio_button = gtk_radio_button_new_with_label (group, button_names[i]);
radio_button = gtk_radio_button_new_with_label (group, gettext(button_names[i]));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (radio_button));
gtk_signal_connect (GTK_OBJECT (radio_button), "toggled",
(GtkSignalFunc) bucket_fill_mode_callback,

View File

@ -141,7 +141,7 @@ create_clone_options (void)
/* the radio buttons */
for (i = 0; i < 2; i++)
{
radio_button = gtk_radio_button_new_with_label (group, button_names[i]);
radio_button = gtk_radio_button_new_with_label (group, gettext(button_names[i]));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (radio_button));
gtk_signal_connect (GTK_OBJECT (radio_button), "toggled",
(GtkSignalFunc) clone_type_callback,

View File

@ -150,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);
@ -171,7 +171,7 @@ create_convolve_options (void)
/* the radio buttons */
for (i = 0; i < 2; i++)
{
radio_button = gtk_radio_button_new_with_label (group, button_names[i]);
radio_button = gtk_radio_button_new_with_label (group, gettext(button_names[i]));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (radio_button));
gtk_box_pack_start (GTK_BOX (radio_box), radio_button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (radio_button), "toggled",

View File

@ -92,7 +92,7 @@ create_flip_options (void)
/* the radio buttons */
for (i = 0; i < 2; i++)
{
radio_button = gtk_radio_button_new_with_label (group, button_names[i]);
radio_button = gtk_radio_button_new_with_label (group, gettext(button_names[i]));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (radio_button));
gtk_box_pack_start (GTK_BOX (radio_box), radio_button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (radio_button), "toggled",

View File

@ -29,6 +29,8 @@
#include "image_map.h"
#include "interface.h"
#include "libgimp/gimpintl.h"
#define HUE_PARTITION_MASK GDK_EXPOSURE_MASK | GDK_ENTER_NOTIFY_MASK
#define TEXT_WIDTH 45
@ -317,7 +319,7 @@ tools_new_hue_saturation ()
/* The tool options */
if (!hue_saturation_options)
hue_saturation_options = tools_register_no_options (HUE_SATURATION, "Hue-Saturation Options");
hue_saturation_options = tools_register_no_options (HUE_SATURATION, _("Hue-Saturation Options"));
tool = (Tool *) g_malloc (sizeof (Tool));
private = (HueSaturation *) g_malloc (sizeof (HueSaturation));
@ -361,7 +363,7 @@ hue_saturation_initialize (GDisplay *gdisp)
if (! drawable_color (gimage_active_drawable (gdisp->gimage)))
{
g_message ("Hue-Saturation operates only on RGB color drawables.");
g_message (_("Hue-Saturation operates only on RGB color drawables."));
return;
}
@ -407,8 +409,8 @@ hue_saturation_free ()
/* the action area structure */
static ActionAreaItem action_items[] =
{
{ "OK", hue_saturation_ok_callback, NULL, NULL },
{ "Cancel", hue_saturation_cancel_callback, NULL, NULL }
{ N_("OK"), hue_saturation_ok_callback, NULL, NULL },
{ N_("Cancel"), hue_saturation_cancel_callback, NULL, NULL }
};
static HueSaturationDialog *
@ -430,13 +432,13 @@ hue_saturation_new_dialog ()
int i;
char *hue_partition_names[7] =
{
"Master",
"R",
"Y",
"G",
"C",
"B",
"M"
N_("Master"),
N_("R"),
N_("Y"),
N_("G"),
N_("C"),
N_("B"),
N_("M")
};
ActionCallback hue_partition_callbacks[7] =
{
@ -456,7 +458,7 @@ hue_saturation_new_dialog ()
/* The shell and main vbox */
hsd->shell = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (hsd->shell), "hue_saturation", "Gimp");
gtk_window_set_title (GTK_WINDOW (hsd->shell), "Hue-Saturation");
gtk_window_set_title (GTK_WINDOW (hsd->shell), _("Hue-Saturation"));
/* handle the wm close signal */
gtk_signal_connect (GTK_OBJECT (hsd->shell), "delete_event",
@ -518,7 +520,7 @@ hue_saturation_new_dialog ()
vbox = gtk_vbox_new (FALSE, 2);
gtk_box_pack_start (GTK_BOX (main_hbox), vbox, FALSE, FALSE, 0);
label = gtk_label_new ("Hue / Lightness / Saturation Adjustments");
label = gtk_label_new (_("Hue / Lightness / Saturation Adjustments"));
gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5);
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
@ -528,7 +530,7 @@ hue_saturation_new_dialog ()
gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, FALSE, 0);
/* Create the hue scale widget */
label = gtk_label_new ("Hue");
label = gtk_label_new (_("Hue"));
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);
@ -562,7 +564,7 @@ hue_saturation_new_dialog ()
/* Create the lightness scale widget */
label = gtk_label_new ("Lightness");
label = gtk_label_new (_("Lightness"));
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);
@ -596,7 +598,7 @@ hue_saturation_new_dialog ()
/* Create the saturation scale widget */
label = gtk_label_new ("Saturation");
label = gtk_label_new (_("Saturation"));
gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 2, 3,
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2);
@ -619,7 +621,7 @@ hue_saturation_new_dialog ()
hsd->saturation_text = gtk_entry_new ();
gtk_widget_set_usize (hsd->saturation_text, TEXT_WIDTH, TEXT_HEIGHT);
gtk_table_attach (GTK_TABLE (table), hsd->saturation_text, 2, 3, 2, 3,
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2);
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 3, 2);
gtk_signal_connect (GTK_OBJECT (hsd->saturation_text), "changed",
(GtkSignalFunc) hue_saturation_saturation_text_update,
hsd);
@ -634,7 +636,7 @@ hue_saturation_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), hsd->preview);
gtk_box_pack_start (GTK_BOX (hbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
@ -731,7 +733,7 @@ static void
hue_saturation_preview (HueSaturationDialog *hsd)
{
if (!hsd->image_map)
g_message ("hue_saturation_preview(): No image map");
g_message (_("hue_saturation_preview(): No image map"));
active_tool->preserve = TRUE;
image_map_apply (hsd->image_map, hue_saturation, (void *) hsd);
active_tool->preserve = FALSE;

View File

@ -27,6 +27,8 @@
#include "blob.h"
#include "gdisplay.h"
#include "libgimp/gimpintl.h"
#include "tile.h" /* ick. */
#include <math.h>
@ -163,14 +165,14 @@ create_ink_options ()
vbox = gtk_vbox_new (FALSE, 1);
/* the main label */
label = gtk_label_new ("Ink Options");
label = gtk_label_new (_("Ink Options"));
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
/* size slider */
hbox = gtk_hbox_new (FALSE, 2);
gtk_box_pack_start (GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new ("Size:");
label = gtk_label_new (_("Size:"));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 2);
adj = GTK_ADJUSTMENT (gtk_adjustment_new (3.0, 0.0, 20.0, 1.0, 5.0, 0.0));
@ -186,7 +188,7 @@ create_ink_options ()
/* sens slider */
hbox = gtk_hbox_new (FALSE, 2);
gtk_box_pack_start (GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new ("Sensitivity:");
label = gtk_label_new (_("Sensitivity:"));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 2);
adj = GTK_ADJUSTMENT (gtk_adjustment_new (1.0, 0.0, 1.0, 0.01, 0.1, 0.0));
@ -206,7 +208,7 @@ create_ink_options ()
hbox = gtk_hbox_new (FALSE, 2);
gtk_box_pack_start (GTK_BOX(vbox), hbox, FALSE, FALSE, 5);
label = gtk_label_new ("Shape:");
label = gtk_label_new (_("Shape:"));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
aspect_frame = gtk_aspect_frame_new (NULL, 0.5, 0.5, 1.0, FALSE);

View File

@ -39,6 +39,8 @@
#include "temp_buf.h"
#include "tools.h"
#include "libgimp/gimpintl.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
@ -315,13 +317,13 @@ iscissors_selection_options (void)
vbox = gtk_vbox_new (FALSE, 1);
/* the main label */
label = gtk_label_new ("Intelligent Scissors Options");
label = gtk_label_new (_("Intelligent Scissors Options"));
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
/* the antialias toggle button */
antialias_toggle = gtk_check_button_new_with_label ("Antialiasing");
antialias_toggle = gtk_check_button_new_with_label (_("Antialiasing"));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON(antialias_toggle),
options->antialias);
gtk_box_pack_start (GTK_BOX (vbox), antialias_toggle, FALSE, FALSE, 0);
@ -331,7 +333,7 @@ iscissors_selection_options (void)
gtk_widget_show (antialias_toggle);
/* the feather toggle button */
feather_toggle = gtk_check_button_new_with_label ("Feather");
feather_toggle = gtk_check_button_new_with_label (_("Feather"));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON(feather_toggle),
options->feather);
gtk_box_pack_start (GTK_BOX (vbox), feather_toggle, FALSE, FALSE, 0);
@ -344,7 +346,7 @@ iscissors_selection_options (void)
hbox = gtk_hbox_new (FALSE, 1);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new ("Feather Radius");
label = gtk_label_new (_("Feather Radius: "));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
@ -364,7 +366,7 @@ iscissors_selection_options (void)
hbox = gtk_hbox_new (FALSE, 1);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new ("Curve Resolution");
label = gtk_label_new (_("Curve Resolution: "));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
@ -384,7 +386,7 @@ iscissors_selection_options (void)
hbox = gtk_hbox_new (FALSE, 1);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new ("Edge Detect Thresh.");
label = gtk_label_new (_("Edge Detect Threshold: "));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
@ -404,7 +406,7 @@ iscissors_selection_options (void)
hbox = gtk_hbox_new (FALSE, 1);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new ("Elasticity.");
label = gtk_label_new (_("Elasticity: "));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
@ -422,7 +424,7 @@ iscissors_selection_options (void)
/* the convert to bezier button */
convert_button = gtk_button_new_with_label ("Convert to Bezier Curve");
convert_button = gtk_button_new_with_label (_("Convert to Bezier Curve"));
gtk_box_pack_start (GTK_BOX (vbox), convert_button, TRUE, TRUE, 0);
gtk_signal_connect(GTK_OBJECT (convert_button) , "clicked",
(GtkSignalFunc) selection_to_bezier,
@ -952,7 +954,7 @@ add_segment (int *num_segs,
segs = (GdkSegment *) g_realloc ((void *) segs, sizeof (GdkSegment) * max_segs);
if (!segs)
fatal_error ("Unable to reallocate segment array in iscissors.");
fatal_error (_("Unable to reallocate segment array in iscissors."));
}
if (*num_segs)
@ -995,7 +997,7 @@ add_point (int *num_pts,
pts = (Point *) g_realloc ((void *) pts, sizeof (Point) * max_pts);
if (!pts)
fatal_error ("Unable to reallocate points array in iscissors.");
fatal_error (_("Unable to reallocate points array in iscissors."));
}
pts[*num_pts].x = x;
@ -1799,7 +1801,7 @@ bezierify_boundary (Tool *tool)
if (iscissors->num_pts < 4)
{
g_message ("Boundary contains < 4 points! Cannot bezierify.");
g_message (_("Boundary contains < 4 points! Cannot bezierify."));
return;
}

View File

@ -24,6 +24,7 @@
#include "rect_select.h"
#include "rect_selectP.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#define NO 0
@ -198,7 +199,7 @@ create_selection_options (ToolType tool_type)
hbox = gtk_hbox_new (TRUE, 5);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new (_(" Width: "));
label = gtk_label_new (_("Width: "));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
adj = (GtkAdjustment *) gtk_adjustment_new (options->fixed_width, 1.0,
32767.0, 1.0, 50.0, 0.0);
@ -216,7 +217,7 @@ create_selection_options (ToolType tool_type)
hbox = gtk_hbox_new (TRUE, 5);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new (_(" Height: "));
label = gtk_label_new (_("Height: "));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
adj = (GtkAdjustment *) gtk_adjustment_new (options->fixed_height, 1.0,
32767.0, 1.0, 50.0, 0.0);
@ -246,7 +247,7 @@ create_selection_options (ToolType tool_type)
hbox = gtk_hbox_new (FALSE, 1);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new (_("Feather Radius"));
label = gtk_label_new (_("Feather Radius: "));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);

View File

@ -141,7 +141,7 @@ create_clone_options (void)
/* the radio buttons */
for (i = 0; i < 2; i++)
{
radio_button = gtk_radio_button_new_with_label (group, button_names[i]);
radio_button = gtk_radio_button_new_with_label (group, gettext(button_names[i]));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (radio_button));
gtk_signal_connect (GTK_OBJECT (radio_button), "toggled",
(GtkSignalFunc) clone_type_callback,

View File

@ -181,7 +181,7 @@ init_text_options(TextToolOptions *options)
/* Create the border hbox, border spinner, and label */
hbox = gtk_hbox_new(FALSE, 2);
label = gtk_label_new (_("Border"));
label = gtk_label_new (_("Border: "));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0);
gtk_widget_show(label);

View File

@ -29,6 +29,8 @@
#include "image_map.h"
#include "interface.h"
#include "libgimp/gimpintl.h"
#define HUE_PARTITION_MASK GDK_EXPOSURE_MASK | GDK_ENTER_NOTIFY_MASK
#define TEXT_WIDTH 45
@ -317,7 +319,7 @@ tools_new_hue_saturation ()
/* The tool options */
if (!hue_saturation_options)
hue_saturation_options = tools_register_no_options (HUE_SATURATION, "Hue-Saturation Options");
hue_saturation_options = tools_register_no_options (HUE_SATURATION, _("Hue-Saturation Options"));
tool = (Tool *) g_malloc (sizeof (Tool));
private = (HueSaturation *) g_malloc (sizeof (HueSaturation));
@ -361,7 +363,7 @@ hue_saturation_initialize (GDisplay *gdisp)
if (! drawable_color (gimage_active_drawable (gdisp->gimage)))
{
g_message ("Hue-Saturation operates only on RGB color drawables.");
g_message (_("Hue-Saturation operates only on RGB color drawables."));
return;
}
@ -407,8 +409,8 @@ hue_saturation_free ()
/* the action area structure */
static ActionAreaItem action_items[] =
{
{ "OK", hue_saturation_ok_callback, NULL, NULL },
{ "Cancel", hue_saturation_cancel_callback, NULL, NULL }
{ N_("OK"), hue_saturation_ok_callback, NULL, NULL },
{ N_("Cancel"), hue_saturation_cancel_callback, NULL, NULL }
};
static HueSaturationDialog *
@ -430,13 +432,13 @@ hue_saturation_new_dialog ()
int i;
char *hue_partition_names[7] =
{
"Master",
"R",
"Y",
"G",
"C",
"B",
"M"
N_("Master"),
N_("R"),
N_("Y"),
N_("G"),
N_("C"),
N_("B"),
N_("M")
};
ActionCallback hue_partition_callbacks[7] =
{
@ -456,7 +458,7 @@ hue_saturation_new_dialog ()
/* The shell and main vbox */
hsd->shell = gtk_dialog_new ();
gtk_window_set_wmclass (GTK_WINDOW (hsd->shell), "hue_saturation", "Gimp");
gtk_window_set_title (GTK_WINDOW (hsd->shell), "Hue-Saturation");
gtk_window_set_title (GTK_WINDOW (hsd->shell), _("Hue-Saturation"));
/* handle the wm close signal */
gtk_signal_connect (GTK_OBJECT (hsd->shell), "delete_event",
@ -518,7 +520,7 @@ hue_saturation_new_dialog ()
vbox = gtk_vbox_new (FALSE, 2);
gtk_box_pack_start (GTK_BOX (main_hbox), vbox, FALSE, FALSE, 0);
label = gtk_label_new ("Hue / Lightness / Saturation Adjustments");
label = gtk_label_new (_("Hue / Lightness / Saturation Adjustments"));
gtk_misc_set_alignment (GTK_MISC (label), 0.5, 0.5);
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
@ -528,7 +530,7 @@ hue_saturation_new_dialog ()
gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, FALSE, 0);
/* Create the hue scale widget */
label = gtk_label_new ("Hue");
label = gtk_label_new (_("Hue"));
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);
@ -562,7 +564,7 @@ hue_saturation_new_dialog ()
/* Create the lightness scale widget */
label = gtk_label_new ("Lightness");
label = gtk_label_new (_("Lightness"));
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);
@ -596,7 +598,7 @@ hue_saturation_new_dialog ()
/* Create the saturation scale widget */
label = gtk_label_new ("Saturation");
label = gtk_label_new (_("Saturation"));
gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 2, 3,
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2);
@ -619,7 +621,7 @@ hue_saturation_new_dialog ()
hsd->saturation_text = gtk_entry_new ();
gtk_widget_set_usize (hsd->saturation_text, TEXT_WIDTH, TEXT_HEIGHT);
gtk_table_attach (GTK_TABLE (table), hsd->saturation_text, 2, 3, 2, 3,
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2);
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 3, 2);
gtk_signal_connect (GTK_OBJECT (hsd->saturation_text), "changed",
(GtkSignalFunc) hue_saturation_saturation_text_update,
hsd);
@ -634,7 +636,7 @@ hue_saturation_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), hsd->preview);
gtk_box_pack_start (GTK_BOX (hbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
@ -731,7 +733,7 @@ static void
hue_saturation_preview (HueSaturationDialog *hsd)
{
if (!hsd->image_map)
g_message ("hue_saturation_preview(): No image map");
g_message (_("hue_saturation_preview(): No image map"));
active_tool->preserve = TRUE;
image_map_apply (hsd->image_map, hue_saturation, (void *) hsd);
active_tool->preserve = FALSE;

View File

@ -27,6 +27,8 @@
#include "blob.h"
#include "gdisplay.h"
#include "libgimp/gimpintl.h"
#include "tile.h" /* ick. */
#include <math.h>
@ -163,14 +165,14 @@ create_ink_options ()
vbox = gtk_vbox_new (FALSE, 1);
/* the main label */
label = gtk_label_new ("Ink Options");
label = gtk_label_new (_("Ink Options"));
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
/* size slider */
hbox = gtk_hbox_new (FALSE, 2);
gtk_box_pack_start (GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new ("Size:");
label = gtk_label_new (_("Size:"));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 2);
adj = GTK_ADJUSTMENT (gtk_adjustment_new (3.0, 0.0, 20.0, 1.0, 5.0, 0.0));
@ -186,7 +188,7 @@ create_ink_options ()
/* sens slider */
hbox = gtk_hbox_new (FALSE, 2);
gtk_box_pack_start (GTK_BOX(vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new ("Sensitivity:");
label = gtk_label_new (_("Sensitivity:"));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 2);
adj = GTK_ADJUSTMENT (gtk_adjustment_new (1.0, 0.0, 1.0, 0.01, 0.1, 0.0));
@ -206,7 +208,7 @@ create_ink_options ()
hbox = gtk_hbox_new (FALSE, 2);
gtk_box_pack_start (GTK_BOX(vbox), hbox, FALSE, FALSE, 5);
label = gtk_label_new ("Shape:");
label = gtk_label_new (_("Shape:"));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
aspect_frame = gtk_aspect_frame_new (NULL, 0.5, 0.5, 1.0, FALSE);

View File

@ -39,6 +39,8 @@
#include "temp_buf.h"
#include "tools.h"
#include "libgimp/gimpintl.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif /* M_PI */
@ -315,13 +317,13 @@ iscissors_selection_options (void)
vbox = gtk_vbox_new (FALSE, 1);
/* the main label */
label = gtk_label_new ("Intelligent Scissors Options");
label = gtk_label_new (_("Intelligent Scissors Options"));
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
/* the antialias toggle button */
antialias_toggle = gtk_check_button_new_with_label ("Antialiasing");
antialias_toggle = gtk_check_button_new_with_label (_("Antialiasing"));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON(antialias_toggle),
options->antialias);
gtk_box_pack_start (GTK_BOX (vbox), antialias_toggle, FALSE, FALSE, 0);
@ -331,7 +333,7 @@ iscissors_selection_options (void)
gtk_widget_show (antialias_toggle);
/* the feather toggle button */
feather_toggle = gtk_check_button_new_with_label ("Feather");
feather_toggle = gtk_check_button_new_with_label (_("Feather"));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON(feather_toggle),
options->feather);
gtk_box_pack_start (GTK_BOX (vbox), feather_toggle, FALSE, FALSE, 0);
@ -344,7 +346,7 @@ iscissors_selection_options (void)
hbox = gtk_hbox_new (FALSE, 1);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new ("Feather Radius");
label = gtk_label_new (_("Feather Radius: "));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
@ -364,7 +366,7 @@ iscissors_selection_options (void)
hbox = gtk_hbox_new (FALSE, 1);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new ("Curve Resolution");
label = gtk_label_new (_("Curve Resolution: "));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
@ -384,7 +386,7 @@ iscissors_selection_options (void)
hbox = gtk_hbox_new (FALSE, 1);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new ("Edge Detect Thresh.");
label = gtk_label_new (_("Edge Detect Threshold: "));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
@ -404,7 +406,7 @@ iscissors_selection_options (void)
hbox = gtk_hbox_new (FALSE, 1);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new ("Elasticity.");
label = gtk_label_new (_("Elasticity: "));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
@ -422,7 +424,7 @@ iscissors_selection_options (void)
/* the convert to bezier button */
convert_button = gtk_button_new_with_label ("Convert to Bezier Curve");
convert_button = gtk_button_new_with_label (_("Convert to Bezier Curve"));
gtk_box_pack_start (GTK_BOX (vbox), convert_button, TRUE, TRUE, 0);
gtk_signal_connect(GTK_OBJECT (convert_button) , "clicked",
(GtkSignalFunc) selection_to_bezier,
@ -952,7 +954,7 @@ add_segment (int *num_segs,
segs = (GdkSegment *) g_realloc ((void *) segs, sizeof (GdkSegment) * max_segs);
if (!segs)
fatal_error ("Unable to reallocate segment array in iscissors.");
fatal_error (_("Unable to reallocate segment array in iscissors."));
}
if (*num_segs)
@ -995,7 +997,7 @@ add_point (int *num_pts,
pts = (Point *) g_realloc ((void *) pts, sizeof (Point) * max_pts);
if (!pts)
fatal_error ("Unable to reallocate points array in iscissors.");
fatal_error (_("Unable to reallocate points array in iscissors."));
}
pts[*num_pts].x = x;
@ -1799,7 +1801,7 @@ bezierify_boundary (Tool *tool)
if (iscissors->num_pts < 4)
{
g_message ("Boundary contains < 4 points! Cannot bezierify.");
g_message (_("Boundary contains < 4 points! Cannot bezierify."));
return;
}

View File

@ -24,6 +24,7 @@
#include "rect_select.h"
#include "rect_selectP.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#define NO 0
@ -198,7 +199,7 @@ create_selection_options (ToolType tool_type)
hbox = gtk_hbox_new (TRUE, 5);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new (_(" Width: "));
label = gtk_label_new (_("Width: "));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
adj = (GtkAdjustment *) gtk_adjustment_new (options->fixed_width, 1.0,
32767.0, 1.0, 50.0, 0.0);
@ -216,7 +217,7 @@ create_selection_options (ToolType tool_type)
hbox = gtk_hbox_new (TRUE, 5);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new (_(" Height: "));
label = gtk_label_new (_("Height: "));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
adj = (GtkAdjustment *) gtk_adjustment_new (options->fixed_height, 1.0,
32767.0, 1.0, 50.0, 0.0);
@ -246,7 +247,7 @@ create_selection_options (ToolType tool_type)
hbox = gtk_hbox_new (FALSE, 1);
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
label = gtk_label_new (_("Feather Radius"));
label = gtk_label_new (_("Feather Radius: "));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);

View File

@ -181,7 +181,7 @@ init_text_options(TextToolOptions *options)
/* Create the border hbox, border spinner, and label */
hbox = gtk_hbox_new(FALSE, 2);
label = gtk_label_new (_("Border"));
label = gtk_label_new (_("Border: "));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0);
gtk_widget_show(label);

View File

@ -57,6 +57,7 @@
#include "tools.h"
#include "transform_tool.h"
#include "config.h"
#include "libgimp/gimpintl.h"
#include "pixmaps2.h"

View File

@ -111,7 +111,10 @@ static ActionAreaItem action_items[2] =
static char *action_labels[4] =
{
N_("Rotate"), N_("Scale"), N_("Shear"), N_("Transform")
N_("Rotate"),
N_("Scale"),
N_("Shear"),
N_("Transform")
};
void

View File

@ -27,6 +27,7 @@
#include "transform_core.h"
#include "transform_tool.h"
#include "config.h"
#include "libgimp/gimpintl.h"
typedef struct _TransformOptions TransformOptions;
@ -161,7 +162,7 @@ create_transform_options (void)
for (i = 0; i < 4; i++)
{
radio_button =
gtk_radio_button_new_with_label (group, transform_button_names[i]);
gtk_radio_button_new_with_label (group, gettext(transform_button_names[i]));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (radio_button));
gtk_box_pack_start (GTK_BOX (radio_box), radio_button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (radio_button), "toggled",
@ -200,7 +201,7 @@ create_transform_options (void)
for (i = 0; i < 2; i++)
{
radio_button =
gtk_radio_button_new_with_label (group, direction_button_names[i]);
gtk_radio_button_new_with_label (group, gettext(direction_button_names[i]));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (radio_button));
gtk_box_pack_start (GTK_BOX (radio_box), radio_button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (radio_button), "toggled",

View File

@ -111,7 +111,10 @@ static ActionAreaItem action_items[2] =
static char *action_labels[4] =
{
N_("Rotate"), N_("Scale"), N_("Shear"), N_("Transform")
N_("Rotate"),
N_("Scale"),
N_("Shear"),
N_("Transform")
};
void

View File

@ -27,6 +27,7 @@
#include "transform_core.h"
#include "transform_tool.h"
#include "config.h"
#include "libgimp/gimpintl.h"
typedef struct _TransformOptions TransformOptions;
@ -161,7 +162,7 @@ create_transform_options (void)
for (i = 0; i < 4; i++)
{
radio_button =
gtk_radio_button_new_with_label (group, transform_button_names[i]);
gtk_radio_button_new_with_label (group, gettext(transform_button_names[i]));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (radio_button));
gtk_box_pack_start (GTK_BOX (radio_box), radio_button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (radio_button), "toggled",
@ -200,7 +201,7 @@ create_transform_options (void)
for (i = 0; i < 2; i++)
{
radio_button =
gtk_radio_button_new_with_label (group, direction_button_names[i]);
gtk_radio_button_new_with_label (group, gettext(direction_button_names[i]));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (radio_button));
gtk_box_pack_start (GTK_BOX (radio_box), radio_button, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (radio_button), "toggled",

View File

@ -26,6 +26,7 @@
#include "interface.h"
#include "gimprc.h"
#include "config.h"
#include "libgimp/gimpintl.h"
static void install_run (InstallCallback);

View File

@ -168,6 +168,9 @@
#include "session.h"
#include "gradient_header.h"
#include "config.h"
#include "libgimp/gimpintl.h"
/***** Magic numbers *****/
#ifndef M_PI
@ -395,17 +398,17 @@ gradient_t *grad_default_gradient = NULL;
gradient_editor_t *g_editor = NULL; /* The gradient editor */
static char *blending_types[] = {
"Linear",
"Curved",
"Sinusoidal",
"Spherical (increasing)",
"Spherical (decreasing)"
N_("Linear"),
N_("Curved"),
N_("Sinusoidal"),
N_("Spherical (increasing)"),
N_("Spherical (decreasing)")
}; /* blending_types */
static char *coloring_types[] = {
"Plain RGB",
"HSV (counter-clockwise hue)",
"HSV (clockwise hue)"
N_("Plain RGB"),
N_("HSV (counter-clockwise hue)"),
N_("HSV (clockwise hue)")
}; /* coloring_types */
@ -426,7 +429,7 @@ gradients_init(int no_data)
curr_gradient = (gradient_t *) gradients_list->data;
else {
curr_gradient = grad_create_default_gradient();
curr_gradient->name = g_strdup("Default");
curr_gradient->name = g_strdup(_("Default"));
curr_gradient->filename = build_user_filename(curr_gradient->name, gradient_path);
curr_gradient->dirty = FALSE;
@ -502,7 +505,7 @@ grad_get_color_at(double pos, double *r, double *g, double *b, double *a)
default:
grad_dump_gradient(curr_gradient, stderr);
fatal_error("grad_get_color_at(): aieee, unknown gradient type %d", (int) seg->type);
fatal_error(_("grad_get_color_at(): aieee, unknown gradient type %d"), (int) seg->type);
factor = 0.0; /* Shut up -Wall */
break;
} /* switch */
@ -555,7 +558,7 @@ grad_get_color_at(double pos, double *r, double *g, double *b, double *a)
default:
grad_dump_gradient(curr_gradient, stderr);
fatal_error("grad_get_color_at(): aieee, unknown coloring mode %d",
fatal_error(_("grad_get_color_at(): aieee, unknown coloring mode %d"),
(int) seg->color);
break;
} /* switch */
@ -617,7 +620,7 @@ grad_create_gradient_editor_init(gint need_show)
g_editor->shell = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_wmclass (GTK_WINDOW(g_editor->shell), "gradient_editor", "Gimp");
gtk_container_border_width(GTK_CONTAINER(g_editor->shell), 0);
gtk_window_set_title(GTK_WINDOW(g_editor->shell), "Gradient Editor");
gtk_window_set_title(GTK_WINDOW(g_editor->shell), _("Gradient Editor"));
/* handle window manager close signals */
gtk_signal_connect (GTK_OBJECT (g_editor->shell), "delete_event",
@ -646,7 +649,7 @@ grad_create_gradient_editor_init(gint need_show)
GTK_EXPAND | GTK_FILL, GTK_FILL, 8, 2);
gtk_widget_show(g_editor->hint_label);
button = ed_create_button("Close", 0.5, 0.5, (GtkSignalFunc) ed_close_callback, NULL);
button = ed_create_button(N_("Close"), 0.5, 0.5, (GtkSignalFunc) ed_close_callback, NULL);
gtk_widget_set_usize(button, GRAD_CLOSE_BUTTON_WIDTH, 0);
gtk_table_attach(GTK_TABLE(table), button, 1, 2, 0, 2, GTK_FILL, GTK_EXPAND | GTK_FILL, 8, 0);
gtk_widget_show(button);
@ -660,7 +663,7 @@ grad_create_gradient_editor_init(gint need_show)
/* Gradients list box */
label = gtk_label_new("Gradients");
label = gtk_label_new(_("Gradients: "));
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
gtk_widget_show(label);
@ -680,8 +683,8 @@ grad_create_gradient_editor_init(gint need_show)
gtk_clist_set_row_height(GTK_CLIST(g_editor->clist), 18);
gtk_clist_set_column_width(GTK_CLIST(g_editor->clist), 0, 52);
gtk_clist_set_column_title(GTK_CLIST(g_editor->clist), 0, "Gradient");
gtk_clist_set_column_title(GTK_CLIST(g_editor->clist), 1, "Name");
gtk_clist_set_column_title(GTK_CLIST(g_editor->clist), 0, _("Gradient"));
gtk_clist_set_column_title(GTK_CLIST(g_editor->clist), 1, _("Name"));
gtk_clist_column_titles_show(GTK_CLIST(g_editor->clist));
gtk_box_pack_start(GTK_BOX(hbox), scrolled_win, TRUE, TRUE, 0);
@ -710,37 +713,37 @@ grad_create_gradient_editor_init(gint need_show)
/* Buttons for gradient functions */
button = ed_create_button("New gradient", 0.0, 0.5,
button = ed_create_button(N_("New gradient"), 0.0, 0.5,
(GtkSignalFunc) ed_new_gradient_callback, NULL);
gtk_box_pack_start(GTK_BOX(gvbox), button, TRUE, TRUE, 0);
gtk_widget_show(button);
button = ed_create_button("Copy gradient", 0.0, 0.5,
button = ed_create_button(N_("Copy gradient"), 0.0, 0.5,
(GtkSignalFunc) ed_copy_gradient_callback, NULL);
gtk_box_pack_start(GTK_BOX(gvbox), button, TRUE, TRUE, 0);
gtk_widget_show(button);
button = ed_create_button("Delete gradient", 0.0, 0.5,
button = ed_create_button(N_("Delete gradient"), 0.0, 0.5,
(GtkSignalFunc) ed_delete_gradient_callback, NULL);
gtk_box_pack_start(GTK_BOX(gvbox), button, TRUE, TRUE, 0);
gtk_widget_show(button);
button = ed_create_button("Save as POV-Ray", 0.0, 0.5,
button = ed_create_button(N_("Save as POV-Ray"), 0.0, 0.5,
(GtkSignalFunc) ed_save_pov_callback, NULL);
gtk_box_pack_start(GTK_BOX(gvbox), button, TRUE, TRUE, 0);
gtk_widget_show(button);
button = ed_create_button("Save Gradients", 0.0, 0.5,
button = ed_create_button(N_("Save Gradients"), 0.0, 0.5,
(GtkSignalFunc) ed_save_grads_callback, NULL);
gtk_box_pack_start(GTK_BOX(gvbox), button, TRUE, TRUE, 0);
gtk_widget_show(button);
button = ed_create_button("Rename Gradient", 0.0, 0.5,
button = ed_create_button(N_("Rename Gradient"), 0.0, 0.5,
(GtkSignalFunc) ed_rename_grads_callback, NULL);
gtk_box_pack_start(GTK_BOX(gvbox), button, TRUE, TRUE, 0);
gtk_widget_show(button);
button = ed_create_button("Refresh gradients", 0.0, 0.5,
button = ed_create_button(N_("Refresh gradients"), 0.0, 0.5,
(GtkSignalFunc) ed_refresh_callback, NULL);
gtk_box_pack_start(GTK_BOX(gvbox), button, TRUE, TRUE, 0);
gtk_widget_show(button);
@ -754,15 +757,15 @@ grad_create_gradient_editor_init(gint need_show)
/* Zoom buttons */
button = ed_create_button("Zoom all", 0.5, 0.5, (GtkSignalFunc) ed_zoom_all_callback, g_editor);
button = ed_create_button(N_("Zoom all"), 0.5, 0.5, (GtkSignalFunc) ed_zoom_all_callback, g_editor);
gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0);
gtk_widget_show(button);
button = ed_create_button("Zoom -", 0.5, 0.5, (GtkSignalFunc) ed_zoom_out_callback, g_editor);
button = ed_create_button(N_("Zoom -"), 0.5, 0.5, (GtkSignalFunc) ed_zoom_out_callback, g_editor);
gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0);
gtk_widget_show(button);
button = ed_create_button("Zoom +", 0.5, 0.5, (GtkSignalFunc) ed_zoom_in_callback, g_editor);
button = ed_create_button(N_("Zoom +"), 0.5, 0.5, (GtkSignalFunc) ed_zoom_in_callback, g_editor);
gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0);
gtk_widget_show(button);
@ -791,7 +794,7 @@ grad_create_gradient_editor_init(gint need_show)
g_editor->instant_update = 1;
button = gtk_check_button_new_with_label("Instant update");
button = gtk_check_button_new_with_label(_("Instant update"));
gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0);
gtk_signal_connect(GTK_OBJECT(button), "toggled",
(GtkSignalFunc) ed_instant_update_update,
@ -964,7 +967,7 @@ ed_create_button(gchar *label, double xalign, double yalign, GtkSignalFunc signa
GtkWidget *text;
button = gtk_button_new();
text = gtk_label_new(label);
text = gtk_label_new(gettext(label));
gtk_misc_set_alignment(GTK_MISC(text), xalign, yalign);
gtk_container_add(GTK_CONTAINER(button), text);
@ -1251,9 +1254,9 @@ ed_close_callback(GtkWidget *widget, gpointer client_data)
static void
ed_new_gradient_callback(GtkWidget *widget, gpointer client_data)
{
query_string_box("New gradient",
"Enter a name for the new gradient",
"untitled",
query_string_box(_("New gradient"),
_("Enter a name for the new gradient"),
_("untitled"),
ed_do_new_gradient_callback, NULL);
} /* ed_new_gradient_callback */
@ -1270,7 +1273,7 @@ ed_do_new_gradient_callback(GtkWidget *widget, gpointer client_data, gpointer ca
gradient_name = (char *) call_data;
if (!gradient_name) {
g_message ("ed_do_new_gradient_callback(): oops, received NULL in call_data");
g_message (_("ed_do_new_gradient_callback(): oops, received NULL in call_data"));
return;
} /* if */
@ -1309,7 +1312,7 @@ ed_do_rename_gradient_callback(GtkWidget *widget, gpointer client_data, gpointer
gradient_name = (char *) call_data;
if (!gradient_name) {
g_message ("ed_do_rename_gradient_callback(): oops, received NULL in call_data");
g_message (_("ed_do_rename_gradient_callback(): oops, received NULL in call_data"));
return;
} /* if */
@ -1327,7 +1330,7 @@ ed_do_rename_gradient_callback(GtkWidget *widget, gpointer client_data, gpointer
} /* while */
if (!grad || !grad_list) {
g_message ("ed_do_rename_gradient_callback(): oops, can't find gradient to rename");
g_message (_("ed_do_rename_gradient_callback(): oops, can't find gradient to rename"));
return;
} /* if */
@ -1360,10 +1363,10 @@ ed_copy_gradient_callback(GtkWidget *widget, gpointer client_data)
name = g_malloc((strlen(curr_gradient->name) + 6) * sizeof(char));
sprintf(name, "%s copy", curr_gradient->name);
sprintf(name, _("%s copy"), curr_gradient->name);
query_string_box("Copy gradient",
"Enter a name for the copied gradient",
query_string_box(_("Copy gradient"),
_("Enter a name for the copied gradient"),
name,
ed_do_copy_gradient_callback, NULL);
@ -1384,7 +1387,7 @@ ed_do_copy_gradient_callback(GtkWidget *widget, gpointer client_data, gpointer c
gradient_name = (char *) call_data;
if (!gradient_name) {
g_message ("ed_do_copy_gradient_callback(): oops, received NULL in call_data");
g_message (_("ed_do_copy_gradient_callback(): oops, received NULL in call_data"));
return;
} /* if */
@ -1449,7 +1452,7 @@ ed_delete_gradient_callback(GtkWidget *widget, gpointer client_data)
return;
dialog = gtk_dialog_new();
gtk_window_set_title(GTK_WINDOW(dialog), "Delete gradient");
gtk_window_set_title(GTK_WINDOW(dialog), _("Delete gradient"));
gtk_window_position(GTK_WINDOW(dialog), GTK_WIN_POS_MOUSE);
gtk_container_border_width(GTK_CONTAINER(dialog), 0);
@ -1461,13 +1464,13 @@ ed_delete_gradient_callback(GtkWidget *widget, gpointer client_data)
/* Question */
label = gtk_label_new("Are you sure you want to delete");
label = gtk_label_new(_("Are you sure you want to delete"));
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
gtk_widget_show(label);
str = g_malloc((strlen(curr_gradient->name) + 32 * sizeof(char)));
sprintf(str, "\"%s\" from the list and from disk?", curr_gradient->name);
sprintf(str, _("\"%s\" from the list and from disk?"), curr_gradient->name);
label = gtk_label_new(str);
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
@ -1478,7 +1481,7 @@ ed_delete_gradient_callback(GtkWidget *widget, gpointer client_data)
/* Buttons */
button = ed_create_button("Delete", 0.5, 0.5,
button = ed_create_button(N_("Delete"), 0.5, 0.5,
(GtkSignalFunc) ed_do_delete_gradient_callback,
(gpointer) dialog);
GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
@ -1487,7 +1490,7 @@ ed_delete_gradient_callback(GtkWidget *widget, gpointer client_data)
gtk_widget_grab_default(button);
gtk_widget_show(button);
button = ed_create_button("Cancel", 0.5, 0.5,
button = ed_create_button(N_("Cancel"), 0.5, 0.5,
(GtkSignalFunc) ed_cancel_delete_gradient_callback,
(gpointer) dialog);
GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
@ -1536,7 +1539,7 @@ ed_do_delete_gradient_callback(GtkWidget *widget, gpointer client_data)
} /* while */
if (tmp == NULL)
fatal_error("ed_do_delete_gradient_callback(): aieee, could not find gradient to delete!");
fatal_error(_("ed_do_delete_gradient_callback(): aieee, could not find gradient to delete!"));
/* Delete gradient from gradients list */
@ -1592,8 +1595,8 @@ ed_rename_grads_callback(GtkWidget *widget, gpointer client_data)
if(curr_gradient == NULL)
return;
query_string_box("Rename gradient",
"Enter a new name for the gradient",
query_string_box(_("Rename gradient"),
_("Enter a new name for the gradient"),
curr_gradient->name,
ed_do_rename_gradient_callback, curr_gradient);
}
@ -1607,7 +1610,7 @@ ed_save_pov_callback(GtkWidget *widget, gpointer client_data)
if (curr_gradient == NULL) return;
window = gtk_file_selection_new("Save as POV-Ray");
window = gtk_file_selection_new(_("Save as POV-Ray"));
gtk_window_position(GTK_WINDOW(window), GTK_WIN_POS_MOUSE);
gtk_signal_connect(GTK_OBJECT(GTK_FILE_SELECTION(window)->ok_button),
@ -1665,7 +1668,7 @@ ed_do_save_pov_callback(GtkWidget *widget, gpointer client_data)
file = fopen(filename, "wb");
if (!file)
g_message ("ed_do_save_pov_callback(): oops, could not open \"%s\"", filename);
g_message (_("ed_do_save_pov_callback(): oops, could not open \"%s\""), filename);
else {
fprintf(file, "/* color_map file created by the GIMP */\n");
fprintf(file, "/* http://www.gimp.org/ */\n");
@ -1727,7 +1730,7 @@ ed_scrollbar_update(GtkAdjustment *adjustment, gpointer data)
{
char str[256];
sprintf(str, "Zoom factor: %d:1 Displaying [%0.6f, %0.6f]",
sprintf(str, _("Zoom factor: %d:1 Displaying [%0.6f, %0.6f]"),
g_editor->zoom_factor, adjustment->value, adjustment->value + adjustment->page_size);
ed_set_hint(str);
@ -1931,10 +1934,10 @@ prev_set_hint(gint x)
calc_rgb_to_hsv(&h, &s, &v);
sprintf(str, "Position: %0.6f "
sprintf(str, _("Position: %0.6f "
"RGB (%0.3f, %0.3f, %0.3f) "
"HSV (%0.3f, %0.3f, %0.3f) "
"Opacity: %0.3f",
"Opacity: %0.3f"),
xpos, r, g, b, h * 360.0, s, v, a);
ed_set_hint(str);
@ -1955,7 +1958,7 @@ prev_set_foreground(gint x)
palette_set_foreground(r * 255.0, g * 255.0, b * 255.0);
sprintf(str, "Foreground color set to RGB (%d, %d, %d) <-> (%0.3f, %0.3f, %0.3f)",
sprintf(str, _("Foreground color set to RGB (%d, %d, %d) <-> (%0.3f, %0.3f, %0.3f)"),
(int) (r * 255.0),
(int) (g * 255.0),
(int) (b * 255.0),
@ -2244,28 +2247,28 @@ control_do_hint(gint x, gint y)
case GRAD_DRAG_LEFT:
if (seg != NULL) {
if (seg->prev != NULL)
ed_set_hint("Drag: move Shift+drag: move & compress");
ed_set_hint(_("Drag: move Shift+drag: move & compress"));
else
ed_set_hint("Click: select Shift+click: extend selection");
ed_set_hint(_("Click: select Shift+click: extend selection"));
} else
ed_set_hint("Click: select Shift+click: extend selection");
ed_set_hint(_("Click: select Shift+click: extend selection"));
break;
case GRAD_DRAG_MIDDLE:
ed_set_hint("Click: select Shift+click: extend selection "
"Drag: move");
ed_set_hint(_("Click: select Shift+click: extend selection "
"Drag: move"));
break;
default:
g_message ("control_do_hint: oops, in_handle is true "
"yet we got handle type %d", (int) handle);
g_message (_("control_do_hint: oops, in_handle is true "
"yet we got handle type %d"), (int) handle);
break;
} /* switch */
} else
ed_set_hint("Click: select Shift+click: extend selection "
"Drag: move Shift+drag: move & compress");
ed_set_hint(_("Click: select Shift+click: extend selection "
"Drag: move Shift+drag: move & compress"));
} /* control_do_hint */
@ -2363,8 +2366,8 @@ control_button_press(gint x, gint y, guint button, guint state)
return;
default:
g_message ("control_button_press(): oops, in_handle is true "
"yet we got handle type %d", (int) handle);
g_message (_("control_button_press(): oops, in_handle is true "
"yet we got handle type %d"), (int) handle);
return;
} /* switch */
else {
@ -2407,7 +2410,7 @@ control_point_in_handle(gint x, gint y, grad_segment_t *seg, control_drag_mode_t
break;
default:
g_message ("control_point_in_handle(): oops, can not handle drag mode %d",
g_message (_("control_point_in_handle(): oops, can not handle drag mode %d"),
(int) handle);
return 0;
} /* switch */
@ -2468,7 +2471,7 @@ control_motion(gint x)
g_editor->control_sel_r,
seg, pos);
sprintf(str, "Handle position: %0.6f", seg->left);
sprintf(str, _("Handle position: %0.6f"), seg->left);
ed_set_hint(str);
break;
@ -2477,7 +2480,7 @@ control_motion(gint x)
pos = control_calc_g_pos(x);
seg->middle = BOUNDS(pos, seg->left + EPSILON, seg->right - EPSILON);
sprintf(str, "Handle position: %0.6f", seg->middle);
sprintf(str, _("Handle position: %0.6f"), seg->middle);
ed_set_hint(str);
break;
@ -2494,14 +2497,14 @@ control_motion(gint x)
g_editor->control_last_gx += delta;
sprintf(str, "Distance: %0.6f",
sprintf(str, _("Distance: %0.6f"),
g_editor->control_last_gx - g_editor->control_orig_pos);
ed_set_hint(str);
break;
default:
fatal_error("control_motion(): aieee, attempt to move bogus handle %d",
fatal_error(_("control_motion(): aieee, attempt to move bogus handle %d"),
(int) g_editor->control_drag_mode);
break;
} /* switch */
@ -2954,7 +2957,7 @@ cpopup_create_main_menu(void)
/* Left endpoint */
menuitem = cpopup_create_color_item(&g_editor->left_color_preview, &label);
gtk_label_set(GTK_LABEL(label), "Left endpoint's color");
gtk_label_set(GTK_LABEL(label), _("Left endpoint's color"));
gtk_signal_connect(GTK_OBJECT(menuitem), "activate",
(GtkSignalFunc) cpopup_set_left_color_callback,
NULL);
@ -2966,11 +2969,11 @@ cpopup_create_main_menu(void)
'L', 0,
GTK_ACCEL_VISIBLE | GTK_ACCEL_LOCKED);
menuitem = gtk_menu_item_new_with_label("Load from");
menuitem = gtk_menu_item_new_with_label(_("Load from"));
g_editor->control_left_load_popup = cpopup_create_load_menu(g_editor->left_load_color_boxes,
g_editor->left_load_labels,
"Left neighbor's right endpoint",
"Right endpoint",
_("Left neighbor's right endpoint"),
_("Right endpoint"),
(GtkSignalFunc)
cpopup_load_left_callback,
'L', GDK_CONTROL_MASK,
@ -2980,7 +2983,7 @@ cpopup_create_main_menu(void)
gtk_menu_append(GTK_MENU(menu), menuitem);
gtk_widget_show(menuitem);
menuitem = gtk_menu_item_new_with_label("Save to");
menuitem = gtk_menu_item_new_with_label(_("Save to"));
g_editor->control_left_save_popup = cpopup_create_save_menu(g_editor->left_save_color_boxes,
g_editor->left_save_labels,
(GtkSignalFunc)
@ -2996,7 +2999,7 @@ cpopup_create_main_menu(void)
gtk_widget_show(menuitem);
menuitem = cpopup_create_color_item(&g_editor->right_color_preview, &label);
gtk_label_set(GTK_LABEL(label), "Right endpoint's color");
gtk_label_set(GTK_LABEL(label), _("Right endpoint's color"));
gtk_signal_connect(GTK_OBJECT(menuitem), "activate",
(GtkSignalFunc) cpopup_set_right_color_callback,
NULL);
@ -3008,11 +3011,11 @@ cpopup_create_main_menu(void)
'R', 0,
GTK_ACCEL_VISIBLE | GTK_ACCEL_LOCKED);
menuitem = gtk_menu_item_new_with_label("Load from");
menuitem = gtk_menu_item_new_with_label(_("Load from"));
g_editor->control_right_load_popup = cpopup_create_load_menu(g_editor->right_load_color_boxes,
g_editor->right_load_labels,
"Right neighbor's left endpoint",
"Left endpoint",
_("Right neighbor's left endpoint"),
_("Left endpoint"),
(GtkSignalFunc)
cpopup_load_right_callback,
'R', GDK_CONTROL_MASK,
@ -3022,7 +3025,7 @@ cpopup_create_main_menu(void)
gtk_menu_append(GTK_MENU(menu), menuitem);
gtk_widget_show(menuitem);
menuitem = gtk_menu_item_new_with_label("Save to");
menuitem = gtk_menu_item_new_with_label(_("Save to"));
g_editor->control_right_save_popup = cpopup_create_save_menu(g_editor->right_save_color_boxes,
g_editor->right_save_labels,
(GtkSignalFunc)
@ -3134,7 +3137,7 @@ cpopup_create_main_menu(void)
gtk_menu_append(GTK_MENU(menu), menuitem);
gtk_widget_show(menuitem);
menuitem = gtk_menu_item_new_with_label("Selection operations");
menuitem = gtk_menu_item_new_with_label(_("Selection operations"));
g_editor->control_sel_ops_popup = cpopup_create_sel_ops_menu();
gtk_menu_item_set_submenu(GTK_MENU_ITEM(menuitem), g_editor->control_sel_ops_popup);
gtk_menu_append(GTK_MENU(menu), menuitem);
@ -3287,42 +3290,42 @@ cpopup_adjust_menus(void)
if (g_editor->control_sel_l == g_editor->control_sel_r) {
gtk_label_set(GTK_LABEL(g_editor->control_blending_label),
"Blending function for segment");
_("Blending function for segment"));
gtk_label_set(GTK_LABEL(g_editor->control_coloring_label),
"Coloring type for segment");
_("Coloring type for segment"));
gtk_label_set(GTK_LABEL(g_editor->control_splitm_label),
"Split segment at midpoint");
_("Split segment at midpoint"));
gtk_label_set(GTK_LABEL(g_editor->control_splitu_label),
"Split segment uniformly");
_("Split segment uniformly"));
gtk_label_set(GTK_LABEL(g_editor->control_delete_label),
"Delete segment");
_("Delete segment"));
gtk_label_set(GTK_LABEL(g_editor->control_recenter_label),
"Re-center segment's midpoint");
_("Re-center segment's midpoint"));
gtk_label_set(GTK_LABEL(g_editor->control_redistribute_label),
"Re-distribute handles in segment");
_("Re-distribute handles in segment"));
gtk_label_set(GTK_LABEL(g_editor->control_flip_label),
"Flip segment");
_("Flip segment"));
gtk_label_set(GTK_LABEL(g_editor->control_replicate_label),
"Replicate segment");
_("Replicate segment"));
} else {
gtk_label_set(GTK_LABEL(g_editor->control_blending_label),
"Blending function for selection");
_("Blending function for selection"));
gtk_label_set(GTK_LABEL(g_editor->control_coloring_label),
"Coloring type for selection");
_("Coloring type for selection"));
gtk_label_set(GTK_LABEL(g_editor->control_splitm_label),
"Split segments at midpoints");
_("Split segments at midpoints"));
gtk_label_set(GTK_LABEL(g_editor->control_splitu_label),
"Split segments uniformly");
_("Split segments uniformly"));
gtk_label_set(GTK_LABEL(g_editor->control_delete_label),
"Delete selection");
_("Delete selection"));
gtk_label_set(GTK_LABEL(g_editor->control_recenter_label),
"Re-center midpoints in selection");
_("Re-center midpoints in selection"));
gtk_label_set(GTK_LABEL(g_editor->control_redistribute_label),
"Re-distribute handles in selection");
_("Re-distribute handles in selection"));
gtk_label_set(GTK_LABEL(g_editor->control_flip_label),
"Flip selection");
_("Flip selection"));
gtk_label_set(GTK_LABEL(g_editor->control_replicate_label),
"Replicate selection");
_("Replicate selection"));
} /* else */
/* Adjust blending and coloring menus */
@ -3634,7 +3637,7 @@ cpopup_create_load_menu(GtkWidget **color_boxes, GtkWidget **labels,
gtk_label_set(GTK_LABEL(labels[0]), label1);
gtk_label_set(GTK_LABEL(labels[1]), label2);
gtk_label_set(GTK_LABEL(labels[2]), "FG color");
gtk_label_set(GTK_LABEL(labels[2]), _("FG color"));
return menu;
} /* cpopup_create_load_menu */
@ -3679,7 +3682,7 @@ cpopup_update_saved_color(int n, double r, double g, double b, double a)
cpopup_render_color_box(GTK_PREVIEW(g_editor->right_save_color_boxes[n]),
r, g, b, a);
sprintf(str, "RGBA (%0.3f, %0.3f, %0.3f, %0.3f)", r, g, b, a);
sprintf(str, _("RGBA (%0.3f, %0.3f, %0.3f, %0.3f)"), r, g, b, a);
gtk_label_set(GTK_LABEL(g_editor->left_load_labels[n + 3]), str);
gtk_label_set(GTK_LABEL(g_editor->left_save_labels[n]), str);
@ -3937,9 +3940,9 @@ cpopup_create_coloring_menu(void)
for (i = 0; i < num_items; i++) {
if (i == (num_items - 1))
menuitem = gtk_radio_menu_item_new_with_label(group, "(Varies)");
menuitem = gtk_radio_menu_item_new_with_label(group, _("(Varies)"));
else
menuitem = gtk_radio_menu_item_new_with_label(group, coloring_types[i]);
menuitem = gtk_radio_menu_item_new_with_label(group, gettext(coloring_types[i]));
group = gtk_radio_menu_item_group(GTK_RADIO_MENU_ITEM(menuitem));
@ -4035,7 +4038,7 @@ cpopup_create_sel_ops_menu(void)
gtk_menu_append(GTK_MENU(menu), menuitem);
gtk_widget_show(menuitem);
menuitem = gtk_menu_item_new_with_label("Blend endpoints' colors");
menuitem = gtk_menu_item_new_with_label(_("Blend endpoints' colors"));
gtk_signal_connect(GTK_OBJECT(menuitem), "activate",
(GtkSignalFunc) cpopup_blend_colors,
NULL);
@ -4048,7 +4051,7 @@ cpopup_create_sel_ops_menu(void)
'B', 0,
GTK_ACCEL_VISIBLE | GTK_ACCEL_LOCKED);
menuitem = gtk_menu_item_new_with_label("Blend endpoints' opacity");
menuitem = gtk_menu_item_new_with_label(_("Blend endpoints' opacity"));
gtk_signal_connect(GTK_OBJECT(menuitem), "activate",
(GtkSignalFunc) cpopup_blend_opacity,
NULL);
@ -4281,7 +4284,7 @@ cpopup_set_left_color_callback(GtkWidget *widget, gpointer data)
g_editor->left_saved_dirty = curr_gradient->dirty;
g_editor->left_saved_segments = cpopup_save_selection();
cpopup_create_color_dialog("Left endpoint color",
cpopup_create_color_dialog(_("Left endpoint color"),
g_editor->control_sel_l->r0,
g_editor->control_sel_l->g0,
g_editor->control_sel_l->b0,
@ -4382,7 +4385,7 @@ cpopup_set_right_color_callback(GtkWidget *widget, gpointer data)
g_editor->right_saved_dirty = curr_gradient->dirty;
g_editor->right_saved_segments = cpopup_save_selection();
cpopup_create_color_dialog("Right endpoint color",
cpopup_create_color_dialog(_("Right endpoint color"),
g_editor->control_sel_r->r1,
g_editor->control_sel_r->g1,
g_editor->control_sel_r->b1,
@ -4515,8 +4518,8 @@ cpopup_split_uniform_callback(GtkWidget *widget, gpointer data)
dialog = gtk_dialog_new();
gtk_window_set_title(GTK_WINDOW(dialog),
(g_editor->control_sel_l == g_editor->control_sel_r) ?
"Split segment uniformly" :
"Split segments uniformly");
_("Split segment uniformly") :
_("Split segments uniformly"));
gtk_window_position(GTK_WINDOW(dialog), GTK_WIN_POS_MOUSE);
gtk_container_border_width(GTK_CONTAINER(dialog), 0);
@ -4528,14 +4531,14 @@ cpopup_split_uniform_callback(GtkWidget *widget, gpointer data)
/* Instructions */
label = gtk_label_new("Please select the number of uniform parts");
label = gtk_label_new(_("Please select the number of uniform parts"));
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
gtk_widget_show(label);
label = gtk_label_new((g_editor->control_sel_l == g_editor->control_sel_r) ?
"in which you want to split the selected segment" :
"in which you want to split the segments in the selection");
_("in which you want to split the selected segment") :
_("in which you want to split the segments in the selection"));
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
gtk_widget_show(label);
@ -4557,7 +4560,7 @@ cpopup_split_uniform_callback(GtkWidget *widget, gpointer data)
/* Buttons */
button = ed_create_button("Split", 0.5, 0.5,
button = ed_create_button(N_("Split"), 0.5, 0.5,
(GtkSignalFunc) cpopup_split_uniform_split_callback,
(gpointer) dialog);
GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
@ -4566,7 +4569,7 @@ cpopup_split_uniform_callback(GtkWidget *widget, gpointer data)
gtk_widget_grab_default(button);
gtk_widget_show(button);
button = ed_create_button("Cancel", 0.5, 0.5,
button = ed_create_button(N_("Cancel"), 0.5, 0.5,
(GtkSignalFunc) cpopup_split_uniform_cancel_callback,
(gpointer) dialog);
GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
@ -4870,8 +4873,8 @@ cpopup_replicate_callback(GtkWidget *widget, gpointer data)
dialog = gtk_dialog_new();
gtk_window_set_title(GTK_WINDOW(dialog),
(g_editor->control_sel_l == g_editor->control_sel_r) ?
"Replicate segment" :
"Replicate selection");
_("Replicate segment") :
_("Replicate selection"));
gtk_window_position(GTK_WINDOW(dialog), GTK_WIN_POS_MOUSE);
gtk_container_border_width(GTK_CONTAINER(dialog), 0);
@ -4883,14 +4886,14 @@ cpopup_replicate_callback(GtkWidget *widget, gpointer data)
/* Instructions */
label = gtk_label_new("Please select the number of times");
label = gtk_label_new(_("Please select the number of times"));
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
gtk_widget_show(label);
label = gtk_label_new((g_editor->control_sel_l == g_editor->control_sel_r) ?
"you want to replicate the selected segment" :
"you want to replicate the selection");
_("you want to replicate the selected segment") :
_("you want to replicate the selection"));
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.0);
gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0);
gtk_widget_show(label);
@ -4912,7 +4915,7 @@ cpopup_replicate_callback(GtkWidget *widget, gpointer data)
/* Buttons */
button = ed_create_button("Replicate", 0.5, 0.5,
button = ed_create_button(N_("Replicate"), 0.5, 0.5,
(GtkSignalFunc) cpopup_do_replicate_callback,
(gpointer) dialog);
GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
@ -4921,7 +4924,7 @@ cpopup_replicate_callback(GtkWidget *widget, gpointer data)
gtk_widget_grab_default(button);
gtk_widget_show(button);
button = ed_create_button("Cancel", 0.5, 0.5,
button = ed_create_button(N_("Cancel"), 0.5, 0.5,
(GtkSignalFunc) cpopup_replicate_cancel_callback,
(gpointer) dialog);
GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
@ -5423,7 +5426,7 @@ grad_load_gradient(char *filename)
num_segments = atoi(line);
if (num_segments < 1) {
g_message ("grad_load_gradient(): invalid number of segments in \"%s\"", filename);
g_message (_("grad_load_gradient(): invalid number of segments in \"%s\""), filename);
g_free(grad);
return;
} /* if */
@ -5446,9 +5449,9 @@ grad_load_gradient(char *filename)
&(seg->r0), &(seg->g0), &(seg->b0), &(seg->a0),
&(seg->r1), &(seg->g1), &(seg->b1), &(seg->a1),
&type, &color) != 13) {
g_message ("grad_load_gradient(): badly formatted "
g_message (_("grad_load_gradient(): badly formatted "
"gradient segment %d in \"%s\" --- bad things may "
"happen soon", i, filename);
"happen soon"), i, filename);
} else {
seg->type = (grad_type_t) type;
seg->color = (grad_color_t) color;
@ -5480,13 +5483,13 @@ grad_save_gradient(gradient_t *grad, char *filename)
g_assert(grad != NULL);
if (!filename) {
g_message ("grad_save_gradient(): can not save gradient with NULL filename");
g_message (_("grad_save_gradient(): can not save gradient with NULL filename"));
return;
} /* if */
file = fopen(filename, "wb");
if (!file) {
g_message ("grad_save_gradient(): can't open \"%s\"", filename);
g_message (_("grad_save_gradient(): can't open \"%s\""), filename);
return;
} /* if */
@ -5688,7 +5691,7 @@ seg_get_segment_at(gradient_t *grad, double pos)
/* Oops: we should have found a segment, but we didn't */
grad_dump_gradient(curr_gradient, stderr);
fatal_error("seg_get_segment_at(): aieee, no matching segment for position %0.15f", pos);
fatal_error(_("seg_get_segment_at(): aieee, no matching segment for position %0.15f"), pos);
return NULL; /* To shut up -Wall */
} /* seg_get_segment_at */

Some files were not shown because too many files have changed in this diff Show More