From 25721826d0802994e16c34bb3896007667142045 Mon Sep 17 00:00:00 2001 From: EDT 1998 Adrian Likins Date: Wed, 14 Oct 1998 23:23:52 +0000 Subject: [PATCH] Lots of ii8n stuff here and some additions to the de.po. Applied Wed Oct 14 17:46:15 EDT 1998 Adrian Likins * app/*, po/de.po, de/POTFILES.in, libgimp/gimpintl.h: Lots of ii8n stuff here and some additions to the de.po. Applied gimp-egger-981005-1 ,gimp-egger-981006-1, gimp-egger-981007-1, gimp-egger-981008-1, gimp-egger-981009-1.patch, gimp-egger-981010-1.patch * plug-in/guillotine/guillotine.c: added the coordinates of the split images from the original image to the title. ie foo.jpg (0,0) for the image in the topleft. * plug-in/script-fu/scripts/neon-logo.scm, perspective-shadow.scm, predator.scm,rendermap.scm, ripply-anim.scm, select_to_image.scm,swirltile.scm, xach-effect.scm: updated scripts to use new script-fu stuff wooo boy! a big un! in testing this, it looks like some of the po files are busted. but the code stuff seems okay. -adrian --- ChangeLog | 17 + app/about_dialog.c | 2 +- app/actions/help-commands.c | 26 +- app/actions/plug-in-commands.c | 146 +- app/airbrush.c | 24 +- app/app_procs.c | 38 +- app/base/boundary.c | 9 +- app/base/color-balance.c | 56 +- app/base/curves.c | 64 +- app/base/threshold.c | 30 +- app/base/tile-cache.c | 6 +- app/base/tile-manager.c | 12 +- app/base/tile-swap.c | 19 +- app/base/tile.c | 7 +- app/batch.c | 11 +- app/bezier_select.c | 58 +- app/blend.c | 104 +- app/boundary.c | 9 +- app/brightness_contrast.c | 32 +- app/brush_edit.c | 13 +- app/brush_select.c | 73 +- app/bucket_fill.c | 44 +- app/by_color_select.c | 44 +- app/channel.c | 8 +- app/channel_cmds.c | 114 +- app/channels_dialog.c | 60 +- app/clone.c | 34 +- app/color_balance.c | 56 +- app/color_picker.c | 76 +- app/color_select.c | 18 +- app/commands.c | 26 +- app/convert.c | 70 +- app/convolve.c | 28 +- app/core/gimpchannel-combine.c | 8 +- app/core/gimpchannel.c | 8 +- app/core/gimpdrawable-blend.c | 104 +- app/core/gimpdrawable-desaturate.c | 12 +- app/core/gimpdrawable-equalize.c | 12 +- app/core/gimpimage-convert.c | 70 +- app/core/gimplayer-floating-sel.c | 8 +- app/core/gimpprojection.c | 102 +- app/crop.c | 38 +- app/curves.c | 64 +- app/desaturate.c | 12 +- app/devices.c | 12 +- app/dialogs/about-dialog.c | 2 +- app/dialogs/image-new-dialog.c | 44 +- app/dialogs/preferences-dialog.c | 141 +- app/dialogs/resize-dialog.c | 20 +- app/dialogs/tips-dialog.c | 16 +- app/dialogs/user-install-dialog.c | 205 +- app/display/gimpdisplay-ops.c | 15 +- app/display/gimpdisplay.c | 102 +- app/docindex.c | 16 +- app/docindexif.c | 12 +- app/edit_cmds.c | 54 +- app/edit_selection.c | 6 +- app/ellipse_select.c | 24 +- app/equalize.c | 12 +- app/eraser.c | 36 +- app/errorconsole.c | 16 +- app/file_new_dialog.c | 44 +- app/fileops.c | 130 +- app/flip_tool.c | 20 +- app/floating_sel.c | 8 +- app/floating_sel_cmds.c | 20 +- app/free_select.c | 24 +- app/gdisplay.c | 102 +- app/gdisplay_ops.c | 15 +- app/gimage.h | 2 + app/gimpchannel.c | 8 +- app/gimpdrawable-desaturate.c | 12 +- app/gimpdrawable-equalize.c | 12 +- app/gimpimage-convert.c | 70 +- app/gui/about-dialog.c | 2 +- app/gui/brush-editor.c | 13 +- app/gui/brush-select.c | 73 +- app/gui/channels-dialog.c | 60 +- app/gui/color-select.c | 18 +- app/gui/commands.c | 26 +- app/gui/device-status-dialog.c | 12 +- app/gui/file-new-dialog.c | 44 +- app/gui/help-commands.c | 26 +- app/gui/input-dialog.c | 12 +- app/gui/menus.c | 21 +- app/gui/palette-editor.c | 56 +- app/gui/plug-in-commands.c | 146 +- app/gui/plug-in-menus.c | 146 +- app/gui/preferences-dialog.c | 141 +- app/gui/resize-dialog.c | 20 +- app/gui/session.c | 16 +- app/gui/tips-dialog.c | 16 +- app/gui/user-install-dialog.c | 205 +- app/install.c | 205 +- app/menus.c | 21 +- app/menus/menus.c | 21 +- app/menus/plug-in-menus.c | 146 +- app/paint-funcs/paint-funcs.c | 33 +- app/paint/gimpairbrush.c | 24 +- app/paint/gimpclone.c | 34 +- app/paint/gimpconvolve.c | 28 +- app/paint/gimperaser.c | 36 +- app/paint/gimpsourcecore.c | 34 +- app/paint_funcs.c | 33 +- app/palette.c | 56 +- app/plug-in/gimpplugin-message.c | 146 +- app/plug-in/gimpplugin-progress.c | 146 +- app/plug-in/gimpplugin.c | 146 +- app/plug-in/gimppluginmanager-call.c | 146 +- app/plug-in/gimppluginmanager-run.c | 146 +- app/plug-in/gimppluginmanager.c | 146 +- app/plug-in/gimppluginshm.c | 146 +- app/plug-in/plug-in-def.c | 146 +- app/plug-in/plug-in-message.c | 146 +- app/plug-in/plug-in-params.c | 146 +- app/plug-in/plug-in-progress.c | 146 +- app/plug-in/plug-in-run.c | 146 +- app/plug-in/plug-in-shm.c | 146 +- app/plug-in/plug-in.c | 146 +- app/plug-in/plug-ins.c | 146 +- app/plug_in.c | 146 +- app/preferences_dialog.c | 141 +- app/procedural_db.c | 122 +- app/rect_select.c | 62 +- app/resize.c | 20 +- app/rotate_tool.c | 24 +- app/scale_tool.c | 36 +- app/session.c | 16 +- app/shear_tool.c | 24 +- app/text_tool.c | 230 +- app/threshold.c | 30 +- app/tile.c | 7 +- app/tile_cache.c | 6 +- app/tile_manager.c | 12 +- app/tile_swap.c | 19 +- app/tips_dialog.c | 16 +- app/tools.c | 184 +- app/tools/airbrush.c | 24 +- app/tools/bezier_select.c | 58 +- app/tools/blend.c | 104 +- app/tools/brightness_contrast.c | 32 +- app/tools/bucket_fill.c | 44 +- app/tools/by_color_select.c | 44 +- app/tools/clone.c | 34 +- app/tools/color_balance.c | 56 +- app/tools/color_picker.c | 76 +- app/tools/convolve.c | 28 +- app/tools/crop.c | 38 +- app/tools/curves.c | 64 +- app/tools/edit_selection.c | 6 +- app/tools/ellipse_select.c | 24 +- app/tools/eraser.c | 36 +- app/tools/flip_tool.c | 20 +- app/tools/free_select.c | 24 +- app/tools/gimpairbrushtool.c | 24 +- app/tools/gimpblendtool.c | 104 +- app/tools/gimpbrightnesscontrasttool.c | 32 +- app/tools/gimpbucketfilltool.c | 44 +- app/tools/gimpbycolorselecttool.c | 44 +- app/tools/gimpclonetool.c | 34 +- app/tools/gimpcolorbalancetool.c | 56 +- app/tools/gimpconvolvetool.c | 28 +- app/tools/gimpcroptool.c | 38 +- app/tools/gimpcurvestool.c | 64 +- app/tools/gimpeditselectiontool.c | 6 +- app/tools/gimpellipseselecttool.c | 24 +- app/tools/gimperasertool.c | 36 +- app/tools/gimpfliptool.c | 20 +- app/tools/gimpfreeselecttool.c | 24 +- app/tools/gimprectselecttool.c | 62 +- app/tools/gimprotatetool.c | 24 +- app/tools/gimpscaletool.c | 36 +- app/tools/gimpsheartool.c | 24 +- app/tools/gimpsourcetool.c | 34 +- app/tools/gimptexttool.c | 230 +- app/tools/gimpthresholdtool.c | 30 +- app/tools/rect_select.c | 62 +- app/tools/rotate_tool.c | 24 +- app/tools/scale_tool.c | 36 +- app/tools/shear_tool.c | 24 +- app/tools/text_tool.c | 230 +- app/tools/threshold.c | 30 +- app/tools/tools.c | 184 +- app/tools/transform_core.c | 10 +- app/tools/transform_tool.c | 28 +- app/transform_core.c | 10 +- app/transform_tool.c | 28 +- app/undo_cmds.c | 22 +- app/user_install.c | 205 +- app/widgets/gimpbrusheditor.c | 13 +- app/widgets/gimpdeviceinfo.c | 12 +- app/widgets/gimpdevices.c | 12 +- app/widgets/gimpitemfactory.c | 21 +- app/widgets/gimppaletteeditor.c | 56 +- app/xcf.c | 68 +- app/xcf/xcf.c | 68 +- libgimp/gimpintl.h | 2 +- libgimpwidgets/gimpcolorselect.c | 18 +- plug-ins/common/guillotine.c | 15 +- plug-ins/guillotine/guillotine.c | 15 +- plug-ins/script-fu/scripts/neon-logo.scm | 6 +- .../script-fu/scripts/perspective-shadow.scm | 10 +- plug-ins/script-fu/scripts/predator.scm | 4 +- plug-ins/script-fu/scripts/rendermap.scm | 4 +- plug-ins/script-fu/scripts/ripply-anim.scm | 4 +- .../script-fu/scripts/select-to-image.scm | 7 +- .../script-fu/scripts/select_to_image.scm | 7 +- plug-ins/script-fu/scripts/swirltile.scm | 3 +- plug-ins/script-fu/scripts/xach-effect.scm | 7 + po/POTFILES.in | 28 + po/de.po | 5234 ++++++++++++++++- 211 files changed, 10877 insertions(+), 5341 deletions(-) diff --git a/ChangeLog b/ChangeLog index a54ed4295a..5f2deedc28 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,20 @@ +Wed Oct 14 17:46:15 EDT 1998 Adrian Likins + + * app/*, po/de.po, de/POTFILES.in, libgimp/gimpintl.h: + Lots of ii8n stuff here and some additions to the de.po. + Applied gimp-egger-981005-1 ,gimp-egger-981006-1, + gimp-egger-981007-1, gimp-egger-981008-1, + gimp-egger-981009-1.patch, gimp-egger-981010-1.patch + + * plug-in/guillotine/guillotine.c: added the coordinates + of the split images from the original image to the title. + ie foo.jpg (0,0) for the image in the topleft. + + * plug-in/script-fu/scripts/neon-logo.scm, + perspective-shadow.scm, predator.scm,rendermap.scm, + ripply-anim.scm, select_to_image.scm,swirltile.scm, + xach-effect.scm: updated scripts to use new script-fu stuff + Wed Oct 14 22:58:04 BST 1998 Austin Donnelly * app/color_select.c: fix silly bug with off-by-one error in diff --git a/app/about_dialog.c b/app/about_dialog.c index 2d7b0482a7..0defdb95a8 100644 --- a/app/about_dialog.c +++ b/app/about_dialog.c @@ -203,7 +203,7 @@ about_dialog_create (int timeout) gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, TRUE, 0); gtk_widget_show (label); - label = gtk_label_new (_("Spencer Kimball and Peter Mattis")); + label = gtk_label_new (_("Spencer Kimball & Peter Mattis")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, TRUE, 0); gtk_widget_show (label); diff --git a/app/actions/help-commands.c b/app/actions/help-commands.c index d6916e1060..8afb09cecc 100644 --- a/app/actions/help-commands.c +++ b/app/actions/help-commands.c @@ -67,6 +67,8 @@ #include "tools.h" #include "undo.h" +#include "libgimp/gimpintl.h" + typedef struct { GtkWidget * shell; @@ -360,7 +362,7 @@ select_border_cmd_callback (GtkWidget *widget, gdisp = gdisplay_active (); sprintf (initial, "%d", gimage_mask_border_radius); - query_string_box ("Border Selection", "Border selection by:", initial, + query_string_box (_("Border Selection"), _("Border selection by:"), initial, gimage_mask_border_callback, gdisp->gimage); } @@ -374,7 +376,7 @@ select_feather_cmd_callback (GtkWidget *widget, gdisp = gdisplay_active (); sprintf (initial, "%f", gimage_mask_feather_radius); - query_string_box ("Feather Selection", "Feather selection by:", initial, + query_string_box (_("Feather Selection"), _("Feather selection by:"), initial, gimage_mask_feather_callback, gdisp->gimage); } @@ -388,7 +390,7 @@ select_grow_cmd_callback (GtkWidget *widget, gdisp = gdisplay_active (); sprintf (initial, "%d", gimage_mask_grow_pixels); - query_string_box ("Grow Selection", "Grow selection by:", initial, + query_string_box (_("Grow Selection"), _("Grow selection by:"), initial, gimage_mask_grow_callback, gdisp->gimage); } @@ -402,7 +404,7 @@ select_shrink_cmd_callback (GtkWidget *widget, gdisp = gdisplay_active (); sprintf (initial, "%d", gimage_mask_shrink_pixels); - query_string_box ("Shrink Selection", "Shrink selection by:", initial, + query_string_box (_("Shrink Selection"), _("Shrink selection by:"), initial, gimage_mask_shrink_callback, gdisp->gimage); } @@ -736,8 +738,8 @@ image_resize_cmd_callback (GtkWidget *widget, { static ActionAreaItem action_items[2] = { - { "OK", image_resize_callback, NULL, NULL }, - { "Cancel", image_cancel_callback, NULL, NULL } + { N_("OK"), image_resize_callback, NULL, NULL }, + { N_("Cancel"), image_cancel_callback, NULL, NULL } }; GDisplay * gdisp; GtkWidget *vbox; @@ -753,7 +755,7 @@ image_resize_cmd_callback (GtkWidget *widget, /* the dialog */ image_resize->shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (image_resize->shell), "image_resize", "Gimp"); - gtk_window_set_title (GTK_WINDOW (image_resize->shell), "Image Resize"); + gtk_window_set_title (GTK_WINDOW (image_resize->shell), _("Image Resize")); gtk_window_set_policy (GTK_WINDOW (image_resize->shell), FALSE, FALSE, TRUE); gtk_window_position (GTK_WINDOW (image_resize->shell), GTK_WIN_POS_MOUSE); @@ -783,8 +785,8 @@ image_scale_cmd_callback (GtkWidget *widget, { static ActionAreaItem action_items[2] = { - { "OK", image_scale_callback, NULL, NULL }, - { "Cancel", image_cancel_callback, NULL, NULL } + { N_("OK"), image_scale_callback, NULL, NULL }, + { N_("Cancel"), image_cancel_callback, NULL, NULL } }; GDisplay * gdisp; GtkWidget *vbox; @@ -800,7 +802,7 @@ image_scale_cmd_callback (GtkWidget *widget, /* the dialog */ image_scale->shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (image_scale->shell), "image_scale", "Gimp"); - gtk_window_set_title (GTK_WINDOW (image_scale->shell), "Image Scale"); + gtk_window_set_title (GTK_WINDOW (image_scale->shell), _("Image Scale")); gtk_window_set_policy (GTK_WINDOW (image_scale->shell), FALSE, FALSE, TRUE); gtk_window_position (GTK_WINDOW (image_scale->shell), GTK_WIN_POS_MOUSE); @@ -1096,7 +1098,7 @@ image_resize_callback (GtkWidget *w, } else { - g_message ("Resize Error: Both width and height must be greater than zero."); + g_message (_("Resize Error: Both width and height must be greater than zero.")); return; } } @@ -1126,7 +1128,7 @@ image_scale_callback (GtkWidget *w, } else { - g_message ("Scale Error: Both width and height must be greater than zero."); + g_message (_("Scale Error: Both width and height must be greater than zero.")); return; } } diff --git a/app/actions/plug-in-commands.c b/app/actions/plug-in-commands.c index 1dcc01f5e0..d3f184da83 100644 --- a/app/actions/plug-in-commands.c +++ b/app/actions/plug-in-commands.c @@ -59,6 +59,8 @@ #include "tile.h" /* ick. */ +#include "libgimp/gimpintl.h" + #define SEPARATE_PROGRESS_BAR @@ -161,17 +163,17 @@ static ProcArg progress_init_args[] = { { PDB_STRING, "message", - "Message to use in the progress dialog." }, + N_("Message to use in the progress dialog.") }, { PDB_INT32, "gdisplay", - "GDisplay to update progressbar in, or -1 for a seperate window" } + N_("GDisplay to update progressbar in, or -1 for a seperate window") } }; static ProcRecord progress_init_proc = { "gimp_progress_init", - "Initializes the progress bar for the current plug-in", - "Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Initializes the progress bar for the current plug-in"), + N_("Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -187,14 +189,14 @@ static ProcArg progress_update_args[] = { { PDB_FLOAT, "percentage", - "Percentage of progress completed" } + N_("Percentage of progress completed") } }; static ProcRecord progress_update_proc = { "gimp_progress_update", - "Updates the progress bar for the current plug-in", - "Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Updates the progress bar for the current plug-in"), + N_("Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -211,14 +213,14 @@ static ProcArg message_args[] = { { PDB_STRING, "message", - "Message to display in the dialog." } + N_("Message to display in the dialog.") } }; static ProcRecord message_proc = { "gimp_message", - "Displays a dialog box with a message", - "Displays a dialog box with a message. Useful for status or error reporting.", + N_("Displays a dialog box with a message"), + N_("Displays a dialog box with a message. Useful for status or error reporting."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -235,14 +237,14 @@ static ProcArg message_handler_get_out_args[] = { { PDB_INT32, "handler", - "the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_get_proc = { "gimp_message_handler_get", - "Returns the current state of where warning messages are displayed.", - "This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Returns the current state of where warning messages are displayed."), + N_("This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -258,14 +260,14 @@ static ProcArg message_handler_set_args[] = { { PDB_INT32, "handler", - "the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_set_proc = { "gimp_message_handler_set", - "Controls where warning messages are displayed.", - "This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Controls where warning messages are displayed."), + N_("This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -281,15 +283,15 @@ static ProcArg plugin_temp_PDB_name_out_args[] = { { PDB_STRING, "Temp name", - "A unique temporary name for a temporary PDB entry name", + N_("A unique temporary name for a temporary PDB entry name"), }, }; static ProcRecord plugin_temp_PDB_name_proc = { "gimp_temp_PDB_name", - "Generates a unique temporary PDB name", - "This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name.", + N_("Generates a unique temporary PDB name"), + N_("This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name."), "Andy Thomas", "Andy Thomas", "1998", @@ -340,13 +342,13 @@ plug_in_init () { shm_ID = shmget (IPC_PRIVATE, TILE_WIDTH * TILE_HEIGHT * 4, IPC_CREAT | 0777); if (shm_ID == -1) - g_message ("shmget failed...disabling shared memory tile transport\n"); + g_message (_("shmget failed...disabling shared memory tile transport\n")); else { shm_addr = (guchar*) shmat (shm_ID, 0, 0); if (shm_addr == (guchar*) -1) { - g_message ("shmat failed...disabling shared memory tile transport\n"); + g_message (_("shmat failed...disabling shared memory tile transport\n")); shm_ID = -1; } @@ -372,14 +374,14 @@ plug_in_init () else sprintf (filename, "%s/pluginrc", gimp_directory ()); - app_init_update_status("Resource configuration", filename, -1); + app_init_update_status(_("Resource configuration"), filename, -1); parse_gimprc_file (filename); /* query any plug-ins that have changed since we last wrote out * the pluginrc file. */ tmp = plug_in_defs; - app_init_update_status("Plug-ins", "", 0); + app_init_update_status(_("Plug-ins"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -391,7 +393,7 @@ plug_in_init () { write_pluginrc = TRUE; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("query plug-in: \"%s\"\n", plug_in_def->prog); + g_print (_("query plug-in: \"%s\"\n"), plug_in_def->prog); plug_in_query (plug_in_def->prog, plug_in_def); } app_init_update_status(NULL, plug_in_def->prog, nth/nplugins); @@ -428,7 +430,7 @@ plug_in_init () if (write_pluginrc) { if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("writing \"%s\"\n", filename); + g_print (_("writing \"%s\"\n"), filename); plug_in_write_rc (filename); } @@ -441,8 +443,8 @@ plug_in_init () /* run the available extensions */ tmp = proc_defs; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("Starting extensions: "); - app_init_update_status("Extensions", "", 0); + g_print (_("Starting extensions: ")); + app_init_update_status(_("Extensions"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -729,7 +731,7 @@ plug_in_def_add (PlugInDef *plug_in_def) } write_pluginrc = TRUE; - g_print ("\"%s\" executable not found\n", plug_in_def->prog); + g_print (_("\"%s\" executable not found\n"), plug_in_def->prog); g_free (plug_in_def->prog); g_free (plug_in_def); } @@ -782,7 +784,7 @@ plug_in_new (char *name) path = search_in_path (plug_in_path, name); if (!path) { - g_message ("unable to locate plug-in: \"%s\"", name); + g_message (_("unable to locate plug-in: \"%s\""), name); return NULL; } } @@ -879,7 +881,7 @@ plug_in_open (PlugIn *plug_in) */ if ((pipe (my_read) == -1) || (pipe (my_write) == -1)) { - g_message ("unable to open pipe"); + g_message (_("unable to open pipe")); return 0; } @@ -927,7 +929,7 @@ plug_in_open (PlugIn *plug_in) } else if (plug_in->pid == -1) { - g_message ("unable to run plug-in: %s\n", plug_in->args[0]); + g_message (_("unable to run plug-in: %s\n"), plug_in->args[0]); plug_in_destroy (plug_in); return 0; } @@ -1263,8 +1265,8 @@ plug_in_set_menu_sensitivity (int base_type) menus_set_sensitive (proc_def->menu_path, sensitive); if (last_plug_in && (last_plug_in == &(proc_def->db_info))) { - menus_set_sensitive ("/Filters/Repeat last", sensitive); - menus_set_sensitive ("/Filters/Re-show last", sensitive); + menus_set_sensitive (_("/Filters/Repeat last"), sensitive); + menus_set_sensitive (_("/Filters/Re-show last"), sensitive); } } } @@ -1303,18 +1305,18 @@ plug_in_handle_message (WireMessage *msg) plug_in_handle_quit (); break; case GP_CONFIG: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_REQ: plug_in_handle_tile_req (msg->data); break; case GP_TILE_ACK: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_DATA: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_PROC_RUN: @@ -1325,7 +1327,7 @@ plug_in_handle_message (WireMessage *msg) plug_in_close (current_plug_in, FALSE); break; case GP_TEMP_PROC_RUN: - g_message ("plug_in_handle_message(): received a temp proc run message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a temp proc run message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TEMP_PROC_RETURN: @@ -1372,21 +1374,21 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_DATA) { - g_message ("expected tile data and received: %d\n", msg.type); + g_message (_("expected tile data and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1400,7 +1402,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1408,7 +1410,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_info->tile_num, TRUE, TRUE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1423,7 +1425,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) wire_destroy (&msg); if (!gp_tile_ack_write (current_writefd)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1437,7 +1439,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1445,7 +1447,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_req->tile_num, TRUE, FALSE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1465,7 +1467,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1474,14 +1476,14 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_ACK) { - g_message ("expected tile ack and received: %d\n", msg.type); + g_message (_("expected tile ack and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1505,7 +1507,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!proc_rec) { /* THIS IS PROBABLY NOT CORRECT -josh */ - g_message ("PDB lookup failed on %s\n", proc_run->name); + g_message (_("PDB lookup failed on %s\n"), proc_run->name); plug_in_args_destroy (args, proc_run->nparams, FALSE); return; } @@ -1529,7 +1531,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!gp_proc_return_write (current_writefd, &proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1573,7 +1575,7 @@ plug_in_handle_proc_return (GPProcReturn *proc_return) plug_in_push (blocked->plug_in); if (!gp_proc_return_write (current_writefd, proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1612,8 +1614,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) if ((proc_install->nparams < 1) || (proc_install->params[0].type != PDB_INT32)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1625,8 +1627,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_IMAGE) || (proc_install->params[2].type != PDB_DRAWABLE)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1638,8 +1640,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_STRING) || (proc_install->params[2].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1653,17 +1655,17 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[3].type != PDB_STRING) || (proc_install->params[4].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } } else { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" in " + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" in " "an invalid menu location. Use either \"\", \"\", " - "\"\", or \"\".", + "\"\", or \"\"."), current_plug_in->args[0], proc_install->name); return; } @@ -1681,9 +1683,9 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) proc_install->params[i].type == PDB_STRINGARRAY) && proc_install->params[i-1].type != PDB_INT32) { - g_message ("plug_in \"%s\" attempted to install procedure \"%s\" " + g_message (_("plug_in \"%s\" attempted to install procedure \"%s\" " "which fails to comply with the array parameter " - "passing standard. Argument %d is noncompliant.", + "passing standard. Argument %d is noncompliant."), current_plug_in->args[0], proc_install->name, i); return; } @@ -2091,7 +2093,7 @@ plug_in_init_file (char *filename) if (strcmp (name, plug_in_name) == 0) { - g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename); + g_print (_("duplicate plug-in: \"%s\" (skipping)\n"), filename); return; } @@ -2265,7 +2267,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the plug-in!"); + g_message (_("Uh-oh, no active gdisplay for the plug-in!")); g_free (args); return; } @@ -2286,7 +2288,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the temporary procedure!"); + g_message (_("Uh-oh, no active gdisplay for the temporary procedure!")); g_free (args); return; } @@ -2294,7 +2296,7 @@ plug_in_callback (GtkWidget *widget, break; default: - g_error ("Unknown procedure type."); + g_error (_("Unknown procedure type.")); break; } @@ -2600,7 +2602,7 @@ plug_in_params_to_args (GPParam *params, colorarray[2] = params[i].data.d_color.blue; break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: args[i].value.pdb_int = params[i].data.d_display; @@ -2765,7 +2767,7 @@ plug_in_args_to_params (Argument *args, } break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: params[i].data.d_display = args[i].value.pdb_int; @@ -2882,7 +2884,7 @@ plug_in_params_destroy (GPParam *params, case PDB_COLOR: break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -2967,7 +2969,7 @@ plug_in_args_destroy (Argument *args, g_free (args[i].value.pdb_pointer); break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -3156,7 +3158,7 @@ plug_in_progress_init (PlugIn *plug_in, gtk_box_pack_start (GTK_BOX (vbox), plug_in->progress_bar, TRUE, TRUE, 0); gtk_widget_show (plug_in->progress_bar); - button = gtk_button_new_with_label ("Cancel"); + button = gtk_button_new_with_label (_("Cancel")); gtk_signal_connect_object (GTK_OBJECT (button), "clicked", (GtkSignalFunc) gtk_widget_destroy, GTK_OBJECT (plug_in->progress)); diff --git a/app/airbrush.c b/app/airbrush.c index 2aba45ca33..2b724ef682 100644 --- a/app/airbrush.c +++ b/app/airbrush.c @@ -29,6 +29,8 @@ #include "tools.h" #include "gimage.h" +#include "libgimp/gimpintl.h" + typedef struct _AirbrushTimeout AirbrushTimeout; struct _AirbrushTimeout @@ -92,7 +94,7 @@ create_airbrush_options (void) vbox = gtk_vbox_new (FALSE, 1); /* the main label */ - label = gtk_label_new ("Airbrush Options"); + label = gtk_label_new (_("Airbrush Options")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -101,7 +103,7 @@ create_airbrush_options (void) gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_widget_show (hbox); - label = gtk_label_new ("Rate"); + label = gtk_label_new (_("Rate")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -119,7 +121,7 @@ create_airbrush_options (void) gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_widget_show (hbox); - label = gtk_label_new ("Pressure"); + label = gtk_label_new (_("Pressure")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -155,7 +157,7 @@ airbrush_paint_func (PaintCore *paint_core, /* timer_state = OFF; */ if (timer_state == ON) { - g_warning ("killing stray timer, please report to lewing@gimp.org"); + g_warning (_("killing stray timer, please report to lewing@gimp.org")); gtk_timeout_remove (timer); } timer_state = OFF; @@ -295,23 +297,23 @@ ProcArg airbrush_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_FLOAT, "pressure", - "The pressure of the airbrush strokes: 0 <= pressure <= 100" + N_("The pressure of the airbrush strokes: 0 <= pressure <= 100") }, { PDB_INT32, "num_strokes", - "number of stroke control points (count each coordinate as 2 points)" + N_("number of stroke control points (count each coordinate as 2 points)") }, { PDB_FLOATARRAY, "strokes", - "array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}" + N_("array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}") } }; @@ -319,8 +321,8 @@ ProcArg airbrush_args[] = ProcRecord airbrush_proc = { "gimp_airbrush", - "Paint in the current brush with varying pressure. Paint application is time-dependent", - "This tool simulates the use of an airbrush. Paint pressure represents the relative intensity of the paint application. High pressure results in a thicker layer of paint while low pressure results in a thinner layer.", + N_("Paint in the current brush with varying pressure. Paint application is time-dependent"), + N_("This tool simulates the use of an airbrush. Paint pressure represents the relative intensity of the paint application. High pressure results in a thicker layer of paint while low pressure results in a thinner layer."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/app_procs.c b/app/app_procs.c index a06e3ec984..5ceddb7599 100644 --- a/app/app_procs.c +++ b/app/app_procs.c @@ -66,6 +66,8 @@ #include "config.h" +#include "libgimp/gimpintl.h" + #define LOGO_WIDTH_MIN 300 #define LOGO_HEIGHT_MIN 110 #define NAME "The GIMP" @@ -95,16 +97,16 @@ static ProcArg quit_args[] = { { PDB_INT32, "kill", - "Flag specifying whether to kill the gimp process or exit normally" }, + N_("Flag specifying whether to kill the gimp process or exit normally") }, }; static ProcRecord quit_proc = { "gimp_quit", - "Causes the gimp to exit gracefully", - "The internal procedure which can either be used to make the gimp quit normally, or to have the gimp clean up its resources and exit immediately. The normaly shutdown process allows for querying the user to save any dirty images.", - "Spencer Kimball & Peter Mattis", - "Spencer Kimball & Peter Mattis", + N_("Causes the gimp to exit gracefully"), + N_("The internal procedure which can either be used to make the gimp quit normally, or to have the gimp clean up its resources and exit immediately. The normaly shutdown process allows for querying the user to save any dirty images."), + N_("Spencer Kimball & Peter Mattis"), + N_("Spencer Kimball & Peter Mattis"), "1995-1996", PDB_INTERNAL, 1, @@ -455,7 +457,7 @@ app_init (void) sprintf (filename, "%s/gtkrc", gimp_dir); if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("parsing \"%s\"\n", filename); + g_print (_("parsing %s\n"), filename); gtk_rc_parse (filename); } @@ -499,13 +501,13 @@ app_init (void) RESET_BAR(); xcf_init (); /* initialize the xcf file format routines */ - app_init_update_status ("Looking for data files", "Brushes", 0.00); + app_init_update_status (_("Looking for data files"), _("Brushes"), 0.00); brushes_init (no_data); /* initialize the list of gimp brushes */ - app_init_update_status (NULL, "Patterns", 0.25); + app_init_update_status (NULL, _("Patterns"), 0.25); patterns_init (no_data); /* initialize the list of gimp patterns */ - app_init_update_status (NULL, "Palettes", 0.50); + app_init_update_status (NULL, _("Palettes"), 0.50); palettes_init (no_data); /* initialize the list of gimp palettes */ - app_init_update_status (NULL, "Gradients", 0.75); + app_init_update_status (NULL, _("Gradients"), 0.75); gradients_init (no_data); /* initialize the list of gimp gradients */ app_init_update_status (NULL, NULL, 1.00); @@ -637,8 +639,8 @@ static void really_quit_cancel_callback (GtkWidget *widget, GtkWidget *dialog) { - menus_set_sensitive ("/File/Quit", TRUE); - menus_set_sensitive ("/File/Quit", TRUE); + menus_set_sensitive (_("/File/Quit"), TRUE); + menus_set_sensitive (_("/File/Quit"), TRUE); gtk_widget_destroy (dialog); } @@ -659,12 +661,12 @@ really_quit_dialog () GtkWidget *button; GtkWidget *label; - menus_set_sensitive ("/File/Quit", FALSE); - menus_set_sensitive ("/File/Quit", FALSE); + menus_set_sensitive (_("/File/Quit"), FALSE); + menus_set_sensitive (_("/File/Quit"), FALSE); dialog = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (dialog), "really_quit", "Gimp"); - gtk_window_set_title (GTK_WINDOW (dialog), "Really Quit?"); + gtk_window_set_title (GTK_WINDOW (dialog), _("Really Quit?")); gtk_window_position (GTK_WINDOW (dialog), GTK_WIN_POS_MOUSE); gtk_container_border_width (GTK_CONTAINER (GTK_DIALOG (dialog)->action_area), 2); @@ -672,7 +674,7 @@ really_quit_dialog () (GtkSignalFunc) really_quit_delete_callback, dialog); - button = gtk_button_new_with_label ("Yes"); + button = gtk_button_new_with_label (_("Yes")); GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT); gtk_signal_connect (GTK_OBJECT (button), "clicked", (GtkSignalFunc) really_quit_callback, @@ -681,7 +683,7 @@ really_quit_dialog () gtk_widget_grab_default (button); gtk_widget_show (button); - button = gtk_button_new_with_label ("No"); + button = gtk_button_new_with_label (_("No")); GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT); gtk_signal_connect (GTK_OBJECT (button), "clicked", (GtkSignalFunc) really_quit_cancel_callback, @@ -689,7 +691,7 @@ really_quit_dialog () gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->action_area), button, TRUE, TRUE, 0); gtk_widget_show (button); - label = gtk_label_new ("Some files unsaved. Quit the GIMP?"); + label = gtk_label_new (_("Some files unsaved. Quit the GIMP?")); gtk_misc_set_padding (GTK_MISC (label), 10, 1); gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), label, TRUE, TRUE, 0); gtk_widget_show (label); diff --git a/app/base/boundary.c b/app/base/boundary.c index e8cbf00da8..86b8fdea23 100644 --- a/app/base/boundary.c +++ b/app/base/boundary.c @@ -1,3 +1,4 @@ + /* The GIMP -- an image manipulation program * Copyright (C) 1995 Spencer Kimball and Peter Mattis * @@ -21,6 +22,8 @@ #include "errors.h" #include "boundary.h" +#include "libgimp/gimpintl.h" + #include "tile.h" /* half intensity for mask */ @@ -171,7 +174,7 @@ make_seg (int x1, sizeof (BoundSeg) * max_segs); if (!tmp_segs) - fatal_error ("Unable to reallocate segments array for mask boundary."); + fatal_error (_("Unable to reallocate segments array for mask boundary.")); } tmp_segs[num_segs].x1 = x1; @@ -213,7 +216,7 @@ allocate_empty_segs (void) empty_segs_l = (int *) g_realloc (empty_segs_l, sizeof (int) * max_empty_segs); if (!empty_segs_n || !empty_segs_l || !empty_segs_c) - fatal_error ("Unable to reallocate empty segments array for mask boundary."); + fatal_error (_("Unable to reallocate empty segments array for mask boundary.")); } } @@ -468,7 +471,7 @@ sort_boundary (BoundSeg *segs, } if (x != startx || y != starty) - g_message ("sort_boundary(): Unconnected boundary group!"); + g_message (_("sort_boundary(): Unconnected boundary group!")); /* Mark the end of a group */ *num_groups = *num_groups + 1; diff --git a/app/base/color-balance.c b/app/base/color-balance.c index 178ec52906..240e478815 100644 --- a/app/base/color-balance.c +++ b/app/base/color-balance.c @@ -29,6 +29,8 @@ #include "image_map.h" #include "interface.h" +#include "libgimp/gimpintl.h" + #define TEXT_WIDTH 55 #define SHADOWS 0 @@ -273,7 +275,7 @@ tools_new_color_balance () /* The tool options */ if (!color_balance_options) - color_balance_options = tools_register_no_options (COLOR_BALANCE, "Color Balance Options"); + color_balance_options = tools_register_no_options (COLOR_BALANCE, _("Color Balance Options")); tool = (Tool *) g_malloc (sizeof (Tool)); private = (ColorBalance *) g_malloc (sizeof (ColorBalance)); @@ -317,7 +319,7 @@ color_balance_initialize (GDisplay *gdisp) if (! drawable_color (gimage_active_drawable (gdisp->gimage))) { - g_message ("Color balance operates only on RGB color drawables."); + g_message (_("Color balance operates only on RGB color drawables.")); return; } @@ -349,8 +351,8 @@ color_balance_initialize (GDisplay *gdisp) /* the action area structure */ static ActionAreaItem action_items[] = { - { "OK", color_balance_ok_callback, NULL, NULL }, - { "Cancel", color_balance_cancel_callback, NULL, NULL } + { N_("OK"), color_balance_ok_callback, NULL, NULL }, + { N_("Cancel"), color_balance_cancel_callback, NULL, NULL } }; static ColorBalanceDialog * @@ -371,9 +373,9 @@ color_balance_new_dialog () int i; char *appl_mode_names[3] = { - "Shadows", - "Midtones", - "Highlights" + N_("Shadows"), + N_("Midtones"), + N_("Highlights") }; ActionCallback appl_mode_callbacks[3] = { @@ -390,7 +392,7 @@ color_balance_new_dialog () /* The shell and main vbox */ cbd->shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (cbd->shell), "color_balance", "Gimp"); - gtk_window_set_title (GTK_WINDOW (cbd->shell), "Color Balance"); + gtk_window_set_title (GTK_WINDOW (cbd->shell), N_("Color Balance")); /* handle the wm close signal */ gtk_signal_connect (GTK_OBJECT (cbd->shell), "delete_event", @@ -405,7 +407,7 @@ color_balance_new_dialog () hbox = gtk_hbox_new (TRUE, 2); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); - label = gtk_label_new ("Color Levels: "); + label = gtk_label_new (_("Color Levels: ")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, FALSE, 0); gtk_widget_show (label); @@ -444,7 +446,7 @@ color_balance_new_dialog () gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, FALSE, 0); /* Create the cyan-red scale widget */ - start_label = gtk_label_new ("Cyan"); + start_label = gtk_label_new (_("Cyan")); gtk_misc_set_alignment (GTK_MISC (start_label), 1.0, 1.0); gtk_table_attach (GTK_TABLE (table), start_label, 0, 1, 0, 1, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2); @@ -461,7 +463,7 @@ color_balance_new_dialog () gtk_signal_connect (GTK_OBJECT (data), "value_changed", (GtkSignalFunc) color_balance_cr_scale_update, cbd); - end_label = gtk_label_new ("Red"); + end_label = gtk_label_new (_("Red")); gtk_misc_set_alignment (GTK_MISC (end_label), 0.0, 1.0); gtk_table_attach (GTK_TABLE (table), end_label, 2, 3, 0, 1, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2); @@ -471,7 +473,7 @@ color_balance_new_dialog () gtk_widget_show (slider); /* Create the magenta-green scale widget */ - start_label = gtk_label_new ("Magenta"); + start_label = gtk_label_new (_("Magenta")); gtk_misc_set_alignment (GTK_MISC (start_label), 1.0, 1.0); gtk_table_attach (GTK_TABLE (table), start_label, 0, 1, 1, 2, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2); @@ -488,7 +490,7 @@ color_balance_new_dialog () gtk_signal_connect (GTK_OBJECT (data), "value_changed", (GtkSignalFunc) color_balance_mg_scale_update, cbd); - end_label = gtk_label_new ("Green"); + end_label = gtk_label_new (_("Green")); gtk_misc_set_alignment (GTK_MISC (end_label), 0.0, 1.0); gtk_table_attach (GTK_TABLE (table), end_label, 2, 3, 1, 2, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2); @@ -498,7 +500,7 @@ color_balance_new_dialog () gtk_widget_show (slider); /* Create the yellow-blue scale widget */ - start_label = gtk_label_new ("Yellow"); + start_label = gtk_label_new (_("Yellow")); gtk_misc_set_alignment (GTK_MISC (start_label), 1.0, 1.0); gtk_table_attach (GTK_TABLE (table), start_label, 0, 1, 2, 3, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2); @@ -515,7 +517,7 @@ color_balance_new_dialog () gtk_signal_connect (GTK_OBJECT (data), "value_changed", (GtkSignalFunc) color_balance_yb_scale_update, cbd); - end_label = gtk_label_new ("Blue"); + end_label = gtk_label_new (_("Blue")); gtk_misc_set_alignment (GTK_MISC (end_label), 0.0, 1.0); gtk_table_attach (GTK_TABLE (table), end_label, 2, 3, 2, 3, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2); @@ -529,7 +531,7 @@ color_balance_new_dialog () gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); /* The preview toggle */ - toggle = gtk_check_button_new_with_label ("Preview"); + toggle = gtk_check_button_new_with_label (_("Preview")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), cbd->preview); gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -538,7 +540,7 @@ color_balance_new_dialog () gtk_widget_show (toggle); /* The preserve luminosity toggle */ - toggle = gtk_check_button_new_with_label ("Preserve Luminosity"); + toggle = gtk_check_button_new_with_label (_("Preserve Luminosity")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), cbd->preserve_luminosity); gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -618,7 +620,7 @@ static void color_balance_preview (ColorBalanceDialog *cbd) { if (!cbd->image_map) - g_message ("color_balance_preview(): No image map"); + g_message (_("color_balance_preview(): No image map")); active_tool->preserve = TRUE; image_map_apply (cbd->image_map, color_balance, (void *) cbd); active_tool->preserve = FALSE; @@ -877,39 +879,39 @@ ProcArg color_balance_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_INT32, "transfer_mode", - "Transfer mode: { SHADOWS (0), MIDTONES (1), HIGHLIGHTS (2) }" + N_("Transfer mode: { SHADOWS (0), MIDTONES (1), HIGHLIGHTS (2) }") }, { PDB_INT32, "preserve_lum", - "Preserve luminosity values at each pixel" + N_("Preserve luminosity values at each pixel") }, { PDB_FLOAT, "cyan_red", - "Cyan-Red color balance: (-100 <= cyan_red <= 100)" + N_("Cyan-Red color balance: (-100 <= cyan_red <= 100)") }, { PDB_FLOAT, "magenta_green", - "Magenta-Green color balance: (-100 <= magenta_green <= 100)" + N_("Magenta-Green color balance: (-100 <= magenta_green <= 100)") }, { PDB_FLOAT, "yellow_blue", - "Yellow-Blue color balance: (-100 <= yellow_blue <= 100)" + N_("Yellow-Blue color balance: (-100 <= yellow_blue <= 100)") } }; ProcRecord color_balance_proc = { "gimp_color_balance", - "Modify the color balance of the specified drawable", - "Modify the color balance of the specified drawable. There are three axis which can be modified: cyan-red, magenta-green, and yellow-blue. Negative values increase the amount of the former, positive values increase the amount of the latter. Color balance can be controlled with the 'transfer_mode' setting, which allows shadows, midtones, and highlights in an image to be affected differently. The 'preserve_lum' parameter, if non-zero, ensures that the luminosity of each pixel remains fixed.", + N_("Modify the color balance of the specified drawable"), + N_("Modify the color balance of the specified drawable. There are three axis which can be modified: cyan-red, magenta-green, and yellow-blue. Negative values increase the amount of the former, positive values increase the amount of the latter. Color balance can be controlled with the 'transfer_mode' setting, which allows shadows, midtones, and highlights in an image to be affected differently. The 'preserve_lum' parameter, if non-zero, ensures that the luminosity of each pixel remains fixed."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1997", diff --git a/app/base/curves.c b/app/base/curves.c index 15512ec6f6..92ef076bbf 100644 --- a/app/base/curves.c +++ b/app/base/curves.c @@ -31,6 +31,8 @@ #include "interface.h" #include "curves.h" +#include "libgimp/gimpintl.h" + #define ROUND(x) ((int) ((x) + 0.5)) #define GRAPH 0x1 @@ -274,7 +276,7 @@ tools_new_curves () /* The tool options */ if (!curves_options) - curves_options = tools_register_no_options (CURVES, "Curves Options"); + curves_options = tools_register_no_options (CURVES, _("Curves Options")); tool = (Tool *) g_malloc (sizeof (Tool)); private = (Curves *) g_malloc (sizeof (Curves)); @@ -314,25 +316,25 @@ tools_free_curves (Tool *tool) /* the action area structure */ static ActionAreaItem action_items[] = { - { "Reset", curves_reset_callback, NULL, NULL }, - { "OK", curves_ok_callback, NULL, NULL }, - { "Cancel", curves_cancel_callback, NULL, NULL } + { N_("Reset"), curves_reset_callback, NULL, NULL }, + { N_("OK"), curves_ok_callback, NULL, NULL }, + { N_("Cancel"), curves_cancel_callback, NULL, NULL } }; static MenuItem channel_items[] = { - { "Value", 0, 0, curves_value_callback, NULL, NULL, NULL }, - { "Red", 0, 0, curves_red_callback, NULL, NULL, NULL }, - { "Green", 0, 0, curves_green_callback, NULL, NULL, NULL }, - { "Blue", 0, 0, curves_blue_callback, NULL, NULL, NULL }, - { "Alpha", 0, 0, curves_alpha_callback, NULL, NULL, NULL }, + { N_("Value"), 0, 0, curves_value_callback, NULL, NULL, NULL }, + { N_("Red"), 0, 0, curves_red_callback, NULL, NULL, NULL }, + { N_("Green"), 0, 0, curves_green_callback, NULL, NULL, NULL }, + { N_("Blue"), 0, 0, curves_blue_callback, NULL, NULL, NULL }, + { N_("Alpha"), 0, 0, curves_alpha_callback, NULL, NULL, NULL }, { NULL, 0, 0, NULL, NULL, NULL, NULL } }; static MenuItem curve_type_items[] = { - { "Smooth", 0, 0, curves_smooth_callback, NULL, NULL, NULL }, - { "Free", 0, 0, curves_free_callback, NULL, NULL, NULL }, + { N_("Smooth"), 0, 0, curves_smooth_callback, NULL, NULL, NULL }, + { N_("Free"), 0, 0, curves_free_callback, NULL, NULL, NULL }, { NULL, 0, 0, NULL, NULL, NULL, NULL } }; @@ -343,7 +345,7 @@ curves_initialize (GDisplay *gdisp) if (drawable_indexed (gimage_active_drawable (gdisp->gimage))) { - g_message ("Curves for indexed drawables cannot be adjusted."); + g_message (_("Curves for indexed drawables cannot be adjusted.")); return; } @@ -453,7 +455,7 @@ curves_new_dialog () /* The shell and main vbox */ cd->shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (cd->shell), "curves", "Gimp"); - gtk_window_set_title (GTK_WINDOW (cd->shell), "Curves"); + gtk_window_set_title (GTK_WINDOW (cd->shell), _("Curves")); gtk_signal_connect (GTK_OBJECT (cd->shell), "delete_event", GTK_SIGNAL_FUNC (curves_delete_callback), @@ -467,7 +469,7 @@ curves_new_dialog () channel_hbox = gtk_hbox_new (FALSE, 2); gtk_box_pack_start (GTK_BOX (vbox), channel_hbox, FALSE, FALSE, 0); - label = gtk_label_new ("Modify Curves for Channel: "); + label = gtk_label_new (_("Modify Curves for Channel: ")); gtk_box_pack_start (GTK_BOX (channel_hbox), label, FALSE, FALSE, 0); menu = build_menu (channel_items, NULL); @@ -541,7 +543,7 @@ curves_new_dialog () gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); /* The option menu for selecting the drawing method */ - label = gtk_label_new ("Curve Type: "); + label = gtk_label_new (_("Curve Type: ")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); menu = build_menu (curve_type_items, NULL); @@ -554,7 +556,7 @@ curves_new_dialog () gtk_option_menu_set_menu (GTK_OPTION_MENU (option_menu), menu); /* The preview toggle */ - toggle = gtk_check_button_new_with_label ("Preview"); + toggle = gtk_check_button_new_with_label (_("Preview")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), cd->preview); gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -814,7 +816,7 @@ static void curves_preview (CurvesDialog *cd) { if (!cd->image_map) - g_message ("curves_preview(): No image map"); + g_message (_("curves_preview(): No image map")); active_tool->preserve = TRUE; /* Going to dirty the display... */ @@ -1298,31 +1300,31 @@ ProcArg curves_spline_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_INT32, "channel", - "the channel to modify: { VALUE (0), RED (1), GREEN (2), BLUE (3), ALPHA (4), GRAY (0) }" + N_("the channel to modify: { VALUE (0), RED (1), GREEN (2), BLUE (3), ALPHA (4), GRAY (0) }") }, { PDB_INT32, "num_points", - "the number of values in the control point array ( 3 < num_points <= 32 )" + N_("the number of values in the control point array ( 3 < num_points <= 32 )") }, { PDB_INT8ARRAY, "control_pts", - "the spline control points: { cp1.x, cp1.y, cp2.x, cp2.y, ... }" + N_("the spline control points: { cp1.x, cp1.y, cp2.x, cp2.y, ... }") } }; ProcRecord curves_spline_proc = { "gimp_curves_spline", - "Modifies the intensity curve(s) for specified drawable", - "Modifies the intensity mapping for one channel in the specified drawable. The drawable must be either grayscale or RGB, and the channel can be either an intensity component, or the value. The 'control_pts' parameter is an array of integers which define a set of control points which describe a Catmull Rom spline which yields the final intensity curve. Use the 'gimp_curves_explicit' function to explicitly modify intensity levels.", + N_("Modifies the intensity curve(s) for specified drawable"), + N_("Modifies the intensity mapping for one channel in the specified drawable. The drawable must be either grayscale or RGB, and the channel can be either an intensity component, or the value. The 'control_pts' parameter is an array of integers which define a set of control points which describe a Catmull Rom spline which yields the final intensity curve. Use the 'gimp_curves_explicit' function to explicitly modify intensity levels."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -1456,31 +1458,31 @@ ProcArg curves_explicit_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_INT32, "channel", - "the channel to modify: { VALUE (0), RED (1), GREEN (2), BLUE (3), GRAY (0) }" + N_("the channel to modify: { VALUE (0), RED (1), GREEN (2), BLUE (3), GRAY (0) }") }, { PDB_INT32, "num_bytes", - "the number of bytes in the new curve (always 256)" + N_("the number of bytes in the new curve (always 256)") }, { PDB_INT8ARRAY, "curve", - "the explicit curve" + N_("the explicit curve") } }; ProcRecord curves_explicit_proc = { "gimp_curves_explicit", - "Modifies the intensity curve(s) for specified drawable", - "Modifies the intensity mapping for one channel in the specified drawable. The drawable must be either grayscale or RGB, and the channel can be either an intensity component, or the value. The 'curve' parameter is an array of bytes which explicitly defines how each pixel value in the drawable will be modified. Use the 'gimp_curves_spline' function to modify intensity levels with Catmull Rom splines.", + N_("Modifies the intensity curve(s) for specified drawable"), + N_("Modifies the intensity mapping for one channel in the specified drawable. The drawable must be either grayscale or RGB, and the channel can be either an intensity component, or the value. The 'curve' parameter is an array of bytes which explicitly defines how each pixel value in the drawable will be modified. Use the 'gimp_curves_spline' function to modify intensity levels with Catmull Rom splines."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/base/threshold.c b/app/base/threshold.c index c0aca94f5b..0286f06c43 100644 --- a/app/base/threshold.c +++ b/app/base/threshold.c @@ -28,6 +28,8 @@ #include "interface.h" #include "threshold.h" +#include "libgimp/gimpintl.h" + #define TEXT_WIDTH 45 #define HISTOGRAM_WIDTH 256 #define HISTOGRAM_HEIGHT 150 @@ -292,7 +294,7 @@ tools_new_threshold () /* The tool options */ if (!threshold_options) - threshold_options = tools_register_no_options (THRESHOLD, "Threshold Options"); + threshold_options = tools_register_no_options (THRESHOLD, _("Threshold Options")); /* The threshold dialog */ if (!threshold_dialog) @@ -339,7 +341,7 @@ threshold_initialize (GDisplay *gdisp) { if (drawable_indexed (gimage_active_drawable (gdisp->gimage))) { - g_message ("Threshold does not operate on indexed drawables."); + g_message (_("Threshold does not operate on indexed drawables.")); return; } @@ -372,8 +374,8 @@ threshold_initialize (GDisplay *gdisp) /* the action area structure */ static ActionAreaItem action_items[] = { - { "OK", threshold_ok_callback, NULL, NULL }, - { "Cancel", threshold_cancel_callback, NULL, NULL } + { N_("OK"), threshold_ok_callback, NULL, NULL }, + { N_("Cancel"), threshold_cancel_callback, NULL, NULL } }; static ThresholdDialog * @@ -394,7 +396,7 @@ threshold_new_dialog () /* The shell and main vbox */ td->shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (td->shell), "threshold", "Gimp"); - gtk_window_set_title (GTK_WINDOW (td->shell), "Threshold"); + gtk_window_set_title (GTK_WINDOW (td->shell), _("Threshold")); /* handle the wm close signal */ gtk_signal_connect (GTK_OBJECT (td->shell), "delete_event", @@ -409,7 +411,7 @@ threshold_new_dialog () hbox = gtk_hbox_new (TRUE, 2); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); - label = gtk_label_new ("Threshold Range: "); + label = gtk_label_new (_("Threshold Range: ")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -454,7 +456,7 @@ threshold_new_dialog () gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); /* The preview toggle */ - toggle = gtk_check_button_new_with_label ("Preview"); + toggle = gtk_check_button_new_with_label (_("Preview")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), td->preview); gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -484,7 +486,7 @@ static void threshold_preview (ThresholdDialog *td) { if (!td->image_map) - g_message ("threshold_preview(): No image map"); + g_message (_("threshold_preview(): No image map")); image_map_apply (td->image_map, threshold, (void *) td); } @@ -611,27 +613,27 @@ ProcArg threshold_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_INT32, "low_threshold", - "the low threshold value: (0 <= low_threshold <= 255)" + N_("the low threshold value: (0 <= low_threshold <= 255)") }, { PDB_INT32, "high_threshold", - "the high threshold value: (0 <= high_threshold <= 255)" + N_("the high threshold value: (0 <= high_threshold <= 255)") } }; ProcRecord threshold_proc = { "gimp_threshold", - "Threshold the specified drawable", - "This procedures generates a threshold map of the specified drawable. All pixels between the values of 'low_threshold' and 'high_threshold' are replaced with white, and all other pixels with black.", + N_("Threshold the specified drawable"), + N_("This procedures generates a threshold map of the specified drawable. All pixels between the values of 'low_threshold' and 'high_threshold' are replaced with white, and all other pixels with black."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1997", diff --git a/app/base/tile-cache.c b/app/base/tile-cache.c index 0c7c46c419..1d01aff3d1 100644 --- a/app/base/tile-cache.c +++ b/app/base/tile-cache.c @@ -10,6 +10,8 @@ #include "tile_pvt.h" /* ick. */ +#include "libgimp/gimpintl.h" + #include "stdio.h" /* This is the percentage of the maximum cache size that should be cleared @@ -109,7 +111,7 @@ tile_cache_insert (Tile *tile) { if (!tile_cache_zorch_next()) { - g_warning ("cache: unable to find room for a tile"); + g_warning (_("cache: unable to find room for a tile")); goto out; } } @@ -261,7 +263,7 @@ tile_idle_thread (void *data) TileList *list; int count; - fprintf (stderr,"starting tile preswapper\n"); + fprintf (stderr,_("starting tile preswapper\n")); count = 0; while(1) diff --git a/app/base/tile-manager.c b/app/base/tile-manager.c index 58814e36e1..c8ed436c01 100644 --- a/app/base/tile-manager.c +++ b/app/base/tile-manager.c @@ -23,6 +23,8 @@ #include "tile_manager_pvt.h" #include "tile_pvt.h" /* ick. */ +#include "libgimp/gimpintl.h" + static int tile_manager_get_tile_num (TileManager *tm, int xpixel, int ypixel); @@ -306,7 +308,7 @@ tile_manager_map_tile (TileManager *tm, if ((xpixel < 0) || (xpixel >= tm->width) || (ypixel < 0) || (ypixel >= tm->height)) { - g_warning ("tile_manager_map_tile: tile co-ord out of range."); + g_warning (_("tile_manager_map_tile: tile co-ord out of range.")); return; } @@ -334,7 +336,7 @@ tile_manager_map (TileManager *tm, if ((tile_num < 0) || (tile_num >= ntiles)) { - g_warning ("tile_manager_map: tile out of range."); + g_warning (_("tile_manager_map: tile out of range.")); return; } @@ -380,7 +382,7 @@ tile_manager_map (TileManager *tm, if ((*tile_ptr)->ewidth != srctile->ewidth || (*tile_ptr)->eheight != srctile->eheight || (*tile_ptr)->bpp != srctile->bpp) { - g_warning ("tile_manager_map: nonconformant map (%p -> %p)", + g_warning (_("tile_manager_map: nonconformant map (%p -> %p)"), srctile, *tile_ptr); } tile_detach (*tile_ptr, tm, tile_num); @@ -461,7 +463,7 @@ tile_manager_get_tile_coordinates (TileManager *tm, Tile *tile, int *x, int *y) if (tl == NULL) { - g_warning ("tile_manager_get_tile_coordinates: tile not attached to manager"); + g_warning (_("tile_manager_get_tile_coordinates: tile not attached to manager")); return; } @@ -482,7 +484,7 @@ tile_manager_map_over_tile (TileManager *tm, Tile *tile, Tile *srctile) if (tl == NULL) { - g_warning ("tile_manager_map_over_tile: tile not attached to manager"); + g_warning (_("tile_manager_map_over_tile: tile not attached to manager")); return; } diff --git a/app/base/tile-swap.c b/app/base/tile-swap.c index beecc8b9a9..777a06f03e 100644 --- a/app/base/tile-swap.c +++ b/app/base/tile-swap.c @@ -8,6 +8,7 @@ #include #endif +#include "libgimp/gimpintl.h" #define MAX_OPEN_SWAP_FILES 16 @@ -133,7 +134,7 @@ tile_swap_exit1 (gpointer key, DefSwapFile *def_swap_file; if (tile_ref_count != 0) - g_message ("tile ref count balance: %d\n", tile_ref_count); + g_message (_("tile ref count balance: %d\n"), tile_ref_count); swap_file = value; if (swap_file->swap_func == tile_swap_default) @@ -141,7 +142,7 @@ tile_swap_exit1 (gpointer key, def_swap_file = swap_file->user_data; if (def_swap_file->swap_file_end != 0) { - g_message ("swap file not empty: \"%s\"\n", swap_file->filename); + g_message (_("swap file not empty: \"%s\"\n"), swap_file->filename); tile_swap_print_gaps (def_swap_file); } @@ -313,7 +314,7 @@ tile_swap_command (Tile *tile, swap_file = g_hash_table_lookup (swap_files, &tile->swap_num); if (!swap_file) { - g_message ("could not find swap file for tile"); + g_message (_("could not find swap file for tile")); goto out; } @@ -352,7 +353,7 @@ tile_swap_open (SwapFile *swap_file) swap_file->fd = open (swap_file->filename, O_CREAT|O_RDWR, S_IRUSR|S_IWUSR); if (swap_file->fd == -1) { - g_message ("unable to open swap file...BAD THINGS WILL HAPPEN SOON"); + g_message (_("unable to open swap file...BAD THINGS WILL HAPPEN SOON")); return; } @@ -394,7 +395,7 @@ tile_swap_default (int fd, tile_swap_default_delete (def_swap_file, fd, tile); break; case SWAP_COMPRESS: - g_message ("tile_swap_default: SWAP_COMPRESS: UNFINISHED"); + g_message (_("tile_swap_default: SWAP_COMPRESS: UNFINISHED")); break; } @@ -472,7 +473,7 @@ tile_swap_default_in (DefSwapFile *def_swap_file, if (offset == -1) { if (seek_err_msg) - g_message ("unable to seek to tile location on disk: %d", err); + g_message (_("unable to seek to tile location on disk: %d"), err); seek_err_msg = FALSE; return; } @@ -491,7 +492,7 @@ tile_swap_default_in (DefSwapFile *def_swap_file, if (err <= 0) { if (read_err_msg) - g_message ("unable to read tile data from disk: %d/%d ( %d ) bytes read", err, errno, nleft); + g_message (_("unable to read tile data from disk: %d/%d ( %d ) bytes read"), err, errno, nleft); read_err_msg = FALSE; return; } @@ -533,7 +534,7 @@ tile_swap_default_out (DefSwapFile *def_swap_file, if (offset == -1) { if (seek_err_msg) - g_message ("unable to seek to tile location on disk: %d", errno); + g_message (_("unable to seek to tile location on disk: %d"), errno); seek_err_msg = FALSE; return; } @@ -546,7 +547,7 @@ tile_swap_default_out (DefSwapFile *def_swap_file, if (err <= 0) { if (write_err_msg) - g_message ("unable to write tile data to disk: %d ( %d ) bytes written", err, nleft); + g_message (_("unable to write tile data to disk: %d ( %d ) bytes written"), err, nleft); write_err_msg = FALSE; return; } diff --git a/app/base/tile.c b/app/base/tile.c index 2db5b8202d..1e4cf4efb4 100644 --- a/app/base/tile.c +++ b/app/base/tile.c @@ -6,6 +6,7 @@ #include "tile_manager.h" #include "tile_swap.h" +#include "libgimp/gimpintl.h" /* EXPERIMENTAL Copy-On-Write goodies * by Adam D. Moss @@ -163,12 +164,12 @@ tile_destroy (Tile *tile) { if (tile->ref_count) { - g_warning ("tried to destroy a ref'd tile"); + g_warning (_("tried to destroy a ref'd tile")); return; } if (tile->share_count) { - g_warning ("tried to destroy an attached tile"); + g_warning (_("tried to destroy an attached tile")); return; } if (tile->data) @@ -281,7 +282,7 @@ tile_detach (Tile *tile, void *tm, int tile_num) if (*link == NULL) { - g_warning ("Tried to detach a nonattached tile"); + g_warning (_("Tried to detach a nonattached tile")); return; } diff --git a/app/batch.c b/app/batch.c index e9fcef11c6..896b86e4f8 100644 --- a/app/batch.c +++ b/app/batch.c @@ -10,6 +10,7 @@ #include "batch.h" #include "procedural_db.h" +#include "libgimp/gimpintl.h" static void batch_run_cmd (char *cmd); static void batch_read (gpointer data, @@ -31,7 +32,7 @@ batch_init () eval_proc = procedural_db_lookup ("extension_script_fu_eval"); if (!eval_proc) { - g_message ("script-fu not available: batch mode disabled\n"); + g_message (_("script-fu not available: batch mode disabled\n")); return; } @@ -42,7 +43,7 @@ batch_init () { if (!read_from_stdin) { - g_print ("reading batch commands from stdin\n"); + g_print (_("reading batch commands from stdin\n")); gdk_input_add (STDIN_FILENO, GDK_INPUT_READ, batch_read, NULL); read_from_stdin = TRUE; } @@ -79,13 +80,13 @@ batch_run_cmd (char *cmd) switch (vals[0].value.pdb_int) { case PDB_EXECUTION_ERROR: - g_print ("batch command: experienced an execution error.\n"); + g_print (_("batch command: experienced an execution error.\n")); break; case PDB_CALLING_ERROR: - g_print ("batch command: experienced a calling error.\n"); + g_print (_("batch command: experienced a calling error.\n")); break; case PDB_SUCCESS: - g_print ("batch command: executed successfully.\n"); + g_print (_("batch command: executed successfully.\n")); break; default: break; diff --git a/app/bezier_select.c b/app/bezier_select.c index 0e0686be36..901da800dd 100644 --- a/app/bezier_select.c +++ b/app/bezier_select.c @@ -30,6 +30,8 @@ #include "interface.h" #include "actionarea.h" +#include "libgimp/gimpintl.h" + /* Bezier extensions made by Raphael FRANCOIS (fraph@ibm.net) BEZIER_EXTENDS VER 1.0 @@ -435,7 +437,7 @@ bezier_select_button_press (Tool *tool, break; case BEZIER_EDIT: if (!bezier_sel->closed) - fatal_error ("tried to edit on open bezier curve in edit selection"); + fatal_error (_("tried to edit on open bezier curve in edit selection")); /* erase the handles */ bezier_sel->draw = BEZIER_DRAW_HANDLES; @@ -775,7 +777,7 @@ bezier_select_motion (Tool *tool, } if (!anchor) - fatal_error ("Encountered orphaned bezier control point"); + fatal_error (_("Encountered orphaned bezier control point")); if (opposite_control) { @@ -1132,7 +1134,7 @@ bezier_draw_segment (BezierSelect *bezier_sel, for (i = 0; i < 4; i++) { if (!points) - fatal_error ("bad bezier segment"); + fatal_error (_("bad bezier segment")); switch (space) { @@ -1149,7 +1151,7 @@ bezier_draw_segment (BezierSelect *bezier_sel, geometry[i][1] = points->sy; break; default: - fatal_error ("unknown coordinate space: %d", space); + fatal_error (_("unknown coordinate space: %d"), space); break; } @@ -1290,7 +1292,7 @@ bezier_convert (BezierSelect *bezier_sel, int i, j; if (!bezier_sel->closed) - fatal_error ("tried to convert an open bezier curve"); + fatal_error (_("tried to convert an open bezier curve")); /* destroy previous mask */ if (bezier_sel->mask) @@ -1842,7 +1844,7 @@ static void file_ok_callback(GtkWidget * widget, gpointer client_data) pn_dlg = (PasteNamedDlg *) client_data; f = fopen(filename, "rb"); - printf("reading %s\n", filename); + printf(_("reading %s\n"), filename); while(!feof(f)) { @@ -1856,9 +1858,9 @@ static void file_ok_callback(GtkWidget * widget, gpointer client_data) GString *s; fclose(f); - s = g_string_new ("Open failed: "); + s = g_string_new (_("Open failed: ")); - g_string_append (s, "Bezier Load"); + g_string_append (s, _("Bezier Load")); g_message (s->str); @@ -1944,7 +1946,7 @@ static void file_cancel_callback(GtkWidget * widget, gpointer data) static void make_file_dlg(gpointer data) { - file_dlg = gtk_file_selection_new ("Load/Store Bezier Curves"); + file_dlg = gtk_file_selection_new (_("Load/Store Bezier Curves")); gtk_window_position (GTK_WINDOW (file_dlg), GTK_WIN_POS_MOUSE); gtk_signal_connect(GTK_OBJECT (GTK_FILE_SELECTION (file_dlg)->cancel_button), "clicked", (GtkSignalFunc) file_cancel_callback, data); @@ -1964,7 +1966,7 @@ static void load_callback(GtkWidget * widget, gpointer data) if (GTK_WIDGET_VISIBLE(file_dlg)) return; } - gtk_window_set_title(GTK_WINDOW (file_dlg), "Load Bezier Curves"); + gtk_window_set_title(GTK_WINDOW (file_dlg), _("Load Bezier Curves")); load_store = 1; gtk_widget_show (file_dlg); } @@ -1981,7 +1983,7 @@ static void store_callback(GtkWidget * widget, gpointer data) return; } - gtk_window_set_title(GTK_WINDOW (file_dlg), "Store Bezier Curves"); + gtk_window_set_title(GTK_WINDOW (file_dlg), _("Store Bezier Curves")); load_store = 0; gtk_widget_show (file_dlg); } @@ -2061,8 +2063,8 @@ static void bezier_add_callback (GtkWidget *w, pn_dlg = (PasteNamedDlg *) client_data; - query_string_box ("Named Bezier Buffer", - "Enter a name for this buffer", + query_string_box (_("Named Bezier Buffer"), + _("Enter a name for this buffer"), NULL, new_bezier_buffer_callback, pn_dlg); @@ -2099,9 +2101,9 @@ void create_choice(GtkWidget *box) char *name; int value; } menu_items[] = { - {"Edit Curve", EXTEND_EDIT }, - {"Add Point", EXTEND_ADD }, - {"Remove Point", EXTEND_REMOVE}, + {N_("Edit Curve"), EXTEND_EDIT }, + {N_("Add Point"), EXTEND_ADD }, + {N_("Remove Point"), EXTEND_REMOVE}, { NULL, 0}, }; @@ -2114,7 +2116,7 @@ void create_choice(GtkWidget *box) gtk_box_pack_start(GTK_BOX(box), hbox, TRUE, FALSE, 10); gtk_widget_show(hbox); - w = gtk_label_new("Mode :"); + w = gtk_label_new(_("Mode :")); gtk_misc_set_alignment(GTK_MISC(w), 0.0, 0.5); gtk_box_pack_start(GTK_BOX(hbox), w, FALSE, FALSE, 0); gtk_widget_show(w); @@ -2143,13 +2145,13 @@ static void bezier_named_buffer_proc (GDisplay *gdisp) int i; static ActionAreaItem action_items[] = { - { "New", bezier_new_curve_callback, NULL, NULL }, - { "Add", bezier_add_callback, NULL, NULL }, - { "Replace", bezier_replace_callback, NULL, NULL }, - { "Paste", bezier_buffer_paste_callback, NULL, NULL }, - { "Delete", bezier_buffer_delete_callback, NULL, NULL }, - { "Load", load_callback, NULL, NULL }, - { "Save", store_callback, NULL, NULL } + { N_("New"), bezier_new_curve_callback, NULL, NULL }, + { N_("Add"), bezier_add_callback, NULL, NULL }, + { N_("Replace"), bezier_replace_callback, NULL, NULL }, + { N_("Paste"), bezier_buffer_paste_callback, NULL, NULL }, + { N_("Delete"), bezier_buffer_delete_callback, NULL, NULL }, + { N_("Load"), load_callback, NULL, NULL }, + { N_("Save"), store_callback, NULL, NULL } }; PasteNamedDlg *pn_dlg; GtkWidget *vbox; @@ -2168,7 +2170,7 @@ static void bezier_named_buffer_proc (GDisplay *gdisp) curPndlg = pn_dlg; - gtk_window_set_title (GTK_WINDOW (pn_dlg->shell), "Paste Bezier Named Buffer"); + gtk_window_set_title (GTK_WINDOW (pn_dlg->shell), _("Paste Bezier Named Buffer")); gtk_window_position (GTK_WINDOW (pn_dlg->shell), GTK_WIN_POS_MOUSE); vbox = gtk_vbox_new (FALSE, 1); @@ -2176,7 +2178,7 @@ static void bezier_named_buffer_proc (GDisplay *gdisp) gtk_box_pack_start (GTK_BOX (GTK_DIALOG (pn_dlg->shell)->vbox), vbox, TRUE, TRUE, 0); gtk_widget_show (vbox); - label = gtk_label_new ("Select a buffer to operate:"); + label = gtk_label_new (_("Select a buffer to operate:")); gtk_box_pack_start (GTK_BOX (vbox), label, TRUE, FALSE, 0); gtk_widget_show (label); @@ -2242,7 +2244,7 @@ add_point_on_segment (BezierSelect *bezier_sel, for (i = 0; i < 4; i++) { if (!points) - fatal_error ("bad bezier segment"); + fatal_error (_("bad bezier segment")); switch (space) { @@ -2259,7 +2261,7 @@ add_point_on_segment (BezierSelect *bezier_sel, geometry[i][1] = points->sy; break; default: - fatal_error ("unknown coordinate space: %d", space); + fatal_error (_("unknown coordinate space: %d"), space); break; } diff --git a/app/blend.c b/app/blend.c index a5649e88ee..95b7c9c9b9 100644 --- a/app/blend.c +++ b/app/blend.c @@ -37,6 +37,8 @@ #include "tools.h" #include "undo.h" +#include "libgimp/gimpintl.h" + #include "tile.h" /* target size */ @@ -208,25 +210,25 @@ static PixelRegion distR = /* the blend option menu items -- the blend modes */ static MenuItem blend_option_items[] = { - { "FG to BG (RGB)", 0, 0, blend_mode_callback, (gpointer) FG_BG_RGB_MODE, NULL, NULL }, - { "FG to BG (HSV)", 0, 0, blend_mode_callback, (gpointer) FG_BG_HSV_MODE, NULL, NULL }, - { "FG to Transparent", 0, 0, blend_mode_callback, (gpointer) FG_TRANS_MODE, NULL, NULL }, - { "Custom (from editor)", 0, 0, blend_mode_callback, (gpointer) CUSTOM_MODE, NULL, NULL }, + { N_("FG to BG RGB"), 0, 0, blend_mode_callback, (gpointer) FG_BG_RGB_MODE, NULL, NULL }, + { N_("FG to BG HSV"), 0, 0, blend_mode_callback, (gpointer) FG_BG_HSV_MODE, NULL, NULL }, + { N_("FG to Transparent"), 0, 0, blend_mode_callback, (gpointer) FG_TRANS_MODE, NULL, NULL }, + { N_("Custom from editor"), 0, 0, blend_mode_callback, (gpointer) CUSTOM_MODE, NULL, NULL }, { NULL, 0, 0, NULL, NULL, NULL, NULL } }; /* the gradient option menu items -- the gradient modes */ static MenuItem gradient_option_items[] = { - { "Linear", 0, 0, gradient_type_callback, (gpointer) Linear, NULL, NULL }, - { "Bi-Linear", 0, 0, gradient_type_callback, (gpointer) BiLinear, NULL, NULL }, - { "Radial", 0, 0, gradient_type_callback, (gpointer) Radial, NULL, NULL }, - { "Square", 0, 0, gradient_type_callback, (gpointer) Square, NULL, NULL }, - { "Conical (symmetric)", 0, 0, gradient_type_callback, (gpointer) ConicalSymmetric, NULL, NULL }, - { "Conical (asymmetric)", 0, 0, gradient_type_callback, (gpointer) ConicalAsymmetric, NULL, NULL }, - { "Shapeburst (angular)", 0, 0, gradient_type_callback, (gpointer) ShapeburstAngular, NULL, NULL }, - { "Shapeburst (spherical)", 0, 0, gradient_type_callback, (gpointer) ShapeburstSpherical, NULL, NULL }, - { "Shapeburst (dimpled)", 0, 0, gradient_type_callback, (gpointer) ShapeburstDimpled, NULL, NULL }, + { N_("Linear"), 0, 0, gradient_type_callback, (gpointer) Linear, NULL, NULL }, + { N_("Bi-Linear"), 0, 0, gradient_type_callback, (gpointer) BiLinear, NULL, NULL }, + { N_("Radial"), 0, 0, gradient_type_callback, (gpointer) Radial, NULL, NULL }, + { N_("Square"), 0, 0, gradient_type_callback, (gpointer) Square, NULL, NULL }, + { N_("Conical (symmetric)"), 0, 0, gradient_type_callback, (gpointer) ConicalSymmetric, NULL, NULL }, + { N_("Conical (asymmetric)"), 0, 0, gradient_type_callback, (gpointer) ConicalAsymmetric, NULL, NULL }, + { N_("Shapeburst (angular)"), 0, 0, gradient_type_callback, (gpointer) ShapeburstAngular, NULL, NULL }, + { N_("Shapeburst (spherical)"), 0, 0, gradient_type_callback, (gpointer) ShapeburstSpherical, NULL, NULL }, + { N_("Shapeburst (dimpled)"), 0, 0, gradient_type_callback, (gpointer) ShapeburstDimpled, NULL, NULL }, { NULL, 0, 0, NULL, NULL, NULL, NULL } }; @@ -237,9 +239,9 @@ static BlendOptions *blend_options = NULL; static MenuItem repeat_option_items[] = { - { "None", 0, 0, repeat_type_callback, (gpointer) REPEAT_NONE, NULL, NULL }, - { "Sawtooth wave", 0, 0, repeat_type_callback, (gpointer) REPEAT_SAWTOOTH, NULL, NULL }, - { "Triangular wave", 0, 0, repeat_type_callback, (gpointer) REPEAT_TRIANGULAR, NULL, NULL }, + { N_("None"), 0, 0, repeat_type_callback, (gpointer) REPEAT_NONE, NULL, NULL }, + { N_("Sawtooth wave"), 0, 0, repeat_type_callback, (gpointer) REPEAT_SAWTOOTH, NULL, NULL }, + { N_("Triangular wave"), 0, 0, repeat_type_callback, (gpointer) REPEAT_TRIANGULAR, NULL, NULL }, { NULL, 0, 0, NULL, NULL, NULL, NULL } }; @@ -355,7 +357,7 @@ create_blend_options () vbox = gtk_vbox_new (FALSE, 2); /* the main label */ - label = gtk_label_new ("Blend Options"); + label = gtk_label_new (_("Blend Options")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -365,7 +367,7 @@ create_blend_options () gtk_box_pack_start(GTK_BOX(vbox), table, TRUE, TRUE, 0); /* the opacity scale */ - label = gtk_label_new ("Opacity:"); + label = gtk_label_new (_("Opacity:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 1.0); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2); @@ -383,7 +385,7 @@ create_blend_options () gtk_widget_show (opacity_scale); /* the offset scale */ - label = gtk_label_new ("Offset:"); + label = gtk_label_new (_("Offset:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 1.0); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2); @@ -401,7 +403,7 @@ create_blend_options () gtk_widget_show (offset_scale); /* the paint mode menu */ - label = gtk_label_new ("Mode:"); + label = gtk_label_new (_("Mode:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 2, 3, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2); @@ -414,7 +416,7 @@ create_blend_options () gtk_widget_show (pm_option_menu); /* the blend mode menu */ - label = gtk_label_new ("Blend:"); + label = gtk_label_new (_("Blend:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 3, 4, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2); @@ -427,7 +429,7 @@ create_blend_options () gtk_widget_show (bm_option_menu); /* the gradient type menu */ - label = gtk_label_new ("Gradient:"); + label = gtk_label_new (_("Gradient:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 4, 5, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2); @@ -441,7 +443,7 @@ create_blend_options () /* the repeat option */ - label = gtk_label_new("Repeat:"); + label = gtk_label_new(_("Repeat:")); gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 5, 6, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2); @@ -460,7 +462,7 @@ create_blend_options () /* supersampling toggle */ - button = gtk_check_button_new_with_label("Adaptive supersampling"); + button = gtk_check_button_new_with_label(_("Adaptive supersampling")); gtk_box_pack_start(GTK_BOX(vbox), button, FALSE, FALSE, 0); gtk_signal_connect(GTK_OBJECT(button), "toggled", (GtkSignalFunc) supersample_toggle_update, @@ -482,7 +484,7 @@ create_blend_options () /* max depth scale */ - label = gtk_label_new("Max depth:"); + label = gtk_label_new(_("Max depth:")); gtk_misc_set_alignment(GTK_MISC(label), 0.0, 1.0); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 0, 1, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2); @@ -501,7 +503,7 @@ create_blend_options () /* threshold scale */ - label = gtk_label_new("Threshold:"); + label = gtk_label_new(_("Threshold:")); gtk_misc_set_alignment(GTK_MISC(label), 0.0, 1.0); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 1, 2, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2); @@ -555,7 +557,7 @@ blend_button_press (Tool *tool, switch (drawable_type (gimage_active_drawable (gdisp->gimage))) { case INDEXED_GIMAGE: case INDEXEDA_GIMAGE: - g_message ("Blend: Invalid for indexed images."); + g_message (_("Blend: Invalid for indexed images.")); return; break; @@ -580,7 +582,7 @@ blend_button_press (Tool *tool, /* initialize the statusbar display */ blend_tool->context_id = gtk_statusbar_get_context_id (GTK_STATUSBAR (gdisp->statusbar), "blend"); - gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), blend_tool->context_id, "Blend: 0, 0"); + gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), blend_tool->context_id, _("Blend: 0, 0")); /* Start drawing the blend tool */ draw_core_start (blend_tool->core, gdisp->canvas->window, tool); @@ -636,7 +638,7 @@ blend_button_release (Tool *tool, if (return_vals[0].value.pdb_int == PDB_SUCCESS) gdisplays_flush (); else - g_message ("Blend operation failed."); + g_message (_("Blend operation failed.")); procedural_db_destroy_args (return_vals, nreturn_vals); } @@ -662,7 +664,7 @@ blend_motion (Tool *tool, &blend_tool->endx, &blend_tool->endy, FALSE, 1); gtk_statusbar_pop (GTK_STATUSBAR (gdisp->statusbar), blend_tool->context_id); - g_snprintf (vector, STATUSBAR_SIZE, "Blend: %d, %d", + g_snprintf (vector, STATUSBAR_SIZE, _("Blend: %d, %d"), abs(blend_tool->endx - blend_tool->startx), abs(blend_tool->endy - blend_tool->starty)); gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), blend_tool->context_id, vector); @@ -1248,7 +1250,7 @@ gradient_render_pixel(double x, double y, color_t *color, void *render_data) break; default: - fatal_error("gradient_render_pixel(): unknown gradient type %d", + fatal_error(_("gradient_render_pixel(): unknown gradient type %d"), (int) rbd->gradient_type); return; } @@ -1380,7 +1382,7 @@ gradient_fill_region (GImage *gimage, break; default: - fatal_error("gradient_fill_region(): unknown blend mode %d", + fatal_error(_("gradient_fill_region(): unknown blend mode %d"), (int) blend_mode); break; } @@ -1419,7 +1421,7 @@ gradient_fill_region (GImage *gimage, break; default: - fatal_error("gradient_fill_region(): unknown gradient type %d", + fatal_error(_("gradient_fill_region(): unknown gradient type %d"), (int) gradient_type); break; } @@ -1441,7 +1443,7 @@ gradient_fill_region (GImage *gimage, break; default: - fatal_error("gradient_fill_region(): unknown repeat mode %d", + fatal_error(_("gradient_fill_region(): unknown repeat mode %d"), (int) repeat); break; } @@ -1711,71 +1713,71 @@ ProcArg blend_args[] = { { PDB_IMAGE, "image", - "The image" + N_("The image") }, { PDB_DRAWABLE, "drawable", - "The affected drawable" + N_("The affected drawable") }, { PDB_INT32, "blend_mode", - "The type of blend: { FG-BG-RGB (0), FG-BG-HSV (1), FG-TRANS (2), CUSTOM (3) }" + N_("The type of blend: { FG-BG-RGB (0), FG-BG-HSV (1), FG-TRANS (2), CUSTOM (3) }") }, { PDB_INT32, "paint_mode", - "the paint application mode: { NORMAL (0), DISSOLVE (1), BEHIND (2), MULTIPLY/BURN (3), SCREEN (4), OVERLAY (5) DIFFERENCE (6), ADDITION (7), SUBTRACT (8), DARKEN-ONLY (9), LIGHTEN-ONLY (10), HUE (11), SATURATION (12), COLOR (13), VALUE (14), DIVIDE/DODGE (15) }" + N_("the paint application mode: { NORMAL (0), DISSOLVE (1), BEHIND (2), MULTIPLY/BURN (3), SCREEN (4), OVERLAY (5) DIFFERENCE (6), ADDITION (7), SUBTRACT (8), DARKEN-ONLY (9), LIGHTEN-ONLY (10), HUE (11), SATURATION (12), COLOR (13), VALUE (14), DIVIDE/DODGE (15) }") }, { PDB_INT32, "gradient_type", - "The type of gradient: { LINEAR (0), BILINEAR (1), RADIAL (2), SQUARE (3), CONICAL-SYMMETRIC (4), CONICAL-ASYMMETRIC (5), SHAPEBURST-ANGULAR (6), SHAPEBURST-SPHERICAL (7), SHAPEBURST-DIMPLED (8) }" + N_("The type of gradient: { LINEAR (0), BILINEAR (1), RADIAL (2), SQUARE (3), CONICAL-SYMMETRIC (4), CONICAL-ASYMMETRIC (5), SHAPEBURST-ANGULAR (6), SHAPEBURST-SPHERICAL (7), SHAPEBURST-DIMPLED (8) }") }, { PDB_FLOAT, "opacity", - "The opacity of the final blend (0 <= opacity <= 100)" + N_("The opacity of the final blend (0 <= opacity <= 100)") }, { PDB_FLOAT, "offset", - "Offset relates to the starting and ending coordinates specified for the blend. This parameter is mode depndent (0 <= offset)" + N_("Offset relates to the starting and ending coordinates specified for the blend. This parameter is mode depndent (0 <= offset)") }, { PDB_INT32, "repeat", - "Repeat mode: { REPEAT-NONE (0), REPEAT-SAWTOOTH (1), REPEAT-TRIANGULAR (2) }" + N_("Repeat mode: { REPEAT-NONE (0), REPEAT-SAWTOOTH (1), REPEAT-TRIANGULAR (2) }") }, { PDB_INT32, "supersample", - "Do adaptive supersampling (true / false)" + N_("Do adaptive supersampling (true / false)") }, { PDB_INT32, "max_depth", - "Maximum recursion levels for supersampling" + N_("Maximum recursion levels for supersampling") }, { PDB_FLOAT, "threshold", - "Supersampling threshold" + N_("Supersampling threshold") }, { PDB_FLOAT, "x1", - "The x coordinate of this blend's starting point" + N_("The x coordinate of this blend's starting point") }, { PDB_FLOAT, "y1", - "The y coordinate of this blend's starting point" + N_("The y coordinate of this blend's starting point") }, { PDB_FLOAT, "x2", - "The x coordinate of this blend's ending point" + N_("The x coordinate of this blend's ending point") }, { PDB_FLOAT, "y2", - "The y coordinate of this blend's ending point" + N_("The y coordinate of this blend's ending point") } }; ProcRecord blend_proc = { "gimp_blend", - "Blend between the starting and ending coordinates with the specified blend mode and gradient type.", - "This tool requires information on the paint application mode, the blend mode, and the gradient type. It creates the specified variety of blend using the starting and ending coordinates as defined for each gradient type.", + N_("Blend between the starting and ending coordinates with the specified blend mode and gradient type."), + N_("This tool requires information on the paint application mode, the blend mode, and the gradient type. It creates the specified variety of blend using the starting and ending coordinates as defined for each gradient type."), "Spencer Kimball & Peter Mattis & Federico Mena Quintero", "Spencer Kimball & Peter Mattis & Federico Mena Quintero", "1995-1996", diff --git a/app/boundary.c b/app/boundary.c index e8cbf00da8..86b8fdea23 100644 --- a/app/boundary.c +++ b/app/boundary.c @@ -1,3 +1,4 @@ + /* The GIMP -- an image manipulation program * Copyright (C) 1995 Spencer Kimball and Peter Mattis * @@ -21,6 +22,8 @@ #include "errors.h" #include "boundary.h" +#include "libgimp/gimpintl.h" + #include "tile.h" /* half intensity for mask */ @@ -171,7 +174,7 @@ make_seg (int x1, sizeof (BoundSeg) * max_segs); if (!tmp_segs) - fatal_error ("Unable to reallocate segments array for mask boundary."); + fatal_error (_("Unable to reallocate segments array for mask boundary.")); } tmp_segs[num_segs].x1 = x1; @@ -213,7 +216,7 @@ allocate_empty_segs (void) empty_segs_l = (int *) g_realloc (empty_segs_l, sizeof (int) * max_empty_segs); if (!empty_segs_n || !empty_segs_l || !empty_segs_c) - fatal_error ("Unable to reallocate empty segments array for mask boundary."); + fatal_error (_("Unable to reallocate empty segments array for mask boundary.")); } } @@ -468,7 +471,7 @@ sort_boundary (BoundSeg *segs, } if (x != startx || y != starty) - g_message ("sort_boundary(): Unconnected boundary group!"); + g_message (_("sort_boundary(): Unconnected boundary group!")); /* Mark the end of a group */ *num_groups = *num_groups + 1; diff --git a/app/brightness_contrast.c b/app/brightness_contrast.c index 3e0de2157f..17f6d2afd0 100644 --- a/app/brightness_contrast.c +++ b/app/brightness_contrast.c @@ -28,6 +28,8 @@ #include "image_map.h" #include "interface.h" +#include "libgimp/gimpintl.h" + #define TEXT_WIDTH 45 #define TEXT_HEIGHT 25 #define SLIDER_WIDTH 200 @@ -240,7 +242,7 @@ tools_new_brightness_contrast () /* The tool options */ if (!brightness_contrast_options) brightness_contrast_options = tools_register_no_options (BRIGHTNESS_CONTRAST, - "Brightness-Contrast Options"); + _("Brightness-Contrast Options")); tool = (Tool *) g_malloc (sizeof (Tool)); private = (BrightnessContrast *) g_malloc (sizeof (BrightnessContrast)); @@ -282,7 +284,7 @@ brightness_contrast_initialize (GDisplay *gdisp) { if (drawable_indexed (gimage_active_drawable (gdisp->gimage))) { - g_message ("Brightness-Contrast does not operate on indexed drawables."); + g_message (_("Brightness-Contrast does not operate on indexed drawables.")); return; } @@ -313,8 +315,8 @@ brightness_contrast_initialize (GDisplay *gdisp) /* the action area structure */ static ActionAreaItem action_items[] = { - { "OK", brightness_contrast_ok_callback, NULL, NULL }, - { "Cancel", brightness_contrast_cancel_callback, NULL, NULL } + { N_("OK"), brightness_contrast_ok_callback, NULL, NULL }, + { N_("Cancel"), brightness_contrast_cancel_callback, NULL, NULL } }; static BrightnessContrastDialog * @@ -335,7 +337,7 @@ brightness_contrast_new_dialog () /* The shell and main vbox */ bcd->shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (bcd->shell), "brightness_contrast", "Gimp"); - gtk_window_set_title (GTK_WINDOW (bcd->shell), "Brightness-Contrast"); + gtk_window_set_title (GTK_WINDOW (bcd->shell), N_("Brightness-Contrast")); /* handle wm close signal */ gtk_signal_connect (GTK_OBJECT (bcd->shell), "delete_event", @@ -351,7 +353,7 @@ brightness_contrast_new_dialog () gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, FALSE, 0); /* Create the brightness scale widget */ - label = gtk_label_new ("Brightness"); + label = gtk_label_new (_("Brightness")); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2); @@ -385,7 +387,7 @@ brightness_contrast_new_dialog () /* Create the contrast scale widget */ - label = gtk_label_new ("Contrast"); + label = gtk_label_new (_("Contrast")); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2); @@ -423,7 +425,7 @@ brightness_contrast_new_dialog () gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); /* The preview toggle */ - toggle = gtk_check_button_new_with_label ("Preview"); + toggle = gtk_check_button_new_with_label (_("Preview")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), bcd->preview); gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -479,7 +481,7 @@ static void brightness_contrast_preview (BrightnessContrastDialog *bcd) { if (!bcd->image_map) - g_message ("brightness_contrast_preview(): No image map"); + g_message (_("brightness_contrast_preview(): No image map")); active_tool->preserve = TRUE; image_map_apply (bcd->image_map, brightness_contrast, (void *) bcd); active_tool->preserve = FALSE; @@ -643,27 +645,27 @@ ProcArg brightness_contrast_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_INT32, "brightness", - "brightness adjustment: (-127 <= brightness <= 127)" + N_("brightness adjustment: (-127 <= brightness <= 127)") }, { PDB_INT32, "contrast", - "constrast adjustment: (-127 <= contrast <= 127)" + N_("constrast adjustment: (-127 <= contrast <= 127)") } }; ProcRecord brightness_contrast_proc = { "gimp_brightness_contrast", - "Modify brightness/contrast in the specified drawable", - "This procedures allows the brightness and contrast of the specified drawable to be modified. Both 'brightness' and 'contrast' parameters are defined between -127 and 127.", + N_("Modify brightness/contrast in the specified drawable"), + N_("This procedures allows the brightness and contrast of the specified drawable to be modified. Both 'brightness' and 'contrast' parameters are defined between -127 and 127."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1997", diff --git a/app/brush_edit.c b/app/brush_edit.c index 26f21e9612..7cb8cd09fc 100644 --- a/app/brush_edit.c +++ b/app/brush_edit.c @@ -26,6 +26,7 @@ #include "actionarea.h" #include "math.h" +#include "libgimp/gimpintl.h" static void brush_edit_close_callback (GtkWidget *w, void *data); static gint brush_edit_preview_resize (GtkWidget *widget, GdkEvent *event, @@ -34,7 +35,7 @@ static gint brush_edit_preview_resize (GtkWidget *widget, GdkEvent *event, /* the action area structure */ static ActionAreaItem action_items[] = { - { "Close", brush_edit_close_callback, NULL, NULL } + { N_("Close"), brush_edit_close_callback, NULL, NULL } }; static void @@ -196,7 +197,7 @@ brush_edit_generated_new () begw->shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (begw->shell), "generatedbrusheditor", "Gimp"); - gtk_window_set_title (GTK_WINDOW (begw->shell), "Brush Editor"); + gtk_window_set_title (GTK_WINDOW (begw->shell), _("Brush Editor")); gtk_window_set_policy(GTK_WINDOW(begw->shell), FALSE, TRUE, FALSE); vbox = gtk_vbox_new (FALSE, 1); @@ -236,7 +237,7 @@ brush_edit_generated_new () gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, FALSE, 0); /* brush radius scale */ - label = gtk_label_new ("Radius:"); + label = gtk_label_new (_("Radius:")); gtk_misc_set_alignment (GTK_MISC(label), 1.0, 0.5); /* gtk_table_attach(GTK_TABLE (table), label, 0, 1, 0, 1, 0, 0, 0, 0); */ gtk_table_attach(GTK_TABLE (table), label, 0, 1, 0, 1, 3, 0, 0, 0); @@ -253,7 +254,7 @@ brush_edit_generated_new () /* brush hardness scale */ - label = gtk_label_new ("Hardness:"); + label = gtk_label_new (_("Hardness:")); gtk_misc_set_alignment (GTK_MISC(label), 1.0, 0.5); gtk_table_attach(GTK_TABLE (table), label, 0, 1, 1, 2, 0, 0, 0, 0); begw->hardness_data = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 1.0, 0.01, 0.01, 0.0)); @@ -269,7 +270,7 @@ brush_edit_generated_new () /* brush aspect ratio scale */ - label = gtk_label_new ("Aspect Ratio:"); + label = gtk_label_new (_("Aspect Ratio:")); gtk_misc_set_alignment (GTK_MISC(label), 1.0, 0.5); gtk_table_attach(GTK_TABLE (table), label, 0, 1, 2, 3, 0, 0, 0, 0); begw->aspect_ratio_data = GTK_ADJUSTMENT (gtk_adjustment_new (1.0, 1.0, 20.0, 0.1, 1.0, 0.0)); @@ -285,7 +286,7 @@ brush_edit_generated_new () /* brush angle scale */ - label = gtk_label_new ("Angle:"); + label = gtk_label_new (_("Angle:")); gtk_misc_set_alignment (GTK_MISC(label), 1.0, 0.5); gtk_table_attach(GTK_TABLE (table), label, 0, 1, 3, 4, 0, 0, 0, 0); begw->angle_data = GTK_ADJUSTMENT (gtk_adjustment_new (00.0, 0.0, 180.0, 0.1, 1.0, 0.0)); diff --git a/app/brush_select.c b/app/brush_select.c index 488dd5e03f..14195978a9 100644 --- a/app/brush_select.c +++ b/app/brush_select.c @@ -34,6 +34,7 @@ #include "paint_funcs.h" #include "session.h" +#include "libgimp/gimpintl.h" #define STD_CELL_WIDTH 24 #define STD_CELL_HEIGHT 24 @@ -91,30 +92,30 @@ static void spacing_scale_update (GtkAdjustment *, gpointer); /* the option menu items -- the paint modes */ static MenuItem option_items[] = { - { "Normal", 0, 0, paint_mode_menu_callback, (gpointer) NORMAL_MODE, NULL, NULL }, - { "Dissolve", 0, 0, paint_mode_menu_callback, (gpointer) DISSOLVE_MODE, NULL, NULL }, - { "Behind", 0, 0, paint_mode_menu_callback, (gpointer) BEHIND_MODE, NULL, NULL }, - { "Multiply (Burn)", 0, 0, paint_mode_menu_callback, (gpointer) MULTIPLY_MODE, NULL, NULL }, - { "Divide (Dodge)", 0, 0, paint_mode_menu_callback, (gpointer) DIVIDE_MODE, NULL, NULL }, - { "Screen", 0, 0, paint_mode_menu_callback, (gpointer) SCREEN_MODE, NULL, NULL }, - { "Overlay", 0, 0, paint_mode_menu_callback, (gpointer) OVERLAY_MODE, NULL, NULL }, - { "Difference", 0, 0, paint_mode_menu_callback, (gpointer) DIFFERENCE_MODE, NULL, NULL }, - { "Addition", 0, 0, paint_mode_menu_callback, (gpointer) ADDITION_MODE, NULL, NULL }, - { "Subtract", 0, 0, paint_mode_menu_callback, (gpointer) SUBTRACT_MODE, NULL, NULL }, - { "Darken Only", 0, 0, paint_mode_menu_callback, (gpointer) DARKEN_ONLY_MODE, NULL, NULL }, - { "Lighten Only", 0, 0, paint_mode_menu_callback, (gpointer) LIGHTEN_ONLY_MODE, NULL, NULL }, - { "Hue", 0, 0, paint_mode_menu_callback, (gpointer) HUE_MODE, NULL, NULL }, - { "Saturation", 0, 0, paint_mode_menu_callback, (gpointer) SATURATION_MODE, NULL, NULL }, - { "Color", 0, 0, paint_mode_menu_callback, (gpointer) COLOR_MODE, NULL, NULL }, - { "Value", 0, 0, paint_mode_menu_callback, (gpointer) VALUE_MODE, NULL, NULL }, + { N_("Normal"), 0, 0, paint_mode_menu_callback, (gpointer) NORMAL_MODE, NULL, NULL }, + { N_("Dissolve"), 0, 0, paint_mode_menu_callback, (gpointer) DISSOLVE_MODE, NULL, NULL }, + { N_("Behind"), 0, 0, paint_mode_menu_callback, (gpointer) BEHIND_MODE, NULL, NULL }, + { N_("Multiply (Burn)"), 0, 0, paint_mode_menu_callback, (gpointer) MULTIPLY_MODE, NULL, NULL }, + { N_("Divide (Dodge)"), 0, 0, paint_mode_menu_callback, (gpointer) DIVIDE_MODE, NULL, NULL }, + { N_("Screen"), 0, 0, paint_mode_menu_callback, (gpointer) SCREEN_MODE, NULL, NULL }, + { N_("Overlay"), 0, 0, paint_mode_menu_callback, (gpointer) OVERLAY_MODE, NULL, NULL }, + { N_("Difference"), 0, 0, paint_mode_menu_callback, (gpointer) DIFFERENCE_MODE, NULL, NULL }, + { N_("Addition"), 0, 0, paint_mode_menu_callback, (gpointer) ADDITION_MODE, NULL, NULL }, + { N_("Subtract"), 0, 0, paint_mode_menu_callback, (gpointer) SUBTRACT_MODE, NULL, NULL }, + { N_("Darken Only"), 0, 0, paint_mode_menu_callback, (gpointer) DARKEN_ONLY_MODE, NULL, NULL }, + { N_("Lighten Only"), 0, 0, paint_mode_menu_callback, (gpointer) LIGHTEN_ONLY_MODE, NULL, NULL }, + { N_("Hue"), 0, 0, paint_mode_menu_callback, (gpointer) HUE_MODE, NULL, NULL }, + { N_("Saturation"), 0, 0, paint_mode_menu_callback, (gpointer) SATURATION_MODE, NULL, NULL }, + { N_("Color"), 0, 0, paint_mode_menu_callback, (gpointer) COLOR_MODE, NULL, NULL }, + { N_("Value"), 0, 0, paint_mode_menu_callback, (gpointer) VALUE_MODE, NULL, NULL }, { NULL, 0, 0, NULL, NULL, NULL, NULL } }; /* the action area structure */ static ActionAreaItem action_items[] = { - { "Close", brush_select_close_callback, NULL, NULL }, - { "Refresh", brush_select_refresh_callback, NULL, NULL } + { N_("Close"), brush_select_close_callback, NULL, NULL }, + { N_("Refresh"), brush_select_refresh_callback, NULL, NULL } }; static BrushEditGeneratedWindow *brush_edit_generated_dialog; @@ -186,7 +187,7 @@ brush_select_new (gchar * title, if(!title) { - gtk_window_set_title (GTK_WINDOW (bsp->shell), "Brush Selection"); + gtk_window_set_title (GTK_WINDOW (bsp->shell), _("Brush Selection")); session_set_window_geometry (bsp->shell, &brush_select_session_info, TRUE); } else @@ -254,7 +255,7 @@ brush_select_new (gchar * title, util_box = gtk_hbox_new (FALSE, 5); gtk_box_pack_start (GTK_BOX (bsp->options_box), util_box, FALSE, FALSE, 0); - bsp->brush_name = gtk_label_new ("Active"); + bsp->brush_name = gtk_label_new (_("Active")); gtk_box_pack_start (GTK_BOX (util_box), bsp->brush_name, FALSE, FALSE, 2); bsp->brush_size = gtk_label_new ("(0x0)"); gtk_box_pack_start (GTK_BOX (util_box), bsp->brush_size, FALSE, FALSE, 2); @@ -266,7 +267,7 @@ brush_select_new (gchar * title, /* Create the paint mode option menu */ util_box = gtk_hbox_new (FALSE, 2); gtk_box_pack_start (GTK_BOX (bsp->options_box), util_box, FALSE, FALSE, 0); - label = gtk_label_new ("Mode:"); + label = gtk_label_new (_("Mode:")); gtk_box_pack_start (GTK_BOX (util_box), label, FALSE, FALSE, 2); menu = create_paint_mode_menu (paint_mode_menu_callback,(gpointer)bsp); option_menu = gtk_option_menu_new (); @@ -280,7 +281,7 @@ brush_select_new (gchar * title, /* Create the opacity scale widget */ util_box = gtk_hbox_new (FALSE, 2); gtk_box_pack_start (GTK_BOX (bsp->options_box), util_box, FALSE, FALSE, 0); - label = gtk_label_new ("Opacity:"); + label = gtk_label_new (_("Opacity:")); gtk_box_pack_start (GTK_BOX (util_box), label, FALSE, FALSE, 2); bsp->opacity_data = GTK_ADJUSTMENT (gtk_adjustment_new ((active)?init_opacity:100.0, 0.0, 100.0, 1.0, 1.0, 0.0)); @@ -297,7 +298,7 @@ brush_select_new (gchar * title, util_box = gtk_hbox_new (FALSE, 2); gtk_box_pack_start (GTK_BOX (bsp->options_box), util_box, FALSE, FALSE, 0); - label = gtk_label_new ("Spacing:"); + label = gtk_label_new (_("Spacing:")); gtk_box_pack_start (GTK_BOX (util_box), label, FALSE, FALSE, 2); bsp->spacing_data = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 1000.0, 1.0, 1.0, 0.0)); slider = gtk_hscale_new (bsp->spacing_data); @@ -314,7 +315,7 @@ brush_select_new (gchar * title, /* Create the edit/new buttons */ util_box = gtk_hbox_new (FALSE, 2); gtk_box_pack_start (GTK_BOX (bsp->options_box), util_box, FALSE, FALSE, 0); - bsp->edit_button = gtk_button_new_with_label ("Edit Brush"); + bsp->edit_button = gtk_button_new_with_label (_("Edit Brush")); gtk_signal_connect (GTK_OBJECT (bsp->edit_button), "clicked", (GtkSignalFunc) edit_brush_callback, NULL); @@ -323,7 +324,7 @@ brush_select_new (gchar * title, gtk_box_pack_start (GTK_BOX (util_box), bsp->edit_button, TRUE, TRUE, 5); - button2 = gtk_button_new_with_label ("New Brush"); + button2 = gtk_button_new_with_label (_("New Brush")); gtk_signal_connect (GTK_OBJECT (button2), "clicked", (GtkSignalFunc) new_brush_callback, NULL); @@ -494,7 +495,7 @@ brush_change_callbacks(BrushSelectP bsp, gint closing) PDB_END); if (!return_vals || return_vals[0].value.pdb_int != PDB_SUCCESS) - g_message ("failed to run brush callback function"); + g_message (_("failed to run brush callback function")); procedural_db_destroy_args (return_vals, nreturn_vals); } @@ -1016,8 +1017,8 @@ edit_brush_callback (GtkWidget *w, GdkEvent *e, gpointer data) } } else - g_message("We are all fresh out of brush editors today,\n" - "please write your own or try back tomorrow\n"); + g_message(_("We are all fresh out of brush editors today,\n" + "please write your own or try back tomorrow\n")); return TRUE; } @@ -1270,35 +1271,35 @@ ProcArg brushes_popup_in_args[] = { { PDB_STRING, "brush_callback", - "the callback PDB proc to call when brush selection is made" + N_("the callback PDB proc to call when brush selection is made") }, { PDB_STRING, "popup title", - "title to give the popup window", + N_("title to give the popup window"), }, { PDB_STRING, "initial brush", - "The name of the brush to set as the first selected", + N_("The name of the brush to set as the first selected"), }, { PDB_FLOAT, "initial opacity", - "The initial opacity of the brush", + N_("The initial opacity of the brush"), }, { PDB_INT32, "initial spacing", - "The initial spacing of the brush (if < 0 then use brush default spacing)", + N_("The initial spacing of the brush (if < 0 then use brush default spacing)"), }, { PDB_INT32, "initial paint mode", - "The initial paint mode: { NORMAL (0), DISSOLVE (1), BEHIND (2), MULTIPLY/BURN (3), SCREEN (4), OVERLAY (5) DIFFERENCE (6), ADDITION (7), SUBTRACT (8), DARKEN-ONLY (9), LIGHTEN-ONLY (10), HUE (11), SATURATION (12), COLOR (13), VALUE (14), DIVIDE/DODGE (15) }", + N_("The initial paint mode: { NORMAL (0), DISSOLVE (1), BEHIND (2), MULTIPLY/BURN (3), SCREEN (4), OVERLAY (5) DIFFERENCE (6), ADDITION (7), SUBTRACT (8), DARKEN-ONLY (9), LIGHTEN-ONLY (10), HUE (11), SATURATION (12), COLOR (13), VALUE (14), DIVIDE/DODGE (15) }"), }, }; ProcRecord brushes_popup_proc = { "gimp_brushes_popup", - "Invokes the Gimp brush selection", - "This procedure popups the brush selection dialog", + N_("Invokes the Gimp brush selection"), + N_("This procedure popups the brush selection dialog"), "Andy Thomas", "Andy Thomas", "1998", diff --git a/app/bucket_fill.c b/app/bucket_fill.c index 950fe7945b..efaf158ed4 100644 --- a/app/bucket_fill.c +++ b/app/bucket_fill.c @@ -31,6 +31,8 @@ #include "tools.h" #include "undo.h" +#include "libgimp/gimpintl.h" + /* the Bucket Fill structures */ typedef enum { @@ -141,8 +143,8 @@ create_bucket_options (void) int i; char *button_names[2] = { - "Color Fill", - "Pattern Fill" + N_("Color Fill"), + N_("Pattern Fill") }; /* the new options structure */ @@ -157,7 +159,7 @@ create_bucket_options (void) vbox = gtk_vbox_new (FALSE, 1); /* the main label */ - label = gtk_label_new ("Bucket Fill Options"); + label = gtk_label_new (_("Bucket Fill Options")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -165,7 +167,7 @@ create_bucket_options (void) hbox = gtk_hbox_new (FALSE, 1); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); - label = gtk_label_new ("Fill Opacity"); + label = gtk_label_new (_("Fill Opacity")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -184,7 +186,7 @@ create_bucket_options (void) hbox = gtk_hbox_new (FALSE, 1); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); - label = gtk_label_new ("Fill Threshold"); + label = gtk_label_new (_("Fill Threshold")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -203,7 +205,7 @@ create_bucket_options (void) hbox = gtk_hbox_new (FALSE, 1); gtk_container_border_width (GTK_CONTAINER (hbox), 0); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); - label = gtk_label_new ("Mode:"); + label = gtk_label_new (_("Mode:")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 2); menu = create_paint_mode_menu (bucket_fill_paint_mode_callback,NULL); option_menu = gtk_option_menu_new (); @@ -214,7 +216,7 @@ create_bucket_options (void) gtk_widget_show (hbox); /* the radio frame and box */ - radio_frame = gtk_frame_new ("Fill Type"); + radio_frame = gtk_frame_new (_("Fill Type")); gtk_box_pack_start (GTK_BOX (vbox), radio_frame, FALSE, FALSE, 0); radio_box = gtk_vbox_new (FALSE, 1); @@ -236,7 +238,7 @@ create_bucket_options (void) gtk_widget_show (radio_frame); /* the sample merged toggle */ - sample_merged_toggle = gtk_check_button_new_with_label ("Sample Merged"); + sample_merged_toggle = gtk_check_button_new_with_label (_("Sample Merged")); gtk_signal_connect (GTK_OBJECT (sample_merged_toggle), "toggled", (GtkSignalFunc) bucket_fill_toggle_update, &options->sample_merged); @@ -328,7 +330,7 @@ bucket_fill_button_release (tool, bevent, gdisp_ptr) if (return_vals[0].value.pdb_int == PDB_SUCCESS) gdisplays_flush (); else - g_message ("Bucket Fill operation failed."); + g_message (_("Bucket Fill operation failed.")); procedural_db_destroy_args (return_vals, nreturn_vals); } @@ -425,7 +427,7 @@ bucket_fill (gimage, drawable, fill_mode, paint_mode, if (!pattern) { - g_message ("No available patterns for this operation."); + g_message (_("No available patterns for this operation.")); return; } @@ -698,47 +700,47 @@ ProcArg bucket_fill_args[] = { { PDB_IMAGE, "image", - "The image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "The affected drawable" + N_("the affected drawable") }, { PDB_INT32, "fill_mode", - "The type of fill: { FG-BUCKET-FILL (0), BG-BUCKET-FILL (1), PATTERN-BUCKET-FILL (2) }" + N_("the type of fill: { FG-BUCKET-FILL (0), BG-BUCKET-FILL (1), PATTERN-BUCKET-FILL (2) }") }, { PDB_INT32, "paint_mode", - "the paint application mode: { NORMAL (0), DISSOLVE (1), BEHIND (2), MULTIPLY/BURN (3), SCREEN (4), OVERLAY (5) DIFFERENCE (6), ADDITION (7), SUBTRACT (8), DARKEN-ONLY (9), LIGHTEN-ONLY (10), HUE (11), SATURATION (12), COLOR (13), VALUE (14), DIVIDE/DODGE (15) }" + N_("the paint application mode: { NORMAL (0), DISSOLVE (1), BEHIND (2), MULTIPLY/BURN (3), SCREEN (4), OVERLAY (5) DIFFERENCE (6), ADDITION (7), SUBTRACT (8), DARKEN-ONLY (9), LIGHTEN-ONLY (10), HUE (11), SATURATION (12), COLOR (13), VALUE (14), DIVIDE/DODGE (15) }") }, { PDB_FLOAT, "opacity", - "The opacity of the final bucket fill (0 <= opacity <= 100)" + N_("the opacity of the final bucket fill (0 <= opacity <= 100)") }, { PDB_FLOAT, "threshold", - "The threshold determines how extensive the seed fill will be. It's value is specified in terms of intensity levels (0 <= threshold <= 255). This parameter is only valid when there is no selection in the specified image." + N_("the threshold determines how extensive the seed fill will be. It's value is specified in terms of intensity levels (0 <= threshold <= 255). This parameter is only valid when there is no selection in the specified image.") }, { PDB_INT32, "sample_merged", - "use the composite image, not the drawable" + N_("use the composite image, not the drawable") }, { PDB_FLOAT, "x", - "The x coordinate of this bucket fill's application. This parameter is only valid when there is no selection in the specified image." + N_("the x coordinate of this bucket fill's application. This parameter is only valid when there is no selection in the specified image.") }, { PDB_FLOAT, "y", - "The y coordinate of this bucket fill's application. This parameter is only valid when there is no selection in the specified image." + N_("the y coordinate of this bucket fill's application. This parameter is only valid when there is no selection in the specified image.") }, }; ProcRecord bucket_fill_proc = { "gimp_bucket_fill", - "Fill the area specified either by the current selection if there is one, or by a seed fill starting at the specified coordinates.", - "This tool requires information on the paint application mode, and the fill mode, which can either be in the foreground color, or in the currently active pattern. If there is no selection, a seed fill is executed at the specified coordinates and extends outward in keeping with the threshold parameter. If there is a selection in the target image, the threshold, sample merged, x, and y arguments are unused. If the sample_merged parameter is non-zero, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of merged sampling, the x,y coordinates are relative to the image's origin; otherwise, they are relative to the drawable's origin.", + N_("Fill the area specified either by the current selection if there is one, or by a seed fill starting at the specified coordinates."), + N_("This tool requires information on the paint application mode, and the fill mode, which can either be in the foreground color, or in the currently active pattern. If there is no selection, a seed fill is executed at the specified coordinates and extends outward in keeping with the threshold parameter. If there is a selection in the target image, the threshold, sample merged, x, and y arguments are unused. If the sample_merged parameter is non-zero, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of merged sampling, the x,y coordinates are relative to the image's origin; otherwise, they are relative to the drawable's origin."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/by_color_select.c b/app/by_color_select.c index 2cbbc9e495..8dcb7b3893 100644 --- a/app/by_color_select.c +++ b/app/by_color_select.c @@ -30,6 +30,8 @@ #include "gdisplay.h" #include "rect_select.h" +#include "libgimp/gimpintl.h" + #include "tile.h" /* ick. */ #define DEFAULT_FUZZINESS 15 @@ -547,10 +549,10 @@ by_color_select_new_dialog () int i; char *button_names[4] = { - "Replace", - "Add", - "Subtract", - "Intersect" + N_("Replace"), + N_("Add"), + N_("Subtract"), + N_("Intersect") }; int button_values[4] = { @@ -568,7 +570,7 @@ by_color_select_new_dialog () /* The shell and main vbox */ bcd->shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (bcd->shell), "by_color_selection", "Gimp"); - gtk_window_set_title (GTK_WINDOW (bcd->shell), "By Color Selection"); + gtk_window_set_title (GTK_WINDOW (bcd->shell), _("By Color Selection")); gtk_container_border_width (GTK_CONTAINER (GTK_DIALOG (bcd->shell)->action_area), 2); /* handle the wm close signal */ @@ -611,14 +613,14 @@ by_color_select_new_dialog () /* Create the active image label */ util_box = gtk_hbox_new (FALSE, 2); gtk_box_pack_start (GTK_BOX (options_box), util_box, FALSE, FALSE, 0); - bcd->gimage_name = gtk_label_new ("Inactive"); + bcd->gimage_name = gtk_label_new (_("Inactive")); gtk_box_pack_start (GTK_BOX (util_box), bcd->gimage_name, FALSE, FALSE, 2); gtk_widget_show (bcd->gimage_name); gtk_widget_show (util_box); /* Create the selection mode radio box */ - frame = gtk_frame_new ("Selection Mode"); + frame = gtk_frame_new (_("Selection Mode")); gtk_box_pack_start (GTK_BOX (options_box), frame, FALSE, FALSE, 0); radio_box = gtk_vbox_new (FALSE, 2); @@ -641,7 +643,7 @@ by_color_select_new_dialog () /* Create the opacity scale widget */ util_box = gtk_vbox_new (FALSE, 2); gtk_box_pack_start (GTK_BOX (options_box), util_box, FALSE, FALSE, 0); - label = gtk_label_new ("Fuzziness Threshold"); + label = gtk_label_new (_("Fuzziness Threshold")); gtk_box_pack_start (GTK_BOX (util_box), label, FALSE, FALSE, 2); data = gtk_adjustment_new (bcd->threshold, 0.0, 255.0, 1.0, 1.0, 0.0); slider = gtk_hscale_new (GTK_ADJUSTMENT (data)); @@ -657,7 +659,7 @@ by_color_select_new_dialog () gtk_widget_show (util_box); /* The reset push button */ - push_button = gtk_button_new_with_label ("Reset"); + push_button = gtk_button_new_with_label (_("Reset")); GTK_WIDGET_SET_FLAGS (push_button, GTK_CAN_DEFAULT); gtk_box_pack_start (GTK_BOX (GTK_DIALOG (bcd->shell)->action_area), push_button, TRUE, TRUE, 0); gtk_signal_connect (GTK_OBJECT (push_button), "clicked", @@ -667,7 +669,7 @@ by_color_select_new_dialog () gtk_widget_show (push_button); /* The close push button */ - push_button = gtk_button_new_with_label ("Close"); + push_button = gtk_button_new_with_label (_("Close")); GTK_WIDGET_SET_FLAGS (push_button, GTK_CAN_DEFAULT); gtk_box_pack_start (GTK_BOX (GTK_DIALOG (bcd->shell)->action_area), push_button, TRUE, TRUE, 0); gtk_signal_connect (GTK_OBJECT (push_button), "clicked", @@ -971,47 +973,47 @@ ProcArg by_color_select_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_COLOR, "color", - "the color to select" + N_("the color to select") }, { PDB_INT32, "threshold", - "threshold in intensity levels: 0 <= threshold <= 255" + N_("threshold in intensity levels: 0 <= threshold <= 255") }, { PDB_INT32, "operation", - "the selection operation: { ADD (0), SUB (1), REPLACE (2), INTERSECT (3) }" + N_("the selection operation: { ADD (0), SUB (1), REPLACE (2), INTERSECT (3) }") }, { PDB_INT32, "antialias", - "antialiasing On/Off" + N_("antialiasing On/Off") }, { PDB_INT32, "feather", - "feather option for selections" + N_("feather option for selections") }, { PDB_FLOAT, "feather_radius", - "radius for feather operation" + N_("radius for feather operation") }, { PDB_INT32, "sample_merged", - "use the composite image, not the drawable" + N_("use the composite image, not the drawable") } }; ProcRecord by_color_select_proc = { "gimp_by_color_select", - "Create a selection by selecting all pixels (in the specified drawable) with the same (or similar) color to that specified.", - "This tool creates a selection over the specified image. A by-color selection is determined by the supplied color under the constraints of the specified threshold. Essentially, all pixels (in the drawable) that have color sufficiently close to the specified color (as determined by the threshold value) are included in the selection. The antialiasing parameter allows the final selection mask to contain intermediate values based on close misses to the threshold bar. Feathering can be enabled optionally and is controlled with the \"feather_radius\" paramter. If the sample_merged parameter is non-zero, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of a merged sampling, the supplied drawable is ignored.", + N_("Create a selection by selecting all pixels (in the specified drawable) with the same (or similar) color to that specified."), + N_("This tool creates a selection over the specified image. A by-color selection is determined by the supplied color under the constraints of the specified threshold. Essentially, all pixels (in the drawable) that have color sufficiently close to the specified color (as determined by the threshold value) are included in the selection. The antialiasing parameter allows the final selection mask to contain intermediate values based on close misses to the threshold bar. Feathering can be enabled optionally and is controlled with the \"feather_radius\" paramter. If the sample_merged parameter is non-zero, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of a merged sampling, the supplied drawable is ignored."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/channel.c b/app/channel.c index e1df961a1a..ef70f5adbd 100644 --- a/app/channel.c +++ b/app/channel.c @@ -31,6 +31,8 @@ #include "temp_buf.h" #include "undo.h" +#include "libgimp/gimpintl.h" + #include "channel_pvt.h" #include "tile.h" @@ -182,13 +184,13 @@ channel_copy (Channel *channel) name = channel_get_name(channel); ext = strrchr(name, '#'); channel_name = (char *) g_malloc (strlen (name) + 6); - if ((strlen(name) >= 4 && strcmp(&name[strlen(name) -4], "copy") == 0) || + if ((strlen(name) >= 4 && strcmp(&name[strlen(name) -4], _("copy")) == 0) || (ext && (number = atoi(ext+1)) > 0 && ((int)(log10(number) + 1)) == strlen(ext+1))) /* don't have rudundant "copy"s */ sprintf (channel_name, "%s", name); else - sprintf (channel_name, "%s copy", name); + sprintf (channel_name, N_("%s copy"), name); /* allocate a new channel object */ new_channel = channel_new (GIMP_DRAWABLE(channel)->gimage, @@ -493,7 +495,7 @@ channel_new_mask (GimpImage* gimage, int width, int height) Channel *new_channel; /* Create the new channel */ - new_channel = channel_new (gimage, width, height, "Selection Mask", 127, black); + new_channel = channel_new (gimage, width, height, _("Selection Mask"), 127, black); /* Set the validate procedure */ tile_manager_set_validate_proc (GIMP_DRAWABLE(new_channel)->tiles, channel_validate); diff --git a/app/channel_cmds.c b/app/channel_cmds.c index c7a6dedee8..7e5edb24e7 100644 --- a/app/channel_cmds.c +++ b/app/channel_cmds.c @@ -23,6 +23,8 @@ #include "channel.h" #include "channel_cmds.h" +#include "libgimp/gimpintl.h" + #include "channel_pvt.h" static int int_value; @@ -99,27 +101,27 @@ ProcArg channel_new_args[] = { { PDB_IMAGE, "image", - "the image to which to add the channel" + N_("the image to which to add the channel") }, { PDB_INT32, "width", - "the channel width: (width > 0)" + N_("the channel width: (width > 0)") }, { PDB_INT32, "height", - "the channel height: (height > 0)" + N_("the channel height: (height > 0)") }, { PDB_STRING, "name", - "the channel name" + N_("the channel name") }, { PDB_FLOAT, "opacity", - "the channel opacity: (0 <= opacity <= 100)" + N_("the channel opacity: (0 <= opacity <= 100)") }, { PDB_COLOR, "color", - "the channel compositing color" + N_("the channel compositing color") } }; @@ -127,15 +129,15 @@ ProcArg channel_new_out_args[] = { { PDB_CHANNEL, "channel", - "the newly created channel" + N_("the newly created channel") } }; ProcRecord channel_new_proc = { "gimp_channel_new", - "Create a new channel", - "This procedure creates a new channel with the specified width and height. Name, opacity, and color are also supplied parameters. The new channel still needs to be added to the image, as this is not automatic. Add the new channel with the 'gimp_image_add_channel' command. Other attributes such as channel show masked, should be set with explicit procedure calls. The channel's contents are undefined initially.", + N_("Create a new channel"), + N_("This procedure creates a new channel with the specified width and height. Name, opacity, and color are also supplied parameters. The new channel still needs to be added to the image, as this is not automatic. Add the new channel with the 'gimp_image_add_channel' command. Other attributes such as channel show masked, should be set with explicit procedure calls. The channel's contents are undefined initially."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -190,7 +192,7 @@ ProcArg channel_copy_args[] = { { PDB_CHANNEL, "channel", - "the channel to copy" + N_("the channel to copy") } }; @@ -198,15 +200,15 @@ ProcArg channel_copy_out_args[] = { { PDB_CHANNEL, "channel_copy", - "the newly copied channel" + N_("the newly copied channel") } }; ProcRecord channel_copy_proc = { "gimp_channel_copy", - "Copy a channel", - "This procedure copies the specified channel and returns the copy.", + N_("Copy a channel"), + N_("This procedure copies the specified channel and returns the copy."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -252,15 +254,15 @@ ProcArg channel_delete_args[] = { { PDB_CHANNEL, "channel", - "the channel to delete" + N_("the channel to delete") } }; ProcRecord channel_delete_proc = { "gimp_channel_delete", - "Delete a channel", - "This procedure deletes the specified channel. This does not need to be done if a gimage containing this channel was already deleted.", + N_("Delete a channel"), + N_("This procedure deletes the specified channel. This does not need to be done if a gimage containing this channel was already deleted."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -312,7 +314,7 @@ ProcArg channel_get_name_args[] = { { PDB_CHANNEL, "channel", - "the channel" + N_("the channel") } }; @@ -320,15 +322,15 @@ ProcArg channel_get_name_out_args[] = { { PDB_STRING, "name", - "the channel name" + N_("the channel name") } }; ProcRecord channel_get_name_proc = { "gimp_channel_get_name", - "Get the name of the specified channel.", - "This procedure returns the specified channel's name.", + N_("Get the name of the specified channel."), + N_("This procedure returns the specified channel's name."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -377,19 +379,19 @@ ProcArg channel_set_name_args[] = { { PDB_CHANNEL, "channel", - "the channel" + N_("the channel") }, { PDB_STRING, "name", - "the new channel name" + N_("the new channel name") } }; ProcRecord channel_set_name_proc = { "gimp_channel_set_name", - "Set the name of the specified channel.", - "This procedure sets the specified channel's name to the supplied name.", + N_("Set the name of the specified channel."), + N_("This procedure sets the specified channel's name to the supplied name."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -443,7 +445,7 @@ ProcArg channel_get_visible_args[] = { { PDB_CHANNEL, "channel", - "the channel" + N_("the channel") } }; @@ -451,15 +453,15 @@ ProcArg channel_get_visible_out_args[] = { { PDB_INT32, "visible", - "the channel visibility" + N_("the channel visibility") } }; ProcRecord channel_get_visible_proc = { "gimp_channel_get_visible", - "Get the visibility of the specified channel.", - "This procedure returns the specified channel's visibility.", + N_("Get the visibility of the specified channel."), + N_("This procedure returns the specified channel's visibility."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -508,19 +510,19 @@ ProcArg channel_set_visible_args[] = { { PDB_CHANNEL, "channel", - "the channel" + N_("the channel") }, { PDB_INT32, "visible", - "the new channel visibility" + N_("the new channel visibility") } }; ProcRecord channel_set_visible_proc = { "gimp_channel_set_visible", - "Set the visibility of the specified channel.", - "This procedure sets the specified channel's visibility.", + N_("Set the visibility of the specified channel."), + N_("This procedure sets the specified channel's visibility."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -574,7 +576,7 @@ ProcArg channel_get_show_masked_args[] = { { PDB_CHANNEL, "channel", - "the channel" + N_("the channel") } }; @@ -582,15 +584,15 @@ ProcArg channel_get_show_masked_out_args[] = { { PDB_INT32, "show_masked", - "composite method for channel" + N_("composite method for channel") } }; ProcRecord channel_get_show_masked_proc = { "gimp_channel_get_show_masked", - "Get the composite type for the channel", - "This procedure returns the specified channel's composite type. If it is non-zero, then the channel is composited with the image so that masked regions are shown. Otherwise, selected regions are shown.", + N_("Get the composite type for the channel"), + N_("This procedure returns the specified channel's composite type. If it is non-zero, then the channel is composited with the image so that masked regions are shown. Otherwise, selected regions are shown."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -639,19 +641,19 @@ ProcArg channel_set_show_masked_args[] = { { PDB_CHANNEL, "channel", - "the channel" + N_("the channel") }, { PDB_INT32, "show_masked", - "the new channel show_masked value" + N_("the new channel show_masked value") } }; ProcRecord channel_set_show_masked_proc = { "gimp_channel_set_show_masked", - "Set the composite type for the specified channel.", - "This procedure sets the specified channel's composite type. If it is non-zero, then the channel is composited with the image so that masked regions are shown. Otherwise, selected regions are shown.", + N_("Set the composite type for the specified channel."), + N_("This procedure sets the specified channel's composite type. If it is non-zero, then the channel is composited with the image so that masked regions are shown. Otherwise, selected regions are shown."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -705,7 +707,7 @@ ProcArg channel_get_opacity_args[] = { { PDB_CHANNEL, "channel", - "the channel" + N_("the channel") } }; @@ -713,15 +715,15 @@ ProcArg channel_get_opacity_out_args[] = { { PDB_FLOAT, "opacity", - "the channel opacity", + N_("the channel opacity"), } }; ProcRecord channel_get_opacity_proc = { "gimp_channel_get_opacity", - "Get the opacity of the specified channel.", - "This procedure returns the specified channel's opacity.", + N_("Get the opacity of the specified channel."), + N_("This procedure returns the specified channel's opacity."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -770,19 +772,19 @@ ProcArg channel_set_opacity_args[] = { { PDB_CHANNEL, "channel", - "the channel" + N_("the channel") }, { PDB_FLOAT, "opacity", - "the new channel opacity: (0 <= opacity <= 100)" + N_("the new channel opacity: (0 <= opacity <= 100)") } }; ProcRecord channel_set_opacity_proc = { "gimp_channel_set_opacity", - "Set the opacity of the specified channel.", - "This procedure sets the specified channel's opacity.", + N_("Set the opacity of the specified channel."), + N_("This procedure sets the specified channel's opacity."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -841,7 +843,7 @@ ProcArg channel_get_color_args[] = { { PDB_CHANNEL, "channel", - "the channel" + N_("the channel") } }; @@ -849,15 +851,15 @@ ProcArg channel_get_color_out_args[] = { { PDB_COLOR, "color", - "the channel's composite color", + N_("the channel's composite color"), } }; ProcRecord channel_get_color_proc = { "gimp_channel_get_color", - "Get the compositing color of the specified channel.", - "This procedure returns the specified channel's compositing color.", + N_("Get the compositing color of the specified channel."), + N_("This procedure returns the specified channel's compositing color."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -908,19 +910,19 @@ ProcArg channel_set_color_args[] = { { PDB_CHANNEL, "channel", - "the channel" + N_("the channel") }, { PDB_COLOR, "color", - "the composite color" + N_("the composite color") } }; ProcRecord channel_set_color_proc = { "gimp_channel_set_color", - "Set the compositing color of the specified channel.", - "This procedure sets the specified channel's compositing color.", + N_("Set the compositing color of the specified channel."), + N_("This procedure sets the specified channel's compositing color."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/channels_dialog.c b/app/channels_dialog.c index 5c378f34b8..fd282c50fc 100644 --- a/app/channels_dialog.c +++ b/app/channels_dialog.c @@ -51,6 +51,8 @@ #include "tools/delete.xpm" #include "tools/delete_is.xpm" +#include "libgimp/gimpintl.h" + #include "channel_pvt.h" @@ -159,17 +161,17 @@ static int button_last_id = 0; static MenuItem channels_ops[] = { - { "New Channel", 'N', GDK_CONTROL_MASK, + { N_("New Channel"), 'N', GDK_CONTROL_MASK, channels_dialog_new_channel_callback, NULL, NULL, NULL }, - { "Raise Channel", 'F', GDK_CONTROL_MASK, + { N_("Raise Channel"), 'F', GDK_CONTROL_MASK, channels_dialog_raise_channel_callback, NULL, NULL, NULL }, - { "Lower Channel", 'B', GDK_CONTROL_MASK, + { N_("Lower Channel"), 'B', GDK_CONTROL_MASK, channels_dialog_lower_channel_callback, NULL, NULL, NULL }, - { "Duplicate Channel", 'C', GDK_CONTROL_MASK, + { N_("Duplicate Channel"), 'C', GDK_CONTROL_MASK, channels_dialog_duplicate_channel_callback, NULL, NULL, NULL }, - { "Delete Channel", 'X', GDK_CONTROL_MASK, + { N_("Delete Channel"), 'X', GDK_CONTROL_MASK, channels_dialog_delete_channel_callback, NULL, NULL, NULL }, - { "Channel To Selection", 'S', GDK_CONTROL_MASK, + { N_("Channel To Selection"), 'S', GDK_CONTROL_MASK, channels_dialog_channel_to_sel_callback, NULL, NULL, NULL }, { NULL, 0, 0, NULL, NULL, NULL, NULL }, }; @@ -177,11 +179,11 @@ static MenuItem channels_ops[] = /* the ops buttons */ static OpsButton channels_ops_buttons[] = { - { new_xpm, new_is_xpm, channels_dialog_new_channel_callback, "New Channel", NULL, NULL, NULL, NULL, NULL, NULL }, - { raise_xpm, raise_is_xpm, channels_dialog_raise_channel_callback, "Raise Channel", NULL, NULL, NULL, NULL, NULL, NULL }, - { lower_xpm, lower_is_xpm, channels_dialog_lower_channel_callback, "Lower Channel", NULL, NULL, NULL, NULL, NULL, NULL }, - { duplicate_xpm, duplicate_is_xpm, channels_dialog_duplicate_channel_callback, "Duplicate Channel", NULL, NULL, NULL, NULL, NULL, NULL }, - { delete_xpm, delete_is_xpm, channels_dialog_delete_channel_callback, "Delete Channel", NULL, NULL, NULL, NULL, NULL, NULL }, + { new_xpm, new_is_xpm, channels_dialog_new_channel_callback, N_("New Channel"), NULL, NULL, NULL, NULL, NULL, NULL }, + { raise_xpm, raise_is_xpm, channels_dialog_raise_channel_callback, N_("Raise Channel"), NULL, NULL, NULL, NULL, NULL, NULL }, + { lower_xpm, lower_is_xpm, channels_dialog_lower_channel_callback, N_("Lower Channel"), NULL, NULL, NULL, NULL, NULL, NULL }, + { duplicate_xpm, duplicate_is_xpm, channels_dialog_duplicate_channel_callback, N_("Duplicate Channel"), NULL, NULL, NULL, NULL, NULL, NULL }, + { delete_xpm, delete_is_xpm, channels_dialog_delete_channel_callback, N_("Delete Channel"), NULL, NULL, NULL, NULL, NULL, NULL }, { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL} }; @@ -608,7 +610,7 @@ channels_dialog_set_channel (ChannelWidget *channel_widget) gtk_list_select_item (GTK_LIST (channelsD->channel_list), 2); break; case Auxillary: - g_error ("error in %s at %d: this shouldn't happen.", + g_error (_("error in %s at %d: this shouldn't happen."), __FILE__, __LINE__); break; } @@ -662,7 +664,7 @@ channels_dialog_unset_channel (ChannelWidget * channel_widget) gtk_list_unselect_item (GTK_LIST (channelsD->channel_list), 2); break; case Auxillary: - g_error ("error in %s at %d: this shouldn't happen.", + g_error (_("error in %s at %d: this shouldn't happen."), __FILE__, __LINE__); break; } @@ -1065,11 +1067,11 @@ create_channel_widget (GImage *gimage, /* the channel name label */ switch (channel_widget->type) { - case Red: channel_widget->label = gtk_label_new ("Red"); break; - case Green: channel_widget->label = gtk_label_new ("Green"); break; - case Blue: channel_widget->label = gtk_label_new ("Blue"); break; - case Gray: channel_widget->label = gtk_label_new ("Gray"); break; - case Indexed: channel_widget->label = gtk_label_new ("Indexed"); break; + case Red: channel_widget->label = gtk_label_new (_("Red")); break; + case Green: channel_widget->label = gtk_label_new (_("Green")); break; + case Blue: channel_widget->label = gtk_label_new (_("Blue")); break; + case Gray: channel_widget->label = gtk_label_new (_("Gray")); break; + case Indexed: channel_widget->label = gtk_label_new (_("Indexed")); break; case Auxillary: channel_widget->label = gtk_label_new (channel_get_name(channel)); break; } @@ -1772,8 +1774,8 @@ channels_dialog_new_channel_query (GimpImage* gimage) { static ActionAreaItem action_items[2] = { - { "OK", new_channel_query_ok_callback, NULL, NULL }, - { "Cancel", new_channel_query_cancel_callback, NULL, NULL } + { N_("OK"), new_channel_query_ok_callback, NULL, NULL }, + { N_("Cancel"), new_channel_query_cancel_callback, NULL, NULL } }; NewChannelOptions *options; GtkWidget *vbox; @@ -1791,7 +1793,7 @@ channels_dialog_new_channel_query (GimpImage* gimage) /* the dialog */ options->query_box = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (options->query_box), "new_channel_options", "Gimp"); - gtk_window_set_title (GTK_WINDOW (options->query_box), "New Channel Options"); + gtk_window_set_title (GTK_WINDOW (options->query_box), _("New Channel Options")); gtk_window_position (GTK_WINDOW (options->query_box), GTK_WIN_POS_MOUSE); /* handle the wm close signal */ @@ -1809,7 +1811,7 @@ channels_dialog_new_channel_query (GimpImage* gimage) gtk_box_pack_start (GTK_BOX (vbox), table, TRUE, TRUE, 0); /* the name entry hbox, label and entry */ - label = gtk_label_new ("Channel name: "); + label = gtk_label_new (_("Channel name: ")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1, GTK_SHRINK | GTK_FILL, GTK_SHRINK, 0, 1); @@ -1819,11 +1821,11 @@ channels_dialog_new_channel_query (GimpImage* gimage) gtk_widget_set_usize (options->name_entry, 75, 0); gtk_table_attach (GTK_TABLE (table), options->name_entry, 1, 2, 0, 1, GTK_EXPAND | GTK_SHRINK | GTK_FILL, GTK_SHRINK, 1, 1); - gtk_entry_set_text (GTK_ENTRY (options->name_entry), (channel_name ? channel_name : "New Channel")); + gtk_entry_set_text (GTK_ENTRY (options->name_entry), (channel_name ? channel_name : _("New Channel"))); gtk_widget_show (options->name_entry); /* the opacity scale */ - label = gtk_label_new ("Fill Opacity: "); + label = gtk_label_new (_("Fill Opacity: ")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2, GTK_SHRINK | GTK_FILL, GTK_SHRINK, 0, 1); @@ -1945,8 +1947,8 @@ channels_dialog_edit_channel_query (ChannelWidget *channel_widget) { static ActionAreaItem action_items[2] = { - { "OK", edit_channel_query_ok_callback, NULL, NULL }, - { "Cancel", edit_channel_query_cancel_callback, NULL, NULL } + { N_("OK"), edit_channel_query_ok_callback, NULL, NULL }, + { N_("Cancel"), edit_channel_query_cancel_callback, NULL, NULL } }; EditChannelOptions *options; GtkWidget *vbox; @@ -1970,7 +1972,7 @@ channels_dialog_edit_channel_query (ChannelWidget *channel_widget) /* the dialog */ options->query_box = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (options->query_box), "edit_channel_atributes", "Gimp"); - gtk_window_set_title (GTK_WINDOW (options->query_box), "Edit Channel Attributes"); + gtk_window_set_title (GTK_WINDOW (options->query_box), _("Edit Channel Attributes")); gtk_window_position (GTK_WINDOW (options->query_box), GTK_WIN_POS_MOUSE); /* deal with the wm close signal */ @@ -1990,7 +1992,7 @@ channels_dialog_edit_channel_query (ChannelWidget *channel_widget) hbox = gtk_hbox_new (FALSE, 1); gtk_table_attach (GTK_TABLE (table), hbox, 0, 1, 0, 1, GTK_EXPAND | GTK_FILL, 0, 2, 2); - label = gtk_label_new ("Channel name:"); + label = gtk_label_new (_("Channel name:")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); options->name_entry = gtk_entry_new (); @@ -2005,7 +2007,7 @@ channels_dialog_edit_channel_query (ChannelWidget *channel_widget) gtk_table_attach (GTK_TABLE (table), hbox, 0, 1, 1, 2, GTK_EXPAND | GTK_FILL, 0, 2, 2); - label = gtk_label_new ("Fill Opacity"); + label = gtk_label_new (_("Fill Opacity")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); diff --git a/app/clone.c b/app/clone.c index 154d2e8a3a..bda1348195 100644 --- a/app/clone.c +++ b/app/clone.c @@ -31,6 +31,8 @@ #include "selection.h" #include "tools.h" +#include "libgimp/gimpintl.h" + #define TARGET_HEIGHT 15 #define TARGET_WIDTH 15 @@ -112,8 +114,8 @@ create_clone_options (void) int i; char *button_names[2] = { - "Image Source", - "Pattern Source" + N_("Image Source"), + N_("Pattern Source") }; /* the new options structure */ @@ -125,12 +127,12 @@ create_clone_options (void) vbox = gtk_vbox_new (FALSE, 1); /* the main label */ - label = gtk_label_new ("Clone Tool Options"); + label = gtk_label_new (_("Clone Tool Options")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); /* the radio frame and box */ - radio_frame = gtk_frame_new ("Source"); + radio_frame = gtk_frame_new (_("Source")); gtk_box_pack_start (GTK_BOX (vbox), radio_frame, FALSE, FALSE, 0); radio_box = gtk_vbox_new (FALSE, 1); @@ -151,7 +153,7 @@ create_clone_options (void) gtk_widget_show (radio_frame); /* the aligned toggle button */ - aligned_toggle = gtk_check_button_new_with_label ("Aligned"); + aligned_toggle = gtk_check_button_new_with_label (_("Aligned")); gtk_box_pack_start (GTK_BOX (vbox), aligned_toggle, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (aligned_toggle), "toggled", (GtkSignalFunc) clone_toggle_update, @@ -228,7 +230,7 @@ clone_paint_func (PaintCore *paint_core, if (clone_options->type == PatternClone) if (!get_active_pattern ()) - g_message ("No patterns available for this operation."); + g_message (_("No patterns available for this operation.")); break; case FINISH_PAINT : @@ -541,35 +543,35 @@ ProcArg clone_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_DRAWABLE, "src_drawable", - "the source drawable" + N_("the source drawable") }, { PDB_INT32, "clone_type", - "the type of clone: { IMAGE-CLONE (0), PATTERN-CLONE (1) }" + N_("the type of clone: { IMAGE-CLONE (0), PATTERN-CLONE (1) }") }, { PDB_FLOAT, "src_x", - "the x coordinate in the source image" + N_("the x coordinate in the source image") }, { PDB_FLOAT, "src_y", - "the y coordinate in the source image" + N_("the y coordinate in the source image") }, { PDB_INT32, "num_strokes", - "number of stroke control points (count each coordinate as 2 points)" + N_("number of stroke control points (count each coordinate as 2 points)") }, { PDB_FLOATARRAY, "strokes", - "array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}" + N_("array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}") } }; @@ -577,8 +579,8 @@ ProcArg clone_args[] = ProcRecord clone_proc = { "gimp_clone", - "Clone from the source to the dest drawable using the current brush", - "This tool clones (copies) from the source drawable starting at the specified source coordinates to the dest drawable. If the \"clone_type\" argument is set to PATTERN-CLONE, then the current pattern is used as the source and the \"src_drawable\" argument is ignored. Pattern cloning assumes a tileable pattern and mods the sum of the src coordinates and subsequent stroke offsets with the width and height of the pattern. For image cloning, if the sum of the src coordinates and subsequent stroke offsets exceeds the extents of the src drawable, then no paint is transferred. The clone tool is capable of transforming between any image types including RGB->Indexed--although converting from any type to indexed is significantly slower.", + N_("Clone from the source to the dest drawable using the current brush"), + N_("This tool clones (copies) from the source drawable starting at the specified source coordinates to the dest drawable. If the \"clone_type\" argument is set to PATTERN-CLONE, then the current pattern is used as the source and the \"src_drawable\" argument is ignored. Pattern cloning assumes a tileable pattern and mods the sum of the src coordinates and subsequent stroke offsets with the width and height of the pattern. For image cloning, if the sum of the src coordinates and subsequent stroke offsets exceeds the extents of the src drawable, then no paint is transferred. The clone tool is capable of transforming between any image types including RGB->Indexed--although converting from any type to indexed is significantly slower."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/color_balance.c b/app/color_balance.c index 178ec52906..240e478815 100644 --- a/app/color_balance.c +++ b/app/color_balance.c @@ -29,6 +29,8 @@ #include "image_map.h" #include "interface.h" +#include "libgimp/gimpintl.h" + #define TEXT_WIDTH 55 #define SHADOWS 0 @@ -273,7 +275,7 @@ tools_new_color_balance () /* The tool options */ if (!color_balance_options) - color_balance_options = tools_register_no_options (COLOR_BALANCE, "Color Balance Options"); + color_balance_options = tools_register_no_options (COLOR_BALANCE, _("Color Balance Options")); tool = (Tool *) g_malloc (sizeof (Tool)); private = (ColorBalance *) g_malloc (sizeof (ColorBalance)); @@ -317,7 +319,7 @@ color_balance_initialize (GDisplay *gdisp) if (! drawable_color (gimage_active_drawable (gdisp->gimage))) { - g_message ("Color balance operates only on RGB color drawables."); + g_message (_("Color balance operates only on RGB color drawables.")); return; } @@ -349,8 +351,8 @@ color_balance_initialize (GDisplay *gdisp) /* the action area structure */ static ActionAreaItem action_items[] = { - { "OK", color_balance_ok_callback, NULL, NULL }, - { "Cancel", color_balance_cancel_callback, NULL, NULL } + { N_("OK"), color_balance_ok_callback, NULL, NULL }, + { N_("Cancel"), color_balance_cancel_callback, NULL, NULL } }; static ColorBalanceDialog * @@ -371,9 +373,9 @@ color_balance_new_dialog () int i; char *appl_mode_names[3] = { - "Shadows", - "Midtones", - "Highlights" + N_("Shadows"), + N_("Midtones"), + N_("Highlights") }; ActionCallback appl_mode_callbacks[3] = { @@ -390,7 +392,7 @@ color_balance_new_dialog () /* The shell and main vbox */ cbd->shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (cbd->shell), "color_balance", "Gimp"); - gtk_window_set_title (GTK_WINDOW (cbd->shell), "Color Balance"); + gtk_window_set_title (GTK_WINDOW (cbd->shell), N_("Color Balance")); /* handle the wm close signal */ gtk_signal_connect (GTK_OBJECT (cbd->shell), "delete_event", @@ -405,7 +407,7 @@ color_balance_new_dialog () hbox = gtk_hbox_new (TRUE, 2); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); - label = gtk_label_new ("Color Levels: "); + label = gtk_label_new (_("Color Levels: ")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, FALSE, 0); gtk_widget_show (label); @@ -444,7 +446,7 @@ color_balance_new_dialog () gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, FALSE, 0); /* Create the cyan-red scale widget */ - start_label = gtk_label_new ("Cyan"); + start_label = gtk_label_new (_("Cyan")); gtk_misc_set_alignment (GTK_MISC (start_label), 1.0, 1.0); gtk_table_attach (GTK_TABLE (table), start_label, 0, 1, 0, 1, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2); @@ -461,7 +463,7 @@ color_balance_new_dialog () gtk_signal_connect (GTK_OBJECT (data), "value_changed", (GtkSignalFunc) color_balance_cr_scale_update, cbd); - end_label = gtk_label_new ("Red"); + end_label = gtk_label_new (_("Red")); gtk_misc_set_alignment (GTK_MISC (end_label), 0.0, 1.0); gtk_table_attach (GTK_TABLE (table), end_label, 2, 3, 0, 1, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2); @@ -471,7 +473,7 @@ color_balance_new_dialog () gtk_widget_show (slider); /* Create the magenta-green scale widget */ - start_label = gtk_label_new ("Magenta"); + start_label = gtk_label_new (_("Magenta")); gtk_misc_set_alignment (GTK_MISC (start_label), 1.0, 1.0); gtk_table_attach (GTK_TABLE (table), start_label, 0, 1, 1, 2, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2); @@ -488,7 +490,7 @@ color_balance_new_dialog () gtk_signal_connect (GTK_OBJECT (data), "value_changed", (GtkSignalFunc) color_balance_mg_scale_update, cbd); - end_label = gtk_label_new ("Green"); + end_label = gtk_label_new (_("Green")); gtk_misc_set_alignment (GTK_MISC (end_label), 0.0, 1.0); gtk_table_attach (GTK_TABLE (table), end_label, 2, 3, 1, 2, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2); @@ -498,7 +500,7 @@ color_balance_new_dialog () gtk_widget_show (slider); /* Create the yellow-blue scale widget */ - start_label = gtk_label_new ("Yellow"); + start_label = gtk_label_new (_("Yellow")); gtk_misc_set_alignment (GTK_MISC (start_label), 1.0, 1.0); gtk_table_attach (GTK_TABLE (table), start_label, 0, 1, 2, 3, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2); @@ -515,7 +517,7 @@ color_balance_new_dialog () gtk_signal_connect (GTK_OBJECT (data), "value_changed", (GtkSignalFunc) color_balance_yb_scale_update, cbd); - end_label = gtk_label_new ("Blue"); + end_label = gtk_label_new (_("Blue")); gtk_misc_set_alignment (GTK_MISC (end_label), 0.0, 1.0); gtk_table_attach (GTK_TABLE (table), end_label, 2, 3, 2, 3, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2); @@ -529,7 +531,7 @@ color_balance_new_dialog () gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); /* The preview toggle */ - toggle = gtk_check_button_new_with_label ("Preview"); + toggle = gtk_check_button_new_with_label (_("Preview")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), cbd->preview); gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -538,7 +540,7 @@ color_balance_new_dialog () gtk_widget_show (toggle); /* The preserve luminosity toggle */ - toggle = gtk_check_button_new_with_label ("Preserve Luminosity"); + toggle = gtk_check_button_new_with_label (_("Preserve Luminosity")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), cbd->preserve_luminosity); gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -618,7 +620,7 @@ static void color_balance_preview (ColorBalanceDialog *cbd) { if (!cbd->image_map) - g_message ("color_balance_preview(): No image map"); + g_message (_("color_balance_preview(): No image map")); active_tool->preserve = TRUE; image_map_apply (cbd->image_map, color_balance, (void *) cbd); active_tool->preserve = FALSE; @@ -877,39 +879,39 @@ ProcArg color_balance_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_INT32, "transfer_mode", - "Transfer mode: { SHADOWS (0), MIDTONES (1), HIGHLIGHTS (2) }" + N_("Transfer mode: { SHADOWS (0), MIDTONES (1), HIGHLIGHTS (2) }") }, { PDB_INT32, "preserve_lum", - "Preserve luminosity values at each pixel" + N_("Preserve luminosity values at each pixel") }, { PDB_FLOAT, "cyan_red", - "Cyan-Red color balance: (-100 <= cyan_red <= 100)" + N_("Cyan-Red color balance: (-100 <= cyan_red <= 100)") }, { PDB_FLOAT, "magenta_green", - "Magenta-Green color balance: (-100 <= magenta_green <= 100)" + N_("Magenta-Green color balance: (-100 <= magenta_green <= 100)") }, { PDB_FLOAT, "yellow_blue", - "Yellow-Blue color balance: (-100 <= yellow_blue <= 100)" + N_("Yellow-Blue color balance: (-100 <= yellow_blue <= 100)") } }; ProcRecord color_balance_proc = { "gimp_color_balance", - "Modify the color balance of the specified drawable", - "Modify the color balance of the specified drawable. There are three axis which can be modified: cyan-red, magenta-green, and yellow-blue. Negative values increase the amount of the former, positive values increase the amount of the latter. Color balance can be controlled with the 'transfer_mode' setting, which allows shadows, midtones, and highlights in an image to be affected differently. The 'preserve_lum' parameter, if non-zero, ensures that the luminosity of each pixel remains fixed.", + N_("Modify the color balance of the specified drawable"), + N_("Modify the color balance of the specified drawable. There are three axis which can be modified: cyan-red, magenta-green, and yellow-blue. Negative values increase the amount of the former, positive values increase the amount of the latter. Color balance can be controlled with the 'transfer_mode' setting, which allows shadows, midtones, and highlights in an image to be affected differently. The 'preserve_lum' parameter, if non-zero, ensures that the luminosity of each pixel remains fixed."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1997", diff --git a/app/color_picker.c b/app/color_picker.c index a5600f8c5d..2fede4fae7 100644 --- a/app/color_picker.c +++ b/app/color_picker.c @@ -26,6 +26,8 @@ #include "palette.h" #include "tools.h" +#include "libgimp/gimpintl.h" + #include "tile.h" /* ick. */ /* maximum information buffer size */ @@ -101,12 +103,12 @@ create_color_picker_options (void) vbox = gtk_vbox_new (FALSE, 1); /* the main label */ - label = gtk_label_new ("Color Picker Options"); + label = gtk_label_new (_("Color Picker Options")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); /* the sample merged toggle button */ - sample_merged_toggle = gtk_check_button_new_with_label ("Sample Merged"); + sample_merged_toggle = gtk_check_button_new_with_label (_("Sample Merged")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (sample_merged_toggle), options->sample_merged); gtk_box_pack_start (GTK_BOX (vbox), sample_merged_toggle, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (sample_merged_toggle), "toggled", @@ -123,7 +125,7 @@ create_color_picker_options (void) static ActionAreaItem action_items[] = { - { "Close", color_picker_info_window_close_callback, NULL, NULL }, + { N_("Close"), color_picker_info_window_close_callback, NULL, NULL }, }; static void @@ -146,33 +148,33 @@ color_picker_button_press (Tool *tool, if (color_picker_info) info_dialog_free (color_picker_info); - color_picker_info = info_dialog_new ("Color Picker"); + color_picker_info = info_dialog_new (_("Color Picker")); active_drawable = gimage_active_drawable (gdisp->gimage); /* if the gdisplay is for a color image, the dialog must have RGB */ switch (drawable_type (active_drawable)) { case RGB_GIMAGE: case RGBA_GIMAGE: - info_dialog_add_field (color_picker_info, "Red", red_buf, NULL, NULL); - info_dialog_add_field (color_picker_info, "Green", green_buf, NULL, NULL); - info_dialog_add_field (color_picker_info, "Blue", blue_buf, NULL, NULL); - info_dialog_add_field (color_picker_info, "Alpha", alpha_buf, NULL, NULL); - info_dialog_add_field (color_picker_info, "Hex Triplet", hex_buf, NULL, NULL); + info_dialog_add_field (color_picker_info, _("Red"), red_buf, NULL, NULL); + info_dialog_add_field (color_picker_info, _("Green"), green_buf, NULL, NULL); + info_dialog_add_field (color_picker_info, _("Blue"), blue_buf, NULL, NULL); + info_dialog_add_field (color_picker_info, _("Alpha"), alpha_buf, NULL, NULL); + info_dialog_add_field (color_picker_info, _("Hex Triplet"), hex_buf, NULL, NULL); break; case INDEXED_GIMAGE: case INDEXEDA_GIMAGE: - info_dialog_add_field (color_picker_info, "Index", index_buf, NULL, NULL); - info_dialog_add_field (color_picker_info, "Alpha", alpha_buf, NULL, NULL); - info_dialog_add_field (color_picker_info, "Red", red_buf, NULL, NULL); - info_dialog_add_field (color_picker_info, "Green", green_buf, NULL, NULL); - info_dialog_add_field (color_picker_info, "Blue", blue_buf, NULL, NULL); - info_dialog_add_field (color_picker_info, "Hex Triplet", hex_buf, NULL, NULL); + info_dialog_add_field (color_picker_info, _("Index"), index_buf, NULL, NULL); + info_dialog_add_field (color_picker_info, _("Alpha"), alpha_buf, NULL, NULL); + info_dialog_add_field (color_picker_info, _("Red"), red_buf, NULL, NULL); + info_dialog_add_field (color_picker_info, _("Green"), green_buf, NULL, NULL); + info_dialog_add_field (color_picker_info, _("Blue"), blue_buf, NULL, NULL); + info_dialog_add_field (color_picker_info, _("Hex Triplet"), hex_buf, NULL, NULL); break; case GRAY_GIMAGE: case GRAYA_GIMAGE: - info_dialog_add_field (color_picker_info, "Intensity", gray_buf, NULL, NULL); - info_dialog_add_field (color_picker_info, "Alpha", alpha_buf, NULL, NULL); - info_dialog_add_field (color_picker_info, "Hex Triplet", hex_buf, NULL, NULL); + info_dialog_add_field (color_picker_info, _("Intensity"), gray_buf, NULL, NULL); + info_dialog_add_field (color_picker_info, _("Alpha"), alpha_buf, NULL, NULL); + info_dialog_add_field (color_picker_info, _("Hex Triplet"), hex_buf, NULL, NULL); break; default : @@ -381,13 +383,13 @@ color_picker_info_update (Tool *tool, { if (!valid) { - sprintf (red_buf, "N/A"); - sprintf (green_buf, "N/A"); - sprintf (blue_buf, "N/A"); - sprintf (alpha_buf, "N/A"); - sprintf (index_buf, "N/A"); - sprintf (gray_buf, "N/A"); - sprintf (hex_buf, "N/A"); + sprintf (red_buf, _("N/A")); + sprintf (green_buf, _("N/A")); + sprintf (blue_buf, _("N/A")); + sprintf (alpha_buf, _("N/A")); + sprintf (index_buf, _("N/A")); + sprintf (gray_buf, _("N/A")); + sprintf (hex_buf, _("N/A")); } else { @@ -400,7 +402,7 @@ color_picker_info_update (Tool *tool, if (sample_type == RGBA_GIMAGE) sprintf (alpha_buf, "%d", col_value [ALPHA_PIX]); else - sprintf (alpha_buf, "N/A"); + sprintf (alpha_buf, _("N/A")); sprintf (hex_buf, "#%.2x%.2x%.2x", col_value [RED_PIX], col_value [GREEN_PIX], col_value [BLUE_PIX]); break; @@ -410,7 +412,7 @@ color_picker_info_update (Tool *tool, if (sample_type == INDEXEDA_GIMAGE) sprintf (alpha_buf, "%d", col_value [ALPHA_PIX]); else - sprintf (alpha_buf, "N/A"); + sprintf (alpha_buf, _("N/A")); sprintf (red_buf, "%d", col_value [RED_PIX]); sprintf (green_buf, "%d", col_value [GREEN_PIX]); sprintf (blue_buf, "%d", col_value [BLUE_PIX]); @@ -423,7 +425,7 @@ color_picker_info_update (Tool *tool, if (sample_type == GRAYA_GIMAGE) sprintf (alpha_buf, "%d", col_value [ALPHA_PIX]); else - sprintf (alpha_buf, "N/A"); + sprintf (alpha_buf, _("N/A")); sprintf (hex_buf, "#%.2x%.2x%.2x", col_value [GRAY_PIX], col_value [GRAY_PIX], col_value [GRAY_PIX]); break; @@ -475,27 +477,27 @@ ProcArg color_picker_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_FLOAT, "x", - "x coordinate of upper-left corner of rectangle" + N_("x coordinate of upper-left corner of rectangle") }, { PDB_FLOAT, "y", - "y coordinate of upper-left corner of rectangle" + N_("y coordinate of upper-left corner of rectangle") }, { PDB_INT32, "sample_merged", - "use the composite image, not the drawable" + N_("use the composite image, not the drawable") }, { PDB_INT32, "save_color", - "save the color to the active palette" + N_("save the color to the active palette") } }; @@ -503,15 +505,15 @@ ProcArg color_picker_out_args[] = { { PDB_COLOR, "color", - "the return color" + N_("the return color") } }; ProcRecord color_picker_proc = { "gimp_color_picker", - "Determine the color at the given drawable coordinates", - "This tool determines the color at the specified coordinates. The returned color is an RGB triplet even for grayscale and indexed drawables. If the coordinates lie outside of the extents of the specified drawable, then an error is returned. If the drawable has an alpha channel, the algorithm examines the alpha value of the drawable at the coordinates. If the alpha value is completely transparent (0), then an error is returned. If the sample_merged parameter is non-zero, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of a merged sampling, the supplied drawable is ignored.", + N_("Determine the color at the given drawable coordinates"), + N_("This tool determines the color at the specified coordinates. The returned color is an RGB triplet even for grayscale and indexed drawables. If the coordinates lie outside of the extents of the specified drawable, then an error is returned. If the drawable has an alpha channel, the algorithm examines the alpha value of the drawable at the coordinates. If the alpha value is completely transparent (0), then an error is returned. If the sample_merged parameter is non-zero, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of a merged sampling, the supplied drawable is ignored."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/color_select.c b/app/color_select.c index 6a3fbcb07e..e68219090f 100644 --- a/app/color_select.c +++ b/app/color_select.c @@ -26,6 +26,8 @@ #include "session.h" #include "color_area.h" /* for color_area_draw_rect */ +#include "libgimp/gimpintl.h" + #define XY_DEF_WIDTH 240 #define XY_DEF_HEIGHT 240 #define Z_DEF_WIDTH 15 @@ -133,8 +135,8 @@ static ColorSelectFillUpdateProc update_procs[] = static ActionAreaItem action_items[2] = { - { "OK", color_select_ok_callback, NULL, NULL }, - { "Cancel", color_select_cancel_callback, NULL, NULL }, + { N_("OK"), color_select_ok_callback, NULL, NULL }, + { N_("Cancel"), color_select_cancel_callback, NULL, NULL }, }; ColorSelectP @@ -183,7 +185,7 @@ color_select_new (int r, csp->shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (csp->shell), "color_selection", "Gimp"); - gtk_window_set_title (GTK_WINDOW (csp->shell), "Color Selection"); + gtk_window_set_title (GTK_WINDOW (csp->shell), _("Color Selection")); gtk_window_set_policy (GTK_WINDOW (csp->shell), FALSE, FALSE, FALSE); @@ -335,7 +337,7 @@ color_select_new (int r, csp); gtk_widget_show (csp->hex_entry); - label = gtk_label_new ("Hex Triplet:"); + label = gtk_label_new (_("Hex Triplet:")); gtk_box_pack_end (GTK_BOX (hex_hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -344,13 +346,13 @@ color_select_new (int r, action_items[1].user_data = csp; if (csp->wants_updates) { - action_items[0].label = "Close"; - action_items[1].label = "Revert to Old Color"; + action_items[0].label = _("Close"); + action_items[1].label = _("Revert to Old Color"); } else { - action_items[0].label = "OK"; - action_items[1].label = "Cancel"; + action_items[0].label = _("OK"); + action_items[1].label = _("Cancel"); } build_action_area (GTK_DIALOG (csp->shell), action_items, 2, 0); diff --git a/app/commands.c b/app/commands.c index d6916e1060..8afb09cecc 100644 --- a/app/commands.c +++ b/app/commands.c @@ -67,6 +67,8 @@ #include "tools.h" #include "undo.h" +#include "libgimp/gimpintl.h" + typedef struct { GtkWidget * shell; @@ -360,7 +362,7 @@ select_border_cmd_callback (GtkWidget *widget, gdisp = gdisplay_active (); sprintf (initial, "%d", gimage_mask_border_radius); - query_string_box ("Border Selection", "Border selection by:", initial, + query_string_box (_("Border Selection"), _("Border selection by:"), initial, gimage_mask_border_callback, gdisp->gimage); } @@ -374,7 +376,7 @@ select_feather_cmd_callback (GtkWidget *widget, gdisp = gdisplay_active (); sprintf (initial, "%f", gimage_mask_feather_radius); - query_string_box ("Feather Selection", "Feather selection by:", initial, + query_string_box (_("Feather Selection"), _("Feather selection by:"), initial, gimage_mask_feather_callback, gdisp->gimage); } @@ -388,7 +390,7 @@ select_grow_cmd_callback (GtkWidget *widget, gdisp = gdisplay_active (); sprintf (initial, "%d", gimage_mask_grow_pixels); - query_string_box ("Grow Selection", "Grow selection by:", initial, + query_string_box (_("Grow Selection"), _("Grow selection by:"), initial, gimage_mask_grow_callback, gdisp->gimage); } @@ -402,7 +404,7 @@ select_shrink_cmd_callback (GtkWidget *widget, gdisp = gdisplay_active (); sprintf (initial, "%d", gimage_mask_shrink_pixels); - query_string_box ("Shrink Selection", "Shrink selection by:", initial, + query_string_box (_("Shrink Selection"), _("Shrink selection by:"), initial, gimage_mask_shrink_callback, gdisp->gimage); } @@ -736,8 +738,8 @@ image_resize_cmd_callback (GtkWidget *widget, { static ActionAreaItem action_items[2] = { - { "OK", image_resize_callback, NULL, NULL }, - { "Cancel", image_cancel_callback, NULL, NULL } + { N_("OK"), image_resize_callback, NULL, NULL }, + { N_("Cancel"), image_cancel_callback, NULL, NULL } }; GDisplay * gdisp; GtkWidget *vbox; @@ -753,7 +755,7 @@ image_resize_cmd_callback (GtkWidget *widget, /* the dialog */ image_resize->shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (image_resize->shell), "image_resize", "Gimp"); - gtk_window_set_title (GTK_WINDOW (image_resize->shell), "Image Resize"); + gtk_window_set_title (GTK_WINDOW (image_resize->shell), _("Image Resize")); gtk_window_set_policy (GTK_WINDOW (image_resize->shell), FALSE, FALSE, TRUE); gtk_window_position (GTK_WINDOW (image_resize->shell), GTK_WIN_POS_MOUSE); @@ -783,8 +785,8 @@ image_scale_cmd_callback (GtkWidget *widget, { static ActionAreaItem action_items[2] = { - { "OK", image_scale_callback, NULL, NULL }, - { "Cancel", image_cancel_callback, NULL, NULL } + { N_("OK"), image_scale_callback, NULL, NULL }, + { N_("Cancel"), image_cancel_callback, NULL, NULL } }; GDisplay * gdisp; GtkWidget *vbox; @@ -800,7 +802,7 @@ image_scale_cmd_callback (GtkWidget *widget, /* the dialog */ image_scale->shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (image_scale->shell), "image_scale", "Gimp"); - gtk_window_set_title (GTK_WINDOW (image_scale->shell), "Image Scale"); + gtk_window_set_title (GTK_WINDOW (image_scale->shell), _("Image Scale")); gtk_window_set_policy (GTK_WINDOW (image_scale->shell), FALSE, FALSE, TRUE); gtk_window_position (GTK_WINDOW (image_scale->shell), GTK_WIN_POS_MOUSE); @@ -1096,7 +1098,7 @@ image_resize_callback (GtkWidget *w, } else { - g_message ("Resize Error: Both width and height must be greater than zero."); + g_message (_("Resize Error: Both width and height must be greater than zero.")); return; } } @@ -1126,7 +1128,7 @@ image_scale_callback (GtkWidget *w, } else { - g_message ("Scale Error: Both width and height must be greater than zero."); + g_message (_("Scale Error: Both width and height must be greater than zero.")); return; } } diff --git a/app/convert.c b/app/convert.c index 3e926b265c..109346db30 100644 --- a/app/convert.c +++ b/app/convert.c @@ -79,6 +79,8 @@ #include "undo.h" #include "palette.h" +#include "libgimp/gimpintl.h" + #include "layer_pvt.h" /* ick. */ #include "drawable_pvt.h" /* ick ick. */ #include "tile_manager_pvt.h" /* ick ick ick. */ @@ -276,8 +278,8 @@ convert_to_grayscale (GimpImage* gimage) /* the action area structure */ static ActionAreaItem action_items[] = { - { "OK", indexed_ok_callback, NULL, NULL }, - { "Cancel", indexed_cancel_callback, NULL, NULL } + { N_("OK"), indexed_ok_callback, NULL, NULL }, + { N_("Cancel"), indexed_cancel_callback, NULL, NULL } }; static void @@ -319,12 +321,12 @@ convert_to_indexed (GimpImage *gimage) dialog->shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (dialog->shell), "indexed_color_conversion", "Gimp"); - gtk_window_set_title (GTK_WINDOW (dialog->shell), "Indexed Color Conversion"); + gtk_window_set_title (GTK_WINDOW (dialog->shell), _("Indexed Color Conversion")); gtk_signal_connect (GTK_OBJECT (dialog->shell), "delete_event", GTK_SIGNAL_FUNC (indexed_delete_callback), dialog); - frame = gtk_frame_new ("Palette Options"); + frame = gtk_frame_new (_("Palette Options")); gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN); gtk_container_border_width (GTK_CONTAINER (frame), 2); gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog->shell)->vbox), frame, TRUE, TRUE, 0); @@ -341,7 +343,7 @@ convert_to_indexed (GimpImage *gimage) gtk_container_border_width (GTK_CONTAINER (vbox), 2); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); - toggle = gtk_radio_button_new_with_label (group, "Generate optimal palette: "); + toggle = gtk_radio_button_new_with_label (group, _("Generate optimal palette: ")); group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle)); gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, TRUE, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -349,7 +351,7 @@ convert_to_indexed (GimpImage *gimage) &(dialog->makepal_flag)); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), dialog->makepal_flag); gtk_widget_show (toggle); - label = gtk_label_new ("# of colors: "); + label = gtk_label_new (_("# of colors: ")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, FALSE, 0); gtk_widget_show (label); @@ -402,7 +404,7 @@ convert_to_indexed (GimpImage *gimage) /* 'custom' palette from dialog */ hbox = gtk_hbox_new (FALSE, 1); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); - toggle = gtk_radio_button_new_with_label (group, "Use custom palette"); + toggle = gtk_radio_button_new_with_label (group, _("Use custom palette")); group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle)); gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, TRUE, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -434,7 +436,7 @@ convert_to_indexed (GimpImage *gimage) { gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); toggle = - gtk_radio_button_new_with_label (group, "Use WWW-optimised palette"); + gtk_radio_button_new_with_label (group, _("Use WWW-optimised palette")); { group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle)); gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, TRUE, 0); @@ -452,7 +454,7 @@ convert_to_indexed (GimpImage *gimage) hbox = gtk_hbox_new (FALSE, 1); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); toggle = - gtk_radio_button_new_with_label (group, "Use black/white (1-bit) palette"); + gtk_radio_button_new_with_label (group, _("Use black/white (1-bit) palette")); group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle)); gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, TRUE, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -462,7 +464,7 @@ convert_to_indexed (GimpImage *gimage) gtk_widget_show (toggle); gtk_widget_show (hbox); - frame = gtk_frame_new ("Dither Options"); + frame = gtk_frame_new (_("Dither Options")); { gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN); gtk_container_border_width (GTK_CONTAINER (frame), 2); @@ -476,7 +478,7 @@ convert_to_indexed (GimpImage *gimage) hbox = gtk_hbox_new (FALSE, 1); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); - toggle = gtk_check_button_new_with_label ("Enable Floyd-Steinberg dithering"); + toggle = gtk_check_button_new_with_label (_("Enable Floyd-Steinberg dithering")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), dialog->dither); gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -500,7 +502,7 @@ convert_to_indexed (GimpImage *gimage) ) ) { - frame = gtk_frame_new (" [ Warning ] "); + frame = gtk_frame_new (_(" [ Warning ] ")); { gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN); gtk_container_border_width (GTK_CONTAINER (frame), 2); @@ -1194,7 +1196,7 @@ generate_histogram_rgb (Histogram histogram, * quantizing at a later stage. */ needs_quantize = TRUE; -/* g_print ("\nmax colours exceeded - needs quantize.\n");*/ +/* g_print (_("\nmax colours exceeded - needs quantize.\n"));*/ goto already_found; } else @@ -2354,8 +2356,8 @@ median_cut_pass2_nodestruct_dither_rgb (QuantizeObj *quantobj, goto got_colour; } } - g_error ("Non-existant colour was expected to " - "be in non-destructive colourmap."); + g_error (_("Non-existant colour was expected to " + "be in non-destructive colourmap.")); got_colour: dest[INDEXED_PIX] = lastindex; if (has_alpha) @@ -2915,15 +2917,15 @@ ProcArg convert_rgb_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") } }; ProcRecord convert_rgb_proc = { "gimp_convert_rgb", - "Convert specified image to RGB color", - "This procedure converts the specified image to RGB color. This process requires an image of type GRAY or INDEXED. No image content is lost in this process aside from the colormap for an indexed image.", + N_("Convert specified image to RGB color"), + N_("This procedure converts the specified image to RGB color. This process requires an image of type GRAY or INDEXED. No image content is lost in this process aside from the colormap for an indexed image."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -2973,15 +2975,15 @@ ProcArg convert_grayscale_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") } }; ProcRecord convert_grayscale_proc = { "gimp_convert_grayscale", - "Convert specified image to grayscale (256 intensity levels)", - "This procedure converts the specified image to grayscale with 8 bits per pixel (256 intensity levels). This process requires an image of type RGB or INDEXED.", + N_("Convert specified image to grayscale (256 intensity levels)"), + N_("This procedure converts the specified image to grayscale with 8 bits per pixel (256 intensity levels). This process requires an image of type RGB or INDEXED."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -3031,23 +3033,23 @@ ProcArg convert_indexed_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_INT32, "dither", - "Floyd-Steinberg dithering" + N_("Floyd-Steinberg dithering") }, { PDB_INT32, "num_cols", - "the number of colors to quantize to" + N_("the number of colors to quantize to") } }; ProcRecord convert_indexed_proc = { "gimp_convert_indexed", - "Convert specified image to indexed color", - "This procedure converts the specified image to indexed color. This process requires an image of type GRAY or RGB. The 'num_cols' arguments specifies how many colors the resulting image should be quantized to (1-256).", + N_("Convert specified image to indexed color"), + N_("This procedure converts the specified image to indexed color. This process requires an image of type GRAY or RGB. The 'num_cols' arguments specifies how many colors the resulting image should be quantized to (1-256)."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -3107,31 +3109,31 @@ ProcArg convert_indexed_palette_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_INT32, "dither", - "Floyd-Steinberg dithering" + N_("Floyd-Steinberg dithering") }, { PDB_INT32, "palette_type", - "The type of palette to use, (0 optimal) (1 reuse) (2 WWW) (3 Mono) (4 Custom)" + N_("The type of palette to use, (0 optimal) (1 reuse) (2 WWW) (3 Mono) (4 Custom)") }, { PDB_INT32, "num_cols", - "the number of colors to quantize to, ignored unless (palette_type == 0)" + N_("the number of colors to quantize to, ignored unless (palette_type == 0)") }, { PDB_STRING, "palette", - "The name of the custom palette to use, ignored unless (palette_type == 4)" + N_("The name of the custom palette to use, ignored unless (palette_type == 4)") } }; ProcRecord convert_indexed_palette_proc = { "gimp_convert_indexed_palette", - "Convert specified image to indexed color", - "This procedure converts the specified image to indexed color. This process requires an image of type GRAY or RGB. The `palette_type' specifies what kind of palette to use, A type of `0' means to use an optimal palette of `num_cols' generated from the colors in the image. A type of `1' means to re-use the previous palette. A type of `2' means to use the WWW-optimized palette. Type `3' means to use only black and white colors. A type of `4' means to use a palette from the gimp palettes directories.", + N_("Convert specified image to indexed color"), + N_("This procedure converts the specified image to indexed color. This process requires an image of type GRAY or RGB. The `palette_type' specifies what kind of palette to use, A type of `0' means to use an optimal palette of `num_cols' generated from the colors in the image. A type of `1' means to re-use the previous palette. A type of `2' means to use the WWW-optimized palette. Type `3' means to use only black and white colors. A type of `4' means to use a palette from the gimp palettes directories."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -3193,7 +3195,7 @@ convert_indexed_palette_invoker (Argument *args) break; case CUSTOM_PALETTE: palette_name = args[4].value.pdb_pointer; - /* fprintf(stderr, "looking for palette `%s'\n", palette_name); */ + /* fprintf(stderr, _("looking for palette `%s'\n"), palette_name); */ if (!palette_entries_list) palette_init_palettes(FALSE); for(list = palette_entries_list; list; diff --git a/app/convolve.c b/app/convolve.c index 4c99b98a46..4440ce8242 100644 --- a/app/convolve.c +++ b/app/convolve.c @@ -29,6 +29,8 @@ #include "tools.h" #include "gimage.h" +#include "libgimp/gimpintl.h" + typedef enum { Blur, @@ -126,9 +128,9 @@ create_convolve_options (void) int i; char *button_names[3] = { - "Blur", - "Sharpen", - "Custom" + N_("Blur"), + N_("Sharpen"), + N_("Custom") }; /* the new options structure */ @@ -140,7 +142,7 @@ create_convolve_options (void) vbox = gtk_vbox_new (FALSE, 2); /* the main label */ - label = gtk_label_new ("Convolver Options"); + label = gtk_label_new (_("Convolver Options")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -148,7 +150,7 @@ create_convolve_options (void) hbox = gtk_hbox_new (FALSE, 1); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); - label = gtk_label_new ("Pressure"); + label = gtk_label_new (_("Pressure")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -424,27 +426,27 @@ ProcArg convolve_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_FLOAT, "pressure", - "the pressure: 0 <= pressure <= 100" + N_("the pressure: 0 <= pressure <= 100") }, { PDB_INT32, "convolve_type", - "convolve type: { BLUR (0), SHARPEN (1) }" + N_("convolve type: { BLUR (0), SHARPEN (1) }") }, { PDB_INT32, "num_strokes", - "number of stroke control points (count each coordinate as 2 points)" + N_("number of stroke control points (count each coordinate as 2 points)") }, { PDB_FLOATARRAY, "strokes", - "array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}" + N_("array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}") } }; @@ -452,8 +454,8 @@ ProcArg convolve_args[] = ProcRecord convolve_proc = { "gimp_convolve", - "Convolve (Blur, Sharpen) using the current brush", - "This tool convolves the specified drawable with either a sharpening or blurring kernel. The pressure parameter controls the magnitude of the operation. Like the paintbrush, this tool linearly interpolates between the specified stroke coordinates.", + N_("Convolve (Blur, Sharpen) using the current brush"), + N_("This tool convolves the specified drawable with either a sharpening or blurring kernel. The pressure parameter controls the magnitude of the operation. Like the paintbrush, this tool linearly interpolates between the specified stroke coordinates."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/core/gimpchannel-combine.c b/app/core/gimpchannel-combine.c index e1df961a1a..ef70f5adbd 100644 --- a/app/core/gimpchannel-combine.c +++ b/app/core/gimpchannel-combine.c @@ -31,6 +31,8 @@ #include "temp_buf.h" #include "undo.h" +#include "libgimp/gimpintl.h" + #include "channel_pvt.h" #include "tile.h" @@ -182,13 +184,13 @@ channel_copy (Channel *channel) name = channel_get_name(channel); ext = strrchr(name, '#'); channel_name = (char *) g_malloc (strlen (name) + 6); - if ((strlen(name) >= 4 && strcmp(&name[strlen(name) -4], "copy") == 0) || + if ((strlen(name) >= 4 && strcmp(&name[strlen(name) -4], _("copy")) == 0) || (ext && (number = atoi(ext+1)) > 0 && ((int)(log10(number) + 1)) == strlen(ext+1))) /* don't have rudundant "copy"s */ sprintf (channel_name, "%s", name); else - sprintf (channel_name, "%s copy", name); + sprintf (channel_name, N_("%s copy"), name); /* allocate a new channel object */ new_channel = channel_new (GIMP_DRAWABLE(channel)->gimage, @@ -493,7 +495,7 @@ channel_new_mask (GimpImage* gimage, int width, int height) Channel *new_channel; /* Create the new channel */ - new_channel = channel_new (gimage, width, height, "Selection Mask", 127, black); + new_channel = channel_new (gimage, width, height, _("Selection Mask"), 127, black); /* Set the validate procedure */ tile_manager_set_validate_proc (GIMP_DRAWABLE(new_channel)->tiles, channel_validate); diff --git a/app/core/gimpchannel.c b/app/core/gimpchannel.c index e1df961a1a..ef70f5adbd 100644 --- a/app/core/gimpchannel.c +++ b/app/core/gimpchannel.c @@ -31,6 +31,8 @@ #include "temp_buf.h" #include "undo.h" +#include "libgimp/gimpintl.h" + #include "channel_pvt.h" #include "tile.h" @@ -182,13 +184,13 @@ channel_copy (Channel *channel) name = channel_get_name(channel); ext = strrchr(name, '#'); channel_name = (char *) g_malloc (strlen (name) + 6); - if ((strlen(name) >= 4 && strcmp(&name[strlen(name) -4], "copy") == 0) || + if ((strlen(name) >= 4 && strcmp(&name[strlen(name) -4], _("copy")) == 0) || (ext && (number = atoi(ext+1)) > 0 && ((int)(log10(number) + 1)) == strlen(ext+1))) /* don't have rudundant "copy"s */ sprintf (channel_name, "%s", name); else - sprintf (channel_name, "%s copy", name); + sprintf (channel_name, N_("%s copy"), name); /* allocate a new channel object */ new_channel = channel_new (GIMP_DRAWABLE(channel)->gimage, @@ -493,7 +495,7 @@ channel_new_mask (GimpImage* gimage, int width, int height) Channel *new_channel; /* Create the new channel */ - new_channel = channel_new (gimage, width, height, "Selection Mask", 127, black); + new_channel = channel_new (gimage, width, height, _("Selection Mask"), 127, black); /* Set the validate procedure */ tile_manager_set_validate_proc (GIMP_DRAWABLE(new_channel)->tiles, channel_validate); diff --git a/app/core/gimpdrawable-blend.c b/app/core/gimpdrawable-blend.c index a5649e88ee..95b7c9c9b9 100644 --- a/app/core/gimpdrawable-blend.c +++ b/app/core/gimpdrawable-blend.c @@ -37,6 +37,8 @@ #include "tools.h" #include "undo.h" +#include "libgimp/gimpintl.h" + #include "tile.h" /* target size */ @@ -208,25 +210,25 @@ static PixelRegion distR = /* the blend option menu items -- the blend modes */ static MenuItem blend_option_items[] = { - { "FG to BG (RGB)", 0, 0, blend_mode_callback, (gpointer) FG_BG_RGB_MODE, NULL, NULL }, - { "FG to BG (HSV)", 0, 0, blend_mode_callback, (gpointer) FG_BG_HSV_MODE, NULL, NULL }, - { "FG to Transparent", 0, 0, blend_mode_callback, (gpointer) FG_TRANS_MODE, NULL, NULL }, - { "Custom (from editor)", 0, 0, blend_mode_callback, (gpointer) CUSTOM_MODE, NULL, NULL }, + { N_("FG to BG RGB"), 0, 0, blend_mode_callback, (gpointer) FG_BG_RGB_MODE, NULL, NULL }, + { N_("FG to BG HSV"), 0, 0, blend_mode_callback, (gpointer) FG_BG_HSV_MODE, NULL, NULL }, + { N_("FG to Transparent"), 0, 0, blend_mode_callback, (gpointer) FG_TRANS_MODE, NULL, NULL }, + { N_("Custom from editor"), 0, 0, blend_mode_callback, (gpointer) CUSTOM_MODE, NULL, NULL }, { NULL, 0, 0, NULL, NULL, NULL, NULL } }; /* the gradient option menu items -- the gradient modes */ static MenuItem gradient_option_items[] = { - { "Linear", 0, 0, gradient_type_callback, (gpointer) Linear, NULL, NULL }, - { "Bi-Linear", 0, 0, gradient_type_callback, (gpointer) BiLinear, NULL, NULL }, - { "Radial", 0, 0, gradient_type_callback, (gpointer) Radial, NULL, NULL }, - { "Square", 0, 0, gradient_type_callback, (gpointer) Square, NULL, NULL }, - { "Conical (symmetric)", 0, 0, gradient_type_callback, (gpointer) ConicalSymmetric, NULL, NULL }, - { "Conical (asymmetric)", 0, 0, gradient_type_callback, (gpointer) ConicalAsymmetric, NULL, NULL }, - { "Shapeburst (angular)", 0, 0, gradient_type_callback, (gpointer) ShapeburstAngular, NULL, NULL }, - { "Shapeburst (spherical)", 0, 0, gradient_type_callback, (gpointer) ShapeburstSpherical, NULL, NULL }, - { "Shapeburst (dimpled)", 0, 0, gradient_type_callback, (gpointer) ShapeburstDimpled, NULL, NULL }, + { N_("Linear"), 0, 0, gradient_type_callback, (gpointer) Linear, NULL, NULL }, + { N_("Bi-Linear"), 0, 0, gradient_type_callback, (gpointer) BiLinear, NULL, NULL }, + { N_("Radial"), 0, 0, gradient_type_callback, (gpointer) Radial, NULL, NULL }, + { N_("Square"), 0, 0, gradient_type_callback, (gpointer) Square, NULL, NULL }, + { N_("Conical (symmetric)"), 0, 0, gradient_type_callback, (gpointer) ConicalSymmetric, NULL, NULL }, + { N_("Conical (asymmetric)"), 0, 0, gradient_type_callback, (gpointer) ConicalAsymmetric, NULL, NULL }, + { N_("Shapeburst (angular)"), 0, 0, gradient_type_callback, (gpointer) ShapeburstAngular, NULL, NULL }, + { N_("Shapeburst (spherical)"), 0, 0, gradient_type_callback, (gpointer) ShapeburstSpherical, NULL, NULL }, + { N_("Shapeburst (dimpled)"), 0, 0, gradient_type_callback, (gpointer) ShapeburstDimpled, NULL, NULL }, { NULL, 0, 0, NULL, NULL, NULL, NULL } }; @@ -237,9 +239,9 @@ static BlendOptions *blend_options = NULL; static MenuItem repeat_option_items[] = { - { "None", 0, 0, repeat_type_callback, (gpointer) REPEAT_NONE, NULL, NULL }, - { "Sawtooth wave", 0, 0, repeat_type_callback, (gpointer) REPEAT_SAWTOOTH, NULL, NULL }, - { "Triangular wave", 0, 0, repeat_type_callback, (gpointer) REPEAT_TRIANGULAR, NULL, NULL }, + { N_("None"), 0, 0, repeat_type_callback, (gpointer) REPEAT_NONE, NULL, NULL }, + { N_("Sawtooth wave"), 0, 0, repeat_type_callback, (gpointer) REPEAT_SAWTOOTH, NULL, NULL }, + { N_("Triangular wave"), 0, 0, repeat_type_callback, (gpointer) REPEAT_TRIANGULAR, NULL, NULL }, { NULL, 0, 0, NULL, NULL, NULL, NULL } }; @@ -355,7 +357,7 @@ create_blend_options () vbox = gtk_vbox_new (FALSE, 2); /* the main label */ - label = gtk_label_new ("Blend Options"); + label = gtk_label_new (_("Blend Options")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -365,7 +367,7 @@ create_blend_options () gtk_box_pack_start(GTK_BOX(vbox), table, TRUE, TRUE, 0); /* the opacity scale */ - label = gtk_label_new ("Opacity:"); + label = gtk_label_new (_("Opacity:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 1.0); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2); @@ -383,7 +385,7 @@ create_blend_options () gtk_widget_show (opacity_scale); /* the offset scale */ - label = gtk_label_new ("Offset:"); + label = gtk_label_new (_("Offset:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 1.0); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2); @@ -401,7 +403,7 @@ create_blend_options () gtk_widget_show (offset_scale); /* the paint mode menu */ - label = gtk_label_new ("Mode:"); + label = gtk_label_new (_("Mode:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 2, 3, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2); @@ -414,7 +416,7 @@ create_blend_options () gtk_widget_show (pm_option_menu); /* the blend mode menu */ - label = gtk_label_new ("Blend:"); + label = gtk_label_new (_("Blend:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 3, 4, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2); @@ -427,7 +429,7 @@ create_blend_options () gtk_widget_show (bm_option_menu); /* the gradient type menu */ - label = gtk_label_new ("Gradient:"); + label = gtk_label_new (_("Gradient:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 4, 5, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2); @@ -441,7 +443,7 @@ create_blend_options () /* the repeat option */ - label = gtk_label_new("Repeat:"); + label = gtk_label_new(_("Repeat:")); gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 5, 6, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2); @@ -460,7 +462,7 @@ create_blend_options () /* supersampling toggle */ - button = gtk_check_button_new_with_label("Adaptive supersampling"); + button = gtk_check_button_new_with_label(_("Adaptive supersampling")); gtk_box_pack_start(GTK_BOX(vbox), button, FALSE, FALSE, 0); gtk_signal_connect(GTK_OBJECT(button), "toggled", (GtkSignalFunc) supersample_toggle_update, @@ -482,7 +484,7 @@ create_blend_options () /* max depth scale */ - label = gtk_label_new("Max depth:"); + label = gtk_label_new(_("Max depth:")); gtk_misc_set_alignment(GTK_MISC(label), 0.0, 1.0); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 0, 1, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2); @@ -501,7 +503,7 @@ create_blend_options () /* threshold scale */ - label = gtk_label_new("Threshold:"); + label = gtk_label_new(_("Threshold:")); gtk_misc_set_alignment(GTK_MISC(label), 0.0, 1.0); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 1, 2, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2); @@ -555,7 +557,7 @@ blend_button_press (Tool *tool, switch (drawable_type (gimage_active_drawable (gdisp->gimage))) { case INDEXED_GIMAGE: case INDEXEDA_GIMAGE: - g_message ("Blend: Invalid for indexed images."); + g_message (_("Blend: Invalid for indexed images.")); return; break; @@ -580,7 +582,7 @@ blend_button_press (Tool *tool, /* initialize the statusbar display */ blend_tool->context_id = gtk_statusbar_get_context_id (GTK_STATUSBAR (gdisp->statusbar), "blend"); - gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), blend_tool->context_id, "Blend: 0, 0"); + gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), blend_tool->context_id, _("Blend: 0, 0")); /* Start drawing the blend tool */ draw_core_start (blend_tool->core, gdisp->canvas->window, tool); @@ -636,7 +638,7 @@ blend_button_release (Tool *tool, if (return_vals[0].value.pdb_int == PDB_SUCCESS) gdisplays_flush (); else - g_message ("Blend operation failed."); + g_message (_("Blend operation failed.")); procedural_db_destroy_args (return_vals, nreturn_vals); } @@ -662,7 +664,7 @@ blend_motion (Tool *tool, &blend_tool->endx, &blend_tool->endy, FALSE, 1); gtk_statusbar_pop (GTK_STATUSBAR (gdisp->statusbar), blend_tool->context_id); - g_snprintf (vector, STATUSBAR_SIZE, "Blend: %d, %d", + g_snprintf (vector, STATUSBAR_SIZE, _("Blend: %d, %d"), abs(blend_tool->endx - blend_tool->startx), abs(blend_tool->endy - blend_tool->starty)); gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), blend_tool->context_id, vector); @@ -1248,7 +1250,7 @@ gradient_render_pixel(double x, double y, color_t *color, void *render_data) break; default: - fatal_error("gradient_render_pixel(): unknown gradient type %d", + fatal_error(_("gradient_render_pixel(): unknown gradient type %d"), (int) rbd->gradient_type); return; } @@ -1380,7 +1382,7 @@ gradient_fill_region (GImage *gimage, break; default: - fatal_error("gradient_fill_region(): unknown blend mode %d", + fatal_error(_("gradient_fill_region(): unknown blend mode %d"), (int) blend_mode); break; } @@ -1419,7 +1421,7 @@ gradient_fill_region (GImage *gimage, break; default: - fatal_error("gradient_fill_region(): unknown gradient type %d", + fatal_error(_("gradient_fill_region(): unknown gradient type %d"), (int) gradient_type); break; } @@ -1441,7 +1443,7 @@ gradient_fill_region (GImage *gimage, break; default: - fatal_error("gradient_fill_region(): unknown repeat mode %d", + fatal_error(_("gradient_fill_region(): unknown repeat mode %d"), (int) repeat); break; } @@ -1711,71 +1713,71 @@ ProcArg blend_args[] = { { PDB_IMAGE, "image", - "The image" + N_("The image") }, { PDB_DRAWABLE, "drawable", - "The affected drawable" + N_("The affected drawable") }, { PDB_INT32, "blend_mode", - "The type of blend: { FG-BG-RGB (0), FG-BG-HSV (1), FG-TRANS (2), CUSTOM (3) }" + N_("The type of blend: { FG-BG-RGB (0), FG-BG-HSV (1), FG-TRANS (2), CUSTOM (3) }") }, { PDB_INT32, "paint_mode", - "the paint application mode: { NORMAL (0), DISSOLVE (1), BEHIND (2), MULTIPLY/BURN (3), SCREEN (4), OVERLAY (5) DIFFERENCE (6), ADDITION (7), SUBTRACT (8), DARKEN-ONLY (9), LIGHTEN-ONLY (10), HUE (11), SATURATION (12), COLOR (13), VALUE (14), DIVIDE/DODGE (15) }" + N_("the paint application mode: { NORMAL (0), DISSOLVE (1), BEHIND (2), MULTIPLY/BURN (3), SCREEN (4), OVERLAY (5) DIFFERENCE (6), ADDITION (7), SUBTRACT (8), DARKEN-ONLY (9), LIGHTEN-ONLY (10), HUE (11), SATURATION (12), COLOR (13), VALUE (14), DIVIDE/DODGE (15) }") }, { PDB_INT32, "gradient_type", - "The type of gradient: { LINEAR (0), BILINEAR (1), RADIAL (2), SQUARE (3), CONICAL-SYMMETRIC (4), CONICAL-ASYMMETRIC (5), SHAPEBURST-ANGULAR (6), SHAPEBURST-SPHERICAL (7), SHAPEBURST-DIMPLED (8) }" + N_("The type of gradient: { LINEAR (0), BILINEAR (1), RADIAL (2), SQUARE (3), CONICAL-SYMMETRIC (4), CONICAL-ASYMMETRIC (5), SHAPEBURST-ANGULAR (6), SHAPEBURST-SPHERICAL (7), SHAPEBURST-DIMPLED (8) }") }, { PDB_FLOAT, "opacity", - "The opacity of the final blend (0 <= opacity <= 100)" + N_("The opacity of the final blend (0 <= opacity <= 100)") }, { PDB_FLOAT, "offset", - "Offset relates to the starting and ending coordinates specified for the blend. This parameter is mode depndent (0 <= offset)" + N_("Offset relates to the starting and ending coordinates specified for the blend. This parameter is mode depndent (0 <= offset)") }, { PDB_INT32, "repeat", - "Repeat mode: { REPEAT-NONE (0), REPEAT-SAWTOOTH (1), REPEAT-TRIANGULAR (2) }" + N_("Repeat mode: { REPEAT-NONE (0), REPEAT-SAWTOOTH (1), REPEAT-TRIANGULAR (2) }") }, { PDB_INT32, "supersample", - "Do adaptive supersampling (true / false)" + N_("Do adaptive supersampling (true / false)") }, { PDB_INT32, "max_depth", - "Maximum recursion levels for supersampling" + N_("Maximum recursion levels for supersampling") }, { PDB_FLOAT, "threshold", - "Supersampling threshold" + N_("Supersampling threshold") }, { PDB_FLOAT, "x1", - "The x coordinate of this blend's starting point" + N_("The x coordinate of this blend's starting point") }, { PDB_FLOAT, "y1", - "The y coordinate of this blend's starting point" + N_("The y coordinate of this blend's starting point") }, { PDB_FLOAT, "x2", - "The x coordinate of this blend's ending point" + N_("The x coordinate of this blend's ending point") }, { PDB_FLOAT, "y2", - "The y coordinate of this blend's ending point" + N_("The y coordinate of this blend's ending point") } }; ProcRecord blend_proc = { "gimp_blend", - "Blend between the starting and ending coordinates with the specified blend mode and gradient type.", - "This tool requires information on the paint application mode, the blend mode, and the gradient type. It creates the specified variety of blend using the starting and ending coordinates as defined for each gradient type.", + N_("Blend between the starting and ending coordinates with the specified blend mode and gradient type."), + N_("This tool requires information on the paint application mode, the blend mode, and the gradient type. It creates the specified variety of blend using the starting and ending coordinates as defined for each gradient type."), "Spencer Kimball & Peter Mattis & Federico Mena Quintero", "Spencer Kimball & Peter Mattis & Federico Mena Quintero", "1995-1996", diff --git a/app/core/gimpdrawable-desaturate.c b/app/core/gimpdrawable-desaturate.c index 14540e8ca5..224c67ddcc 100644 --- a/app/core/gimpdrawable-desaturate.c +++ b/app/core/gimpdrawable-desaturate.c @@ -25,6 +25,8 @@ #include "paint_funcs.h" #include "gimage.h" +#include "libgimp/gimpintl.h" + static void desaturate (GimpDrawable *); static Argument * desaturate_invoker (Argument *); @@ -41,7 +43,7 @@ image_desaturate (gimage_ptr) if (! drawable_color (drawable)) { - g_message ("Desaturate operates only on RGB color drawables."); + g_message (_("Desaturate operates only on RGB color drawables.")); return; } desaturate (drawable); @@ -116,19 +118,19 @@ ProcArg desaturate_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") } }; ProcRecord desaturate_proc = { "gimp_desaturate", - "Desaturate the contents of the specified drawable", - "This procedure desaturates the contents of the specified drawable. This procedure only works on drawables of type RGB color.", + N_("Desaturate the contents of the specified drawable"), + N_("This procedure desaturates the contents of the specified drawable. This procedure only works on drawables of type RGB color."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/core/gimpdrawable-equalize.c b/app/core/gimpdrawable-equalize.c index ac30babd9b..3426d34fe3 100644 --- a/app/core/gimpdrawable-equalize.c +++ b/app/core/gimpdrawable-equalize.c @@ -24,6 +24,8 @@ #include "interface.h" #include "gimage.h" +#include "libgimp/gimpintl.h" + static void equalize (GImage *, GimpDrawable *, int); static void eq_histogram (double [3][256], unsigned char [3][256], int, double); static Argument * equalize_invoker (Argument *); @@ -234,23 +236,23 @@ ProcArg equalize_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_INT32, "mask_only", - "equalization option" + N_("equalization option") } }; ProcRecord equalize_proc = { "gimp_equalize", - "Equalize the contents of the specified drawable", - "This procedure equalizes the contents of the specified drawable. Each intensity channel is equalizeed independently. The equalizeed intensity is given as inten' = (255 - inten). Indexed color drawables are not valid for this operation. The 'mask_only' option specifies whether to adjust only the area of the image within the selection bounds, or the entire image based on the histogram of the selected area. If there is no selection, the entire image is adjusted based on the histogram for the entire image.", + N_("Equalize the contents of the specified drawable"), + N_("This procedure equalizes the contents of the specified drawable. Each intensity channel is equalizeed independently. The equalizeed intensity is given as inten' = (255 - inten). Indexed color drawables are not valid for this operation. The 'mask_only' option specifies whether to adjust only the area of the image within the selection bounds, or the entire image based on the histogram of the selected area. If there is no selection, the entire image is adjusted based on the histogram for the entire image."), "Federico Mena Quintero & Spencer Kimball & Peter Mattis", "Federico Mena Quintero & Spencer Kimball & Peter Mattis", "1996", diff --git a/app/core/gimpimage-convert.c b/app/core/gimpimage-convert.c index 3e926b265c..109346db30 100644 --- a/app/core/gimpimage-convert.c +++ b/app/core/gimpimage-convert.c @@ -79,6 +79,8 @@ #include "undo.h" #include "palette.h" +#include "libgimp/gimpintl.h" + #include "layer_pvt.h" /* ick. */ #include "drawable_pvt.h" /* ick ick. */ #include "tile_manager_pvt.h" /* ick ick ick. */ @@ -276,8 +278,8 @@ convert_to_grayscale (GimpImage* gimage) /* the action area structure */ static ActionAreaItem action_items[] = { - { "OK", indexed_ok_callback, NULL, NULL }, - { "Cancel", indexed_cancel_callback, NULL, NULL } + { N_("OK"), indexed_ok_callback, NULL, NULL }, + { N_("Cancel"), indexed_cancel_callback, NULL, NULL } }; static void @@ -319,12 +321,12 @@ convert_to_indexed (GimpImage *gimage) dialog->shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (dialog->shell), "indexed_color_conversion", "Gimp"); - gtk_window_set_title (GTK_WINDOW (dialog->shell), "Indexed Color Conversion"); + gtk_window_set_title (GTK_WINDOW (dialog->shell), _("Indexed Color Conversion")); gtk_signal_connect (GTK_OBJECT (dialog->shell), "delete_event", GTK_SIGNAL_FUNC (indexed_delete_callback), dialog); - frame = gtk_frame_new ("Palette Options"); + frame = gtk_frame_new (_("Palette Options")); gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN); gtk_container_border_width (GTK_CONTAINER (frame), 2); gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog->shell)->vbox), frame, TRUE, TRUE, 0); @@ -341,7 +343,7 @@ convert_to_indexed (GimpImage *gimage) gtk_container_border_width (GTK_CONTAINER (vbox), 2); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); - toggle = gtk_radio_button_new_with_label (group, "Generate optimal palette: "); + toggle = gtk_radio_button_new_with_label (group, _("Generate optimal palette: ")); group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle)); gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, TRUE, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -349,7 +351,7 @@ convert_to_indexed (GimpImage *gimage) &(dialog->makepal_flag)); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), dialog->makepal_flag); gtk_widget_show (toggle); - label = gtk_label_new ("# of colors: "); + label = gtk_label_new (_("# of colors: ")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, FALSE, 0); gtk_widget_show (label); @@ -402,7 +404,7 @@ convert_to_indexed (GimpImage *gimage) /* 'custom' palette from dialog */ hbox = gtk_hbox_new (FALSE, 1); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); - toggle = gtk_radio_button_new_with_label (group, "Use custom palette"); + toggle = gtk_radio_button_new_with_label (group, _("Use custom palette")); group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle)); gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, TRUE, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -434,7 +436,7 @@ convert_to_indexed (GimpImage *gimage) { gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); toggle = - gtk_radio_button_new_with_label (group, "Use WWW-optimised palette"); + gtk_radio_button_new_with_label (group, _("Use WWW-optimised palette")); { group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle)); gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, TRUE, 0); @@ -452,7 +454,7 @@ convert_to_indexed (GimpImage *gimage) hbox = gtk_hbox_new (FALSE, 1); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); toggle = - gtk_radio_button_new_with_label (group, "Use black/white (1-bit) palette"); + gtk_radio_button_new_with_label (group, _("Use black/white (1-bit) palette")); group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle)); gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, TRUE, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -462,7 +464,7 @@ convert_to_indexed (GimpImage *gimage) gtk_widget_show (toggle); gtk_widget_show (hbox); - frame = gtk_frame_new ("Dither Options"); + frame = gtk_frame_new (_("Dither Options")); { gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN); gtk_container_border_width (GTK_CONTAINER (frame), 2); @@ -476,7 +478,7 @@ convert_to_indexed (GimpImage *gimage) hbox = gtk_hbox_new (FALSE, 1); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); - toggle = gtk_check_button_new_with_label ("Enable Floyd-Steinberg dithering"); + toggle = gtk_check_button_new_with_label (_("Enable Floyd-Steinberg dithering")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), dialog->dither); gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -500,7 +502,7 @@ convert_to_indexed (GimpImage *gimage) ) ) { - frame = gtk_frame_new (" [ Warning ] "); + frame = gtk_frame_new (_(" [ Warning ] ")); { gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN); gtk_container_border_width (GTK_CONTAINER (frame), 2); @@ -1194,7 +1196,7 @@ generate_histogram_rgb (Histogram histogram, * quantizing at a later stage. */ needs_quantize = TRUE; -/* g_print ("\nmax colours exceeded - needs quantize.\n");*/ +/* g_print (_("\nmax colours exceeded - needs quantize.\n"));*/ goto already_found; } else @@ -2354,8 +2356,8 @@ median_cut_pass2_nodestruct_dither_rgb (QuantizeObj *quantobj, goto got_colour; } } - g_error ("Non-existant colour was expected to " - "be in non-destructive colourmap."); + g_error (_("Non-existant colour was expected to " + "be in non-destructive colourmap.")); got_colour: dest[INDEXED_PIX] = lastindex; if (has_alpha) @@ -2915,15 +2917,15 @@ ProcArg convert_rgb_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") } }; ProcRecord convert_rgb_proc = { "gimp_convert_rgb", - "Convert specified image to RGB color", - "This procedure converts the specified image to RGB color. This process requires an image of type GRAY or INDEXED. No image content is lost in this process aside from the colormap for an indexed image.", + N_("Convert specified image to RGB color"), + N_("This procedure converts the specified image to RGB color. This process requires an image of type GRAY or INDEXED. No image content is lost in this process aside from the colormap for an indexed image."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -2973,15 +2975,15 @@ ProcArg convert_grayscale_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") } }; ProcRecord convert_grayscale_proc = { "gimp_convert_grayscale", - "Convert specified image to grayscale (256 intensity levels)", - "This procedure converts the specified image to grayscale with 8 bits per pixel (256 intensity levels). This process requires an image of type RGB or INDEXED.", + N_("Convert specified image to grayscale (256 intensity levels)"), + N_("This procedure converts the specified image to grayscale with 8 bits per pixel (256 intensity levels). This process requires an image of type RGB or INDEXED."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -3031,23 +3033,23 @@ ProcArg convert_indexed_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_INT32, "dither", - "Floyd-Steinberg dithering" + N_("Floyd-Steinberg dithering") }, { PDB_INT32, "num_cols", - "the number of colors to quantize to" + N_("the number of colors to quantize to") } }; ProcRecord convert_indexed_proc = { "gimp_convert_indexed", - "Convert specified image to indexed color", - "This procedure converts the specified image to indexed color. This process requires an image of type GRAY or RGB. The 'num_cols' arguments specifies how many colors the resulting image should be quantized to (1-256).", + N_("Convert specified image to indexed color"), + N_("This procedure converts the specified image to indexed color. This process requires an image of type GRAY or RGB. The 'num_cols' arguments specifies how many colors the resulting image should be quantized to (1-256)."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -3107,31 +3109,31 @@ ProcArg convert_indexed_palette_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_INT32, "dither", - "Floyd-Steinberg dithering" + N_("Floyd-Steinberg dithering") }, { PDB_INT32, "palette_type", - "The type of palette to use, (0 optimal) (1 reuse) (2 WWW) (3 Mono) (4 Custom)" + N_("The type of palette to use, (0 optimal) (1 reuse) (2 WWW) (3 Mono) (4 Custom)") }, { PDB_INT32, "num_cols", - "the number of colors to quantize to, ignored unless (palette_type == 0)" + N_("the number of colors to quantize to, ignored unless (palette_type == 0)") }, { PDB_STRING, "palette", - "The name of the custom palette to use, ignored unless (palette_type == 4)" + N_("The name of the custom palette to use, ignored unless (palette_type == 4)") } }; ProcRecord convert_indexed_palette_proc = { "gimp_convert_indexed_palette", - "Convert specified image to indexed color", - "This procedure converts the specified image to indexed color. This process requires an image of type GRAY or RGB. The `palette_type' specifies what kind of palette to use, A type of `0' means to use an optimal palette of `num_cols' generated from the colors in the image. A type of `1' means to re-use the previous palette. A type of `2' means to use the WWW-optimized palette. Type `3' means to use only black and white colors. A type of `4' means to use a palette from the gimp palettes directories.", + N_("Convert specified image to indexed color"), + N_("This procedure converts the specified image to indexed color. This process requires an image of type GRAY or RGB. The `palette_type' specifies what kind of palette to use, A type of `0' means to use an optimal palette of `num_cols' generated from the colors in the image. A type of `1' means to re-use the previous palette. A type of `2' means to use the WWW-optimized palette. Type `3' means to use only black and white colors. A type of `4' means to use a palette from the gimp palettes directories."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -3193,7 +3195,7 @@ convert_indexed_palette_invoker (Argument *args) break; case CUSTOM_PALETTE: palette_name = args[4].value.pdb_pointer; - /* fprintf(stderr, "looking for palette `%s'\n", palette_name); */ + /* fprintf(stderr, _("looking for palette `%s'\n"), palette_name); */ if (!palette_entries_list) palette_init_palettes(FALSE); for(list = palette_entries_list; list; diff --git a/app/core/gimplayer-floating-sel.c b/app/core/gimplayer-floating-sel.c index c63739ed6e..6f53887e8c 100644 --- a/app/core/gimplayer-floating-sel.c +++ b/app/core/gimplayer-floating-sel.c @@ -31,6 +31,8 @@ #include "paint_funcs.h" #include "undo.h" +#include "libgimp/gimpintl.h" + #include "layer_pvt.h" #include "tile_manager_pvt.h" /* ick. */ @@ -103,7 +105,7 @@ floating_sel_anchor (Layer *layer) return; if (! layer_is_floating_sel (layer)) { - g_message ("Cannot anchor this layer because\nit is not a floating selection."); + g_message (_("Cannot anchor this layer because\nit is not a floating selection.")); return; } @@ -169,9 +171,9 @@ floating_sel_to_layer (Layer *layer) if (drawable_channel (layer->fs.drawable) || drawable_layer_mask (layer->fs.drawable)) { - g_message ("Cannot create a new layer from the floating\n" + g_message (_("Cannot create a new layer from the floating\n" "selection because it belongs to a\n" - "layer mask or channel."); + "layer mask or channel.")); return; } diff --git a/app/core/gimpprojection.c b/app/core/gimpprojection.c index 6c43144194..89ed596a7e 100644 --- a/app/core/gimpprojection.c +++ b/app/core/gimpprojection.c @@ -43,6 +43,8 @@ #include "undo.h" #include "layer_pvt.h" /* ick. */ +#include "libgimp/gimpintl.h" + #define OVERHEAD 25 /* in units of pixel area */ #define EPSILON 5 @@ -159,13 +161,13 @@ gdisplay_format_title (GimpImage *gimage, switch (gimage_base_type (gimage)) { case RGB: - image_type_str = (empty) ? "RGB-empty" : "RGB"; + image_type_str = (empty) ? _("RGB-empty") : _("RGB"); break; case GRAY: - image_type_str = (empty) ? "grayscale-empty" : "grayscale"; + image_type_str = (empty) ? _("grayscale-empty") : _("grayscale"); break; case INDEXED: - image_type_str = (empty) ? "indexed-empty" : "indexed"; + image_type_str = (empty) ? _("indexed-empty") : _("indexed"); break; default: image_type_str = NULL; @@ -207,11 +209,11 @@ gdisplay_delete (GDisplay *gdisp) deactivate the idlerendering thread before deletion! */ if (gdisp->idle_render.active) { - printf("Deleted idlerendering gdisp %p...\n", gdisp); fflush(stdout); - printf("\tIdlerender stops now!\n"); fflush(stdout); + printf(_("Deleted idlerendering gdisp %p...\n"), gdisp); fflush(stdout); + printf(_("\tIdlerender stops now!\n")); fflush(stdout); gtk_idle_remove (gdisp->idle_render.idleid); gdisp->idle_render.active = FALSE; - printf("\tDeletion finished.\n"); fflush(stdout); + printf(_("\tDeletion finished.\n")); fflush(stdout); } if (gdisp->scroll_gc) @@ -436,7 +438,7 @@ gdisplay_idlerender_init (GDisplay *gdisp) { if (gdisp->idle_render.update_areas == NULL) { - g_warning ("Wanted to start idlerender thread with no update_areas. (+memleak)"); + g_warning (_("Wanted to start idlerender thread with no update_areas. (+memleak)")); return; } @@ -1314,57 +1316,57 @@ gdisplay_set_menu_sensitivity (GDisplay *gdisp) type = drawable_type (drawable); } - menus_set_sensitive ("/Layers/Raise Layer", !fs && !aux && lp && alpha); - menus_set_sensitive ("/Layers/Lower Layer", !fs && !aux && lp && alpha); - menus_set_sensitive ("/Layers/Anchor Layer", fs && !aux && lp); - menus_set_sensitive ("/Layers/Merge Visible Layers", !fs && !aux && lp); - menus_set_sensitive ("/Layers/Flatten Image", !fs && !aux && lp); - menus_set_sensitive ("/Layers/Alpha To Selection", !aux && lp && alpha); - menus_set_sensitive ("/Layers/Mask To Selection", !aux && lm && lp); - menus_set_sensitive ("/Layers/Add Alpha Channel", !fs && !aux && lp && !lm && !alpha); + menus_set_sensitive (_("/Layers/Raise Layer"), !fs && !aux && lp && alpha); + menus_set_sensitive (_("/Layers/Lower Layer"), !fs && !aux && lp && alpha); + menus_set_sensitive (_("/Layers/Anchor Layer"), fs && !aux && lp); + menus_set_sensitive (_("/Layers/Merge Visible Layers"), !fs && !aux && lp); + menus_set_sensitive (_("/Layers/Flatten Image"), !fs && !aux && lp); + menus_set_sensitive (_("/Layers/Alpha To Selection"), !aux && lp && alpha); + menus_set_sensitive (_("/Layers/Mask To Selection"), !aux && lm && lp); + menus_set_sensitive (_("/Layers/Add Alpha Channel"), !fs && !aux && lp && !lm && !alpha); - menus_set_sensitive ("/Image/RGB", (base_type != RGB)); - menus_set_sensitive ("/Image/Grayscale", (base_type != GRAY)); - menus_set_sensitive ("/Image/Indexed", (base_type != INDEXED)); + menus_set_sensitive (_("/Image/RGB"), (base_type != RGB)); + menus_set_sensitive (_("/Image/Grayscale"), (base_type != GRAY)); + menus_set_sensitive (_("/Image/Indexed"), (base_type != INDEXED)); - menus_set_sensitive ("/Image/Colors/Threshold", (base_type != INDEXED)); - menus_set_sensitive ("/Image/Colors/Posterize", (base_type != INDEXED)); - menus_set_sensitive ("/Image/Colors/Equalize", (base_type != INDEXED)); - menus_set_sensitive ("/Image/Colors/Invert", (base_type != INDEXED)); + menus_set_sensitive (_("/Image/Colors/Threshold"), (base_type != INDEXED)); + menus_set_sensitive (_("/Image/Colors/Posterize") , (base_type != INDEXED)); + menus_set_sensitive (_("/Image/Colors/Equalize"), (base_type != INDEXED)); + menus_set_sensitive (_("/Image/Colors/Invert"), (base_type != INDEXED)); - menus_set_sensitive ("/Image/Colors/Color Balance", (base_type == RGB)); - menus_set_sensitive ("/Image/Colors/Brightness-Contrast", (base_type != INDEXED)); - menus_set_sensitive ("/Image/Colors/Hue-Saturation", (base_type == RGB)); - menus_set_sensitive ("/Image/Colors/Curves", (base_type != INDEXED)); - menus_set_sensitive ("/Image/Colors/Levels", (base_type != INDEXED)); + menus_set_sensitive (_("/Image/Colors/Color Balance"), (base_type == RGB)); + menus_set_sensitive (_("/Image/Colors/Brightness-Contrast"), (base_type != INDEXED)); + menus_set_sensitive (_("/Image/Colors/Hue-Saturation"), (base_type == RGB)); + menus_set_sensitive (_("/Image/Colors/Curves"), (base_type != INDEXED)); + menus_set_sensitive (_("/Image/Colors/Levels"), (base_type != INDEXED)); - menus_set_sensitive ("/Image/Colors/Desaturate", (base_type == RGB)); + menus_set_sensitive (_("/Image/Colors/Desaturate"), (base_type == RGB)); - menus_set_sensitive ("/Image/Alpha/Add Alpha Channel", !fs && !aux && lp && !lm && !alpha); + menus_set_sensitive (_("/Image/Alpha/Add Alpha Channel"), !fs && !aux && lp && !lm && !alpha); - menus_set_sensitive ("/Select", lp); - menus_set_sensitive ("/Edit/Cut", lp); - menus_set_sensitive ("/Edit/Copy", lp); - menus_set_sensitive ("/Edit/Paste", lp); - menus_set_sensitive ("/Edit/Paste Into", lp); - menus_set_sensitive ("/Edit/Clear", lp); - menus_set_sensitive ("/Edit/Fill", lp); - menus_set_sensitive ("/Edit/Stroke", lp); - menus_set_sensitive ("/Edit/Cut Named", lp); - menus_set_sensitive ("/Edit/Copy Named", lp); - menus_set_sensitive ("/Edit/Paste Named", lp); - menus_set_sensitive ("/Image/Colors", lp); - menus_set_sensitive ("/Image/Channel Ops/Offset", lp); - menus_set_sensitive ("/Image/Histogram", lp); - menus_set_sensitive ("/Filters", lp); + menus_set_sensitive (_("/Select"), lp); + menus_set_sensitive (_("/Edit/Cut"), lp); + menus_set_sensitive (_("/Edit/Copy"), lp); + menus_set_sensitive (_("/Edit/Paste"), lp); + menus_set_sensitive (_("/Edit/Paste Into"), lp); + menus_set_sensitive (_("/Edit/Clear"), lp); + menus_set_sensitive (_("/Edit/Fill"), lp); + menus_set_sensitive (_("/Edit/Stroke"), lp); + menus_set_sensitive (_("/Edit/Cut Named"), lp); + menus_set_sensitive (_("/Edit/Copy Named"), lp); + menus_set_sensitive (_("/Edit/Paste Named"), lp); + menus_set_sensitive (_("/Image/Colors"), lp); + menus_set_sensitive (_("/Image/Channel Ops/Offset"), lp); + menus_set_sensitive (_("/Image/Histogram"), lp); + menus_set_sensitive (_("/Filters"), lp); /* save selection to channel */ - menus_set_sensitive ("/Select/Save To Channel", !fs); + menus_set_sensitive (_("/Select/Save To Channel"), !fs); - menus_set_state ("/View/Toggle Rulers", GTK_WIDGET_VISIBLE (gdisp->origin) ? 1 : 0); - menus_set_state ("/View/Toggle Guides", gdisp->draw_guides); - menus_set_state ("/View/Snap To Guides", gdisp->snap_to_guides); - menus_set_state ("/View/Toggle Statusbar", GTK_WIDGET_VISIBLE (gdisp->statusarea) ? 1 : 0); + menus_set_state (_("/View/Toggle Rulers"), GTK_WIDGET_VISIBLE (gdisp->origin) ? 1 : 0); + menus_set_state (_("/View/Toggle Guides"), gdisp->draw_guides); + menus_set_state (_("/View/Snap To Guides"), gdisp->snap_to_guides); + menus_set_state (_("/View/Toggle Statusbar"), GTK_WIDGET_VISIBLE (gdisp->statusarea) ? 1 : 0); plug_in_set_menu_sensitivity (type); } @@ -1752,7 +1754,7 @@ gdisplays_flush_whenever (gboolean now) /* this prevents multiple recursive calls to this procedure */ if (flushing == TRUE) { - g_warning ("gdisplays_flush() called recursively."); + g_warning (_("gdisplays_flush() called recursively.")); return; } diff --git a/app/crop.c b/app/crop.c index 25b2259729..6b9dd888cd 100644 --- a/app/crop.c +++ b/app/crop.c @@ -29,6 +29,8 @@ #include "info_dialog.h" #include "undo.h" +#include "libgimp/gimpintl.h" + #define STATUSBAR_SIZE 128 typedef struct _crop Crop; @@ -351,7 +353,7 @@ crop_motion (Tool *tool, crop->function == RESIZING_LEFT || crop->function == RESIZING_RIGHT) { gtk_statusbar_pop (GTK_STATUSBAR (gdisp->statusbar), crop->context_id); - g_snprintf (size, STATUSBAR_SIZE, "Crop: %d x %d", + g_snprintf (size, STATUSBAR_SIZE, _("Crop: %d x %d"), (crop->tx2 - crop->tx1), (crop->ty2 - crop->ty1)); gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), crop->context_id, size); } @@ -521,7 +523,7 @@ tools_new_crop () Crop * private; if (! crop_options) - crop_options = tools_register_no_options (CROP, "Crop Tool Options"); + crop_options = tools_register_no_options (CROP, _("Crop Tool Options")); tool = (Tool *) g_malloc (sizeof (Tool)); private = (Crop *) g_malloc (sizeof (Crop)); @@ -701,7 +703,7 @@ crop_start (Tool *tool, /* initialize the statusbar display */ crop->context_id = gtk_statusbar_get_context_id (GTK_STATUSBAR (gdisp->statusbar), "crop"); - gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), crop->context_id, "Crop: 0 x 0"); + gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), crop->context_id, _("Crop: 0 x 0")); draw_core_start (crop->core, gdisp->canvas->window, tool); } @@ -713,22 +715,22 @@ crop_start (Tool *tool, static ActionAreaItem action_items[3] = { - { "Crop", crop_ok_callback, NULL, NULL }, - { "Selection", crop_selection_callback, NULL, NULL }, - { "Close", crop_close_callback, NULL, NULL }, + { N_("Crop"), crop_ok_callback, NULL, NULL }, + { N_("Selection"), crop_selection_callback, NULL, NULL }, + { N_("Close"), crop_close_callback, NULL, NULL }, }; static void crop_info_create (Tool *tool) { /* create the info dialog */ - crop_info = info_dialog_new ("Crop Information"); + crop_info = info_dialog_new (_("Crop Information")); /* add the information fields */ - info_dialog_add_field (crop_info, "X Origin: ", orig_x_buf, crop_orig_x_changed, tool); - info_dialog_add_field (crop_info, "Y Origin: ", orig_y_buf, crop_orig_y_changed, tool); - info_dialog_add_field (crop_info, "Width: ", width_buf, crop_width_changed, tool); - info_dialog_add_field (crop_info, "Height: ", height_buf, crop_height_changed, tool); + info_dialog_add_field (crop_info, _("X Origin: "), orig_x_buf, crop_orig_x_changed, tool); + info_dialog_add_field (crop_info, _("Y Origin: "), orig_y_buf, crop_orig_y_changed, tool); + info_dialog_add_field (crop_info, _("Width: "), width_buf, crop_width_changed, tool); + info_dialog_add_field (crop_info, _("Height: "), height_buf, crop_height_changed, tool); /* Create the action area */ build_action_area (GTK_DIALOG (crop_info->shell), action_items, 3, 0); @@ -941,31 +943,31 @@ ProcArg crop_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_INT32, "new_width", - "new image width: (0 < new_width <= width)" + N_("new image width: (0 < new_width <= width)") }, { PDB_INT32, "new_height", - "new image height: (0 < new_height <= height)" + N_("new image height: (0 < new_height <= height)") }, { PDB_INT32, "offx", - "x offset: (0 <= offx <= (width - new_width))" + N_("x offset: (0 <= offx <= (width - new_width))") }, { PDB_INT32, "offy", - "y offset: (0 <= offy <= (height - new_height))" + N_("y offset: (0 <= offy <= (height - new_height))") } }; ProcRecord crop_proc = { "gimp_crop", - "Crop the image to the specified extents.", - "This procedure crops the image so that it's new width and height are equal to the supplied parameters. Offsets are also provided which describe the position of the previous image's content. All channels and layers within the image are cropped to the new image extents; this includes the image selection mask. If any parameters are out of range, an error is returned.", + N_("Crop the image to the specified extents."), + N_("This procedure crops the image so that it's new width and height are equal to the supplied parameters. Offsets are also provided which describe the position of the previous image's content. All channels and layers within the image are cropped to the new image extents; this includes the image selection mask. If any parameters are out of range, an error is returned."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/curves.c b/app/curves.c index 15512ec6f6..92ef076bbf 100644 --- a/app/curves.c +++ b/app/curves.c @@ -31,6 +31,8 @@ #include "interface.h" #include "curves.h" +#include "libgimp/gimpintl.h" + #define ROUND(x) ((int) ((x) + 0.5)) #define GRAPH 0x1 @@ -274,7 +276,7 @@ tools_new_curves () /* The tool options */ if (!curves_options) - curves_options = tools_register_no_options (CURVES, "Curves Options"); + curves_options = tools_register_no_options (CURVES, _("Curves Options")); tool = (Tool *) g_malloc (sizeof (Tool)); private = (Curves *) g_malloc (sizeof (Curves)); @@ -314,25 +316,25 @@ tools_free_curves (Tool *tool) /* the action area structure */ static ActionAreaItem action_items[] = { - { "Reset", curves_reset_callback, NULL, NULL }, - { "OK", curves_ok_callback, NULL, NULL }, - { "Cancel", curves_cancel_callback, NULL, NULL } + { N_("Reset"), curves_reset_callback, NULL, NULL }, + { N_("OK"), curves_ok_callback, NULL, NULL }, + { N_("Cancel"), curves_cancel_callback, NULL, NULL } }; static MenuItem channel_items[] = { - { "Value", 0, 0, curves_value_callback, NULL, NULL, NULL }, - { "Red", 0, 0, curves_red_callback, NULL, NULL, NULL }, - { "Green", 0, 0, curves_green_callback, NULL, NULL, NULL }, - { "Blue", 0, 0, curves_blue_callback, NULL, NULL, NULL }, - { "Alpha", 0, 0, curves_alpha_callback, NULL, NULL, NULL }, + { N_("Value"), 0, 0, curves_value_callback, NULL, NULL, NULL }, + { N_("Red"), 0, 0, curves_red_callback, NULL, NULL, NULL }, + { N_("Green"), 0, 0, curves_green_callback, NULL, NULL, NULL }, + { N_("Blue"), 0, 0, curves_blue_callback, NULL, NULL, NULL }, + { N_("Alpha"), 0, 0, curves_alpha_callback, NULL, NULL, NULL }, { NULL, 0, 0, NULL, NULL, NULL, NULL } }; static MenuItem curve_type_items[] = { - { "Smooth", 0, 0, curves_smooth_callback, NULL, NULL, NULL }, - { "Free", 0, 0, curves_free_callback, NULL, NULL, NULL }, + { N_("Smooth"), 0, 0, curves_smooth_callback, NULL, NULL, NULL }, + { N_("Free"), 0, 0, curves_free_callback, NULL, NULL, NULL }, { NULL, 0, 0, NULL, NULL, NULL, NULL } }; @@ -343,7 +345,7 @@ curves_initialize (GDisplay *gdisp) if (drawable_indexed (gimage_active_drawable (gdisp->gimage))) { - g_message ("Curves for indexed drawables cannot be adjusted."); + g_message (_("Curves for indexed drawables cannot be adjusted.")); return; } @@ -453,7 +455,7 @@ curves_new_dialog () /* The shell and main vbox */ cd->shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (cd->shell), "curves", "Gimp"); - gtk_window_set_title (GTK_WINDOW (cd->shell), "Curves"); + gtk_window_set_title (GTK_WINDOW (cd->shell), _("Curves")); gtk_signal_connect (GTK_OBJECT (cd->shell), "delete_event", GTK_SIGNAL_FUNC (curves_delete_callback), @@ -467,7 +469,7 @@ curves_new_dialog () channel_hbox = gtk_hbox_new (FALSE, 2); gtk_box_pack_start (GTK_BOX (vbox), channel_hbox, FALSE, FALSE, 0); - label = gtk_label_new ("Modify Curves for Channel: "); + label = gtk_label_new (_("Modify Curves for Channel: ")); gtk_box_pack_start (GTK_BOX (channel_hbox), label, FALSE, FALSE, 0); menu = build_menu (channel_items, NULL); @@ -541,7 +543,7 @@ curves_new_dialog () gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); /* The option menu for selecting the drawing method */ - label = gtk_label_new ("Curve Type: "); + label = gtk_label_new (_("Curve Type: ")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); menu = build_menu (curve_type_items, NULL); @@ -554,7 +556,7 @@ curves_new_dialog () gtk_option_menu_set_menu (GTK_OPTION_MENU (option_menu), menu); /* The preview toggle */ - toggle = gtk_check_button_new_with_label ("Preview"); + toggle = gtk_check_button_new_with_label (_("Preview")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), cd->preview); gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -814,7 +816,7 @@ static void curves_preview (CurvesDialog *cd) { if (!cd->image_map) - g_message ("curves_preview(): No image map"); + g_message (_("curves_preview(): No image map")); active_tool->preserve = TRUE; /* Going to dirty the display... */ @@ -1298,31 +1300,31 @@ ProcArg curves_spline_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_INT32, "channel", - "the channel to modify: { VALUE (0), RED (1), GREEN (2), BLUE (3), ALPHA (4), GRAY (0) }" + N_("the channel to modify: { VALUE (0), RED (1), GREEN (2), BLUE (3), ALPHA (4), GRAY (0) }") }, { PDB_INT32, "num_points", - "the number of values in the control point array ( 3 < num_points <= 32 )" + N_("the number of values in the control point array ( 3 < num_points <= 32 )") }, { PDB_INT8ARRAY, "control_pts", - "the spline control points: { cp1.x, cp1.y, cp2.x, cp2.y, ... }" + N_("the spline control points: { cp1.x, cp1.y, cp2.x, cp2.y, ... }") } }; ProcRecord curves_spline_proc = { "gimp_curves_spline", - "Modifies the intensity curve(s) for specified drawable", - "Modifies the intensity mapping for one channel in the specified drawable. The drawable must be either grayscale or RGB, and the channel can be either an intensity component, or the value. The 'control_pts' parameter is an array of integers which define a set of control points which describe a Catmull Rom spline which yields the final intensity curve. Use the 'gimp_curves_explicit' function to explicitly modify intensity levels.", + N_("Modifies the intensity curve(s) for specified drawable"), + N_("Modifies the intensity mapping for one channel in the specified drawable. The drawable must be either grayscale or RGB, and the channel can be either an intensity component, or the value. The 'control_pts' parameter is an array of integers which define a set of control points which describe a Catmull Rom spline which yields the final intensity curve. Use the 'gimp_curves_explicit' function to explicitly modify intensity levels."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -1456,31 +1458,31 @@ ProcArg curves_explicit_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_INT32, "channel", - "the channel to modify: { VALUE (0), RED (1), GREEN (2), BLUE (3), GRAY (0) }" + N_("the channel to modify: { VALUE (0), RED (1), GREEN (2), BLUE (3), GRAY (0) }") }, { PDB_INT32, "num_bytes", - "the number of bytes in the new curve (always 256)" + N_("the number of bytes in the new curve (always 256)") }, { PDB_INT8ARRAY, "curve", - "the explicit curve" + N_("the explicit curve") } }; ProcRecord curves_explicit_proc = { "gimp_curves_explicit", - "Modifies the intensity curve(s) for specified drawable", - "Modifies the intensity mapping for one channel in the specified drawable. The drawable must be either grayscale or RGB, and the channel can be either an intensity component, or the value. The 'curve' parameter is an array of bytes which explicitly defines how each pixel value in the drawable will be modified. Use the 'gimp_curves_spline' function to modify intensity levels with Catmull Rom splines.", + N_("Modifies the intensity curve(s) for specified drawable"), + N_("Modifies the intensity mapping for one channel in the specified drawable. The drawable must be either grayscale or RGB, and the channel can be either an intensity component, or the value. The 'curve' parameter is an array of bytes which explicitly defines how each pixel value in the drawable will be modified. Use the 'gimp_curves_spline' function to modify intensity levels with Catmull Rom splines."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/desaturate.c b/app/desaturate.c index 14540e8ca5..224c67ddcc 100644 --- a/app/desaturate.c +++ b/app/desaturate.c @@ -25,6 +25,8 @@ #include "paint_funcs.h" #include "gimage.h" +#include "libgimp/gimpintl.h" + static void desaturate (GimpDrawable *); static Argument * desaturate_invoker (Argument *); @@ -41,7 +43,7 @@ image_desaturate (gimage_ptr) if (! drawable_color (drawable)) { - g_message ("Desaturate operates only on RGB color drawables."); + g_message (_("Desaturate operates only on RGB color drawables.")); return; } desaturate (drawable); @@ -116,19 +118,19 @@ ProcArg desaturate_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") } }; ProcRecord desaturate_proc = { "gimp_desaturate", - "Desaturate the contents of the specified drawable", - "This procedure desaturates the contents of the specified drawable. This procedure only works on drawables of type RGB color.", + N_("Desaturate the contents of the specified drawable"), + N_("This procedure desaturates the contents of the specified drawable. This procedure only works on drawables of type RGB color."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/devices.c b/app/devices.c index bf2daef09c..f1c1479b97 100644 --- a/app/devices.c +++ b/app/devices.c @@ -30,6 +30,8 @@ #include "session.h" #include "tools.h" +#include "libgimp/gimpintl.h" + #define CELL_SIZE 20 /* The size of the preview cells */ #define PREVIEW_EVENT_MASK GDK_EXPOSURE_MASK | \ GDK_BUTTON_PRESS_MASK | \ @@ -113,8 +115,8 @@ int current_device = GDK_CORE_POINTER; /* the action area structure */ static ActionAreaItem action_items[] = { - { "Close", devices_close_callback, NULL, NULL }, - { "Save", (ActionCallback)devices_write_rc, NULL, NULL }, + { N_("Close"), devices_close_callback, NULL, NULL }, + { N_("Save"), (ActionCallback)devices_write_rc, NULL, NULL }, }; void @@ -351,7 +353,7 @@ devices_rc_update (gchar *name, DeviceValues values, } else { - g_warning ("devices_rc_update called multiple times for not present device\n"); + g_warning (_("devices_rc_update called multiple times for not present device\n")); return; } } @@ -650,7 +652,7 @@ create_device_status (void) deviceD = g_new (DeviceInfoDialog, 1); deviceD->shell = gtk_dialog_new (); - gtk_window_set_title (GTK_WINDOW(deviceD->shell), "Device Status"); + gtk_window_set_title (GTK_WINDOW(deviceD->shell), _("Device Status")); gtk_window_set_policy (GTK_WINDOW (deviceD->shell), FALSE, FALSE, TRUE); session_set_window_geometry (deviceD->shell, &device_status_session_info, TRUE); @@ -1022,7 +1024,7 @@ device_preview_events (GtkWidget *widget, if(tmp_list == NULL) { - g_message("Failed to find device_info\n"); + g_message(_("Failed to find device_info\n")); break; /* Error no device info */ } diff --git a/app/dialogs/about-dialog.c b/app/dialogs/about-dialog.c index 2d7b0482a7..0defdb95a8 100644 --- a/app/dialogs/about-dialog.c +++ b/app/dialogs/about-dialog.c @@ -203,7 +203,7 @@ about_dialog_create (int timeout) gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, TRUE, 0); gtk_widget_show (label); - label = gtk_label_new (_("Spencer Kimball and Peter Mattis")); + label = gtk_label_new (_("Spencer Kimball & Peter Mattis")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, TRUE, 0); gtk_widget_show (label); diff --git a/app/dialogs/image-new-dialog.c b/app/dialogs/image-new-dialog.c index b964439ed3..22427cf489 100644 --- a/app/dialogs/image-new-dialog.c +++ b/app/dialogs/image-new-dialog.c @@ -14,6 +14,8 @@ #include "tile_manager_pvt.h" #include "gdisplay.h" +#include "libgimp/gimpintl.h" + typedef struct { GtkWidget *dlg; GtkWidget *height_spinbutton; @@ -117,7 +119,7 @@ file_new_ok_callback (GtkWidget *widget, /* Make the background (or first) layer */ layer = layer_new (gimage, gimage->width, gimage->height, - type, "Background", OPAQUE_OPACITY, NORMAL); + type, _("Background"), OPAQUE_OPACITY, NORMAL); if (layer) { /* add the new layer to the gimage */ @@ -472,7 +474,7 @@ file_new_cmd_callback (GtkWidget *widget, vals->dlg = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (vals->dlg), "new_image", "Gimp"); - gtk_window_set_title (GTK_WINDOW (vals->dlg), "New Image"); + gtk_window_set_title (GTK_WINDOW (vals->dlg), _("New Image")); gtk_window_position (GTK_WINDOW (vals->dlg), GTK_WIN_POS_MOUSE); /* handle the wm close signal */ @@ -482,7 +484,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_container_border_width (GTK_CONTAINER (GTK_DIALOG (vals->dlg)->action_area), 2); - button = gtk_button_new_with_label ("OK"); + button = gtk_button_new_with_label (_("OK")); GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT); gtk_signal_connect (GTK_OBJECT (button), "clicked", (GtkSignalFunc) file_new_ok_callback, @@ -492,7 +494,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_widget_grab_default (button); gtk_widget_show (button); - button = gtk_button_new_with_label ("Cancel"); + button = gtk_button_new_with_label (_("Cancel")); GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT); gtk_signal_connect (GTK_OBJECT (button), "clicked", (GtkSignalFunc) file_new_cancel_callback, @@ -515,13 +517,13 @@ file_new_cmd_callback (GtkWidget *widget, gtk_widget_show (table); /* label for top of table, Width */ - label = gtk_label_new ("Width"); + label = gtk_label_new (_("Width")); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1, GTK_FILL, GTK_FILL, 0, 0); gtk_widget_show (label); /* Label for top of table, Height */ - label = gtk_label_new ("Height"); + label = gtk_label_new (_("Height")); gtk_table_attach (GTK_TABLE (table), label, 1, 2, 0, 1, GTK_FILL, GTK_FILL, 0, 0); gtk_widget_show (label); @@ -584,7 +586,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_widget_show (vals->height_units_spinbutton); /* Label for right hand side of pixel size boxes */ - label = gtk_label_new ("Pixels"); + label = gtk_label_new (_("Pixels")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label , 2, 3, 1, 2, GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0); @@ -592,12 +594,12 @@ file_new_cmd_callback (GtkWidget *widget, /* menu and menu items for the units pop-up menu for the units entries */ menu = gtk_menu_new(); - menuitem = gtk_menu_item_new_with_label ("inches"); + menuitem = gtk_menu_item_new_with_label (_("inches")); gtk_menu_append (GTK_MENU (menu), menuitem); gtk_signal_connect (GTK_OBJECT (menuitem), "activate", (GtkSignalFunc) file_new_units_inch_menu_callback, vals); gtk_widget_show(menuitem); - menuitem = gtk_menu_item_new_with_label ("cm"); + menuitem = gtk_menu_item_new_with_label (_("cm")); gtk_menu_append (GTK_MENU (menu), menuitem); gtk_signal_connect (GTK_OBJECT (menuitem), "activate", (GtkSignalFunc) file_new_units_cm_menu_callback, vals); @@ -610,7 +612,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_widget_show(optionmenu); /* resolution frame */ - frame = gtk_frame_new ("Resolution"); + frame = gtk_frame_new (_("Resolution")); gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE, 0); gtk_widget_show (frame); @@ -633,7 +635,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_widget_show (vals->resolution_spinbutton); /* resolution label */ - label =gtk_label_new (" pixels per "); + label =gtk_label_new (_(" pixels per ")); gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, TRUE, 0); gtk_widget_show (label); @@ -645,12 +647,12 @@ file_new_cmd_callback (GtkWidget *widget, */ /* probabaly should be more general here */ - menuitem = gtk_menu_item_new_with_label ("inch"); + menuitem = gtk_menu_item_new_with_label (_("inch")); gtk_menu_append (GTK_MENU (menu), menuitem); gtk_signal_connect (GTK_OBJECT (menuitem), "activate", (GtkSignalFunc) file_new_res_units_inch_callback, vals); gtk_widget_show(menuitem); - menuitem = gtk_menu_item_new_with_label ("cm"); + menuitem = gtk_menu_item_new_with_label (_("cm")); gtk_signal_connect (GTK_OBJECT (menuitem), "activate", (GtkSignalFunc) file_new_res_units_cm_callback, vals); gtk_menu_append (GTK_MENU (menu), menuitem); @@ -669,7 +671,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_widget_show(hbox); /* frame for Image Type */ - frame = gtk_frame_new ("Image Type"); + frame = gtk_frame_new (_("Image Type")); gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0); gtk_widget_show (frame); @@ -679,7 +681,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_container_add (GTK_CONTAINER (frame), radio_box); gtk_widget_show (radio_box); - button = gtk_radio_button_new_with_label (NULL, "RGB"); + button = gtk_radio_button_new_with_label (NULL, _("RGB")); group = gtk_radio_button_group (GTK_RADIO_BUTTON (button)); gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0); gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) RGB); @@ -690,7 +692,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE); gtk_widget_show (button); - button = gtk_radio_button_new_with_label (group, "Grayscale"); + button = gtk_radio_button_new_with_label (group, _("Grayscale")); group = gtk_radio_button_group (GTK_RADIO_BUTTON (button)); gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0); gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) GRAY); @@ -703,7 +705,7 @@ file_new_cmd_callback (GtkWidget *widget, /* frame for fill type */ - frame = gtk_frame_new ("Fill Type"); + frame = gtk_frame_new (_("Fill Type")); gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0); gtk_widget_show (frame); @@ -712,7 +714,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_container_add (GTK_CONTAINER (frame), radio_box); gtk_widget_show (radio_box); - button = gtk_radio_button_new_with_label (NULL, "Foreground"); + button = gtk_radio_button_new_with_label (NULL, _("Foreground")); group = gtk_radio_button_group (GTK_RADIO_BUTTON (button)); gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0); gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) FOREGROUND_FILL); @@ -723,7 +725,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE); gtk_widget_show (button); - button = gtk_radio_button_new_with_label (group, "Background"); + button = gtk_radio_button_new_with_label (group, _("Background")); group = gtk_radio_button_group (GTK_RADIO_BUTTON (button)); gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0); gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) BACKGROUND_FILL); @@ -734,7 +736,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE); gtk_widget_show (button); - button = gtk_radio_button_new_with_label (group, "White"); + button = gtk_radio_button_new_with_label (group, _("White")); group = gtk_radio_button_group (GTK_RADIO_BUTTON (button)); gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0); gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) WHITE_FILL); @@ -745,7 +747,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE); gtk_widget_show (button); - button = gtk_radio_button_new_with_label (group, "Transparent"); + button = gtk_radio_button_new_with_label (group, _("Transparent")); group = gtk_radio_button_group (GTK_RADIO_BUTTON (button)); gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0); gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) TRANSPARENT_FILL); diff --git a/app/dialogs/preferences-dialog.c b/app/dialogs/preferences-dialog.c index ac1430f6fb..ceec12c061 100644 --- a/app/dialogs/preferences-dialog.c +++ b/app/dialogs/preferences-dialog.c @@ -48,6 +48,7 @@ #include "tools.h" #include "undo.h" +#include "libgimp/gimpintl.h" typedef struct { @@ -205,25 +206,25 @@ file_prefs_ok_callback (GtkWidget *widget, if (levels_of_undo < 0) { - g_message ("Error: Levels of undo must be zero or greater."); + g_message (_("Error: Levels of undo must be zero or greater.")); levels_of_undo = old_levels_of_undo; return; } if (marching_speed < 50) { - g_message ("Error: Marching speed must be 50 or greater."); + g_message (_("Error: Marching speed must be 50 or greater.")); marching_speed = old_marching_speed; return; } if (default_width < 1) { - g_message ("Error: Default width must be one or greater."); + g_message (_("Error: Default width must be one or greater.")); default_width = old_default_width; return; } if (default_height < 1) { - g_message ("Error: Default height must be one or greater."); + g_message (_("Error: Default height must be one or greater.")); default_height = old_default_height; return; } @@ -430,7 +431,7 @@ file_prefs_save_callback (GtkWidget *widget, gradient_path = save_gradient_path; if (restart_notification) - g_message ("You will need to restart GIMP for these changes to take effect."); + g_message (_("You will need to restart GIMP for these changes to take effect.")); g_list_free (update); g_list_free (remove); @@ -644,18 +645,18 @@ file_pref_cmd_callback (GtkWidget *widget, GSList *group; char *transparencies[] = { - "Light Checks", - "Mid-Tone Checks", - "Dark Checks", - "White Only", - "Gray Only", - "Black Only", + N_("Light Checks"), + N_("Mid-Tone Checks"), + N_("Dark Checks"), + N_("White Only"), + N_("Gray Only"), + N_("Black Only"), }; char *checks[] = { - "Small Checks", - "Medium Checks", - "Large Checks", + N_("Small Checks"), + N_("Medium Checks"), + N_("Large Checks"), }; int transparency_vals[] = { @@ -677,32 +678,32 @@ file_pref_cmd_callback (GtkWidget *widget, int unit; } mem_size_units[] = { - {"Bytes", 1}, - {"KiloBytes", 1024}, - {"MegaBytes", (1024*1024)} + {N_("Bytes"), 1}, + {N_("KiloBytes"), 1024}, + {N_("MegaBytes"), (1024*1024)} }; struct { char *label; char **mpath; } dirs[] = { - {"Temp dir:", &edit_temp_path}, - {"Swap dir:", &edit_swap_path}, - {"Brushes dir:", &edit_brush_path}, - {"Gradients dir:", &edit_gradient_path}, - {"Patterns dir:", &edit_pattern_path}, - {"Palette dir:", &edit_palette_path}, - {"Plug-in dir:", &edit_plug_in_path} + {N_("Temp dir:"), &edit_temp_path}, + {N_("Swap dir:"), &edit_swap_path}, + {N_("Brushes dir:"), &edit_brush_path}, + {N_("Gradients dir:"), &edit_gradient_path}, + {N_("Patterns dir:"), &edit_pattern_path}, + {N_("Palette dir:"), &edit_palette_path}, + {N_("Plug-in dir:"), &edit_plug_in_path} }; struct { char *label; int size; } preview_sizes[] = { - {"None",0}, - {"Small",32}, - {"Medium",64}, - {"Large",128} + {N_("None"),0}, + {N_("Small"),32}, + {N_("Medium"),64}, + {N_("Large"),128} }; int ntransparencies = sizeof (transparencies) / sizeof (transparencies[0]); int nchecks = sizeof (checks) / sizeof (checks[0]); @@ -772,7 +773,7 @@ file_pref_cmd_callback (GtkWidget *widget, prefs_dlg = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (prefs_dlg), "preferences", "Gimp"); - gtk_window_set_title (GTK_WINDOW (prefs_dlg), "Preferences"); + gtk_window_set_title (GTK_WINDOW (prefs_dlg), _("Preferences")); /* handle the wm close signal */ gtk_signal_connect (GTK_OBJECT (prefs_dlg), "delete_event", @@ -782,7 +783,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_container_border_width (GTK_CONTAINER (GTK_DIALOG (prefs_dlg)->action_area), 2); /* Action area */ - button = gtk_button_new_with_label ("OK"); + button = gtk_button_new_with_label (_("OK")); GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT); gtk_signal_connect (GTK_OBJECT (button), "clicked", (GtkSignalFunc) file_prefs_ok_callback, @@ -792,7 +793,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_widget_grab_default (button); gtk_widget_show (button); - button = gtk_button_new_with_label ("Save"); + button = gtk_button_new_with_label (_("Save")); GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT); gtk_signal_connect (GTK_OBJECT (button), "clicked", (GtkSignalFunc) file_prefs_save_callback, @@ -802,7 +803,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_widget_grab_default (button); gtk_widget_show (button); - button = gtk_button_new_with_label ("Cancel"); + button = gtk_button_new_with_label (_("Cancel")); GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT); gtk_signal_connect (GTK_OBJECT (button), "clicked", (GtkSignalFunc) file_prefs_cancel_callback, @@ -816,7 +817,7 @@ file_pref_cmd_callback (GtkWidget *widget, notebook, TRUE, TRUE, 0); /* Display page */ - out_frame = gtk_frame_new ("Display settings"); + out_frame = gtk_frame_new (_("Display settings")); gtk_container_border_width (GTK_CONTAINER (out_frame), 10); gtk_widget_show (out_frame); @@ -829,7 +830,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0); gtk_widget_show (hbox); - frame = gtk_frame_new ("Default image size"); + frame = gtk_frame_new (_("Default image size")); gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0); gtk_widget_show (frame); @@ -844,13 +845,13 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_box_pack_start (GTK_BOX (abox), table, TRUE, TRUE, 0); gtk_widget_show (table); - label = gtk_label_new ("Width:"); + label = gtk_label_new (_("Width:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1, GTK_FILL, GTK_FILL, 0, 0); gtk_widget_show (label); - label = gtk_label_new ("Height:"); + label = gtk_label_new (_("Height:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2, GTK_FILL, GTK_FILL, 0, 0); @@ -881,7 +882,7 @@ file_pref_cmd_callback (GtkWidget *widget, &default_height); gtk_widget_show (spinbutton); - frame = gtk_frame_new ("Default image type"); + frame = gtk_frame_new (_("Default image type")); gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0); gtk_widget_show (frame); @@ -890,7 +891,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_container_add (GTK_CONTAINER (frame), radio_box); gtk_widget_show (radio_box); - button = gtk_radio_button_new_with_label (NULL, "RGB"); + button = gtk_radio_button_new_with_label (NULL, _("RGB")); group = gtk_radio_button_group (GTK_RADIO_BUTTON (button)); gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0); gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) RGB); @@ -900,7 +901,7 @@ file_pref_cmd_callback (GtkWidget *widget, (GtkSignalFunc) file_prefs_toggle_callback, &default_type); gtk_widget_show (button); - button = gtk_radio_button_new_with_label (group, "Grayscale"); + button = gtk_radio_button_new_with_label (group, _("Grayscale")); group = gtk_radio_button_group (GTK_RADIO_BUTTON (button)); gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0); gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) GRAY); @@ -914,7 +915,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0); gtk_widget_show (hbox); - label = gtk_label_new ("Preview size:"); + label = gtk_label_new (_("Preview size:")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -936,7 +937,7 @@ file_pref_cmd_callback (GtkWidget *widget, if (preview_size==preview_sizes[i].size) gtk_option_menu_set_history(GTK_OPTION_MENU (optionmenu),i); - button = gtk_check_button_new_with_label("Cubic interpolation"); + button = gtk_check_button_new_with_label(_("Cubic interpolation")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), cubic_interpolation); gtk_box_pack_start (GTK_BOX (vbox), button, TRUE, TRUE, 0); @@ -949,7 +950,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0); gtk_widget_show (hbox); - frame = gtk_frame_new ("Transparency Type"); + frame = gtk_frame_new (_("Transparency Type")); gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0); gtk_widget_show (frame); @@ -973,7 +974,7 @@ file_pref_cmd_callback (GtkWidget *widget, &transparency_type); gtk_widget_show (button); } - frame = gtk_frame_new ("Check Size"); + frame = gtk_frame_new (_("Check Size")); gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0); gtk_widget_show (frame); @@ -998,11 +999,11 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_widget_show (button); } - label = gtk_label_new ("Display"); + label = gtk_label_new (_("Display")); gtk_notebook_append_page (GTK_NOTEBOOK(notebook), out_frame, label); /* Interface */ - out_frame = gtk_frame_new ("Interface settings"); + out_frame = gtk_frame_new (_("Interface settings")); gtk_container_border_width (GTK_CONTAINER (out_frame), 10); gtk_widget_show (out_frame); @@ -1011,7 +1012,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_container_add (GTK_CONTAINER (out_frame), vbox); gtk_widget_show (vbox); - button = gtk_check_button_new_with_label("Resize window on zoom"); + button = gtk_check_button_new_with_label(_("Resize window on zoom")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), allow_resize_windows); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); @@ -1020,7 +1021,7 @@ file_pref_cmd_callback (GtkWidget *widget, &allow_resize_windows); gtk_widget_show (button); - button = gtk_check_button_new_with_label("Perfect-but-slow pointer tracking"); + button = gtk_check_button_new_with_label(_("Perfect-but-slow pointer tracking")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), perfectmouse); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); @@ -1032,7 +1033,7 @@ file_pref_cmd_callback (GtkWidget *widget, /* Don't show the Auto-save button until we really have auto-saving in the gimp. - button = gtk_check_button_new_with_label("Auto save"); + button = gtk_check_button_new_with_label(_("Auto save")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), auto_save); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); @@ -1042,7 +1043,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_widget_show (button); */ - button = gtk_check_button_new_with_label("Disable cursor updating"); + button = gtk_check_button_new_with_label(_("Disable cursor updating")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), no_cursor_updating); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); @@ -1051,7 +1052,7 @@ file_pref_cmd_callback (GtkWidget *widget, &no_cursor_updating); gtk_widget_show (button); - button = gtk_check_button_new_with_label("Show tool tips"); + button = gtk_check_button_new_with_label(_("Show tool tips")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), show_tool_tips); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); @@ -1060,7 +1061,7 @@ file_pref_cmd_callback (GtkWidget *widget, &show_tool_tips); gtk_widget_show (button); - button = gtk_check_button_new_with_label("Show rulers"); + button = gtk_check_button_new_with_label(_("Show rulers")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), show_rulers); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); @@ -1069,7 +1070,7 @@ file_pref_cmd_callback (GtkWidget *widget, &show_rulers); gtk_widget_show (button); - button = gtk_check_button_new_with_label("Show statusbar"); + button = gtk_check_button_new_with_label(_("Show statusbar")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), show_statusbar); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); @@ -1082,7 +1083,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_widget_show (hbox); - label = gtk_label_new ("Levels of undo:"); + label = gtk_label_new (_("Levels of undo:")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -1102,7 +1103,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_widget_show (hbox); - label = gtk_label_new ("Marching ants speed:"); + label = gtk_label_new (_("Marching ants speed:")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -1122,7 +1123,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_widget_show (hbox); - label = gtk_label_new ("Recent Documents list size:"); + label = gtk_label_new (_("Recent Documents list size:")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -1138,11 +1139,11 @@ file_pref_cmd_callback (GtkWidget *widget, &edit_last_opened_size); gtk_widget_show (spinbutton); - label = gtk_label_new ("Interface"); + label = gtk_label_new (_("Interface")); gtk_notebook_append_page (GTK_NOTEBOOK(notebook), out_frame, label); /* Environment */ - out_frame = gtk_frame_new ("Environment settings"); + out_frame = gtk_frame_new (_("Environment settings")); gtk_container_border_width (GTK_CONTAINER (out_frame), 10); gtk_widget_set_usize (out_frame, 320, 200); gtk_widget_show (out_frame); @@ -1152,7 +1153,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_container_add (GTK_CONTAINER (out_frame), vbox); gtk_widget_show (vbox); - button = gtk_check_button_new_with_label("Conservative memory usage"); + button = gtk_check_button_new_with_label(_("Conservative memory usage")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), stingy_memory_use); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); @@ -1165,7 +1166,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_widget_show (hbox); - label = gtk_label_new ("Tile cache size:"); + label = gtk_label_new (_("Tile cache size:")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -1201,7 +1202,7 @@ file_pref_cmd_callback (GtkWidget *widget, if (mem_size_unit == mem_size_units[i].unit) gtk_option_menu_set_history(GTK_OPTION_MENU (optionmenu),i); - button = gtk_check_button_new_with_label("Install colormap (8-bit only)"); + button = gtk_check_button_new_with_label(_("Install colormap (8-bit only)")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), install_cmap); gtk_signal_connect (GTK_OBJECT (button), "toggled", @@ -1212,7 +1213,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_widget_set_sensitive (GTK_WIDGET(button), FALSE); gtk_widget_show (button); - button = gtk_check_button_new_with_label("Colormap cycling (8-bit only)"); + button = gtk_check_button_new_with_label(_("Colormap cycling (8-bit only)")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), cycled_marching_ants); gtk_signal_connect (GTK_OBJECT (button), "toggled", @@ -1223,11 +1224,11 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_widget_set_sensitive (GTK_WIDGET(button), FALSE); gtk_widget_show (button); - label = gtk_label_new ("Environment"); + label = gtk_label_new (_("Environment")); gtk_notebook_append_page (GTK_NOTEBOOK(notebook), out_frame, label); /* Session Management */ - out_frame = gtk_frame_new ("Session managment"); + out_frame = gtk_frame_new (_("Session managment")); gtk_container_border_width (GTK_CONTAINER (out_frame), 10); gtk_widget_set_usize (out_frame, 320, 200); gtk_widget_show (out_frame); @@ -1237,7 +1238,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_container_add (GTK_CONTAINER (out_frame), vbox); gtk_widget_show (vbox); - button = gtk_check_button_new_with_label ("Save window positions on exit"); + button = gtk_check_button_new_with_label (_("Save window positions on exit")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), save_session_info); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); @@ -1251,14 +1252,14 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_widget_show (hbox); - button = gtk_button_new_with_label ("Clear saved window positions"); + button = gtk_button_new_with_label (_("Clear saved window positions")); gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (button), "clicked", (GtkSignalFunc) file_prefs_clear_session_info_callback, NULL); gtk_widget_show (button); - button = gtk_check_button_new_with_label ("Always try to restore session"); + button = gtk_check_button_new_with_label (_("Always try to restore session")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), always_restore_session); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); @@ -1267,7 +1268,7 @@ file_pref_cmd_callback (GtkWidget *widget, &always_restore_session); gtk_widget_show (button); - button = gtk_check_button_new_with_label ("Save device status on exit"); + button = gtk_check_button_new_with_label (_("Save device status on exit")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), save_device_status); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); @@ -1276,13 +1277,13 @@ file_pref_cmd_callback (GtkWidget *widget, &save_device_status); gtk_widget_show (button); - label = gtk_label_new ("Session"); + label = gtk_label_new (_("Session")); gtk_notebook_append_page (GTK_NOTEBOOK(notebook), out_frame, label); gtk_widget_show (notebook); /* Directories */ - out_frame = gtk_frame_new ("Directories settings"); + out_frame = gtk_frame_new (_("Directories settings")); gtk_container_border_width (GTK_CONTAINER (out_frame), 10); gtk_widget_set_usize (out_frame, 320, 200); gtk_widget_show (out_frame); @@ -1317,7 +1318,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_widget_show (entry); } - label = gtk_label_new ("Directories"); + label = gtk_label_new (_("Directories")); gtk_notebook_append_page (GTK_NOTEBOOK(notebook), out_frame, label); gtk_widget_show (notebook); diff --git a/app/dialogs/resize-dialog.c b/app/dialogs/resize-dialog.c index 2efb92e187..02bb56beba 100644 --- a/app/dialogs/resize-dialog.c +++ b/app/dialogs/resize-dialog.c @@ -21,6 +21,8 @@ #include "appenv.h" #include "resize.h" +#include "libgimp/gimpintl.h" + #define EVENT_MASK GDK_EXPOSURE_MASK | GDK_BUTTON_PRESS_MASK #define DRAWING_AREA_SIZE 200 #define TEXT_WIDTH 35 @@ -101,11 +103,11 @@ resize_widget_new (ResizeType type, switch (type) { case ScaleWidget: - resize->resize_widget = gtk_frame_new ("Scale"); + resize->resize_widget = gtk_frame_new (_("Scale")); table = gtk_table_new (4, 2, TRUE); break; case ResizeWidget: - resize->resize_widget = gtk_frame_new ("Resize"); + resize->resize_widget = gtk_frame_new (_("Resize")); table = gtk_table_new (6, 2, TRUE); break; } @@ -121,7 +123,7 @@ resize_widget_new (ResizeType type, /* the width label and entry */ sprintf (size, "%d", width); - label = gtk_label_new ("New width:"); + label = gtk_label_new (_("New width:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1, GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2); @@ -138,7 +140,7 @@ resize_widget_new (ResizeType type, /* the height label and entry */ sprintf (size, "%d", height); - label = gtk_label_new ("New height:"); + label = gtk_label_new (_("New height:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2, GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2); @@ -155,7 +157,7 @@ resize_widget_new (ResizeType type, /* the x scale ratio label and entry */ sprintf (ratio_text, "%0.4f", resize->ratio_x); - label = gtk_label_new ("X ratio:"); + label = gtk_label_new (_("X ratio:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 2, 3, GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2); @@ -172,7 +174,7 @@ resize_widget_new (ResizeType type, /* the y scale ratio label and entry */ sprintf (ratio_text, "%0.4f", resize->ratio_y); - label = gtk_label_new ("Y ratio:"); + label = gtk_label_new (_("Y ratio:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 3, 4, GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2); @@ -191,7 +193,7 @@ resize_widget_new (ResizeType type, { /* the off_x label and entry */ sprintf (size, "%d", 0); - label = gtk_label_new ("X Offset:"); + label = gtk_label_new (_("Offset X:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 4, 5, GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2); @@ -208,7 +210,7 @@ resize_widget_new (ResizeType type, /* the off_y label and entry */ sprintf (size, "%d", 0); - label = gtk_label_new ("Y Offset:"); + label = gtk_label_new (_("Offset Y:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 5, 6, GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2); @@ -225,7 +227,7 @@ resize_widget_new (ResizeType type, } /* the constrain toggle button */ - constrain = gtk_check_button_new_with_label ("Constrain Ratio"); + constrain = gtk_check_button_new_with_label (_("Constrain Ratio")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (constrain), private->constrain); gtk_box_pack_start (GTK_BOX (vbox), constrain, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (constrain), "toggled", diff --git a/app/dialogs/tips-dialog.c b/app/dialogs/tips-dialog.c index 9b65acb6f7..34ac211b47 100644 --- a/app/dialogs/tips-dialog.c +++ b/app/dialogs/tips-dialog.c @@ -8,6 +8,8 @@ #include "interface.h" #include "wilber.h" +#include "libgimp/gimpintl.h" + #define TIPS_FILE_NAME "gimp_tips.txt" static int tips_dialog_hide (GtkWidget *widget, gpointer data); @@ -57,7 +59,7 @@ tips_dialog_create () { tips_dialog = gtk_window_new (GTK_WINDOW_DIALOG); gtk_window_set_wmclass (GTK_WINDOW (tips_dialog), "tip_of_the_day", "Gimp"); - gtk_window_set_title (GTK_WINDOW (tips_dialog), "GIMP Tip of the day"); + gtk_window_set_title (GTK_WINDOW (tips_dialog), _("GIMP Tip of the day")); gtk_window_position (GTK_WINDOW (tips_dialog), GTK_WIN_POS_CENTER); gtk_signal_connect (GTK_OBJECT (tips_dialog), "delete_event", GTK_SIGNAL_FUNC (tips_dialog_hide), NULL); @@ -102,27 +104,27 @@ tips_dialog_create () gtk_box_pack_start (GTK_BOX (hbox1), tips_label, TRUE, TRUE, 3); gtk_widget_show (tips_label); - button_close = gtk_button_new_with_label ("Close"); + button_close = gtk_button_new_with_label (_("Close")); gtk_signal_connect (GTK_OBJECT (button_close), "clicked", GTK_SIGNAL_FUNC (tips_dialog_hide), NULL); gtk_box_pack_end (GTK_BOX (hbox2), button_close, FALSE, TRUE, 0); gtk_widget_show (button_close); - button_next = gtk_button_new_with_label ("Next Tip"); + button_next = gtk_button_new_with_label (_("Next Tip")); gtk_signal_connect (GTK_OBJECT (button_next), "clicked", GTK_SIGNAL_FUNC (tips_show_next), (gpointer) "next"); gtk_box_pack_end (GTK_BOX (hbox2), button_next, FALSE, TRUE, 0); gtk_widget_show (button_next); - button_prev = gtk_button_new_with_label ("Prev. Tip"); + button_prev = gtk_button_new_with_label (_("Prev. Tip")); gtk_signal_connect (GTK_OBJECT (button_prev), "clicked", GTK_SIGNAL_FUNC (tips_show_next), (gpointer) "prev"); gtk_box_pack_end (GTK_BOX (hbox2), button_prev, FALSE, TRUE, 0); gtk_widget_show (button_prev); - button_check = gtk_check_button_new_with_label ("Show tip next time"); + button_check = gtk_check_button_new_with_label (_("Show tip next time")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button_check), show_tips); gtk_signal_connect (GTK_OBJECT (button_check), "toggled", @@ -220,9 +222,9 @@ read_tips_file (char *filename) fp = fopen (filename, "rb"); if (!fp) { - store_tip ("Your GIMP tips file appears to be missing!\n" + store_tip (_("Your GIMP tips file appears to be missing!\n" "There should be a file called " TIPS_FILE_NAME " in the\n" - "GIMP data directory. Please check your installation."); + "GIMP data directory. Please check your installation.")); return; } diff --git a/app/dialogs/user-install-dialog.c b/app/dialogs/user-install-dialog.c index 2453185622..8e7b1eba97 100644 --- a/app/dialogs/user-install-dialog.c +++ b/app/dialogs/user-install-dialog.c @@ -26,6 +26,7 @@ #include "interface.h" #include "gimprc.h" +#include "libgimp/gimpintl.h" static void install_run (InstallCallback); static void install_help (InstallCallback); @@ -48,7 +49,7 @@ install_verify (InstallCallback install_callback) filename = gimp_directory (); if ('\000' == filename[0]) { - g_message ("No home directory--skipping GIMP user installation."); + g_message (_("No home directory--skipping GIMP user installation.")); (* install_callback) (); } @@ -63,9 +64,9 @@ install_verify (InstallCallback install_callback) /* Otherwise, prepare for installation */ else if (no_interface) { - g_print ("The GIMP is not properly installed for the current user\n"); - g_print ("User installation was skipped because the '--nointerface' flag was encountered\n"); - g_print ("To perform user installation, run the GIMP without the '--nointerface' flag\n"); + g_print (_("The GIMP is not properly installed for the current user\n")); + g_print (_("User installation was skipped because the '--nointerface' flag was encountered\n")); + g_print (_("To perform user installation, run the GIMP without the '--nointerface' flag\n")); (* install_callback) (); } @@ -84,9 +85,9 @@ install_help (InstallCallback callback) { static ActionAreaItem action_items[] = { - { "Install", help_install_callback, NULL, NULL }, - { "Ignore", help_ignore_callback, NULL, NULL }, - { "Quit", help_quit_callback, NULL, NULL } + { N_("Install"), help_install_callback, NULL, NULL }, + { N_("Ignore"), help_ignore_callback, NULL, NULL }, + { N_("Quit"), help_quit_callback, NULL, NULL } }; GtkWidget *text; GtkWidget *table; @@ -101,7 +102,7 @@ install_help (InstallCallback callback) GTK_SIGNAL_FUNC (gtk_true), NULL); gtk_window_set_wmclass (GTK_WINDOW (help_widget), "gimp_installation", "Gimp"); - gtk_window_set_title (GTK_WINDOW (help_widget), "GIMP Installation"); + gtk_window_set_title (GTK_WINDOW (help_widget), _("GIMP Installation")); gtk_window_position (GTK_WINDOW (help_widget), GTK_WIN_POS_CENTER); vadj = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 0.0, 0.0, 0.0, 0.0)); @@ -137,188 +138,188 @@ install_help (InstallCallback callback) gtk_widget_realize (text); gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL, - "The GIMP - GNU Image Manipulation Program\n\n", -1); + _("The GIMP - GNU Image Manipulation Program\n\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "Copyright (C) 1995 Spencer Kimball and Peter Mattis\n", -1); + _("Copyright (C) 1995 Spencer Kimball and Peter Mattis\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, "\n", -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "This program is free software; you can redistribute it and/or modify\n", -1); + _("This program is free software; you can redistribute it and/or modify\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "it under the terms of the GNU General Public License as published by\n", -1); + _("it under the terms of the GNU General Public License as published by\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "the Free Software Foundation; either version 2 of the License, or\n", -1); + _("the Free Software Foundation; either version 2 of the License, or\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "(at your option) any later version.\n", -1); + _("(at your option) any later version.\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, "\n", -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "This program is distributed in the hope that it will be useful,\n", -1); + _("This program is distributed in the hope that it will be useful,\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "but WITHOUT ANY WARRANTY; without even the implied warranty of\n", -1); + _("but WITHOUT ANY WARRANTY; without even the implied warranty of\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n", -1); + _("MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "See the GNU General Public License for more details.\n", -1); + _("See the GNU General Public License for more details.\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, "\n", -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "You should have received a copy of the GNU General Public License\n", -1); + _("You should have received a copy of the GNU General Public License\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "along with this program; if not, write to the Free Software\n", -1); + _("along with this program; if not, write to the Free Software\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n", -1); + _("Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, "\n\n", -1); gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL, - "Personal GIMP Installation\n\n", -1); + _("Personal GIMP Installation\n\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "For a proper GIMP installation, a subdirectory called\n", -1); + _("For a proper GIMP installation, a subdirectory called\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, gimp_directory (), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - " needs to be created. This\n", -1); + _(" needs to be created. This\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "subdirectory will contain a number of important files:\n\n", -1); + _("subdirectory will contain a number of important files:\n\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "gimprc\n", -1); + _("gimprc\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThe gimprc is used to store personal preferences\n", -1); + _("\t\tThe gimprc is used to store personal preferences\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tsuch as default GIMP behaviors & plug-in hotkeys.\n", -1); + _("\t\tsuch as default GIMP behaviors & plug-in hotkeys.\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tPaths to search for brushes, palettes, gradients\n", -1); + _("\t\tPaths to search for brushes, palettes, gradients\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tpatterns, and plug-ins are also configured here.\n", -1); + _("\t\tpatterns, and plug-ins are also configured here.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "pluginrc\n", -1); + _("pluginrc\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tPlug-ins and extensions are extern programs run by\n", -1); + _("\t\tPlug-ins and extensions are extern programs run by\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tthe GIMP which provide additional functionality.\n", -1); + _("\t\tthe GIMP which provide additional functionality.\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThese programs are searched for at run-time and\n", -1); + _("\t\tThese programs are searched for at run-time and\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tinformation about their functionality and mod-times\n", -1); + _("\t\tinformation about their functionality and mod-times\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tis cached in this file. This file is intended to\n", -1); + _("\t\tis cached in this file. This file is intended to\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tbe GIMP-readable only, and should not be edited.\n", -1); + _("\t\tbe GIMP-readable only, and should not be edited.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "brushes\n", -1); + _("brushes\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis is a subdirectory which can be used to store\n", -1); + _("\t\tThis is a subdirectory which can be used to store\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tuser defined brushes. The default gimprc file\n", -1); + _("\t\tuser defined brushes. The default gimprc file\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tchecks this subdirectory in addition to the system-\n", -1); + _("\t\tchecks this subdirectory in addition to the system-\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\twide gimp brushes installation when searching for\n", -1); + _("\t\twide gimp brushes installation when searching for\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tbrushes.\n", -1); + _("\t\tbrushes.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "gradients\n", -1); + _("gradients\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis is a subdirectory which can be used to store\n", -1); + _("\t\tThis is a subdirectory which can be used to store\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tuser defined gradients. The default gimprc file\n", -1); + _("\t\tuser defined gradients. The default gimprc file\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tchecks this subdirectory in addition to the system-\n", -1); + _("\t\tchecks this subdirectory in addition to the system-\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\twide gimp gradients installation when searching for\n", -1); + _("\t\twide gimp gradients installation when searching for\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tgradients.\n", -1); + _("\t\tgradients.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "gfig\n", -1); + _("gfig\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis is a subdirectory which can be used to store\n", -1); + _("\t\tThis is a subdirectory which can be used to store\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tuser defined figures to be used by the gfig plug-in.\n", -1); + _("\t\tuser defined figures to be used by the gfig plug-in.\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThe default gimprc file checks this subdirectory in\n", -1); + _("\t\tThe default gimprc file checks this subdirectory in\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\taddition to the systemwide gimp gfig installation\n", -1); + _("\t\taddition to the systemwide gimp gfig installation\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\twhen searching for gfig figures.\n", -1); + _("\t\twhen searching for gfig figures.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "gflares\n", -1); + _("gflares\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis is a subdirectory which can be used to store\n", -1); + _("\t\tThis is a subdirectory which can be used to store\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tuser defined gflares to be used by the gflare plug-in.\n", -1); + _("\t\tuser defined gflares to be used by the gflare plug-in.\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThe default gimprc file checks this subdirectory in\n", -1); + _("\t\tThe default gimprc file checks this subdirectory in\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\taddition to the systemwide gimp gflares installation\n", -1); + _("\t\taddition to the systemwide gimp gflares installation\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\twhen searching for gflares.\n", -1); + _("\t\twhen searching for gflares.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "palettes\n", -1); + _("palettes\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis is a subdirectory which can be used to store\n", -1); + _("\t\tThis is a subdirectory which can be used to store\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tuser defined palettes. The default gimprc file\n", -1); + _("\t\tuser defined palettes. The default gimprc file\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tchecks only this subdirectory (not the system-wide\n", -1); + _("\t\tchecks only this subdirectory (not the system-wide\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tinstallation) when searching for palettes. During\n", -1); + _("\t\tinstallation) when searching for palettes. During\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tinstallation, the system palettes will be copied\n", -1); + _("\t\tinstallation, the system palettes will be copied\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\there. This is done to allow modifications made to\n", -1); + _("\t\there. This is done to allow modifications made to\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tpalettes during GIMP execution to persist across\n", -1); + _("\t\tpalettes during GIMP execution to persist across\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tsessions.\n", -1); + _("\t\tsessions.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "patterns\n", -1); + _("patterns\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis is a subdirectory which can be used to store\n", -1); + _("\t\tThis is a subdirectory which can be used to store\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tuser defined patterns. The default gimprc file\n", -1); + _("\t\tuser defined patterns. The default gimprc file\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tchecks this subdirectory in addition to the system-\n", -1); + _("\t\tchecks this subdirectory in addition to the system-\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\twide gimp patterns installation when searching for\n", -1); + _("\t\twide gimp patterns installation when searching for\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tpatterns.\n", -1); + _("\t\tpatterns.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "plug-ins\n", -1); + _("plug-ins\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis is a subdirectory which can be used to store\n", -1); + _("\t\tThis is a subdirectory which can be used to store\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tuser created, temporary, or otherwise non-system-\n", -1); + _("\t\tuser created, temporary, or otherwise non-system-\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tsupported plug-ins. The default gimprc file\n", -1); + _("\t\tsupported plug-ins. The default gimprc file\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tchecks this subdirectory in addition to the system-\n", -1); + _("\t\tchecks this subdirectory in addition to the system-\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\twide GIMP plug-in directories when searching for\n", -1); + _("\t\twide GIMP plug-in directories when searching for\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tplug-ins.\n", -1); + _("\t\tplug-ins.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "scripts\n", -1); + _("scripts\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis subdirectory is used by the GIMP to store \n", -1); + _("\t\tThis subdirectory is used by the GIMP to store \n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tuser created and installed scripts. The default gimprc\n", -1); + _("\t\tuser created and installed scripts. The default gimprc\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tfile checks this subdirectory in addition to the system\n", -1); + _("\t\tfile checks this subdirectory in addition to the system\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\t-wide gimp scripts subdirectory when searching for scripts\n", -1); + _("\t\t-wide gimp scripts subdirectory when searching for scripts\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "tmp\n", -1); + _("tmp\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis subdirectory is used by the GIMP to temporarily\n", -1); + _("\t\tThis subdirectory is used by the GIMP to temporarily\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tstore undo buffers to reduce memory usage. If GIMP is\n", -1); + _("\t\tstore undo buffers to reduce memory usage. If GIMP is\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tunceremoniously killed, files may persist in this directory\n", -1); + _("\t\tunceremoniously killed, files may persist in this directory\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tof the form: gimp<#>.<#>. These files are useless across\n", -1); + _("\t\tof the form: gimp<#>.<#>. These files are useless across\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tGIMP sessions and can be destroyed with impunity.\n", -1); + _("\t\tGIMP sessions and can be destroyed with impunity.\n"), -1); gtk_widget_show (vsb); gtk_widget_show (text); @@ -361,8 +362,8 @@ install_run (InstallCallback callback) { static ActionAreaItem action_items[] = { - { "Continue", install_continue_callback, NULL, NULL }, - { "Quit", install_quit_callback, NULL, NULL } + { N_("Continue"), install_continue_callback, NULL, NULL }, + { N_("Quit"), install_quit_callback, NULL, NULL } }; GtkWidget *text; GtkWidget *table; @@ -382,7 +383,7 @@ install_run (InstallCallback callback) GTK_SIGNAL_FUNC (gtk_true), NULL); gtk_window_set_wmclass (GTK_WINDOW (install_widget), "installation_log", "Gimp"); - gtk_window_set_title (GTK_WINDOW (install_widget), "Installation Log"); + gtk_window_set_title (GTK_WINDOW (install_widget), _("Installation Log")); gtk_window_position (GTK_WINDOW (install_widget), GTK_WIN_POS_CENTER); vadj = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 0.0, 0.0, 0.0, 0.0)); vsb = gtk_vscrollbar_new (vadj); @@ -413,7 +414,7 @@ install_run (InstallCallback callback) /* Realize the text widget before inserting text strings */ gtk_widget_realize (text); - gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL, "User Installation Log\n\n", -1); + gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL, _("User Installation Log\n\n"), -1); /* Generate output */ if ((gimp_data_dir = getenv ("GIMP_DATADIR")) != NULL) @@ -425,14 +426,14 @@ install_run (InstallCallback callback) { gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, buffer, -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - " does not exist. Cannot install.\n", -1); + _(" does not exist. Cannot install.\n"), -1); executable = FALSE; } else if (! (S_IXUSR & stat_buf.st_mode) || ! (S_IRUSR & stat_buf.st_mode)) { gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, buffer, -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - " has invalid permissions.\nCannot install.", -1); + _(" has invalid permissions.\nCannot install."), -1); executable = FALSE; } @@ -452,14 +453,14 @@ install_run (InstallCallback callback) pclose (pfp); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\nInstallation successful!\n", -1); + _("\nInstallation successful!\n"), -1); } else executable = FALSE; } if (executable == FALSE) gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\nInstallation failed. Contact system administrator.\n", -1); + _("\nInstallation failed. Contact system administrator.\n"), -1); gtk_widget_show (vsb); gtk_widget_show (text); diff --git a/app/display/gimpdisplay-ops.c b/app/display/gimpdisplay-ops.c index f0a593c1e0..6d00b2eed2 100644 --- a/app/display/gimpdisplay-ops.c +++ b/app/display/gimpdisplay-ops.c @@ -32,6 +32,7 @@ #include "scale.h" #include "gimprc.h" +#include "libgimp/gimpintl.h" static void gdisplay_close_warning_callback (GtkWidget *, gpointer); static void gdisplay_cancel_warning_callback (GtkWidget *, gpointer); @@ -274,7 +275,7 @@ gdisplay_close_warning_callback (GtkWidget *w, GDisplay *gdisp; GtkWidget *mbox; - menus_set_sensitive ("/File/Close", TRUE); + menus_set_sensitive (_("/File/Close"), TRUE); mbox = (GtkWidget *) client_data; gdisp = (GDisplay *) gtk_object_get_user_data (GTK_OBJECT (mbox)); @@ -293,7 +294,7 @@ gdisplay_cancel_warning_callback (GtkWidget *w, { GtkWidget *mbox; - menus_set_sensitive ("/File/Close", TRUE); + menus_set_sensitive (_("/File/Close"), TRUE); mbox = (GtkWidget *) client_data; gtk_widget_destroy (mbox); } @@ -303,7 +304,7 @@ gdisplay_delete_warning_callback (GtkWidget *widget, GdkEvent *event, gpointer client_data) { - menus_set_sensitive ("/File/Close", TRUE); + menus_set_sensitive (_("/File/Close"), TRUE); return FALSE; } @@ -321,8 +322,8 @@ gdisplay_close_warning_dialog (char *image_name, { static ActionAreaItem mbox_action_items[2] = { - { "Close", gdisplay_close_warning_callback, NULL, NULL }, - { "Cancel", gdisplay_cancel_warning_callback, NULL, NULL } + { N_("Close"), gdisplay_close_warning_callback, NULL, NULL }, + { N_("Cancel"), gdisplay_cancel_warning_callback, NULL, NULL } }; GtkWidget *mbox; GtkWidget *vbox; @@ -339,7 +340,7 @@ gdisplay_close_warning_dialog (char *image_name, return; } - menus_set_sensitive ("/File/Close", FALSE); + menus_set_sensitive (_("/File/Close"), FALSE); warning_dialog = mbox = gtk_dialog_new (); /* should this be image_window or the actual image name??? */ @@ -362,7 +363,7 @@ gdisplay_close_warning_dialog (char *image_name, gtk_widget_show (vbox); warning_buf = (char *) g_malloc (strlen (image_name) + 50); - sprintf (warning_buf, "Changes made to %s. Close anyway?", image_name); + sprintf (warning_buf, _("Changes were made to %s. Close anyway?"), image_name); label = gtk_label_new (warning_buf); gtk_box_pack_start (GTK_BOX (vbox), label, TRUE, FALSE, 0); gtk_widget_show (label); diff --git a/app/display/gimpdisplay.c b/app/display/gimpdisplay.c index 6c43144194..89ed596a7e 100644 --- a/app/display/gimpdisplay.c +++ b/app/display/gimpdisplay.c @@ -43,6 +43,8 @@ #include "undo.h" #include "layer_pvt.h" /* ick. */ +#include "libgimp/gimpintl.h" + #define OVERHEAD 25 /* in units of pixel area */ #define EPSILON 5 @@ -159,13 +161,13 @@ gdisplay_format_title (GimpImage *gimage, switch (gimage_base_type (gimage)) { case RGB: - image_type_str = (empty) ? "RGB-empty" : "RGB"; + image_type_str = (empty) ? _("RGB-empty") : _("RGB"); break; case GRAY: - image_type_str = (empty) ? "grayscale-empty" : "grayscale"; + image_type_str = (empty) ? _("grayscale-empty") : _("grayscale"); break; case INDEXED: - image_type_str = (empty) ? "indexed-empty" : "indexed"; + image_type_str = (empty) ? _("indexed-empty") : _("indexed"); break; default: image_type_str = NULL; @@ -207,11 +209,11 @@ gdisplay_delete (GDisplay *gdisp) deactivate the idlerendering thread before deletion! */ if (gdisp->idle_render.active) { - printf("Deleted idlerendering gdisp %p...\n", gdisp); fflush(stdout); - printf("\tIdlerender stops now!\n"); fflush(stdout); + printf(_("Deleted idlerendering gdisp %p...\n"), gdisp); fflush(stdout); + printf(_("\tIdlerender stops now!\n")); fflush(stdout); gtk_idle_remove (gdisp->idle_render.idleid); gdisp->idle_render.active = FALSE; - printf("\tDeletion finished.\n"); fflush(stdout); + printf(_("\tDeletion finished.\n")); fflush(stdout); } if (gdisp->scroll_gc) @@ -436,7 +438,7 @@ gdisplay_idlerender_init (GDisplay *gdisp) { if (gdisp->idle_render.update_areas == NULL) { - g_warning ("Wanted to start idlerender thread with no update_areas. (+memleak)"); + g_warning (_("Wanted to start idlerender thread with no update_areas. (+memleak)")); return; } @@ -1314,57 +1316,57 @@ gdisplay_set_menu_sensitivity (GDisplay *gdisp) type = drawable_type (drawable); } - menus_set_sensitive ("/Layers/Raise Layer", !fs && !aux && lp && alpha); - menus_set_sensitive ("/Layers/Lower Layer", !fs && !aux && lp && alpha); - menus_set_sensitive ("/Layers/Anchor Layer", fs && !aux && lp); - menus_set_sensitive ("/Layers/Merge Visible Layers", !fs && !aux && lp); - menus_set_sensitive ("/Layers/Flatten Image", !fs && !aux && lp); - menus_set_sensitive ("/Layers/Alpha To Selection", !aux && lp && alpha); - menus_set_sensitive ("/Layers/Mask To Selection", !aux && lm && lp); - menus_set_sensitive ("/Layers/Add Alpha Channel", !fs && !aux && lp && !lm && !alpha); + menus_set_sensitive (_("/Layers/Raise Layer"), !fs && !aux && lp && alpha); + menus_set_sensitive (_("/Layers/Lower Layer"), !fs && !aux && lp && alpha); + menus_set_sensitive (_("/Layers/Anchor Layer"), fs && !aux && lp); + menus_set_sensitive (_("/Layers/Merge Visible Layers"), !fs && !aux && lp); + menus_set_sensitive (_("/Layers/Flatten Image"), !fs && !aux && lp); + menus_set_sensitive (_("/Layers/Alpha To Selection"), !aux && lp && alpha); + menus_set_sensitive (_("/Layers/Mask To Selection"), !aux && lm && lp); + menus_set_sensitive (_("/Layers/Add Alpha Channel"), !fs && !aux && lp && !lm && !alpha); - menus_set_sensitive ("/Image/RGB", (base_type != RGB)); - menus_set_sensitive ("/Image/Grayscale", (base_type != GRAY)); - menus_set_sensitive ("/Image/Indexed", (base_type != INDEXED)); + menus_set_sensitive (_("/Image/RGB"), (base_type != RGB)); + menus_set_sensitive (_("/Image/Grayscale"), (base_type != GRAY)); + menus_set_sensitive (_("/Image/Indexed"), (base_type != INDEXED)); - menus_set_sensitive ("/Image/Colors/Threshold", (base_type != INDEXED)); - menus_set_sensitive ("/Image/Colors/Posterize", (base_type != INDEXED)); - menus_set_sensitive ("/Image/Colors/Equalize", (base_type != INDEXED)); - menus_set_sensitive ("/Image/Colors/Invert", (base_type != INDEXED)); + menus_set_sensitive (_("/Image/Colors/Threshold"), (base_type != INDEXED)); + menus_set_sensitive (_("/Image/Colors/Posterize") , (base_type != INDEXED)); + menus_set_sensitive (_("/Image/Colors/Equalize"), (base_type != INDEXED)); + menus_set_sensitive (_("/Image/Colors/Invert"), (base_type != INDEXED)); - menus_set_sensitive ("/Image/Colors/Color Balance", (base_type == RGB)); - menus_set_sensitive ("/Image/Colors/Brightness-Contrast", (base_type != INDEXED)); - menus_set_sensitive ("/Image/Colors/Hue-Saturation", (base_type == RGB)); - menus_set_sensitive ("/Image/Colors/Curves", (base_type != INDEXED)); - menus_set_sensitive ("/Image/Colors/Levels", (base_type != INDEXED)); + menus_set_sensitive (_("/Image/Colors/Color Balance"), (base_type == RGB)); + menus_set_sensitive (_("/Image/Colors/Brightness-Contrast"), (base_type != INDEXED)); + menus_set_sensitive (_("/Image/Colors/Hue-Saturation"), (base_type == RGB)); + menus_set_sensitive (_("/Image/Colors/Curves"), (base_type != INDEXED)); + menus_set_sensitive (_("/Image/Colors/Levels"), (base_type != INDEXED)); - menus_set_sensitive ("/Image/Colors/Desaturate", (base_type == RGB)); + menus_set_sensitive (_("/Image/Colors/Desaturate"), (base_type == RGB)); - menus_set_sensitive ("/Image/Alpha/Add Alpha Channel", !fs && !aux && lp && !lm && !alpha); + menus_set_sensitive (_("/Image/Alpha/Add Alpha Channel"), !fs && !aux && lp && !lm && !alpha); - menus_set_sensitive ("/Select", lp); - menus_set_sensitive ("/Edit/Cut", lp); - menus_set_sensitive ("/Edit/Copy", lp); - menus_set_sensitive ("/Edit/Paste", lp); - menus_set_sensitive ("/Edit/Paste Into", lp); - menus_set_sensitive ("/Edit/Clear", lp); - menus_set_sensitive ("/Edit/Fill", lp); - menus_set_sensitive ("/Edit/Stroke", lp); - menus_set_sensitive ("/Edit/Cut Named", lp); - menus_set_sensitive ("/Edit/Copy Named", lp); - menus_set_sensitive ("/Edit/Paste Named", lp); - menus_set_sensitive ("/Image/Colors", lp); - menus_set_sensitive ("/Image/Channel Ops/Offset", lp); - menus_set_sensitive ("/Image/Histogram", lp); - menus_set_sensitive ("/Filters", lp); + menus_set_sensitive (_("/Select"), lp); + menus_set_sensitive (_("/Edit/Cut"), lp); + menus_set_sensitive (_("/Edit/Copy"), lp); + menus_set_sensitive (_("/Edit/Paste"), lp); + menus_set_sensitive (_("/Edit/Paste Into"), lp); + menus_set_sensitive (_("/Edit/Clear"), lp); + menus_set_sensitive (_("/Edit/Fill"), lp); + menus_set_sensitive (_("/Edit/Stroke"), lp); + menus_set_sensitive (_("/Edit/Cut Named"), lp); + menus_set_sensitive (_("/Edit/Copy Named"), lp); + menus_set_sensitive (_("/Edit/Paste Named"), lp); + menus_set_sensitive (_("/Image/Colors"), lp); + menus_set_sensitive (_("/Image/Channel Ops/Offset"), lp); + menus_set_sensitive (_("/Image/Histogram"), lp); + menus_set_sensitive (_("/Filters"), lp); /* save selection to channel */ - menus_set_sensitive ("/Select/Save To Channel", !fs); + menus_set_sensitive (_("/Select/Save To Channel"), !fs); - menus_set_state ("/View/Toggle Rulers", GTK_WIDGET_VISIBLE (gdisp->origin) ? 1 : 0); - menus_set_state ("/View/Toggle Guides", gdisp->draw_guides); - menus_set_state ("/View/Snap To Guides", gdisp->snap_to_guides); - menus_set_state ("/View/Toggle Statusbar", GTK_WIDGET_VISIBLE (gdisp->statusarea) ? 1 : 0); + menus_set_state (_("/View/Toggle Rulers"), GTK_WIDGET_VISIBLE (gdisp->origin) ? 1 : 0); + menus_set_state (_("/View/Toggle Guides"), gdisp->draw_guides); + menus_set_state (_("/View/Snap To Guides"), gdisp->snap_to_guides); + menus_set_state (_("/View/Toggle Statusbar"), GTK_WIDGET_VISIBLE (gdisp->statusarea) ? 1 : 0); plug_in_set_menu_sensitivity (type); } @@ -1752,7 +1754,7 @@ gdisplays_flush_whenever (gboolean now) /* this prevents multiple recursive calls to this procedure */ if (flushing == TRUE) { - g_warning ("gdisplays_flush() called recursively."); + g_warning (_("gdisplays_flush() called recursively.")); return; } diff --git a/app/docindex.c b/app/docindex.c index cdc0d8e5e7..eeeed57537 100644 --- a/app/docindex.c +++ b/app/docindex.c @@ -21,6 +21,8 @@ #include "docindex.h" #include "docindexif.h" +#include "libgimp/gimpintl.h" + idea_manager *ideas = NULL; static GList *idea_list = NULL; /* of gchar *. */ static gint x = 0, y = 0, width = 0, height = 0; @@ -168,13 +170,13 @@ make_idea_window( int x, int y ) gtk_widget_show( ideas->status ); /* Set the GOWindow title */ - ideas->title = g_strdup( "Document Index" ); + ideas->title = g_strdup( _("Document Index") ); /* Set the GtkWindow title */ gtk_window_set_title( GTK_WINDOW( ideas->window ), ideas->title ); /* Set the initial status message */ - gtk_statusbar_push( GTK_STATUSBAR( ideas->status ), ideas->contextid, "GTK successfully started" ); + gtk_statusbar_push( GTK_STATUSBAR( ideas->status ), ideas->contextid, _("GTK successfully started") ); /* Connect the signals */ gtk_signal_connect( GTK_OBJECT( ideas->window ), "delete_event", @@ -526,10 +528,10 @@ void idea_up_callback( GtkWidget *widget, gpointer data ) { selected = GTK_TREE( ideas->tree )->selection->data; if ( idea_move( selected, -1, TRUE ) != -1 ) - gtk_statusbar_push( GTK_STATUSBAR( ideas->status ), ideas->contextid, "This file cannot be moved up." ); + gtk_statusbar_push( GTK_STATUSBAR( ideas->status ), ideas->contextid, _("This file cannot be moved up.") ); } else - gtk_statusbar_push( GTK_STATUSBAR( ideas->status ), ideas->contextid, "There's no selection to move up." ); + gtk_statusbar_push( GTK_STATUSBAR( ideas->status ), ideas->contextid, _("There's no selection to move up.") ); } void idea_down_callback( GtkWidget *widget, gpointer data ) @@ -539,10 +541,10 @@ void idea_down_callback( GtkWidget *widget, gpointer data ) { selected = GTK_TREE( ideas->tree )->selection->data; if ( idea_move( selected, 1, TRUE ) != 1 ) - gtk_statusbar_push( GTK_STATUSBAR( ideas->status ), ideas->contextid, "This file cannot be moved down." ); + gtk_statusbar_push( GTK_STATUSBAR( ideas->status ), ideas->contextid, _("This file cannot be moved down.") ); } else - gtk_statusbar_push( GTK_STATUSBAR( ideas->status ), ideas->contextid, "There's no selection to move down." ); + gtk_statusbar_push( GTK_STATUSBAR( ideas->status ), ideas->contextid, _("There's no selection to move down.") ); } void idea_remove_callback( GtkWidget *widget, gpointer data ) @@ -554,7 +556,7 @@ void idea_remove_callback( GtkWidget *widget, gpointer data ) idea_remove( selected ); } else - gtk_statusbar_push( GTK_STATUSBAR( ideas->status ), ideas->contextid, "There's no selection to remove." ); + gtk_statusbar_push( GTK_STATUSBAR( ideas->status ), ideas->contextid, _("There's no selection to remove.") ); } void diff --git a/app/docindexif.c b/app/docindexif.c index 3edb909a02..c9920ca2c6 100644 --- a/app/docindexif.c +++ b/app/docindexif.c @@ -17,6 +17,8 @@ #include "docindex.h" #include "docindexif.h" +#include "libgimp/gimpintl.h" + void raise_if_match( gpointer data, gpointer user_data ) { @@ -71,27 +73,27 @@ GtkWidget *create_idea_toolbar() gtk_toolbar_set_button_relief( GTK_TOOLBAR( toolbar ), GTK_RELIEF_NONE ); gtk_toolbar_append_item( GTK_TOOLBAR( toolbar ), - "Open", "Open a file", "Toolbar/Open", + _("Open"), _("Open a file"), "Toolbar/Open", NULL, (GtkSignalFunc) file_open_callback, NULL); gtk_toolbar_append_item( GTK_TOOLBAR( toolbar ), - "Up", "Move the selected entry up in the index", "Toolbar/Up", + _("Up"), _("Move the selected entry up in the index"), "Toolbar/Up", NULL, (GtkSignalFunc) idea_up_callback, NULL); gtk_toolbar_append_item( GTK_TOOLBAR( toolbar ), - "Down", "Move the selected entry down in the index", "Toolbar/Down", + _("Down"), _("Move the selected entry down in the index"), "Toolbar/Down", NULL, (GtkSignalFunc) idea_down_callback, NULL ); gtk_toolbar_append_item( GTK_TOOLBAR( toolbar ), - "Remove", "Remove the selected entry from the index", "Toolbar/Remove", + _("Remove"), _("Remove the selected entry from the index"), "Toolbar/Remove", NULL, (GtkSignalFunc) idea_remove_callback, NULL ); gtk_toolbar_append_item( GTK_TOOLBAR( toolbar ), - "Close", "Close the Document Index", "Toolbar/Hide", + _("Close"), _("Close the Document Index"), "Toolbar/Hide", NULL, (GtkSignalFunc) idea_hide_callback, NULL ); return toolbar; diff --git a/app/edit_cmds.c b/app/edit_cmds.c index 00c92b3e8c..53461ec303 100644 --- a/app/edit_cmds.c +++ b/app/edit_cmds.c @@ -25,6 +25,8 @@ #include "global_edit.h" #include "edit_cmds.h" +#include "libgimp/gimpintl.h" + static int int_value; static int success; static Argument *return_args; @@ -70,19 +72,19 @@ ProcArg edit_cut_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "The drawable to cut from" + N_("the drawable to cut from") } }; ProcRecord edit_cut_proc = { "gimp_edit_cut", - "Cut from the specified drawable", - "If there is a selection in the image, then the area specified by the selection is cut from the specified drawable and placed in an internal GIMP edit buffer. It can subsequently be retrieved using the 'gimp-edit-paste' command. If there is no selection, then the specified drawable will be removed and its contents stored in the internal GIMP edit buffer. The drawable MUST belong to the specified image, or an error is returned.", + N_("Cut from the specified drawable"), + N_("If there is a selection in the image, then the area specified by the selection is cut from the specified drawable and placed in an internal GIMP edit buffer. It can subsequently be retrieved using the 'gimp-edit-paste' command. If there is no selection, then the specified drawable will be removed and its contents stored in the internal GIMP edit buffer. The drawable MUST belong to the specified image, or an error is returned."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -140,19 +142,19 @@ ProcArg edit_copy_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "The drawable to copy from" + N_("the drawable to copy from") } }; ProcRecord edit_copy_proc = { "gimp_edit_copy", - "Copy from the specified drawable", - "If there is a selection in the image, then the area specified by the selection is copied from the specified drawable and placed in an internal GIMP edit buffer. It can subsequently be retrieved using the 'gimp-edit-paste' command. If there is no selection, then the specified drawable's contents will be stored in the internal GIMP edit buffer. The drawable MUST belong to the specified image, or an error is returned.", + N_("Copy from the specified drawable"), + N_("If there is a selection in the image, then the area specified by the selection is copied from the specified drawable and placed in an internal GIMP edit buffer. It can subsequently be retrieved using the 'gimp-edit-paste' command. If there is no selection, then the specified drawable's contents will be stored in the internal GIMP edit buffer. The drawable MUST belong to the specified image, or an error is returned."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -222,15 +224,15 @@ ProcArg edit_paste_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "The drawable to paste from" + N_("the drawable to paste from") }, { PDB_INT32, "paste_into", - "clear selection, or paste behind it?" + N_("clear selection, or paste behind it?") } }; @@ -238,15 +240,15 @@ ProcArg edit_paste_out_args[] = { { PDB_LAYER, "floating_sel", - "the new floating selection" + N_("the new floating selection") } }; ProcRecord edit_paste_proc = { "gimp_edit_paste", - "Paste buffer to the specified drawable", - "This procedure pastes a copy of the internal GIMP edit buffer to the specified drawable. The GIMP edit buffer will be empty unless a call was previously made to either 'gimp-edit-cut' or 'gimp-edit-copy'. The \"paste_into\" option specifies whether to clear the current image selection, or to paste the buffer \"behind\" the selection. This allows the selection to act as a mask for the pasted buffer. Anywhere that the selection mask is non-zero, the pasted buffer will show through. The pasted buffer will be a new layer in the image which is designated as the image floating selection. If the image has a floating selection at the time of pasting, the old floating selection will be anchored to it's drawable before the new floating selection is added. This procedure returns the new floating layer. The resulting floating selection will already be attached to the specified drawable, and a subsequent call to floating_sel_attach is not needed.", + N_("Paste buffer to the specified drawable"), + N_("This procedure pastes a copy of the internal GIMP edit buffer to the specified drawable. The GIMP edit buffer will be empty unless a call was previously made to either 'gimp-edit-cut' or 'gimp-edit-copy'. The \"paste_into\" option specifies whether to clear the current image selection, or to paste the buffer \"behind\" the selection. This allows the selection to act as a mask for the pasted buffer. Anywhere that the selection mask is non-zero, the pasted buffer will show through. The pasted buffer will be a new layer in the image which is designated as the image floating selection. If the image has a floating selection at the time of pasting, the old floating selection will be anchored to it's drawable before the new floating selection is added. This procedure returns the new floating layer. The resulting floating selection will already be attached to the specified drawable, and a subsequent call to floating_sel_attach is not needed."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -304,19 +306,19 @@ ProcArg edit_clear_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "The drawable to clear from" + N_("The drawable to clear from") } }; ProcRecord edit_clear_proc = { "gimp_edit_clear", - "Clear selected area of drawable", - "This procedure clears the specified drawable. If the drawable has an alpha channel, the cleared pixels will become transparent. If the drawable does not have an alpha channel, cleared pixels will be set to the background color. This procedure only affects regions within a selection if there is a selection active.", + N_("Clear selected area of drawable"), + N_("This procedure clears the specified drawable. If the drawable has an alpha channel, the cleared pixels will become transparent. If the drawable does not have an alpha channel, cleared pixels will be set to the background color. This procedure only affects regions within a selection if there is a selection active."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -373,19 +375,19 @@ ProcArg edit_fill_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "The drawable to fill from" + N_("the drawable to fill from") } }; ProcRecord edit_fill_proc = { "gimp_edit_fill", - "Fill selected area of drawable", - "This procedure fills the specified drawable with the background color. This procedure only affects regions within a selection if there is a selection active.", + N_("Fill selected area of drawable"), + N_("This procedure fills the specified drawable with the background color. This procedure only affects regions within a selection if there is a selection active."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -443,19 +445,19 @@ ProcArg edit_stroke_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "The drawable to stroke to" + N_("the drawable to stroke to") } }; ProcRecord edit_stroke_proc = { "gimp_edit_stroke", - "Stroke the current selection", - "This procedure strokes the current selection, painting along the selection boundary with the active brush and foreground color. The paint is applied to the specified drawable regardless of the active selection.", + N_("Stroke the current selection"), + N_("This procedure strokes the current selection, painting along the selection boundary with the active brush and foreground color. The paint is applied to the specified drawable regardless of the active selection."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/edit_selection.c b/app/edit_selection.c index cfa6cac7eb..fe39657205 100644 --- a/app/edit_selection.c +++ b/app/edit_selection.c @@ -28,6 +28,8 @@ #include "gdisplay.h" #include "undo.h" +#include "libgimp/gimpintl.h" + #define EDIT_SELECT_SCROLL_LOCK 0 #define ARROW_VELOCITY 25 #define STATUSBAR_SIZE 128 @@ -149,7 +151,7 @@ init_edit_selection (Tool *tool, /* initialize the statusbar display */ edit_select.context_id = gtk_statusbar_get_context_id (GTK_STATUSBAR (gdisp->statusbar), "edit_select"); - gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), edit_select.context_id, "Move: 0, 0"); + gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), edit_select.context_id, _("Move: 0, 0")); /* Create and start the selection core */ edit_select.core = draw_core_new (edit_selection_draw); @@ -294,7 +296,7 @@ edit_selection_motion (Tool *tool, edit_selection_snap (gdisp, mevent->x, mevent->y); gtk_statusbar_pop (GTK_STATUSBAR(gdisp->statusbar), edit_select.context_id); - g_snprintf (offset, STATUSBAR_SIZE, "Move: %d, %d", + g_snprintf (offset, STATUSBAR_SIZE, _("Move: %d, %d"), (edit_select.x - edit_select.origx), (edit_select.y - edit_select.origy)); gtk_statusbar_push (GTK_STATUSBAR(gdisp->statusbar), edit_select.context_id, offset); diff --git a/app/ellipse_select.c b/app/ellipse_select.c index 0996d51773..1006660e55 100644 --- a/app/ellipse_select.c +++ b/app/ellipse_select.c @@ -25,6 +25,8 @@ /* private header file for rect_select data structure */ #include "rect_selectP.h" +#include "libgimp/gimpintl.h" + #define NO 0 #define YES 1 @@ -151,47 +153,47 @@ ProcArg ellipse_select_args[] = { { PDB_IMAGE, "image", - "The image" + N_("the image") }, { PDB_FLOAT, "x", - "x coordinate of upper-left corner of ellipse bounding box" + N_("x coordinate of upper-left corner of ellipse bounding box") }, { PDB_FLOAT, "y", - "y coordinate of upper-left corner of ellipse bounding box" + N_("y coordinate of upper-left corner of ellipse bounding box") }, { PDB_FLOAT, "width", - "the width of the ellipse: width > 0" + N_("the width of the ellipse: width > 0") }, { PDB_FLOAT, "height", - "the height of the ellipse: height > 0" + N_("the height of the ellipse: height > 0") }, { PDB_INT32, "operation", - "the selection operation: { ADD (0), SUB (1), REPLACE (2), INTERSECT (3) }" + N_("the selection operation: { ADD (0), SUB (1), REPLACE (2), INTERSECT (3) }") }, { PDB_INT32, "antialias", - "antialiasing On/Off" + N_("antialiasing On/Off") }, { PDB_INT32, "feather", - "feather option for selections" + N_("feather option for selections") }, { PDB_FLOAT, "feather_radius", - "radius for feather operation" + N_("radius for feather operation") } }; ProcRecord ellipse_select_proc = { "gimp_ellipse_select", - "Create an elliptical selection over the specified image", - "This tool creates an elliptical selection over the specified image. The elliptical region can be either added to, subtracted from, or replace the contents of the previous selection mask. If antialiasing is turned on, the edges of the elliptical region will contain intermediate values which give the appearance of a sharper, less pixelized edge. This should be set as TRUE most of the time. If the feather option is enabled, the resulting selection is blurred before combining. The blur is a gaussian blur with the specified feather radius.", + N_("Create an elliptical selection over the specified image"), + N_("This tool creates an elliptical selection over the specified image. The elliptical region can be either added to, subtracted from, or replace the contents of the previous selection mask. If antialiasing is turned on, the edges of the elliptical region will contain intermediate values which give the appearance of a sharper, less pixelized edge. This should be set as TRUE most of the time. If the feather option is enabled, the resulting selection is blurred before combining. The blur is a gaussian blur with the specified feather radius."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/equalize.c b/app/equalize.c index ac30babd9b..3426d34fe3 100644 --- a/app/equalize.c +++ b/app/equalize.c @@ -24,6 +24,8 @@ #include "interface.h" #include "gimage.h" +#include "libgimp/gimpintl.h" + static void equalize (GImage *, GimpDrawable *, int); static void eq_histogram (double [3][256], unsigned char [3][256], int, double); static Argument * equalize_invoker (Argument *); @@ -234,23 +236,23 @@ ProcArg equalize_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_INT32, "mask_only", - "equalization option" + N_("equalization option") } }; ProcRecord equalize_proc = { "gimp_equalize", - "Equalize the contents of the specified drawable", - "This procedure equalizes the contents of the specified drawable. Each intensity channel is equalizeed independently. The equalizeed intensity is given as inten' = (255 - inten). Indexed color drawables are not valid for this operation. The 'mask_only' option specifies whether to adjust only the area of the image within the selection bounds, or the entire image based on the histogram of the selected area. If there is no selection, the entire image is adjusted based on the histogram for the entire image.", + N_("Equalize the contents of the specified drawable"), + N_("This procedure equalizes the contents of the specified drawable. Each intensity channel is equalizeed independently. The equalizeed intensity is given as inten' = (255 - inten). Indexed color drawables are not valid for this operation. The 'mask_only' option specifies whether to adjust only the area of the image within the selection bounds, or the entire image based on the histogram of the selected area. If there is no selection, the entire image is adjusted based on the histogram for the entire image."), "Federico Mena Quintero & Spencer Kimball & Peter Mattis", "Federico Mena Quintero & Spencer Kimball & Peter Mattis", "1996", diff --git a/app/eraser.c b/app/eraser.c index 138784e975..33a3fc0d21 100644 --- a/app/eraser.c +++ b/app/eraser.c @@ -28,6 +28,8 @@ #include "selection.h" #include "tools.h" +#include "libgimp/gimpintl.h" + /* forward function declarations */ static void eraser_motion (PaintCore *, GimpDrawable *, gboolean, gboolean); static Argument * eraser_invoker (Argument *); @@ -76,12 +78,12 @@ create_eraser_options (void) vbox = gtk_vbox_new (FALSE, 1); /* the main label */ - label = gtk_label_new ("Eraser Options"); + label = gtk_label_new (_("Eraser Options")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); /* the hard toggle */ - hard_toggle = gtk_check_button_new_with_label ("Hard edge"); + hard_toggle = gtk_check_button_new_with_label (_("Hard edge")); gtk_box_pack_start (GTK_BOX (vbox), hard_toggle, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (hard_toggle), "toggled", (GtkSignalFunc) eraser_toggle_update, @@ -90,7 +92,7 @@ create_eraser_options (void) gtk_widget_show (hard_toggle); /* the incremental toggle */ - incremental_toggle = gtk_check_button_new_with_label ("Incremental"); + incremental_toggle = gtk_check_button_new_with_label (_("Incremental")); gtk_box_pack_start (GTK_BOX (vbox), incremental_toggle, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (incremental_toggle), "toggled", (GtkSignalFunc) eraser_toggle_update, @@ -202,27 +204,27 @@ ProcArg eraser_extended_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_INT32, "num_strokes", - "number of stroke control points (count each coordinate as 2 points)" + N_("number of stroke control points (count each coordinate as 2 points)") }, { PDB_FLOATARRAY, "strokes", - "array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}" + N_("array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}") }, { PDB_INT32, "hardness", - "SOFT(0) or HARD(1)" + N_("SOFT(0) or HARD(1)") }, { PDB_INT32, "method", - "CONTINUOUS(0) or INCREMENTAL(1)" + N_("CONTINUOUS(0) or INCREMENTAL(1)") } }; @@ -230,19 +232,19 @@ ProcArg eraser_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_INT32, "num_strokes", - "number of stroke control points (count each coordinate as 2 points)" + N_("number of stroke control points (count each coordinate as 2 points)") }, { PDB_FLOATARRAY, "strokes", - "array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}" + N_("array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}") } }; @@ -250,8 +252,8 @@ ProcArg eraser_args[] = ProcRecord eraser_proc = { "gimp_eraser", - "Erase using the current brush", - "This tool erases using the current brush mask. If the specified drawable contains an alpha channel, then the erased pixels will become transparent. Otherwise, the eraser tool replaces the contents of the drawable with the background color. Like paintbrush, this tool linearly interpolates between the specified stroke coordinates.", + N_("Erase using the current brush"), + N_("This tool erases using the current brush mask. If the specified drawable contains an alpha channel, then the erased pixels will become transparent. Otherwise, the eraser tool replaces the contents of the drawable with the background color. Like paintbrush, this tool linearly interpolates between the specified stroke coordinates."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -272,8 +274,8 @@ ProcRecord eraser_proc = ProcRecord eraser_extended_proc = { "gimp_eraser_extended", - "Erase using the current brush", - "This tool erases using the current brush mask. If the specified drawable contains an alpha channel, then the erased pixels will become transparent. Otherwise, the eraser tool replaces the contents of the drawable with the background color. Like paintbrush, this tool linearly interpolates between the specified stroke coordinates.", + N_("Erase using the current brush"), + N_("This tool erases using the current brush mask. If the specified drawable contains an alpha channel, then the erased pixels will become transparent. Otherwise, the eraser tool replaces the contents of the drawable with the background color. Like paintbrush, this tool linearly interpolates between the specified stroke coordinates."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/errorconsole.c b/app/errorconsole.c index caf37b2bfb..54e83333bb 100644 --- a/app/errorconsole.c +++ b/app/errorconsole.c @@ -32,6 +32,8 @@ #include "commands.h" #include "session.h" +#include "libgimp/gimpintl.h" + #define ERRORS_ALL 0 #define ERRORS_SELECTION 1 @@ -133,7 +135,7 @@ error_console_file_ok_callback (GtkWidget *widget, gpointer data) GString *string; string = g_string_new (""); - g_string_sprintf (string, "Error opening file %s: %s", filename, g_strerror (errno)); + g_string_sprintf (string, _("Error opening file %s: %s"), filename, g_strerror (errno)); g_message (string->str); g_string_free (string, TRUE); } @@ -148,11 +150,11 @@ error_console_menu_callback (gint textscope) if (!(GTK_TEXT (text)->editable.has_selection) && (textscope == ERRORS_SELECTION)) { - g_message ("Can't save, nothing selected!"); + g_message (_("Can't save, nothing selected!")); return; } - filesel = gtk_file_selection_new ("Save error log to file..."); + filesel = gtk_file_selection_new (_("Save error log to file...")); gtk_window_position (GTK_WINDOW (filesel), GTK_WIN_POS_MOUSE); gtk_window_set_wmclass (GTK_WINDOW (filesel), "save_errors", "Gimp"); gtk_signal_connect_object (GTK_OBJECT (GTK_FILE_SELECTION (filesel)->cancel_button), @@ -200,7 +202,7 @@ error_console_create_window (void) GtkWidget *menuitem; error_console = gtk_dialog_new (); - gtk_window_set_title (GTK_WINDOW (error_console), "GIMP Error console"); + gtk_window_set_title (GTK_WINDOW (error_console), _("GIMP Error console")); session_set_window_geometry (error_console, &error_console_session_info, TRUE); /* The next line should disappear when setting the size works in SM */ gtk_widget_set_usize (error_console, 250, 300); @@ -211,7 +213,7 @@ error_console_create_window (void) gtk_container_border_width (GTK_CONTAINER (GTK_DIALOG (error_console)->action_area), 2); /* Action area */ - button = gtk_button_new_with_label ("Close"); + button = gtk_button_new_with_label (_("Close")); gtk_signal_connect (GTK_OBJECT (button), "clicked", (GtkSignalFunc) error_console_close_callback, NULL); gtk_box_pack_start (GTK_BOX (GTK_DIALOG (error_console)->action_area), button, TRUE, TRUE, 0); @@ -219,14 +221,14 @@ error_console_create_window (void) menu = gtk_menu_new (); - menuitem = gtk_menu_item_new_with_label ("Write all errors to file..."); + menuitem = gtk_menu_item_new_with_label (_("Write all errors to file...")); gtk_menu_append (GTK_MENU (menu), menuitem); gtk_signal_connect_object (GTK_OBJECT(menuitem), "activate", (GtkSignalFunc) error_console_menu_callback, (gpointer) ERRORS_ALL); gtk_widget_show (menuitem); - menuitem = gtk_menu_item_new_with_label ("Write selection to file..."); + menuitem = gtk_menu_item_new_with_label (_("Write selection to file...")); gtk_menu_append (GTK_MENU (menu), menuitem); gtk_signal_connect_object (GTK_OBJECT(menuitem), "activate", (GtkSignalFunc) error_console_menu_callback, diff --git a/app/file_new_dialog.c b/app/file_new_dialog.c index b964439ed3..22427cf489 100644 --- a/app/file_new_dialog.c +++ b/app/file_new_dialog.c @@ -14,6 +14,8 @@ #include "tile_manager_pvt.h" #include "gdisplay.h" +#include "libgimp/gimpintl.h" + typedef struct { GtkWidget *dlg; GtkWidget *height_spinbutton; @@ -117,7 +119,7 @@ file_new_ok_callback (GtkWidget *widget, /* Make the background (or first) layer */ layer = layer_new (gimage, gimage->width, gimage->height, - type, "Background", OPAQUE_OPACITY, NORMAL); + type, _("Background"), OPAQUE_OPACITY, NORMAL); if (layer) { /* add the new layer to the gimage */ @@ -472,7 +474,7 @@ file_new_cmd_callback (GtkWidget *widget, vals->dlg = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (vals->dlg), "new_image", "Gimp"); - gtk_window_set_title (GTK_WINDOW (vals->dlg), "New Image"); + gtk_window_set_title (GTK_WINDOW (vals->dlg), _("New Image")); gtk_window_position (GTK_WINDOW (vals->dlg), GTK_WIN_POS_MOUSE); /* handle the wm close signal */ @@ -482,7 +484,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_container_border_width (GTK_CONTAINER (GTK_DIALOG (vals->dlg)->action_area), 2); - button = gtk_button_new_with_label ("OK"); + button = gtk_button_new_with_label (_("OK")); GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT); gtk_signal_connect (GTK_OBJECT (button), "clicked", (GtkSignalFunc) file_new_ok_callback, @@ -492,7 +494,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_widget_grab_default (button); gtk_widget_show (button); - button = gtk_button_new_with_label ("Cancel"); + button = gtk_button_new_with_label (_("Cancel")); GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT); gtk_signal_connect (GTK_OBJECT (button), "clicked", (GtkSignalFunc) file_new_cancel_callback, @@ -515,13 +517,13 @@ file_new_cmd_callback (GtkWidget *widget, gtk_widget_show (table); /* label for top of table, Width */ - label = gtk_label_new ("Width"); + label = gtk_label_new (_("Width")); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1, GTK_FILL, GTK_FILL, 0, 0); gtk_widget_show (label); /* Label for top of table, Height */ - label = gtk_label_new ("Height"); + label = gtk_label_new (_("Height")); gtk_table_attach (GTK_TABLE (table), label, 1, 2, 0, 1, GTK_FILL, GTK_FILL, 0, 0); gtk_widget_show (label); @@ -584,7 +586,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_widget_show (vals->height_units_spinbutton); /* Label for right hand side of pixel size boxes */ - label = gtk_label_new ("Pixels"); + label = gtk_label_new (_("Pixels")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label , 2, 3, 1, 2, GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0); @@ -592,12 +594,12 @@ file_new_cmd_callback (GtkWidget *widget, /* menu and menu items for the units pop-up menu for the units entries */ menu = gtk_menu_new(); - menuitem = gtk_menu_item_new_with_label ("inches"); + menuitem = gtk_menu_item_new_with_label (_("inches")); gtk_menu_append (GTK_MENU (menu), menuitem); gtk_signal_connect (GTK_OBJECT (menuitem), "activate", (GtkSignalFunc) file_new_units_inch_menu_callback, vals); gtk_widget_show(menuitem); - menuitem = gtk_menu_item_new_with_label ("cm"); + menuitem = gtk_menu_item_new_with_label (_("cm")); gtk_menu_append (GTK_MENU (menu), menuitem); gtk_signal_connect (GTK_OBJECT (menuitem), "activate", (GtkSignalFunc) file_new_units_cm_menu_callback, vals); @@ -610,7 +612,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_widget_show(optionmenu); /* resolution frame */ - frame = gtk_frame_new ("Resolution"); + frame = gtk_frame_new (_("Resolution")); gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE, 0); gtk_widget_show (frame); @@ -633,7 +635,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_widget_show (vals->resolution_spinbutton); /* resolution label */ - label =gtk_label_new (" pixels per "); + label =gtk_label_new (_(" pixels per ")); gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, TRUE, 0); gtk_widget_show (label); @@ -645,12 +647,12 @@ file_new_cmd_callback (GtkWidget *widget, */ /* probabaly should be more general here */ - menuitem = gtk_menu_item_new_with_label ("inch"); + menuitem = gtk_menu_item_new_with_label (_("inch")); gtk_menu_append (GTK_MENU (menu), menuitem); gtk_signal_connect (GTK_OBJECT (menuitem), "activate", (GtkSignalFunc) file_new_res_units_inch_callback, vals); gtk_widget_show(menuitem); - menuitem = gtk_menu_item_new_with_label ("cm"); + menuitem = gtk_menu_item_new_with_label (_("cm")); gtk_signal_connect (GTK_OBJECT (menuitem), "activate", (GtkSignalFunc) file_new_res_units_cm_callback, vals); gtk_menu_append (GTK_MENU (menu), menuitem); @@ -669,7 +671,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_widget_show(hbox); /* frame for Image Type */ - frame = gtk_frame_new ("Image Type"); + frame = gtk_frame_new (_("Image Type")); gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0); gtk_widget_show (frame); @@ -679,7 +681,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_container_add (GTK_CONTAINER (frame), radio_box); gtk_widget_show (radio_box); - button = gtk_radio_button_new_with_label (NULL, "RGB"); + button = gtk_radio_button_new_with_label (NULL, _("RGB")); group = gtk_radio_button_group (GTK_RADIO_BUTTON (button)); gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0); gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) RGB); @@ -690,7 +692,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE); gtk_widget_show (button); - button = gtk_radio_button_new_with_label (group, "Grayscale"); + button = gtk_radio_button_new_with_label (group, _("Grayscale")); group = gtk_radio_button_group (GTK_RADIO_BUTTON (button)); gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0); gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) GRAY); @@ -703,7 +705,7 @@ file_new_cmd_callback (GtkWidget *widget, /* frame for fill type */ - frame = gtk_frame_new ("Fill Type"); + frame = gtk_frame_new (_("Fill Type")); gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0); gtk_widget_show (frame); @@ -712,7 +714,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_container_add (GTK_CONTAINER (frame), radio_box); gtk_widget_show (radio_box); - button = gtk_radio_button_new_with_label (NULL, "Foreground"); + button = gtk_radio_button_new_with_label (NULL, _("Foreground")); group = gtk_radio_button_group (GTK_RADIO_BUTTON (button)); gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0); gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) FOREGROUND_FILL); @@ -723,7 +725,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE); gtk_widget_show (button); - button = gtk_radio_button_new_with_label (group, "Background"); + button = gtk_radio_button_new_with_label (group, _("Background")); group = gtk_radio_button_group (GTK_RADIO_BUTTON (button)); gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0); gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) BACKGROUND_FILL); @@ -734,7 +736,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE); gtk_widget_show (button); - button = gtk_radio_button_new_with_label (group, "White"); + button = gtk_radio_button_new_with_label (group, _("White")); group = gtk_radio_button_group (GTK_RADIO_BUTTON (button)); gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0); gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) WHITE_FILL); @@ -745,7 +747,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE); gtk_widget_show (button); - button = gtk_radio_button_new_with_label (group, "Transparent"); + button = gtk_radio_button_new_with_label (group, _("Transparent")); group = gtk_radio_button_group (GTK_RADIO_BUTTON (button)); gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0); gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) TRANSPARENT_FILL); diff --git a/app/fileops.c b/app/fileops.c index ef211cee20..731c044a1a 100644 --- a/app/fileops.c +++ b/app/fileops.c @@ -39,6 +39,8 @@ #include "gimprc.h" #include "docindex.h" +#include "libgimp/gimpintl.h" + typedef struct _OverwriteBox OverwriteBox; struct _OverwriteBox @@ -112,21 +114,21 @@ static GtkWidget *save_options = NULL; */ static ProcArg file_load_args[] = { - { PDB_INT32, "run_mode", "Interactive, non-interactive." }, - { PDB_STRING, "filename", "The name of the file to load." }, - { PDB_STRING, "raw_filename", "The name entered." }, + { PDB_INT32, "run_mode", N_("Interactive, non-interactive.") }, + { PDB_STRING, "filename", N_("The name of the file to load.") }, + { PDB_STRING, "raw_filename", N_("The name entered.") }, }; static ProcArg file_load_return_vals[] = { - { PDB_IMAGE, "image", "Output image." }, + { PDB_IMAGE, "image", N_("Output image.") }, }; static ProcRecord file_load_proc = { "gimp_file_load", - "Loads a file by extension", - "This procedure invokes the correct file load handler according to the file's extension and/or prefix. The name of the file to load is typically a full pathname, and the name entered is what the user actually typed before prepending a directory path. The reason for this is that if the user types http://www.xcf/~gimp he wants to fetch a URL, and the full pathname will not look like a URL.", + N_("Loads a file by extension"), + N_("This procedure invokes the correct file load handler according to the file's extension and/or prefix. The name of the file to load is typically a full pathname, and the name entered is what the user actually typed before prepending a directory path. The reason for this is that if the user types http://www.xcf/~gimp he wants to fetch a URL, and the full pathname will not look like a URL."), "Josh MacDonald", "Josh MacDonald", "1997", @@ -142,18 +144,18 @@ static ProcRecord file_load_proc = */ static ProcArg file_save_args[] = { - { PDB_INT32, "run_mode", "Interactive, non-interactive" }, - { PDB_IMAGE, "image", "Input image" }, - { PDB_DRAWABLE, "drawable", "Drawable to save" }, - { PDB_STRING, "filename", "The name of the file to save the image in" }, - { PDB_STRING, "raw_filename", "The name of the file to save the image in" } + { PDB_INT32, "run_mode", N_("Interactive, non-interactive") }, + { PDB_IMAGE, "image", N_("Input image") }, + { PDB_DRAWABLE, "drawable", N_("Drawable to save") }, + { PDB_STRING, "filename", N_("The name of the file to save the image in") }, + { PDB_STRING, "raw_filename", N_("The name of the file to save the image in") } }; static ProcRecord file_save_proc = { "gimp_file_save", - "Saves a file by extension", - "This procedure invokes the correct file save handler according to the file's extension and/or prefix. The name of the file to save is typically a full pathname, and the name entered is what the user actually typed before prepending a directory path. The reason for this is that if the user types http://www.xcf/~gimp he wants to fetch a URL, and the full pathname will not look like a URL.", + N_("Saves a file by extension"), + N_("This procedure invokes the correct file save handler according to the file's extension and/or prefix. The name of the file to save is typically a full pathname, and the name entered is what the user actually typed before prepending a directory path. The reason for this is that if the user types http://www.xcf/~gimp he wants to fetch a URL, and the full pathname will not look like a URL."), "Josh MacDonald", "Josh MacDonald", "1997", @@ -170,19 +172,19 @@ static ProcRecord file_save_proc = static ProcArg file_temp_name_args[] = { - { PDB_STRING, "extension", "The extension the file will have." } + { PDB_STRING, "extension", N_("The extension the file will have.") } }; static ProcArg file_temp_name_values[] = { - { PDB_STRING, "name", "The temp name." } + { PDB_STRING, "name", N_("The temp name.") } }; static ProcRecord file_temp_name_proc = { "gimp_temp_name", - "Generates a unique filename.", - "Generates a unique filename using the temp path supplied in the user's gimprc.", + N_("Generates a unique filename."), + N_("Generates a unique filename using the temp path supplied in the user's gimprc."), "Josh MacDonald", "Josh MacDonald", "1997", @@ -201,24 +203,24 @@ static ProcArg register_magic_load_handler_args[] = { { PDB_STRING, "procedure_name", - "the name of the procedure to be used for loading" }, + N_("the name of the procedure to be used for loading") }, { PDB_STRING, "extensions", - "comma separated list of extensions this handler can load (ie. \"jpeg,jpg\")" }, + N_("comma separated list of extensions this handler can load (ie. \"jpeg,jpg\")") }, { PDB_STRING, "prefixes", - "comma separated list of prefixes this handler can load (ie. \"http:,ftp:\")" }, + N_("comma separated list of prefixes this handler can load (ie. \"http:,ftp:\")") }, { PDB_STRING, "magics", - "comma separated list of magic file information this handler can load (ie. \"0,string,GIF\")" }, + N_("comma separated list of magic file information this handler can load (ie. \"0,string,GIF\")") }, }; static ProcRecord register_magic_load_handler_proc = { "gimp_register_magic_load_handler", - "Registers a file load handler procedure", - "Registers a procedural database procedure to be called to load files of a \ -particular file format using magic file information.", + N_("Registers a file load handler procedure"), + N_("Registers a procedural database procedure to be called to load files of a \ + particular file format using magic file information."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -237,20 +239,20 @@ static ProcArg register_load_handler_args[] = { { PDB_STRING, "procedure_name", - "the name of the procedure to be used for loading" }, + N_("the name of the procedure to be used for loading") }, { PDB_STRING, "extensions", - "comma separated list of extensions this handler can load (ie. \"jpeg,jpg\")" }, + N_("comma separated list of extensions this handler can load (ie. \"jpeg,jpg\")") }, { PDB_STRING, "prefixes", - "comma separated list of prefixes this handler can load (ie. \"http:,ftp:\")" }, + N_("comma separated list of prefixes this handler can load (ie. \"http:,ftp:\")") }, }; static ProcRecord register_load_handler_proc = { "gimp_register_load_handler", - "Registers a file load handler procedure", - "Registers a procedural database procedure to be called to load files of a particular file format.", + N_("Registers a file load handler procedure"), + N_("Registers a procedural database procedure to be called to load files of a particular file format."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -269,20 +271,20 @@ static ProcArg register_save_handler_args[] = { { PDB_STRING, "procedure_name", - "the name of the procedure to be used for saving" }, + N_("the name of the procedure to be used for saving") }, { PDB_STRING, "extensions", - "comma separated list of extensions this handler can save (ie. \"jpeg,jpg\")" }, + N_("comma separated list of extensions this handler can save (ie. \"jpeg,jpg\")") }, { PDB_STRING, "prefixes", - "comma separated list of prefixes this handler can save (ie. \"http:,ftp:\")" }, + N_("comma separated list of prefixes this handler can save (ie. \"http:,ftp:\")") }, }; static ProcRecord register_save_handler_proc = { "gimp_register_save_handler", - "Registers a file save handler procedure", - "Registers a procedural database procedure to be called to save files in a particular file format.", + N_("Registers a file save handler procedure"), + N_("Registers a procedural database procedure to be called to save files in a particular file format."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -401,7 +403,7 @@ register_magic_load_handler_invoker (Argument *args) (proc->args[2].arg_type != PDB_STRING) || (proc->values[0].arg_type != PDB_IMAGE))) { - g_message ("load handler \"%s\" does not take the standard load handler args", + g_message (_("load handler \"%s\" does not take the standard load handler args"), (char*) args[0].value.pdb_pointer); goto done; } @@ -413,7 +415,7 @@ register_magic_load_handler_invoker (Argument *args) if (!file_proc) { - g_message ("attempt to register non-existant load handler \"%s\"", + g_message (_("attempt to register non-existant load handler \"%s\""), (char*) args[0].value.pdb_pointer); goto done; } @@ -447,7 +449,7 @@ register_save_handler_invoker (Argument *args) (proc->args[3].arg_type != PDB_STRING) || (proc->args[4].arg_type != PDB_STRING))) { - g_message ("save handler \"%s\" does not take the standard save handler args", + g_message (_("save handler \"%s\" does not take the standard save handler args"), (char*) args[0].value.pdb_pointer); goto done; } @@ -459,7 +461,7 @@ register_save_handler_invoker (Argument *args) if (!file_proc) { - g_message ("attempt to register non-existant save handler \"%s\"", + g_message (_("attempt to register non-existant save handler \"%s\""), (char*) args[0].value.pdb_pointer); goto done; } @@ -486,7 +488,7 @@ file_open_callback (GtkWidget *w, if (!fileload) { - fileload = gtk_file_selection_new ("Load Image"); + fileload = gtk_file_selection_new (_("Load Image")); gtk_window_position (GTK_WINDOW (fileload), GTK_WIN_POS_MOUSE); gtk_window_set_wmclass (GTK_WINDOW (fileload), "load_image", "Gimp"); gtk_signal_connect_object (GTK_OBJECT (GTK_FILE_SELECTION (fileload)->cancel_button), @@ -511,14 +513,14 @@ file_open_callback (GtkWidget *w, return; gtk_file_selection_set_filename (GTK_FILE_SELECTION(fileload), "./"); - gtk_window_set_title (GTK_WINDOW (fileload), "Load Image"); + gtk_window_set_title (GTK_WINDOW (fileload), _("Load Image")); } gdisplay = gdisplay_active (); if (!open_options) { - open_options = gtk_frame_new ("Open Options"); + open_options = gtk_frame_new (_("Open Options")); gtk_frame_set_shadow_type (GTK_FRAME (open_options), GTK_SHADOW_ETCHED_IN); hbox = gtk_hbox_new (FALSE, 1); @@ -526,7 +528,7 @@ file_open_callback (GtkWidget *w, gtk_container_add (GTK_CONTAINER (open_options), hbox); gtk_widget_show (hbox); - label = gtk_label_new ("Determine file type:"); + label = gtk_label_new (_("Determine file type:")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 0); gtk_widget_show (label); @@ -579,7 +581,7 @@ file_save_as_callback (GtkWidget *w, if (!filesave) { - filesave = gtk_file_selection_new ("Save Image"); + filesave = gtk_file_selection_new (_("Save Image")); gtk_window_set_wmclass (GTK_WINDOW (filesave), "save_image", "Gimp"); gtk_window_position (GTK_WINDOW (filesave), GTK_WIN_POS_MOUSE); gtk_signal_connect_object (GTK_OBJECT (GTK_FILE_SELECTION (filesave)->cancel_button), @@ -600,7 +602,7 @@ file_save_as_callback (GtkWidget *w, return; gtk_file_selection_set_filename (GTK_FILE_SELECTION(filesave), "./"); - gtk_window_set_title (GTK_WINDOW (filesave), "Save Image"); + gtk_window_set_title (GTK_WINDOW (filesave), _("Save Image")); } gdisplay = gdisplay_active (); @@ -608,7 +610,7 @@ file_save_as_callback (GtkWidget *w, if (!save_options) { - save_options = gtk_frame_new ("Save Options"); + save_options = gtk_frame_new (_("Save Options")); gtk_frame_set_shadow_type (GTK_FRAME (save_options), GTK_SHADOW_ETCHED_IN); hbox = gtk_hbox_new (FALSE, 1); @@ -616,7 +618,7 @@ file_save_as_callback (GtkWidget *w, gtk_container_add (GTK_CONTAINER (save_options), hbox); gtk_widget_show (hbox); - label = gtk_label_new ("Determine file type:"); + label = gtk_label_new (_("Determine file type:")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, TRUE, 0); gtk_widget_show (label); @@ -875,7 +877,7 @@ file_open_ok_callback (GtkWidget *w, } else { - s = g_string_new ("Open failed: "); + s = g_string_new (_("Open failed: ")); g_string_append (s, raw_filename); FILE_ERR_MESSAGE (s->str); g_string_free (s, TRUE); @@ -963,7 +965,7 @@ file_open_ok_callback (GtkWidget *w, } else { - s = g_string_new ("Open failed: "); + s = g_string_new (_("Open failed: ")); g_string_append (s, temp); FILE_ERR_MESSAGE (s->str); g_string_free (s, TRUE); @@ -1029,7 +1031,7 @@ file_save_ok_callback (GtkWidget *w, else { s = g_string_new (NULL); - g_string_sprintf (s, "%s is an irregular file (%s)", raw_filename, g_strerror(errno)); + g_string_sprintf (s, _("%s is an irregular file (%s)"), raw_filename, g_strerror(errno)); } } else { gtk_widget_set_sensitive (GTK_WIDGET (fs), FALSE); @@ -1041,7 +1043,7 @@ file_save_ok_callback (GtkWidget *w, } else { - s = g_string_new ("Save failed: "); + s = g_string_new (_("Save failed: ")); g_string_append (s, raw_filename); } } @@ -1053,10 +1055,10 @@ file_save_ok_callback (GtkWidget *w, static void file_dialog_show (GtkWidget *filesel) { - menus_set_sensitive ("/File/Open", FALSE); - menus_set_sensitive ("/File/Open", FALSE); - menus_set_sensitive ("/File/Save", FALSE); - menus_set_sensitive ("/File/Save as", FALSE); + menus_set_sensitive (_("/File/Open"), FALSE); + menus_set_sensitive (_("/File/Open"), FALSE); + menus_set_sensitive (_("/File/Save"), FALSE); + menus_set_sensitive (_("/File/Save as"), FALSE); gtk_widget_show (filesel); } @@ -1066,10 +1068,10 @@ file_dialog_hide (GtkWidget *filesel) { gtk_widget_hide (filesel); - menus_set_sensitive ("/File/Open", TRUE); - menus_set_sensitive ("/File/Open", TRUE); - menus_set_sensitive ("/File/Save", TRUE); - menus_set_sensitive ("/File/Save as", TRUE); + menus_set_sensitive (_("/File/Open"), TRUE); + menus_set_sensitive (_("/File/Open"), TRUE); + menus_set_sensitive (_("/File/Save"), TRUE); + menus_set_sensitive (_("/File/Save as"), TRUE); return TRUE; } @@ -1079,8 +1081,8 @@ file_overwrite (char *filename, char* raw_filename) { static ActionAreaItem obox_action_items[2] = { - { "Yes", file_overwrite_yes_callback, NULL, NULL }, - { "No", file_overwrite_no_callback, NULL, NULL } + { N_("Yes"), file_overwrite_yes_callback, NULL, NULL }, + { N_("No"), file_overwrite_no_callback, NULL, NULL } }; OverwriteBox *overwrite_box; @@ -1089,14 +1091,14 @@ file_overwrite (char *filename, char* raw_filename) char *overwrite_text; overwrite_box = (OverwriteBox *) g_malloc (sizeof (OverwriteBox)); - overwrite_text = (char *) g_malloc (strlen (" exists, overwrite?") + strlen (filename) + 1); - sprintf (overwrite_text, "%s exists, overwrite?", filename); + overwrite_text = (char *) g_malloc (strlen (_(" exists, overwrite?")) + strlen (filename) + 1); + sprintf (overwrite_text, _("%s exists, overwrite?"), filename); overwrite_box->full_filename = filename; overwrite_box->raw_filename = raw_filename; overwrite_box->obox = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (overwrite_box->obox), "file_exists", "Gimp"); - gtk_window_set_title (GTK_WINDOW (overwrite_box->obox), "File Exists!"); + gtk_window_set_title (GTK_WINDOW (overwrite_box->obox), _("File Exists!")); gtk_window_position (GTK_WINDOW (overwrite_box->obox), GTK_WIN_POS_MOUSE); gtk_signal_connect (GTK_OBJECT (overwrite_box->obox), @@ -1145,7 +1147,7 @@ file_overwrite_yes_callback (GtkWidget *w, GtkWidget *fs; fs = filesave; - s = g_string_new ("Save failed: "); + s = g_string_new (_("Save failed: ")); g_string_append (s, overwrite_box->raw_filename); FILE_ERR_MESSAGE (s->str); g_string_free (s, TRUE); diff --git a/app/flip_tool.c b/app/flip_tool.c index 6b119f3a69..a694983e16 100644 --- a/app/flip_tool.c +++ b/app/flip_tool.c @@ -26,6 +26,8 @@ #include "undo.h" #include "gimage.h" +#include "libgimp/gimpintl.h" + #include "tile_manager_pvt.h" /* ick. */ #define FLIP 0 @@ -68,8 +70,8 @@ create_flip_options (void) int i; char *button_names[2] = { - "Horizontal", - "Vertical", + N_("Horizontal"), + N_("Vertical"), }; /* the new options structure */ @@ -80,7 +82,7 @@ create_flip_options (void) vbox = gtk_vbox_new (FALSE, 1); /* the main label */ - label = gtk_label_new ("Flip Tool Options"); + label = gtk_label_new (_("Flip Tool Options")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -332,15 +334,15 @@ ProcArg flip_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the affected drawable" + N_("the affected drawable") }, { PDB_INT32, "flip_type", - "Type of flip: { HORIZONTAL (0), VERTICAL (1) }" + N_("Type of flip: { HORIZONTAL (0), VERTICAL (1) }") } }; @@ -348,15 +350,15 @@ ProcArg flip_out_args[] = { { PDB_DRAWABLE, "drawable", - "the flipped drawable" + N_("the flipped drawable") } }; ProcRecord flip_proc = { "gimp_flip", - "Flip the specified drawable about its center either vertically or horizontally", - "This tool flips the specified drawable if no selection exists. If a selection exists, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then flipd by the specified amount. The return value is the ID of the flipped drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and flipd drawable. The flip type parameter indicates whether the flip will be applied horizontally or vertically.", + N_("Flip the specified drawable about its center either vertically or horizontally"), + N_("This tool flips the specified drawable if no selection exists. If a selection exists, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then flipd by the specified amount. The return value is the ID of the flipped drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and flipd drawable. The flip type parameter indicates whether the flip will be applied horizontally or vertically."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/floating_sel.c b/app/floating_sel.c index c63739ed6e..6f53887e8c 100644 --- a/app/floating_sel.c +++ b/app/floating_sel.c @@ -31,6 +31,8 @@ #include "paint_funcs.h" #include "undo.h" +#include "libgimp/gimpintl.h" + #include "layer_pvt.h" #include "tile_manager_pvt.h" /* ick. */ @@ -103,7 +105,7 @@ floating_sel_anchor (Layer *layer) return; if (! layer_is_floating_sel (layer)) { - g_message ("Cannot anchor this layer because\nit is not a floating selection."); + g_message (_("Cannot anchor this layer because\nit is not a floating selection.")); return; } @@ -169,9 +171,9 @@ floating_sel_to_layer (Layer *layer) if (drawable_channel (layer->fs.drawable) || drawable_layer_mask (layer->fs.drawable)) { - g_message ("Cannot create a new layer from the floating\n" + g_message (_("Cannot create a new layer from the floating\n" "selection because it belongs to a\n" - "layer mask or channel."); + "layer mask or channel.")); return; } diff --git a/app/floating_sel_cmds.c b/app/floating_sel_cmds.c index 7e3864bc48..07dd7d5b4b 100644 --- a/app/floating_sel_cmds.c +++ b/app/floating_sel_cmds.c @@ -24,6 +24,8 @@ #include "floating_sel.h" #include "floating_sel_cmds.h" +#include "libgimp/gimpintl.h" + static int int_value; static int success; @@ -59,15 +61,15 @@ ProcArg floating_sel_remove_args[] = { { PDB_LAYER, "floating_sel", - "the floating selection" + N_("the floating selection") } }; ProcRecord floating_sel_remove_proc = { "gimp_floating_sel_remove", - "Remove the specified floating selection from its associated drawable", - "This procedure removes the floating selection completely, without any side effects. The associated drawable is then set to active.", + N_("Remove the specified floating selection from its associated drawable"), + N_("This procedure removes the floating selection completely, without any side effects. The associated drawable is then set to active."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -117,15 +119,15 @@ ProcArg floating_sel_anchor_args[] = { { PDB_LAYER, "floating_sel", - "the floating selection" + N_("the floating selection") } }; ProcRecord floating_sel_anchor_proc = { "gimp_floating_sel_anchor", - "Anchor the specified floating selection to its associated drawable", - "This procedure anchors the floating selection to its associated drawable. This is similar to merging with a merge type of ClipToBottomLayer. The floating selection layer is no longer valid after this operation.", + N_("Anchor the specified floating selection to its associated drawable"), + N_("This procedure anchors the floating selection to its associated drawable. This is similar to merging with a merge type of ClipToBottomLayer. The floating selection layer is no longer valid after this operation."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -175,15 +177,15 @@ ProcArg floating_sel_to_layer_args[] = { { PDB_LAYER, "floating_sel", - "the floating selection" + N_("the floating selection") } }; ProcRecord floating_sel_to_layer_proc = { "gimp_floating_sel_to_layer", - "Transforms the specified floating selection into a layer", - "This procedure transforms the specified floating selection into a layer with the same offsets and extents. The composited image will look precisely the same, but the floating selection layer will no longer be clipped to the extents of the drawable it was attached to. The floating selection will become the active layer. This procedure will not work if the floating selection has a different base type from the underlying image. This might be the case if the floating selection is above an auxillary channel or a layer mask.", + N_("Transforms the specified floating selection into a layer"), + N_("This procedure transforms the specified floating selection into a layer with the same offsets and extents. The composited image will look precisely the same, but the floating selection layer will no longer be clipped to the extents of the drawable it was attached to. The floating selection will become the active layer. This procedure will not work if the floating selection has a different base type from the underlying image. This might be the case if the floating selection is above an auxillary channel or a layer mask."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/free_select.c b/app/free_select.c index 5295abc553..936b447071 100644 --- a/app/free_select.c +++ b/app/free_select.c @@ -26,6 +26,8 @@ #include "gdisplay.h" #include "rect_select.h" +#include "libgimp/gimpintl.h" + typedef struct _free_select FreeSelect; struct _free_select @@ -67,7 +69,7 @@ add_point (int num_pts, int x, int y) global_pts = (GdkPoint *) g_realloc ((void *) global_pts, sizeof (GdkPoint) * max_segs); if (!global_pts) - fatal_error ("Unable to reallocate points array in free_select."); + fatal_error (_("Unable to reallocate points array in free_select.")); } global_pts[num_pts].x = x; @@ -212,7 +214,7 @@ scan_convert (GimpImage* gimage, int num_pts, FreeSelectPoint *pts, x = (long) list->data; list = g_slist_next(list); if (!list) - g_message ("Cannot properly scanline convert polygon!\n"); + g_message (_("Cannot properly scanline convert polygon!\n")); else { /* bounds checking */ @@ -489,39 +491,39 @@ ProcArg free_select_args[] = { { PDB_IMAGE, "image", - "The image" + N_("the image") }, { PDB_INT32, "num_pts", - "number of points (count 1 coordinate as two points)" + N_("number of points (count 1 coordinate as two points)") }, { PDB_FLOATARRAY, "segs", - "array of points: { p1.x, p1.y, p2.x, p2.y, ..., pn.x, pn.y}" + N_("array of points: { p1.x, p1.y, p2.x, p2.y, ..., pn.x, pn.y}") }, { PDB_INT32, "operation", - "the selection operation: { ADD (0), SUB (1), REPLACE (2), INTERSECT (3) }" + N_("the selection operation: { ADD (0), SUB (1), REPLACE (2), INTERSECT (3) }") }, { PDB_INT32, "antialias", - "antialiasing option for selections" + N_("antialiasing option for selections") }, { PDB_INT32, "feather", - "feather option for selections" + N_("feather option for selections") }, { PDB_FLOAT, "feather_radius", - "radius for feather operation" + N_("radius for feather operation") } }; ProcRecord free_select_proc = { "gimp_free_select", - "Create a polygonal selection over the specified image", - "This tool creates a polygonal selection over the specified image. The polygonal region can be either added to, subtracted from, or replace the contents of the previous selection mask. The polygon is specified through an array of floating point numbers and its length. The length of array must be 2n, where n is the number of points. Each point is defined by 2 floating point values which correspond to the x and y coordinates. If the final point does not connect to the starting point, a connecting segment is automatically added. If the feather option is enabled, the resulting selection is blurred before combining. The blur is a gaussian blur with the specified feather radius.", + N_("Create a polygonal selection over the specified image"), + N_("This tool creates a polygonal selection over the specified image. The polygonal region can be either added to, subtracted from, or replace the contents of the previous selection mask. The polygon is specified through an array of floating point numbers and its length. The length of array must be 2n, where n is the number of points. Each point is defined by 2 floating point values which correspond to the x and y coordinates. If the final point does not connect to the starting point, a connecting segment is automatically added. If the feather option is enabled, the resulting selection is blurred before combining. The blur is a gaussian blur with the specified feather radius."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/gdisplay.c b/app/gdisplay.c index 6c43144194..89ed596a7e 100644 --- a/app/gdisplay.c +++ b/app/gdisplay.c @@ -43,6 +43,8 @@ #include "undo.h" #include "layer_pvt.h" /* ick. */ +#include "libgimp/gimpintl.h" + #define OVERHEAD 25 /* in units of pixel area */ #define EPSILON 5 @@ -159,13 +161,13 @@ gdisplay_format_title (GimpImage *gimage, switch (gimage_base_type (gimage)) { case RGB: - image_type_str = (empty) ? "RGB-empty" : "RGB"; + image_type_str = (empty) ? _("RGB-empty") : _("RGB"); break; case GRAY: - image_type_str = (empty) ? "grayscale-empty" : "grayscale"; + image_type_str = (empty) ? _("grayscale-empty") : _("grayscale"); break; case INDEXED: - image_type_str = (empty) ? "indexed-empty" : "indexed"; + image_type_str = (empty) ? _("indexed-empty") : _("indexed"); break; default: image_type_str = NULL; @@ -207,11 +209,11 @@ gdisplay_delete (GDisplay *gdisp) deactivate the idlerendering thread before deletion! */ if (gdisp->idle_render.active) { - printf("Deleted idlerendering gdisp %p...\n", gdisp); fflush(stdout); - printf("\tIdlerender stops now!\n"); fflush(stdout); + printf(_("Deleted idlerendering gdisp %p...\n"), gdisp); fflush(stdout); + printf(_("\tIdlerender stops now!\n")); fflush(stdout); gtk_idle_remove (gdisp->idle_render.idleid); gdisp->idle_render.active = FALSE; - printf("\tDeletion finished.\n"); fflush(stdout); + printf(_("\tDeletion finished.\n")); fflush(stdout); } if (gdisp->scroll_gc) @@ -436,7 +438,7 @@ gdisplay_idlerender_init (GDisplay *gdisp) { if (gdisp->idle_render.update_areas == NULL) { - g_warning ("Wanted to start idlerender thread with no update_areas. (+memleak)"); + g_warning (_("Wanted to start idlerender thread with no update_areas. (+memleak)")); return; } @@ -1314,57 +1316,57 @@ gdisplay_set_menu_sensitivity (GDisplay *gdisp) type = drawable_type (drawable); } - menus_set_sensitive ("/Layers/Raise Layer", !fs && !aux && lp && alpha); - menus_set_sensitive ("/Layers/Lower Layer", !fs && !aux && lp && alpha); - menus_set_sensitive ("/Layers/Anchor Layer", fs && !aux && lp); - menus_set_sensitive ("/Layers/Merge Visible Layers", !fs && !aux && lp); - menus_set_sensitive ("/Layers/Flatten Image", !fs && !aux && lp); - menus_set_sensitive ("/Layers/Alpha To Selection", !aux && lp && alpha); - menus_set_sensitive ("/Layers/Mask To Selection", !aux && lm && lp); - menus_set_sensitive ("/Layers/Add Alpha Channel", !fs && !aux && lp && !lm && !alpha); + menus_set_sensitive (_("/Layers/Raise Layer"), !fs && !aux && lp && alpha); + menus_set_sensitive (_("/Layers/Lower Layer"), !fs && !aux && lp && alpha); + menus_set_sensitive (_("/Layers/Anchor Layer"), fs && !aux && lp); + menus_set_sensitive (_("/Layers/Merge Visible Layers"), !fs && !aux && lp); + menus_set_sensitive (_("/Layers/Flatten Image"), !fs && !aux && lp); + menus_set_sensitive (_("/Layers/Alpha To Selection"), !aux && lp && alpha); + menus_set_sensitive (_("/Layers/Mask To Selection"), !aux && lm && lp); + menus_set_sensitive (_("/Layers/Add Alpha Channel"), !fs && !aux && lp && !lm && !alpha); - menus_set_sensitive ("/Image/RGB", (base_type != RGB)); - menus_set_sensitive ("/Image/Grayscale", (base_type != GRAY)); - menus_set_sensitive ("/Image/Indexed", (base_type != INDEXED)); + menus_set_sensitive (_("/Image/RGB"), (base_type != RGB)); + menus_set_sensitive (_("/Image/Grayscale"), (base_type != GRAY)); + menus_set_sensitive (_("/Image/Indexed"), (base_type != INDEXED)); - menus_set_sensitive ("/Image/Colors/Threshold", (base_type != INDEXED)); - menus_set_sensitive ("/Image/Colors/Posterize", (base_type != INDEXED)); - menus_set_sensitive ("/Image/Colors/Equalize", (base_type != INDEXED)); - menus_set_sensitive ("/Image/Colors/Invert", (base_type != INDEXED)); + menus_set_sensitive (_("/Image/Colors/Threshold"), (base_type != INDEXED)); + menus_set_sensitive (_("/Image/Colors/Posterize") , (base_type != INDEXED)); + menus_set_sensitive (_("/Image/Colors/Equalize"), (base_type != INDEXED)); + menus_set_sensitive (_("/Image/Colors/Invert"), (base_type != INDEXED)); - menus_set_sensitive ("/Image/Colors/Color Balance", (base_type == RGB)); - menus_set_sensitive ("/Image/Colors/Brightness-Contrast", (base_type != INDEXED)); - menus_set_sensitive ("/Image/Colors/Hue-Saturation", (base_type == RGB)); - menus_set_sensitive ("/Image/Colors/Curves", (base_type != INDEXED)); - menus_set_sensitive ("/Image/Colors/Levels", (base_type != INDEXED)); + menus_set_sensitive (_("/Image/Colors/Color Balance"), (base_type == RGB)); + menus_set_sensitive (_("/Image/Colors/Brightness-Contrast"), (base_type != INDEXED)); + menus_set_sensitive (_("/Image/Colors/Hue-Saturation"), (base_type == RGB)); + menus_set_sensitive (_("/Image/Colors/Curves"), (base_type != INDEXED)); + menus_set_sensitive (_("/Image/Colors/Levels"), (base_type != INDEXED)); - menus_set_sensitive ("/Image/Colors/Desaturate", (base_type == RGB)); + menus_set_sensitive (_("/Image/Colors/Desaturate"), (base_type == RGB)); - menus_set_sensitive ("/Image/Alpha/Add Alpha Channel", !fs && !aux && lp && !lm && !alpha); + menus_set_sensitive (_("/Image/Alpha/Add Alpha Channel"), !fs && !aux && lp && !lm && !alpha); - menus_set_sensitive ("/Select", lp); - menus_set_sensitive ("/Edit/Cut", lp); - menus_set_sensitive ("/Edit/Copy", lp); - menus_set_sensitive ("/Edit/Paste", lp); - menus_set_sensitive ("/Edit/Paste Into", lp); - menus_set_sensitive ("/Edit/Clear", lp); - menus_set_sensitive ("/Edit/Fill", lp); - menus_set_sensitive ("/Edit/Stroke", lp); - menus_set_sensitive ("/Edit/Cut Named", lp); - menus_set_sensitive ("/Edit/Copy Named", lp); - menus_set_sensitive ("/Edit/Paste Named", lp); - menus_set_sensitive ("/Image/Colors", lp); - menus_set_sensitive ("/Image/Channel Ops/Offset", lp); - menus_set_sensitive ("/Image/Histogram", lp); - menus_set_sensitive ("/Filters", lp); + menus_set_sensitive (_("/Select"), lp); + menus_set_sensitive (_("/Edit/Cut"), lp); + menus_set_sensitive (_("/Edit/Copy"), lp); + menus_set_sensitive (_("/Edit/Paste"), lp); + menus_set_sensitive (_("/Edit/Paste Into"), lp); + menus_set_sensitive (_("/Edit/Clear"), lp); + menus_set_sensitive (_("/Edit/Fill"), lp); + menus_set_sensitive (_("/Edit/Stroke"), lp); + menus_set_sensitive (_("/Edit/Cut Named"), lp); + menus_set_sensitive (_("/Edit/Copy Named"), lp); + menus_set_sensitive (_("/Edit/Paste Named"), lp); + menus_set_sensitive (_("/Image/Colors"), lp); + menus_set_sensitive (_("/Image/Channel Ops/Offset"), lp); + menus_set_sensitive (_("/Image/Histogram"), lp); + menus_set_sensitive (_("/Filters"), lp); /* save selection to channel */ - menus_set_sensitive ("/Select/Save To Channel", !fs); + menus_set_sensitive (_("/Select/Save To Channel"), !fs); - menus_set_state ("/View/Toggle Rulers", GTK_WIDGET_VISIBLE (gdisp->origin) ? 1 : 0); - menus_set_state ("/View/Toggle Guides", gdisp->draw_guides); - menus_set_state ("/View/Snap To Guides", gdisp->snap_to_guides); - menus_set_state ("/View/Toggle Statusbar", GTK_WIDGET_VISIBLE (gdisp->statusarea) ? 1 : 0); + menus_set_state (_("/View/Toggle Rulers"), GTK_WIDGET_VISIBLE (gdisp->origin) ? 1 : 0); + menus_set_state (_("/View/Toggle Guides"), gdisp->draw_guides); + menus_set_state (_("/View/Snap To Guides"), gdisp->snap_to_guides); + menus_set_state (_("/View/Toggle Statusbar"), GTK_WIDGET_VISIBLE (gdisp->statusarea) ? 1 : 0); plug_in_set_menu_sensitivity (type); } @@ -1752,7 +1754,7 @@ gdisplays_flush_whenever (gboolean now) /* this prevents multiple recursive calls to this procedure */ if (flushing == TRUE) { - g_warning ("gdisplays_flush() called recursively."); + g_warning (_("gdisplays_flush() called recursively.")); return; } diff --git a/app/gdisplay_ops.c b/app/gdisplay_ops.c index f0a593c1e0..6d00b2eed2 100644 --- a/app/gdisplay_ops.c +++ b/app/gdisplay_ops.c @@ -32,6 +32,7 @@ #include "scale.h" #include "gimprc.h" +#include "libgimp/gimpintl.h" static void gdisplay_close_warning_callback (GtkWidget *, gpointer); static void gdisplay_cancel_warning_callback (GtkWidget *, gpointer); @@ -274,7 +275,7 @@ gdisplay_close_warning_callback (GtkWidget *w, GDisplay *gdisp; GtkWidget *mbox; - menus_set_sensitive ("/File/Close", TRUE); + menus_set_sensitive (_("/File/Close"), TRUE); mbox = (GtkWidget *) client_data; gdisp = (GDisplay *) gtk_object_get_user_data (GTK_OBJECT (mbox)); @@ -293,7 +294,7 @@ gdisplay_cancel_warning_callback (GtkWidget *w, { GtkWidget *mbox; - menus_set_sensitive ("/File/Close", TRUE); + menus_set_sensitive (_("/File/Close"), TRUE); mbox = (GtkWidget *) client_data; gtk_widget_destroy (mbox); } @@ -303,7 +304,7 @@ gdisplay_delete_warning_callback (GtkWidget *widget, GdkEvent *event, gpointer client_data) { - menus_set_sensitive ("/File/Close", TRUE); + menus_set_sensitive (_("/File/Close"), TRUE); return FALSE; } @@ -321,8 +322,8 @@ gdisplay_close_warning_dialog (char *image_name, { static ActionAreaItem mbox_action_items[2] = { - { "Close", gdisplay_close_warning_callback, NULL, NULL }, - { "Cancel", gdisplay_cancel_warning_callback, NULL, NULL } + { N_("Close"), gdisplay_close_warning_callback, NULL, NULL }, + { N_("Cancel"), gdisplay_cancel_warning_callback, NULL, NULL } }; GtkWidget *mbox; GtkWidget *vbox; @@ -339,7 +340,7 @@ gdisplay_close_warning_dialog (char *image_name, return; } - menus_set_sensitive ("/File/Close", FALSE); + menus_set_sensitive (_("/File/Close"), FALSE); warning_dialog = mbox = gtk_dialog_new (); /* should this be image_window or the actual image name??? */ @@ -362,7 +363,7 @@ gdisplay_close_warning_dialog (char *image_name, gtk_widget_show (vbox); warning_buf = (char *) g_malloc (strlen (image_name) + 50); - sprintf (warning_buf, "Changes made to %s. Close anyway?", image_name); + sprintf (warning_buf, _("Changes were made to %s. Close anyway?"), image_name); label = gtk_label_new (warning_buf); gtk_box_pack_start (GTK_BOX (vbox), label, TRUE, FALSE, 0); gtk_widget_show (label); diff --git a/app/gimage.h b/app/gimage.h index 4e02dfbb73..6d9becdd0f 100644 --- a/app/gimage.h +++ b/app/gimage.h @@ -50,6 +50,8 @@ gimage_foreach (GFunc func, gpointer user_data); #define gimage_set_filename gimp_image_set_filename +#define gimage_set_resolution gimp_image_set_resolution +#define gimage_get_resolution gimp_image_get_resolution #define gimage_resize gimp_image_resize #define gimage_scale gimp_image_scale #define gimage_shadow gimp_image_shadow diff --git a/app/gimpchannel.c b/app/gimpchannel.c index e1df961a1a..ef70f5adbd 100644 --- a/app/gimpchannel.c +++ b/app/gimpchannel.c @@ -31,6 +31,8 @@ #include "temp_buf.h" #include "undo.h" +#include "libgimp/gimpintl.h" + #include "channel_pvt.h" #include "tile.h" @@ -182,13 +184,13 @@ channel_copy (Channel *channel) name = channel_get_name(channel); ext = strrchr(name, '#'); channel_name = (char *) g_malloc (strlen (name) + 6); - if ((strlen(name) >= 4 && strcmp(&name[strlen(name) -4], "copy") == 0) || + if ((strlen(name) >= 4 && strcmp(&name[strlen(name) -4], _("copy")) == 0) || (ext && (number = atoi(ext+1)) > 0 && ((int)(log10(number) + 1)) == strlen(ext+1))) /* don't have rudundant "copy"s */ sprintf (channel_name, "%s", name); else - sprintf (channel_name, "%s copy", name); + sprintf (channel_name, N_("%s copy"), name); /* allocate a new channel object */ new_channel = channel_new (GIMP_DRAWABLE(channel)->gimage, @@ -493,7 +495,7 @@ channel_new_mask (GimpImage* gimage, int width, int height) Channel *new_channel; /* Create the new channel */ - new_channel = channel_new (gimage, width, height, "Selection Mask", 127, black); + new_channel = channel_new (gimage, width, height, _("Selection Mask"), 127, black); /* Set the validate procedure */ tile_manager_set_validate_proc (GIMP_DRAWABLE(new_channel)->tiles, channel_validate); diff --git a/app/gimpdrawable-desaturate.c b/app/gimpdrawable-desaturate.c index 14540e8ca5..224c67ddcc 100644 --- a/app/gimpdrawable-desaturate.c +++ b/app/gimpdrawable-desaturate.c @@ -25,6 +25,8 @@ #include "paint_funcs.h" #include "gimage.h" +#include "libgimp/gimpintl.h" + static void desaturate (GimpDrawable *); static Argument * desaturate_invoker (Argument *); @@ -41,7 +43,7 @@ image_desaturate (gimage_ptr) if (! drawable_color (drawable)) { - g_message ("Desaturate operates only on RGB color drawables."); + g_message (_("Desaturate operates only on RGB color drawables.")); return; } desaturate (drawable); @@ -116,19 +118,19 @@ ProcArg desaturate_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") } }; ProcRecord desaturate_proc = { "gimp_desaturate", - "Desaturate the contents of the specified drawable", - "This procedure desaturates the contents of the specified drawable. This procedure only works on drawables of type RGB color.", + N_("Desaturate the contents of the specified drawable"), + N_("This procedure desaturates the contents of the specified drawable. This procedure only works on drawables of type RGB color."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/gimpdrawable-equalize.c b/app/gimpdrawable-equalize.c index ac30babd9b..3426d34fe3 100644 --- a/app/gimpdrawable-equalize.c +++ b/app/gimpdrawable-equalize.c @@ -24,6 +24,8 @@ #include "interface.h" #include "gimage.h" +#include "libgimp/gimpintl.h" + static void equalize (GImage *, GimpDrawable *, int); static void eq_histogram (double [3][256], unsigned char [3][256], int, double); static Argument * equalize_invoker (Argument *); @@ -234,23 +236,23 @@ ProcArg equalize_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_INT32, "mask_only", - "equalization option" + N_("equalization option") } }; ProcRecord equalize_proc = { "gimp_equalize", - "Equalize the contents of the specified drawable", - "This procedure equalizes the contents of the specified drawable. Each intensity channel is equalizeed independently. The equalizeed intensity is given as inten' = (255 - inten). Indexed color drawables are not valid for this operation. The 'mask_only' option specifies whether to adjust only the area of the image within the selection bounds, or the entire image based on the histogram of the selected area. If there is no selection, the entire image is adjusted based on the histogram for the entire image.", + N_("Equalize the contents of the specified drawable"), + N_("This procedure equalizes the contents of the specified drawable. Each intensity channel is equalizeed independently. The equalizeed intensity is given as inten' = (255 - inten). Indexed color drawables are not valid for this operation. The 'mask_only' option specifies whether to adjust only the area of the image within the selection bounds, or the entire image based on the histogram of the selected area. If there is no selection, the entire image is adjusted based on the histogram for the entire image."), "Federico Mena Quintero & Spencer Kimball & Peter Mattis", "Federico Mena Quintero & Spencer Kimball & Peter Mattis", "1996", diff --git a/app/gimpimage-convert.c b/app/gimpimage-convert.c index 3e926b265c..109346db30 100644 --- a/app/gimpimage-convert.c +++ b/app/gimpimage-convert.c @@ -79,6 +79,8 @@ #include "undo.h" #include "palette.h" +#include "libgimp/gimpintl.h" + #include "layer_pvt.h" /* ick. */ #include "drawable_pvt.h" /* ick ick. */ #include "tile_manager_pvt.h" /* ick ick ick. */ @@ -276,8 +278,8 @@ convert_to_grayscale (GimpImage* gimage) /* the action area structure */ static ActionAreaItem action_items[] = { - { "OK", indexed_ok_callback, NULL, NULL }, - { "Cancel", indexed_cancel_callback, NULL, NULL } + { N_("OK"), indexed_ok_callback, NULL, NULL }, + { N_("Cancel"), indexed_cancel_callback, NULL, NULL } }; static void @@ -319,12 +321,12 @@ convert_to_indexed (GimpImage *gimage) dialog->shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (dialog->shell), "indexed_color_conversion", "Gimp"); - gtk_window_set_title (GTK_WINDOW (dialog->shell), "Indexed Color Conversion"); + gtk_window_set_title (GTK_WINDOW (dialog->shell), _("Indexed Color Conversion")); gtk_signal_connect (GTK_OBJECT (dialog->shell), "delete_event", GTK_SIGNAL_FUNC (indexed_delete_callback), dialog); - frame = gtk_frame_new ("Palette Options"); + frame = gtk_frame_new (_("Palette Options")); gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN); gtk_container_border_width (GTK_CONTAINER (frame), 2); gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog->shell)->vbox), frame, TRUE, TRUE, 0); @@ -341,7 +343,7 @@ convert_to_indexed (GimpImage *gimage) gtk_container_border_width (GTK_CONTAINER (vbox), 2); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); - toggle = gtk_radio_button_new_with_label (group, "Generate optimal palette: "); + toggle = gtk_radio_button_new_with_label (group, _("Generate optimal palette: ")); group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle)); gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, TRUE, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -349,7 +351,7 @@ convert_to_indexed (GimpImage *gimage) &(dialog->makepal_flag)); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), dialog->makepal_flag); gtk_widget_show (toggle); - label = gtk_label_new ("# of colors: "); + label = gtk_label_new (_("# of colors: ")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, FALSE, 0); gtk_widget_show (label); @@ -402,7 +404,7 @@ convert_to_indexed (GimpImage *gimage) /* 'custom' palette from dialog */ hbox = gtk_hbox_new (FALSE, 1); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); - toggle = gtk_radio_button_new_with_label (group, "Use custom palette"); + toggle = gtk_radio_button_new_with_label (group, _("Use custom palette")); group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle)); gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, TRUE, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -434,7 +436,7 @@ convert_to_indexed (GimpImage *gimage) { gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); toggle = - gtk_radio_button_new_with_label (group, "Use WWW-optimised palette"); + gtk_radio_button_new_with_label (group, _("Use WWW-optimised palette")); { group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle)); gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, TRUE, 0); @@ -452,7 +454,7 @@ convert_to_indexed (GimpImage *gimage) hbox = gtk_hbox_new (FALSE, 1); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); toggle = - gtk_radio_button_new_with_label (group, "Use black/white (1-bit) palette"); + gtk_radio_button_new_with_label (group, _("Use black/white (1-bit) palette")); group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle)); gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, TRUE, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -462,7 +464,7 @@ convert_to_indexed (GimpImage *gimage) gtk_widget_show (toggle); gtk_widget_show (hbox); - frame = gtk_frame_new ("Dither Options"); + frame = gtk_frame_new (_("Dither Options")); { gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN); gtk_container_border_width (GTK_CONTAINER (frame), 2); @@ -476,7 +478,7 @@ convert_to_indexed (GimpImage *gimage) hbox = gtk_hbox_new (FALSE, 1); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); - toggle = gtk_check_button_new_with_label ("Enable Floyd-Steinberg dithering"); + toggle = gtk_check_button_new_with_label (_("Enable Floyd-Steinberg dithering")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), dialog->dither); gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -500,7 +502,7 @@ convert_to_indexed (GimpImage *gimage) ) ) { - frame = gtk_frame_new (" [ Warning ] "); + frame = gtk_frame_new (_(" [ Warning ] ")); { gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN); gtk_container_border_width (GTK_CONTAINER (frame), 2); @@ -1194,7 +1196,7 @@ generate_histogram_rgb (Histogram histogram, * quantizing at a later stage. */ needs_quantize = TRUE; -/* g_print ("\nmax colours exceeded - needs quantize.\n");*/ +/* g_print (_("\nmax colours exceeded - needs quantize.\n"));*/ goto already_found; } else @@ -2354,8 +2356,8 @@ median_cut_pass2_nodestruct_dither_rgb (QuantizeObj *quantobj, goto got_colour; } } - g_error ("Non-existant colour was expected to " - "be in non-destructive colourmap."); + g_error (_("Non-existant colour was expected to " + "be in non-destructive colourmap.")); got_colour: dest[INDEXED_PIX] = lastindex; if (has_alpha) @@ -2915,15 +2917,15 @@ ProcArg convert_rgb_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") } }; ProcRecord convert_rgb_proc = { "gimp_convert_rgb", - "Convert specified image to RGB color", - "This procedure converts the specified image to RGB color. This process requires an image of type GRAY or INDEXED. No image content is lost in this process aside from the colormap for an indexed image.", + N_("Convert specified image to RGB color"), + N_("This procedure converts the specified image to RGB color. This process requires an image of type GRAY or INDEXED. No image content is lost in this process aside from the colormap for an indexed image."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -2973,15 +2975,15 @@ ProcArg convert_grayscale_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") } }; ProcRecord convert_grayscale_proc = { "gimp_convert_grayscale", - "Convert specified image to grayscale (256 intensity levels)", - "This procedure converts the specified image to grayscale with 8 bits per pixel (256 intensity levels). This process requires an image of type RGB or INDEXED.", + N_("Convert specified image to grayscale (256 intensity levels)"), + N_("This procedure converts the specified image to grayscale with 8 bits per pixel (256 intensity levels). This process requires an image of type RGB or INDEXED."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -3031,23 +3033,23 @@ ProcArg convert_indexed_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_INT32, "dither", - "Floyd-Steinberg dithering" + N_("Floyd-Steinberg dithering") }, { PDB_INT32, "num_cols", - "the number of colors to quantize to" + N_("the number of colors to quantize to") } }; ProcRecord convert_indexed_proc = { "gimp_convert_indexed", - "Convert specified image to indexed color", - "This procedure converts the specified image to indexed color. This process requires an image of type GRAY or RGB. The 'num_cols' arguments specifies how many colors the resulting image should be quantized to (1-256).", + N_("Convert specified image to indexed color"), + N_("This procedure converts the specified image to indexed color. This process requires an image of type GRAY or RGB. The 'num_cols' arguments specifies how many colors the resulting image should be quantized to (1-256)."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -3107,31 +3109,31 @@ ProcArg convert_indexed_palette_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_INT32, "dither", - "Floyd-Steinberg dithering" + N_("Floyd-Steinberg dithering") }, { PDB_INT32, "palette_type", - "The type of palette to use, (0 optimal) (1 reuse) (2 WWW) (3 Mono) (4 Custom)" + N_("The type of palette to use, (0 optimal) (1 reuse) (2 WWW) (3 Mono) (4 Custom)") }, { PDB_INT32, "num_cols", - "the number of colors to quantize to, ignored unless (palette_type == 0)" + N_("the number of colors to quantize to, ignored unless (palette_type == 0)") }, { PDB_STRING, "palette", - "The name of the custom palette to use, ignored unless (palette_type == 4)" + N_("The name of the custom palette to use, ignored unless (palette_type == 4)") } }; ProcRecord convert_indexed_palette_proc = { "gimp_convert_indexed_palette", - "Convert specified image to indexed color", - "This procedure converts the specified image to indexed color. This process requires an image of type GRAY or RGB. The `palette_type' specifies what kind of palette to use, A type of `0' means to use an optimal palette of `num_cols' generated from the colors in the image. A type of `1' means to re-use the previous palette. A type of `2' means to use the WWW-optimized palette. Type `3' means to use only black and white colors. A type of `4' means to use a palette from the gimp palettes directories.", + N_("Convert specified image to indexed color"), + N_("This procedure converts the specified image to indexed color. This process requires an image of type GRAY or RGB. The `palette_type' specifies what kind of palette to use, A type of `0' means to use an optimal palette of `num_cols' generated from the colors in the image. A type of `1' means to re-use the previous palette. A type of `2' means to use the WWW-optimized palette. Type `3' means to use only black and white colors. A type of `4' means to use a palette from the gimp palettes directories."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -3193,7 +3195,7 @@ convert_indexed_palette_invoker (Argument *args) break; case CUSTOM_PALETTE: palette_name = args[4].value.pdb_pointer; - /* fprintf(stderr, "looking for palette `%s'\n", palette_name); */ + /* fprintf(stderr, _("looking for palette `%s'\n"), palette_name); */ if (!palette_entries_list) palette_init_palettes(FALSE); for(list = palette_entries_list; list; diff --git a/app/gui/about-dialog.c b/app/gui/about-dialog.c index 2d7b0482a7..0defdb95a8 100644 --- a/app/gui/about-dialog.c +++ b/app/gui/about-dialog.c @@ -203,7 +203,7 @@ about_dialog_create (int timeout) gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, TRUE, 0); gtk_widget_show (label); - label = gtk_label_new (_("Spencer Kimball and Peter Mattis")); + label = gtk_label_new (_("Spencer Kimball & Peter Mattis")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, TRUE, 0); gtk_widget_show (label); diff --git a/app/gui/brush-editor.c b/app/gui/brush-editor.c index 26f21e9612..7cb8cd09fc 100644 --- a/app/gui/brush-editor.c +++ b/app/gui/brush-editor.c @@ -26,6 +26,7 @@ #include "actionarea.h" #include "math.h" +#include "libgimp/gimpintl.h" static void brush_edit_close_callback (GtkWidget *w, void *data); static gint brush_edit_preview_resize (GtkWidget *widget, GdkEvent *event, @@ -34,7 +35,7 @@ static gint brush_edit_preview_resize (GtkWidget *widget, GdkEvent *event, /* the action area structure */ static ActionAreaItem action_items[] = { - { "Close", brush_edit_close_callback, NULL, NULL } + { N_("Close"), brush_edit_close_callback, NULL, NULL } }; static void @@ -196,7 +197,7 @@ brush_edit_generated_new () begw->shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (begw->shell), "generatedbrusheditor", "Gimp"); - gtk_window_set_title (GTK_WINDOW (begw->shell), "Brush Editor"); + gtk_window_set_title (GTK_WINDOW (begw->shell), _("Brush Editor")); gtk_window_set_policy(GTK_WINDOW(begw->shell), FALSE, TRUE, FALSE); vbox = gtk_vbox_new (FALSE, 1); @@ -236,7 +237,7 @@ brush_edit_generated_new () gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, FALSE, 0); /* brush radius scale */ - label = gtk_label_new ("Radius:"); + label = gtk_label_new (_("Radius:")); gtk_misc_set_alignment (GTK_MISC(label), 1.0, 0.5); /* gtk_table_attach(GTK_TABLE (table), label, 0, 1, 0, 1, 0, 0, 0, 0); */ gtk_table_attach(GTK_TABLE (table), label, 0, 1, 0, 1, 3, 0, 0, 0); @@ -253,7 +254,7 @@ brush_edit_generated_new () /* brush hardness scale */ - label = gtk_label_new ("Hardness:"); + label = gtk_label_new (_("Hardness:")); gtk_misc_set_alignment (GTK_MISC(label), 1.0, 0.5); gtk_table_attach(GTK_TABLE (table), label, 0, 1, 1, 2, 0, 0, 0, 0); begw->hardness_data = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 1.0, 0.01, 0.01, 0.0)); @@ -269,7 +270,7 @@ brush_edit_generated_new () /* brush aspect ratio scale */ - label = gtk_label_new ("Aspect Ratio:"); + label = gtk_label_new (_("Aspect Ratio:")); gtk_misc_set_alignment (GTK_MISC(label), 1.0, 0.5); gtk_table_attach(GTK_TABLE (table), label, 0, 1, 2, 3, 0, 0, 0, 0); begw->aspect_ratio_data = GTK_ADJUSTMENT (gtk_adjustment_new (1.0, 1.0, 20.0, 0.1, 1.0, 0.0)); @@ -285,7 +286,7 @@ brush_edit_generated_new () /* brush angle scale */ - label = gtk_label_new ("Angle:"); + label = gtk_label_new (_("Angle:")); gtk_misc_set_alignment (GTK_MISC(label), 1.0, 0.5); gtk_table_attach(GTK_TABLE (table), label, 0, 1, 3, 4, 0, 0, 0, 0); begw->angle_data = GTK_ADJUSTMENT (gtk_adjustment_new (00.0, 0.0, 180.0, 0.1, 1.0, 0.0)); diff --git a/app/gui/brush-select.c b/app/gui/brush-select.c index 488dd5e03f..14195978a9 100644 --- a/app/gui/brush-select.c +++ b/app/gui/brush-select.c @@ -34,6 +34,7 @@ #include "paint_funcs.h" #include "session.h" +#include "libgimp/gimpintl.h" #define STD_CELL_WIDTH 24 #define STD_CELL_HEIGHT 24 @@ -91,30 +92,30 @@ static void spacing_scale_update (GtkAdjustment *, gpointer); /* the option menu items -- the paint modes */ static MenuItem option_items[] = { - { "Normal", 0, 0, paint_mode_menu_callback, (gpointer) NORMAL_MODE, NULL, NULL }, - { "Dissolve", 0, 0, paint_mode_menu_callback, (gpointer) DISSOLVE_MODE, NULL, NULL }, - { "Behind", 0, 0, paint_mode_menu_callback, (gpointer) BEHIND_MODE, NULL, NULL }, - { "Multiply (Burn)", 0, 0, paint_mode_menu_callback, (gpointer) MULTIPLY_MODE, NULL, NULL }, - { "Divide (Dodge)", 0, 0, paint_mode_menu_callback, (gpointer) DIVIDE_MODE, NULL, NULL }, - { "Screen", 0, 0, paint_mode_menu_callback, (gpointer) SCREEN_MODE, NULL, NULL }, - { "Overlay", 0, 0, paint_mode_menu_callback, (gpointer) OVERLAY_MODE, NULL, NULL }, - { "Difference", 0, 0, paint_mode_menu_callback, (gpointer) DIFFERENCE_MODE, NULL, NULL }, - { "Addition", 0, 0, paint_mode_menu_callback, (gpointer) ADDITION_MODE, NULL, NULL }, - { "Subtract", 0, 0, paint_mode_menu_callback, (gpointer) SUBTRACT_MODE, NULL, NULL }, - { "Darken Only", 0, 0, paint_mode_menu_callback, (gpointer) DARKEN_ONLY_MODE, NULL, NULL }, - { "Lighten Only", 0, 0, paint_mode_menu_callback, (gpointer) LIGHTEN_ONLY_MODE, NULL, NULL }, - { "Hue", 0, 0, paint_mode_menu_callback, (gpointer) HUE_MODE, NULL, NULL }, - { "Saturation", 0, 0, paint_mode_menu_callback, (gpointer) SATURATION_MODE, NULL, NULL }, - { "Color", 0, 0, paint_mode_menu_callback, (gpointer) COLOR_MODE, NULL, NULL }, - { "Value", 0, 0, paint_mode_menu_callback, (gpointer) VALUE_MODE, NULL, NULL }, + { N_("Normal"), 0, 0, paint_mode_menu_callback, (gpointer) NORMAL_MODE, NULL, NULL }, + { N_("Dissolve"), 0, 0, paint_mode_menu_callback, (gpointer) DISSOLVE_MODE, NULL, NULL }, + { N_("Behind"), 0, 0, paint_mode_menu_callback, (gpointer) BEHIND_MODE, NULL, NULL }, + { N_("Multiply (Burn)"), 0, 0, paint_mode_menu_callback, (gpointer) MULTIPLY_MODE, NULL, NULL }, + { N_("Divide (Dodge)"), 0, 0, paint_mode_menu_callback, (gpointer) DIVIDE_MODE, NULL, NULL }, + { N_("Screen"), 0, 0, paint_mode_menu_callback, (gpointer) SCREEN_MODE, NULL, NULL }, + { N_("Overlay"), 0, 0, paint_mode_menu_callback, (gpointer) OVERLAY_MODE, NULL, NULL }, + { N_("Difference"), 0, 0, paint_mode_menu_callback, (gpointer) DIFFERENCE_MODE, NULL, NULL }, + { N_("Addition"), 0, 0, paint_mode_menu_callback, (gpointer) ADDITION_MODE, NULL, NULL }, + { N_("Subtract"), 0, 0, paint_mode_menu_callback, (gpointer) SUBTRACT_MODE, NULL, NULL }, + { N_("Darken Only"), 0, 0, paint_mode_menu_callback, (gpointer) DARKEN_ONLY_MODE, NULL, NULL }, + { N_("Lighten Only"), 0, 0, paint_mode_menu_callback, (gpointer) LIGHTEN_ONLY_MODE, NULL, NULL }, + { N_("Hue"), 0, 0, paint_mode_menu_callback, (gpointer) HUE_MODE, NULL, NULL }, + { N_("Saturation"), 0, 0, paint_mode_menu_callback, (gpointer) SATURATION_MODE, NULL, NULL }, + { N_("Color"), 0, 0, paint_mode_menu_callback, (gpointer) COLOR_MODE, NULL, NULL }, + { N_("Value"), 0, 0, paint_mode_menu_callback, (gpointer) VALUE_MODE, NULL, NULL }, { NULL, 0, 0, NULL, NULL, NULL, NULL } }; /* the action area structure */ static ActionAreaItem action_items[] = { - { "Close", brush_select_close_callback, NULL, NULL }, - { "Refresh", brush_select_refresh_callback, NULL, NULL } + { N_("Close"), brush_select_close_callback, NULL, NULL }, + { N_("Refresh"), brush_select_refresh_callback, NULL, NULL } }; static BrushEditGeneratedWindow *brush_edit_generated_dialog; @@ -186,7 +187,7 @@ brush_select_new (gchar * title, if(!title) { - gtk_window_set_title (GTK_WINDOW (bsp->shell), "Brush Selection"); + gtk_window_set_title (GTK_WINDOW (bsp->shell), _("Brush Selection")); session_set_window_geometry (bsp->shell, &brush_select_session_info, TRUE); } else @@ -254,7 +255,7 @@ brush_select_new (gchar * title, util_box = gtk_hbox_new (FALSE, 5); gtk_box_pack_start (GTK_BOX (bsp->options_box), util_box, FALSE, FALSE, 0); - bsp->brush_name = gtk_label_new ("Active"); + bsp->brush_name = gtk_label_new (_("Active")); gtk_box_pack_start (GTK_BOX (util_box), bsp->brush_name, FALSE, FALSE, 2); bsp->brush_size = gtk_label_new ("(0x0)"); gtk_box_pack_start (GTK_BOX (util_box), bsp->brush_size, FALSE, FALSE, 2); @@ -266,7 +267,7 @@ brush_select_new (gchar * title, /* Create the paint mode option menu */ util_box = gtk_hbox_new (FALSE, 2); gtk_box_pack_start (GTK_BOX (bsp->options_box), util_box, FALSE, FALSE, 0); - label = gtk_label_new ("Mode:"); + label = gtk_label_new (_("Mode:")); gtk_box_pack_start (GTK_BOX (util_box), label, FALSE, FALSE, 2); menu = create_paint_mode_menu (paint_mode_menu_callback,(gpointer)bsp); option_menu = gtk_option_menu_new (); @@ -280,7 +281,7 @@ brush_select_new (gchar * title, /* Create the opacity scale widget */ util_box = gtk_hbox_new (FALSE, 2); gtk_box_pack_start (GTK_BOX (bsp->options_box), util_box, FALSE, FALSE, 0); - label = gtk_label_new ("Opacity:"); + label = gtk_label_new (_("Opacity:")); gtk_box_pack_start (GTK_BOX (util_box), label, FALSE, FALSE, 2); bsp->opacity_data = GTK_ADJUSTMENT (gtk_adjustment_new ((active)?init_opacity:100.0, 0.0, 100.0, 1.0, 1.0, 0.0)); @@ -297,7 +298,7 @@ brush_select_new (gchar * title, util_box = gtk_hbox_new (FALSE, 2); gtk_box_pack_start (GTK_BOX (bsp->options_box), util_box, FALSE, FALSE, 0); - label = gtk_label_new ("Spacing:"); + label = gtk_label_new (_("Spacing:")); gtk_box_pack_start (GTK_BOX (util_box), label, FALSE, FALSE, 2); bsp->spacing_data = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 1000.0, 1.0, 1.0, 0.0)); slider = gtk_hscale_new (bsp->spacing_data); @@ -314,7 +315,7 @@ brush_select_new (gchar * title, /* Create the edit/new buttons */ util_box = gtk_hbox_new (FALSE, 2); gtk_box_pack_start (GTK_BOX (bsp->options_box), util_box, FALSE, FALSE, 0); - bsp->edit_button = gtk_button_new_with_label ("Edit Brush"); + bsp->edit_button = gtk_button_new_with_label (_("Edit Brush")); gtk_signal_connect (GTK_OBJECT (bsp->edit_button), "clicked", (GtkSignalFunc) edit_brush_callback, NULL); @@ -323,7 +324,7 @@ brush_select_new (gchar * title, gtk_box_pack_start (GTK_BOX (util_box), bsp->edit_button, TRUE, TRUE, 5); - button2 = gtk_button_new_with_label ("New Brush"); + button2 = gtk_button_new_with_label (_("New Brush")); gtk_signal_connect (GTK_OBJECT (button2), "clicked", (GtkSignalFunc) new_brush_callback, NULL); @@ -494,7 +495,7 @@ brush_change_callbacks(BrushSelectP bsp, gint closing) PDB_END); if (!return_vals || return_vals[0].value.pdb_int != PDB_SUCCESS) - g_message ("failed to run brush callback function"); + g_message (_("failed to run brush callback function")); procedural_db_destroy_args (return_vals, nreturn_vals); } @@ -1016,8 +1017,8 @@ edit_brush_callback (GtkWidget *w, GdkEvent *e, gpointer data) } } else - g_message("We are all fresh out of brush editors today,\n" - "please write your own or try back tomorrow\n"); + g_message(_("We are all fresh out of brush editors today,\n" + "please write your own or try back tomorrow\n")); return TRUE; } @@ -1270,35 +1271,35 @@ ProcArg brushes_popup_in_args[] = { { PDB_STRING, "brush_callback", - "the callback PDB proc to call when brush selection is made" + N_("the callback PDB proc to call when brush selection is made") }, { PDB_STRING, "popup title", - "title to give the popup window", + N_("title to give the popup window"), }, { PDB_STRING, "initial brush", - "The name of the brush to set as the first selected", + N_("The name of the brush to set as the first selected"), }, { PDB_FLOAT, "initial opacity", - "The initial opacity of the brush", + N_("The initial opacity of the brush"), }, { PDB_INT32, "initial spacing", - "The initial spacing of the brush (if < 0 then use brush default spacing)", + N_("The initial spacing of the brush (if < 0 then use brush default spacing)"), }, { PDB_INT32, "initial paint mode", - "The initial paint mode: { NORMAL (0), DISSOLVE (1), BEHIND (2), MULTIPLY/BURN (3), SCREEN (4), OVERLAY (5) DIFFERENCE (6), ADDITION (7), SUBTRACT (8), DARKEN-ONLY (9), LIGHTEN-ONLY (10), HUE (11), SATURATION (12), COLOR (13), VALUE (14), DIVIDE/DODGE (15) }", + N_("The initial paint mode: { NORMAL (0), DISSOLVE (1), BEHIND (2), MULTIPLY/BURN (3), SCREEN (4), OVERLAY (5) DIFFERENCE (6), ADDITION (7), SUBTRACT (8), DARKEN-ONLY (9), LIGHTEN-ONLY (10), HUE (11), SATURATION (12), COLOR (13), VALUE (14), DIVIDE/DODGE (15) }"), }, }; ProcRecord brushes_popup_proc = { "gimp_brushes_popup", - "Invokes the Gimp brush selection", - "This procedure popups the brush selection dialog", + N_("Invokes the Gimp brush selection"), + N_("This procedure popups the brush selection dialog"), "Andy Thomas", "Andy Thomas", "1998", diff --git a/app/gui/channels-dialog.c b/app/gui/channels-dialog.c index 5c378f34b8..fd282c50fc 100644 --- a/app/gui/channels-dialog.c +++ b/app/gui/channels-dialog.c @@ -51,6 +51,8 @@ #include "tools/delete.xpm" #include "tools/delete_is.xpm" +#include "libgimp/gimpintl.h" + #include "channel_pvt.h" @@ -159,17 +161,17 @@ static int button_last_id = 0; static MenuItem channels_ops[] = { - { "New Channel", 'N', GDK_CONTROL_MASK, + { N_("New Channel"), 'N', GDK_CONTROL_MASK, channels_dialog_new_channel_callback, NULL, NULL, NULL }, - { "Raise Channel", 'F', GDK_CONTROL_MASK, + { N_("Raise Channel"), 'F', GDK_CONTROL_MASK, channels_dialog_raise_channel_callback, NULL, NULL, NULL }, - { "Lower Channel", 'B', GDK_CONTROL_MASK, + { N_("Lower Channel"), 'B', GDK_CONTROL_MASK, channels_dialog_lower_channel_callback, NULL, NULL, NULL }, - { "Duplicate Channel", 'C', GDK_CONTROL_MASK, + { N_("Duplicate Channel"), 'C', GDK_CONTROL_MASK, channels_dialog_duplicate_channel_callback, NULL, NULL, NULL }, - { "Delete Channel", 'X', GDK_CONTROL_MASK, + { N_("Delete Channel"), 'X', GDK_CONTROL_MASK, channels_dialog_delete_channel_callback, NULL, NULL, NULL }, - { "Channel To Selection", 'S', GDK_CONTROL_MASK, + { N_("Channel To Selection"), 'S', GDK_CONTROL_MASK, channels_dialog_channel_to_sel_callback, NULL, NULL, NULL }, { NULL, 0, 0, NULL, NULL, NULL, NULL }, }; @@ -177,11 +179,11 @@ static MenuItem channels_ops[] = /* the ops buttons */ static OpsButton channels_ops_buttons[] = { - { new_xpm, new_is_xpm, channels_dialog_new_channel_callback, "New Channel", NULL, NULL, NULL, NULL, NULL, NULL }, - { raise_xpm, raise_is_xpm, channels_dialog_raise_channel_callback, "Raise Channel", NULL, NULL, NULL, NULL, NULL, NULL }, - { lower_xpm, lower_is_xpm, channels_dialog_lower_channel_callback, "Lower Channel", NULL, NULL, NULL, NULL, NULL, NULL }, - { duplicate_xpm, duplicate_is_xpm, channels_dialog_duplicate_channel_callback, "Duplicate Channel", NULL, NULL, NULL, NULL, NULL, NULL }, - { delete_xpm, delete_is_xpm, channels_dialog_delete_channel_callback, "Delete Channel", NULL, NULL, NULL, NULL, NULL, NULL }, + { new_xpm, new_is_xpm, channels_dialog_new_channel_callback, N_("New Channel"), NULL, NULL, NULL, NULL, NULL, NULL }, + { raise_xpm, raise_is_xpm, channels_dialog_raise_channel_callback, N_("Raise Channel"), NULL, NULL, NULL, NULL, NULL, NULL }, + { lower_xpm, lower_is_xpm, channels_dialog_lower_channel_callback, N_("Lower Channel"), NULL, NULL, NULL, NULL, NULL, NULL }, + { duplicate_xpm, duplicate_is_xpm, channels_dialog_duplicate_channel_callback, N_("Duplicate Channel"), NULL, NULL, NULL, NULL, NULL, NULL }, + { delete_xpm, delete_is_xpm, channels_dialog_delete_channel_callback, N_("Delete Channel"), NULL, NULL, NULL, NULL, NULL, NULL }, { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL} }; @@ -608,7 +610,7 @@ channels_dialog_set_channel (ChannelWidget *channel_widget) gtk_list_select_item (GTK_LIST (channelsD->channel_list), 2); break; case Auxillary: - g_error ("error in %s at %d: this shouldn't happen.", + g_error (_("error in %s at %d: this shouldn't happen."), __FILE__, __LINE__); break; } @@ -662,7 +664,7 @@ channels_dialog_unset_channel (ChannelWidget * channel_widget) gtk_list_unselect_item (GTK_LIST (channelsD->channel_list), 2); break; case Auxillary: - g_error ("error in %s at %d: this shouldn't happen.", + g_error (_("error in %s at %d: this shouldn't happen."), __FILE__, __LINE__); break; } @@ -1065,11 +1067,11 @@ create_channel_widget (GImage *gimage, /* the channel name label */ switch (channel_widget->type) { - case Red: channel_widget->label = gtk_label_new ("Red"); break; - case Green: channel_widget->label = gtk_label_new ("Green"); break; - case Blue: channel_widget->label = gtk_label_new ("Blue"); break; - case Gray: channel_widget->label = gtk_label_new ("Gray"); break; - case Indexed: channel_widget->label = gtk_label_new ("Indexed"); break; + case Red: channel_widget->label = gtk_label_new (_("Red")); break; + case Green: channel_widget->label = gtk_label_new (_("Green")); break; + case Blue: channel_widget->label = gtk_label_new (_("Blue")); break; + case Gray: channel_widget->label = gtk_label_new (_("Gray")); break; + case Indexed: channel_widget->label = gtk_label_new (_("Indexed")); break; case Auxillary: channel_widget->label = gtk_label_new (channel_get_name(channel)); break; } @@ -1772,8 +1774,8 @@ channels_dialog_new_channel_query (GimpImage* gimage) { static ActionAreaItem action_items[2] = { - { "OK", new_channel_query_ok_callback, NULL, NULL }, - { "Cancel", new_channel_query_cancel_callback, NULL, NULL } + { N_("OK"), new_channel_query_ok_callback, NULL, NULL }, + { N_("Cancel"), new_channel_query_cancel_callback, NULL, NULL } }; NewChannelOptions *options; GtkWidget *vbox; @@ -1791,7 +1793,7 @@ channels_dialog_new_channel_query (GimpImage* gimage) /* the dialog */ options->query_box = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (options->query_box), "new_channel_options", "Gimp"); - gtk_window_set_title (GTK_WINDOW (options->query_box), "New Channel Options"); + gtk_window_set_title (GTK_WINDOW (options->query_box), _("New Channel Options")); gtk_window_position (GTK_WINDOW (options->query_box), GTK_WIN_POS_MOUSE); /* handle the wm close signal */ @@ -1809,7 +1811,7 @@ channels_dialog_new_channel_query (GimpImage* gimage) gtk_box_pack_start (GTK_BOX (vbox), table, TRUE, TRUE, 0); /* the name entry hbox, label and entry */ - label = gtk_label_new ("Channel name: "); + label = gtk_label_new (_("Channel name: ")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1, GTK_SHRINK | GTK_FILL, GTK_SHRINK, 0, 1); @@ -1819,11 +1821,11 @@ channels_dialog_new_channel_query (GimpImage* gimage) gtk_widget_set_usize (options->name_entry, 75, 0); gtk_table_attach (GTK_TABLE (table), options->name_entry, 1, 2, 0, 1, GTK_EXPAND | GTK_SHRINK | GTK_FILL, GTK_SHRINK, 1, 1); - gtk_entry_set_text (GTK_ENTRY (options->name_entry), (channel_name ? channel_name : "New Channel")); + gtk_entry_set_text (GTK_ENTRY (options->name_entry), (channel_name ? channel_name : _("New Channel"))); gtk_widget_show (options->name_entry); /* the opacity scale */ - label = gtk_label_new ("Fill Opacity: "); + label = gtk_label_new (_("Fill Opacity: ")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2, GTK_SHRINK | GTK_FILL, GTK_SHRINK, 0, 1); @@ -1945,8 +1947,8 @@ channels_dialog_edit_channel_query (ChannelWidget *channel_widget) { static ActionAreaItem action_items[2] = { - { "OK", edit_channel_query_ok_callback, NULL, NULL }, - { "Cancel", edit_channel_query_cancel_callback, NULL, NULL } + { N_("OK"), edit_channel_query_ok_callback, NULL, NULL }, + { N_("Cancel"), edit_channel_query_cancel_callback, NULL, NULL } }; EditChannelOptions *options; GtkWidget *vbox; @@ -1970,7 +1972,7 @@ channels_dialog_edit_channel_query (ChannelWidget *channel_widget) /* the dialog */ options->query_box = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (options->query_box), "edit_channel_atributes", "Gimp"); - gtk_window_set_title (GTK_WINDOW (options->query_box), "Edit Channel Attributes"); + gtk_window_set_title (GTK_WINDOW (options->query_box), _("Edit Channel Attributes")); gtk_window_position (GTK_WINDOW (options->query_box), GTK_WIN_POS_MOUSE); /* deal with the wm close signal */ @@ -1990,7 +1992,7 @@ channels_dialog_edit_channel_query (ChannelWidget *channel_widget) hbox = gtk_hbox_new (FALSE, 1); gtk_table_attach (GTK_TABLE (table), hbox, 0, 1, 0, 1, GTK_EXPAND | GTK_FILL, 0, 2, 2); - label = gtk_label_new ("Channel name:"); + label = gtk_label_new (_("Channel name:")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); options->name_entry = gtk_entry_new (); @@ -2005,7 +2007,7 @@ channels_dialog_edit_channel_query (ChannelWidget *channel_widget) gtk_table_attach (GTK_TABLE (table), hbox, 0, 1, 1, 2, GTK_EXPAND | GTK_FILL, 0, 2, 2); - label = gtk_label_new ("Fill Opacity"); + label = gtk_label_new (_("Fill Opacity")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); diff --git a/app/gui/color-select.c b/app/gui/color-select.c index 6a3fbcb07e..e68219090f 100644 --- a/app/gui/color-select.c +++ b/app/gui/color-select.c @@ -26,6 +26,8 @@ #include "session.h" #include "color_area.h" /* for color_area_draw_rect */ +#include "libgimp/gimpintl.h" + #define XY_DEF_WIDTH 240 #define XY_DEF_HEIGHT 240 #define Z_DEF_WIDTH 15 @@ -133,8 +135,8 @@ static ColorSelectFillUpdateProc update_procs[] = static ActionAreaItem action_items[2] = { - { "OK", color_select_ok_callback, NULL, NULL }, - { "Cancel", color_select_cancel_callback, NULL, NULL }, + { N_("OK"), color_select_ok_callback, NULL, NULL }, + { N_("Cancel"), color_select_cancel_callback, NULL, NULL }, }; ColorSelectP @@ -183,7 +185,7 @@ color_select_new (int r, csp->shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (csp->shell), "color_selection", "Gimp"); - gtk_window_set_title (GTK_WINDOW (csp->shell), "Color Selection"); + gtk_window_set_title (GTK_WINDOW (csp->shell), _("Color Selection")); gtk_window_set_policy (GTK_WINDOW (csp->shell), FALSE, FALSE, FALSE); @@ -335,7 +337,7 @@ color_select_new (int r, csp); gtk_widget_show (csp->hex_entry); - label = gtk_label_new ("Hex Triplet:"); + label = gtk_label_new (_("Hex Triplet:")); gtk_box_pack_end (GTK_BOX (hex_hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -344,13 +346,13 @@ color_select_new (int r, action_items[1].user_data = csp; if (csp->wants_updates) { - action_items[0].label = "Close"; - action_items[1].label = "Revert to Old Color"; + action_items[0].label = _("Close"); + action_items[1].label = _("Revert to Old Color"); } else { - action_items[0].label = "OK"; - action_items[1].label = "Cancel"; + action_items[0].label = _("OK"); + action_items[1].label = _("Cancel"); } build_action_area (GTK_DIALOG (csp->shell), action_items, 2, 0); diff --git a/app/gui/commands.c b/app/gui/commands.c index d6916e1060..8afb09cecc 100644 --- a/app/gui/commands.c +++ b/app/gui/commands.c @@ -67,6 +67,8 @@ #include "tools.h" #include "undo.h" +#include "libgimp/gimpintl.h" + typedef struct { GtkWidget * shell; @@ -360,7 +362,7 @@ select_border_cmd_callback (GtkWidget *widget, gdisp = gdisplay_active (); sprintf (initial, "%d", gimage_mask_border_radius); - query_string_box ("Border Selection", "Border selection by:", initial, + query_string_box (_("Border Selection"), _("Border selection by:"), initial, gimage_mask_border_callback, gdisp->gimage); } @@ -374,7 +376,7 @@ select_feather_cmd_callback (GtkWidget *widget, gdisp = gdisplay_active (); sprintf (initial, "%f", gimage_mask_feather_radius); - query_string_box ("Feather Selection", "Feather selection by:", initial, + query_string_box (_("Feather Selection"), _("Feather selection by:"), initial, gimage_mask_feather_callback, gdisp->gimage); } @@ -388,7 +390,7 @@ select_grow_cmd_callback (GtkWidget *widget, gdisp = gdisplay_active (); sprintf (initial, "%d", gimage_mask_grow_pixels); - query_string_box ("Grow Selection", "Grow selection by:", initial, + query_string_box (_("Grow Selection"), _("Grow selection by:"), initial, gimage_mask_grow_callback, gdisp->gimage); } @@ -402,7 +404,7 @@ select_shrink_cmd_callback (GtkWidget *widget, gdisp = gdisplay_active (); sprintf (initial, "%d", gimage_mask_shrink_pixels); - query_string_box ("Shrink Selection", "Shrink selection by:", initial, + query_string_box (_("Shrink Selection"), _("Shrink selection by:"), initial, gimage_mask_shrink_callback, gdisp->gimage); } @@ -736,8 +738,8 @@ image_resize_cmd_callback (GtkWidget *widget, { static ActionAreaItem action_items[2] = { - { "OK", image_resize_callback, NULL, NULL }, - { "Cancel", image_cancel_callback, NULL, NULL } + { N_("OK"), image_resize_callback, NULL, NULL }, + { N_("Cancel"), image_cancel_callback, NULL, NULL } }; GDisplay * gdisp; GtkWidget *vbox; @@ -753,7 +755,7 @@ image_resize_cmd_callback (GtkWidget *widget, /* the dialog */ image_resize->shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (image_resize->shell), "image_resize", "Gimp"); - gtk_window_set_title (GTK_WINDOW (image_resize->shell), "Image Resize"); + gtk_window_set_title (GTK_WINDOW (image_resize->shell), _("Image Resize")); gtk_window_set_policy (GTK_WINDOW (image_resize->shell), FALSE, FALSE, TRUE); gtk_window_position (GTK_WINDOW (image_resize->shell), GTK_WIN_POS_MOUSE); @@ -783,8 +785,8 @@ image_scale_cmd_callback (GtkWidget *widget, { static ActionAreaItem action_items[2] = { - { "OK", image_scale_callback, NULL, NULL }, - { "Cancel", image_cancel_callback, NULL, NULL } + { N_("OK"), image_scale_callback, NULL, NULL }, + { N_("Cancel"), image_cancel_callback, NULL, NULL } }; GDisplay * gdisp; GtkWidget *vbox; @@ -800,7 +802,7 @@ image_scale_cmd_callback (GtkWidget *widget, /* the dialog */ image_scale->shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (image_scale->shell), "image_scale", "Gimp"); - gtk_window_set_title (GTK_WINDOW (image_scale->shell), "Image Scale"); + gtk_window_set_title (GTK_WINDOW (image_scale->shell), _("Image Scale")); gtk_window_set_policy (GTK_WINDOW (image_scale->shell), FALSE, FALSE, TRUE); gtk_window_position (GTK_WINDOW (image_scale->shell), GTK_WIN_POS_MOUSE); @@ -1096,7 +1098,7 @@ image_resize_callback (GtkWidget *w, } else { - g_message ("Resize Error: Both width and height must be greater than zero."); + g_message (_("Resize Error: Both width and height must be greater than zero.")); return; } } @@ -1126,7 +1128,7 @@ image_scale_callback (GtkWidget *w, } else { - g_message ("Scale Error: Both width and height must be greater than zero."); + g_message (_("Scale Error: Both width and height must be greater than zero.")); return; } } diff --git a/app/gui/device-status-dialog.c b/app/gui/device-status-dialog.c index bf2daef09c..f1c1479b97 100644 --- a/app/gui/device-status-dialog.c +++ b/app/gui/device-status-dialog.c @@ -30,6 +30,8 @@ #include "session.h" #include "tools.h" +#include "libgimp/gimpintl.h" + #define CELL_SIZE 20 /* The size of the preview cells */ #define PREVIEW_EVENT_MASK GDK_EXPOSURE_MASK | \ GDK_BUTTON_PRESS_MASK | \ @@ -113,8 +115,8 @@ int current_device = GDK_CORE_POINTER; /* the action area structure */ static ActionAreaItem action_items[] = { - { "Close", devices_close_callback, NULL, NULL }, - { "Save", (ActionCallback)devices_write_rc, NULL, NULL }, + { N_("Close"), devices_close_callback, NULL, NULL }, + { N_("Save"), (ActionCallback)devices_write_rc, NULL, NULL }, }; void @@ -351,7 +353,7 @@ devices_rc_update (gchar *name, DeviceValues values, } else { - g_warning ("devices_rc_update called multiple times for not present device\n"); + g_warning (_("devices_rc_update called multiple times for not present device\n")); return; } } @@ -650,7 +652,7 @@ create_device_status (void) deviceD = g_new (DeviceInfoDialog, 1); deviceD->shell = gtk_dialog_new (); - gtk_window_set_title (GTK_WINDOW(deviceD->shell), "Device Status"); + gtk_window_set_title (GTK_WINDOW(deviceD->shell), _("Device Status")); gtk_window_set_policy (GTK_WINDOW (deviceD->shell), FALSE, FALSE, TRUE); session_set_window_geometry (deviceD->shell, &device_status_session_info, TRUE); @@ -1022,7 +1024,7 @@ device_preview_events (GtkWidget *widget, if(tmp_list == NULL) { - g_message("Failed to find device_info\n"); + g_message(_("Failed to find device_info\n")); break; /* Error no device info */ } diff --git a/app/gui/file-new-dialog.c b/app/gui/file-new-dialog.c index b964439ed3..22427cf489 100644 --- a/app/gui/file-new-dialog.c +++ b/app/gui/file-new-dialog.c @@ -14,6 +14,8 @@ #include "tile_manager_pvt.h" #include "gdisplay.h" +#include "libgimp/gimpintl.h" + typedef struct { GtkWidget *dlg; GtkWidget *height_spinbutton; @@ -117,7 +119,7 @@ file_new_ok_callback (GtkWidget *widget, /* Make the background (or first) layer */ layer = layer_new (gimage, gimage->width, gimage->height, - type, "Background", OPAQUE_OPACITY, NORMAL); + type, _("Background"), OPAQUE_OPACITY, NORMAL); if (layer) { /* add the new layer to the gimage */ @@ -472,7 +474,7 @@ file_new_cmd_callback (GtkWidget *widget, vals->dlg = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (vals->dlg), "new_image", "Gimp"); - gtk_window_set_title (GTK_WINDOW (vals->dlg), "New Image"); + gtk_window_set_title (GTK_WINDOW (vals->dlg), _("New Image")); gtk_window_position (GTK_WINDOW (vals->dlg), GTK_WIN_POS_MOUSE); /* handle the wm close signal */ @@ -482,7 +484,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_container_border_width (GTK_CONTAINER (GTK_DIALOG (vals->dlg)->action_area), 2); - button = gtk_button_new_with_label ("OK"); + button = gtk_button_new_with_label (_("OK")); GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT); gtk_signal_connect (GTK_OBJECT (button), "clicked", (GtkSignalFunc) file_new_ok_callback, @@ -492,7 +494,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_widget_grab_default (button); gtk_widget_show (button); - button = gtk_button_new_with_label ("Cancel"); + button = gtk_button_new_with_label (_("Cancel")); GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT); gtk_signal_connect (GTK_OBJECT (button), "clicked", (GtkSignalFunc) file_new_cancel_callback, @@ -515,13 +517,13 @@ file_new_cmd_callback (GtkWidget *widget, gtk_widget_show (table); /* label for top of table, Width */ - label = gtk_label_new ("Width"); + label = gtk_label_new (_("Width")); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1, GTK_FILL, GTK_FILL, 0, 0); gtk_widget_show (label); /* Label for top of table, Height */ - label = gtk_label_new ("Height"); + label = gtk_label_new (_("Height")); gtk_table_attach (GTK_TABLE (table), label, 1, 2, 0, 1, GTK_FILL, GTK_FILL, 0, 0); gtk_widget_show (label); @@ -584,7 +586,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_widget_show (vals->height_units_spinbutton); /* Label for right hand side of pixel size boxes */ - label = gtk_label_new ("Pixels"); + label = gtk_label_new (_("Pixels")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label , 2, 3, 1, 2, GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0); @@ -592,12 +594,12 @@ file_new_cmd_callback (GtkWidget *widget, /* menu and menu items for the units pop-up menu for the units entries */ menu = gtk_menu_new(); - menuitem = gtk_menu_item_new_with_label ("inches"); + menuitem = gtk_menu_item_new_with_label (_("inches")); gtk_menu_append (GTK_MENU (menu), menuitem); gtk_signal_connect (GTK_OBJECT (menuitem), "activate", (GtkSignalFunc) file_new_units_inch_menu_callback, vals); gtk_widget_show(menuitem); - menuitem = gtk_menu_item_new_with_label ("cm"); + menuitem = gtk_menu_item_new_with_label (_("cm")); gtk_menu_append (GTK_MENU (menu), menuitem); gtk_signal_connect (GTK_OBJECT (menuitem), "activate", (GtkSignalFunc) file_new_units_cm_menu_callback, vals); @@ -610,7 +612,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_widget_show(optionmenu); /* resolution frame */ - frame = gtk_frame_new ("Resolution"); + frame = gtk_frame_new (_("Resolution")); gtk_box_pack_start (GTK_BOX (vbox), frame, TRUE, TRUE, 0); gtk_widget_show (frame); @@ -633,7 +635,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_widget_show (vals->resolution_spinbutton); /* resolution label */ - label =gtk_label_new (" pixels per "); + label =gtk_label_new (_(" pixels per ")); gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, TRUE, 0); gtk_widget_show (label); @@ -645,12 +647,12 @@ file_new_cmd_callback (GtkWidget *widget, */ /* probabaly should be more general here */ - menuitem = gtk_menu_item_new_with_label ("inch"); + menuitem = gtk_menu_item_new_with_label (_("inch")); gtk_menu_append (GTK_MENU (menu), menuitem); gtk_signal_connect (GTK_OBJECT (menuitem), "activate", (GtkSignalFunc) file_new_res_units_inch_callback, vals); gtk_widget_show(menuitem); - menuitem = gtk_menu_item_new_with_label ("cm"); + menuitem = gtk_menu_item_new_with_label (_("cm")); gtk_signal_connect (GTK_OBJECT (menuitem), "activate", (GtkSignalFunc) file_new_res_units_cm_callback, vals); gtk_menu_append (GTK_MENU (menu), menuitem); @@ -669,7 +671,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_widget_show(hbox); /* frame for Image Type */ - frame = gtk_frame_new ("Image Type"); + frame = gtk_frame_new (_("Image Type")); gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0); gtk_widget_show (frame); @@ -679,7 +681,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_container_add (GTK_CONTAINER (frame), radio_box); gtk_widget_show (radio_box); - button = gtk_radio_button_new_with_label (NULL, "RGB"); + button = gtk_radio_button_new_with_label (NULL, _("RGB")); group = gtk_radio_button_group (GTK_RADIO_BUTTON (button)); gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0); gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) RGB); @@ -690,7 +692,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE); gtk_widget_show (button); - button = gtk_radio_button_new_with_label (group, "Grayscale"); + button = gtk_radio_button_new_with_label (group, _("Grayscale")); group = gtk_radio_button_group (GTK_RADIO_BUTTON (button)); gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0); gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) GRAY); @@ -703,7 +705,7 @@ file_new_cmd_callback (GtkWidget *widget, /* frame for fill type */ - frame = gtk_frame_new ("Fill Type"); + frame = gtk_frame_new (_("Fill Type")); gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0); gtk_widget_show (frame); @@ -712,7 +714,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_container_add (GTK_CONTAINER (frame), radio_box); gtk_widget_show (radio_box); - button = gtk_radio_button_new_with_label (NULL, "Foreground"); + button = gtk_radio_button_new_with_label (NULL, _("Foreground")); group = gtk_radio_button_group (GTK_RADIO_BUTTON (button)); gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0); gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) FOREGROUND_FILL); @@ -723,7 +725,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE); gtk_widget_show (button); - button = gtk_radio_button_new_with_label (group, "Background"); + button = gtk_radio_button_new_with_label (group, _("Background")); group = gtk_radio_button_group (GTK_RADIO_BUTTON (button)); gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0); gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) BACKGROUND_FILL); @@ -734,7 +736,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE); gtk_widget_show (button); - button = gtk_radio_button_new_with_label (group, "White"); + button = gtk_radio_button_new_with_label (group, _("White")); group = gtk_radio_button_group (GTK_RADIO_BUTTON (button)); gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0); gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) WHITE_FILL); @@ -745,7 +747,7 @@ file_new_cmd_callback (GtkWidget *widget, gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), TRUE); gtk_widget_show (button); - button = gtk_radio_button_new_with_label (group, "Transparent"); + button = gtk_radio_button_new_with_label (group, _("Transparent")); group = gtk_radio_button_group (GTK_RADIO_BUTTON (button)); gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0); gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) TRANSPARENT_FILL); diff --git a/app/gui/help-commands.c b/app/gui/help-commands.c index d6916e1060..8afb09cecc 100644 --- a/app/gui/help-commands.c +++ b/app/gui/help-commands.c @@ -67,6 +67,8 @@ #include "tools.h" #include "undo.h" +#include "libgimp/gimpintl.h" + typedef struct { GtkWidget * shell; @@ -360,7 +362,7 @@ select_border_cmd_callback (GtkWidget *widget, gdisp = gdisplay_active (); sprintf (initial, "%d", gimage_mask_border_radius); - query_string_box ("Border Selection", "Border selection by:", initial, + query_string_box (_("Border Selection"), _("Border selection by:"), initial, gimage_mask_border_callback, gdisp->gimage); } @@ -374,7 +376,7 @@ select_feather_cmd_callback (GtkWidget *widget, gdisp = gdisplay_active (); sprintf (initial, "%f", gimage_mask_feather_radius); - query_string_box ("Feather Selection", "Feather selection by:", initial, + query_string_box (_("Feather Selection"), _("Feather selection by:"), initial, gimage_mask_feather_callback, gdisp->gimage); } @@ -388,7 +390,7 @@ select_grow_cmd_callback (GtkWidget *widget, gdisp = gdisplay_active (); sprintf (initial, "%d", gimage_mask_grow_pixels); - query_string_box ("Grow Selection", "Grow selection by:", initial, + query_string_box (_("Grow Selection"), _("Grow selection by:"), initial, gimage_mask_grow_callback, gdisp->gimage); } @@ -402,7 +404,7 @@ select_shrink_cmd_callback (GtkWidget *widget, gdisp = gdisplay_active (); sprintf (initial, "%d", gimage_mask_shrink_pixels); - query_string_box ("Shrink Selection", "Shrink selection by:", initial, + query_string_box (_("Shrink Selection"), _("Shrink selection by:"), initial, gimage_mask_shrink_callback, gdisp->gimage); } @@ -736,8 +738,8 @@ image_resize_cmd_callback (GtkWidget *widget, { static ActionAreaItem action_items[2] = { - { "OK", image_resize_callback, NULL, NULL }, - { "Cancel", image_cancel_callback, NULL, NULL } + { N_("OK"), image_resize_callback, NULL, NULL }, + { N_("Cancel"), image_cancel_callback, NULL, NULL } }; GDisplay * gdisp; GtkWidget *vbox; @@ -753,7 +755,7 @@ image_resize_cmd_callback (GtkWidget *widget, /* the dialog */ image_resize->shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (image_resize->shell), "image_resize", "Gimp"); - gtk_window_set_title (GTK_WINDOW (image_resize->shell), "Image Resize"); + gtk_window_set_title (GTK_WINDOW (image_resize->shell), _("Image Resize")); gtk_window_set_policy (GTK_WINDOW (image_resize->shell), FALSE, FALSE, TRUE); gtk_window_position (GTK_WINDOW (image_resize->shell), GTK_WIN_POS_MOUSE); @@ -783,8 +785,8 @@ image_scale_cmd_callback (GtkWidget *widget, { static ActionAreaItem action_items[2] = { - { "OK", image_scale_callback, NULL, NULL }, - { "Cancel", image_cancel_callback, NULL, NULL } + { N_("OK"), image_scale_callback, NULL, NULL }, + { N_("Cancel"), image_cancel_callback, NULL, NULL } }; GDisplay * gdisp; GtkWidget *vbox; @@ -800,7 +802,7 @@ image_scale_cmd_callback (GtkWidget *widget, /* the dialog */ image_scale->shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (image_scale->shell), "image_scale", "Gimp"); - gtk_window_set_title (GTK_WINDOW (image_scale->shell), "Image Scale"); + gtk_window_set_title (GTK_WINDOW (image_scale->shell), _("Image Scale")); gtk_window_set_policy (GTK_WINDOW (image_scale->shell), FALSE, FALSE, TRUE); gtk_window_position (GTK_WINDOW (image_scale->shell), GTK_WIN_POS_MOUSE); @@ -1096,7 +1098,7 @@ image_resize_callback (GtkWidget *w, } else { - g_message ("Resize Error: Both width and height must be greater than zero."); + g_message (_("Resize Error: Both width and height must be greater than zero.")); return; } } @@ -1126,7 +1128,7 @@ image_scale_callback (GtkWidget *w, } else { - g_message ("Scale Error: Both width and height must be greater than zero."); + g_message (_("Scale Error: Both width and height must be greater than zero.")); return; } } diff --git a/app/gui/input-dialog.c b/app/gui/input-dialog.c index bf2daef09c..f1c1479b97 100644 --- a/app/gui/input-dialog.c +++ b/app/gui/input-dialog.c @@ -30,6 +30,8 @@ #include "session.h" #include "tools.h" +#include "libgimp/gimpintl.h" + #define CELL_SIZE 20 /* The size of the preview cells */ #define PREVIEW_EVENT_MASK GDK_EXPOSURE_MASK | \ GDK_BUTTON_PRESS_MASK | \ @@ -113,8 +115,8 @@ int current_device = GDK_CORE_POINTER; /* the action area structure */ static ActionAreaItem action_items[] = { - { "Close", devices_close_callback, NULL, NULL }, - { "Save", (ActionCallback)devices_write_rc, NULL, NULL }, + { N_("Close"), devices_close_callback, NULL, NULL }, + { N_("Save"), (ActionCallback)devices_write_rc, NULL, NULL }, }; void @@ -351,7 +353,7 @@ devices_rc_update (gchar *name, DeviceValues values, } else { - g_warning ("devices_rc_update called multiple times for not present device\n"); + g_warning (_("devices_rc_update called multiple times for not present device\n")); return; } } @@ -650,7 +652,7 @@ create_device_status (void) deviceD = g_new (DeviceInfoDialog, 1); deviceD->shell = gtk_dialog_new (); - gtk_window_set_title (GTK_WINDOW(deviceD->shell), "Device Status"); + gtk_window_set_title (GTK_WINDOW(deviceD->shell), _("Device Status")); gtk_window_set_policy (GTK_WINDOW (deviceD->shell), FALSE, FALSE, TRUE); session_set_window_geometry (deviceD->shell, &device_status_session_info, TRUE); @@ -1022,7 +1024,7 @@ device_preview_events (GtkWidget *widget, if(tmp_list == NULL) { - g_message("Failed to find device_info\n"); + g_message(_("Failed to find device_info\n")); break; /* Error no device info */ } diff --git a/app/gui/menus.c b/app/gui/menus.c index 8caeb61268..d4718a6dd6 100644 --- a/app/gui/menus.c +++ b/app/gui/menus.c @@ -35,7 +35,7 @@ #include "libgimp/gimpintl.h" -#define MRU_MENU_ENTRY_SIZE sizeof (N_("/File/MRU00")) +#define MRU_MENU_ENTRY_SIZE sizeof ("/File/MRU00 ") #define MRU_MENU_ACCEL_SIZE sizeof ("0") static void menus_init (void); @@ -79,7 +79,6 @@ static GtkItemFactoryEntry image_entries[] = { N_("/File/Preferences..."), NULL, file_pref_cmd_callback, 0 }, { N_("/File/---"), NULL, NULL, 0, "" }, - { N_("/File/Close"), "W", file_close_cmd_callback, 0 }, { N_("/File/Quit"), "Q", file_quit_cmd_callback, 0 }, { N_("/File/---"), NULL, NULL, 0, "" }, @@ -310,7 +309,7 @@ menus_tools_create (ToolInfo *tool_info) /* entry.path = g_strconcat ("", tool_info->menu_path, NULL);*/ /* entry.callback_data = tool_info; */ - entry.path = tool_info->menu_path; + entry.path = gettext(tool_info->menu_path); entry.accelerator = tool_info->menu_accel; entry.callback = tools_select_cmd_callback; entry.callback_action = tool_info->tool_id; @@ -340,12 +339,12 @@ menus_set_sensitive (char *path, if (ifactory) { widget = gtk_item_factory_get_widget (ifactory, path); - + gtk_widget_set_sensitive (widget, sensitive); } if (!ifactory || !widget) printf (_("Unable to set sensitivity for menu which doesn't exist:\n%s"), path); -} +} void menus_set_state (char *path, @@ -509,9 +508,7 @@ menus_init_mru () gtk_item_factory_create_items_ac (toolbox_factory, last_opened_size, last_opened_entries, NULL, 2); - gtk_item_factory_create_item (toolbox_factory, &file_menu_separator, NULL, 2); - gtk_item_factory_create_item (toolbox_factory, &toolbox_end, NULL, 2); - + for (i=0; i < last_opened_size; i++) { widget = gtk_item_factory_get_widget (toolbox_factory, @@ -540,6 +537,14 @@ menus_init_toolbox () translated_entries, NULL, 2); free_translated_entries(translated_entries, n_toolbox_entries); menus_init_mru (); + + translated_entries=translate_entries(&file_menu_separator,1); + gtk_item_factory_create_item (toolbox_factory, translated_entries, NULL, 2); + free_translated_entries(translated_entries, 1); + + translated_entries=translate_entries(&toolbox_end,1); + gtk_item_factory_create_item (toolbox_factory, translated_entries, NULL, 2); + free_translated_entries(translated_entries, 1); } static GtkItemFactoryEntry * diff --git a/app/gui/palette-editor.c b/app/gui/palette-editor.c index 8e449cf1ed..8587be1598 100644 --- a/app/gui/palette-editor.c +++ b/app/gui/palette-editor.c @@ -59,6 +59,7 @@ struct _Palette { GtkWidget *color_area; GtkWidget *color_name; GtkWidget *palette_ops; + GtkWidget *clist; GdkGC *gc; GtkAdjustment *sbar_data; PaletteEntriesP entries; @@ -110,6 +111,8 @@ static int num_palette_entries = 0; static unsigned char foreground[3] = { 0, 0, 0 }; static unsigned char background[3] = { 255, 255, 255 }; +static PaletteEntriesP p_entries = NULL; + /* Color select dialog */ /* static ColorSelectP color_select = NULL; static int color_select_active = 0; */ @@ -146,11 +149,13 @@ palettes_free () void palette_create () { + /* why isnt this stuff in the Palette struct? */ GtkWidget *vbox; GtkWidget *hbox; GtkWidget *sbar; GtkWidget *frame; GtkWidget *options_box; + GtkWidget *clist_box; GtkWidget *arrow_hbox; GtkWidget *label; GtkWidget *arrow; @@ -167,7 +172,7 @@ palette_create () palette->color_select = NULL; palette->color_select_active = 0; palette->scroll_offset = 0; - palette->gc = NULL; + palette->gc = NULL;\ palette->updating = FALSE; /* The shell and main vbox */ @@ -189,6 +194,10 @@ palette_create () options_box = gtk_hbox_new (FALSE, 1); gtk_box_pack_start (GTK_BOX (vbox), options_box, FALSE, FALSE, 0); + /* the clist box */ + clist_box = gtk_hbox_new(FALSE, 1); + gtk_box_pack_start(GTK_BOX(vbox), clist_box, FALSE, FALSE, 0); + /* The popup menu -- palette_ops */ for (i = 0; palette_ops[i].label; i++) palette_ops[i].user_data = palette; @@ -216,11 +225,28 @@ palette_create () gtk_widget_show (menu_bar_item); gtk_widget_show (menu_bar); + /* the clist */ + palette->clist = gtk_clist_new(1); /* one column */ + /* dont forget the callback */ + /* It isn't necessary to shadow the border, but it looks nice :) */ + gtk_clist_set_border(GTK_CLIST(palette->clist), GTK_SHADOW_OUT); + gtk_clist_set_column_width (GTK_CLIST(palette->clist), 0, 100); + /* slap the clist in place of the option menu for testing */ + gtk_box_pack_start (GTK_BOX (clist_box), palette->clist, TRUE, TRUE, 0); + gtk_widget_show(palette->clist); + + gtk_signal_connect(GTK_OBJECT(palette->clist), "select_row", + GTK_SIGNAL_FUNC(palette_entries_set_callback), + (gpointer) p_entries); + + /* The option menu */ - palette->option_menu = gtk_option_menu_new (); - gtk_box_pack_start (GTK_BOX (options_box), palette->option_menu, TRUE, TRUE, 0); - gtk_widget_show (palette->option_menu); - gtk_widget_show (options_box); + /* slap both of them into that box for now... */ +/* palette->option_menu = gtk_option_menu_new (); */ +/* gtk_box_pack_start (GTK_BOX (options_box), palette->option_menu, TRUE, TRUE, 0); */ +/* gtk_widget_show (palette->option_menu); */ + /* gtk_widget_show (options_box); */ + gtk_widget_show(clist_box); /* The active color name */ palette->color_name = gtk_entry_new (); @@ -442,7 +468,7 @@ palette_create_palette_menu (PaletteP palette, { GtkWidget *menu_item; GSList *list; - PaletteEntriesP p_entries = NULL; + /* PaletteEntriesP p_entries = NULL; */ PaletteEntriesP found_entries = NULL; int i = 0; int default_index = -1; @@ -468,12 +494,18 @@ palette_create_palette_menu (PaletteP palette, default_index = i; } - menu_item = gtk_menu_item_new_with_label (p_entries->name); - gtk_signal_connect (GTK_OBJECT (menu_item), "activate", - (GtkSignalFunc) palette_entries_set_callback, - (gpointer) p_entries); - gtk_container_add (GTK_CONTAINER (palette->menu), menu_item); - gtk_widget_show (menu_item); + /* add each palette to the clist */ + /* casting? */ + gtk_clist_append( (GtkCList*)(palette->clist), &p_entries->name); + + + + /* menu_item = gtk_menu_item_new_with_label (p_entries->name); */ +/* gtk_signal_connect (GTK_OBJECT (menu_item), "activate", */ +/* (GtkSignalFunc) palette_entries_set_callback, */ +/* (gpointer) p_entries); */ +/* gtk_container_add (GTK_CONTAINER (palette->menu), menu_item); */ +/* gtk_widget_show (menu_item); */ i++; } diff --git a/app/gui/plug-in-commands.c b/app/gui/plug-in-commands.c index 1dcc01f5e0..d3f184da83 100644 --- a/app/gui/plug-in-commands.c +++ b/app/gui/plug-in-commands.c @@ -59,6 +59,8 @@ #include "tile.h" /* ick. */ +#include "libgimp/gimpintl.h" + #define SEPARATE_PROGRESS_BAR @@ -161,17 +163,17 @@ static ProcArg progress_init_args[] = { { PDB_STRING, "message", - "Message to use in the progress dialog." }, + N_("Message to use in the progress dialog.") }, { PDB_INT32, "gdisplay", - "GDisplay to update progressbar in, or -1 for a seperate window" } + N_("GDisplay to update progressbar in, or -1 for a seperate window") } }; static ProcRecord progress_init_proc = { "gimp_progress_init", - "Initializes the progress bar for the current plug-in", - "Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Initializes the progress bar for the current plug-in"), + N_("Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -187,14 +189,14 @@ static ProcArg progress_update_args[] = { { PDB_FLOAT, "percentage", - "Percentage of progress completed" } + N_("Percentage of progress completed") } }; static ProcRecord progress_update_proc = { "gimp_progress_update", - "Updates the progress bar for the current plug-in", - "Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Updates the progress bar for the current plug-in"), + N_("Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -211,14 +213,14 @@ static ProcArg message_args[] = { { PDB_STRING, "message", - "Message to display in the dialog." } + N_("Message to display in the dialog.") } }; static ProcRecord message_proc = { "gimp_message", - "Displays a dialog box with a message", - "Displays a dialog box with a message. Useful for status or error reporting.", + N_("Displays a dialog box with a message"), + N_("Displays a dialog box with a message. Useful for status or error reporting."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -235,14 +237,14 @@ static ProcArg message_handler_get_out_args[] = { { PDB_INT32, "handler", - "the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_get_proc = { "gimp_message_handler_get", - "Returns the current state of where warning messages are displayed.", - "This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Returns the current state of where warning messages are displayed."), + N_("This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -258,14 +260,14 @@ static ProcArg message_handler_set_args[] = { { PDB_INT32, "handler", - "the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_set_proc = { "gimp_message_handler_set", - "Controls where warning messages are displayed.", - "This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Controls where warning messages are displayed."), + N_("This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -281,15 +283,15 @@ static ProcArg plugin_temp_PDB_name_out_args[] = { { PDB_STRING, "Temp name", - "A unique temporary name for a temporary PDB entry name", + N_("A unique temporary name for a temporary PDB entry name"), }, }; static ProcRecord plugin_temp_PDB_name_proc = { "gimp_temp_PDB_name", - "Generates a unique temporary PDB name", - "This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name.", + N_("Generates a unique temporary PDB name"), + N_("This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name."), "Andy Thomas", "Andy Thomas", "1998", @@ -340,13 +342,13 @@ plug_in_init () { shm_ID = shmget (IPC_PRIVATE, TILE_WIDTH * TILE_HEIGHT * 4, IPC_CREAT | 0777); if (shm_ID == -1) - g_message ("shmget failed...disabling shared memory tile transport\n"); + g_message (_("shmget failed...disabling shared memory tile transport\n")); else { shm_addr = (guchar*) shmat (shm_ID, 0, 0); if (shm_addr == (guchar*) -1) { - g_message ("shmat failed...disabling shared memory tile transport\n"); + g_message (_("shmat failed...disabling shared memory tile transport\n")); shm_ID = -1; } @@ -372,14 +374,14 @@ plug_in_init () else sprintf (filename, "%s/pluginrc", gimp_directory ()); - app_init_update_status("Resource configuration", filename, -1); + app_init_update_status(_("Resource configuration"), filename, -1); parse_gimprc_file (filename); /* query any plug-ins that have changed since we last wrote out * the pluginrc file. */ tmp = plug_in_defs; - app_init_update_status("Plug-ins", "", 0); + app_init_update_status(_("Plug-ins"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -391,7 +393,7 @@ plug_in_init () { write_pluginrc = TRUE; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("query plug-in: \"%s\"\n", plug_in_def->prog); + g_print (_("query plug-in: \"%s\"\n"), plug_in_def->prog); plug_in_query (plug_in_def->prog, plug_in_def); } app_init_update_status(NULL, plug_in_def->prog, nth/nplugins); @@ -428,7 +430,7 @@ plug_in_init () if (write_pluginrc) { if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("writing \"%s\"\n", filename); + g_print (_("writing \"%s\"\n"), filename); plug_in_write_rc (filename); } @@ -441,8 +443,8 @@ plug_in_init () /* run the available extensions */ tmp = proc_defs; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("Starting extensions: "); - app_init_update_status("Extensions", "", 0); + g_print (_("Starting extensions: ")); + app_init_update_status(_("Extensions"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -729,7 +731,7 @@ plug_in_def_add (PlugInDef *plug_in_def) } write_pluginrc = TRUE; - g_print ("\"%s\" executable not found\n", plug_in_def->prog); + g_print (_("\"%s\" executable not found\n"), plug_in_def->prog); g_free (plug_in_def->prog); g_free (plug_in_def); } @@ -782,7 +784,7 @@ plug_in_new (char *name) path = search_in_path (plug_in_path, name); if (!path) { - g_message ("unable to locate plug-in: \"%s\"", name); + g_message (_("unable to locate plug-in: \"%s\""), name); return NULL; } } @@ -879,7 +881,7 @@ plug_in_open (PlugIn *plug_in) */ if ((pipe (my_read) == -1) || (pipe (my_write) == -1)) { - g_message ("unable to open pipe"); + g_message (_("unable to open pipe")); return 0; } @@ -927,7 +929,7 @@ plug_in_open (PlugIn *plug_in) } else if (plug_in->pid == -1) { - g_message ("unable to run plug-in: %s\n", plug_in->args[0]); + g_message (_("unable to run plug-in: %s\n"), plug_in->args[0]); plug_in_destroy (plug_in); return 0; } @@ -1263,8 +1265,8 @@ plug_in_set_menu_sensitivity (int base_type) menus_set_sensitive (proc_def->menu_path, sensitive); if (last_plug_in && (last_plug_in == &(proc_def->db_info))) { - menus_set_sensitive ("/Filters/Repeat last", sensitive); - menus_set_sensitive ("/Filters/Re-show last", sensitive); + menus_set_sensitive (_("/Filters/Repeat last"), sensitive); + menus_set_sensitive (_("/Filters/Re-show last"), sensitive); } } } @@ -1303,18 +1305,18 @@ plug_in_handle_message (WireMessage *msg) plug_in_handle_quit (); break; case GP_CONFIG: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_REQ: plug_in_handle_tile_req (msg->data); break; case GP_TILE_ACK: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_DATA: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_PROC_RUN: @@ -1325,7 +1327,7 @@ plug_in_handle_message (WireMessage *msg) plug_in_close (current_plug_in, FALSE); break; case GP_TEMP_PROC_RUN: - g_message ("plug_in_handle_message(): received a temp proc run message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a temp proc run message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TEMP_PROC_RETURN: @@ -1372,21 +1374,21 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_DATA) { - g_message ("expected tile data and received: %d\n", msg.type); + g_message (_("expected tile data and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1400,7 +1402,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1408,7 +1410,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_info->tile_num, TRUE, TRUE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1423,7 +1425,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) wire_destroy (&msg); if (!gp_tile_ack_write (current_writefd)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1437,7 +1439,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1445,7 +1447,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_req->tile_num, TRUE, FALSE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1465,7 +1467,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1474,14 +1476,14 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_ACK) { - g_message ("expected tile ack and received: %d\n", msg.type); + g_message (_("expected tile ack and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1505,7 +1507,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!proc_rec) { /* THIS IS PROBABLY NOT CORRECT -josh */ - g_message ("PDB lookup failed on %s\n", proc_run->name); + g_message (_("PDB lookup failed on %s\n"), proc_run->name); plug_in_args_destroy (args, proc_run->nparams, FALSE); return; } @@ -1529,7 +1531,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!gp_proc_return_write (current_writefd, &proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1573,7 +1575,7 @@ plug_in_handle_proc_return (GPProcReturn *proc_return) plug_in_push (blocked->plug_in); if (!gp_proc_return_write (current_writefd, proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1612,8 +1614,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) if ((proc_install->nparams < 1) || (proc_install->params[0].type != PDB_INT32)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1625,8 +1627,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_IMAGE) || (proc_install->params[2].type != PDB_DRAWABLE)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1638,8 +1640,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_STRING) || (proc_install->params[2].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1653,17 +1655,17 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[3].type != PDB_STRING) || (proc_install->params[4].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } } else { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" in " + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" in " "an invalid menu location. Use either \"\", \"\", " - "\"\", or \"\".", + "\"\", or \"\"."), current_plug_in->args[0], proc_install->name); return; } @@ -1681,9 +1683,9 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) proc_install->params[i].type == PDB_STRINGARRAY) && proc_install->params[i-1].type != PDB_INT32) { - g_message ("plug_in \"%s\" attempted to install procedure \"%s\" " + g_message (_("plug_in \"%s\" attempted to install procedure \"%s\" " "which fails to comply with the array parameter " - "passing standard. Argument %d is noncompliant.", + "passing standard. Argument %d is noncompliant."), current_plug_in->args[0], proc_install->name, i); return; } @@ -2091,7 +2093,7 @@ plug_in_init_file (char *filename) if (strcmp (name, plug_in_name) == 0) { - g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename); + g_print (_("duplicate plug-in: \"%s\" (skipping)\n"), filename); return; } @@ -2265,7 +2267,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the plug-in!"); + g_message (_("Uh-oh, no active gdisplay for the plug-in!")); g_free (args); return; } @@ -2286,7 +2288,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the temporary procedure!"); + g_message (_("Uh-oh, no active gdisplay for the temporary procedure!")); g_free (args); return; } @@ -2294,7 +2296,7 @@ plug_in_callback (GtkWidget *widget, break; default: - g_error ("Unknown procedure type."); + g_error (_("Unknown procedure type.")); break; } @@ -2600,7 +2602,7 @@ plug_in_params_to_args (GPParam *params, colorarray[2] = params[i].data.d_color.blue; break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: args[i].value.pdb_int = params[i].data.d_display; @@ -2765,7 +2767,7 @@ plug_in_args_to_params (Argument *args, } break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: params[i].data.d_display = args[i].value.pdb_int; @@ -2882,7 +2884,7 @@ plug_in_params_destroy (GPParam *params, case PDB_COLOR: break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -2967,7 +2969,7 @@ plug_in_args_destroy (Argument *args, g_free (args[i].value.pdb_pointer); break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -3156,7 +3158,7 @@ plug_in_progress_init (PlugIn *plug_in, gtk_box_pack_start (GTK_BOX (vbox), plug_in->progress_bar, TRUE, TRUE, 0); gtk_widget_show (plug_in->progress_bar); - button = gtk_button_new_with_label ("Cancel"); + button = gtk_button_new_with_label (_("Cancel")); gtk_signal_connect_object (GTK_OBJECT (button), "clicked", (GtkSignalFunc) gtk_widget_destroy, GTK_OBJECT (plug_in->progress)); diff --git a/app/gui/plug-in-menus.c b/app/gui/plug-in-menus.c index 1dcc01f5e0..d3f184da83 100644 --- a/app/gui/plug-in-menus.c +++ b/app/gui/plug-in-menus.c @@ -59,6 +59,8 @@ #include "tile.h" /* ick. */ +#include "libgimp/gimpintl.h" + #define SEPARATE_PROGRESS_BAR @@ -161,17 +163,17 @@ static ProcArg progress_init_args[] = { { PDB_STRING, "message", - "Message to use in the progress dialog." }, + N_("Message to use in the progress dialog.") }, { PDB_INT32, "gdisplay", - "GDisplay to update progressbar in, or -1 for a seperate window" } + N_("GDisplay to update progressbar in, or -1 for a seperate window") } }; static ProcRecord progress_init_proc = { "gimp_progress_init", - "Initializes the progress bar for the current plug-in", - "Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Initializes the progress bar for the current plug-in"), + N_("Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -187,14 +189,14 @@ static ProcArg progress_update_args[] = { { PDB_FLOAT, "percentage", - "Percentage of progress completed" } + N_("Percentage of progress completed") } }; static ProcRecord progress_update_proc = { "gimp_progress_update", - "Updates the progress bar for the current plug-in", - "Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Updates the progress bar for the current plug-in"), + N_("Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -211,14 +213,14 @@ static ProcArg message_args[] = { { PDB_STRING, "message", - "Message to display in the dialog." } + N_("Message to display in the dialog.") } }; static ProcRecord message_proc = { "gimp_message", - "Displays a dialog box with a message", - "Displays a dialog box with a message. Useful for status or error reporting.", + N_("Displays a dialog box with a message"), + N_("Displays a dialog box with a message. Useful for status or error reporting."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -235,14 +237,14 @@ static ProcArg message_handler_get_out_args[] = { { PDB_INT32, "handler", - "the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_get_proc = { "gimp_message_handler_get", - "Returns the current state of where warning messages are displayed.", - "This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Returns the current state of where warning messages are displayed."), + N_("This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -258,14 +260,14 @@ static ProcArg message_handler_set_args[] = { { PDB_INT32, "handler", - "the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_set_proc = { "gimp_message_handler_set", - "Controls where warning messages are displayed.", - "This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Controls where warning messages are displayed."), + N_("This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -281,15 +283,15 @@ static ProcArg plugin_temp_PDB_name_out_args[] = { { PDB_STRING, "Temp name", - "A unique temporary name for a temporary PDB entry name", + N_("A unique temporary name for a temporary PDB entry name"), }, }; static ProcRecord plugin_temp_PDB_name_proc = { "gimp_temp_PDB_name", - "Generates a unique temporary PDB name", - "This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name.", + N_("Generates a unique temporary PDB name"), + N_("This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name."), "Andy Thomas", "Andy Thomas", "1998", @@ -340,13 +342,13 @@ plug_in_init () { shm_ID = shmget (IPC_PRIVATE, TILE_WIDTH * TILE_HEIGHT * 4, IPC_CREAT | 0777); if (shm_ID == -1) - g_message ("shmget failed...disabling shared memory tile transport\n"); + g_message (_("shmget failed...disabling shared memory tile transport\n")); else { shm_addr = (guchar*) shmat (shm_ID, 0, 0); if (shm_addr == (guchar*) -1) { - g_message ("shmat failed...disabling shared memory tile transport\n"); + g_message (_("shmat failed...disabling shared memory tile transport\n")); shm_ID = -1; } @@ -372,14 +374,14 @@ plug_in_init () else sprintf (filename, "%s/pluginrc", gimp_directory ()); - app_init_update_status("Resource configuration", filename, -1); + app_init_update_status(_("Resource configuration"), filename, -1); parse_gimprc_file (filename); /* query any plug-ins that have changed since we last wrote out * the pluginrc file. */ tmp = plug_in_defs; - app_init_update_status("Plug-ins", "", 0); + app_init_update_status(_("Plug-ins"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -391,7 +393,7 @@ plug_in_init () { write_pluginrc = TRUE; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("query plug-in: \"%s\"\n", plug_in_def->prog); + g_print (_("query plug-in: \"%s\"\n"), plug_in_def->prog); plug_in_query (plug_in_def->prog, plug_in_def); } app_init_update_status(NULL, plug_in_def->prog, nth/nplugins); @@ -428,7 +430,7 @@ plug_in_init () if (write_pluginrc) { if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("writing \"%s\"\n", filename); + g_print (_("writing \"%s\"\n"), filename); plug_in_write_rc (filename); } @@ -441,8 +443,8 @@ plug_in_init () /* run the available extensions */ tmp = proc_defs; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("Starting extensions: "); - app_init_update_status("Extensions", "", 0); + g_print (_("Starting extensions: ")); + app_init_update_status(_("Extensions"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -729,7 +731,7 @@ plug_in_def_add (PlugInDef *plug_in_def) } write_pluginrc = TRUE; - g_print ("\"%s\" executable not found\n", plug_in_def->prog); + g_print (_("\"%s\" executable not found\n"), plug_in_def->prog); g_free (plug_in_def->prog); g_free (plug_in_def); } @@ -782,7 +784,7 @@ plug_in_new (char *name) path = search_in_path (plug_in_path, name); if (!path) { - g_message ("unable to locate plug-in: \"%s\"", name); + g_message (_("unable to locate plug-in: \"%s\""), name); return NULL; } } @@ -879,7 +881,7 @@ plug_in_open (PlugIn *plug_in) */ if ((pipe (my_read) == -1) || (pipe (my_write) == -1)) { - g_message ("unable to open pipe"); + g_message (_("unable to open pipe")); return 0; } @@ -927,7 +929,7 @@ plug_in_open (PlugIn *plug_in) } else if (plug_in->pid == -1) { - g_message ("unable to run plug-in: %s\n", plug_in->args[0]); + g_message (_("unable to run plug-in: %s\n"), plug_in->args[0]); plug_in_destroy (plug_in); return 0; } @@ -1263,8 +1265,8 @@ plug_in_set_menu_sensitivity (int base_type) menus_set_sensitive (proc_def->menu_path, sensitive); if (last_plug_in && (last_plug_in == &(proc_def->db_info))) { - menus_set_sensitive ("/Filters/Repeat last", sensitive); - menus_set_sensitive ("/Filters/Re-show last", sensitive); + menus_set_sensitive (_("/Filters/Repeat last"), sensitive); + menus_set_sensitive (_("/Filters/Re-show last"), sensitive); } } } @@ -1303,18 +1305,18 @@ plug_in_handle_message (WireMessage *msg) plug_in_handle_quit (); break; case GP_CONFIG: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_REQ: plug_in_handle_tile_req (msg->data); break; case GP_TILE_ACK: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_DATA: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_PROC_RUN: @@ -1325,7 +1327,7 @@ plug_in_handle_message (WireMessage *msg) plug_in_close (current_plug_in, FALSE); break; case GP_TEMP_PROC_RUN: - g_message ("plug_in_handle_message(): received a temp proc run message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a temp proc run message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TEMP_PROC_RETURN: @@ -1372,21 +1374,21 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_DATA) { - g_message ("expected tile data and received: %d\n", msg.type); + g_message (_("expected tile data and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1400,7 +1402,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1408,7 +1410,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_info->tile_num, TRUE, TRUE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1423,7 +1425,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) wire_destroy (&msg); if (!gp_tile_ack_write (current_writefd)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1437,7 +1439,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1445,7 +1447,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_req->tile_num, TRUE, FALSE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1465,7 +1467,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1474,14 +1476,14 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_ACK) { - g_message ("expected tile ack and received: %d\n", msg.type); + g_message (_("expected tile ack and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1505,7 +1507,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!proc_rec) { /* THIS IS PROBABLY NOT CORRECT -josh */ - g_message ("PDB lookup failed on %s\n", proc_run->name); + g_message (_("PDB lookup failed on %s\n"), proc_run->name); plug_in_args_destroy (args, proc_run->nparams, FALSE); return; } @@ -1529,7 +1531,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!gp_proc_return_write (current_writefd, &proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1573,7 +1575,7 @@ plug_in_handle_proc_return (GPProcReturn *proc_return) plug_in_push (blocked->plug_in); if (!gp_proc_return_write (current_writefd, proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1612,8 +1614,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) if ((proc_install->nparams < 1) || (proc_install->params[0].type != PDB_INT32)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1625,8 +1627,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_IMAGE) || (proc_install->params[2].type != PDB_DRAWABLE)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1638,8 +1640,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_STRING) || (proc_install->params[2].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1653,17 +1655,17 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[3].type != PDB_STRING) || (proc_install->params[4].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } } else { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" in " + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" in " "an invalid menu location. Use either \"\", \"\", " - "\"\", or \"\".", + "\"\", or \"\"."), current_plug_in->args[0], proc_install->name); return; } @@ -1681,9 +1683,9 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) proc_install->params[i].type == PDB_STRINGARRAY) && proc_install->params[i-1].type != PDB_INT32) { - g_message ("plug_in \"%s\" attempted to install procedure \"%s\" " + g_message (_("plug_in \"%s\" attempted to install procedure \"%s\" " "which fails to comply with the array parameter " - "passing standard. Argument %d is noncompliant.", + "passing standard. Argument %d is noncompliant."), current_plug_in->args[0], proc_install->name, i); return; } @@ -2091,7 +2093,7 @@ plug_in_init_file (char *filename) if (strcmp (name, plug_in_name) == 0) { - g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename); + g_print (_("duplicate plug-in: \"%s\" (skipping)\n"), filename); return; } @@ -2265,7 +2267,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the plug-in!"); + g_message (_("Uh-oh, no active gdisplay for the plug-in!")); g_free (args); return; } @@ -2286,7 +2288,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the temporary procedure!"); + g_message (_("Uh-oh, no active gdisplay for the temporary procedure!")); g_free (args); return; } @@ -2294,7 +2296,7 @@ plug_in_callback (GtkWidget *widget, break; default: - g_error ("Unknown procedure type."); + g_error (_("Unknown procedure type.")); break; } @@ -2600,7 +2602,7 @@ plug_in_params_to_args (GPParam *params, colorarray[2] = params[i].data.d_color.blue; break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: args[i].value.pdb_int = params[i].data.d_display; @@ -2765,7 +2767,7 @@ plug_in_args_to_params (Argument *args, } break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: params[i].data.d_display = args[i].value.pdb_int; @@ -2882,7 +2884,7 @@ plug_in_params_destroy (GPParam *params, case PDB_COLOR: break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -2967,7 +2969,7 @@ plug_in_args_destroy (Argument *args, g_free (args[i].value.pdb_pointer); break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -3156,7 +3158,7 @@ plug_in_progress_init (PlugIn *plug_in, gtk_box_pack_start (GTK_BOX (vbox), plug_in->progress_bar, TRUE, TRUE, 0); gtk_widget_show (plug_in->progress_bar); - button = gtk_button_new_with_label ("Cancel"); + button = gtk_button_new_with_label (_("Cancel")); gtk_signal_connect_object (GTK_OBJECT (button), "clicked", (GtkSignalFunc) gtk_widget_destroy, GTK_OBJECT (plug_in->progress)); diff --git a/app/gui/preferences-dialog.c b/app/gui/preferences-dialog.c index ac1430f6fb..ceec12c061 100644 --- a/app/gui/preferences-dialog.c +++ b/app/gui/preferences-dialog.c @@ -48,6 +48,7 @@ #include "tools.h" #include "undo.h" +#include "libgimp/gimpintl.h" typedef struct { @@ -205,25 +206,25 @@ file_prefs_ok_callback (GtkWidget *widget, if (levels_of_undo < 0) { - g_message ("Error: Levels of undo must be zero or greater."); + g_message (_("Error: Levels of undo must be zero or greater.")); levels_of_undo = old_levels_of_undo; return; } if (marching_speed < 50) { - g_message ("Error: Marching speed must be 50 or greater."); + g_message (_("Error: Marching speed must be 50 or greater.")); marching_speed = old_marching_speed; return; } if (default_width < 1) { - g_message ("Error: Default width must be one or greater."); + g_message (_("Error: Default width must be one or greater.")); default_width = old_default_width; return; } if (default_height < 1) { - g_message ("Error: Default height must be one or greater."); + g_message (_("Error: Default height must be one or greater.")); default_height = old_default_height; return; } @@ -430,7 +431,7 @@ file_prefs_save_callback (GtkWidget *widget, gradient_path = save_gradient_path; if (restart_notification) - g_message ("You will need to restart GIMP for these changes to take effect."); + g_message (_("You will need to restart GIMP for these changes to take effect.")); g_list_free (update); g_list_free (remove); @@ -644,18 +645,18 @@ file_pref_cmd_callback (GtkWidget *widget, GSList *group; char *transparencies[] = { - "Light Checks", - "Mid-Tone Checks", - "Dark Checks", - "White Only", - "Gray Only", - "Black Only", + N_("Light Checks"), + N_("Mid-Tone Checks"), + N_("Dark Checks"), + N_("White Only"), + N_("Gray Only"), + N_("Black Only"), }; char *checks[] = { - "Small Checks", - "Medium Checks", - "Large Checks", + N_("Small Checks"), + N_("Medium Checks"), + N_("Large Checks"), }; int transparency_vals[] = { @@ -677,32 +678,32 @@ file_pref_cmd_callback (GtkWidget *widget, int unit; } mem_size_units[] = { - {"Bytes", 1}, - {"KiloBytes", 1024}, - {"MegaBytes", (1024*1024)} + {N_("Bytes"), 1}, + {N_("KiloBytes"), 1024}, + {N_("MegaBytes"), (1024*1024)} }; struct { char *label; char **mpath; } dirs[] = { - {"Temp dir:", &edit_temp_path}, - {"Swap dir:", &edit_swap_path}, - {"Brushes dir:", &edit_brush_path}, - {"Gradients dir:", &edit_gradient_path}, - {"Patterns dir:", &edit_pattern_path}, - {"Palette dir:", &edit_palette_path}, - {"Plug-in dir:", &edit_plug_in_path} + {N_("Temp dir:"), &edit_temp_path}, + {N_("Swap dir:"), &edit_swap_path}, + {N_("Brushes dir:"), &edit_brush_path}, + {N_("Gradients dir:"), &edit_gradient_path}, + {N_("Patterns dir:"), &edit_pattern_path}, + {N_("Palette dir:"), &edit_palette_path}, + {N_("Plug-in dir:"), &edit_plug_in_path} }; struct { char *label; int size; } preview_sizes[] = { - {"None",0}, - {"Small",32}, - {"Medium",64}, - {"Large",128} + {N_("None"),0}, + {N_("Small"),32}, + {N_("Medium"),64}, + {N_("Large"),128} }; int ntransparencies = sizeof (transparencies) / sizeof (transparencies[0]); int nchecks = sizeof (checks) / sizeof (checks[0]); @@ -772,7 +773,7 @@ file_pref_cmd_callback (GtkWidget *widget, prefs_dlg = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (prefs_dlg), "preferences", "Gimp"); - gtk_window_set_title (GTK_WINDOW (prefs_dlg), "Preferences"); + gtk_window_set_title (GTK_WINDOW (prefs_dlg), _("Preferences")); /* handle the wm close signal */ gtk_signal_connect (GTK_OBJECT (prefs_dlg), "delete_event", @@ -782,7 +783,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_container_border_width (GTK_CONTAINER (GTK_DIALOG (prefs_dlg)->action_area), 2); /* Action area */ - button = gtk_button_new_with_label ("OK"); + button = gtk_button_new_with_label (_("OK")); GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT); gtk_signal_connect (GTK_OBJECT (button), "clicked", (GtkSignalFunc) file_prefs_ok_callback, @@ -792,7 +793,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_widget_grab_default (button); gtk_widget_show (button); - button = gtk_button_new_with_label ("Save"); + button = gtk_button_new_with_label (_("Save")); GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT); gtk_signal_connect (GTK_OBJECT (button), "clicked", (GtkSignalFunc) file_prefs_save_callback, @@ -802,7 +803,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_widget_grab_default (button); gtk_widget_show (button); - button = gtk_button_new_with_label ("Cancel"); + button = gtk_button_new_with_label (_("Cancel")); GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT); gtk_signal_connect (GTK_OBJECT (button), "clicked", (GtkSignalFunc) file_prefs_cancel_callback, @@ -816,7 +817,7 @@ file_pref_cmd_callback (GtkWidget *widget, notebook, TRUE, TRUE, 0); /* Display page */ - out_frame = gtk_frame_new ("Display settings"); + out_frame = gtk_frame_new (_("Display settings")); gtk_container_border_width (GTK_CONTAINER (out_frame), 10); gtk_widget_show (out_frame); @@ -829,7 +830,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0); gtk_widget_show (hbox); - frame = gtk_frame_new ("Default image size"); + frame = gtk_frame_new (_("Default image size")); gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0); gtk_widget_show (frame); @@ -844,13 +845,13 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_box_pack_start (GTK_BOX (abox), table, TRUE, TRUE, 0); gtk_widget_show (table); - label = gtk_label_new ("Width:"); + label = gtk_label_new (_("Width:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1, GTK_FILL, GTK_FILL, 0, 0); gtk_widget_show (label); - label = gtk_label_new ("Height:"); + label = gtk_label_new (_("Height:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2, GTK_FILL, GTK_FILL, 0, 0); @@ -881,7 +882,7 @@ file_pref_cmd_callback (GtkWidget *widget, &default_height); gtk_widget_show (spinbutton); - frame = gtk_frame_new ("Default image type"); + frame = gtk_frame_new (_("Default image type")); gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0); gtk_widget_show (frame); @@ -890,7 +891,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_container_add (GTK_CONTAINER (frame), radio_box); gtk_widget_show (radio_box); - button = gtk_radio_button_new_with_label (NULL, "RGB"); + button = gtk_radio_button_new_with_label (NULL, _("RGB")); group = gtk_radio_button_group (GTK_RADIO_BUTTON (button)); gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0); gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) RGB); @@ -900,7 +901,7 @@ file_pref_cmd_callback (GtkWidget *widget, (GtkSignalFunc) file_prefs_toggle_callback, &default_type); gtk_widget_show (button); - button = gtk_radio_button_new_with_label (group, "Grayscale"); + button = gtk_radio_button_new_with_label (group, _("Grayscale")); group = gtk_radio_button_group (GTK_RADIO_BUTTON (button)); gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0); gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) GRAY); @@ -914,7 +915,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0); gtk_widget_show (hbox); - label = gtk_label_new ("Preview size:"); + label = gtk_label_new (_("Preview size:")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -936,7 +937,7 @@ file_pref_cmd_callback (GtkWidget *widget, if (preview_size==preview_sizes[i].size) gtk_option_menu_set_history(GTK_OPTION_MENU (optionmenu),i); - button = gtk_check_button_new_with_label("Cubic interpolation"); + button = gtk_check_button_new_with_label(_("Cubic interpolation")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), cubic_interpolation); gtk_box_pack_start (GTK_BOX (vbox), button, TRUE, TRUE, 0); @@ -949,7 +950,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0); gtk_widget_show (hbox); - frame = gtk_frame_new ("Transparency Type"); + frame = gtk_frame_new (_("Transparency Type")); gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0); gtk_widget_show (frame); @@ -973,7 +974,7 @@ file_pref_cmd_callback (GtkWidget *widget, &transparency_type); gtk_widget_show (button); } - frame = gtk_frame_new ("Check Size"); + frame = gtk_frame_new (_("Check Size")); gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0); gtk_widget_show (frame); @@ -998,11 +999,11 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_widget_show (button); } - label = gtk_label_new ("Display"); + label = gtk_label_new (_("Display")); gtk_notebook_append_page (GTK_NOTEBOOK(notebook), out_frame, label); /* Interface */ - out_frame = gtk_frame_new ("Interface settings"); + out_frame = gtk_frame_new (_("Interface settings")); gtk_container_border_width (GTK_CONTAINER (out_frame), 10); gtk_widget_show (out_frame); @@ -1011,7 +1012,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_container_add (GTK_CONTAINER (out_frame), vbox); gtk_widget_show (vbox); - button = gtk_check_button_new_with_label("Resize window on zoom"); + button = gtk_check_button_new_with_label(_("Resize window on zoom")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), allow_resize_windows); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); @@ -1020,7 +1021,7 @@ file_pref_cmd_callback (GtkWidget *widget, &allow_resize_windows); gtk_widget_show (button); - button = gtk_check_button_new_with_label("Perfect-but-slow pointer tracking"); + button = gtk_check_button_new_with_label(_("Perfect-but-slow pointer tracking")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), perfectmouse); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); @@ -1032,7 +1033,7 @@ file_pref_cmd_callback (GtkWidget *widget, /* Don't show the Auto-save button until we really have auto-saving in the gimp. - button = gtk_check_button_new_with_label("Auto save"); + button = gtk_check_button_new_with_label(_("Auto save")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), auto_save); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); @@ -1042,7 +1043,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_widget_show (button); */ - button = gtk_check_button_new_with_label("Disable cursor updating"); + button = gtk_check_button_new_with_label(_("Disable cursor updating")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), no_cursor_updating); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); @@ -1051,7 +1052,7 @@ file_pref_cmd_callback (GtkWidget *widget, &no_cursor_updating); gtk_widget_show (button); - button = gtk_check_button_new_with_label("Show tool tips"); + button = gtk_check_button_new_with_label(_("Show tool tips")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), show_tool_tips); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); @@ -1060,7 +1061,7 @@ file_pref_cmd_callback (GtkWidget *widget, &show_tool_tips); gtk_widget_show (button); - button = gtk_check_button_new_with_label("Show rulers"); + button = gtk_check_button_new_with_label(_("Show rulers")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), show_rulers); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); @@ -1069,7 +1070,7 @@ file_pref_cmd_callback (GtkWidget *widget, &show_rulers); gtk_widget_show (button); - button = gtk_check_button_new_with_label("Show statusbar"); + button = gtk_check_button_new_with_label(_("Show statusbar")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), show_statusbar); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); @@ -1082,7 +1083,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_widget_show (hbox); - label = gtk_label_new ("Levels of undo:"); + label = gtk_label_new (_("Levels of undo:")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -1102,7 +1103,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_widget_show (hbox); - label = gtk_label_new ("Marching ants speed:"); + label = gtk_label_new (_("Marching ants speed:")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -1122,7 +1123,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_widget_show (hbox); - label = gtk_label_new ("Recent Documents list size:"); + label = gtk_label_new (_("Recent Documents list size:")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -1138,11 +1139,11 @@ file_pref_cmd_callback (GtkWidget *widget, &edit_last_opened_size); gtk_widget_show (spinbutton); - label = gtk_label_new ("Interface"); + label = gtk_label_new (_("Interface")); gtk_notebook_append_page (GTK_NOTEBOOK(notebook), out_frame, label); /* Environment */ - out_frame = gtk_frame_new ("Environment settings"); + out_frame = gtk_frame_new (_("Environment settings")); gtk_container_border_width (GTK_CONTAINER (out_frame), 10); gtk_widget_set_usize (out_frame, 320, 200); gtk_widget_show (out_frame); @@ -1152,7 +1153,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_container_add (GTK_CONTAINER (out_frame), vbox); gtk_widget_show (vbox); - button = gtk_check_button_new_with_label("Conservative memory usage"); + button = gtk_check_button_new_with_label(_("Conservative memory usage")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), stingy_memory_use); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); @@ -1165,7 +1166,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_widget_show (hbox); - label = gtk_label_new ("Tile cache size:"); + label = gtk_label_new (_("Tile cache size:")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -1201,7 +1202,7 @@ file_pref_cmd_callback (GtkWidget *widget, if (mem_size_unit == mem_size_units[i].unit) gtk_option_menu_set_history(GTK_OPTION_MENU (optionmenu),i); - button = gtk_check_button_new_with_label("Install colormap (8-bit only)"); + button = gtk_check_button_new_with_label(_("Install colormap (8-bit only)")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), install_cmap); gtk_signal_connect (GTK_OBJECT (button), "toggled", @@ -1212,7 +1213,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_widget_set_sensitive (GTK_WIDGET(button), FALSE); gtk_widget_show (button); - button = gtk_check_button_new_with_label("Colormap cycling (8-bit only)"); + button = gtk_check_button_new_with_label(_("Colormap cycling (8-bit only)")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), cycled_marching_ants); gtk_signal_connect (GTK_OBJECT (button), "toggled", @@ -1223,11 +1224,11 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_widget_set_sensitive (GTK_WIDGET(button), FALSE); gtk_widget_show (button); - label = gtk_label_new ("Environment"); + label = gtk_label_new (_("Environment")); gtk_notebook_append_page (GTK_NOTEBOOK(notebook), out_frame, label); /* Session Management */ - out_frame = gtk_frame_new ("Session managment"); + out_frame = gtk_frame_new (_("Session managment")); gtk_container_border_width (GTK_CONTAINER (out_frame), 10); gtk_widget_set_usize (out_frame, 320, 200); gtk_widget_show (out_frame); @@ -1237,7 +1238,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_container_add (GTK_CONTAINER (out_frame), vbox); gtk_widget_show (vbox); - button = gtk_check_button_new_with_label ("Save window positions on exit"); + button = gtk_check_button_new_with_label (_("Save window positions on exit")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), save_session_info); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); @@ -1251,14 +1252,14 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_widget_show (hbox); - button = gtk_button_new_with_label ("Clear saved window positions"); + button = gtk_button_new_with_label (_("Clear saved window positions")); gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (button), "clicked", (GtkSignalFunc) file_prefs_clear_session_info_callback, NULL); gtk_widget_show (button); - button = gtk_check_button_new_with_label ("Always try to restore session"); + button = gtk_check_button_new_with_label (_("Always try to restore session")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), always_restore_session); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); @@ -1267,7 +1268,7 @@ file_pref_cmd_callback (GtkWidget *widget, &always_restore_session); gtk_widget_show (button); - button = gtk_check_button_new_with_label ("Save device status on exit"); + button = gtk_check_button_new_with_label (_("Save device status on exit")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), save_device_status); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); @@ -1276,13 +1277,13 @@ file_pref_cmd_callback (GtkWidget *widget, &save_device_status); gtk_widget_show (button); - label = gtk_label_new ("Session"); + label = gtk_label_new (_("Session")); gtk_notebook_append_page (GTK_NOTEBOOK(notebook), out_frame, label); gtk_widget_show (notebook); /* Directories */ - out_frame = gtk_frame_new ("Directories settings"); + out_frame = gtk_frame_new (_("Directories settings")); gtk_container_border_width (GTK_CONTAINER (out_frame), 10); gtk_widget_set_usize (out_frame, 320, 200); gtk_widget_show (out_frame); @@ -1317,7 +1318,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_widget_show (entry); } - label = gtk_label_new ("Directories"); + label = gtk_label_new (_("Directories")); gtk_notebook_append_page (GTK_NOTEBOOK(notebook), out_frame, label); gtk_widget_show (notebook); diff --git a/app/gui/resize-dialog.c b/app/gui/resize-dialog.c index 2efb92e187..02bb56beba 100644 --- a/app/gui/resize-dialog.c +++ b/app/gui/resize-dialog.c @@ -21,6 +21,8 @@ #include "appenv.h" #include "resize.h" +#include "libgimp/gimpintl.h" + #define EVENT_MASK GDK_EXPOSURE_MASK | GDK_BUTTON_PRESS_MASK #define DRAWING_AREA_SIZE 200 #define TEXT_WIDTH 35 @@ -101,11 +103,11 @@ resize_widget_new (ResizeType type, switch (type) { case ScaleWidget: - resize->resize_widget = gtk_frame_new ("Scale"); + resize->resize_widget = gtk_frame_new (_("Scale")); table = gtk_table_new (4, 2, TRUE); break; case ResizeWidget: - resize->resize_widget = gtk_frame_new ("Resize"); + resize->resize_widget = gtk_frame_new (_("Resize")); table = gtk_table_new (6, 2, TRUE); break; } @@ -121,7 +123,7 @@ resize_widget_new (ResizeType type, /* the width label and entry */ sprintf (size, "%d", width); - label = gtk_label_new ("New width:"); + label = gtk_label_new (_("New width:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1, GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2); @@ -138,7 +140,7 @@ resize_widget_new (ResizeType type, /* the height label and entry */ sprintf (size, "%d", height); - label = gtk_label_new ("New height:"); + label = gtk_label_new (_("New height:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2, GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2); @@ -155,7 +157,7 @@ resize_widget_new (ResizeType type, /* the x scale ratio label and entry */ sprintf (ratio_text, "%0.4f", resize->ratio_x); - label = gtk_label_new ("X ratio:"); + label = gtk_label_new (_("X ratio:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 2, 3, GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2); @@ -172,7 +174,7 @@ resize_widget_new (ResizeType type, /* the y scale ratio label and entry */ sprintf (ratio_text, "%0.4f", resize->ratio_y); - label = gtk_label_new ("Y ratio:"); + label = gtk_label_new (_("Y ratio:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 3, 4, GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2); @@ -191,7 +193,7 @@ resize_widget_new (ResizeType type, { /* the off_x label and entry */ sprintf (size, "%d", 0); - label = gtk_label_new ("X Offset:"); + label = gtk_label_new (_("Offset X:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 4, 5, GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2); @@ -208,7 +210,7 @@ resize_widget_new (ResizeType type, /* the off_y label and entry */ sprintf (size, "%d", 0); - label = gtk_label_new ("Y Offset:"); + label = gtk_label_new (_("Offset Y:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 5, 6, GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2); @@ -225,7 +227,7 @@ resize_widget_new (ResizeType type, } /* the constrain toggle button */ - constrain = gtk_check_button_new_with_label ("Constrain Ratio"); + constrain = gtk_check_button_new_with_label (_("Constrain Ratio")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (constrain), private->constrain); gtk_box_pack_start (GTK_BOX (vbox), constrain, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (constrain), "toggled", diff --git a/app/gui/session.c b/app/gui/session.c index 211833bdb5..5c9f416386 100644 --- a/app/gui/session.c +++ b/app/gui/session.c @@ -54,6 +54,8 @@ #include "gimprc.h" #include "session.h" +#include "libgimp/gimpintl.h" + static void sessionrc_write_info (SessionInfo *, FILE *); static void session_open_dialog (SessionInfo *); static void session_reset_open_state (SessionInfo *); @@ -141,13 +143,13 @@ save_sessionrc (void) if (!fp) return; - fprintf(fp, "# GIMP sessionrc\n"); - fprintf(fp, "# This file takes session-specific info (that is info,\n"); - fprintf(fp, "# you want to keep between two gimp-sessions). You are\n"); - fprintf(fp, "# not supposed to edit it manually, but of course you\n"); - fprintf(fp, "# can do. This file will be entirely rewritten every time\n"); - fprintf(fp, "# you quit the gimp. If this file isn't found, defaults\n"); - fprintf(fp, "# are used.\n\n"); + fprintf(fp, _("# GIMP sessionrc\n")); + fprintf(fp, _("# This file takes session-specific info (that is info,\n")); + fprintf(fp, _("# you want to keep between two gimp-sessions). You are\n")); + fprintf(fp, _("# not supposed to edit it manually, but of course you\n")); + fprintf(fp, _("# can do. This file will be entirely rewritten every time\n")); + fprintf(fp, _("# you quit the gimp. If this file isn't found, defaults\n")); + fprintf(fp, _("# are used.\n\n")); /* save window geometries */ g_list_foreach (session_info_updates, (GFunc)sessionrc_write_info, fp); diff --git a/app/gui/tips-dialog.c b/app/gui/tips-dialog.c index 9b65acb6f7..34ac211b47 100644 --- a/app/gui/tips-dialog.c +++ b/app/gui/tips-dialog.c @@ -8,6 +8,8 @@ #include "interface.h" #include "wilber.h" +#include "libgimp/gimpintl.h" + #define TIPS_FILE_NAME "gimp_tips.txt" static int tips_dialog_hide (GtkWidget *widget, gpointer data); @@ -57,7 +59,7 @@ tips_dialog_create () { tips_dialog = gtk_window_new (GTK_WINDOW_DIALOG); gtk_window_set_wmclass (GTK_WINDOW (tips_dialog), "tip_of_the_day", "Gimp"); - gtk_window_set_title (GTK_WINDOW (tips_dialog), "GIMP Tip of the day"); + gtk_window_set_title (GTK_WINDOW (tips_dialog), _("GIMP Tip of the day")); gtk_window_position (GTK_WINDOW (tips_dialog), GTK_WIN_POS_CENTER); gtk_signal_connect (GTK_OBJECT (tips_dialog), "delete_event", GTK_SIGNAL_FUNC (tips_dialog_hide), NULL); @@ -102,27 +104,27 @@ tips_dialog_create () gtk_box_pack_start (GTK_BOX (hbox1), tips_label, TRUE, TRUE, 3); gtk_widget_show (tips_label); - button_close = gtk_button_new_with_label ("Close"); + button_close = gtk_button_new_with_label (_("Close")); gtk_signal_connect (GTK_OBJECT (button_close), "clicked", GTK_SIGNAL_FUNC (tips_dialog_hide), NULL); gtk_box_pack_end (GTK_BOX (hbox2), button_close, FALSE, TRUE, 0); gtk_widget_show (button_close); - button_next = gtk_button_new_with_label ("Next Tip"); + button_next = gtk_button_new_with_label (_("Next Tip")); gtk_signal_connect (GTK_OBJECT (button_next), "clicked", GTK_SIGNAL_FUNC (tips_show_next), (gpointer) "next"); gtk_box_pack_end (GTK_BOX (hbox2), button_next, FALSE, TRUE, 0); gtk_widget_show (button_next); - button_prev = gtk_button_new_with_label ("Prev. Tip"); + button_prev = gtk_button_new_with_label (_("Prev. Tip")); gtk_signal_connect (GTK_OBJECT (button_prev), "clicked", GTK_SIGNAL_FUNC (tips_show_next), (gpointer) "prev"); gtk_box_pack_end (GTK_BOX (hbox2), button_prev, FALSE, TRUE, 0); gtk_widget_show (button_prev); - button_check = gtk_check_button_new_with_label ("Show tip next time"); + button_check = gtk_check_button_new_with_label (_("Show tip next time")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button_check), show_tips); gtk_signal_connect (GTK_OBJECT (button_check), "toggled", @@ -220,9 +222,9 @@ read_tips_file (char *filename) fp = fopen (filename, "rb"); if (!fp) { - store_tip ("Your GIMP tips file appears to be missing!\n" + store_tip (_("Your GIMP tips file appears to be missing!\n" "There should be a file called " TIPS_FILE_NAME " in the\n" - "GIMP data directory. Please check your installation."); + "GIMP data directory. Please check your installation.")); return; } diff --git a/app/gui/user-install-dialog.c b/app/gui/user-install-dialog.c index 2453185622..8e7b1eba97 100644 --- a/app/gui/user-install-dialog.c +++ b/app/gui/user-install-dialog.c @@ -26,6 +26,7 @@ #include "interface.h" #include "gimprc.h" +#include "libgimp/gimpintl.h" static void install_run (InstallCallback); static void install_help (InstallCallback); @@ -48,7 +49,7 @@ install_verify (InstallCallback install_callback) filename = gimp_directory (); if ('\000' == filename[0]) { - g_message ("No home directory--skipping GIMP user installation."); + g_message (_("No home directory--skipping GIMP user installation.")); (* install_callback) (); } @@ -63,9 +64,9 @@ install_verify (InstallCallback install_callback) /* Otherwise, prepare for installation */ else if (no_interface) { - g_print ("The GIMP is not properly installed for the current user\n"); - g_print ("User installation was skipped because the '--nointerface' flag was encountered\n"); - g_print ("To perform user installation, run the GIMP without the '--nointerface' flag\n"); + g_print (_("The GIMP is not properly installed for the current user\n")); + g_print (_("User installation was skipped because the '--nointerface' flag was encountered\n")); + g_print (_("To perform user installation, run the GIMP without the '--nointerface' flag\n")); (* install_callback) (); } @@ -84,9 +85,9 @@ install_help (InstallCallback callback) { static ActionAreaItem action_items[] = { - { "Install", help_install_callback, NULL, NULL }, - { "Ignore", help_ignore_callback, NULL, NULL }, - { "Quit", help_quit_callback, NULL, NULL } + { N_("Install"), help_install_callback, NULL, NULL }, + { N_("Ignore"), help_ignore_callback, NULL, NULL }, + { N_("Quit"), help_quit_callback, NULL, NULL } }; GtkWidget *text; GtkWidget *table; @@ -101,7 +102,7 @@ install_help (InstallCallback callback) GTK_SIGNAL_FUNC (gtk_true), NULL); gtk_window_set_wmclass (GTK_WINDOW (help_widget), "gimp_installation", "Gimp"); - gtk_window_set_title (GTK_WINDOW (help_widget), "GIMP Installation"); + gtk_window_set_title (GTK_WINDOW (help_widget), _("GIMP Installation")); gtk_window_position (GTK_WINDOW (help_widget), GTK_WIN_POS_CENTER); vadj = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 0.0, 0.0, 0.0, 0.0)); @@ -137,188 +138,188 @@ install_help (InstallCallback callback) gtk_widget_realize (text); gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL, - "The GIMP - GNU Image Manipulation Program\n\n", -1); + _("The GIMP - GNU Image Manipulation Program\n\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "Copyright (C) 1995 Spencer Kimball and Peter Mattis\n", -1); + _("Copyright (C) 1995 Spencer Kimball and Peter Mattis\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, "\n", -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "This program is free software; you can redistribute it and/or modify\n", -1); + _("This program is free software; you can redistribute it and/or modify\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "it under the terms of the GNU General Public License as published by\n", -1); + _("it under the terms of the GNU General Public License as published by\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "the Free Software Foundation; either version 2 of the License, or\n", -1); + _("the Free Software Foundation; either version 2 of the License, or\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "(at your option) any later version.\n", -1); + _("(at your option) any later version.\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, "\n", -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "This program is distributed in the hope that it will be useful,\n", -1); + _("This program is distributed in the hope that it will be useful,\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "but WITHOUT ANY WARRANTY; without even the implied warranty of\n", -1); + _("but WITHOUT ANY WARRANTY; without even the implied warranty of\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n", -1); + _("MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "See the GNU General Public License for more details.\n", -1); + _("See the GNU General Public License for more details.\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, "\n", -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "You should have received a copy of the GNU General Public License\n", -1); + _("You should have received a copy of the GNU General Public License\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "along with this program; if not, write to the Free Software\n", -1); + _("along with this program; if not, write to the Free Software\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n", -1); + _("Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, "\n\n", -1); gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL, - "Personal GIMP Installation\n\n", -1); + _("Personal GIMP Installation\n\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "For a proper GIMP installation, a subdirectory called\n", -1); + _("For a proper GIMP installation, a subdirectory called\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, gimp_directory (), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - " needs to be created. This\n", -1); + _(" needs to be created. This\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "subdirectory will contain a number of important files:\n\n", -1); + _("subdirectory will contain a number of important files:\n\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "gimprc\n", -1); + _("gimprc\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThe gimprc is used to store personal preferences\n", -1); + _("\t\tThe gimprc is used to store personal preferences\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tsuch as default GIMP behaviors & plug-in hotkeys.\n", -1); + _("\t\tsuch as default GIMP behaviors & plug-in hotkeys.\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tPaths to search for brushes, palettes, gradients\n", -1); + _("\t\tPaths to search for brushes, palettes, gradients\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tpatterns, and plug-ins are also configured here.\n", -1); + _("\t\tpatterns, and plug-ins are also configured here.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "pluginrc\n", -1); + _("pluginrc\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tPlug-ins and extensions are extern programs run by\n", -1); + _("\t\tPlug-ins and extensions are extern programs run by\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tthe GIMP which provide additional functionality.\n", -1); + _("\t\tthe GIMP which provide additional functionality.\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThese programs are searched for at run-time and\n", -1); + _("\t\tThese programs are searched for at run-time and\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tinformation about their functionality and mod-times\n", -1); + _("\t\tinformation about their functionality and mod-times\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tis cached in this file. This file is intended to\n", -1); + _("\t\tis cached in this file. This file is intended to\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tbe GIMP-readable only, and should not be edited.\n", -1); + _("\t\tbe GIMP-readable only, and should not be edited.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "brushes\n", -1); + _("brushes\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis is a subdirectory which can be used to store\n", -1); + _("\t\tThis is a subdirectory which can be used to store\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tuser defined brushes. The default gimprc file\n", -1); + _("\t\tuser defined brushes. The default gimprc file\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tchecks this subdirectory in addition to the system-\n", -1); + _("\t\tchecks this subdirectory in addition to the system-\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\twide gimp brushes installation when searching for\n", -1); + _("\t\twide gimp brushes installation when searching for\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tbrushes.\n", -1); + _("\t\tbrushes.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "gradients\n", -1); + _("gradients\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis is a subdirectory which can be used to store\n", -1); + _("\t\tThis is a subdirectory which can be used to store\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tuser defined gradients. The default gimprc file\n", -1); + _("\t\tuser defined gradients. The default gimprc file\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tchecks this subdirectory in addition to the system-\n", -1); + _("\t\tchecks this subdirectory in addition to the system-\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\twide gimp gradients installation when searching for\n", -1); + _("\t\twide gimp gradients installation when searching for\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tgradients.\n", -1); + _("\t\tgradients.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "gfig\n", -1); + _("gfig\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis is a subdirectory which can be used to store\n", -1); + _("\t\tThis is a subdirectory which can be used to store\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tuser defined figures to be used by the gfig plug-in.\n", -1); + _("\t\tuser defined figures to be used by the gfig plug-in.\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThe default gimprc file checks this subdirectory in\n", -1); + _("\t\tThe default gimprc file checks this subdirectory in\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\taddition to the systemwide gimp gfig installation\n", -1); + _("\t\taddition to the systemwide gimp gfig installation\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\twhen searching for gfig figures.\n", -1); + _("\t\twhen searching for gfig figures.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "gflares\n", -1); + _("gflares\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis is a subdirectory which can be used to store\n", -1); + _("\t\tThis is a subdirectory which can be used to store\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tuser defined gflares to be used by the gflare plug-in.\n", -1); + _("\t\tuser defined gflares to be used by the gflare plug-in.\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThe default gimprc file checks this subdirectory in\n", -1); + _("\t\tThe default gimprc file checks this subdirectory in\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\taddition to the systemwide gimp gflares installation\n", -1); + _("\t\taddition to the systemwide gimp gflares installation\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\twhen searching for gflares.\n", -1); + _("\t\twhen searching for gflares.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "palettes\n", -1); + _("palettes\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis is a subdirectory which can be used to store\n", -1); + _("\t\tThis is a subdirectory which can be used to store\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tuser defined palettes. The default gimprc file\n", -1); + _("\t\tuser defined palettes. The default gimprc file\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tchecks only this subdirectory (not the system-wide\n", -1); + _("\t\tchecks only this subdirectory (not the system-wide\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tinstallation) when searching for palettes. During\n", -1); + _("\t\tinstallation) when searching for palettes. During\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tinstallation, the system palettes will be copied\n", -1); + _("\t\tinstallation, the system palettes will be copied\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\there. This is done to allow modifications made to\n", -1); + _("\t\there. This is done to allow modifications made to\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tpalettes during GIMP execution to persist across\n", -1); + _("\t\tpalettes during GIMP execution to persist across\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tsessions.\n", -1); + _("\t\tsessions.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "patterns\n", -1); + _("patterns\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis is a subdirectory which can be used to store\n", -1); + _("\t\tThis is a subdirectory which can be used to store\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tuser defined patterns. The default gimprc file\n", -1); + _("\t\tuser defined patterns. The default gimprc file\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tchecks this subdirectory in addition to the system-\n", -1); + _("\t\tchecks this subdirectory in addition to the system-\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\twide gimp patterns installation when searching for\n", -1); + _("\t\twide gimp patterns installation when searching for\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tpatterns.\n", -1); + _("\t\tpatterns.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "plug-ins\n", -1); + _("plug-ins\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis is a subdirectory which can be used to store\n", -1); + _("\t\tThis is a subdirectory which can be used to store\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tuser created, temporary, or otherwise non-system-\n", -1); + _("\t\tuser created, temporary, or otherwise non-system-\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tsupported plug-ins. The default gimprc file\n", -1); + _("\t\tsupported plug-ins. The default gimprc file\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tchecks this subdirectory in addition to the system-\n", -1); + _("\t\tchecks this subdirectory in addition to the system-\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\twide GIMP plug-in directories when searching for\n", -1); + _("\t\twide GIMP plug-in directories when searching for\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tplug-ins.\n", -1); + _("\t\tplug-ins.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "scripts\n", -1); + _("scripts\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis subdirectory is used by the GIMP to store \n", -1); + _("\t\tThis subdirectory is used by the GIMP to store \n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tuser created and installed scripts. The default gimprc\n", -1); + _("\t\tuser created and installed scripts. The default gimprc\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tfile checks this subdirectory in addition to the system\n", -1); + _("\t\tfile checks this subdirectory in addition to the system\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\t-wide gimp scripts subdirectory when searching for scripts\n", -1); + _("\t\t-wide gimp scripts subdirectory when searching for scripts\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "tmp\n", -1); + _("tmp\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis subdirectory is used by the GIMP to temporarily\n", -1); + _("\t\tThis subdirectory is used by the GIMP to temporarily\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tstore undo buffers to reduce memory usage. If GIMP is\n", -1); + _("\t\tstore undo buffers to reduce memory usage. If GIMP is\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tunceremoniously killed, files may persist in this directory\n", -1); + _("\t\tunceremoniously killed, files may persist in this directory\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tof the form: gimp<#>.<#>. These files are useless across\n", -1); + _("\t\tof the form: gimp<#>.<#>. These files are useless across\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tGIMP sessions and can be destroyed with impunity.\n", -1); + _("\t\tGIMP sessions and can be destroyed with impunity.\n"), -1); gtk_widget_show (vsb); gtk_widget_show (text); @@ -361,8 +362,8 @@ install_run (InstallCallback callback) { static ActionAreaItem action_items[] = { - { "Continue", install_continue_callback, NULL, NULL }, - { "Quit", install_quit_callback, NULL, NULL } + { N_("Continue"), install_continue_callback, NULL, NULL }, + { N_("Quit"), install_quit_callback, NULL, NULL } }; GtkWidget *text; GtkWidget *table; @@ -382,7 +383,7 @@ install_run (InstallCallback callback) GTK_SIGNAL_FUNC (gtk_true), NULL); gtk_window_set_wmclass (GTK_WINDOW (install_widget), "installation_log", "Gimp"); - gtk_window_set_title (GTK_WINDOW (install_widget), "Installation Log"); + gtk_window_set_title (GTK_WINDOW (install_widget), _("Installation Log")); gtk_window_position (GTK_WINDOW (install_widget), GTK_WIN_POS_CENTER); vadj = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 0.0, 0.0, 0.0, 0.0)); vsb = gtk_vscrollbar_new (vadj); @@ -413,7 +414,7 @@ install_run (InstallCallback callback) /* Realize the text widget before inserting text strings */ gtk_widget_realize (text); - gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL, "User Installation Log\n\n", -1); + gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL, _("User Installation Log\n\n"), -1); /* Generate output */ if ((gimp_data_dir = getenv ("GIMP_DATADIR")) != NULL) @@ -425,14 +426,14 @@ install_run (InstallCallback callback) { gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, buffer, -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - " does not exist. Cannot install.\n", -1); + _(" does not exist. Cannot install.\n"), -1); executable = FALSE; } else if (! (S_IXUSR & stat_buf.st_mode) || ! (S_IRUSR & stat_buf.st_mode)) { gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, buffer, -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - " has invalid permissions.\nCannot install.", -1); + _(" has invalid permissions.\nCannot install."), -1); executable = FALSE; } @@ -452,14 +453,14 @@ install_run (InstallCallback callback) pclose (pfp); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\nInstallation successful!\n", -1); + _("\nInstallation successful!\n"), -1); } else executable = FALSE; } if (executable == FALSE) gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\nInstallation failed. Contact system administrator.\n", -1); + _("\nInstallation failed. Contact system administrator.\n"), -1); gtk_widget_show (vsb); gtk_widget_show (text); diff --git a/app/install.c b/app/install.c index 2453185622..8e7b1eba97 100644 --- a/app/install.c +++ b/app/install.c @@ -26,6 +26,7 @@ #include "interface.h" #include "gimprc.h" +#include "libgimp/gimpintl.h" static void install_run (InstallCallback); static void install_help (InstallCallback); @@ -48,7 +49,7 @@ install_verify (InstallCallback install_callback) filename = gimp_directory (); if ('\000' == filename[0]) { - g_message ("No home directory--skipping GIMP user installation."); + g_message (_("No home directory--skipping GIMP user installation.")); (* install_callback) (); } @@ -63,9 +64,9 @@ install_verify (InstallCallback install_callback) /* Otherwise, prepare for installation */ else if (no_interface) { - g_print ("The GIMP is not properly installed for the current user\n"); - g_print ("User installation was skipped because the '--nointerface' flag was encountered\n"); - g_print ("To perform user installation, run the GIMP without the '--nointerface' flag\n"); + g_print (_("The GIMP is not properly installed for the current user\n")); + g_print (_("User installation was skipped because the '--nointerface' flag was encountered\n")); + g_print (_("To perform user installation, run the GIMP without the '--nointerface' flag\n")); (* install_callback) (); } @@ -84,9 +85,9 @@ install_help (InstallCallback callback) { static ActionAreaItem action_items[] = { - { "Install", help_install_callback, NULL, NULL }, - { "Ignore", help_ignore_callback, NULL, NULL }, - { "Quit", help_quit_callback, NULL, NULL } + { N_("Install"), help_install_callback, NULL, NULL }, + { N_("Ignore"), help_ignore_callback, NULL, NULL }, + { N_("Quit"), help_quit_callback, NULL, NULL } }; GtkWidget *text; GtkWidget *table; @@ -101,7 +102,7 @@ install_help (InstallCallback callback) GTK_SIGNAL_FUNC (gtk_true), NULL); gtk_window_set_wmclass (GTK_WINDOW (help_widget), "gimp_installation", "Gimp"); - gtk_window_set_title (GTK_WINDOW (help_widget), "GIMP Installation"); + gtk_window_set_title (GTK_WINDOW (help_widget), _("GIMP Installation")); gtk_window_position (GTK_WINDOW (help_widget), GTK_WIN_POS_CENTER); vadj = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 0.0, 0.0, 0.0, 0.0)); @@ -137,188 +138,188 @@ install_help (InstallCallback callback) gtk_widget_realize (text); gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL, - "The GIMP - GNU Image Manipulation Program\n\n", -1); + _("The GIMP - GNU Image Manipulation Program\n\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "Copyright (C) 1995 Spencer Kimball and Peter Mattis\n", -1); + _("Copyright (C) 1995 Spencer Kimball and Peter Mattis\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, "\n", -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "This program is free software; you can redistribute it and/or modify\n", -1); + _("This program is free software; you can redistribute it and/or modify\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "it under the terms of the GNU General Public License as published by\n", -1); + _("it under the terms of the GNU General Public License as published by\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "the Free Software Foundation; either version 2 of the License, or\n", -1); + _("the Free Software Foundation; either version 2 of the License, or\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "(at your option) any later version.\n", -1); + _("(at your option) any later version.\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, "\n", -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "This program is distributed in the hope that it will be useful,\n", -1); + _("This program is distributed in the hope that it will be useful,\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "but WITHOUT ANY WARRANTY; without even the implied warranty of\n", -1); + _("but WITHOUT ANY WARRANTY; without even the implied warranty of\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n", -1); + _("MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "See the GNU General Public License for more details.\n", -1); + _("See the GNU General Public License for more details.\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, "\n", -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "You should have received a copy of the GNU General Public License\n", -1); + _("You should have received a copy of the GNU General Public License\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "along with this program; if not, write to the Free Software\n", -1); + _("along with this program; if not, write to the Free Software\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n", -1); + _("Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, "\n\n", -1); gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL, - "Personal GIMP Installation\n\n", -1); + _("Personal GIMP Installation\n\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "For a proper GIMP installation, a subdirectory called\n", -1); + _("For a proper GIMP installation, a subdirectory called\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, gimp_directory (), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - " needs to be created. This\n", -1); + _(" needs to be created. This\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "subdirectory will contain a number of important files:\n\n", -1); + _("subdirectory will contain a number of important files:\n\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "gimprc\n", -1); + _("gimprc\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThe gimprc is used to store personal preferences\n", -1); + _("\t\tThe gimprc is used to store personal preferences\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tsuch as default GIMP behaviors & plug-in hotkeys.\n", -1); + _("\t\tsuch as default GIMP behaviors & plug-in hotkeys.\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tPaths to search for brushes, palettes, gradients\n", -1); + _("\t\tPaths to search for brushes, palettes, gradients\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tpatterns, and plug-ins are also configured here.\n", -1); + _("\t\tpatterns, and plug-ins are also configured here.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "pluginrc\n", -1); + _("pluginrc\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tPlug-ins and extensions are extern programs run by\n", -1); + _("\t\tPlug-ins and extensions are extern programs run by\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tthe GIMP which provide additional functionality.\n", -1); + _("\t\tthe GIMP which provide additional functionality.\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThese programs are searched for at run-time and\n", -1); + _("\t\tThese programs are searched for at run-time and\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tinformation about their functionality and mod-times\n", -1); + _("\t\tinformation about their functionality and mod-times\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tis cached in this file. This file is intended to\n", -1); + _("\t\tis cached in this file. This file is intended to\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tbe GIMP-readable only, and should not be edited.\n", -1); + _("\t\tbe GIMP-readable only, and should not be edited.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "brushes\n", -1); + _("brushes\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis is a subdirectory which can be used to store\n", -1); + _("\t\tThis is a subdirectory which can be used to store\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tuser defined brushes. The default gimprc file\n", -1); + _("\t\tuser defined brushes. The default gimprc file\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tchecks this subdirectory in addition to the system-\n", -1); + _("\t\tchecks this subdirectory in addition to the system-\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\twide gimp brushes installation when searching for\n", -1); + _("\t\twide gimp brushes installation when searching for\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tbrushes.\n", -1); + _("\t\tbrushes.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "gradients\n", -1); + _("gradients\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis is a subdirectory which can be used to store\n", -1); + _("\t\tThis is a subdirectory which can be used to store\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tuser defined gradients. The default gimprc file\n", -1); + _("\t\tuser defined gradients. The default gimprc file\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tchecks this subdirectory in addition to the system-\n", -1); + _("\t\tchecks this subdirectory in addition to the system-\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\twide gimp gradients installation when searching for\n", -1); + _("\t\twide gimp gradients installation when searching for\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tgradients.\n", -1); + _("\t\tgradients.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "gfig\n", -1); + _("gfig\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis is a subdirectory which can be used to store\n", -1); + _("\t\tThis is a subdirectory which can be used to store\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tuser defined figures to be used by the gfig plug-in.\n", -1); + _("\t\tuser defined figures to be used by the gfig plug-in.\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThe default gimprc file checks this subdirectory in\n", -1); + _("\t\tThe default gimprc file checks this subdirectory in\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\taddition to the systemwide gimp gfig installation\n", -1); + _("\t\taddition to the systemwide gimp gfig installation\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\twhen searching for gfig figures.\n", -1); + _("\t\twhen searching for gfig figures.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "gflares\n", -1); + _("gflares\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis is a subdirectory which can be used to store\n", -1); + _("\t\tThis is a subdirectory which can be used to store\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tuser defined gflares to be used by the gflare plug-in.\n", -1); + _("\t\tuser defined gflares to be used by the gflare plug-in.\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThe default gimprc file checks this subdirectory in\n", -1); + _("\t\tThe default gimprc file checks this subdirectory in\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\taddition to the systemwide gimp gflares installation\n", -1); + _("\t\taddition to the systemwide gimp gflares installation\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\twhen searching for gflares.\n", -1); + _("\t\twhen searching for gflares.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "palettes\n", -1); + _("palettes\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis is a subdirectory which can be used to store\n", -1); + _("\t\tThis is a subdirectory which can be used to store\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tuser defined palettes. The default gimprc file\n", -1); + _("\t\tuser defined palettes. The default gimprc file\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tchecks only this subdirectory (not the system-wide\n", -1); + _("\t\tchecks only this subdirectory (not the system-wide\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tinstallation) when searching for palettes. During\n", -1); + _("\t\tinstallation) when searching for palettes. During\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tinstallation, the system palettes will be copied\n", -1); + _("\t\tinstallation, the system palettes will be copied\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\there. This is done to allow modifications made to\n", -1); + _("\t\there. This is done to allow modifications made to\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tpalettes during GIMP execution to persist across\n", -1); + _("\t\tpalettes during GIMP execution to persist across\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tsessions.\n", -1); + _("\t\tsessions.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "patterns\n", -1); + _("patterns\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis is a subdirectory which can be used to store\n", -1); + _("\t\tThis is a subdirectory which can be used to store\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tuser defined patterns. The default gimprc file\n", -1); + _("\t\tuser defined patterns. The default gimprc file\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tchecks this subdirectory in addition to the system-\n", -1); + _("\t\tchecks this subdirectory in addition to the system-\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\twide gimp patterns installation when searching for\n", -1); + _("\t\twide gimp patterns installation when searching for\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tpatterns.\n", -1); + _("\t\tpatterns.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "plug-ins\n", -1); + _("plug-ins\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis is a subdirectory which can be used to store\n", -1); + _("\t\tThis is a subdirectory which can be used to store\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tuser created, temporary, or otherwise non-system-\n", -1); + _("\t\tuser created, temporary, or otherwise non-system-\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tsupported plug-ins. The default gimprc file\n", -1); + _("\t\tsupported plug-ins. The default gimprc file\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tchecks this subdirectory in addition to the system-\n", -1); + _("\t\tchecks this subdirectory in addition to the system-\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\twide GIMP plug-in directories when searching for\n", -1); + _("\t\twide GIMP plug-in directories when searching for\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tplug-ins.\n", -1); + _("\t\tplug-ins.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "scripts\n", -1); + _("scripts\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis subdirectory is used by the GIMP to store \n", -1); + _("\t\tThis subdirectory is used by the GIMP to store \n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tuser created and installed scripts. The default gimprc\n", -1); + _("\t\tuser created and installed scripts. The default gimprc\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tfile checks this subdirectory in addition to the system\n", -1); + _("\t\tfile checks this subdirectory in addition to the system\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\t-wide gimp scripts subdirectory when searching for scripts\n", -1); + _("\t\t-wide gimp scripts subdirectory when searching for scripts\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "tmp\n", -1); + _("tmp\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis subdirectory is used by the GIMP to temporarily\n", -1); + _("\t\tThis subdirectory is used by the GIMP to temporarily\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tstore undo buffers to reduce memory usage. If GIMP is\n", -1); + _("\t\tstore undo buffers to reduce memory usage. If GIMP is\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tunceremoniously killed, files may persist in this directory\n", -1); + _("\t\tunceremoniously killed, files may persist in this directory\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tof the form: gimp<#>.<#>. These files are useless across\n", -1); + _("\t\tof the form: gimp<#>.<#>. These files are useless across\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tGIMP sessions and can be destroyed with impunity.\n", -1); + _("\t\tGIMP sessions and can be destroyed with impunity.\n"), -1); gtk_widget_show (vsb); gtk_widget_show (text); @@ -361,8 +362,8 @@ install_run (InstallCallback callback) { static ActionAreaItem action_items[] = { - { "Continue", install_continue_callback, NULL, NULL }, - { "Quit", install_quit_callback, NULL, NULL } + { N_("Continue"), install_continue_callback, NULL, NULL }, + { N_("Quit"), install_quit_callback, NULL, NULL } }; GtkWidget *text; GtkWidget *table; @@ -382,7 +383,7 @@ install_run (InstallCallback callback) GTK_SIGNAL_FUNC (gtk_true), NULL); gtk_window_set_wmclass (GTK_WINDOW (install_widget), "installation_log", "Gimp"); - gtk_window_set_title (GTK_WINDOW (install_widget), "Installation Log"); + gtk_window_set_title (GTK_WINDOW (install_widget), _("Installation Log")); gtk_window_position (GTK_WINDOW (install_widget), GTK_WIN_POS_CENTER); vadj = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 0.0, 0.0, 0.0, 0.0)); vsb = gtk_vscrollbar_new (vadj); @@ -413,7 +414,7 @@ install_run (InstallCallback callback) /* Realize the text widget before inserting text strings */ gtk_widget_realize (text); - gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL, "User Installation Log\n\n", -1); + gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL, _("User Installation Log\n\n"), -1); /* Generate output */ if ((gimp_data_dir = getenv ("GIMP_DATADIR")) != NULL) @@ -425,14 +426,14 @@ install_run (InstallCallback callback) { gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, buffer, -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - " does not exist. Cannot install.\n", -1); + _(" does not exist. Cannot install.\n"), -1); executable = FALSE; } else if (! (S_IXUSR & stat_buf.st_mode) || ! (S_IRUSR & stat_buf.st_mode)) { gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, buffer, -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - " has invalid permissions.\nCannot install.", -1); + _(" has invalid permissions.\nCannot install."), -1); executable = FALSE; } @@ -452,14 +453,14 @@ install_run (InstallCallback callback) pclose (pfp); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\nInstallation successful!\n", -1); + _("\nInstallation successful!\n"), -1); } else executable = FALSE; } if (executable == FALSE) gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\nInstallation failed. Contact system administrator.\n", -1); + _("\nInstallation failed. Contact system administrator.\n"), -1); gtk_widget_show (vsb); gtk_widget_show (text); diff --git a/app/menus.c b/app/menus.c index 8caeb61268..d4718a6dd6 100644 --- a/app/menus.c +++ b/app/menus.c @@ -35,7 +35,7 @@ #include "libgimp/gimpintl.h" -#define MRU_MENU_ENTRY_SIZE sizeof (N_("/File/MRU00")) +#define MRU_MENU_ENTRY_SIZE sizeof ("/File/MRU00 ") #define MRU_MENU_ACCEL_SIZE sizeof ("0") static void menus_init (void); @@ -79,7 +79,6 @@ static GtkItemFactoryEntry image_entries[] = { N_("/File/Preferences..."), NULL, file_pref_cmd_callback, 0 }, { N_("/File/---"), NULL, NULL, 0, "" }, - { N_("/File/Close"), "W", file_close_cmd_callback, 0 }, { N_("/File/Quit"), "Q", file_quit_cmd_callback, 0 }, { N_("/File/---"), NULL, NULL, 0, "" }, @@ -310,7 +309,7 @@ menus_tools_create (ToolInfo *tool_info) /* entry.path = g_strconcat ("", tool_info->menu_path, NULL);*/ /* entry.callback_data = tool_info; */ - entry.path = tool_info->menu_path; + entry.path = gettext(tool_info->menu_path); entry.accelerator = tool_info->menu_accel; entry.callback = tools_select_cmd_callback; entry.callback_action = tool_info->tool_id; @@ -340,12 +339,12 @@ menus_set_sensitive (char *path, if (ifactory) { widget = gtk_item_factory_get_widget (ifactory, path); - + gtk_widget_set_sensitive (widget, sensitive); } if (!ifactory || !widget) printf (_("Unable to set sensitivity for menu which doesn't exist:\n%s"), path); -} +} void menus_set_state (char *path, @@ -509,9 +508,7 @@ menus_init_mru () gtk_item_factory_create_items_ac (toolbox_factory, last_opened_size, last_opened_entries, NULL, 2); - gtk_item_factory_create_item (toolbox_factory, &file_menu_separator, NULL, 2); - gtk_item_factory_create_item (toolbox_factory, &toolbox_end, NULL, 2); - + for (i=0; i < last_opened_size; i++) { widget = gtk_item_factory_get_widget (toolbox_factory, @@ -540,6 +537,14 @@ menus_init_toolbox () translated_entries, NULL, 2); free_translated_entries(translated_entries, n_toolbox_entries); menus_init_mru (); + + translated_entries=translate_entries(&file_menu_separator,1); + gtk_item_factory_create_item (toolbox_factory, translated_entries, NULL, 2); + free_translated_entries(translated_entries, 1); + + translated_entries=translate_entries(&toolbox_end,1); + gtk_item_factory_create_item (toolbox_factory, translated_entries, NULL, 2); + free_translated_entries(translated_entries, 1); } static GtkItemFactoryEntry * diff --git a/app/menus/menus.c b/app/menus/menus.c index 8caeb61268..d4718a6dd6 100644 --- a/app/menus/menus.c +++ b/app/menus/menus.c @@ -35,7 +35,7 @@ #include "libgimp/gimpintl.h" -#define MRU_MENU_ENTRY_SIZE sizeof (N_("/File/MRU00")) +#define MRU_MENU_ENTRY_SIZE sizeof ("/File/MRU00 ") #define MRU_MENU_ACCEL_SIZE sizeof ("0") static void menus_init (void); @@ -79,7 +79,6 @@ static GtkItemFactoryEntry image_entries[] = { N_("/File/Preferences..."), NULL, file_pref_cmd_callback, 0 }, { N_("/File/---"), NULL, NULL, 0, "" }, - { N_("/File/Close"), "W", file_close_cmd_callback, 0 }, { N_("/File/Quit"), "Q", file_quit_cmd_callback, 0 }, { N_("/File/---"), NULL, NULL, 0, "" }, @@ -310,7 +309,7 @@ menus_tools_create (ToolInfo *tool_info) /* entry.path = g_strconcat ("", tool_info->menu_path, NULL);*/ /* entry.callback_data = tool_info; */ - entry.path = tool_info->menu_path; + entry.path = gettext(tool_info->menu_path); entry.accelerator = tool_info->menu_accel; entry.callback = tools_select_cmd_callback; entry.callback_action = tool_info->tool_id; @@ -340,12 +339,12 @@ menus_set_sensitive (char *path, if (ifactory) { widget = gtk_item_factory_get_widget (ifactory, path); - + gtk_widget_set_sensitive (widget, sensitive); } if (!ifactory || !widget) printf (_("Unable to set sensitivity for menu which doesn't exist:\n%s"), path); -} +} void menus_set_state (char *path, @@ -509,9 +508,7 @@ menus_init_mru () gtk_item_factory_create_items_ac (toolbox_factory, last_opened_size, last_opened_entries, NULL, 2); - gtk_item_factory_create_item (toolbox_factory, &file_menu_separator, NULL, 2); - gtk_item_factory_create_item (toolbox_factory, &toolbox_end, NULL, 2); - + for (i=0; i < last_opened_size; i++) { widget = gtk_item_factory_get_widget (toolbox_factory, @@ -540,6 +537,14 @@ menus_init_toolbox () translated_entries, NULL, 2); free_translated_entries(translated_entries, n_toolbox_entries); menus_init_mru (); + + translated_entries=translate_entries(&file_menu_separator,1); + gtk_item_factory_create_item (toolbox_factory, translated_entries, NULL, 2); + free_translated_entries(translated_entries, 1); + + translated_entries=translate_entries(&toolbox_end,1); + gtk_item_factory_create_item (toolbox_factory, translated_entries, NULL, 2); + free_translated_entries(translated_entries, 1); } static GtkItemFactoryEntry * diff --git a/app/menus/plug-in-menus.c b/app/menus/plug-in-menus.c index 1dcc01f5e0..d3f184da83 100644 --- a/app/menus/plug-in-menus.c +++ b/app/menus/plug-in-menus.c @@ -59,6 +59,8 @@ #include "tile.h" /* ick. */ +#include "libgimp/gimpintl.h" + #define SEPARATE_PROGRESS_BAR @@ -161,17 +163,17 @@ static ProcArg progress_init_args[] = { { PDB_STRING, "message", - "Message to use in the progress dialog." }, + N_("Message to use in the progress dialog.") }, { PDB_INT32, "gdisplay", - "GDisplay to update progressbar in, or -1 for a seperate window" } + N_("GDisplay to update progressbar in, or -1 for a seperate window") } }; static ProcRecord progress_init_proc = { "gimp_progress_init", - "Initializes the progress bar for the current plug-in", - "Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Initializes the progress bar for the current plug-in"), + N_("Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -187,14 +189,14 @@ static ProcArg progress_update_args[] = { { PDB_FLOAT, "percentage", - "Percentage of progress completed" } + N_("Percentage of progress completed") } }; static ProcRecord progress_update_proc = { "gimp_progress_update", - "Updates the progress bar for the current plug-in", - "Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Updates the progress bar for the current plug-in"), + N_("Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -211,14 +213,14 @@ static ProcArg message_args[] = { { PDB_STRING, "message", - "Message to display in the dialog." } + N_("Message to display in the dialog.") } }; static ProcRecord message_proc = { "gimp_message", - "Displays a dialog box with a message", - "Displays a dialog box with a message. Useful for status or error reporting.", + N_("Displays a dialog box with a message"), + N_("Displays a dialog box with a message. Useful for status or error reporting."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -235,14 +237,14 @@ static ProcArg message_handler_get_out_args[] = { { PDB_INT32, "handler", - "the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_get_proc = { "gimp_message_handler_get", - "Returns the current state of where warning messages are displayed.", - "This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Returns the current state of where warning messages are displayed."), + N_("This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -258,14 +260,14 @@ static ProcArg message_handler_set_args[] = { { PDB_INT32, "handler", - "the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_set_proc = { "gimp_message_handler_set", - "Controls where warning messages are displayed.", - "This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Controls where warning messages are displayed."), + N_("This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -281,15 +283,15 @@ static ProcArg plugin_temp_PDB_name_out_args[] = { { PDB_STRING, "Temp name", - "A unique temporary name for a temporary PDB entry name", + N_("A unique temporary name for a temporary PDB entry name"), }, }; static ProcRecord plugin_temp_PDB_name_proc = { "gimp_temp_PDB_name", - "Generates a unique temporary PDB name", - "This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name.", + N_("Generates a unique temporary PDB name"), + N_("This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name."), "Andy Thomas", "Andy Thomas", "1998", @@ -340,13 +342,13 @@ plug_in_init () { shm_ID = shmget (IPC_PRIVATE, TILE_WIDTH * TILE_HEIGHT * 4, IPC_CREAT | 0777); if (shm_ID == -1) - g_message ("shmget failed...disabling shared memory tile transport\n"); + g_message (_("shmget failed...disabling shared memory tile transport\n")); else { shm_addr = (guchar*) shmat (shm_ID, 0, 0); if (shm_addr == (guchar*) -1) { - g_message ("shmat failed...disabling shared memory tile transport\n"); + g_message (_("shmat failed...disabling shared memory tile transport\n")); shm_ID = -1; } @@ -372,14 +374,14 @@ plug_in_init () else sprintf (filename, "%s/pluginrc", gimp_directory ()); - app_init_update_status("Resource configuration", filename, -1); + app_init_update_status(_("Resource configuration"), filename, -1); parse_gimprc_file (filename); /* query any plug-ins that have changed since we last wrote out * the pluginrc file. */ tmp = plug_in_defs; - app_init_update_status("Plug-ins", "", 0); + app_init_update_status(_("Plug-ins"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -391,7 +393,7 @@ plug_in_init () { write_pluginrc = TRUE; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("query plug-in: \"%s\"\n", plug_in_def->prog); + g_print (_("query plug-in: \"%s\"\n"), plug_in_def->prog); plug_in_query (plug_in_def->prog, plug_in_def); } app_init_update_status(NULL, plug_in_def->prog, nth/nplugins); @@ -428,7 +430,7 @@ plug_in_init () if (write_pluginrc) { if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("writing \"%s\"\n", filename); + g_print (_("writing \"%s\"\n"), filename); plug_in_write_rc (filename); } @@ -441,8 +443,8 @@ plug_in_init () /* run the available extensions */ tmp = proc_defs; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("Starting extensions: "); - app_init_update_status("Extensions", "", 0); + g_print (_("Starting extensions: ")); + app_init_update_status(_("Extensions"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -729,7 +731,7 @@ plug_in_def_add (PlugInDef *plug_in_def) } write_pluginrc = TRUE; - g_print ("\"%s\" executable not found\n", plug_in_def->prog); + g_print (_("\"%s\" executable not found\n"), plug_in_def->prog); g_free (plug_in_def->prog); g_free (plug_in_def); } @@ -782,7 +784,7 @@ plug_in_new (char *name) path = search_in_path (plug_in_path, name); if (!path) { - g_message ("unable to locate plug-in: \"%s\"", name); + g_message (_("unable to locate plug-in: \"%s\""), name); return NULL; } } @@ -879,7 +881,7 @@ plug_in_open (PlugIn *plug_in) */ if ((pipe (my_read) == -1) || (pipe (my_write) == -1)) { - g_message ("unable to open pipe"); + g_message (_("unable to open pipe")); return 0; } @@ -927,7 +929,7 @@ plug_in_open (PlugIn *plug_in) } else if (plug_in->pid == -1) { - g_message ("unable to run plug-in: %s\n", plug_in->args[0]); + g_message (_("unable to run plug-in: %s\n"), plug_in->args[0]); plug_in_destroy (plug_in); return 0; } @@ -1263,8 +1265,8 @@ plug_in_set_menu_sensitivity (int base_type) menus_set_sensitive (proc_def->menu_path, sensitive); if (last_plug_in && (last_plug_in == &(proc_def->db_info))) { - menus_set_sensitive ("/Filters/Repeat last", sensitive); - menus_set_sensitive ("/Filters/Re-show last", sensitive); + menus_set_sensitive (_("/Filters/Repeat last"), sensitive); + menus_set_sensitive (_("/Filters/Re-show last"), sensitive); } } } @@ -1303,18 +1305,18 @@ plug_in_handle_message (WireMessage *msg) plug_in_handle_quit (); break; case GP_CONFIG: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_REQ: plug_in_handle_tile_req (msg->data); break; case GP_TILE_ACK: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_DATA: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_PROC_RUN: @@ -1325,7 +1327,7 @@ plug_in_handle_message (WireMessage *msg) plug_in_close (current_plug_in, FALSE); break; case GP_TEMP_PROC_RUN: - g_message ("plug_in_handle_message(): received a temp proc run message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a temp proc run message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TEMP_PROC_RETURN: @@ -1372,21 +1374,21 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_DATA) { - g_message ("expected tile data and received: %d\n", msg.type); + g_message (_("expected tile data and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1400,7 +1402,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1408,7 +1410,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_info->tile_num, TRUE, TRUE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1423,7 +1425,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) wire_destroy (&msg); if (!gp_tile_ack_write (current_writefd)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1437,7 +1439,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1445,7 +1447,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_req->tile_num, TRUE, FALSE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1465,7 +1467,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1474,14 +1476,14 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_ACK) { - g_message ("expected tile ack and received: %d\n", msg.type); + g_message (_("expected tile ack and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1505,7 +1507,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!proc_rec) { /* THIS IS PROBABLY NOT CORRECT -josh */ - g_message ("PDB lookup failed on %s\n", proc_run->name); + g_message (_("PDB lookup failed on %s\n"), proc_run->name); plug_in_args_destroy (args, proc_run->nparams, FALSE); return; } @@ -1529,7 +1531,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!gp_proc_return_write (current_writefd, &proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1573,7 +1575,7 @@ plug_in_handle_proc_return (GPProcReturn *proc_return) plug_in_push (blocked->plug_in); if (!gp_proc_return_write (current_writefd, proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1612,8 +1614,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) if ((proc_install->nparams < 1) || (proc_install->params[0].type != PDB_INT32)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1625,8 +1627,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_IMAGE) || (proc_install->params[2].type != PDB_DRAWABLE)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1638,8 +1640,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_STRING) || (proc_install->params[2].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1653,17 +1655,17 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[3].type != PDB_STRING) || (proc_install->params[4].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } } else { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" in " + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" in " "an invalid menu location. Use either \"\", \"\", " - "\"\", or \"\".", + "\"\", or \"\"."), current_plug_in->args[0], proc_install->name); return; } @@ -1681,9 +1683,9 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) proc_install->params[i].type == PDB_STRINGARRAY) && proc_install->params[i-1].type != PDB_INT32) { - g_message ("plug_in \"%s\" attempted to install procedure \"%s\" " + g_message (_("plug_in \"%s\" attempted to install procedure \"%s\" " "which fails to comply with the array parameter " - "passing standard. Argument %d is noncompliant.", + "passing standard. Argument %d is noncompliant."), current_plug_in->args[0], proc_install->name, i); return; } @@ -2091,7 +2093,7 @@ plug_in_init_file (char *filename) if (strcmp (name, plug_in_name) == 0) { - g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename); + g_print (_("duplicate plug-in: \"%s\" (skipping)\n"), filename); return; } @@ -2265,7 +2267,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the plug-in!"); + g_message (_("Uh-oh, no active gdisplay for the plug-in!")); g_free (args); return; } @@ -2286,7 +2288,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the temporary procedure!"); + g_message (_("Uh-oh, no active gdisplay for the temporary procedure!")); g_free (args); return; } @@ -2294,7 +2296,7 @@ plug_in_callback (GtkWidget *widget, break; default: - g_error ("Unknown procedure type."); + g_error (_("Unknown procedure type.")); break; } @@ -2600,7 +2602,7 @@ plug_in_params_to_args (GPParam *params, colorarray[2] = params[i].data.d_color.blue; break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: args[i].value.pdb_int = params[i].data.d_display; @@ -2765,7 +2767,7 @@ plug_in_args_to_params (Argument *args, } break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: params[i].data.d_display = args[i].value.pdb_int; @@ -2882,7 +2884,7 @@ plug_in_params_destroy (GPParam *params, case PDB_COLOR: break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -2967,7 +2969,7 @@ plug_in_args_destroy (Argument *args, g_free (args[i].value.pdb_pointer); break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -3156,7 +3158,7 @@ plug_in_progress_init (PlugIn *plug_in, gtk_box_pack_start (GTK_BOX (vbox), plug_in->progress_bar, TRUE, TRUE, 0); gtk_widget_show (plug_in->progress_bar); - button = gtk_button_new_with_label ("Cancel"); + button = gtk_button_new_with_label (_("Cancel")); gtk_signal_connect_object (GTK_OBJECT (button), "clicked", (GtkSignalFunc) gtk_widget_destroy, GTK_OBJECT (plug_in->progress)); diff --git a/app/paint-funcs/paint-funcs.c b/app/paint-funcs/paint-funcs.c index d65a6fb7e0..8d2f71e7ca 100644 --- a/app/paint-funcs/paint-funcs.c +++ b/app/paint-funcs/paint-funcs.c @@ -94,7 +94,7 @@ static int color_hash_hits; static unsigned char * tmp_buffer; /* temporary buffer available upon request */ static int tmp_buffer_size; static unsigned char no_mask = OPAQUE_OPACITY; - +static int add_lut[256][256]; /*******************************/ /* Local function prototypes */ @@ -320,6 +320,8 @@ void paint_funcs_setup () { int i; + int j,k; + int tmp_sum; /* allocate the temporary buffer */ tmp_buffer = (unsigned char *) g_malloc (STD_BUF_SIZE); @@ -344,6 +346,30 @@ paint_funcs_setup () random_table[i] = random_table[swap]; random_table[swap] = tmp; } + + for (j = 0; j < 256; j++) + { //rows + for (k = 0; k < 256; k++) + { //column + tmp_sum = j + k; + // printf("tmp_sum: %d", tmp_sum); + if(tmp_sum > 255) + tmp_sum = 255; + // printf(" max: %d \n", add_lut[j][k]); + add_lut[j][k] = tmp_sum; + } + } + +/* for (j = 0; j < 255; j++) */ +/* { //rows */ +/* for (k = 0; k < 255; k++) */ +/* { //column */ +/* printf ("%d",add_lut[j][k]); */ +/* printf(" "); */ +/* } */ +/* printf("\n"); */ +/* } */ + } @@ -829,8 +855,9 @@ add_pixels (const unsigned char *src1, { for (b = 0; b < alpha; b++) { - sum = src1[b] + src2[b]; - dest[b] = MAX255 (sum); + // sum = src1[b] + src2[b]; + dest[b] = add_lut[ (src1[b])] [(src2[b])]; + // dest[b] = MAX255 (sum); /* dest[b] = sum | ((sum&256) - ((sum&256) >> 8)); */ /* dest[b] = (sum > 255) ? 255 : sum; */ /* older, little slower */ } diff --git a/app/paint/gimpairbrush.c b/app/paint/gimpairbrush.c index 2aba45ca33..2b724ef682 100644 --- a/app/paint/gimpairbrush.c +++ b/app/paint/gimpairbrush.c @@ -29,6 +29,8 @@ #include "tools.h" #include "gimage.h" +#include "libgimp/gimpintl.h" + typedef struct _AirbrushTimeout AirbrushTimeout; struct _AirbrushTimeout @@ -92,7 +94,7 @@ create_airbrush_options (void) vbox = gtk_vbox_new (FALSE, 1); /* the main label */ - label = gtk_label_new ("Airbrush Options"); + label = gtk_label_new (_("Airbrush Options")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -101,7 +103,7 @@ create_airbrush_options (void) gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_widget_show (hbox); - label = gtk_label_new ("Rate"); + label = gtk_label_new (_("Rate")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -119,7 +121,7 @@ create_airbrush_options (void) gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_widget_show (hbox); - label = gtk_label_new ("Pressure"); + label = gtk_label_new (_("Pressure")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -155,7 +157,7 @@ airbrush_paint_func (PaintCore *paint_core, /* timer_state = OFF; */ if (timer_state == ON) { - g_warning ("killing stray timer, please report to lewing@gimp.org"); + g_warning (_("killing stray timer, please report to lewing@gimp.org")); gtk_timeout_remove (timer); } timer_state = OFF; @@ -295,23 +297,23 @@ ProcArg airbrush_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_FLOAT, "pressure", - "The pressure of the airbrush strokes: 0 <= pressure <= 100" + N_("The pressure of the airbrush strokes: 0 <= pressure <= 100") }, { PDB_INT32, "num_strokes", - "number of stroke control points (count each coordinate as 2 points)" + N_("number of stroke control points (count each coordinate as 2 points)") }, { PDB_FLOATARRAY, "strokes", - "array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}" + N_("array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}") } }; @@ -319,8 +321,8 @@ ProcArg airbrush_args[] = ProcRecord airbrush_proc = { "gimp_airbrush", - "Paint in the current brush with varying pressure. Paint application is time-dependent", - "This tool simulates the use of an airbrush. Paint pressure represents the relative intensity of the paint application. High pressure results in a thicker layer of paint while low pressure results in a thinner layer.", + N_("Paint in the current brush with varying pressure. Paint application is time-dependent"), + N_("This tool simulates the use of an airbrush. Paint pressure represents the relative intensity of the paint application. High pressure results in a thicker layer of paint while low pressure results in a thinner layer."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/paint/gimpclone.c b/app/paint/gimpclone.c index 154d2e8a3a..bda1348195 100644 --- a/app/paint/gimpclone.c +++ b/app/paint/gimpclone.c @@ -31,6 +31,8 @@ #include "selection.h" #include "tools.h" +#include "libgimp/gimpintl.h" + #define TARGET_HEIGHT 15 #define TARGET_WIDTH 15 @@ -112,8 +114,8 @@ create_clone_options (void) int i; char *button_names[2] = { - "Image Source", - "Pattern Source" + N_("Image Source"), + N_("Pattern Source") }; /* the new options structure */ @@ -125,12 +127,12 @@ create_clone_options (void) vbox = gtk_vbox_new (FALSE, 1); /* the main label */ - label = gtk_label_new ("Clone Tool Options"); + label = gtk_label_new (_("Clone Tool Options")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); /* the radio frame and box */ - radio_frame = gtk_frame_new ("Source"); + radio_frame = gtk_frame_new (_("Source")); gtk_box_pack_start (GTK_BOX (vbox), radio_frame, FALSE, FALSE, 0); radio_box = gtk_vbox_new (FALSE, 1); @@ -151,7 +153,7 @@ create_clone_options (void) gtk_widget_show (radio_frame); /* the aligned toggle button */ - aligned_toggle = gtk_check_button_new_with_label ("Aligned"); + aligned_toggle = gtk_check_button_new_with_label (_("Aligned")); gtk_box_pack_start (GTK_BOX (vbox), aligned_toggle, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (aligned_toggle), "toggled", (GtkSignalFunc) clone_toggle_update, @@ -228,7 +230,7 @@ clone_paint_func (PaintCore *paint_core, if (clone_options->type == PatternClone) if (!get_active_pattern ()) - g_message ("No patterns available for this operation."); + g_message (_("No patterns available for this operation.")); break; case FINISH_PAINT : @@ -541,35 +543,35 @@ ProcArg clone_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_DRAWABLE, "src_drawable", - "the source drawable" + N_("the source drawable") }, { PDB_INT32, "clone_type", - "the type of clone: { IMAGE-CLONE (0), PATTERN-CLONE (1) }" + N_("the type of clone: { IMAGE-CLONE (0), PATTERN-CLONE (1) }") }, { PDB_FLOAT, "src_x", - "the x coordinate in the source image" + N_("the x coordinate in the source image") }, { PDB_FLOAT, "src_y", - "the y coordinate in the source image" + N_("the y coordinate in the source image") }, { PDB_INT32, "num_strokes", - "number of stroke control points (count each coordinate as 2 points)" + N_("number of stroke control points (count each coordinate as 2 points)") }, { PDB_FLOATARRAY, "strokes", - "array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}" + N_("array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}") } }; @@ -577,8 +579,8 @@ ProcArg clone_args[] = ProcRecord clone_proc = { "gimp_clone", - "Clone from the source to the dest drawable using the current brush", - "This tool clones (copies) from the source drawable starting at the specified source coordinates to the dest drawable. If the \"clone_type\" argument is set to PATTERN-CLONE, then the current pattern is used as the source and the \"src_drawable\" argument is ignored. Pattern cloning assumes a tileable pattern and mods the sum of the src coordinates and subsequent stroke offsets with the width and height of the pattern. For image cloning, if the sum of the src coordinates and subsequent stroke offsets exceeds the extents of the src drawable, then no paint is transferred. The clone tool is capable of transforming between any image types including RGB->Indexed--although converting from any type to indexed is significantly slower.", + N_("Clone from the source to the dest drawable using the current brush"), + N_("This tool clones (copies) from the source drawable starting at the specified source coordinates to the dest drawable. If the \"clone_type\" argument is set to PATTERN-CLONE, then the current pattern is used as the source and the \"src_drawable\" argument is ignored. Pattern cloning assumes a tileable pattern and mods the sum of the src coordinates and subsequent stroke offsets with the width and height of the pattern. For image cloning, if the sum of the src coordinates and subsequent stroke offsets exceeds the extents of the src drawable, then no paint is transferred. The clone tool is capable of transforming between any image types including RGB->Indexed--although converting from any type to indexed is significantly slower."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/paint/gimpconvolve.c b/app/paint/gimpconvolve.c index 4c99b98a46..4440ce8242 100644 --- a/app/paint/gimpconvolve.c +++ b/app/paint/gimpconvolve.c @@ -29,6 +29,8 @@ #include "tools.h" #include "gimage.h" +#include "libgimp/gimpintl.h" + typedef enum { Blur, @@ -126,9 +128,9 @@ create_convolve_options (void) int i; char *button_names[3] = { - "Blur", - "Sharpen", - "Custom" + N_("Blur"), + N_("Sharpen"), + N_("Custom") }; /* the new options structure */ @@ -140,7 +142,7 @@ create_convolve_options (void) vbox = gtk_vbox_new (FALSE, 2); /* the main label */ - label = gtk_label_new ("Convolver Options"); + label = gtk_label_new (_("Convolver Options")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -148,7 +150,7 @@ create_convolve_options (void) hbox = gtk_hbox_new (FALSE, 1); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); - label = gtk_label_new ("Pressure"); + label = gtk_label_new (_("Pressure")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -424,27 +426,27 @@ ProcArg convolve_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_FLOAT, "pressure", - "the pressure: 0 <= pressure <= 100" + N_("the pressure: 0 <= pressure <= 100") }, { PDB_INT32, "convolve_type", - "convolve type: { BLUR (0), SHARPEN (1) }" + N_("convolve type: { BLUR (0), SHARPEN (1) }") }, { PDB_INT32, "num_strokes", - "number of stroke control points (count each coordinate as 2 points)" + N_("number of stroke control points (count each coordinate as 2 points)") }, { PDB_FLOATARRAY, "strokes", - "array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}" + N_("array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}") } }; @@ -452,8 +454,8 @@ ProcArg convolve_args[] = ProcRecord convolve_proc = { "gimp_convolve", - "Convolve (Blur, Sharpen) using the current brush", - "This tool convolves the specified drawable with either a sharpening or blurring kernel. The pressure parameter controls the magnitude of the operation. Like the paintbrush, this tool linearly interpolates between the specified stroke coordinates.", + N_("Convolve (Blur, Sharpen) using the current brush"), + N_("This tool convolves the specified drawable with either a sharpening or blurring kernel. The pressure parameter controls the magnitude of the operation. Like the paintbrush, this tool linearly interpolates between the specified stroke coordinates."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/paint/gimperaser.c b/app/paint/gimperaser.c index 138784e975..33a3fc0d21 100644 --- a/app/paint/gimperaser.c +++ b/app/paint/gimperaser.c @@ -28,6 +28,8 @@ #include "selection.h" #include "tools.h" +#include "libgimp/gimpintl.h" + /* forward function declarations */ static void eraser_motion (PaintCore *, GimpDrawable *, gboolean, gboolean); static Argument * eraser_invoker (Argument *); @@ -76,12 +78,12 @@ create_eraser_options (void) vbox = gtk_vbox_new (FALSE, 1); /* the main label */ - label = gtk_label_new ("Eraser Options"); + label = gtk_label_new (_("Eraser Options")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); /* the hard toggle */ - hard_toggle = gtk_check_button_new_with_label ("Hard edge"); + hard_toggle = gtk_check_button_new_with_label (_("Hard edge")); gtk_box_pack_start (GTK_BOX (vbox), hard_toggle, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (hard_toggle), "toggled", (GtkSignalFunc) eraser_toggle_update, @@ -90,7 +92,7 @@ create_eraser_options (void) gtk_widget_show (hard_toggle); /* the incremental toggle */ - incremental_toggle = gtk_check_button_new_with_label ("Incremental"); + incremental_toggle = gtk_check_button_new_with_label (_("Incremental")); gtk_box_pack_start (GTK_BOX (vbox), incremental_toggle, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (incremental_toggle), "toggled", (GtkSignalFunc) eraser_toggle_update, @@ -202,27 +204,27 @@ ProcArg eraser_extended_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_INT32, "num_strokes", - "number of stroke control points (count each coordinate as 2 points)" + N_("number of stroke control points (count each coordinate as 2 points)") }, { PDB_FLOATARRAY, "strokes", - "array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}" + N_("array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}") }, { PDB_INT32, "hardness", - "SOFT(0) or HARD(1)" + N_("SOFT(0) or HARD(1)") }, { PDB_INT32, "method", - "CONTINUOUS(0) or INCREMENTAL(1)" + N_("CONTINUOUS(0) or INCREMENTAL(1)") } }; @@ -230,19 +232,19 @@ ProcArg eraser_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_INT32, "num_strokes", - "number of stroke control points (count each coordinate as 2 points)" + N_("number of stroke control points (count each coordinate as 2 points)") }, { PDB_FLOATARRAY, "strokes", - "array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}" + N_("array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}") } }; @@ -250,8 +252,8 @@ ProcArg eraser_args[] = ProcRecord eraser_proc = { "gimp_eraser", - "Erase using the current brush", - "This tool erases using the current brush mask. If the specified drawable contains an alpha channel, then the erased pixels will become transparent. Otherwise, the eraser tool replaces the contents of the drawable with the background color. Like paintbrush, this tool linearly interpolates between the specified stroke coordinates.", + N_("Erase using the current brush"), + N_("This tool erases using the current brush mask. If the specified drawable contains an alpha channel, then the erased pixels will become transparent. Otherwise, the eraser tool replaces the contents of the drawable with the background color. Like paintbrush, this tool linearly interpolates between the specified stroke coordinates."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -272,8 +274,8 @@ ProcRecord eraser_proc = ProcRecord eraser_extended_proc = { "gimp_eraser_extended", - "Erase using the current brush", - "This tool erases using the current brush mask. If the specified drawable contains an alpha channel, then the erased pixels will become transparent. Otherwise, the eraser tool replaces the contents of the drawable with the background color. Like paintbrush, this tool linearly interpolates between the specified stroke coordinates.", + N_("Erase using the current brush"), + N_("This tool erases using the current brush mask. If the specified drawable contains an alpha channel, then the erased pixels will become transparent. Otherwise, the eraser tool replaces the contents of the drawable with the background color. Like paintbrush, this tool linearly interpolates between the specified stroke coordinates."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/paint/gimpsourcecore.c b/app/paint/gimpsourcecore.c index 154d2e8a3a..bda1348195 100644 --- a/app/paint/gimpsourcecore.c +++ b/app/paint/gimpsourcecore.c @@ -31,6 +31,8 @@ #include "selection.h" #include "tools.h" +#include "libgimp/gimpintl.h" + #define TARGET_HEIGHT 15 #define TARGET_WIDTH 15 @@ -112,8 +114,8 @@ create_clone_options (void) int i; char *button_names[2] = { - "Image Source", - "Pattern Source" + N_("Image Source"), + N_("Pattern Source") }; /* the new options structure */ @@ -125,12 +127,12 @@ create_clone_options (void) vbox = gtk_vbox_new (FALSE, 1); /* the main label */ - label = gtk_label_new ("Clone Tool Options"); + label = gtk_label_new (_("Clone Tool Options")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); /* the radio frame and box */ - radio_frame = gtk_frame_new ("Source"); + radio_frame = gtk_frame_new (_("Source")); gtk_box_pack_start (GTK_BOX (vbox), radio_frame, FALSE, FALSE, 0); radio_box = gtk_vbox_new (FALSE, 1); @@ -151,7 +153,7 @@ create_clone_options (void) gtk_widget_show (radio_frame); /* the aligned toggle button */ - aligned_toggle = gtk_check_button_new_with_label ("Aligned"); + aligned_toggle = gtk_check_button_new_with_label (_("Aligned")); gtk_box_pack_start (GTK_BOX (vbox), aligned_toggle, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (aligned_toggle), "toggled", (GtkSignalFunc) clone_toggle_update, @@ -228,7 +230,7 @@ clone_paint_func (PaintCore *paint_core, if (clone_options->type == PatternClone) if (!get_active_pattern ()) - g_message ("No patterns available for this operation."); + g_message (_("No patterns available for this operation.")); break; case FINISH_PAINT : @@ -541,35 +543,35 @@ ProcArg clone_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_DRAWABLE, "src_drawable", - "the source drawable" + N_("the source drawable") }, { PDB_INT32, "clone_type", - "the type of clone: { IMAGE-CLONE (0), PATTERN-CLONE (1) }" + N_("the type of clone: { IMAGE-CLONE (0), PATTERN-CLONE (1) }") }, { PDB_FLOAT, "src_x", - "the x coordinate in the source image" + N_("the x coordinate in the source image") }, { PDB_FLOAT, "src_y", - "the y coordinate in the source image" + N_("the y coordinate in the source image") }, { PDB_INT32, "num_strokes", - "number of stroke control points (count each coordinate as 2 points)" + N_("number of stroke control points (count each coordinate as 2 points)") }, { PDB_FLOATARRAY, "strokes", - "array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}" + N_("array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}") } }; @@ -577,8 +579,8 @@ ProcArg clone_args[] = ProcRecord clone_proc = { "gimp_clone", - "Clone from the source to the dest drawable using the current brush", - "This tool clones (copies) from the source drawable starting at the specified source coordinates to the dest drawable. If the \"clone_type\" argument is set to PATTERN-CLONE, then the current pattern is used as the source and the \"src_drawable\" argument is ignored. Pattern cloning assumes a tileable pattern and mods the sum of the src coordinates and subsequent stroke offsets with the width and height of the pattern. For image cloning, if the sum of the src coordinates and subsequent stroke offsets exceeds the extents of the src drawable, then no paint is transferred. The clone tool is capable of transforming between any image types including RGB->Indexed--although converting from any type to indexed is significantly slower.", + N_("Clone from the source to the dest drawable using the current brush"), + N_("This tool clones (copies) from the source drawable starting at the specified source coordinates to the dest drawable. If the \"clone_type\" argument is set to PATTERN-CLONE, then the current pattern is used as the source and the \"src_drawable\" argument is ignored. Pattern cloning assumes a tileable pattern and mods the sum of the src coordinates and subsequent stroke offsets with the width and height of the pattern. For image cloning, if the sum of the src coordinates and subsequent stroke offsets exceeds the extents of the src drawable, then no paint is transferred. The clone tool is capable of transforming between any image types including RGB->Indexed--although converting from any type to indexed is significantly slower."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/paint_funcs.c b/app/paint_funcs.c index d65a6fb7e0..8d2f71e7ca 100644 --- a/app/paint_funcs.c +++ b/app/paint_funcs.c @@ -94,7 +94,7 @@ static int color_hash_hits; static unsigned char * tmp_buffer; /* temporary buffer available upon request */ static int tmp_buffer_size; static unsigned char no_mask = OPAQUE_OPACITY; - +static int add_lut[256][256]; /*******************************/ /* Local function prototypes */ @@ -320,6 +320,8 @@ void paint_funcs_setup () { int i; + int j,k; + int tmp_sum; /* allocate the temporary buffer */ tmp_buffer = (unsigned char *) g_malloc (STD_BUF_SIZE); @@ -344,6 +346,30 @@ paint_funcs_setup () random_table[i] = random_table[swap]; random_table[swap] = tmp; } + + for (j = 0; j < 256; j++) + { //rows + for (k = 0; k < 256; k++) + { //column + tmp_sum = j + k; + // printf("tmp_sum: %d", tmp_sum); + if(tmp_sum > 255) + tmp_sum = 255; + // printf(" max: %d \n", add_lut[j][k]); + add_lut[j][k] = tmp_sum; + } + } + +/* for (j = 0; j < 255; j++) */ +/* { //rows */ +/* for (k = 0; k < 255; k++) */ +/* { //column */ +/* printf ("%d",add_lut[j][k]); */ +/* printf(" "); */ +/* } */ +/* printf("\n"); */ +/* } */ + } @@ -829,8 +855,9 @@ add_pixels (const unsigned char *src1, { for (b = 0; b < alpha; b++) { - sum = src1[b] + src2[b]; - dest[b] = MAX255 (sum); + // sum = src1[b] + src2[b]; + dest[b] = add_lut[ (src1[b])] [(src2[b])]; + // dest[b] = MAX255 (sum); /* dest[b] = sum | ((sum&256) - ((sum&256) >> 8)); */ /* dest[b] = (sum > 255) ? 255 : sum; */ /* older, little slower */ } diff --git a/app/palette.c b/app/palette.c index 8e449cf1ed..8587be1598 100644 --- a/app/palette.c +++ b/app/palette.c @@ -59,6 +59,7 @@ struct _Palette { GtkWidget *color_area; GtkWidget *color_name; GtkWidget *palette_ops; + GtkWidget *clist; GdkGC *gc; GtkAdjustment *sbar_data; PaletteEntriesP entries; @@ -110,6 +111,8 @@ static int num_palette_entries = 0; static unsigned char foreground[3] = { 0, 0, 0 }; static unsigned char background[3] = { 255, 255, 255 }; +static PaletteEntriesP p_entries = NULL; + /* Color select dialog */ /* static ColorSelectP color_select = NULL; static int color_select_active = 0; */ @@ -146,11 +149,13 @@ palettes_free () void palette_create () { + /* why isnt this stuff in the Palette struct? */ GtkWidget *vbox; GtkWidget *hbox; GtkWidget *sbar; GtkWidget *frame; GtkWidget *options_box; + GtkWidget *clist_box; GtkWidget *arrow_hbox; GtkWidget *label; GtkWidget *arrow; @@ -167,7 +172,7 @@ palette_create () palette->color_select = NULL; palette->color_select_active = 0; palette->scroll_offset = 0; - palette->gc = NULL; + palette->gc = NULL;\ palette->updating = FALSE; /* The shell and main vbox */ @@ -189,6 +194,10 @@ palette_create () options_box = gtk_hbox_new (FALSE, 1); gtk_box_pack_start (GTK_BOX (vbox), options_box, FALSE, FALSE, 0); + /* the clist box */ + clist_box = gtk_hbox_new(FALSE, 1); + gtk_box_pack_start(GTK_BOX(vbox), clist_box, FALSE, FALSE, 0); + /* The popup menu -- palette_ops */ for (i = 0; palette_ops[i].label; i++) palette_ops[i].user_data = palette; @@ -216,11 +225,28 @@ palette_create () gtk_widget_show (menu_bar_item); gtk_widget_show (menu_bar); + /* the clist */ + palette->clist = gtk_clist_new(1); /* one column */ + /* dont forget the callback */ + /* It isn't necessary to shadow the border, but it looks nice :) */ + gtk_clist_set_border(GTK_CLIST(palette->clist), GTK_SHADOW_OUT); + gtk_clist_set_column_width (GTK_CLIST(palette->clist), 0, 100); + /* slap the clist in place of the option menu for testing */ + gtk_box_pack_start (GTK_BOX (clist_box), palette->clist, TRUE, TRUE, 0); + gtk_widget_show(palette->clist); + + gtk_signal_connect(GTK_OBJECT(palette->clist), "select_row", + GTK_SIGNAL_FUNC(palette_entries_set_callback), + (gpointer) p_entries); + + /* The option menu */ - palette->option_menu = gtk_option_menu_new (); - gtk_box_pack_start (GTK_BOX (options_box), palette->option_menu, TRUE, TRUE, 0); - gtk_widget_show (palette->option_menu); - gtk_widget_show (options_box); + /* slap both of them into that box for now... */ +/* palette->option_menu = gtk_option_menu_new (); */ +/* gtk_box_pack_start (GTK_BOX (options_box), palette->option_menu, TRUE, TRUE, 0); */ +/* gtk_widget_show (palette->option_menu); */ + /* gtk_widget_show (options_box); */ + gtk_widget_show(clist_box); /* The active color name */ palette->color_name = gtk_entry_new (); @@ -442,7 +468,7 @@ palette_create_palette_menu (PaletteP palette, { GtkWidget *menu_item; GSList *list; - PaletteEntriesP p_entries = NULL; + /* PaletteEntriesP p_entries = NULL; */ PaletteEntriesP found_entries = NULL; int i = 0; int default_index = -1; @@ -468,12 +494,18 @@ palette_create_palette_menu (PaletteP palette, default_index = i; } - menu_item = gtk_menu_item_new_with_label (p_entries->name); - gtk_signal_connect (GTK_OBJECT (menu_item), "activate", - (GtkSignalFunc) palette_entries_set_callback, - (gpointer) p_entries); - gtk_container_add (GTK_CONTAINER (palette->menu), menu_item); - gtk_widget_show (menu_item); + /* add each palette to the clist */ + /* casting? */ + gtk_clist_append( (GtkCList*)(palette->clist), &p_entries->name); + + + + /* menu_item = gtk_menu_item_new_with_label (p_entries->name); */ +/* gtk_signal_connect (GTK_OBJECT (menu_item), "activate", */ +/* (GtkSignalFunc) palette_entries_set_callback, */ +/* (gpointer) p_entries); */ +/* gtk_container_add (GTK_CONTAINER (palette->menu), menu_item); */ +/* gtk_widget_show (menu_item); */ i++; } diff --git a/app/plug-in/gimpplugin-message.c b/app/plug-in/gimpplugin-message.c index 1dcc01f5e0..d3f184da83 100644 --- a/app/plug-in/gimpplugin-message.c +++ b/app/plug-in/gimpplugin-message.c @@ -59,6 +59,8 @@ #include "tile.h" /* ick. */ +#include "libgimp/gimpintl.h" + #define SEPARATE_PROGRESS_BAR @@ -161,17 +163,17 @@ static ProcArg progress_init_args[] = { { PDB_STRING, "message", - "Message to use in the progress dialog." }, + N_("Message to use in the progress dialog.") }, { PDB_INT32, "gdisplay", - "GDisplay to update progressbar in, or -1 for a seperate window" } + N_("GDisplay to update progressbar in, or -1 for a seperate window") } }; static ProcRecord progress_init_proc = { "gimp_progress_init", - "Initializes the progress bar for the current plug-in", - "Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Initializes the progress bar for the current plug-in"), + N_("Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -187,14 +189,14 @@ static ProcArg progress_update_args[] = { { PDB_FLOAT, "percentage", - "Percentage of progress completed" } + N_("Percentage of progress completed") } }; static ProcRecord progress_update_proc = { "gimp_progress_update", - "Updates the progress bar for the current plug-in", - "Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Updates the progress bar for the current plug-in"), + N_("Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -211,14 +213,14 @@ static ProcArg message_args[] = { { PDB_STRING, "message", - "Message to display in the dialog." } + N_("Message to display in the dialog.") } }; static ProcRecord message_proc = { "gimp_message", - "Displays a dialog box with a message", - "Displays a dialog box with a message. Useful for status or error reporting.", + N_("Displays a dialog box with a message"), + N_("Displays a dialog box with a message. Useful for status or error reporting."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -235,14 +237,14 @@ static ProcArg message_handler_get_out_args[] = { { PDB_INT32, "handler", - "the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_get_proc = { "gimp_message_handler_get", - "Returns the current state of where warning messages are displayed.", - "This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Returns the current state of where warning messages are displayed."), + N_("This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -258,14 +260,14 @@ static ProcArg message_handler_set_args[] = { { PDB_INT32, "handler", - "the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_set_proc = { "gimp_message_handler_set", - "Controls where warning messages are displayed.", - "This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Controls where warning messages are displayed."), + N_("This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -281,15 +283,15 @@ static ProcArg plugin_temp_PDB_name_out_args[] = { { PDB_STRING, "Temp name", - "A unique temporary name for a temporary PDB entry name", + N_("A unique temporary name for a temporary PDB entry name"), }, }; static ProcRecord plugin_temp_PDB_name_proc = { "gimp_temp_PDB_name", - "Generates a unique temporary PDB name", - "This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name.", + N_("Generates a unique temporary PDB name"), + N_("This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name."), "Andy Thomas", "Andy Thomas", "1998", @@ -340,13 +342,13 @@ plug_in_init () { shm_ID = shmget (IPC_PRIVATE, TILE_WIDTH * TILE_HEIGHT * 4, IPC_CREAT | 0777); if (shm_ID == -1) - g_message ("shmget failed...disabling shared memory tile transport\n"); + g_message (_("shmget failed...disabling shared memory tile transport\n")); else { shm_addr = (guchar*) shmat (shm_ID, 0, 0); if (shm_addr == (guchar*) -1) { - g_message ("shmat failed...disabling shared memory tile transport\n"); + g_message (_("shmat failed...disabling shared memory tile transport\n")); shm_ID = -1; } @@ -372,14 +374,14 @@ plug_in_init () else sprintf (filename, "%s/pluginrc", gimp_directory ()); - app_init_update_status("Resource configuration", filename, -1); + app_init_update_status(_("Resource configuration"), filename, -1); parse_gimprc_file (filename); /* query any plug-ins that have changed since we last wrote out * the pluginrc file. */ tmp = plug_in_defs; - app_init_update_status("Plug-ins", "", 0); + app_init_update_status(_("Plug-ins"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -391,7 +393,7 @@ plug_in_init () { write_pluginrc = TRUE; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("query plug-in: \"%s\"\n", plug_in_def->prog); + g_print (_("query plug-in: \"%s\"\n"), plug_in_def->prog); plug_in_query (plug_in_def->prog, plug_in_def); } app_init_update_status(NULL, plug_in_def->prog, nth/nplugins); @@ -428,7 +430,7 @@ plug_in_init () if (write_pluginrc) { if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("writing \"%s\"\n", filename); + g_print (_("writing \"%s\"\n"), filename); plug_in_write_rc (filename); } @@ -441,8 +443,8 @@ plug_in_init () /* run the available extensions */ tmp = proc_defs; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("Starting extensions: "); - app_init_update_status("Extensions", "", 0); + g_print (_("Starting extensions: ")); + app_init_update_status(_("Extensions"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -729,7 +731,7 @@ plug_in_def_add (PlugInDef *plug_in_def) } write_pluginrc = TRUE; - g_print ("\"%s\" executable not found\n", plug_in_def->prog); + g_print (_("\"%s\" executable not found\n"), plug_in_def->prog); g_free (plug_in_def->prog); g_free (plug_in_def); } @@ -782,7 +784,7 @@ plug_in_new (char *name) path = search_in_path (plug_in_path, name); if (!path) { - g_message ("unable to locate plug-in: \"%s\"", name); + g_message (_("unable to locate plug-in: \"%s\""), name); return NULL; } } @@ -879,7 +881,7 @@ plug_in_open (PlugIn *plug_in) */ if ((pipe (my_read) == -1) || (pipe (my_write) == -1)) { - g_message ("unable to open pipe"); + g_message (_("unable to open pipe")); return 0; } @@ -927,7 +929,7 @@ plug_in_open (PlugIn *plug_in) } else if (plug_in->pid == -1) { - g_message ("unable to run plug-in: %s\n", plug_in->args[0]); + g_message (_("unable to run plug-in: %s\n"), plug_in->args[0]); plug_in_destroy (plug_in); return 0; } @@ -1263,8 +1265,8 @@ plug_in_set_menu_sensitivity (int base_type) menus_set_sensitive (proc_def->menu_path, sensitive); if (last_plug_in && (last_plug_in == &(proc_def->db_info))) { - menus_set_sensitive ("/Filters/Repeat last", sensitive); - menus_set_sensitive ("/Filters/Re-show last", sensitive); + menus_set_sensitive (_("/Filters/Repeat last"), sensitive); + menus_set_sensitive (_("/Filters/Re-show last"), sensitive); } } } @@ -1303,18 +1305,18 @@ plug_in_handle_message (WireMessage *msg) plug_in_handle_quit (); break; case GP_CONFIG: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_REQ: plug_in_handle_tile_req (msg->data); break; case GP_TILE_ACK: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_DATA: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_PROC_RUN: @@ -1325,7 +1327,7 @@ plug_in_handle_message (WireMessage *msg) plug_in_close (current_plug_in, FALSE); break; case GP_TEMP_PROC_RUN: - g_message ("plug_in_handle_message(): received a temp proc run message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a temp proc run message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TEMP_PROC_RETURN: @@ -1372,21 +1374,21 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_DATA) { - g_message ("expected tile data and received: %d\n", msg.type); + g_message (_("expected tile data and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1400,7 +1402,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1408,7 +1410,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_info->tile_num, TRUE, TRUE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1423,7 +1425,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) wire_destroy (&msg); if (!gp_tile_ack_write (current_writefd)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1437,7 +1439,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1445,7 +1447,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_req->tile_num, TRUE, FALSE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1465,7 +1467,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1474,14 +1476,14 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_ACK) { - g_message ("expected tile ack and received: %d\n", msg.type); + g_message (_("expected tile ack and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1505,7 +1507,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!proc_rec) { /* THIS IS PROBABLY NOT CORRECT -josh */ - g_message ("PDB lookup failed on %s\n", proc_run->name); + g_message (_("PDB lookup failed on %s\n"), proc_run->name); plug_in_args_destroy (args, proc_run->nparams, FALSE); return; } @@ -1529,7 +1531,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!gp_proc_return_write (current_writefd, &proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1573,7 +1575,7 @@ plug_in_handle_proc_return (GPProcReturn *proc_return) plug_in_push (blocked->plug_in); if (!gp_proc_return_write (current_writefd, proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1612,8 +1614,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) if ((proc_install->nparams < 1) || (proc_install->params[0].type != PDB_INT32)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1625,8 +1627,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_IMAGE) || (proc_install->params[2].type != PDB_DRAWABLE)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1638,8 +1640,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_STRING) || (proc_install->params[2].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1653,17 +1655,17 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[3].type != PDB_STRING) || (proc_install->params[4].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } } else { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" in " + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" in " "an invalid menu location. Use either \"\", \"\", " - "\"\", or \"\".", + "\"\", or \"\"."), current_plug_in->args[0], proc_install->name); return; } @@ -1681,9 +1683,9 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) proc_install->params[i].type == PDB_STRINGARRAY) && proc_install->params[i-1].type != PDB_INT32) { - g_message ("plug_in \"%s\" attempted to install procedure \"%s\" " + g_message (_("plug_in \"%s\" attempted to install procedure \"%s\" " "which fails to comply with the array parameter " - "passing standard. Argument %d is noncompliant.", + "passing standard. Argument %d is noncompliant."), current_plug_in->args[0], proc_install->name, i); return; } @@ -2091,7 +2093,7 @@ plug_in_init_file (char *filename) if (strcmp (name, plug_in_name) == 0) { - g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename); + g_print (_("duplicate plug-in: \"%s\" (skipping)\n"), filename); return; } @@ -2265,7 +2267,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the plug-in!"); + g_message (_("Uh-oh, no active gdisplay for the plug-in!")); g_free (args); return; } @@ -2286,7 +2288,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the temporary procedure!"); + g_message (_("Uh-oh, no active gdisplay for the temporary procedure!")); g_free (args); return; } @@ -2294,7 +2296,7 @@ plug_in_callback (GtkWidget *widget, break; default: - g_error ("Unknown procedure type."); + g_error (_("Unknown procedure type.")); break; } @@ -2600,7 +2602,7 @@ plug_in_params_to_args (GPParam *params, colorarray[2] = params[i].data.d_color.blue; break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: args[i].value.pdb_int = params[i].data.d_display; @@ -2765,7 +2767,7 @@ plug_in_args_to_params (Argument *args, } break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: params[i].data.d_display = args[i].value.pdb_int; @@ -2882,7 +2884,7 @@ plug_in_params_destroy (GPParam *params, case PDB_COLOR: break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -2967,7 +2969,7 @@ plug_in_args_destroy (Argument *args, g_free (args[i].value.pdb_pointer); break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -3156,7 +3158,7 @@ plug_in_progress_init (PlugIn *plug_in, gtk_box_pack_start (GTK_BOX (vbox), plug_in->progress_bar, TRUE, TRUE, 0); gtk_widget_show (plug_in->progress_bar); - button = gtk_button_new_with_label ("Cancel"); + button = gtk_button_new_with_label (_("Cancel")); gtk_signal_connect_object (GTK_OBJECT (button), "clicked", (GtkSignalFunc) gtk_widget_destroy, GTK_OBJECT (plug_in->progress)); diff --git a/app/plug-in/gimpplugin-progress.c b/app/plug-in/gimpplugin-progress.c index 1dcc01f5e0..d3f184da83 100644 --- a/app/plug-in/gimpplugin-progress.c +++ b/app/plug-in/gimpplugin-progress.c @@ -59,6 +59,8 @@ #include "tile.h" /* ick. */ +#include "libgimp/gimpintl.h" + #define SEPARATE_PROGRESS_BAR @@ -161,17 +163,17 @@ static ProcArg progress_init_args[] = { { PDB_STRING, "message", - "Message to use in the progress dialog." }, + N_("Message to use in the progress dialog.") }, { PDB_INT32, "gdisplay", - "GDisplay to update progressbar in, or -1 for a seperate window" } + N_("GDisplay to update progressbar in, or -1 for a seperate window") } }; static ProcRecord progress_init_proc = { "gimp_progress_init", - "Initializes the progress bar for the current plug-in", - "Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Initializes the progress bar for the current plug-in"), + N_("Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -187,14 +189,14 @@ static ProcArg progress_update_args[] = { { PDB_FLOAT, "percentage", - "Percentage of progress completed" } + N_("Percentage of progress completed") } }; static ProcRecord progress_update_proc = { "gimp_progress_update", - "Updates the progress bar for the current plug-in", - "Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Updates the progress bar for the current plug-in"), + N_("Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -211,14 +213,14 @@ static ProcArg message_args[] = { { PDB_STRING, "message", - "Message to display in the dialog." } + N_("Message to display in the dialog.") } }; static ProcRecord message_proc = { "gimp_message", - "Displays a dialog box with a message", - "Displays a dialog box with a message. Useful for status or error reporting.", + N_("Displays a dialog box with a message"), + N_("Displays a dialog box with a message. Useful for status or error reporting."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -235,14 +237,14 @@ static ProcArg message_handler_get_out_args[] = { { PDB_INT32, "handler", - "the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_get_proc = { "gimp_message_handler_get", - "Returns the current state of where warning messages are displayed.", - "This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Returns the current state of where warning messages are displayed."), + N_("This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -258,14 +260,14 @@ static ProcArg message_handler_set_args[] = { { PDB_INT32, "handler", - "the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_set_proc = { "gimp_message_handler_set", - "Controls where warning messages are displayed.", - "This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Controls where warning messages are displayed."), + N_("This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -281,15 +283,15 @@ static ProcArg plugin_temp_PDB_name_out_args[] = { { PDB_STRING, "Temp name", - "A unique temporary name for a temporary PDB entry name", + N_("A unique temporary name for a temporary PDB entry name"), }, }; static ProcRecord plugin_temp_PDB_name_proc = { "gimp_temp_PDB_name", - "Generates a unique temporary PDB name", - "This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name.", + N_("Generates a unique temporary PDB name"), + N_("This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name."), "Andy Thomas", "Andy Thomas", "1998", @@ -340,13 +342,13 @@ plug_in_init () { shm_ID = shmget (IPC_PRIVATE, TILE_WIDTH * TILE_HEIGHT * 4, IPC_CREAT | 0777); if (shm_ID == -1) - g_message ("shmget failed...disabling shared memory tile transport\n"); + g_message (_("shmget failed...disabling shared memory tile transport\n")); else { shm_addr = (guchar*) shmat (shm_ID, 0, 0); if (shm_addr == (guchar*) -1) { - g_message ("shmat failed...disabling shared memory tile transport\n"); + g_message (_("shmat failed...disabling shared memory tile transport\n")); shm_ID = -1; } @@ -372,14 +374,14 @@ plug_in_init () else sprintf (filename, "%s/pluginrc", gimp_directory ()); - app_init_update_status("Resource configuration", filename, -1); + app_init_update_status(_("Resource configuration"), filename, -1); parse_gimprc_file (filename); /* query any plug-ins that have changed since we last wrote out * the pluginrc file. */ tmp = plug_in_defs; - app_init_update_status("Plug-ins", "", 0); + app_init_update_status(_("Plug-ins"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -391,7 +393,7 @@ plug_in_init () { write_pluginrc = TRUE; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("query plug-in: \"%s\"\n", plug_in_def->prog); + g_print (_("query plug-in: \"%s\"\n"), plug_in_def->prog); plug_in_query (plug_in_def->prog, plug_in_def); } app_init_update_status(NULL, plug_in_def->prog, nth/nplugins); @@ -428,7 +430,7 @@ plug_in_init () if (write_pluginrc) { if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("writing \"%s\"\n", filename); + g_print (_("writing \"%s\"\n"), filename); plug_in_write_rc (filename); } @@ -441,8 +443,8 @@ plug_in_init () /* run the available extensions */ tmp = proc_defs; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("Starting extensions: "); - app_init_update_status("Extensions", "", 0); + g_print (_("Starting extensions: ")); + app_init_update_status(_("Extensions"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -729,7 +731,7 @@ plug_in_def_add (PlugInDef *plug_in_def) } write_pluginrc = TRUE; - g_print ("\"%s\" executable not found\n", plug_in_def->prog); + g_print (_("\"%s\" executable not found\n"), plug_in_def->prog); g_free (plug_in_def->prog); g_free (plug_in_def); } @@ -782,7 +784,7 @@ plug_in_new (char *name) path = search_in_path (plug_in_path, name); if (!path) { - g_message ("unable to locate plug-in: \"%s\"", name); + g_message (_("unable to locate plug-in: \"%s\""), name); return NULL; } } @@ -879,7 +881,7 @@ plug_in_open (PlugIn *plug_in) */ if ((pipe (my_read) == -1) || (pipe (my_write) == -1)) { - g_message ("unable to open pipe"); + g_message (_("unable to open pipe")); return 0; } @@ -927,7 +929,7 @@ plug_in_open (PlugIn *plug_in) } else if (plug_in->pid == -1) { - g_message ("unable to run plug-in: %s\n", plug_in->args[0]); + g_message (_("unable to run plug-in: %s\n"), plug_in->args[0]); plug_in_destroy (plug_in); return 0; } @@ -1263,8 +1265,8 @@ plug_in_set_menu_sensitivity (int base_type) menus_set_sensitive (proc_def->menu_path, sensitive); if (last_plug_in && (last_plug_in == &(proc_def->db_info))) { - menus_set_sensitive ("/Filters/Repeat last", sensitive); - menus_set_sensitive ("/Filters/Re-show last", sensitive); + menus_set_sensitive (_("/Filters/Repeat last"), sensitive); + menus_set_sensitive (_("/Filters/Re-show last"), sensitive); } } } @@ -1303,18 +1305,18 @@ plug_in_handle_message (WireMessage *msg) plug_in_handle_quit (); break; case GP_CONFIG: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_REQ: plug_in_handle_tile_req (msg->data); break; case GP_TILE_ACK: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_DATA: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_PROC_RUN: @@ -1325,7 +1327,7 @@ plug_in_handle_message (WireMessage *msg) plug_in_close (current_plug_in, FALSE); break; case GP_TEMP_PROC_RUN: - g_message ("plug_in_handle_message(): received a temp proc run message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a temp proc run message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TEMP_PROC_RETURN: @@ -1372,21 +1374,21 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_DATA) { - g_message ("expected tile data and received: %d\n", msg.type); + g_message (_("expected tile data and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1400,7 +1402,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1408,7 +1410,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_info->tile_num, TRUE, TRUE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1423,7 +1425,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) wire_destroy (&msg); if (!gp_tile_ack_write (current_writefd)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1437,7 +1439,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1445,7 +1447,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_req->tile_num, TRUE, FALSE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1465,7 +1467,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1474,14 +1476,14 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_ACK) { - g_message ("expected tile ack and received: %d\n", msg.type); + g_message (_("expected tile ack and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1505,7 +1507,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!proc_rec) { /* THIS IS PROBABLY NOT CORRECT -josh */ - g_message ("PDB lookup failed on %s\n", proc_run->name); + g_message (_("PDB lookup failed on %s\n"), proc_run->name); plug_in_args_destroy (args, proc_run->nparams, FALSE); return; } @@ -1529,7 +1531,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!gp_proc_return_write (current_writefd, &proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1573,7 +1575,7 @@ plug_in_handle_proc_return (GPProcReturn *proc_return) plug_in_push (blocked->plug_in); if (!gp_proc_return_write (current_writefd, proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1612,8 +1614,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) if ((proc_install->nparams < 1) || (proc_install->params[0].type != PDB_INT32)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1625,8 +1627,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_IMAGE) || (proc_install->params[2].type != PDB_DRAWABLE)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1638,8 +1640,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_STRING) || (proc_install->params[2].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1653,17 +1655,17 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[3].type != PDB_STRING) || (proc_install->params[4].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } } else { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" in " + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" in " "an invalid menu location. Use either \"\", \"\", " - "\"\", or \"\".", + "\"\", or \"\"."), current_plug_in->args[0], proc_install->name); return; } @@ -1681,9 +1683,9 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) proc_install->params[i].type == PDB_STRINGARRAY) && proc_install->params[i-1].type != PDB_INT32) { - g_message ("plug_in \"%s\" attempted to install procedure \"%s\" " + g_message (_("plug_in \"%s\" attempted to install procedure \"%s\" " "which fails to comply with the array parameter " - "passing standard. Argument %d is noncompliant.", + "passing standard. Argument %d is noncompliant."), current_plug_in->args[0], proc_install->name, i); return; } @@ -2091,7 +2093,7 @@ plug_in_init_file (char *filename) if (strcmp (name, plug_in_name) == 0) { - g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename); + g_print (_("duplicate plug-in: \"%s\" (skipping)\n"), filename); return; } @@ -2265,7 +2267,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the plug-in!"); + g_message (_("Uh-oh, no active gdisplay for the plug-in!")); g_free (args); return; } @@ -2286,7 +2288,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the temporary procedure!"); + g_message (_("Uh-oh, no active gdisplay for the temporary procedure!")); g_free (args); return; } @@ -2294,7 +2296,7 @@ plug_in_callback (GtkWidget *widget, break; default: - g_error ("Unknown procedure type."); + g_error (_("Unknown procedure type.")); break; } @@ -2600,7 +2602,7 @@ plug_in_params_to_args (GPParam *params, colorarray[2] = params[i].data.d_color.blue; break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: args[i].value.pdb_int = params[i].data.d_display; @@ -2765,7 +2767,7 @@ plug_in_args_to_params (Argument *args, } break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: params[i].data.d_display = args[i].value.pdb_int; @@ -2882,7 +2884,7 @@ plug_in_params_destroy (GPParam *params, case PDB_COLOR: break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -2967,7 +2969,7 @@ plug_in_args_destroy (Argument *args, g_free (args[i].value.pdb_pointer); break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -3156,7 +3158,7 @@ plug_in_progress_init (PlugIn *plug_in, gtk_box_pack_start (GTK_BOX (vbox), plug_in->progress_bar, TRUE, TRUE, 0); gtk_widget_show (plug_in->progress_bar); - button = gtk_button_new_with_label ("Cancel"); + button = gtk_button_new_with_label (_("Cancel")); gtk_signal_connect_object (GTK_OBJECT (button), "clicked", (GtkSignalFunc) gtk_widget_destroy, GTK_OBJECT (plug_in->progress)); diff --git a/app/plug-in/gimpplugin.c b/app/plug-in/gimpplugin.c index 1dcc01f5e0..d3f184da83 100644 --- a/app/plug-in/gimpplugin.c +++ b/app/plug-in/gimpplugin.c @@ -59,6 +59,8 @@ #include "tile.h" /* ick. */ +#include "libgimp/gimpintl.h" + #define SEPARATE_PROGRESS_BAR @@ -161,17 +163,17 @@ static ProcArg progress_init_args[] = { { PDB_STRING, "message", - "Message to use in the progress dialog." }, + N_("Message to use in the progress dialog.") }, { PDB_INT32, "gdisplay", - "GDisplay to update progressbar in, or -1 for a seperate window" } + N_("GDisplay to update progressbar in, or -1 for a seperate window") } }; static ProcRecord progress_init_proc = { "gimp_progress_init", - "Initializes the progress bar for the current plug-in", - "Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Initializes the progress bar for the current plug-in"), + N_("Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -187,14 +189,14 @@ static ProcArg progress_update_args[] = { { PDB_FLOAT, "percentage", - "Percentage of progress completed" } + N_("Percentage of progress completed") } }; static ProcRecord progress_update_proc = { "gimp_progress_update", - "Updates the progress bar for the current plug-in", - "Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Updates the progress bar for the current plug-in"), + N_("Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -211,14 +213,14 @@ static ProcArg message_args[] = { { PDB_STRING, "message", - "Message to display in the dialog." } + N_("Message to display in the dialog.") } }; static ProcRecord message_proc = { "gimp_message", - "Displays a dialog box with a message", - "Displays a dialog box with a message. Useful for status or error reporting.", + N_("Displays a dialog box with a message"), + N_("Displays a dialog box with a message. Useful for status or error reporting."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -235,14 +237,14 @@ static ProcArg message_handler_get_out_args[] = { { PDB_INT32, "handler", - "the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_get_proc = { "gimp_message_handler_get", - "Returns the current state of where warning messages are displayed.", - "This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Returns the current state of where warning messages are displayed."), + N_("This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -258,14 +260,14 @@ static ProcArg message_handler_set_args[] = { { PDB_INT32, "handler", - "the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_set_proc = { "gimp_message_handler_set", - "Controls where warning messages are displayed.", - "This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Controls where warning messages are displayed."), + N_("This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -281,15 +283,15 @@ static ProcArg plugin_temp_PDB_name_out_args[] = { { PDB_STRING, "Temp name", - "A unique temporary name for a temporary PDB entry name", + N_("A unique temporary name for a temporary PDB entry name"), }, }; static ProcRecord plugin_temp_PDB_name_proc = { "gimp_temp_PDB_name", - "Generates a unique temporary PDB name", - "This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name.", + N_("Generates a unique temporary PDB name"), + N_("This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name."), "Andy Thomas", "Andy Thomas", "1998", @@ -340,13 +342,13 @@ plug_in_init () { shm_ID = shmget (IPC_PRIVATE, TILE_WIDTH * TILE_HEIGHT * 4, IPC_CREAT | 0777); if (shm_ID == -1) - g_message ("shmget failed...disabling shared memory tile transport\n"); + g_message (_("shmget failed...disabling shared memory tile transport\n")); else { shm_addr = (guchar*) shmat (shm_ID, 0, 0); if (shm_addr == (guchar*) -1) { - g_message ("shmat failed...disabling shared memory tile transport\n"); + g_message (_("shmat failed...disabling shared memory tile transport\n")); shm_ID = -1; } @@ -372,14 +374,14 @@ plug_in_init () else sprintf (filename, "%s/pluginrc", gimp_directory ()); - app_init_update_status("Resource configuration", filename, -1); + app_init_update_status(_("Resource configuration"), filename, -1); parse_gimprc_file (filename); /* query any plug-ins that have changed since we last wrote out * the pluginrc file. */ tmp = plug_in_defs; - app_init_update_status("Plug-ins", "", 0); + app_init_update_status(_("Plug-ins"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -391,7 +393,7 @@ plug_in_init () { write_pluginrc = TRUE; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("query plug-in: \"%s\"\n", plug_in_def->prog); + g_print (_("query plug-in: \"%s\"\n"), plug_in_def->prog); plug_in_query (plug_in_def->prog, plug_in_def); } app_init_update_status(NULL, plug_in_def->prog, nth/nplugins); @@ -428,7 +430,7 @@ plug_in_init () if (write_pluginrc) { if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("writing \"%s\"\n", filename); + g_print (_("writing \"%s\"\n"), filename); plug_in_write_rc (filename); } @@ -441,8 +443,8 @@ plug_in_init () /* run the available extensions */ tmp = proc_defs; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("Starting extensions: "); - app_init_update_status("Extensions", "", 0); + g_print (_("Starting extensions: ")); + app_init_update_status(_("Extensions"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -729,7 +731,7 @@ plug_in_def_add (PlugInDef *plug_in_def) } write_pluginrc = TRUE; - g_print ("\"%s\" executable not found\n", plug_in_def->prog); + g_print (_("\"%s\" executable not found\n"), plug_in_def->prog); g_free (plug_in_def->prog); g_free (plug_in_def); } @@ -782,7 +784,7 @@ plug_in_new (char *name) path = search_in_path (plug_in_path, name); if (!path) { - g_message ("unable to locate plug-in: \"%s\"", name); + g_message (_("unable to locate plug-in: \"%s\""), name); return NULL; } } @@ -879,7 +881,7 @@ plug_in_open (PlugIn *plug_in) */ if ((pipe (my_read) == -1) || (pipe (my_write) == -1)) { - g_message ("unable to open pipe"); + g_message (_("unable to open pipe")); return 0; } @@ -927,7 +929,7 @@ plug_in_open (PlugIn *plug_in) } else if (plug_in->pid == -1) { - g_message ("unable to run plug-in: %s\n", plug_in->args[0]); + g_message (_("unable to run plug-in: %s\n"), plug_in->args[0]); plug_in_destroy (plug_in); return 0; } @@ -1263,8 +1265,8 @@ plug_in_set_menu_sensitivity (int base_type) menus_set_sensitive (proc_def->menu_path, sensitive); if (last_plug_in && (last_plug_in == &(proc_def->db_info))) { - menus_set_sensitive ("/Filters/Repeat last", sensitive); - menus_set_sensitive ("/Filters/Re-show last", sensitive); + menus_set_sensitive (_("/Filters/Repeat last"), sensitive); + menus_set_sensitive (_("/Filters/Re-show last"), sensitive); } } } @@ -1303,18 +1305,18 @@ plug_in_handle_message (WireMessage *msg) plug_in_handle_quit (); break; case GP_CONFIG: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_REQ: plug_in_handle_tile_req (msg->data); break; case GP_TILE_ACK: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_DATA: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_PROC_RUN: @@ -1325,7 +1327,7 @@ plug_in_handle_message (WireMessage *msg) plug_in_close (current_plug_in, FALSE); break; case GP_TEMP_PROC_RUN: - g_message ("plug_in_handle_message(): received a temp proc run message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a temp proc run message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TEMP_PROC_RETURN: @@ -1372,21 +1374,21 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_DATA) { - g_message ("expected tile data and received: %d\n", msg.type); + g_message (_("expected tile data and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1400,7 +1402,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1408,7 +1410,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_info->tile_num, TRUE, TRUE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1423,7 +1425,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) wire_destroy (&msg); if (!gp_tile_ack_write (current_writefd)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1437,7 +1439,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1445,7 +1447,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_req->tile_num, TRUE, FALSE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1465,7 +1467,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1474,14 +1476,14 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_ACK) { - g_message ("expected tile ack and received: %d\n", msg.type); + g_message (_("expected tile ack and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1505,7 +1507,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!proc_rec) { /* THIS IS PROBABLY NOT CORRECT -josh */ - g_message ("PDB lookup failed on %s\n", proc_run->name); + g_message (_("PDB lookup failed on %s\n"), proc_run->name); plug_in_args_destroy (args, proc_run->nparams, FALSE); return; } @@ -1529,7 +1531,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!gp_proc_return_write (current_writefd, &proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1573,7 +1575,7 @@ plug_in_handle_proc_return (GPProcReturn *proc_return) plug_in_push (blocked->plug_in); if (!gp_proc_return_write (current_writefd, proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1612,8 +1614,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) if ((proc_install->nparams < 1) || (proc_install->params[0].type != PDB_INT32)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1625,8 +1627,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_IMAGE) || (proc_install->params[2].type != PDB_DRAWABLE)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1638,8 +1640,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_STRING) || (proc_install->params[2].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1653,17 +1655,17 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[3].type != PDB_STRING) || (proc_install->params[4].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } } else { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" in " + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" in " "an invalid menu location. Use either \"\", \"\", " - "\"\", or \"\".", + "\"\", or \"\"."), current_plug_in->args[0], proc_install->name); return; } @@ -1681,9 +1683,9 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) proc_install->params[i].type == PDB_STRINGARRAY) && proc_install->params[i-1].type != PDB_INT32) { - g_message ("plug_in \"%s\" attempted to install procedure \"%s\" " + g_message (_("plug_in \"%s\" attempted to install procedure \"%s\" " "which fails to comply with the array parameter " - "passing standard. Argument %d is noncompliant.", + "passing standard. Argument %d is noncompliant."), current_plug_in->args[0], proc_install->name, i); return; } @@ -2091,7 +2093,7 @@ plug_in_init_file (char *filename) if (strcmp (name, plug_in_name) == 0) { - g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename); + g_print (_("duplicate plug-in: \"%s\" (skipping)\n"), filename); return; } @@ -2265,7 +2267,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the plug-in!"); + g_message (_("Uh-oh, no active gdisplay for the plug-in!")); g_free (args); return; } @@ -2286,7 +2288,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the temporary procedure!"); + g_message (_("Uh-oh, no active gdisplay for the temporary procedure!")); g_free (args); return; } @@ -2294,7 +2296,7 @@ plug_in_callback (GtkWidget *widget, break; default: - g_error ("Unknown procedure type."); + g_error (_("Unknown procedure type.")); break; } @@ -2600,7 +2602,7 @@ plug_in_params_to_args (GPParam *params, colorarray[2] = params[i].data.d_color.blue; break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: args[i].value.pdb_int = params[i].data.d_display; @@ -2765,7 +2767,7 @@ plug_in_args_to_params (Argument *args, } break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: params[i].data.d_display = args[i].value.pdb_int; @@ -2882,7 +2884,7 @@ plug_in_params_destroy (GPParam *params, case PDB_COLOR: break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -2967,7 +2969,7 @@ plug_in_args_destroy (Argument *args, g_free (args[i].value.pdb_pointer); break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -3156,7 +3158,7 @@ plug_in_progress_init (PlugIn *plug_in, gtk_box_pack_start (GTK_BOX (vbox), plug_in->progress_bar, TRUE, TRUE, 0); gtk_widget_show (plug_in->progress_bar); - button = gtk_button_new_with_label ("Cancel"); + button = gtk_button_new_with_label (_("Cancel")); gtk_signal_connect_object (GTK_OBJECT (button), "clicked", (GtkSignalFunc) gtk_widget_destroy, GTK_OBJECT (plug_in->progress)); diff --git a/app/plug-in/gimppluginmanager-call.c b/app/plug-in/gimppluginmanager-call.c index 1dcc01f5e0..d3f184da83 100644 --- a/app/plug-in/gimppluginmanager-call.c +++ b/app/plug-in/gimppluginmanager-call.c @@ -59,6 +59,8 @@ #include "tile.h" /* ick. */ +#include "libgimp/gimpintl.h" + #define SEPARATE_PROGRESS_BAR @@ -161,17 +163,17 @@ static ProcArg progress_init_args[] = { { PDB_STRING, "message", - "Message to use in the progress dialog." }, + N_("Message to use in the progress dialog.") }, { PDB_INT32, "gdisplay", - "GDisplay to update progressbar in, or -1 for a seperate window" } + N_("GDisplay to update progressbar in, or -1 for a seperate window") } }; static ProcRecord progress_init_proc = { "gimp_progress_init", - "Initializes the progress bar for the current plug-in", - "Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Initializes the progress bar for the current plug-in"), + N_("Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -187,14 +189,14 @@ static ProcArg progress_update_args[] = { { PDB_FLOAT, "percentage", - "Percentage of progress completed" } + N_("Percentage of progress completed") } }; static ProcRecord progress_update_proc = { "gimp_progress_update", - "Updates the progress bar for the current plug-in", - "Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Updates the progress bar for the current plug-in"), + N_("Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -211,14 +213,14 @@ static ProcArg message_args[] = { { PDB_STRING, "message", - "Message to display in the dialog." } + N_("Message to display in the dialog.") } }; static ProcRecord message_proc = { "gimp_message", - "Displays a dialog box with a message", - "Displays a dialog box with a message. Useful for status or error reporting.", + N_("Displays a dialog box with a message"), + N_("Displays a dialog box with a message. Useful for status or error reporting."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -235,14 +237,14 @@ static ProcArg message_handler_get_out_args[] = { { PDB_INT32, "handler", - "the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_get_proc = { "gimp_message_handler_get", - "Returns the current state of where warning messages are displayed.", - "This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Returns the current state of where warning messages are displayed."), + N_("This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -258,14 +260,14 @@ static ProcArg message_handler_set_args[] = { { PDB_INT32, "handler", - "the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_set_proc = { "gimp_message_handler_set", - "Controls where warning messages are displayed.", - "This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Controls where warning messages are displayed."), + N_("This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -281,15 +283,15 @@ static ProcArg plugin_temp_PDB_name_out_args[] = { { PDB_STRING, "Temp name", - "A unique temporary name for a temporary PDB entry name", + N_("A unique temporary name for a temporary PDB entry name"), }, }; static ProcRecord plugin_temp_PDB_name_proc = { "gimp_temp_PDB_name", - "Generates a unique temporary PDB name", - "This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name.", + N_("Generates a unique temporary PDB name"), + N_("This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name."), "Andy Thomas", "Andy Thomas", "1998", @@ -340,13 +342,13 @@ plug_in_init () { shm_ID = shmget (IPC_PRIVATE, TILE_WIDTH * TILE_HEIGHT * 4, IPC_CREAT | 0777); if (shm_ID == -1) - g_message ("shmget failed...disabling shared memory tile transport\n"); + g_message (_("shmget failed...disabling shared memory tile transport\n")); else { shm_addr = (guchar*) shmat (shm_ID, 0, 0); if (shm_addr == (guchar*) -1) { - g_message ("shmat failed...disabling shared memory tile transport\n"); + g_message (_("shmat failed...disabling shared memory tile transport\n")); shm_ID = -1; } @@ -372,14 +374,14 @@ plug_in_init () else sprintf (filename, "%s/pluginrc", gimp_directory ()); - app_init_update_status("Resource configuration", filename, -1); + app_init_update_status(_("Resource configuration"), filename, -1); parse_gimprc_file (filename); /* query any plug-ins that have changed since we last wrote out * the pluginrc file. */ tmp = plug_in_defs; - app_init_update_status("Plug-ins", "", 0); + app_init_update_status(_("Plug-ins"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -391,7 +393,7 @@ plug_in_init () { write_pluginrc = TRUE; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("query plug-in: \"%s\"\n", plug_in_def->prog); + g_print (_("query plug-in: \"%s\"\n"), plug_in_def->prog); plug_in_query (plug_in_def->prog, plug_in_def); } app_init_update_status(NULL, plug_in_def->prog, nth/nplugins); @@ -428,7 +430,7 @@ plug_in_init () if (write_pluginrc) { if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("writing \"%s\"\n", filename); + g_print (_("writing \"%s\"\n"), filename); plug_in_write_rc (filename); } @@ -441,8 +443,8 @@ plug_in_init () /* run the available extensions */ tmp = proc_defs; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("Starting extensions: "); - app_init_update_status("Extensions", "", 0); + g_print (_("Starting extensions: ")); + app_init_update_status(_("Extensions"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -729,7 +731,7 @@ plug_in_def_add (PlugInDef *plug_in_def) } write_pluginrc = TRUE; - g_print ("\"%s\" executable not found\n", plug_in_def->prog); + g_print (_("\"%s\" executable not found\n"), plug_in_def->prog); g_free (plug_in_def->prog); g_free (plug_in_def); } @@ -782,7 +784,7 @@ plug_in_new (char *name) path = search_in_path (plug_in_path, name); if (!path) { - g_message ("unable to locate plug-in: \"%s\"", name); + g_message (_("unable to locate plug-in: \"%s\""), name); return NULL; } } @@ -879,7 +881,7 @@ plug_in_open (PlugIn *plug_in) */ if ((pipe (my_read) == -1) || (pipe (my_write) == -1)) { - g_message ("unable to open pipe"); + g_message (_("unable to open pipe")); return 0; } @@ -927,7 +929,7 @@ plug_in_open (PlugIn *plug_in) } else if (plug_in->pid == -1) { - g_message ("unable to run plug-in: %s\n", plug_in->args[0]); + g_message (_("unable to run plug-in: %s\n"), plug_in->args[0]); plug_in_destroy (plug_in); return 0; } @@ -1263,8 +1265,8 @@ plug_in_set_menu_sensitivity (int base_type) menus_set_sensitive (proc_def->menu_path, sensitive); if (last_plug_in && (last_plug_in == &(proc_def->db_info))) { - menus_set_sensitive ("/Filters/Repeat last", sensitive); - menus_set_sensitive ("/Filters/Re-show last", sensitive); + menus_set_sensitive (_("/Filters/Repeat last"), sensitive); + menus_set_sensitive (_("/Filters/Re-show last"), sensitive); } } } @@ -1303,18 +1305,18 @@ plug_in_handle_message (WireMessage *msg) plug_in_handle_quit (); break; case GP_CONFIG: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_REQ: plug_in_handle_tile_req (msg->data); break; case GP_TILE_ACK: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_DATA: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_PROC_RUN: @@ -1325,7 +1327,7 @@ plug_in_handle_message (WireMessage *msg) plug_in_close (current_plug_in, FALSE); break; case GP_TEMP_PROC_RUN: - g_message ("plug_in_handle_message(): received a temp proc run message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a temp proc run message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TEMP_PROC_RETURN: @@ -1372,21 +1374,21 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_DATA) { - g_message ("expected tile data and received: %d\n", msg.type); + g_message (_("expected tile data and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1400,7 +1402,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1408,7 +1410,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_info->tile_num, TRUE, TRUE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1423,7 +1425,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) wire_destroy (&msg); if (!gp_tile_ack_write (current_writefd)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1437,7 +1439,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1445,7 +1447,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_req->tile_num, TRUE, FALSE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1465,7 +1467,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1474,14 +1476,14 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_ACK) { - g_message ("expected tile ack and received: %d\n", msg.type); + g_message (_("expected tile ack and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1505,7 +1507,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!proc_rec) { /* THIS IS PROBABLY NOT CORRECT -josh */ - g_message ("PDB lookup failed on %s\n", proc_run->name); + g_message (_("PDB lookup failed on %s\n"), proc_run->name); plug_in_args_destroy (args, proc_run->nparams, FALSE); return; } @@ -1529,7 +1531,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!gp_proc_return_write (current_writefd, &proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1573,7 +1575,7 @@ plug_in_handle_proc_return (GPProcReturn *proc_return) plug_in_push (blocked->plug_in); if (!gp_proc_return_write (current_writefd, proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1612,8 +1614,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) if ((proc_install->nparams < 1) || (proc_install->params[0].type != PDB_INT32)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1625,8 +1627,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_IMAGE) || (proc_install->params[2].type != PDB_DRAWABLE)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1638,8 +1640,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_STRING) || (proc_install->params[2].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1653,17 +1655,17 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[3].type != PDB_STRING) || (proc_install->params[4].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } } else { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" in " + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" in " "an invalid menu location. Use either \"\", \"\", " - "\"\", or \"\".", + "\"\", or \"\"."), current_plug_in->args[0], proc_install->name); return; } @@ -1681,9 +1683,9 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) proc_install->params[i].type == PDB_STRINGARRAY) && proc_install->params[i-1].type != PDB_INT32) { - g_message ("plug_in \"%s\" attempted to install procedure \"%s\" " + g_message (_("plug_in \"%s\" attempted to install procedure \"%s\" " "which fails to comply with the array parameter " - "passing standard. Argument %d is noncompliant.", + "passing standard. Argument %d is noncompliant."), current_plug_in->args[0], proc_install->name, i); return; } @@ -2091,7 +2093,7 @@ plug_in_init_file (char *filename) if (strcmp (name, plug_in_name) == 0) { - g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename); + g_print (_("duplicate plug-in: \"%s\" (skipping)\n"), filename); return; } @@ -2265,7 +2267,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the plug-in!"); + g_message (_("Uh-oh, no active gdisplay for the plug-in!")); g_free (args); return; } @@ -2286,7 +2288,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the temporary procedure!"); + g_message (_("Uh-oh, no active gdisplay for the temporary procedure!")); g_free (args); return; } @@ -2294,7 +2296,7 @@ plug_in_callback (GtkWidget *widget, break; default: - g_error ("Unknown procedure type."); + g_error (_("Unknown procedure type.")); break; } @@ -2600,7 +2602,7 @@ plug_in_params_to_args (GPParam *params, colorarray[2] = params[i].data.d_color.blue; break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: args[i].value.pdb_int = params[i].data.d_display; @@ -2765,7 +2767,7 @@ plug_in_args_to_params (Argument *args, } break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: params[i].data.d_display = args[i].value.pdb_int; @@ -2882,7 +2884,7 @@ plug_in_params_destroy (GPParam *params, case PDB_COLOR: break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -2967,7 +2969,7 @@ plug_in_args_destroy (Argument *args, g_free (args[i].value.pdb_pointer); break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -3156,7 +3158,7 @@ plug_in_progress_init (PlugIn *plug_in, gtk_box_pack_start (GTK_BOX (vbox), plug_in->progress_bar, TRUE, TRUE, 0); gtk_widget_show (plug_in->progress_bar); - button = gtk_button_new_with_label ("Cancel"); + button = gtk_button_new_with_label (_("Cancel")); gtk_signal_connect_object (GTK_OBJECT (button), "clicked", (GtkSignalFunc) gtk_widget_destroy, GTK_OBJECT (plug_in->progress)); diff --git a/app/plug-in/gimppluginmanager-run.c b/app/plug-in/gimppluginmanager-run.c index 1dcc01f5e0..d3f184da83 100644 --- a/app/plug-in/gimppluginmanager-run.c +++ b/app/plug-in/gimppluginmanager-run.c @@ -59,6 +59,8 @@ #include "tile.h" /* ick. */ +#include "libgimp/gimpintl.h" + #define SEPARATE_PROGRESS_BAR @@ -161,17 +163,17 @@ static ProcArg progress_init_args[] = { { PDB_STRING, "message", - "Message to use in the progress dialog." }, + N_("Message to use in the progress dialog.") }, { PDB_INT32, "gdisplay", - "GDisplay to update progressbar in, or -1 for a seperate window" } + N_("GDisplay to update progressbar in, or -1 for a seperate window") } }; static ProcRecord progress_init_proc = { "gimp_progress_init", - "Initializes the progress bar for the current plug-in", - "Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Initializes the progress bar for the current plug-in"), + N_("Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -187,14 +189,14 @@ static ProcArg progress_update_args[] = { { PDB_FLOAT, "percentage", - "Percentage of progress completed" } + N_("Percentage of progress completed") } }; static ProcRecord progress_update_proc = { "gimp_progress_update", - "Updates the progress bar for the current plug-in", - "Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Updates the progress bar for the current plug-in"), + N_("Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -211,14 +213,14 @@ static ProcArg message_args[] = { { PDB_STRING, "message", - "Message to display in the dialog." } + N_("Message to display in the dialog.") } }; static ProcRecord message_proc = { "gimp_message", - "Displays a dialog box with a message", - "Displays a dialog box with a message. Useful for status or error reporting.", + N_("Displays a dialog box with a message"), + N_("Displays a dialog box with a message. Useful for status or error reporting."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -235,14 +237,14 @@ static ProcArg message_handler_get_out_args[] = { { PDB_INT32, "handler", - "the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_get_proc = { "gimp_message_handler_get", - "Returns the current state of where warning messages are displayed.", - "This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Returns the current state of where warning messages are displayed."), + N_("This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -258,14 +260,14 @@ static ProcArg message_handler_set_args[] = { { PDB_INT32, "handler", - "the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_set_proc = { "gimp_message_handler_set", - "Controls where warning messages are displayed.", - "This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Controls where warning messages are displayed."), + N_("This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -281,15 +283,15 @@ static ProcArg plugin_temp_PDB_name_out_args[] = { { PDB_STRING, "Temp name", - "A unique temporary name for a temporary PDB entry name", + N_("A unique temporary name for a temporary PDB entry name"), }, }; static ProcRecord plugin_temp_PDB_name_proc = { "gimp_temp_PDB_name", - "Generates a unique temporary PDB name", - "This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name.", + N_("Generates a unique temporary PDB name"), + N_("This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name."), "Andy Thomas", "Andy Thomas", "1998", @@ -340,13 +342,13 @@ plug_in_init () { shm_ID = shmget (IPC_PRIVATE, TILE_WIDTH * TILE_HEIGHT * 4, IPC_CREAT | 0777); if (shm_ID == -1) - g_message ("shmget failed...disabling shared memory tile transport\n"); + g_message (_("shmget failed...disabling shared memory tile transport\n")); else { shm_addr = (guchar*) shmat (shm_ID, 0, 0); if (shm_addr == (guchar*) -1) { - g_message ("shmat failed...disabling shared memory tile transport\n"); + g_message (_("shmat failed...disabling shared memory tile transport\n")); shm_ID = -1; } @@ -372,14 +374,14 @@ plug_in_init () else sprintf (filename, "%s/pluginrc", gimp_directory ()); - app_init_update_status("Resource configuration", filename, -1); + app_init_update_status(_("Resource configuration"), filename, -1); parse_gimprc_file (filename); /* query any plug-ins that have changed since we last wrote out * the pluginrc file. */ tmp = plug_in_defs; - app_init_update_status("Plug-ins", "", 0); + app_init_update_status(_("Plug-ins"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -391,7 +393,7 @@ plug_in_init () { write_pluginrc = TRUE; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("query plug-in: \"%s\"\n", plug_in_def->prog); + g_print (_("query plug-in: \"%s\"\n"), plug_in_def->prog); plug_in_query (plug_in_def->prog, plug_in_def); } app_init_update_status(NULL, plug_in_def->prog, nth/nplugins); @@ -428,7 +430,7 @@ plug_in_init () if (write_pluginrc) { if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("writing \"%s\"\n", filename); + g_print (_("writing \"%s\"\n"), filename); plug_in_write_rc (filename); } @@ -441,8 +443,8 @@ plug_in_init () /* run the available extensions */ tmp = proc_defs; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("Starting extensions: "); - app_init_update_status("Extensions", "", 0); + g_print (_("Starting extensions: ")); + app_init_update_status(_("Extensions"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -729,7 +731,7 @@ plug_in_def_add (PlugInDef *plug_in_def) } write_pluginrc = TRUE; - g_print ("\"%s\" executable not found\n", plug_in_def->prog); + g_print (_("\"%s\" executable not found\n"), plug_in_def->prog); g_free (plug_in_def->prog); g_free (plug_in_def); } @@ -782,7 +784,7 @@ plug_in_new (char *name) path = search_in_path (plug_in_path, name); if (!path) { - g_message ("unable to locate plug-in: \"%s\"", name); + g_message (_("unable to locate plug-in: \"%s\""), name); return NULL; } } @@ -879,7 +881,7 @@ plug_in_open (PlugIn *plug_in) */ if ((pipe (my_read) == -1) || (pipe (my_write) == -1)) { - g_message ("unable to open pipe"); + g_message (_("unable to open pipe")); return 0; } @@ -927,7 +929,7 @@ plug_in_open (PlugIn *plug_in) } else if (plug_in->pid == -1) { - g_message ("unable to run plug-in: %s\n", plug_in->args[0]); + g_message (_("unable to run plug-in: %s\n"), plug_in->args[0]); plug_in_destroy (plug_in); return 0; } @@ -1263,8 +1265,8 @@ plug_in_set_menu_sensitivity (int base_type) menus_set_sensitive (proc_def->menu_path, sensitive); if (last_plug_in && (last_plug_in == &(proc_def->db_info))) { - menus_set_sensitive ("/Filters/Repeat last", sensitive); - menus_set_sensitive ("/Filters/Re-show last", sensitive); + menus_set_sensitive (_("/Filters/Repeat last"), sensitive); + menus_set_sensitive (_("/Filters/Re-show last"), sensitive); } } } @@ -1303,18 +1305,18 @@ plug_in_handle_message (WireMessage *msg) plug_in_handle_quit (); break; case GP_CONFIG: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_REQ: plug_in_handle_tile_req (msg->data); break; case GP_TILE_ACK: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_DATA: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_PROC_RUN: @@ -1325,7 +1327,7 @@ plug_in_handle_message (WireMessage *msg) plug_in_close (current_plug_in, FALSE); break; case GP_TEMP_PROC_RUN: - g_message ("plug_in_handle_message(): received a temp proc run message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a temp proc run message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TEMP_PROC_RETURN: @@ -1372,21 +1374,21 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_DATA) { - g_message ("expected tile data and received: %d\n", msg.type); + g_message (_("expected tile data and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1400,7 +1402,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1408,7 +1410,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_info->tile_num, TRUE, TRUE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1423,7 +1425,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) wire_destroy (&msg); if (!gp_tile_ack_write (current_writefd)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1437,7 +1439,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1445,7 +1447,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_req->tile_num, TRUE, FALSE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1465,7 +1467,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1474,14 +1476,14 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_ACK) { - g_message ("expected tile ack and received: %d\n", msg.type); + g_message (_("expected tile ack and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1505,7 +1507,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!proc_rec) { /* THIS IS PROBABLY NOT CORRECT -josh */ - g_message ("PDB lookup failed on %s\n", proc_run->name); + g_message (_("PDB lookup failed on %s\n"), proc_run->name); plug_in_args_destroy (args, proc_run->nparams, FALSE); return; } @@ -1529,7 +1531,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!gp_proc_return_write (current_writefd, &proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1573,7 +1575,7 @@ plug_in_handle_proc_return (GPProcReturn *proc_return) plug_in_push (blocked->plug_in); if (!gp_proc_return_write (current_writefd, proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1612,8 +1614,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) if ((proc_install->nparams < 1) || (proc_install->params[0].type != PDB_INT32)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1625,8 +1627,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_IMAGE) || (proc_install->params[2].type != PDB_DRAWABLE)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1638,8 +1640,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_STRING) || (proc_install->params[2].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1653,17 +1655,17 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[3].type != PDB_STRING) || (proc_install->params[4].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } } else { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" in " + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" in " "an invalid menu location. Use either \"\", \"\", " - "\"\", or \"\".", + "\"\", or \"\"."), current_plug_in->args[0], proc_install->name); return; } @@ -1681,9 +1683,9 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) proc_install->params[i].type == PDB_STRINGARRAY) && proc_install->params[i-1].type != PDB_INT32) { - g_message ("plug_in \"%s\" attempted to install procedure \"%s\" " + g_message (_("plug_in \"%s\" attempted to install procedure \"%s\" " "which fails to comply with the array parameter " - "passing standard. Argument %d is noncompliant.", + "passing standard. Argument %d is noncompliant."), current_plug_in->args[0], proc_install->name, i); return; } @@ -2091,7 +2093,7 @@ plug_in_init_file (char *filename) if (strcmp (name, plug_in_name) == 0) { - g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename); + g_print (_("duplicate plug-in: \"%s\" (skipping)\n"), filename); return; } @@ -2265,7 +2267,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the plug-in!"); + g_message (_("Uh-oh, no active gdisplay for the plug-in!")); g_free (args); return; } @@ -2286,7 +2288,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the temporary procedure!"); + g_message (_("Uh-oh, no active gdisplay for the temporary procedure!")); g_free (args); return; } @@ -2294,7 +2296,7 @@ plug_in_callback (GtkWidget *widget, break; default: - g_error ("Unknown procedure type."); + g_error (_("Unknown procedure type.")); break; } @@ -2600,7 +2602,7 @@ plug_in_params_to_args (GPParam *params, colorarray[2] = params[i].data.d_color.blue; break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: args[i].value.pdb_int = params[i].data.d_display; @@ -2765,7 +2767,7 @@ plug_in_args_to_params (Argument *args, } break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: params[i].data.d_display = args[i].value.pdb_int; @@ -2882,7 +2884,7 @@ plug_in_params_destroy (GPParam *params, case PDB_COLOR: break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -2967,7 +2969,7 @@ plug_in_args_destroy (Argument *args, g_free (args[i].value.pdb_pointer); break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -3156,7 +3158,7 @@ plug_in_progress_init (PlugIn *plug_in, gtk_box_pack_start (GTK_BOX (vbox), plug_in->progress_bar, TRUE, TRUE, 0); gtk_widget_show (plug_in->progress_bar); - button = gtk_button_new_with_label ("Cancel"); + button = gtk_button_new_with_label (_("Cancel")); gtk_signal_connect_object (GTK_OBJECT (button), "clicked", (GtkSignalFunc) gtk_widget_destroy, GTK_OBJECT (plug_in->progress)); diff --git a/app/plug-in/gimppluginmanager.c b/app/plug-in/gimppluginmanager.c index 1dcc01f5e0..d3f184da83 100644 --- a/app/plug-in/gimppluginmanager.c +++ b/app/plug-in/gimppluginmanager.c @@ -59,6 +59,8 @@ #include "tile.h" /* ick. */ +#include "libgimp/gimpintl.h" + #define SEPARATE_PROGRESS_BAR @@ -161,17 +163,17 @@ static ProcArg progress_init_args[] = { { PDB_STRING, "message", - "Message to use in the progress dialog." }, + N_("Message to use in the progress dialog.") }, { PDB_INT32, "gdisplay", - "GDisplay to update progressbar in, or -1 for a seperate window" } + N_("GDisplay to update progressbar in, or -1 for a seperate window") } }; static ProcRecord progress_init_proc = { "gimp_progress_init", - "Initializes the progress bar for the current plug-in", - "Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Initializes the progress bar for the current plug-in"), + N_("Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -187,14 +189,14 @@ static ProcArg progress_update_args[] = { { PDB_FLOAT, "percentage", - "Percentage of progress completed" } + N_("Percentage of progress completed") } }; static ProcRecord progress_update_proc = { "gimp_progress_update", - "Updates the progress bar for the current plug-in", - "Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Updates the progress bar for the current plug-in"), + N_("Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -211,14 +213,14 @@ static ProcArg message_args[] = { { PDB_STRING, "message", - "Message to display in the dialog." } + N_("Message to display in the dialog.") } }; static ProcRecord message_proc = { "gimp_message", - "Displays a dialog box with a message", - "Displays a dialog box with a message. Useful for status or error reporting.", + N_("Displays a dialog box with a message"), + N_("Displays a dialog box with a message. Useful for status or error reporting."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -235,14 +237,14 @@ static ProcArg message_handler_get_out_args[] = { { PDB_INT32, "handler", - "the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_get_proc = { "gimp_message_handler_get", - "Returns the current state of where warning messages are displayed.", - "This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Returns the current state of where warning messages are displayed."), + N_("This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -258,14 +260,14 @@ static ProcArg message_handler_set_args[] = { { PDB_INT32, "handler", - "the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_set_proc = { "gimp_message_handler_set", - "Controls where warning messages are displayed.", - "This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Controls where warning messages are displayed."), + N_("This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -281,15 +283,15 @@ static ProcArg plugin_temp_PDB_name_out_args[] = { { PDB_STRING, "Temp name", - "A unique temporary name for a temporary PDB entry name", + N_("A unique temporary name for a temporary PDB entry name"), }, }; static ProcRecord plugin_temp_PDB_name_proc = { "gimp_temp_PDB_name", - "Generates a unique temporary PDB name", - "This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name.", + N_("Generates a unique temporary PDB name"), + N_("This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name."), "Andy Thomas", "Andy Thomas", "1998", @@ -340,13 +342,13 @@ plug_in_init () { shm_ID = shmget (IPC_PRIVATE, TILE_WIDTH * TILE_HEIGHT * 4, IPC_CREAT | 0777); if (shm_ID == -1) - g_message ("shmget failed...disabling shared memory tile transport\n"); + g_message (_("shmget failed...disabling shared memory tile transport\n")); else { shm_addr = (guchar*) shmat (shm_ID, 0, 0); if (shm_addr == (guchar*) -1) { - g_message ("shmat failed...disabling shared memory tile transport\n"); + g_message (_("shmat failed...disabling shared memory tile transport\n")); shm_ID = -1; } @@ -372,14 +374,14 @@ plug_in_init () else sprintf (filename, "%s/pluginrc", gimp_directory ()); - app_init_update_status("Resource configuration", filename, -1); + app_init_update_status(_("Resource configuration"), filename, -1); parse_gimprc_file (filename); /* query any plug-ins that have changed since we last wrote out * the pluginrc file. */ tmp = plug_in_defs; - app_init_update_status("Plug-ins", "", 0); + app_init_update_status(_("Plug-ins"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -391,7 +393,7 @@ plug_in_init () { write_pluginrc = TRUE; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("query plug-in: \"%s\"\n", plug_in_def->prog); + g_print (_("query plug-in: \"%s\"\n"), plug_in_def->prog); plug_in_query (plug_in_def->prog, plug_in_def); } app_init_update_status(NULL, plug_in_def->prog, nth/nplugins); @@ -428,7 +430,7 @@ plug_in_init () if (write_pluginrc) { if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("writing \"%s\"\n", filename); + g_print (_("writing \"%s\"\n"), filename); plug_in_write_rc (filename); } @@ -441,8 +443,8 @@ plug_in_init () /* run the available extensions */ tmp = proc_defs; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("Starting extensions: "); - app_init_update_status("Extensions", "", 0); + g_print (_("Starting extensions: ")); + app_init_update_status(_("Extensions"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -729,7 +731,7 @@ plug_in_def_add (PlugInDef *plug_in_def) } write_pluginrc = TRUE; - g_print ("\"%s\" executable not found\n", plug_in_def->prog); + g_print (_("\"%s\" executable not found\n"), plug_in_def->prog); g_free (plug_in_def->prog); g_free (plug_in_def); } @@ -782,7 +784,7 @@ plug_in_new (char *name) path = search_in_path (plug_in_path, name); if (!path) { - g_message ("unable to locate plug-in: \"%s\"", name); + g_message (_("unable to locate plug-in: \"%s\""), name); return NULL; } } @@ -879,7 +881,7 @@ plug_in_open (PlugIn *plug_in) */ if ((pipe (my_read) == -1) || (pipe (my_write) == -1)) { - g_message ("unable to open pipe"); + g_message (_("unable to open pipe")); return 0; } @@ -927,7 +929,7 @@ plug_in_open (PlugIn *plug_in) } else if (plug_in->pid == -1) { - g_message ("unable to run plug-in: %s\n", plug_in->args[0]); + g_message (_("unable to run plug-in: %s\n"), plug_in->args[0]); plug_in_destroy (plug_in); return 0; } @@ -1263,8 +1265,8 @@ plug_in_set_menu_sensitivity (int base_type) menus_set_sensitive (proc_def->menu_path, sensitive); if (last_plug_in && (last_plug_in == &(proc_def->db_info))) { - menus_set_sensitive ("/Filters/Repeat last", sensitive); - menus_set_sensitive ("/Filters/Re-show last", sensitive); + menus_set_sensitive (_("/Filters/Repeat last"), sensitive); + menus_set_sensitive (_("/Filters/Re-show last"), sensitive); } } } @@ -1303,18 +1305,18 @@ plug_in_handle_message (WireMessage *msg) plug_in_handle_quit (); break; case GP_CONFIG: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_REQ: plug_in_handle_tile_req (msg->data); break; case GP_TILE_ACK: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_DATA: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_PROC_RUN: @@ -1325,7 +1327,7 @@ plug_in_handle_message (WireMessage *msg) plug_in_close (current_plug_in, FALSE); break; case GP_TEMP_PROC_RUN: - g_message ("plug_in_handle_message(): received a temp proc run message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a temp proc run message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TEMP_PROC_RETURN: @@ -1372,21 +1374,21 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_DATA) { - g_message ("expected tile data and received: %d\n", msg.type); + g_message (_("expected tile data and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1400,7 +1402,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1408,7 +1410,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_info->tile_num, TRUE, TRUE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1423,7 +1425,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) wire_destroy (&msg); if (!gp_tile_ack_write (current_writefd)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1437,7 +1439,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1445,7 +1447,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_req->tile_num, TRUE, FALSE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1465,7 +1467,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1474,14 +1476,14 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_ACK) { - g_message ("expected tile ack and received: %d\n", msg.type); + g_message (_("expected tile ack and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1505,7 +1507,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!proc_rec) { /* THIS IS PROBABLY NOT CORRECT -josh */ - g_message ("PDB lookup failed on %s\n", proc_run->name); + g_message (_("PDB lookup failed on %s\n"), proc_run->name); plug_in_args_destroy (args, proc_run->nparams, FALSE); return; } @@ -1529,7 +1531,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!gp_proc_return_write (current_writefd, &proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1573,7 +1575,7 @@ plug_in_handle_proc_return (GPProcReturn *proc_return) plug_in_push (blocked->plug_in); if (!gp_proc_return_write (current_writefd, proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1612,8 +1614,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) if ((proc_install->nparams < 1) || (proc_install->params[0].type != PDB_INT32)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1625,8 +1627,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_IMAGE) || (proc_install->params[2].type != PDB_DRAWABLE)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1638,8 +1640,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_STRING) || (proc_install->params[2].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1653,17 +1655,17 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[3].type != PDB_STRING) || (proc_install->params[4].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } } else { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" in " + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" in " "an invalid menu location. Use either \"\", \"\", " - "\"\", or \"\".", + "\"\", or \"\"."), current_plug_in->args[0], proc_install->name); return; } @@ -1681,9 +1683,9 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) proc_install->params[i].type == PDB_STRINGARRAY) && proc_install->params[i-1].type != PDB_INT32) { - g_message ("plug_in \"%s\" attempted to install procedure \"%s\" " + g_message (_("plug_in \"%s\" attempted to install procedure \"%s\" " "which fails to comply with the array parameter " - "passing standard. Argument %d is noncompliant.", + "passing standard. Argument %d is noncompliant."), current_plug_in->args[0], proc_install->name, i); return; } @@ -2091,7 +2093,7 @@ plug_in_init_file (char *filename) if (strcmp (name, plug_in_name) == 0) { - g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename); + g_print (_("duplicate plug-in: \"%s\" (skipping)\n"), filename); return; } @@ -2265,7 +2267,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the plug-in!"); + g_message (_("Uh-oh, no active gdisplay for the plug-in!")); g_free (args); return; } @@ -2286,7 +2288,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the temporary procedure!"); + g_message (_("Uh-oh, no active gdisplay for the temporary procedure!")); g_free (args); return; } @@ -2294,7 +2296,7 @@ plug_in_callback (GtkWidget *widget, break; default: - g_error ("Unknown procedure type."); + g_error (_("Unknown procedure type.")); break; } @@ -2600,7 +2602,7 @@ plug_in_params_to_args (GPParam *params, colorarray[2] = params[i].data.d_color.blue; break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: args[i].value.pdb_int = params[i].data.d_display; @@ -2765,7 +2767,7 @@ plug_in_args_to_params (Argument *args, } break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: params[i].data.d_display = args[i].value.pdb_int; @@ -2882,7 +2884,7 @@ plug_in_params_destroy (GPParam *params, case PDB_COLOR: break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -2967,7 +2969,7 @@ plug_in_args_destroy (Argument *args, g_free (args[i].value.pdb_pointer); break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -3156,7 +3158,7 @@ plug_in_progress_init (PlugIn *plug_in, gtk_box_pack_start (GTK_BOX (vbox), plug_in->progress_bar, TRUE, TRUE, 0); gtk_widget_show (plug_in->progress_bar); - button = gtk_button_new_with_label ("Cancel"); + button = gtk_button_new_with_label (_("Cancel")); gtk_signal_connect_object (GTK_OBJECT (button), "clicked", (GtkSignalFunc) gtk_widget_destroy, GTK_OBJECT (plug_in->progress)); diff --git a/app/plug-in/gimppluginshm.c b/app/plug-in/gimppluginshm.c index 1dcc01f5e0..d3f184da83 100644 --- a/app/plug-in/gimppluginshm.c +++ b/app/plug-in/gimppluginshm.c @@ -59,6 +59,8 @@ #include "tile.h" /* ick. */ +#include "libgimp/gimpintl.h" + #define SEPARATE_PROGRESS_BAR @@ -161,17 +163,17 @@ static ProcArg progress_init_args[] = { { PDB_STRING, "message", - "Message to use in the progress dialog." }, + N_("Message to use in the progress dialog.") }, { PDB_INT32, "gdisplay", - "GDisplay to update progressbar in, or -1 for a seperate window" } + N_("GDisplay to update progressbar in, or -1 for a seperate window") } }; static ProcRecord progress_init_proc = { "gimp_progress_init", - "Initializes the progress bar for the current plug-in", - "Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Initializes the progress bar for the current plug-in"), + N_("Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -187,14 +189,14 @@ static ProcArg progress_update_args[] = { { PDB_FLOAT, "percentage", - "Percentage of progress completed" } + N_("Percentage of progress completed") } }; static ProcRecord progress_update_proc = { "gimp_progress_update", - "Updates the progress bar for the current plug-in", - "Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Updates the progress bar for the current plug-in"), + N_("Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -211,14 +213,14 @@ static ProcArg message_args[] = { { PDB_STRING, "message", - "Message to display in the dialog." } + N_("Message to display in the dialog.") } }; static ProcRecord message_proc = { "gimp_message", - "Displays a dialog box with a message", - "Displays a dialog box with a message. Useful for status or error reporting.", + N_("Displays a dialog box with a message"), + N_("Displays a dialog box with a message. Useful for status or error reporting."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -235,14 +237,14 @@ static ProcArg message_handler_get_out_args[] = { { PDB_INT32, "handler", - "the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_get_proc = { "gimp_message_handler_get", - "Returns the current state of where warning messages are displayed.", - "This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Returns the current state of where warning messages are displayed."), + N_("This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -258,14 +260,14 @@ static ProcArg message_handler_set_args[] = { { PDB_INT32, "handler", - "the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_set_proc = { "gimp_message_handler_set", - "Controls where warning messages are displayed.", - "This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Controls where warning messages are displayed."), + N_("This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -281,15 +283,15 @@ static ProcArg plugin_temp_PDB_name_out_args[] = { { PDB_STRING, "Temp name", - "A unique temporary name for a temporary PDB entry name", + N_("A unique temporary name for a temporary PDB entry name"), }, }; static ProcRecord plugin_temp_PDB_name_proc = { "gimp_temp_PDB_name", - "Generates a unique temporary PDB name", - "This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name.", + N_("Generates a unique temporary PDB name"), + N_("This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name."), "Andy Thomas", "Andy Thomas", "1998", @@ -340,13 +342,13 @@ plug_in_init () { shm_ID = shmget (IPC_PRIVATE, TILE_WIDTH * TILE_HEIGHT * 4, IPC_CREAT | 0777); if (shm_ID == -1) - g_message ("shmget failed...disabling shared memory tile transport\n"); + g_message (_("shmget failed...disabling shared memory tile transport\n")); else { shm_addr = (guchar*) shmat (shm_ID, 0, 0); if (shm_addr == (guchar*) -1) { - g_message ("shmat failed...disabling shared memory tile transport\n"); + g_message (_("shmat failed...disabling shared memory tile transport\n")); shm_ID = -1; } @@ -372,14 +374,14 @@ plug_in_init () else sprintf (filename, "%s/pluginrc", gimp_directory ()); - app_init_update_status("Resource configuration", filename, -1); + app_init_update_status(_("Resource configuration"), filename, -1); parse_gimprc_file (filename); /* query any plug-ins that have changed since we last wrote out * the pluginrc file. */ tmp = plug_in_defs; - app_init_update_status("Plug-ins", "", 0); + app_init_update_status(_("Plug-ins"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -391,7 +393,7 @@ plug_in_init () { write_pluginrc = TRUE; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("query plug-in: \"%s\"\n", plug_in_def->prog); + g_print (_("query plug-in: \"%s\"\n"), plug_in_def->prog); plug_in_query (plug_in_def->prog, plug_in_def); } app_init_update_status(NULL, plug_in_def->prog, nth/nplugins); @@ -428,7 +430,7 @@ plug_in_init () if (write_pluginrc) { if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("writing \"%s\"\n", filename); + g_print (_("writing \"%s\"\n"), filename); plug_in_write_rc (filename); } @@ -441,8 +443,8 @@ plug_in_init () /* run the available extensions */ tmp = proc_defs; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("Starting extensions: "); - app_init_update_status("Extensions", "", 0); + g_print (_("Starting extensions: ")); + app_init_update_status(_("Extensions"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -729,7 +731,7 @@ plug_in_def_add (PlugInDef *plug_in_def) } write_pluginrc = TRUE; - g_print ("\"%s\" executable not found\n", plug_in_def->prog); + g_print (_("\"%s\" executable not found\n"), plug_in_def->prog); g_free (plug_in_def->prog); g_free (plug_in_def); } @@ -782,7 +784,7 @@ plug_in_new (char *name) path = search_in_path (plug_in_path, name); if (!path) { - g_message ("unable to locate plug-in: \"%s\"", name); + g_message (_("unable to locate plug-in: \"%s\""), name); return NULL; } } @@ -879,7 +881,7 @@ plug_in_open (PlugIn *plug_in) */ if ((pipe (my_read) == -1) || (pipe (my_write) == -1)) { - g_message ("unable to open pipe"); + g_message (_("unable to open pipe")); return 0; } @@ -927,7 +929,7 @@ plug_in_open (PlugIn *plug_in) } else if (plug_in->pid == -1) { - g_message ("unable to run plug-in: %s\n", plug_in->args[0]); + g_message (_("unable to run plug-in: %s\n"), plug_in->args[0]); plug_in_destroy (plug_in); return 0; } @@ -1263,8 +1265,8 @@ plug_in_set_menu_sensitivity (int base_type) menus_set_sensitive (proc_def->menu_path, sensitive); if (last_plug_in && (last_plug_in == &(proc_def->db_info))) { - menus_set_sensitive ("/Filters/Repeat last", sensitive); - menus_set_sensitive ("/Filters/Re-show last", sensitive); + menus_set_sensitive (_("/Filters/Repeat last"), sensitive); + menus_set_sensitive (_("/Filters/Re-show last"), sensitive); } } } @@ -1303,18 +1305,18 @@ plug_in_handle_message (WireMessage *msg) plug_in_handle_quit (); break; case GP_CONFIG: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_REQ: plug_in_handle_tile_req (msg->data); break; case GP_TILE_ACK: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_DATA: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_PROC_RUN: @@ -1325,7 +1327,7 @@ plug_in_handle_message (WireMessage *msg) plug_in_close (current_plug_in, FALSE); break; case GP_TEMP_PROC_RUN: - g_message ("plug_in_handle_message(): received a temp proc run message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a temp proc run message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TEMP_PROC_RETURN: @@ -1372,21 +1374,21 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_DATA) { - g_message ("expected tile data and received: %d\n", msg.type); + g_message (_("expected tile data and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1400,7 +1402,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1408,7 +1410,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_info->tile_num, TRUE, TRUE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1423,7 +1425,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) wire_destroy (&msg); if (!gp_tile_ack_write (current_writefd)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1437,7 +1439,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1445,7 +1447,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_req->tile_num, TRUE, FALSE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1465,7 +1467,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1474,14 +1476,14 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_ACK) { - g_message ("expected tile ack and received: %d\n", msg.type); + g_message (_("expected tile ack and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1505,7 +1507,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!proc_rec) { /* THIS IS PROBABLY NOT CORRECT -josh */ - g_message ("PDB lookup failed on %s\n", proc_run->name); + g_message (_("PDB lookup failed on %s\n"), proc_run->name); plug_in_args_destroy (args, proc_run->nparams, FALSE); return; } @@ -1529,7 +1531,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!gp_proc_return_write (current_writefd, &proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1573,7 +1575,7 @@ plug_in_handle_proc_return (GPProcReturn *proc_return) plug_in_push (blocked->plug_in); if (!gp_proc_return_write (current_writefd, proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1612,8 +1614,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) if ((proc_install->nparams < 1) || (proc_install->params[0].type != PDB_INT32)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1625,8 +1627,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_IMAGE) || (proc_install->params[2].type != PDB_DRAWABLE)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1638,8 +1640,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_STRING) || (proc_install->params[2].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1653,17 +1655,17 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[3].type != PDB_STRING) || (proc_install->params[4].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } } else { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" in " + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" in " "an invalid menu location. Use either \"\", \"\", " - "\"\", or \"\".", + "\"\", or \"\"."), current_plug_in->args[0], proc_install->name); return; } @@ -1681,9 +1683,9 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) proc_install->params[i].type == PDB_STRINGARRAY) && proc_install->params[i-1].type != PDB_INT32) { - g_message ("plug_in \"%s\" attempted to install procedure \"%s\" " + g_message (_("plug_in \"%s\" attempted to install procedure \"%s\" " "which fails to comply with the array parameter " - "passing standard. Argument %d is noncompliant.", + "passing standard. Argument %d is noncompliant."), current_plug_in->args[0], proc_install->name, i); return; } @@ -2091,7 +2093,7 @@ plug_in_init_file (char *filename) if (strcmp (name, plug_in_name) == 0) { - g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename); + g_print (_("duplicate plug-in: \"%s\" (skipping)\n"), filename); return; } @@ -2265,7 +2267,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the plug-in!"); + g_message (_("Uh-oh, no active gdisplay for the plug-in!")); g_free (args); return; } @@ -2286,7 +2288,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the temporary procedure!"); + g_message (_("Uh-oh, no active gdisplay for the temporary procedure!")); g_free (args); return; } @@ -2294,7 +2296,7 @@ plug_in_callback (GtkWidget *widget, break; default: - g_error ("Unknown procedure type."); + g_error (_("Unknown procedure type.")); break; } @@ -2600,7 +2602,7 @@ plug_in_params_to_args (GPParam *params, colorarray[2] = params[i].data.d_color.blue; break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: args[i].value.pdb_int = params[i].data.d_display; @@ -2765,7 +2767,7 @@ plug_in_args_to_params (Argument *args, } break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: params[i].data.d_display = args[i].value.pdb_int; @@ -2882,7 +2884,7 @@ plug_in_params_destroy (GPParam *params, case PDB_COLOR: break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -2967,7 +2969,7 @@ plug_in_args_destroy (Argument *args, g_free (args[i].value.pdb_pointer); break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -3156,7 +3158,7 @@ plug_in_progress_init (PlugIn *plug_in, gtk_box_pack_start (GTK_BOX (vbox), plug_in->progress_bar, TRUE, TRUE, 0); gtk_widget_show (plug_in->progress_bar); - button = gtk_button_new_with_label ("Cancel"); + button = gtk_button_new_with_label (_("Cancel")); gtk_signal_connect_object (GTK_OBJECT (button), "clicked", (GtkSignalFunc) gtk_widget_destroy, GTK_OBJECT (plug_in->progress)); diff --git a/app/plug-in/plug-in-def.c b/app/plug-in/plug-in-def.c index 1dcc01f5e0..d3f184da83 100644 --- a/app/plug-in/plug-in-def.c +++ b/app/plug-in/plug-in-def.c @@ -59,6 +59,8 @@ #include "tile.h" /* ick. */ +#include "libgimp/gimpintl.h" + #define SEPARATE_PROGRESS_BAR @@ -161,17 +163,17 @@ static ProcArg progress_init_args[] = { { PDB_STRING, "message", - "Message to use in the progress dialog." }, + N_("Message to use in the progress dialog.") }, { PDB_INT32, "gdisplay", - "GDisplay to update progressbar in, or -1 for a seperate window" } + N_("GDisplay to update progressbar in, or -1 for a seperate window") } }; static ProcRecord progress_init_proc = { "gimp_progress_init", - "Initializes the progress bar for the current plug-in", - "Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Initializes the progress bar for the current plug-in"), + N_("Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -187,14 +189,14 @@ static ProcArg progress_update_args[] = { { PDB_FLOAT, "percentage", - "Percentage of progress completed" } + N_("Percentage of progress completed") } }; static ProcRecord progress_update_proc = { "gimp_progress_update", - "Updates the progress bar for the current plug-in", - "Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Updates the progress bar for the current plug-in"), + N_("Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -211,14 +213,14 @@ static ProcArg message_args[] = { { PDB_STRING, "message", - "Message to display in the dialog." } + N_("Message to display in the dialog.") } }; static ProcRecord message_proc = { "gimp_message", - "Displays a dialog box with a message", - "Displays a dialog box with a message. Useful for status or error reporting.", + N_("Displays a dialog box with a message"), + N_("Displays a dialog box with a message. Useful for status or error reporting."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -235,14 +237,14 @@ static ProcArg message_handler_get_out_args[] = { { PDB_INT32, "handler", - "the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_get_proc = { "gimp_message_handler_get", - "Returns the current state of where warning messages are displayed.", - "This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Returns the current state of where warning messages are displayed."), + N_("This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -258,14 +260,14 @@ static ProcArg message_handler_set_args[] = { { PDB_INT32, "handler", - "the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_set_proc = { "gimp_message_handler_set", - "Controls where warning messages are displayed.", - "This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Controls where warning messages are displayed."), + N_("This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -281,15 +283,15 @@ static ProcArg plugin_temp_PDB_name_out_args[] = { { PDB_STRING, "Temp name", - "A unique temporary name for a temporary PDB entry name", + N_("A unique temporary name for a temporary PDB entry name"), }, }; static ProcRecord plugin_temp_PDB_name_proc = { "gimp_temp_PDB_name", - "Generates a unique temporary PDB name", - "This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name.", + N_("Generates a unique temporary PDB name"), + N_("This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name."), "Andy Thomas", "Andy Thomas", "1998", @@ -340,13 +342,13 @@ plug_in_init () { shm_ID = shmget (IPC_PRIVATE, TILE_WIDTH * TILE_HEIGHT * 4, IPC_CREAT | 0777); if (shm_ID == -1) - g_message ("shmget failed...disabling shared memory tile transport\n"); + g_message (_("shmget failed...disabling shared memory tile transport\n")); else { shm_addr = (guchar*) shmat (shm_ID, 0, 0); if (shm_addr == (guchar*) -1) { - g_message ("shmat failed...disabling shared memory tile transport\n"); + g_message (_("shmat failed...disabling shared memory tile transport\n")); shm_ID = -1; } @@ -372,14 +374,14 @@ plug_in_init () else sprintf (filename, "%s/pluginrc", gimp_directory ()); - app_init_update_status("Resource configuration", filename, -1); + app_init_update_status(_("Resource configuration"), filename, -1); parse_gimprc_file (filename); /* query any plug-ins that have changed since we last wrote out * the pluginrc file. */ tmp = plug_in_defs; - app_init_update_status("Plug-ins", "", 0); + app_init_update_status(_("Plug-ins"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -391,7 +393,7 @@ plug_in_init () { write_pluginrc = TRUE; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("query plug-in: \"%s\"\n", plug_in_def->prog); + g_print (_("query plug-in: \"%s\"\n"), plug_in_def->prog); plug_in_query (plug_in_def->prog, plug_in_def); } app_init_update_status(NULL, plug_in_def->prog, nth/nplugins); @@ -428,7 +430,7 @@ plug_in_init () if (write_pluginrc) { if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("writing \"%s\"\n", filename); + g_print (_("writing \"%s\"\n"), filename); plug_in_write_rc (filename); } @@ -441,8 +443,8 @@ plug_in_init () /* run the available extensions */ tmp = proc_defs; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("Starting extensions: "); - app_init_update_status("Extensions", "", 0); + g_print (_("Starting extensions: ")); + app_init_update_status(_("Extensions"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -729,7 +731,7 @@ plug_in_def_add (PlugInDef *plug_in_def) } write_pluginrc = TRUE; - g_print ("\"%s\" executable not found\n", plug_in_def->prog); + g_print (_("\"%s\" executable not found\n"), plug_in_def->prog); g_free (plug_in_def->prog); g_free (plug_in_def); } @@ -782,7 +784,7 @@ plug_in_new (char *name) path = search_in_path (plug_in_path, name); if (!path) { - g_message ("unable to locate plug-in: \"%s\"", name); + g_message (_("unable to locate plug-in: \"%s\""), name); return NULL; } } @@ -879,7 +881,7 @@ plug_in_open (PlugIn *plug_in) */ if ((pipe (my_read) == -1) || (pipe (my_write) == -1)) { - g_message ("unable to open pipe"); + g_message (_("unable to open pipe")); return 0; } @@ -927,7 +929,7 @@ plug_in_open (PlugIn *plug_in) } else if (plug_in->pid == -1) { - g_message ("unable to run plug-in: %s\n", plug_in->args[0]); + g_message (_("unable to run plug-in: %s\n"), plug_in->args[0]); plug_in_destroy (plug_in); return 0; } @@ -1263,8 +1265,8 @@ plug_in_set_menu_sensitivity (int base_type) menus_set_sensitive (proc_def->menu_path, sensitive); if (last_plug_in && (last_plug_in == &(proc_def->db_info))) { - menus_set_sensitive ("/Filters/Repeat last", sensitive); - menus_set_sensitive ("/Filters/Re-show last", sensitive); + menus_set_sensitive (_("/Filters/Repeat last"), sensitive); + menus_set_sensitive (_("/Filters/Re-show last"), sensitive); } } } @@ -1303,18 +1305,18 @@ plug_in_handle_message (WireMessage *msg) plug_in_handle_quit (); break; case GP_CONFIG: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_REQ: plug_in_handle_tile_req (msg->data); break; case GP_TILE_ACK: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_DATA: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_PROC_RUN: @@ -1325,7 +1327,7 @@ plug_in_handle_message (WireMessage *msg) plug_in_close (current_plug_in, FALSE); break; case GP_TEMP_PROC_RUN: - g_message ("plug_in_handle_message(): received a temp proc run message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a temp proc run message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TEMP_PROC_RETURN: @@ -1372,21 +1374,21 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_DATA) { - g_message ("expected tile data and received: %d\n", msg.type); + g_message (_("expected tile data and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1400,7 +1402,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1408,7 +1410,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_info->tile_num, TRUE, TRUE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1423,7 +1425,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) wire_destroy (&msg); if (!gp_tile_ack_write (current_writefd)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1437,7 +1439,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1445,7 +1447,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_req->tile_num, TRUE, FALSE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1465,7 +1467,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1474,14 +1476,14 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_ACK) { - g_message ("expected tile ack and received: %d\n", msg.type); + g_message (_("expected tile ack and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1505,7 +1507,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!proc_rec) { /* THIS IS PROBABLY NOT CORRECT -josh */ - g_message ("PDB lookup failed on %s\n", proc_run->name); + g_message (_("PDB lookup failed on %s\n"), proc_run->name); plug_in_args_destroy (args, proc_run->nparams, FALSE); return; } @@ -1529,7 +1531,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!gp_proc_return_write (current_writefd, &proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1573,7 +1575,7 @@ plug_in_handle_proc_return (GPProcReturn *proc_return) plug_in_push (blocked->plug_in); if (!gp_proc_return_write (current_writefd, proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1612,8 +1614,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) if ((proc_install->nparams < 1) || (proc_install->params[0].type != PDB_INT32)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1625,8 +1627,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_IMAGE) || (proc_install->params[2].type != PDB_DRAWABLE)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1638,8 +1640,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_STRING) || (proc_install->params[2].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1653,17 +1655,17 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[3].type != PDB_STRING) || (proc_install->params[4].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } } else { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" in " + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" in " "an invalid menu location. Use either \"\", \"\", " - "\"\", or \"\".", + "\"\", or \"\"."), current_plug_in->args[0], proc_install->name); return; } @@ -1681,9 +1683,9 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) proc_install->params[i].type == PDB_STRINGARRAY) && proc_install->params[i-1].type != PDB_INT32) { - g_message ("plug_in \"%s\" attempted to install procedure \"%s\" " + g_message (_("plug_in \"%s\" attempted to install procedure \"%s\" " "which fails to comply with the array parameter " - "passing standard. Argument %d is noncompliant.", + "passing standard. Argument %d is noncompliant."), current_plug_in->args[0], proc_install->name, i); return; } @@ -2091,7 +2093,7 @@ plug_in_init_file (char *filename) if (strcmp (name, plug_in_name) == 0) { - g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename); + g_print (_("duplicate plug-in: \"%s\" (skipping)\n"), filename); return; } @@ -2265,7 +2267,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the plug-in!"); + g_message (_("Uh-oh, no active gdisplay for the plug-in!")); g_free (args); return; } @@ -2286,7 +2288,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the temporary procedure!"); + g_message (_("Uh-oh, no active gdisplay for the temporary procedure!")); g_free (args); return; } @@ -2294,7 +2296,7 @@ plug_in_callback (GtkWidget *widget, break; default: - g_error ("Unknown procedure type."); + g_error (_("Unknown procedure type.")); break; } @@ -2600,7 +2602,7 @@ plug_in_params_to_args (GPParam *params, colorarray[2] = params[i].data.d_color.blue; break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: args[i].value.pdb_int = params[i].data.d_display; @@ -2765,7 +2767,7 @@ plug_in_args_to_params (Argument *args, } break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: params[i].data.d_display = args[i].value.pdb_int; @@ -2882,7 +2884,7 @@ plug_in_params_destroy (GPParam *params, case PDB_COLOR: break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -2967,7 +2969,7 @@ plug_in_args_destroy (Argument *args, g_free (args[i].value.pdb_pointer); break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -3156,7 +3158,7 @@ plug_in_progress_init (PlugIn *plug_in, gtk_box_pack_start (GTK_BOX (vbox), plug_in->progress_bar, TRUE, TRUE, 0); gtk_widget_show (plug_in->progress_bar); - button = gtk_button_new_with_label ("Cancel"); + button = gtk_button_new_with_label (_("Cancel")); gtk_signal_connect_object (GTK_OBJECT (button), "clicked", (GtkSignalFunc) gtk_widget_destroy, GTK_OBJECT (plug_in->progress)); diff --git a/app/plug-in/plug-in-message.c b/app/plug-in/plug-in-message.c index 1dcc01f5e0..d3f184da83 100644 --- a/app/plug-in/plug-in-message.c +++ b/app/plug-in/plug-in-message.c @@ -59,6 +59,8 @@ #include "tile.h" /* ick. */ +#include "libgimp/gimpintl.h" + #define SEPARATE_PROGRESS_BAR @@ -161,17 +163,17 @@ static ProcArg progress_init_args[] = { { PDB_STRING, "message", - "Message to use in the progress dialog." }, + N_("Message to use in the progress dialog.") }, { PDB_INT32, "gdisplay", - "GDisplay to update progressbar in, or -1 for a seperate window" } + N_("GDisplay to update progressbar in, or -1 for a seperate window") } }; static ProcRecord progress_init_proc = { "gimp_progress_init", - "Initializes the progress bar for the current plug-in", - "Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Initializes the progress bar for the current plug-in"), + N_("Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -187,14 +189,14 @@ static ProcArg progress_update_args[] = { { PDB_FLOAT, "percentage", - "Percentage of progress completed" } + N_("Percentage of progress completed") } }; static ProcRecord progress_update_proc = { "gimp_progress_update", - "Updates the progress bar for the current plug-in", - "Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Updates the progress bar for the current plug-in"), + N_("Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -211,14 +213,14 @@ static ProcArg message_args[] = { { PDB_STRING, "message", - "Message to display in the dialog." } + N_("Message to display in the dialog.") } }; static ProcRecord message_proc = { "gimp_message", - "Displays a dialog box with a message", - "Displays a dialog box with a message. Useful for status or error reporting.", + N_("Displays a dialog box with a message"), + N_("Displays a dialog box with a message. Useful for status or error reporting."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -235,14 +237,14 @@ static ProcArg message_handler_get_out_args[] = { { PDB_INT32, "handler", - "the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_get_proc = { "gimp_message_handler_get", - "Returns the current state of where warning messages are displayed.", - "This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Returns the current state of where warning messages are displayed."), + N_("This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -258,14 +260,14 @@ static ProcArg message_handler_set_args[] = { { PDB_INT32, "handler", - "the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_set_proc = { "gimp_message_handler_set", - "Controls where warning messages are displayed.", - "This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Controls where warning messages are displayed."), + N_("This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -281,15 +283,15 @@ static ProcArg plugin_temp_PDB_name_out_args[] = { { PDB_STRING, "Temp name", - "A unique temporary name for a temporary PDB entry name", + N_("A unique temporary name for a temporary PDB entry name"), }, }; static ProcRecord plugin_temp_PDB_name_proc = { "gimp_temp_PDB_name", - "Generates a unique temporary PDB name", - "This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name.", + N_("Generates a unique temporary PDB name"), + N_("This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name."), "Andy Thomas", "Andy Thomas", "1998", @@ -340,13 +342,13 @@ plug_in_init () { shm_ID = shmget (IPC_PRIVATE, TILE_WIDTH * TILE_HEIGHT * 4, IPC_CREAT | 0777); if (shm_ID == -1) - g_message ("shmget failed...disabling shared memory tile transport\n"); + g_message (_("shmget failed...disabling shared memory tile transport\n")); else { shm_addr = (guchar*) shmat (shm_ID, 0, 0); if (shm_addr == (guchar*) -1) { - g_message ("shmat failed...disabling shared memory tile transport\n"); + g_message (_("shmat failed...disabling shared memory tile transport\n")); shm_ID = -1; } @@ -372,14 +374,14 @@ plug_in_init () else sprintf (filename, "%s/pluginrc", gimp_directory ()); - app_init_update_status("Resource configuration", filename, -1); + app_init_update_status(_("Resource configuration"), filename, -1); parse_gimprc_file (filename); /* query any plug-ins that have changed since we last wrote out * the pluginrc file. */ tmp = plug_in_defs; - app_init_update_status("Plug-ins", "", 0); + app_init_update_status(_("Plug-ins"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -391,7 +393,7 @@ plug_in_init () { write_pluginrc = TRUE; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("query plug-in: \"%s\"\n", plug_in_def->prog); + g_print (_("query plug-in: \"%s\"\n"), plug_in_def->prog); plug_in_query (plug_in_def->prog, plug_in_def); } app_init_update_status(NULL, plug_in_def->prog, nth/nplugins); @@ -428,7 +430,7 @@ plug_in_init () if (write_pluginrc) { if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("writing \"%s\"\n", filename); + g_print (_("writing \"%s\"\n"), filename); plug_in_write_rc (filename); } @@ -441,8 +443,8 @@ plug_in_init () /* run the available extensions */ tmp = proc_defs; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("Starting extensions: "); - app_init_update_status("Extensions", "", 0); + g_print (_("Starting extensions: ")); + app_init_update_status(_("Extensions"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -729,7 +731,7 @@ plug_in_def_add (PlugInDef *plug_in_def) } write_pluginrc = TRUE; - g_print ("\"%s\" executable not found\n", plug_in_def->prog); + g_print (_("\"%s\" executable not found\n"), plug_in_def->prog); g_free (plug_in_def->prog); g_free (plug_in_def); } @@ -782,7 +784,7 @@ plug_in_new (char *name) path = search_in_path (plug_in_path, name); if (!path) { - g_message ("unable to locate plug-in: \"%s\"", name); + g_message (_("unable to locate plug-in: \"%s\""), name); return NULL; } } @@ -879,7 +881,7 @@ plug_in_open (PlugIn *plug_in) */ if ((pipe (my_read) == -1) || (pipe (my_write) == -1)) { - g_message ("unable to open pipe"); + g_message (_("unable to open pipe")); return 0; } @@ -927,7 +929,7 @@ plug_in_open (PlugIn *plug_in) } else if (plug_in->pid == -1) { - g_message ("unable to run plug-in: %s\n", plug_in->args[0]); + g_message (_("unable to run plug-in: %s\n"), plug_in->args[0]); plug_in_destroy (plug_in); return 0; } @@ -1263,8 +1265,8 @@ plug_in_set_menu_sensitivity (int base_type) menus_set_sensitive (proc_def->menu_path, sensitive); if (last_plug_in && (last_plug_in == &(proc_def->db_info))) { - menus_set_sensitive ("/Filters/Repeat last", sensitive); - menus_set_sensitive ("/Filters/Re-show last", sensitive); + menus_set_sensitive (_("/Filters/Repeat last"), sensitive); + menus_set_sensitive (_("/Filters/Re-show last"), sensitive); } } } @@ -1303,18 +1305,18 @@ plug_in_handle_message (WireMessage *msg) plug_in_handle_quit (); break; case GP_CONFIG: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_REQ: plug_in_handle_tile_req (msg->data); break; case GP_TILE_ACK: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_DATA: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_PROC_RUN: @@ -1325,7 +1327,7 @@ plug_in_handle_message (WireMessage *msg) plug_in_close (current_plug_in, FALSE); break; case GP_TEMP_PROC_RUN: - g_message ("plug_in_handle_message(): received a temp proc run message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a temp proc run message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TEMP_PROC_RETURN: @@ -1372,21 +1374,21 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_DATA) { - g_message ("expected tile data and received: %d\n", msg.type); + g_message (_("expected tile data and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1400,7 +1402,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1408,7 +1410,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_info->tile_num, TRUE, TRUE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1423,7 +1425,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) wire_destroy (&msg); if (!gp_tile_ack_write (current_writefd)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1437,7 +1439,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1445,7 +1447,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_req->tile_num, TRUE, FALSE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1465,7 +1467,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1474,14 +1476,14 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_ACK) { - g_message ("expected tile ack and received: %d\n", msg.type); + g_message (_("expected tile ack and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1505,7 +1507,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!proc_rec) { /* THIS IS PROBABLY NOT CORRECT -josh */ - g_message ("PDB lookup failed on %s\n", proc_run->name); + g_message (_("PDB lookup failed on %s\n"), proc_run->name); plug_in_args_destroy (args, proc_run->nparams, FALSE); return; } @@ -1529,7 +1531,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!gp_proc_return_write (current_writefd, &proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1573,7 +1575,7 @@ plug_in_handle_proc_return (GPProcReturn *proc_return) plug_in_push (blocked->plug_in); if (!gp_proc_return_write (current_writefd, proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1612,8 +1614,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) if ((proc_install->nparams < 1) || (proc_install->params[0].type != PDB_INT32)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1625,8 +1627,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_IMAGE) || (proc_install->params[2].type != PDB_DRAWABLE)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1638,8 +1640,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_STRING) || (proc_install->params[2].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1653,17 +1655,17 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[3].type != PDB_STRING) || (proc_install->params[4].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } } else { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" in " + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" in " "an invalid menu location. Use either \"\", \"\", " - "\"\", or \"\".", + "\"\", or \"\"."), current_plug_in->args[0], proc_install->name); return; } @@ -1681,9 +1683,9 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) proc_install->params[i].type == PDB_STRINGARRAY) && proc_install->params[i-1].type != PDB_INT32) { - g_message ("plug_in \"%s\" attempted to install procedure \"%s\" " + g_message (_("plug_in \"%s\" attempted to install procedure \"%s\" " "which fails to comply with the array parameter " - "passing standard. Argument %d is noncompliant.", + "passing standard. Argument %d is noncompliant."), current_plug_in->args[0], proc_install->name, i); return; } @@ -2091,7 +2093,7 @@ plug_in_init_file (char *filename) if (strcmp (name, plug_in_name) == 0) { - g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename); + g_print (_("duplicate plug-in: \"%s\" (skipping)\n"), filename); return; } @@ -2265,7 +2267,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the plug-in!"); + g_message (_("Uh-oh, no active gdisplay for the plug-in!")); g_free (args); return; } @@ -2286,7 +2288,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the temporary procedure!"); + g_message (_("Uh-oh, no active gdisplay for the temporary procedure!")); g_free (args); return; } @@ -2294,7 +2296,7 @@ plug_in_callback (GtkWidget *widget, break; default: - g_error ("Unknown procedure type."); + g_error (_("Unknown procedure type.")); break; } @@ -2600,7 +2602,7 @@ plug_in_params_to_args (GPParam *params, colorarray[2] = params[i].data.d_color.blue; break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: args[i].value.pdb_int = params[i].data.d_display; @@ -2765,7 +2767,7 @@ plug_in_args_to_params (Argument *args, } break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: params[i].data.d_display = args[i].value.pdb_int; @@ -2882,7 +2884,7 @@ plug_in_params_destroy (GPParam *params, case PDB_COLOR: break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -2967,7 +2969,7 @@ plug_in_args_destroy (Argument *args, g_free (args[i].value.pdb_pointer); break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -3156,7 +3158,7 @@ plug_in_progress_init (PlugIn *plug_in, gtk_box_pack_start (GTK_BOX (vbox), plug_in->progress_bar, TRUE, TRUE, 0); gtk_widget_show (plug_in->progress_bar); - button = gtk_button_new_with_label ("Cancel"); + button = gtk_button_new_with_label (_("Cancel")); gtk_signal_connect_object (GTK_OBJECT (button), "clicked", (GtkSignalFunc) gtk_widget_destroy, GTK_OBJECT (plug_in->progress)); diff --git a/app/plug-in/plug-in-params.c b/app/plug-in/plug-in-params.c index 1dcc01f5e0..d3f184da83 100644 --- a/app/plug-in/plug-in-params.c +++ b/app/plug-in/plug-in-params.c @@ -59,6 +59,8 @@ #include "tile.h" /* ick. */ +#include "libgimp/gimpintl.h" + #define SEPARATE_PROGRESS_BAR @@ -161,17 +163,17 @@ static ProcArg progress_init_args[] = { { PDB_STRING, "message", - "Message to use in the progress dialog." }, + N_("Message to use in the progress dialog.") }, { PDB_INT32, "gdisplay", - "GDisplay to update progressbar in, or -1 for a seperate window" } + N_("GDisplay to update progressbar in, or -1 for a seperate window") } }; static ProcRecord progress_init_proc = { "gimp_progress_init", - "Initializes the progress bar for the current plug-in", - "Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Initializes the progress bar for the current plug-in"), + N_("Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -187,14 +189,14 @@ static ProcArg progress_update_args[] = { { PDB_FLOAT, "percentage", - "Percentage of progress completed" } + N_("Percentage of progress completed") } }; static ProcRecord progress_update_proc = { "gimp_progress_update", - "Updates the progress bar for the current plug-in", - "Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Updates the progress bar for the current plug-in"), + N_("Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -211,14 +213,14 @@ static ProcArg message_args[] = { { PDB_STRING, "message", - "Message to display in the dialog." } + N_("Message to display in the dialog.") } }; static ProcRecord message_proc = { "gimp_message", - "Displays a dialog box with a message", - "Displays a dialog box with a message. Useful for status or error reporting.", + N_("Displays a dialog box with a message"), + N_("Displays a dialog box with a message. Useful for status or error reporting."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -235,14 +237,14 @@ static ProcArg message_handler_get_out_args[] = { { PDB_INT32, "handler", - "the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_get_proc = { "gimp_message_handler_get", - "Returns the current state of where warning messages are displayed.", - "This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Returns the current state of where warning messages are displayed."), + N_("This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -258,14 +260,14 @@ static ProcArg message_handler_set_args[] = { { PDB_INT32, "handler", - "the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_set_proc = { "gimp_message_handler_set", - "Controls where warning messages are displayed.", - "This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Controls where warning messages are displayed."), + N_("This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -281,15 +283,15 @@ static ProcArg plugin_temp_PDB_name_out_args[] = { { PDB_STRING, "Temp name", - "A unique temporary name for a temporary PDB entry name", + N_("A unique temporary name for a temporary PDB entry name"), }, }; static ProcRecord plugin_temp_PDB_name_proc = { "gimp_temp_PDB_name", - "Generates a unique temporary PDB name", - "This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name.", + N_("Generates a unique temporary PDB name"), + N_("This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name."), "Andy Thomas", "Andy Thomas", "1998", @@ -340,13 +342,13 @@ plug_in_init () { shm_ID = shmget (IPC_PRIVATE, TILE_WIDTH * TILE_HEIGHT * 4, IPC_CREAT | 0777); if (shm_ID == -1) - g_message ("shmget failed...disabling shared memory tile transport\n"); + g_message (_("shmget failed...disabling shared memory tile transport\n")); else { shm_addr = (guchar*) shmat (shm_ID, 0, 0); if (shm_addr == (guchar*) -1) { - g_message ("shmat failed...disabling shared memory tile transport\n"); + g_message (_("shmat failed...disabling shared memory tile transport\n")); shm_ID = -1; } @@ -372,14 +374,14 @@ plug_in_init () else sprintf (filename, "%s/pluginrc", gimp_directory ()); - app_init_update_status("Resource configuration", filename, -1); + app_init_update_status(_("Resource configuration"), filename, -1); parse_gimprc_file (filename); /* query any plug-ins that have changed since we last wrote out * the pluginrc file. */ tmp = plug_in_defs; - app_init_update_status("Plug-ins", "", 0); + app_init_update_status(_("Plug-ins"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -391,7 +393,7 @@ plug_in_init () { write_pluginrc = TRUE; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("query plug-in: \"%s\"\n", plug_in_def->prog); + g_print (_("query plug-in: \"%s\"\n"), plug_in_def->prog); plug_in_query (plug_in_def->prog, plug_in_def); } app_init_update_status(NULL, plug_in_def->prog, nth/nplugins); @@ -428,7 +430,7 @@ plug_in_init () if (write_pluginrc) { if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("writing \"%s\"\n", filename); + g_print (_("writing \"%s\"\n"), filename); plug_in_write_rc (filename); } @@ -441,8 +443,8 @@ plug_in_init () /* run the available extensions */ tmp = proc_defs; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("Starting extensions: "); - app_init_update_status("Extensions", "", 0); + g_print (_("Starting extensions: ")); + app_init_update_status(_("Extensions"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -729,7 +731,7 @@ plug_in_def_add (PlugInDef *plug_in_def) } write_pluginrc = TRUE; - g_print ("\"%s\" executable not found\n", plug_in_def->prog); + g_print (_("\"%s\" executable not found\n"), plug_in_def->prog); g_free (plug_in_def->prog); g_free (plug_in_def); } @@ -782,7 +784,7 @@ plug_in_new (char *name) path = search_in_path (plug_in_path, name); if (!path) { - g_message ("unable to locate plug-in: \"%s\"", name); + g_message (_("unable to locate plug-in: \"%s\""), name); return NULL; } } @@ -879,7 +881,7 @@ plug_in_open (PlugIn *plug_in) */ if ((pipe (my_read) == -1) || (pipe (my_write) == -1)) { - g_message ("unable to open pipe"); + g_message (_("unable to open pipe")); return 0; } @@ -927,7 +929,7 @@ plug_in_open (PlugIn *plug_in) } else if (plug_in->pid == -1) { - g_message ("unable to run plug-in: %s\n", plug_in->args[0]); + g_message (_("unable to run plug-in: %s\n"), plug_in->args[0]); plug_in_destroy (plug_in); return 0; } @@ -1263,8 +1265,8 @@ plug_in_set_menu_sensitivity (int base_type) menus_set_sensitive (proc_def->menu_path, sensitive); if (last_plug_in && (last_plug_in == &(proc_def->db_info))) { - menus_set_sensitive ("/Filters/Repeat last", sensitive); - menus_set_sensitive ("/Filters/Re-show last", sensitive); + menus_set_sensitive (_("/Filters/Repeat last"), sensitive); + menus_set_sensitive (_("/Filters/Re-show last"), sensitive); } } } @@ -1303,18 +1305,18 @@ plug_in_handle_message (WireMessage *msg) plug_in_handle_quit (); break; case GP_CONFIG: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_REQ: plug_in_handle_tile_req (msg->data); break; case GP_TILE_ACK: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_DATA: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_PROC_RUN: @@ -1325,7 +1327,7 @@ plug_in_handle_message (WireMessage *msg) plug_in_close (current_plug_in, FALSE); break; case GP_TEMP_PROC_RUN: - g_message ("plug_in_handle_message(): received a temp proc run message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a temp proc run message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TEMP_PROC_RETURN: @@ -1372,21 +1374,21 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_DATA) { - g_message ("expected tile data and received: %d\n", msg.type); + g_message (_("expected tile data and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1400,7 +1402,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1408,7 +1410,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_info->tile_num, TRUE, TRUE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1423,7 +1425,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) wire_destroy (&msg); if (!gp_tile_ack_write (current_writefd)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1437,7 +1439,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1445,7 +1447,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_req->tile_num, TRUE, FALSE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1465,7 +1467,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1474,14 +1476,14 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_ACK) { - g_message ("expected tile ack and received: %d\n", msg.type); + g_message (_("expected tile ack and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1505,7 +1507,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!proc_rec) { /* THIS IS PROBABLY NOT CORRECT -josh */ - g_message ("PDB lookup failed on %s\n", proc_run->name); + g_message (_("PDB lookup failed on %s\n"), proc_run->name); plug_in_args_destroy (args, proc_run->nparams, FALSE); return; } @@ -1529,7 +1531,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!gp_proc_return_write (current_writefd, &proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1573,7 +1575,7 @@ plug_in_handle_proc_return (GPProcReturn *proc_return) plug_in_push (blocked->plug_in); if (!gp_proc_return_write (current_writefd, proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1612,8 +1614,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) if ((proc_install->nparams < 1) || (proc_install->params[0].type != PDB_INT32)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1625,8 +1627,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_IMAGE) || (proc_install->params[2].type != PDB_DRAWABLE)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1638,8 +1640,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_STRING) || (proc_install->params[2].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1653,17 +1655,17 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[3].type != PDB_STRING) || (proc_install->params[4].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } } else { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" in " + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" in " "an invalid menu location. Use either \"\", \"\", " - "\"\", or \"\".", + "\"\", or \"\"."), current_plug_in->args[0], proc_install->name); return; } @@ -1681,9 +1683,9 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) proc_install->params[i].type == PDB_STRINGARRAY) && proc_install->params[i-1].type != PDB_INT32) { - g_message ("plug_in \"%s\" attempted to install procedure \"%s\" " + g_message (_("plug_in \"%s\" attempted to install procedure \"%s\" " "which fails to comply with the array parameter " - "passing standard. Argument %d is noncompliant.", + "passing standard. Argument %d is noncompliant."), current_plug_in->args[0], proc_install->name, i); return; } @@ -2091,7 +2093,7 @@ plug_in_init_file (char *filename) if (strcmp (name, plug_in_name) == 0) { - g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename); + g_print (_("duplicate plug-in: \"%s\" (skipping)\n"), filename); return; } @@ -2265,7 +2267,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the plug-in!"); + g_message (_("Uh-oh, no active gdisplay for the plug-in!")); g_free (args); return; } @@ -2286,7 +2288,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the temporary procedure!"); + g_message (_("Uh-oh, no active gdisplay for the temporary procedure!")); g_free (args); return; } @@ -2294,7 +2296,7 @@ plug_in_callback (GtkWidget *widget, break; default: - g_error ("Unknown procedure type."); + g_error (_("Unknown procedure type.")); break; } @@ -2600,7 +2602,7 @@ plug_in_params_to_args (GPParam *params, colorarray[2] = params[i].data.d_color.blue; break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: args[i].value.pdb_int = params[i].data.d_display; @@ -2765,7 +2767,7 @@ plug_in_args_to_params (Argument *args, } break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: params[i].data.d_display = args[i].value.pdb_int; @@ -2882,7 +2884,7 @@ plug_in_params_destroy (GPParam *params, case PDB_COLOR: break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -2967,7 +2969,7 @@ plug_in_args_destroy (Argument *args, g_free (args[i].value.pdb_pointer); break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -3156,7 +3158,7 @@ plug_in_progress_init (PlugIn *plug_in, gtk_box_pack_start (GTK_BOX (vbox), plug_in->progress_bar, TRUE, TRUE, 0); gtk_widget_show (plug_in->progress_bar); - button = gtk_button_new_with_label ("Cancel"); + button = gtk_button_new_with_label (_("Cancel")); gtk_signal_connect_object (GTK_OBJECT (button), "clicked", (GtkSignalFunc) gtk_widget_destroy, GTK_OBJECT (plug_in->progress)); diff --git a/app/plug-in/plug-in-progress.c b/app/plug-in/plug-in-progress.c index 1dcc01f5e0..d3f184da83 100644 --- a/app/plug-in/plug-in-progress.c +++ b/app/plug-in/plug-in-progress.c @@ -59,6 +59,8 @@ #include "tile.h" /* ick. */ +#include "libgimp/gimpintl.h" + #define SEPARATE_PROGRESS_BAR @@ -161,17 +163,17 @@ static ProcArg progress_init_args[] = { { PDB_STRING, "message", - "Message to use in the progress dialog." }, + N_("Message to use in the progress dialog.") }, { PDB_INT32, "gdisplay", - "GDisplay to update progressbar in, or -1 for a seperate window" } + N_("GDisplay to update progressbar in, or -1 for a seperate window") } }; static ProcRecord progress_init_proc = { "gimp_progress_init", - "Initializes the progress bar for the current plug-in", - "Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Initializes the progress bar for the current plug-in"), + N_("Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -187,14 +189,14 @@ static ProcArg progress_update_args[] = { { PDB_FLOAT, "percentage", - "Percentage of progress completed" } + N_("Percentage of progress completed") } }; static ProcRecord progress_update_proc = { "gimp_progress_update", - "Updates the progress bar for the current plug-in", - "Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Updates the progress bar for the current plug-in"), + N_("Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -211,14 +213,14 @@ static ProcArg message_args[] = { { PDB_STRING, "message", - "Message to display in the dialog." } + N_("Message to display in the dialog.") } }; static ProcRecord message_proc = { "gimp_message", - "Displays a dialog box with a message", - "Displays a dialog box with a message. Useful for status or error reporting.", + N_("Displays a dialog box with a message"), + N_("Displays a dialog box with a message. Useful for status or error reporting."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -235,14 +237,14 @@ static ProcArg message_handler_get_out_args[] = { { PDB_INT32, "handler", - "the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_get_proc = { "gimp_message_handler_get", - "Returns the current state of where warning messages are displayed.", - "This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Returns the current state of where warning messages are displayed."), + N_("This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -258,14 +260,14 @@ static ProcArg message_handler_set_args[] = { { PDB_INT32, "handler", - "the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_set_proc = { "gimp_message_handler_set", - "Controls where warning messages are displayed.", - "This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Controls where warning messages are displayed."), + N_("This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -281,15 +283,15 @@ static ProcArg plugin_temp_PDB_name_out_args[] = { { PDB_STRING, "Temp name", - "A unique temporary name for a temporary PDB entry name", + N_("A unique temporary name for a temporary PDB entry name"), }, }; static ProcRecord plugin_temp_PDB_name_proc = { "gimp_temp_PDB_name", - "Generates a unique temporary PDB name", - "This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name.", + N_("Generates a unique temporary PDB name"), + N_("This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name."), "Andy Thomas", "Andy Thomas", "1998", @@ -340,13 +342,13 @@ plug_in_init () { shm_ID = shmget (IPC_PRIVATE, TILE_WIDTH * TILE_HEIGHT * 4, IPC_CREAT | 0777); if (shm_ID == -1) - g_message ("shmget failed...disabling shared memory tile transport\n"); + g_message (_("shmget failed...disabling shared memory tile transport\n")); else { shm_addr = (guchar*) shmat (shm_ID, 0, 0); if (shm_addr == (guchar*) -1) { - g_message ("shmat failed...disabling shared memory tile transport\n"); + g_message (_("shmat failed...disabling shared memory tile transport\n")); shm_ID = -1; } @@ -372,14 +374,14 @@ plug_in_init () else sprintf (filename, "%s/pluginrc", gimp_directory ()); - app_init_update_status("Resource configuration", filename, -1); + app_init_update_status(_("Resource configuration"), filename, -1); parse_gimprc_file (filename); /* query any plug-ins that have changed since we last wrote out * the pluginrc file. */ tmp = plug_in_defs; - app_init_update_status("Plug-ins", "", 0); + app_init_update_status(_("Plug-ins"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -391,7 +393,7 @@ plug_in_init () { write_pluginrc = TRUE; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("query plug-in: \"%s\"\n", plug_in_def->prog); + g_print (_("query plug-in: \"%s\"\n"), plug_in_def->prog); plug_in_query (plug_in_def->prog, plug_in_def); } app_init_update_status(NULL, plug_in_def->prog, nth/nplugins); @@ -428,7 +430,7 @@ plug_in_init () if (write_pluginrc) { if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("writing \"%s\"\n", filename); + g_print (_("writing \"%s\"\n"), filename); plug_in_write_rc (filename); } @@ -441,8 +443,8 @@ plug_in_init () /* run the available extensions */ tmp = proc_defs; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("Starting extensions: "); - app_init_update_status("Extensions", "", 0); + g_print (_("Starting extensions: ")); + app_init_update_status(_("Extensions"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -729,7 +731,7 @@ plug_in_def_add (PlugInDef *plug_in_def) } write_pluginrc = TRUE; - g_print ("\"%s\" executable not found\n", plug_in_def->prog); + g_print (_("\"%s\" executable not found\n"), plug_in_def->prog); g_free (plug_in_def->prog); g_free (plug_in_def); } @@ -782,7 +784,7 @@ plug_in_new (char *name) path = search_in_path (plug_in_path, name); if (!path) { - g_message ("unable to locate plug-in: \"%s\"", name); + g_message (_("unable to locate plug-in: \"%s\""), name); return NULL; } } @@ -879,7 +881,7 @@ plug_in_open (PlugIn *plug_in) */ if ((pipe (my_read) == -1) || (pipe (my_write) == -1)) { - g_message ("unable to open pipe"); + g_message (_("unable to open pipe")); return 0; } @@ -927,7 +929,7 @@ plug_in_open (PlugIn *plug_in) } else if (plug_in->pid == -1) { - g_message ("unable to run plug-in: %s\n", plug_in->args[0]); + g_message (_("unable to run plug-in: %s\n"), plug_in->args[0]); plug_in_destroy (plug_in); return 0; } @@ -1263,8 +1265,8 @@ plug_in_set_menu_sensitivity (int base_type) menus_set_sensitive (proc_def->menu_path, sensitive); if (last_plug_in && (last_plug_in == &(proc_def->db_info))) { - menus_set_sensitive ("/Filters/Repeat last", sensitive); - menus_set_sensitive ("/Filters/Re-show last", sensitive); + menus_set_sensitive (_("/Filters/Repeat last"), sensitive); + menus_set_sensitive (_("/Filters/Re-show last"), sensitive); } } } @@ -1303,18 +1305,18 @@ plug_in_handle_message (WireMessage *msg) plug_in_handle_quit (); break; case GP_CONFIG: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_REQ: plug_in_handle_tile_req (msg->data); break; case GP_TILE_ACK: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_DATA: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_PROC_RUN: @@ -1325,7 +1327,7 @@ plug_in_handle_message (WireMessage *msg) plug_in_close (current_plug_in, FALSE); break; case GP_TEMP_PROC_RUN: - g_message ("plug_in_handle_message(): received a temp proc run message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a temp proc run message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TEMP_PROC_RETURN: @@ -1372,21 +1374,21 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_DATA) { - g_message ("expected tile data and received: %d\n", msg.type); + g_message (_("expected tile data and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1400,7 +1402,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1408,7 +1410,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_info->tile_num, TRUE, TRUE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1423,7 +1425,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) wire_destroy (&msg); if (!gp_tile_ack_write (current_writefd)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1437,7 +1439,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1445,7 +1447,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_req->tile_num, TRUE, FALSE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1465,7 +1467,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1474,14 +1476,14 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_ACK) { - g_message ("expected tile ack and received: %d\n", msg.type); + g_message (_("expected tile ack and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1505,7 +1507,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!proc_rec) { /* THIS IS PROBABLY NOT CORRECT -josh */ - g_message ("PDB lookup failed on %s\n", proc_run->name); + g_message (_("PDB lookup failed on %s\n"), proc_run->name); plug_in_args_destroy (args, proc_run->nparams, FALSE); return; } @@ -1529,7 +1531,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!gp_proc_return_write (current_writefd, &proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1573,7 +1575,7 @@ plug_in_handle_proc_return (GPProcReturn *proc_return) plug_in_push (blocked->plug_in); if (!gp_proc_return_write (current_writefd, proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1612,8 +1614,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) if ((proc_install->nparams < 1) || (proc_install->params[0].type != PDB_INT32)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1625,8 +1627,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_IMAGE) || (proc_install->params[2].type != PDB_DRAWABLE)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1638,8 +1640,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_STRING) || (proc_install->params[2].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1653,17 +1655,17 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[3].type != PDB_STRING) || (proc_install->params[4].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } } else { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" in " + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" in " "an invalid menu location. Use either \"\", \"\", " - "\"\", or \"\".", + "\"\", or \"\"."), current_plug_in->args[0], proc_install->name); return; } @@ -1681,9 +1683,9 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) proc_install->params[i].type == PDB_STRINGARRAY) && proc_install->params[i-1].type != PDB_INT32) { - g_message ("plug_in \"%s\" attempted to install procedure \"%s\" " + g_message (_("plug_in \"%s\" attempted to install procedure \"%s\" " "which fails to comply with the array parameter " - "passing standard. Argument %d is noncompliant.", + "passing standard. Argument %d is noncompliant."), current_plug_in->args[0], proc_install->name, i); return; } @@ -2091,7 +2093,7 @@ plug_in_init_file (char *filename) if (strcmp (name, plug_in_name) == 0) { - g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename); + g_print (_("duplicate plug-in: \"%s\" (skipping)\n"), filename); return; } @@ -2265,7 +2267,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the plug-in!"); + g_message (_("Uh-oh, no active gdisplay for the plug-in!")); g_free (args); return; } @@ -2286,7 +2288,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the temporary procedure!"); + g_message (_("Uh-oh, no active gdisplay for the temporary procedure!")); g_free (args); return; } @@ -2294,7 +2296,7 @@ plug_in_callback (GtkWidget *widget, break; default: - g_error ("Unknown procedure type."); + g_error (_("Unknown procedure type.")); break; } @@ -2600,7 +2602,7 @@ plug_in_params_to_args (GPParam *params, colorarray[2] = params[i].data.d_color.blue; break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: args[i].value.pdb_int = params[i].data.d_display; @@ -2765,7 +2767,7 @@ plug_in_args_to_params (Argument *args, } break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: params[i].data.d_display = args[i].value.pdb_int; @@ -2882,7 +2884,7 @@ plug_in_params_destroy (GPParam *params, case PDB_COLOR: break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -2967,7 +2969,7 @@ plug_in_args_destroy (Argument *args, g_free (args[i].value.pdb_pointer); break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -3156,7 +3158,7 @@ plug_in_progress_init (PlugIn *plug_in, gtk_box_pack_start (GTK_BOX (vbox), plug_in->progress_bar, TRUE, TRUE, 0); gtk_widget_show (plug_in->progress_bar); - button = gtk_button_new_with_label ("Cancel"); + button = gtk_button_new_with_label (_("Cancel")); gtk_signal_connect_object (GTK_OBJECT (button), "clicked", (GtkSignalFunc) gtk_widget_destroy, GTK_OBJECT (plug_in->progress)); diff --git a/app/plug-in/plug-in-run.c b/app/plug-in/plug-in-run.c index 1dcc01f5e0..d3f184da83 100644 --- a/app/plug-in/plug-in-run.c +++ b/app/plug-in/plug-in-run.c @@ -59,6 +59,8 @@ #include "tile.h" /* ick. */ +#include "libgimp/gimpintl.h" + #define SEPARATE_PROGRESS_BAR @@ -161,17 +163,17 @@ static ProcArg progress_init_args[] = { { PDB_STRING, "message", - "Message to use in the progress dialog." }, + N_("Message to use in the progress dialog.") }, { PDB_INT32, "gdisplay", - "GDisplay to update progressbar in, or -1 for a seperate window" } + N_("GDisplay to update progressbar in, or -1 for a seperate window") } }; static ProcRecord progress_init_proc = { "gimp_progress_init", - "Initializes the progress bar for the current plug-in", - "Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Initializes the progress bar for the current plug-in"), + N_("Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -187,14 +189,14 @@ static ProcArg progress_update_args[] = { { PDB_FLOAT, "percentage", - "Percentage of progress completed" } + N_("Percentage of progress completed") } }; static ProcRecord progress_update_proc = { "gimp_progress_update", - "Updates the progress bar for the current plug-in", - "Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Updates the progress bar for the current plug-in"), + N_("Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -211,14 +213,14 @@ static ProcArg message_args[] = { { PDB_STRING, "message", - "Message to display in the dialog." } + N_("Message to display in the dialog.") } }; static ProcRecord message_proc = { "gimp_message", - "Displays a dialog box with a message", - "Displays a dialog box with a message. Useful for status or error reporting.", + N_("Displays a dialog box with a message"), + N_("Displays a dialog box with a message. Useful for status or error reporting."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -235,14 +237,14 @@ static ProcArg message_handler_get_out_args[] = { { PDB_INT32, "handler", - "the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_get_proc = { "gimp_message_handler_get", - "Returns the current state of where warning messages are displayed.", - "This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Returns the current state of where warning messages are displayed."), + N_("This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -258,14 +260,14 @@ static ProcArg message_handler_set_args[] = { { PDB_INT32, "handler", - "the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_set_proc = { "gimp_message_handler_set", - "Controls where warning messages are displayed.", - "This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Controls where warning messages are displayed."), + N_("This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -281,15 +283,15 @@ static ProcArg plugin_temp_PDB_name_out_args[] = { { PDB_STRING, "Temp name", - "A unique temporary name for a temporary PDB entry name", + N_("A unique temporary name for a temporary PDB entry name"), }, }; static ProcRecord plugin_temp_PDB_name_proc = { "gimp_temp_PDB_name", - "Generates a unique temporary PDB name", - "This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name.", + N_("Generates a unique temporary PDB name"), + N_("This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name."), "Andy Thomas", "Andy Thomas", "1998", @@ -340,13 +342,13 @@ plug_in_init () { shm_ID = shmget (IPC_PRIVATE, TILE_WIDTH * TILE_HEIGHT * 4, IPC_CREAT | 0777); if (shm_ID == -1) - g_message ("shmget failed...disabling shared memory tile transport\n"); + g_message (_("shmget failed...disabling shared memory tile transport\n")); else { shm_addr = (guchar*) shmat (shm_ID, 0, 0); if (shm_addr == (guchar*) -1) { - g_message ("shmat failed...disabling shared memory tile transport\n"); + g_message (_("shmat failed...disabling shared memory tile transport\n")); shm_ID = -1; } @@ -372,14 +374,14 @@ plug_in_init () else sprintf (filename, "%s/pluginrc", gimp_directory ()); - app_init_update_status("Resource configuration", filename, -1); + app_init_update_status(_("Resource configuration"), filename, -1); parse_gimprc_file (filename); /* query any plug-ins that have changed since we last wrote out * the pluginrc file. */ tmp = plug_in_defs; - app_init_update_status("Plug-ins", "", 0); + app_init_update_status(_("Plug-ins"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -391,7 +393,7 @@ plug_in_init () { write_pluginrc = TRUE; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("query plug-in: \"%s\"\n", plug_in_def->prog); + g_print (_("query plug-in: \"%s\"\n"), plug_in_def->prog); plug_in_query (plug_in_def->prog, plug_in_def); } app_init_update_status(NULL, plug_in_def->prog, nth/nplugins); @@ -428,7 +430,7 @@ plug_in_init () if (write_pluginrc) { if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("writing \"%s\"\n", filename); + g_print (_("writing \"%s\"\n"), filename); plug_in_write_rc (filename); } @@ -441,8 +443,8 @@ plug_in_init () /* run the available extensions */ tmp = proc_defs; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("Starting extensions: "); - app_init_update_status("Extensions", "", 0); + g_print (_("Starting extensions: ")); + app_init_update_status(_("Extensions"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -729,7 +731,7 @@ plug_in_def_add (PlugInDef *plug_in_def) } write_pluginrc = TRUE; - g_print ("\"%s\" executable not found\n", plug_in_def->prog); + g_print (_("\"%s\" executable not found\n"), plug_in_def->prog); g_free (plug_in_def->prog); g_free (plug_in_def); } @@ -782,7 +784,7 @@ plug_in_new (char *name) path = search_in_path (plug_in_path, name); if (!path) { - g_message ("unable to locate plug-in: \"%s\"", name); + g_message (_("unable to locate plug-in: \"%s\""), name); return NULL; } } @@ -879,7 +881,7 @@ plug_in_open (PlugIn *plug_in) */ if ((pipe (my_read) == -1) || (pipe (my_write) == -1)) { - g_message ("unable to open pipe"); + g_message (_("unable to open pipe")); return 0; } @@ -927,7 +929,7 @@ plug_in_open (PlugIn *plug_in) } else if (plug_in->pid == -1) { - g_message ("unable to run plug-in: %s\n", plug_in->args[0]); + g_message (_("unable to run plug-in: %s\n"), plug_in->args[0]); plug_in_destroy (plug_in); return 0; } @@ -1263,8 +1265,8 @@ plug_in_set_menu_sensitivity (int base_type) menus_set_sensitive (proc_def->menu_path, sensitive); if (last_plug_in && (last_plug_in == &(proc_def->db_info))) { - menus_set_sensitive ("/Filters/Repeat last", sensitive); - menus_set_sensitive ("/Filters/Re-show last", sensitive); + menus_set_sensitive (_("/Filters/Repeat last"), sensitive); + menus_set_sensitive (_("/Filters/Re-show last"), sensitive); } } } @@ -1303,18 +1305,18 @@ plug_in_handle_message (WireMessage *msg) plug_in_handle_quit (); break; case GP_CONFIG: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_REQ: plug_in_handle_tile_req (msg->data); break; case GP_TILE_ACK: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_DATA: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_PROC_RUN: @@ -1325,7 +1327,7 @@ plug_in_handle_message (WireMessage *msg) plug_in_close (current_plug_in, FALSE); break; case GP_TEMP_PROC_RUN: - g_message ("plug_in_handle_message(): received a temp proc run message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a temp proc run message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TEMP_PROC_RETURN: @@ -1372,21 +1374,21 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_DATA) { - g_message ("expected tile data and received: %d\n", msg.type); + g_message (_("expected tile data and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1400,7 +1402,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1408,7 +1410,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_info->tile_num, TRUE, TRUE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1423,7 +1425,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) wire_destroy (&msg); if (!gp_tile_ack_write (current_writefd)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1437,7 +1439,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1445,7 +1447,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_req->tile_num, TRUE, FALSE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1465,7 +1467,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1474,14 +1476,14 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_ACK) { - g_message ("expected tile ack and received: %d\n", msg.type); + g_message (_("expected tile ack and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1505,7 +1507,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!proc_rec) { /* THIS IS PROBABLY NOT CORRECT -josh */ - g_message ("PDB lookup failed on %s\n", proc_run->name); + g_message (_("PDB lookup failed on %s\n"), proc_run->name); plug_in_args_destroy (args, proc_run->nparams, FALSE); return; } @@ -1529,7 +1531,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!gp_proc_return_write (current_writefd, &proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1573,7 +1575,7 @@ plug_in_handle_proc_return (GPProcReturn *proc_return) plug_in_push (blocked->plug_in); if (!gp_proc_return_write (current_writefd, proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1612,8 +1614,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) if ((proc_install->nparams < 1) || (proc_install->params[0].type != PDB_INT32)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1625,8 +1627,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_IMAGE) || (proc_install->params[2].type != PDB_DRAWABLE)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1638,8 +1640,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_STRING) || (proc_install->params[2].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1653,17 +1655,17 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[3].type != PDB_STRING) || (proc_install->params[4].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } } else { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" in " + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" in " "an invalid menu location. Use either \"\", \"\", " - "\"\", or \"\".", + "\"\", or \"\"."), current_plug_in->args[0], proc_install->name); return; } @@ -1681,9 +1683,9 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) proc_install->params[i].type == PDB_STRINGARRAY) && proc_install->params[i-1].type != PDB_INT32) { - g_message ("plug_in \"%s\" attempted to install procedure \"%s\" " + g_message (_("plug_in \"%s\" attempted to install procedure \"%s\" " "which fails to comply with the array parameter " - "passing standard. Argument %d is noncompliant.", + "passing standard. Argument %d is noncompliant."), current_plug_in->args[0], proc_install->name, i); return; } @@ -2091,7 +2093,7 @@ plug_in_init_file (char *filename) if (strcmp (name, plug_in_name) == 0) { - g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename); + g_print (_("duplicate plug-in: \"%s\" (skipping)\n"), filename); return; } @@ -2265,7 +2267,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the plug-in!"); + g_message (_("Uh-oh, no active gdisplay for the plug-in!")); g_free (args); return; } @@ -2286,7 +2288,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the temporary procedure!"); + g_message (_("Uh-oh, no active gdisplay for the temporary procedure!")); g_free (args); return; } @@ -2294,7 +2296,7 @@ plug_in_callback (GtkWidget *widget, break; default: - g_error ("Unknown procedure type."); + g_error (_("Unknown procedure type.")); break; } @@ -2600,7 +2602,7 @@ plug_in_params_to_args (GPParam *params, colorarray[2] = params[i].data.d_color.blue; break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: args[i].value.pdb_int = params[i].data.d_display; @@ -2765,7 +2767,7 @@ plug_in_args_to_params (Argument *args, } break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: params[i].data.d_display = args[i].value.pdb_int; @@ -2882,7 +2884,7 @@ plug_in_params_destroy (GPParam *params, case PDB_COLOR: break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -2967,7 +2969,7 @@ plug_in_args_destroy (Argument *args, g_free (args[i].value.pdb_pointer); break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -3156,7 +3158,7 @@ plug_in_progress_init (PlugIn *plug_in, gtk_box_pack_start (GTK_BOX (vbox), plug_in->progress_bar, TRUE, TRUE, 0); gtk_widget_show (plug_in->progress_bar); - button = gtk_button_new_with_label ("Cancel"); + button = gtk_button_new_with_label (_("Cancel")); gtk_signal_connect_object (GTK_OBJECT (button), "clicked", (GtkSignalFunc) gtk_widget_destroy, GTK_OBJECT (plug_in->progress)); diff --git a/app/plug-in/plug-in-shm.c b/app/plug-in/plug-in-shm.c index 1dcc01f5e0..d3f184da83 100644 --- a/app/plug-in/plug-in-shm.c +++ b/app/plug-in/plug-in-shm.c @@ -59,6 +59,8 @@ #include "tile.h" /* ick. */ +#include "libgimp/gimpintl.h" + #define SEPARATE_PROGRESS_BAR @@ -161,17 +163,17 @@ static ProcArg progress_init_args[] = { { PDB_STRING, "message", - "Message to use in the progress dialog." }, + N_("Message to use in the progress dialog.") }, { PDB_INT32, "gdisplay", - "GDisplay to update progressbar in, or -1 for a seperate window" } + N_("GDisplay to update progressbar in, or -1 for a seperate window") } }; static ProcRecord progress_init_proc = { "gimp_progress_init", - "Initializes the progress bar for the current plug-in", - "Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Initializes the progress bar for the current plug-in"), + N_("Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -187,14 +189,14 @@ static ProcArg progress_update_args[] = { { PDB_FLOAT, "percentage", - "Percentage of progress completed" } + N_("Percentage of progress completed") } }; static ProcRecord progress_update_proc = { "gimp_progress_update", - "Updates the progress bar for the current plug-in", - "Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Updates the progress bar for the current plug-in"), + N_("Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -211,14 +213,14 @@ static ProcArg message_args[] = { { PDB_STRING, "message", - "Message to display in the dialog." } + N_("Message to display in the dialog.") } }; static ProcRecord message_proc = { "gimp_message", - "Displays a dialog box with a message", - "Displays a dialog box with a message. Useful for status or error reporting.", + N_("Displays a dialog box with a message"), + N_("Displays a dialog box with a message. Useful for status or error reporting."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -235,14 +237,14 @@ static ProcArg message_handler_get_out_args[] = { { PDB_INT32, "handler", - "the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_get_proc = { "gimp_message_handler_get", - "Returns the current state of where warning messages are displayed.", - "This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Returns the current state of where warning messages are displayed."), + N_("This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -258,14 +260,14 @@ static ProcArg message_handler_set_args[] = { { PDB_INT32, "handler", - "the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_set_proc = { "gimp_message_handler_set", - "Controls where warning messages are displayed.", - "This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Controls where warning messages are displayed."), + N_("This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -281,15 +283,15 @@ static ProcArg plugin_temp_PDB_name_out_args[] = { { PDB_STRING, "Temp name", - "A unique temporary name for a temporary PDB entry name", + N_("A unique temporary name for a temporary PDB entry name"), }, }; static ProcRecord plugin_temp_PDB_name_proc = { "gimp_temp_PDB_name", - "Generates a unique temporary PDB name", - "This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name.", + N_("Generates a unique temporary PDB name"), + N_("This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name."), "Andy Thomas", "Andy Thomas", "1998", @@ -340,13 +342,13 @@ plug_in_init () { shm_ID = shmget (IPC_PRIVATE, TILE_WIDTH * TILE_HEIGHT * 4, IPC_CREAT | 0777); if (shm_ID == -1) - g_message ("shmget failed...disabling shared memory tile transport\n"); + g_message (_("shmget failed...disabling shared memory tile transport\n")); else { shm_addr = (guchar*) shmat (shm_ID, 0, 0); if (shm_addr == (guchar*) -1) { - g_message ("shmat failed...disabling shared memory tile transport\n"); + g_message (_("shmat failed...disabling shared memory tile transport\n")); shm_ID = -1; } @@ -372,14 +374,14 @@ plug_in_init () else sprintf (filename, "%s/pluginrc", gimp_directory ()); - app_init_update_status("Resource configuration", filename, -1); + app_init_update_status(_("Resource configuration"), filename, -1); parse_gimprc_file (filename); /* query any plug-ins that have changed since we last wrote out * the pluginrc file. */ tmp = plug_in_defs; - app_init_update_status("Plug-ins", "", 0); + app_init_update_status(_("Plug-ins"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -391,7 +393,7 @@ plug_in_init () { write_pluginrc = TRUE; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("query plug-in: \"%s\"\n", plug_in_def->prog); + g_print (_("query plug-in: \"%s\"\n"), plug_in_def->prog); plug_in_query (plug_in_def->prog, plug_in_def); } app_init_update_status(NULL, plug_in_def->prog, nth/nplugins); @@ -428,7 +430,7 @@ plug_in_init () if (write_pluginrc) { if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("writing \"%s\"\n", filename); + g_print (_("writing \"%s\"\n"), filename); plug_in_write_rc (filename); } @@ -441,8 +443,8 @@ plug_in_init () /* run the available extensions */ tmp = proc_defs; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("Starting extensions: "); - app_init_update_status("Extensions", "", 0); + g_print (_("Starting extensions: ")); + app_init_update_status(_("Extensions"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -729,7 +731,7 @@ plug_in_def_add (PlugInDef *plug_in_def) } write_pluginrc = TRUE; - g_print ("\"%s\" executable not found\n", plug_in_def->prog); + g_print (_("\"%s\" executable not found\n"), plug_in_def->prog); g_free (plug_in_def->prog); g_free (plug_in_def); } @@ -782,7 +784,7 @@ plug_in_new (char *name) path = search_in_path (plug_in_path, name); if (!path) { - g_message ("unable to locate plug-in: \"%s\"", name); + g_message (_("unable to locate plug-in: \"%s\""), name); return NULL; } } @@ -879,7 +881,7 @@ plug_in_open (PlugIn *plug_in) */ if ((pipe (my_read) == -1) || (pipe (my_write) == -1)) { - g_message ("unable to open pipe"); + g_message (_("unable to open pipe")); return 0; } @@ -927,7 +929,7 @@ plug_in_open (PlugIn *plug_in) } else if (plug_in->pid == -1) { - g_message ("unable to run plug-in: %s\n", plug_in->args[0]); + g_message (_("unable to run plug-in: %s\n"), plug_in->args[0]); plug_in_destroy (plug_in); return 0; } @@ -1263,8 +1265,8 @@ plug_in_set_menu_sensitivity (int base_type) menus_set_sensitive (proc_def->menu_path, sensitive); if (last_plug_in && (last_plug_in == &(proc_def->db_info))) { - menus_set_sensitive ("/Filters/Repeat last", sensitive); - menus_set_sensitive ("/Filters/Re-show last", sensitive); + menus_set_sensitive (_("/Filters/Repeat last"), sensitive); + menus_set_sensitive (_("/Filters/Re-show last"), sensitive); } } } @@ -1303,18 +1305,18 @@ plug_in_handle_message (WireMessage *msg) plug_in_handle_quit (); break; case GP_CONFIG: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_REQ: plug_in_handle_tile_req (msg->data); break; case GP_TILE_ACK: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_DATA: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_PROC_RUN: @@ -1325,7 +1327,7 @@ plug_in_handle_message (WireMessage *msg) plug_in_close (current_plug_in, FALSE); break; case GP_TEMP_PROC_RUN: - g_message ("plug_in_handle_message(): received a temp proc run message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a temp proc run message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TEMP_PROC_RETURN: @@ -1372,21 +1374,21 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_DATA) { - g_message ("expected tile data and received: %d\n", msg.type); + g_message (_("expected tile data and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1400,7 +1402,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1408,7 +1410,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_info->tile_num, TRUE, TRUE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1423,7 +1425,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) wire_destroy (&msg); if (!gp_tile_ack_write (current_writefd)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1437,7 +1439,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1445,7 +1447,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_req->tile_num, TRUE, FALSE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1465,7 +1467,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1474,14 +1476,14 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_ACK) { - g_message ("expected tile ack and received: %d\n", msg.type); + g_message (_("expected tile ack and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1505,7 +1507,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!proc_rec) { /* THIS IS PROBABLY NOT CORRECT -josh */ - g_message ("PDB lookup failed on %s\n", proc_run->name); + g_message (_("PDB lookup failed on %s\n"), proc_run->name); plug_in_args_destroy (args, proc_run->nparams, FALSE); return; } @@ -1529,7 +1531,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!gp_proc_return_write (current_writefd, &proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1573,7 +1575,7 @@ plug_in_handle_proc_return (GPProcReturn *proc_return) plug_in_push (blocked->plug_in); if (!gp_proc_return_write (current_writefd, proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1612,8 +1614,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) if ((proc_install->nparams < 1) || (proc_install->params[0].type != PDB_INT32)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1625,8 +1627,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_IMAGE) || (proc_install->params[2].type != PDB_DRAWABLE)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1638,8 +1640,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_STRING) || (proc_install->params[2].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1653,17 +1655,17 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[3].type != PDB_STRING) || (proc_install->params[4].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } } else { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" in " + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" in " "an invalid menu location. Use either \"\", \"\", " - "\"\", or \"\".", + "\"\", or \"\"."), current_plug_in->args[0], proc_install->name); return; } @@ -1681,9 +1683,9 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) proc_install->params[i].type == PDB_STRINGARRAY) && proc_install->params[i-1].type != PDB_INT32) { - g_message ("plug_in \"%s\" attempted to install procedure \"%s\" " + g_message (_("plug_in \"%s\" attempted to install procedure \"%s\" " "which fails to comply with the array parameter " - "passing standard. Argument %d is noncompliant.", + "passing standard. Argument %d is noncompliant."), current_plug_in->args[0], proc_install->name, i); return; } @@ -2091,7 +2093,7 @@ plug_in_init_file (char *filename) if (strcmp (name, plug_in_name) == 0) { - g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename); + g_print (_("duplicate plug-in: \"%s\" (skipping)\n"), filename); return; } @@ -2265,7 +2267,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the plug-in!"); + g_message (_("Uh-oh, no active gdisplay for the plug-in!")); g_free (args); return; } @@ -2286,7 +2288,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the temporary procedure!"); + g_message (_("Uh-oh, no active gdisplay for the temporary procedure!")); g_free (args); return; } @@ -2294,7 +2296,7 @@ plug_in_callback (GtkWidget *widget, break; default: - g_error ("Unknown procedure type."); + g_error (_("Unknown procedure type.")); break; } @@ -2600,7 +2602,7 @@ plug_in_params_to_args (GPParam *params, colorarray[2] = params[i].data.d_color.blue; break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: args[i].value.pdb_int = params[i].data.d_display; @@ -2765,7 +2767,7 @@ plug_in_args_to_params (Argument *args, } break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: params[i].data.d_display = args[i].value.pdb_int; @@ -2882,7 +2884,7 @@ plug_in_params_destroy (GPParam *params, case PDB_COLOR: break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -2967,7 +2969,7 @@ plug_in_args_destroy (Argument *args, g_free (args[i].value.pdb_pointer); break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -3156,7 +3158,7 @@ plug_in_progress_init (PlugIn *plug_in, gtk_box_pack_start (GTK_BOX (vbox), plug_in->progress_bar, TRUE, TRUE, 0); gtk_widget_show (plug_in->progress_bar); - button = gtk_button_new_with_label ("Cancel"); + button = gtk_button_new_with_label (_("Cancel")); gtk_signal_connect_object (GTK_OBJECT (button), "clicked", (GtkSignalFunc) gtk_widget_destroy, GTK_OBJECT (plug_in->progress)); diff --git a/app/plug-in/plug-in.c b/app/plug-in/plug-in.c index 1dcc01f5e0..d3f184da83 100644 --- a/app/plug-in/plug-in.c +++ b/app/plug-in/plug-in.c @@ -59,6 +59,8 @@ #include "tile.h" /* ick. */ +#include "libgimp/gimpintl.h" + #define SEPARATE_PROGRESS_BAR @@ -161,17 +163,17 @@ static ProcArg progress_init_args[] = { { PDB_STRING, "message", - "Message to use in the progress dialog." }, + N_("Message to use in the progress dialog.") }, { PDB_INT32, "gdisplay", - "GDisplay to update progressbar in, or -1 for a seperate window" } + N_("GDisplay to update progressbar in, or -1 for a seperate window") } }; static ProcRecord progress_init_proc = { "gimp_progress_init", - "Initializes the progress bar for the current plug-in", - "Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Initializes the progress bar for the current plug-in"), + N_("Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -187,14 +189,14 @@ static ProcArg progress_update_args[] = { { PDB_FLOAT, "percentage", - "Percentage of progress completed" } + N_("Percentage of progress completed") } }; static ProcRecord progress_update_proc = { "gimp_progress_update", - "Updates the progress bar for the current plug-in", - "Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Updates the progress bar for the current plug-in"), + N_("Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -211,14 +213,14 @@ static ProcArg message_args[] = { { PDB_STRING, "message", - "Message to display in the dialog." } + N_("Message to display in the dialog.") } }; static ProcRecord message_proc = { "gimp_message", - "Displays a dialog box with a message", - "Displays a dialog box with a message. Useful for status or error reporting.", + N_("Displays a dialog box with a message"), + N_("Displays a dialog box with a message. Useful for status or error reporting."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -235,14 +237,14 @@ static ProcArg message_handler_get_out_args[] = { { PDB_INT32, "handler", - "the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_get_proc = { "gimp_message_handler_get", - "Returns the current state of where warning messages are displayed.", - "This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Returns the current state of where warning messages are displayed."), + N_("This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -258,14 +260,14 @@ static ProcArg message_handler_set_args[] = { { PDB_INT32, "handler", - "the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_set_proc = { "gimp_message_handler_set", - "Controls where warning messages are displayed.", - "This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Controls where warning messages are displayed."), + N_("This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -281,15 +283,15 @@ static ProcArg plugin_temp_PDB_name_out_args[] = { { PDB_STRING, "Temp name", - "A unique temporary name for a temporary PDB entry name", + N_("A unique temporary name for a temporary PDB entry name"), }, }; static ProcRecord plugin_temp_PDB_name_proc = { "gimp_temp_PDB_name", - "Generates a unique temporary PDB name", - "This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name.", + N_("Generates a unique temporary PDB name"), + N_("This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name."), "Andy Thomas", "Andy Thomas", "1998", @@ -340,13 +342,13 @@ plug_in_init () { shm_ID = shmget (IPC_PRIVATE, TILE_WIDTH * TILE_HEIGHT * 4, IPC_CREAT | 0777); if (shm_ID == -1) - g_message ("shmget failed...disabling shared memory tile transport\n"); + g_message (_("shmget failed...disabling shared memory tile transport\n")); else { shm_addr = (guchar*) shmat (shm_ID, 0, 0); if (shm_addr == (guchar*) -1) { - g_message ("shmat failed...disabling shared memory tile transport\n"); + g_message (_("shmat failed...disabling shared memory tile transport\n")); shm_ID = -1; } @@ -372,14 +374,14 @@ plug_in_init () else sprintf (filename, "%s/pluginrc", gimp_directory ()); - app_init_update_status("Resource configuration", filename, -1); + app_init_update_status(_("Resource configuration"), filename, -1); parse_gimprc_file (filename); /* query any plug-ins that have changed since we last wrote out * the pluginrc file. */ tmp = plug_in_defs; - app_init_update_status("Plug-ins", "", 0); + app_init_update_status(_("Plug-ins"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -391,7 +393,7 @@ plug_in_init () { write_pluginrc = TRUE; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("query plug-in: \"%s\"\n", plug_in_def->prog); + g_print (_("query plug-in: \"%s\"\n"), plug_in_def->prog); plug_in_query (plug_in_def->prog, plug_in_def); } app_init_update_status(NULL, plug_in_def->prog, nth/nplugins); @@ -428,7 +430,7 @@ plug_in_init () if (write_pluginrc) { if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("writing \"%s\"\n", filename); + g_print (_("writing \"%s\"\n"), filename); plug_in_write_rc (filename); } @@ -441,8 +443,8 @@ plug_in_init () /* run the available extensions */ tmp = proc_defs; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("Starting extensions: "); - app_init_update_status("Extensions", "", 0); + g_print (_("Starting extensions: ")); + app_init_update_status(_("Extensions"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -729,7 +731,7 @@ plug_in_def_add (PlugInDef *plug_in_def) } write_pluginrc = TRUE; - g_print ("\"%s\" executable not found\n", plug_in_def->prog); + g_print (_("\"%s\" executable not found\n"), plug_in_def->prog); g_free (plug_in_def->prog); g_free (plug_in_def); } @@ -782,7 +784,7 @@ plug_in_new (char *name) path = search_in_path (plug_in_path, name); if (!path) { - g_message ("unable to locate plug-in: \"%s\"", name); + g_message (_("unable to locate plug-in: \"%s\""), name); return NULL; } } @@ -879,7 +881,7 @@ plug_in_open (PlugIn *plug_in) */ if ((pipe (my_read) == -1) || (pipe (my_write) == -1)) { - g_message ("unable to open pipe"); + g_message (_("unable to open pipe")); return 0; } @@ -927,7 +929,7 @@ plug_in_open (PlugIn *plug_in) } else if (plug_in->pid == -1) { - g_message ("unable to run plug-in: %s\n", plug_in->args[0]); + g_message (_("unable to run plug-in: %s\n"), plug_in->args[0]); plug_in_destroy (plug_in); return 0; } @@ -1263,8 +1265,8 @@ plug_in_set_menu_sensitivity (int base_type) menus_set_sensitive (proc_def->menu_path, sensitive); if (last_plug_in && (last_plug_in == &(proc_def->db_info))) { - menus_set_sensitive ("/Filters/Repeat last", sensitive); - menus_set_sensitive ("/Filters/Re-show last", sensitive); + menus_set_sensitive (_("/Filters/Repeat last"), sensitive); + menus_set_sensitive (_("/Filters/Re-show last"), sensitive); } } } @@ -1303,18 +1305,18 @@ plug_in_handle_message (WireMessage *msg) plug_in_handle_quit (); break; case GP_CONFIG: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_REQ: plug_in_handle_tile_req (msg->data); break; case GP_TILE_ACK: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_DATA: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_PROC_RUN: @@ -1325,7 +1327,7 @@ plug_in_handle_message (WireMessage *msg) plug_in_close (current_plug_in, FALSE); break; case GP_TEMP_PROC_RUN: - g_message ("plug_in_handle_message(): received a temp proc run message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a temp proc run message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TEMP_PROC_RETURN: @@ -1372,21 +1374,21 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_DATA) { - g_message ("expected tile data and received: %d\n", msg.type); + g_message (_("expected tile data and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1400,7 +1402,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1408,7 +1410,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_info->tile_num, TRUE, TRUE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1423,7 +1425,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) wire_destroy (&msg); if (!gp_tile_ack_write (current_writefd)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1437,7 +1439,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1445,7 +1447,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_req->tile_num, TRUE, FALSE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1465,7 +1467,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1474,14 +1476,14 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_ACK) { - g_message ("expected tile ack and received: %d\n", msg.type); + g_message (_("expected tile ack and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1505,7 +1507,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!proc_rec) { /* THIS IS PROBABLY NOT CORRECT -josh */ - g_message ("PDB lookup failed on %s\n", proc_run->name); + g_message (_("PDB lookup failed on %s\n"), proc_run->name); plug_in_args_destroy (args, proc_run->nparams, FALSE); return; } @@ -1529,7 +1531,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!gp_proc_return_write (current_writefd, &proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1573,7 +1575,7 @@ plug_in_handle_proc_return (GPProcReturn *proc_return) plug_in_push (blocked->plug_in); if (!gp_proc_return_write (current_writefd, proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1612,8 +1614,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) if ((proc_install->nparams < 1) || (proc_install->params[0].type != PDB_INT32)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1625,8 +1627,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_IMAGE) || (proc_install->params[2].type != PDB_DRAWABLE)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1638,8 +1640,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_STRING) || (proc_install->params[2].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1653,17 +1655,17 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[3].type != PDB_STRING) || (proc_install->params[4].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } } else { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" in " + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" in " "an invalid menu location. Use either \"\", \"\", " - "\"\", or \"\".", + "\"\", or \"\"."), current_plug_in->args[0], proc_install->name); return; } @@ -1681,9 +1683,9 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) proc_install->params[i].type == PDB_STRINGARRAY) && proc_install->params[i-1].type != PDB_INT32) { - g_message ("plug_in \"%s\" attempted to install procedure \"%s\" " + g_message (_("plug_in \"%s\" attempted to install procedure \"%s\" " "which fails to comply with the array parameter " - "passing standard. Argument %d is noncompliant.", + "passing standard. Argument %d is noncompliant."), current_plug_in->args[0], proc_install->name, i); return; } @@ -2091,7 +2093,7 @@ plug_in_init_file (char *filename) if (strcmp (name, plug_in_name) == 0) { - g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename); + g_print (_("duplicate plug-in: \"%s\" (skipping)\n"), filename); return; } @@ -2265,7 +2267,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the plug-in!"); + g_message (_("Uh-oh, no active gdisplay for the plug-in!")); g_free (args); return; } @@ -2286,7 +2288,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the temporary procedure!"); + g_message (_("Uh-oh, no active gdisplay for the temporary procedure!")); g_free (args); return; } @@ -2294,7 +2296,7 @@ plug_in_callback (GtkWidget *widget, break; default: - g_error ("Unknown procedure type."); + g_error (_("Unknown procedure type.")); break; } @@ -2600,7 +2602,7 @@ plug_in_params_to_args (GPParam *params, colorarray[2] = params[i].data.d_color.blue; break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: args[i].value.pdb_int = params[i].data.d_display; @@ -2765,7 +2767,7 @@ plug_in_args_to_params (Argument *args, } break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: params[i].data.d_display = args[i].value.pdb_int; @@ -2882,7 +2884,7 @@ plug_in_params_destroy (GPParam *params, case PDB_COLOR: break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -2967,7 +2969,7 @@ plug_in_args_destroy (Argument *args, g_free (args[i].value.pdb_pointer); break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -3156,7 +3158,7 @@ plug_in_progress_init (PlugIn *plug_in, gtk_box_pack_start (GTK_BOX (vbox), plug_in->progress_bar, TRUE, TRUE, 0); gtk_widget_show (plug_in->progress_bar); - button = gtk_button_new_with_label ("Cancel"); + button = gtk_button_new_with_label (_("Cancel")); gtk_signal_connect_object (GTK_OBJECT (button), "clicked", (GtkSignalFunc) gtk_widget_destroy, GTK_OBJECT (plug_in->progress)); diff --git a/app/plug-in/plug-ins.c b/app/plug-in/plug-ins.c index 1dcc01f5e0..d3f184da83 100644 --- a/app/plug-in/plug-ins.c +++ b/app/plug-in/plug-ins.c @@ -59,6 +59,8 @@ #include "tile.h" /* ick. */ +#include "libgimp/gimpintl.h" + #define SEPARATE_PROGRESS_BAR @@ -161,17 +163,17 @@ static ProcArg progress_init_args[] = { { PDB_STRING, "message", - "Message to use in the progress dialog." }, + N_("Message to use in the progress dialog.") }, { PDB_INT32, "gdisplay", - "GDisplay to update progressbar in, or -1 for a seperate window" } + N_("GDisplay to update progressbar in, or -1 for a seperate window") } }; static ProcRecord progress_init_proc = { "gimp_progress_init", - "Initializes the progress bar for the current plug-in", - "Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Initializes the progress bar for the current plug-in"), + N_("Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -187,14 +189,14 @@ static ProcArg progress_update_args[] = { { PDB_FLOAT, "percentage", - "Percentage of progress completed" } + N_("Percentage of progress completed") } }; static ProcRecord progress_update_proc = { "gimp_progress_update", - "Updates the progress bar for the current plug-in", - "Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Updates the progress bar for the current plug-in"), + N_("Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -211,14 +213,14 @@ static ProcArg message_args[] = { { PDB_STRING, "message", - "Message to display in the dialog." } + N_("Message to display in the dialog.") } }; static ProcRecord message_proc = { "gimp_message", - "Displays a dialog box with a message", - "Displays a dialog box with a message. Useful for status or error reporting.", + N_("Displays a dialog box with a message"), + N_("Displays a dialog box with a message. Useful for status or error reporting."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -235,14 +237,14 @@ static ProcArg message_handler_get_out_args[] = { { PDB_INT32, "handler", - "the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_get_proc = { "gimp_message_handler_get", - "Returns the current state of where warning messages are displayed.", - "This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Returns the current state of where warning messages are displayed."), + N_("This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -258,14 +260,14 @@ static ProcArg message_handler_set_args[] = { { PDB_INT32, "handler", - "the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_set_proc = { "gimp_message_handler_set", - "Controls where warning messages are displayed.", - "This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Controls where warning messages are displayed."), + N_("This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -281,15 +283,15 @@ static ProcArg plugin_temp_PDB_name_out_args[] = { { PDB_STRING, "Temp name", - "A unique temporary name for a temporary PDB entry name", + N_("A unique temporary name for a temporary PDB entry name"), }, }; static ProcRecord plugin_temp_PDB_name_proc = { "gimp_temp_PDB_name", - "Generates a unique temporary PDB name", - "This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name.", + N_("Generates a unique temporary PDB name"), + N_("This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name."), "Andy Thomas", "Andy Thomas", "1998", @@ -340,13 +342,13 @@ plug_in_init () { shm_ID = shmget (IPC_PRIVATE, TILE_WIDTH * TILE_HEIGHT * 4, IPC_CREAT | 0777); if (shm_ID == -1) - g_message ("shmget failed...disabling shared memory tile transport\n"); + g_message (_("shmget failed...disabling shared memory tile transport\n")); else { shm_addr = (guchar*) shmat (shm_ID, 0, 0); if (shm_addr == (guchar*) -1) { - g_message ("shmat failed...disabling shared memory tile transport\n"); + g_message (_("shmat failed...disabling shared memory tile transport\n")); shm_ID = -1; } @@ -372,14 +374,14 @@ plug_in_init () else sprintf (filename, "%s/pluginrc", gimp_directory ()); - app_init_update_status("Resource configuration", filename, -1); + app_init_update_status(_("Resource configuration"), filename, -1); parse_gimprc_file (filename); /* query any plug-ins that have changed since we last wrote out * the pluginrc file. */ tmp = plug_in_defs; - app_init_update_status("Plug-ins", "", 0); + app_init_update_status(_("Plug-ins"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -391,7 +393,7 @@ plug_in_init () { write_pluginrc = TRUE; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("query plug-in: \"%s\"\n", plug_in_def->prog); + g_print (_("query plug-in: \"%s\"\n"), plug_in_def->prog); plug_in_query (plug_in_def->prog, plug_in_def); } app_init_update_status(NULL, plug_in_def->prog, nth/nplugins); @@ -428,7 +430,7 @@ plug_in_init () if (write_pluginrc) { if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("writing \"%s\"\n", filename); + g_print (_("writing \"%s\"\n"), filename); plug_in_write_rc (filename); } @@ -441,8 +443,8 @@ plug_in_init () /* run the available extensions */ tmp = proc_defs; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("Starting extensions: "); - app_init_update_status("Extensions", "", 0); + g_print (_("Starting extensions: ")); + app_init_update_status(_("Extensions"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -729,7 +731,7 @@ plug_in_def_add (PlugInDef *plug_in_def) } write_pluginrc = TRUE; - g_print ("\"%s\" executable not found\n", plug_in_def->prog); + g_print (_("\"%s\" executable not found\n"), plug_in_def->prog); g_free (plug_in_def->prog); g_free (plug_in_def); } @@ -782,7 +784,7 @@ plug_in_new (char *name) path = search_in_path (plug_in_path, name); if (!path) { - g_message ("unable to locate plug-in: \"%s\"", name); + g_message (_("unable to locate plug-in: \"%s\""), name); return NULL; } } @@ -879,7 +881,7 @@ plug_in_open (PlugIn *plug_in) */ if ((pipe (my_read) == -1) || (pipe (my_write) == -1)) { - g_message ("unable to open pipe"); + g_message (_("unable to open pipe")); return 0; } @@ -927,7 +929,7 @@ plug_in_open (PlugIn *plug_in) } else if (plug_in->pid == -1) { - g_message ("unable to run plug-in: %s\n", plug_in->args[0]); + g_message (_("unable to run plug-in: %s\n"), plug_in->args[0]); plug_in_destroy (plug_in); return 0; } @@ -1263,8 +1265,8 @@ plug_in_set_menu_sensitivity (int base_type) menus_set_sensitive (proc_def->menu_path, sensitive); if (last_plug_in && (last_plug_in == &(proc_def->db_info))) { - menus_set_sensitive ("/Filters/Repeat last", sensitive); - menus_set_sensitive ("/Filters/Re-show last", sensitive); + menus_set_sensitive (_("/Filters/Repeat last"), sensitive); + menus_set_sensitive (_("/Filters/Re-show last"), sensitive); } } } @@ -1303,18 +1305,18 @@ plug_in_handle_message (WireMessage *msg) plug_in_handle_quit (); break; case GP_CONFIG: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_REQ: plug_in_handle_tile_req (msg->data); break; case GP_TILE_ACK: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_DATA: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_PROC_RUN: @@ -1325,7 +1327,7 @@ plug_in_handle_message (WireMessage *msg) plug_in_close (current_plug_in, FALSE); break; case GP_TEMP_PROC_RUN: - g_message ("plug_in_handle_message(): received a temp proc run message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a temp proc run message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TEMP_PROC_RETURN: @@ -1372,21 +1374,21 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_DATA) { - g_message ("expected tile data and received: %d\n", msg.type); + g_message (_("expected tile data and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1400,7 +1402,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1408,7 +1410,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_info->tile_num, TRUE, TRUE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1423,7 +1425,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) wire_destroy (&msg); if (!gp_tile_ack_write (current_writefd)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1437,7 +1439,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1445,7 +1447,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_req->tile_num, TRUE, FALSE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1465,7 +1467,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1474,14 +1476,14 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_ACK) { - g_message ("expected tile ack and received: %d\n", msg.type); + g_message (_("expected tile ack and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1505,7 +1507,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!proc_rec) { /* THIS IS PROBABLY NOT CORRECT -josh */ - g_message ("PDB lookup failed on %s\n", proc_run->name); + g_message (_("PDB lookup failed on %s\n"), proc_run->name); plug_in_args_destroy (args, proc_run->nparams, FALSE); return; } @@ -1529,7 +1531,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!gp_proc_return_write (current_writefd, &proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1573,7 +1575,7 @@ plug_in_handle_proc_return (GPProcReturn *proc_return) plug_in_push (blocked->plug_in); if (!gp_proc_return_write (current_writefd, proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1612,8 +1614,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) if ((proc_install->nparams < 1) || (proc_install->params[0].type != PDB_INT32)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1625,8 +1627,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_IMAGE) || (proc_install->params[2].type != PDB_DRAWABLE)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1638,8 +1640,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_STRING) || (proc_install->params[2].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1653,17 +1655,17 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[3].type != PDB_STRING) || (proc_install->params[4].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } } else { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" in " + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" in " "an invalid menu location. Use either \"\", \"\", " - "\"\", or \"\".", + "\"\", or \"\"."), current_plug_in->args[0], proc_install->name); return; } @@ -1681,9 +1683,9 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) proc_install->params[i].type == PDB_STRINGARRAY) && proc_install->params[i-1].type != PDB_INT32) { - g_message ("plug_in \"%s\" attempted to install procedure \"%s\" " + g_message (_("plug_in \"%s\" attempted to install procedure \"%s\" " "which fails to comply with the array parameter " - "passing standard. Argument %d is noncompliant.", + "passing standard. Argument %d is noncompliant."), current_plug_in->args[0], proc_install->name, i); return; } @@ -2091,7 +2093,7 @@ plug_in_init_file (char *filename) if (strcmp (name, plug_in_name) == 0) { - g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename); + g_print (_("duplicate plug-in: \"%s\" (skipping)\n"), filename); return; } @@ -2265,7 +2267,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the plug-in!"); + g_message (_("Uh-oh, no active gdisplay for the plug-in!")); g_free (args); return; } @@ -2286,7 +2288,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the temporary procedure!"); + g_message (_("Uh-oh, no active gdisplay for the temporary procedure!")); g_free (args); return; } @@ -2294,7 +2296,7 @@ plug_in_callback (GtkWidget *widget, break; default: - g_error ("Unknown procedure type."); + g_error (_("Unknown procedure type.")); break; } @@ -2600,7 +2602,7 @@ plug_in_params_to_args (GPParam *params, colorarray[2] = params[i].data.d_color.blue; break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: args[i].value.pdb_int = params[i].data.d_display; @@ -2765,7 +2767,7 @@ plug_in_args_to_params (Argument *args, } break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: params[i].data.d_display = args[i].value.pdb_int; @@ -2882,7 +2884,7 @@ plug_in_params_destroy (GPParam *params, case PDB_COLOR: break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -2967,7 +2969,7 @@ plug_in_args_destroy (Argument *args, g_free (args[i].value.pdb_pointer); break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -3156,7 +3158,7 @@ plug_in_progress_init (PlugIn *plug_in, gtk_box_pack_start (GTK_BOX (vbox), plug_in->progress_bar, TRUE, TRUE, 0); gtk_widget_show (plug_in->progress_bar); - button = gtk_button_new_with_label ("Cancel"); + button = gtk_button_new_with_label (_("Cancel")); gtk_signal_connect_object (GTK_OBJECT (button), "clicked", (GtkSignalFunc) gtk_widget_destroy, GTK_OBJECT (plug_in->progress)); diff --git a/app/plug_in.c b/app/plug_in.c index 1dcc01f5e0..d3f184da83 100644 --- a/app/plug_in.c +++ b/app/plug_in.c @@ -59,6 +59,8 @@ #include "tile.h" /* ick. */ +#include "libgimp/gimpintl.h" + #define SEPARATE_PROGRESS_BAR @@ -161,17 +163,17 @@ static ProcArg progress_init_args[] = { { PDB_STRING, "message", - "Message to use in the progress dialog." }, + N_("Message to use in the progress dialog.") }, { PDB_INT32, "gdisplay", - "GDisplay to update progressbar in, or -1 for a seperate window" } + N_("GDisplay to update progressbar in, or -1 for a seperate window") } }; static ProcRecord progress_init_proc = { "gimp_progress_init", - "Initializes the progress bar for the current plug-in", - "Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Initializes the progress bar for the current plug-in"), + N_("Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -187,14 +189,14 @@ static ProcArg progress_update_args[] = { { PDB_FLOAT, "percentage", - "Percentage of progress completed" } + N_("Percentage of progress completed") } }; static ProcRecord progress_update_proc = { "gimp_progress_update", - "Updates the progress bar for the current plug-in", - "Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in.", + N_("Updates the progress bar for the current plug-in"), + N_("Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -211,14 +213,14 @@ static ProcArg message_args[] = { { PDB_STRING, "message", - "Message to display in the dialog." } + N_("Message to display in the dialog.") } }; static ProcRecord message_proc = { "gimp_message", - "Displays a dialog box with a message", - "Displays a dialog box with a message. Useful for status or error reporting.", + N_("Displays a dialog box with a message"), + N_("Displays a dialog box with a message. Useful for status or error reporting."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -235,14 +237,14 @@ static ProcArg message_handler_get_out_args[] = { { PDB_INT32, "handler", - "the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_get_proc = { "gimp_message_handler_get", - "Returns the current state of where warning messages are displayed.", - "This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Returns the current state of where warning messages are displayed."), + N_("This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -258,14 +260,14 @@ static ProcArg message_handler_set_args[] = { { PDB_INT32, "handler", - "the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }" } + N_("the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }") } }; static ProcRecord message_handler_set_proc = { "gimp_message_handler_set", - "Controls where warning messages are displayed.", - "This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started.", + N_("Controls where warning messages are displayed."), + N_("This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started."), "Manish Singh", "Manish Singh", "1998", @@ -281,15 +283,15 @@ static ProcArg plugin_temp_PDB_name_out_args[] = { { PDB_STRING, "Temp name", - "A unique temporary name for a temporary PDB entry name", + N_("A unique temporary name for a temporary PDB entry name"), }, }; static ProcRecord plugin_temp_PDB_name_proc = { "gimp_temp_PDB_name", - "Generates a unique temporary PDB name", - "This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name.", + N_("Generates a unique temporary PDB name"), + N_("This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name."), "Andy Thomas", "Andy Thomas", "1998", @@ -340,13 +342,13 @@ plug_in_init () { shm_ID = shmget (IPC_PRIVATE, TILE_WIDTH * TILE_HEIGHT * 4, IPC_CREAT | 0777); if (shm_ID == -1) - g_message ("shmget failed...disabling shared memory tile transport\n"); + g_message (_("shmget failed...disabling shared memory tile transport\n")); else { shm_addr = (guchar*) shmat (shm_ID, 0, 0); if (shm_addr == (guchar*) -1) { - g_message ("shmat failed...disabling shared memory tile transport\n"); + g_message (_("shmat failed...disabling shared memory tile transport\n")); shm_ID = -1; } @@ -372,14 +374,14 @@ plug_in_init () else sprintf (filename, "%s/pluginrc", gimp_directory ()); - app_init_update_status("Resource configuration", filename, -1); + app_init_update_status(_("Resource configuration"), filename, -1); parse_gimprc_file (filename); /* query any plug-ins that have changed since we last wrote out * the pluginrc file. */ tmp = plug_in_defs; - app_init_update_status("Plug-ins", "", 0); + app_init_update_status(_("Plug-ins"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -391,7 +393,7 @@ plug_in_init () { write_pluginrc = TRUE; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("query plug-in: \"%s\"\n", plug_in_def->prog); + g_print (_("query plug-in: \"%s\"\n"), plug_in_def->prog); plug_in_query (plug_in_def->prog, plug_in_def); } app_init_update_status(NULL, plug_in_def->prog, nth/nplugins); @@ -428,7 +430,7 @@ plug_in_init () if (write_pluginrc) { if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("writing \"%s\"\n", filename); + g_print (_("writing \"%s\"\n"), filename); plug_in_write_rc (filename); } @@ -441,8 +443,8 @@ plug_in_init () /* run the available extensions */ tmp = proc_defs; if ((be_verbose == TRUE) || (no_splash == TRUE)) - g_print ("Starting extensions: "); - app_init_update_status("Extensions", "", 0); + g_print (_("Starting extensions: ")); + app_init_update_status(_("Extensions"), "", 0); nplugins = g_slist_length(tmp); nth = 0; while (tmp) @@ -729,7 +731,7 @@ plug_in_def_add (PlugInDef *plug_in_def) } write_pluginrc = TRUE; - g_print ("\"%s\" executable not found\n", plug_in_def->prog); + g_print (_("\"%s\" executable not found\n"), plug_in_def->prog); g_free (plug_in_def->prog); g_free (plug_in_def); } @@ -782,7 +784,7 @@ plug_in_new (char *name) path = search_in_path (plug_in_path, name); if (!path) { - g_message ("unable to locate plug-in: \"%s\"", name); + g_message (_("unable to locate plug-in: \"%s\""), name); return NULL; } } @@ -879,7 +881,7 @@ plug_in_open (PlugIn *plug_in) */ if ((pipe (my_read) == -1) || (pipe (my_write) == -1)) { - g_message ("unable to open pipe"); + g_message (_("unable to open pipe")); return 0; } @@ -927,7 +929,7 @@ plug_in_open (PlugIn *plug_in) } else if (plug_in->pid == -1) { - g_message ("unable to run plug-in: %s\n", plug_in->args[0]); + g_message (_("unable to run plug-in: %s\n"), plug_in->args[0]); plug_in_destroy (plug_in); return 0; } @@ -1263,8 +1265,8 @@ plug_in_set_menu_sensitivity (int base_type) menus_set_sensitive (proc_def->menu_path, sensitive); if (last_plug_in && (last_plug_in == &(proc_def->db_info))) { - menus_set_sensitive ("/Filters/Repeat last", sensitive); - menus_set_sensitive ("/Filters/Re-show last", sensitive); + menus_set_sensitive (_("/Filters/Repeat last"), sensitive); + menus_set_sensitive (_("/Filters/Re-show last"), sensitive); } } } @@ -1303,18 +1305,18 @@ plug_in_handle_message (WireMessage *msg) plug_in_handle_quit (); break; case GP_CONFIG: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_REQ: plug_in_handle_tile_req (msg->data); break; case GP_TILE_ACK: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TILE_DATA: - g_message ("plug_in_handle_message(): received a config message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a config message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_PROC_RUN: @@ -1325,7 +1327,7 @@ plug_in_handle_message (WireMessage *msg) plug_in_close (current_plug_in, FALSE); break; case GP_TEMP_PROC_RUN: - g_message ("plug_in_handle_message(): received a temp proc run message (should not happen)\n"); + g_message (_("plug_in_handle_message(): received a temp proc run message (should not happen)\n")); plug_in_close (current_plug_in, TRUE); break; case GP_TEMP_PROC_RETURN: @@ -1372,21 +1374,21 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_DATA) { - g_message ("expected tile data and received: %d\n", msg.type); + g_message (_("expected tile data and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1400,7 +1402,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1408,7 +1410,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_info->tile_num, TRUE, TRUE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1423,7 +1425,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) wire_destroy (&msg); if (!gp_tile_ack_write (current_writefd)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1437,7 +1439,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!tm) { - g_message ("plug-in requested invalid drawable (killing)\n"); + g_message (_("plug-in requested invalid drawable (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1445,7 +1447,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) tile = tile_manager_get (tm, tile_req->tile_num, TRUE, FALSE); if (!tile) { - g_message ("plug-in requested invalid tile (killing)\n"); + g_message (_("plug-in requested invalid tile (killing)\n")); plug_in_close (current_plug_in, TRUE); return; } @@ -1465,7 +1467,7 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!gp_tile_data_write (current_writefd, &tile_data)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1474,14 +1476,14 @@ plug_in_handle_tile_req (GPTileReq *tile_req) if (!wire_read_msg (current_readfd, &msg)) { - g_message ("plug_in_handle_tile_req: ERROR"); + g_message (_("plug_in_handle_tile_req: ERROR")); plug_in_close (current_plug_in, TRUE); return; } if (msg.type != GP_TILE_ACK) { - g_message ("expected tile ack and received: %d\n", msg.type); + g_message (_("expected tile ack and received: %d\n"), msg.type); plug_in_close (current_plug_in, TRUE); return; } @@ -1505,7 +1507,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!proc_rec) { /* THIS IS PROBABLY NOT CORRECT -josh */ - g_message ("PDB lookup failed on %s\n", proc_run->name); + g_message (_("PDB lookup failed on %s\n"), proc_run->name); plug_in_args_destroy (args, proc_run->nparams, FALSE); return; } @@ -1529,7 +1531,7 @@ plug_in_handle_proc_run (GPProcRun *proc_run) if (!gp_proc_return_write (current_writefd, &proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1573,7 +1575,7 @@ plug_in_handle_proc_return (GPProcReturn *proc_return) plug_in_push (blocked->plug_in); if (!gp_proc_return_write (current_writefd, proc_return)) { - g_message ("plug_in_handle_proc_run: ERROR"); + g_message (_("plug_in_handle_proc_run: ERROR")); plug_in_close (current_plug_in, TRUE); return; } @@ -1612,8 +1614,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) if ((proc_install->nparams < 1) || (proc_install->params[0].type != PDB_INT32)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1625,8 +1627,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_IMAGE) || (proc_install->params[2].type != PDB_DRAWABLE)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1638,8 +1640,8 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[1].type != PDB_STRING) || (proc_install->params[2].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } @@ -1653,17 +1655,17 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) (proc_install->params[3].type != PDB_STRING) || (proc_install->params[4].type != PDB_STRING)) { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" which " - "does not take the standard plug-in args", + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" which " + "does not take the standard plug-in args"), current_plug_in->args[0], proc_install->name); return; } } else { - g_message ("plug-in \"%s\" attempted to install procedure \"%s\" in " + g_message (_("plug-in \"%s\" attempted to install procedure \"%s\" in " "an invalid menu location. Use either \"\", \"\", " - "\"\", or \"\".", + "\"\", or \"\"."), current_plug_in->args[0], proc_install->name); return; } @@ -1681,9 +1683,9 @@ plug_in_handle_proc_install (GPProcInstall *proc_install) proc_install->params[i].type == PDB_STRINGARRAY) && proc_install->params[i-1].type != PDB_INT32) { - g_message ("plug_in \"%s\" attempted to install procedure \"%s\" " + g_message (_("plug_in \"%s\" attempted to install procedure \"%s\" " "which fails to comply with the array parameter " - "passing standard. Argument %d is noncompliant.", + "passing standard. Argument %d is noncompliant."), current_plug_in->args[0], proc_install->name, i); return; } @@ -2091,7 +2093,7 @@ plug_in_init_file (char *filename) if (strcmp (name, plug_in_name) == 0) { - g_print ("duplicate plug-in: \"%s\" (skipping)\n", filename); + g_print (_("duplicate plug-in: \"%s\" (skipping)\n"), filename); return; } @@ -2265,7 +2267,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the plug-in!"); + g_message (_("Uh-oh, no active gdisplay for the plug-in!")); g_free (args); return; } @@ -2286,7 +2288,7 @@ plug_in_callback (GtkWidget *widget, } else { - g_message ("Uh-oh, no active gdisplay for the temporary procedure!"); + g_message (_("Uh-oh, no active gdisplay for the temporary procedure!")); g_free (args); return; } @@ -2294,7 +2296,7 @@ plug_in_callback (GtkWidget *widget, break; default: - g_error ("Unknown procedure type."); + g_error (_("Unknown procedure type.")); break; } @@ -2600,7 +2602,7 @@ plug_in_params_to_args (GPParam *params, colorarray[2] = params[i].data.d_color.blue; break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: args[i].value.pdb_int = params[i].data.d_display; @@ -2765,7 +2767,7 @@ plug_in_args_to_params (Argument *args, } break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: params[i].data.d_display = args[i].value.pdb_int; @@ -2882,7 +2884,7 @@ plug_in_params_destroy (GPParam *params, case PDB_COLOR: break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -2967,7 +2969,7 @@ plug_in_args_destroy (Argument *args, g_free (args[i].value.pdb_pointer); break; case PDB_REGION: - g_message ("the \"region\" arg type is not currently supported"); + g_message (_("the \"region\" arg type is not currently supported")); break; case PDB_DISPLAY: case PDB_IMAGE: @@ -3156,7 +3158,7 @@ plug_in_progress_init (PlugIn *plug_in, gtk_box_pack_start (GTK_BOX (vbox), plug_in->progress_bar, TRUE, TRUE, 0); gtk_widget_show (plug_in->progress_bar); - button = gtk_button_new_with_label ("Cancel"); + button = gtk_button_new_with_label (_("Cancel")); gtk_signal_connect_object (GTK_OBJECT (button), "clicked", (GtkSignalFunc) gtk_widget_destroy, GTK_OBJECT (plug_in->progress)); diff --git a/app/preferences_dialog.c b/app/preferences_dialog.c index ac1430f6fb..ceec12c061 100644 --- a/app/preferences_dialog.c +++ b/app/preferences_dialog.c @@ -48,6 +48,7 @@ #include "tools.h" #include "undo.h" +#include "libgimp/gimpintl.h" typedef struct { @@ -205,25 +206,25 @@ file_prefs_ok_callback (GtkWidget *widget, if (levels_of_undo < 0) { - g_message ("Error: Levels of undo must be zero or greater."); + g_message (_("Error: Levels of undo must be zero or greater.")); levels_of_undo = old_levels_of_undo; return; } if (marching_speed < 50) { - g_message ("Error: Marching speed must be 50 or greater."); + g_message (_("Error: Marching speed must be 50 or greater.")); marching_speed = old_marching_speed; return; } if (default_width < 1) { - g_message ("Error: Default width must be one or greater."); + g_message (_("Error: Default width must be one or greater.")); default_width = old_default_width; return; } if (default_height < 1) { - g_message ("Error: Default height must be one or greater."); + g_message (_("Error: Default height must be one or greater.")); default_height = old_default_height; return; } @@ -430,7 +431,7 @@ file_prefs_save_callback (GtkWidget *widget, gradient_path = save_gradient_path; if (restart_notification) - g_message ("You will need to restart GIMP for these changes to take effect."); + g_message (_("You will need to restart GIMP for these changes to take effect.")); g_list_free (update); g_list_free (remove); @@ -644,18 +645,18 @@ file_pref_cmd_callback (GtkWidget *widget, GSList *group; char *transparencies[] = { - "Light Checks", - "Mid-Tone Checks", - "Dark Checks", - "White Only", - "Gray Only", - "Black Only", + N_("Light Checks"), + N_("Mid-Tone Checks"), + N_("Dark Checks"), + N_("White Only"), + N_("Gray Only"), + N_("Black Only"), }; char *checks[] = { - "Small Checks", - "Medium Checks", - "Large Checks", + N_("Small Checks"), + N_("Medium Checks"), + N_("Large Checks"), }; int transparency_vals[] = { @@ -677,32 +678,32 @@ file_pref_cmd_callback (GtkWidget *widget, int unit; } mem_size_units[] = { - {"Bytes", 1}, - {"KiloBytes", 1024}, - {"MegaBytes", (1024*1024)} + {N_("Bytes"), 1}, + {N_("KiloBytes"), 1024}, + {N_("MegaBytes"), (1024*1024)} }; struct { char *label; char **mpath; } dirs[] = { - {"Temp dir:", &edit_temp_path}, - {"Swap dir:", &edit_swap_path}, - {"Brushes dir:", &edit_brush_path}, - {"Gradients dir:", &edit_gradient_path}, - {"Patterns dir:", &edit_pattern_path}, - {"Palette dir:", &edit_palette_path}, - {"Plug-in dir:", &edit_plug_in_path} + {N_("Temp dir:"), &edit_temp_path}, + {N_("Swap dir:"), &edit_swap_path}, + {N_("Brushes dir:"), &edit_brush_path}, + {N_("Gradients dir:"), &edit_gradient_path}, + {N_("Patterns dir:"), &edit_pattern_path}, + {N_("Palette dir:"), &edit_palette_path}, + {N_("Plug-in dir:"), &edit_plug_in_path} }; struct { char *label; int size; } preview_sizes[] = { - {"None",0}, - {"Small",32}, - {"Medium",64}, - {"Large",128} + {N_("None"),0}, + {N_("Small"),32}, + {N_("Medium"),64}, + {N_("Large"),128} }; int ntransparencies = sizeof (transparencies) / sizeof (transparencies[0]); int nchecks = sizeof (checks) / sizeof (checks[0]); @@ -772,7 +773,7 @@ file_pref_cmd_callback (GtkWidget *widget, prefs_dlg = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (prefs_dlg), "preferences", "Gimp"); - gtk_window_set_title (GTK_WINDOW (prefs_dlg), "Preferences"); + gtk_window_set_title (GTK_WINDOW (prefs_dlg), _("Preferences")); /* handle the wm close signal */ gtk_signal_connect (GTK_OBJECT (prefs_dlg), "delete_event", @@ -782,7 +783,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_container_border_width (GTK_CONTAINER (GTK_DIALOG (prefs_dlg)->action_area), 2); /* Action area */ - button = gtk_button_new_with_label ("OK"); + button = gtk_button_new_with_label (_("OK")); GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT); gtk_signal_connect (GTK_OBJECT (button), "clicked", (GtkSignalFunc) file_prefs_ok_callback, @@ -792,7 +793,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_widget_grab_default (button); gtk_widget_show (button); - button = gtk_button_new_with_label ("Save"); + button = gtk_button_new_with_label (_("Save")); GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT); gtk_signal_connect (GTK_OBJECT (button), "clicked", (GtkSignalFunc) file_prefs_save_callback, @@ -802,7 +803,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_widget_grab_default (button); gtk_widget_show (button); - button = gtk_button_new_with_label ("Cancel"); + button = gtk_button_new_with_label (_("Cancel")); GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT); gtk_signal_connect (GTK_OBJECT (button), "clicked", (GtkSignalFunc) file_prefs_cancel_callback, @@ -816,7 +817,7 @@ file_pref_cmd_callback (GtkWidget *widget, notebook, TRUE, TRUE, 0); /* Display page */ - out_frame = gtk_frame_new ("Display settings"); + out_frame = gtk_frame_new (_("Display settings")); gtk_container_border_width (GTK_CONTAINER (out_frame), 10); gtk_widget_show (out_frame); @@ -829,7 +830,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0); gtk_widget_show (hbox); - frame = gtk_frame_new ("Default image size"); + frame = gtk_frame_new (_("Default image size")); gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0); gtk_widget_show (frame); @@ -844,13 +845,13 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_box_pack_start (GTK_BOX (abox), table, TRUE, TRUE, 0); gtk_widget_show (table); - label = gtk_label_new ("Width:"); + label = gtk_label_new (_("Width:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1, GTK_FILL, GTK_FILL, 0, 0); gtk_widget_show (label); - label = gtk_label_new ("Height:"); + label = gtk_label_new (_("Height:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2, GTK_FILL, GTK_FILL, 0, 0); @@ -881,7 +882,7 @@ file_pref_cmd_callback (GtkWidget *widget, &default_height); gtk_widget_show (spinbutton); - frame = gtk_frame_new ("Default image type"); + frame = gtk_frame_new (_("Default image type")); gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0); gtk_widget_show (frame); @@ -890,7 +891,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_container_add (GTK_CONTAINER (frame), radio_box); gtk_widget_show (radio_box); - button = gtk_radio_button_new_with_label (NULL, "RGB"); + button = gtk_radio_button_new_with_label (NULL, _("RGB")); group = gtk_radio_button_group (GTK_RADIO_BUTTON (button)); gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0); gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) RGB); @@ -900,7 +901,7 @@ file_pref_cmd_callback (GtkWidget *widget, (GtkSignalFunc) file_prefs_toggle_callback, &default_type); gtk_widget_show (button); - button = gtk_radio_button_new_with_label (group, "Grayscale"); + button = gtk_radio_button_new_with_label (group, _("Grayscale")); group = gtk_radio_button_group (GTK_RADIO_BUTTON (button)); gtk_box_pack_start (GTK_BOX (radio_box), button, TRUE, TRUE, 0); gtk_object_set_user_data (GTK_OBJECT (button), (gpointer) GRAY); @@ -914,7 +915,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0); gtk_widget_show (hbox); - label = gtk_label_new ("Preview size:"); + label = gtk_label_new (_("Preview size:")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -936,7 +937,7 @@ file_pref_cmd_callback (GtkWidget *widget, if (preview_size==preview_sizes[i].size) gtk_option_menu_set_history(GTK_OPTION_MENU (optionmenu),i); - button = gtk_check_button_new_with_label("Cubic interpolation"); + button = gtk_check_button_new_with_label(_("Cubic interpolation")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), cubic_interpolation); gtk_box_pack_start (GTK_BOX (vbox), button, TRUE, TRUE, 0); @@ -949,7 +950,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0); gtk_widget_show (hbox); - frame = gtk_frame_new ("Transparency Type"); + frame = gtk_frame_new (_("Transparency Type")); gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0); gtk_widget_show (frame); @@ -973,7 +974,7 @@ file_pref_cmd_callback (GtkWidget *widget, &transparency_type); gtk_widget_show (button); } - frame = gtk_frame_new ("Check Size"); + frame = gtk_frame_new (_("Check Size")); gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0); gtk_widget_show (frame); @@ -998,11 +999,11 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_widget_show (button); } - label = gtk_label_new ("Display"); + label = gtk_label_new (_("Display")); gtk_notebook_append_page (GTK_NOTEBOOK(notebook), out_frame, label); /* Interface */ - out_frame = gtk_frame_new ("Interface settings"); + out_frame = gtk_frame_new (_("Interface settings")); gtk_container_border_width (GTK_CONTAINER (out_frame), 10); gtk_widget_show (out_frame); @@ -1011,7 +1012,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_container_add (GTK_CONTAINER (out_frame), vbox); gtk_widget_show (vbox); - button = gtk_check_button_new_with_label("Resize window on zoom"); + button = gtk_check_button_new_with_label(_("Resize window on zoom")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), allow_resize_windows); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); @@ -1020,7 +1021,7 @@ file_pref_cmd_callback (GtkWidget *widget, &allow_resize_windows); gtk_widget_show (button); - button = gtk_check_button_new_with_label("Perfect-but-slow pointer tracking"); + button = gtk_check_button_new_with_label(_("Perfect-but-slow pointer tracking")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), perfectmouse); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); @@ -1032,7 +1033,7 @@ file_pref_cmd_callback (GtkWidget *widget, /* Don't show the Auto-save button until we really have auto-saving in the gimp. - button = gtk_check_button_new_with_label("Auto save"); + button = gtk_check_button_new_with_label(_("Auto save")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), auto_save); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); @@ -1042,7 +1043,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_widget_show (button); */ - button = gtk_check_button_new_with_label("Disable cursor updating"); + button = gtk_check_button_new_with_label(_("Disable cursor updating")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), no_cursor_updating); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); @@ -1051,7 +1052,7 @@ file_pref_cmd_callback (GtkWidget *widget, &no_cursor_updating); gtk_widget_show (button); - button = gtk_check_button_new_with_label("Show tool tips"); + button = gtk_check_button_new_with_label(_("Show tool tips")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), show_tool_tips); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); @@ -1060,7 +1061,7 @@ file_pref_cmd_callback (GtkWidget *widget, &show_tool_tips); gtk_widget_show (button); - button = gtk_check_button_new_with_label("Show rulers"); + button = gtk_check_button_new_with_label(_("Show rulers")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), show_rulers); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); @@ -1069,7 +1070,7 @@ file_pref_cmd_callback (GtkWidget *widget, &show_rulers); gtk_widget_show (button); - button = gtk_check_button_new_with_label("Show statusbar"); + button = gtk_check_button_new_with_label(_("Show statusbar")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), show_statusbar); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); @@ -1082,7 +1083,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_widget_show (hbox); - label = gtk_label_new ("Levels of undo:"); + label = gtk_label_new (_("Levels of undo:")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -1102,7 +1103,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_widget_show (hbox); - label = gtk_label_new ("Marching ants speed:"); + label = gtk_label_new (_("Marching ants speed:")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -1122,7 +1123,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_widget_show (hbox); - label = gtk_label_new ("Recent Documents list size:"); + label = gtk_label_new (_("Recent Documents list size:")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -1138,11 +1139,11 @@ file_pref_cmd_callback (GtkWidget *widget, &edit_last_opened_size); gtk_widget_show (spinbutton); - label = gtk_label_new ("Interface"); + label = gtk_label_new (_("Interface")); gtk_notebook_append_page (GTK_NOTEBOOK(notebook), out_frame, label); /* Environment */ - out_frame = gtk_frame_new ("Environment settings"); + out_frame = gtk_frame_new (_("Environment settings")); gtk_container_border_width (GTK_CONTAINER (out_frame), 10); gtk_widget_set_usize (out_frame, 320, 200); gtk_widget_show (out_frame); @@ -1152,7 +1153,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_container_add (GTK_CONTAINER (out_frame), vbox); gtk_widget_show (vbox); - button = gtk_check_button_new_with_label("Conservative memory usage"); + button = gtk_check_button_new_with_label(_("Conservative memory usage")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), stingy_memory_use); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); @@ -1165,7 +1166,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_widget_show (hbox); - label = gtk_label_new ("Tile cache size:"); + label = gtk_label_new (_("Tile cache size:")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -1201,7 +1202,7 @@ file_pref_cmd_callback (GtkWidget *widget, if (mem_size_unit == mem_size_units[i].unit) gtk_option_menu_set_history(GTK_OPTION_MENU (optionmenu),i); - button = gtk_check_button_new_with_label("Install colormap (8-bit only)"); + button = gtk_check_button_new_with_label(_("Install colormap (8-bit only)")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), install_cmap); gtk_signal_connect (GTK_OBJECT (button), "toggled", @@ -1212,7 +1213,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_widget_set_sensitive (GTK_WIDGET(button), FALSE); gtk_widget_show (button); - button = gtk_check_button_new_with_label("Colormap cycling (8-bit only)"); + button = gtk_check_button_new_with_label(_("Colormap cycling (8-bit only)")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), cycled_marching_ants); gtk_signal_connect (GTK_OBJECT (button), "toggled", @@ -1223,11 +1224,11 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_widget_set_sensitive (GTK_WIDGET(button), FALSE); gtk_widget_show (button); - label = gtk_label_new ("Environment"); + label = gtk_label_new (_("Environment")); gtk_notebook_append_page (GTK_NOTEBOOK(notebook), out_frame, label); /* Session Management */ - out_frame = gtk_frame_new ("Session managment"); + out_frame = gtk_frame_new (_("Session managment")); gtk_container_border_width (GTK_CONTAINER (out_frame), 10); gtk_widget_set_usize (out_frame, 320, 200); gtk_widget_show (out_frame); @@ -1237,7 +1238,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_container_add (GTK_CONTAINER (out_frame), vbox); gtk_widget_show (vbox); - button = gtk_check_button_new_with_label ("Save window positions on exit"); + button = gtk_check_button_new_with_label (_("Save window positions on exit")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), save_session_info); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); @@ -1251,14 +1252,14 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_widget_show (hbox); - button = gtk_button_new_with_label ("Clear saved window positions"); + button = gtk_button_new_with_label (_("Clear saved window positions")); gtk_box_pack_start (GTK_BOX (hbox), button, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (button), "clicked", (GtkSignalFunc) file_prefs_clear_session_info_callback, NULL); gtk_widget_show (button); - button = gtk_check_button_new_with_label ("Always try to restore session"); + button = gtk_check_button_new_with_label (_("Always try to restore session")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), always_restore_session); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); @@ -1267,7 +1268,7 @@ file_pref_cmd_callback (GtkWidget *widget, &always_restore_session); gtk_widget_show (button); - button = gtk_check_button_new_with_label ("Save device status on exit"); + button = gtk_check_button_new_with_label (_("Save device status on exit")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button), save_device_status); gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0); @@ -1276,13 +1277,13 @@ file_pref_cmd_callback (GtkWidget *widget, &save_device_status); gtk_widget_show (button); - label = gtk_label_new ("Session"); + label = gtk_label_new (_("Session")); gtk_notebook_append_page (GTK_NOTEBOOK(notebook), out_frame, label); gtk_widget_show (notebook); /* Directories */ - out_frame = gtk_frame_new ("Directories settings"); + out_frame = gtk_frame_new (_("Directories settings")); gtk_container_border_width (GTK_CONTAINER (out_frame), 10); gtk_widget_set_usize (out_frame, 320, 200); gtk_widget_show (out_frame); @@ -1317,7 +1318,7 @@ file_pref_cmd_callback (GtkWidget *widget, gtk_widget_show (entry); } - label = gtk_label_new ("Directories"); + label = gtk_label_new (_("Directories")); gtk_notebook_append_page (GTK_NOTEBOOK(notebook), out_frame, label); gtk_widget_show (notebook); diff --git a/app/procedural_db.c b/app/procedural_db.c index 349a893841..ce5bbfecad 100644 --- a/app/procedural_db.c +++ b/app/procedural_db.c @@ -30,6 +30,8 @@ #include "config.h" #include "regex.h" +#include "libgimp/gimpintl.h" + /* Query structure */ typedef struct _PDBQuery PDBQuery; @@ -107,10 +109,10 @@ static char *type_str[] = static char *proc_type_str[] = { - "Internal GIMP procedure", - "GIMP Plug-In", - "GIMP Extension", - "Temporary Procedure" + N_("Internal GIMP procedure"), + N_("GIMP Plug-In"), + N_("GIMP Extension"), + N_("Temporary Procedure") }; /************************/ @@ -120,15 +122,15 @@ static ProcArg procedural_db_dump_args[] = { { PDB_STRING, "filename", - "the dump filename" + N_("the dump filename") } }; ProcRecord procedural_db_dump_proc = { "gimp_procedural_db_dump", - "Dumps the current contents of the procedural database", - "This procedure dumps the contents of the procedural database to the specified file. The file will contain all of the information provided for each registered procedure. This file is in a format appropriate for use with the supplied \"pdb_self_doc.el\" Elisp script, which generates a texinfo document.", + N_("Dumps the current contents of the procedural database"), + N_("This procedure dumps the contents of the procedural database to the specified file. The file will contain all of the information provided for each registered procedure. This file is in a format appropriate for use with the supplied \"pdb_self_doc.el\" Elisp script, which generates a texinfo document."), "Spencer Kimball & Josh MacDonald", "Spencer Kimball & Josh MacDonald & Peter Mattis", "1995-1996", @@ -154,7 +156,7 @@ static ProcArg procedural_db_proc_info_args[] = { { PDB_STRING, "procedure", - "the procedure name" + N_("the procedure name") } }; @@ -162,43 +164,43 @@ static ProcArg procedural_db_proc_info_out_args[] = { { PDB_STRING, "blurb", - "a short blurb" + N_("a short blurb") }, { PDB_STRING, "help", - "detailed procedure help" + N_("detailed procedure help") }, { PDB_STRING, "author", - "author(s) of the procedure" + N_("author(s) of the procedure") }, { PDB_STRING, "copyright", - "the copyright" + N_("the copyright") }, { PDB_STRING, "date", - "copyright date" + N_("copyright date") }, { PDB_INT32, "proc_type", - "the procedure type: { INTERNAL (0), PLUGIN (1), EXTENSION (2) }", + N_("the procedure type: { INTERNAL (0), PLUGIN (1), EXTENSION (2) }"), }, { PDB_INT32, "num_args", - "the number of input arguments" + N_("the number of input arguments") }, { PDB_INT32, "num_rvals", - "the number of return values" + N_("the number of return values") } }; ProcRecord procedural_db_proc_info_proc = { "gimp_procedural_db_proc_info", - "Queries the procedural database for information on the specified procedure", - "This procedure returns information on the specified procedure. A short blurb, detailed help, author(s), copyright information, procedure type, number of input, and number of return values are returned. For specific information on each input argument and return value, use the 'gimp_procedural_db_query_proc_arg' and 'gimp_procedural_db_query_proc_val' procedures", + N_("Queries the procedural database for information on the specified procedure"), + N_("This procedure returns information on the specified procedure. A short blurb, detailed help, author(s), copyright information, procedure type, number of input, and number of return values are returned. For specific information on each input argument and return value, use the 'gimp_procedural_db_query_proc_arg' and 'gimp_procedural_db_query_proc_val' procedures"), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1997", @@ -224,11 +226,11 @@ static ProcArg procedural_db_proc_arg_args[] = { { PDB_STRING, "procedure", - "the procedure name" + N_("the procedure name") }, { PDB_INT32, "arg_num", - "the argument number" + N_("the argument number") } }; @@ -236,23 +238,23 @@ static ProcArg procedural_db_proc_arg_out_args[] = { { PDB_INT32, "arg_type", - "the type of argument { PDB_INT32 (0), PDB_INT16 (1), PDB_INT8 (2), PDB_FLOAT (3), PDB_STRING (4), PDB_INT32ARRAY (5), PDB_INT16ARRAY (6), PDB_INT8ARRAY (7), PDB_FLOATARRAY (8), PDB_STRINGARRAY (9), PDB_COLOR (10), PDB_REGION (11), PDB_DISPLAY (12), PDB_IMAGE (13), PDB_LAYER (14), PDB_CHANNEL (15), PDB_DRAWABLE (16), PDB_SELECTION (17), PDB_BOUNDARY (18), PDB_PATH (19), PDB_PARASITE (20), PDB_STATUS (21) }" + N_("the type of argument { PDB_INT32 (0), PDB_INT16 (1), PDB_INT8 (2), PDB_FLOAT (3), PDB_STRING (4), PDB_INT32ARRAY (5), PDB_INT16ARRAY (6), PDB_INT8ARRAY (7), PDB_FLOATARRAY (8), PDB_STRINGARRAY (9), PDB_COLOR (10), PDB_REGION (11), PDB_DISPLAY (12), PDB_IMAGE (13), PDB_LAYER (14), PDB_CHANNEL (15), PDB_DRAWABLE (16), PDB_SELECTION (17), PDB_BOUNDARY (18), PDB_PATH (19), PDB_PARASITE (20), PDB_STATUS (21) }") }, { PDB_STRING, "arg_name", - "the name of the argument" + N_("the name of the argument") }, { PDB_STRING, "arg_desc", - "a description of the argument" + N_("a description of the argument") } }; ProcRecord procedural_db_proc_arg_proc = { "gimp_procedural_db_proc_arg", - "Queries the procedural database for information on the specified procedure's argument", - "This procedure returns information on the specified procedure's argument. The argument type, name, and a description are retrieved.", + N_("Queries the procedural database for information on the specified procedure's argument"), + N_("This procedure returns information on the specified procedure's argument. The argument type, name, and a description are retrieved."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1997", @@ -278,11 +280,11 @@ static ProcArg procedural_db_proc_val_args[] = { { PDB_STRING, "procedure", - "the procedure name" + N_("the procedure name") }, { PDB_INT32, "val_num", - "the return value number" + N_("the return value number") } }; @@ -290,23 +292,23 @@ static ProcArg procedural_db_proc_val_out_args[] = { { PDB_INT32, "val_type", - "the type of return value { PDB_INT32 (0), PDB_INT16 (1), PDB_INT8 (2), PDB_FLOAT (3), PDB_STRING (4), PDB_INT32ARRAY (5), PDB_INT16ARRAY (6), PDB_INT8ARRAY (7), PDB_FLOATARRAY (8), PDB_STRINGARRAY (9), PDB_COLOR (10), PDB_REGION (11), PDB_DISPLAY (12), PDB_IMAGE (13), PDB_LAYER (14), PDB_CHANNEL (15), PDB_DRAWABLE (16), PDB_SELECTION (17), PDB_BOUNDARY (18), PDB_PATH (19), PDB_PARASITE (20), PDB_STATUS (21) }" + N_("the type of return value { PDB_INT32 (0), PDB_INT16 (1), PDB_INT8 (2), PDB_FLOAT (3), PDB_STRING (4), PDB_INT32ARRAY (5), PDB_INT16ARRAY (6), PDB_INT8ARRAY (7), PDB_FLOATARRAY (8), PDB_STRINGARRAY (9), PDB_COLOR (10), PDB_REGION (11), PDB_DISPLAY (12), PDB_IMAGE (13), PDB_LAYER (14), PDB_CHANNEL (15), PDB_DRAWABLE (16), PDB_SELECTION (17), PDB_BOUNDARY (18), PDB_PATH (19), PDB_PARASITE (20), PDB_STATUS (21) }") }, { PDB_STRING, "val_name", - "the name of the return value" + N_("the name of the return value") }, { PDB_STRING, "val_desc", - "a description of the return value" + N_("a description of the return value") } }; ProcRecord procedural_db_proc_val_proc = { "gimp_procedural_db_proc_val", - "Queries the procedural database for information on the specified procedure's return value", - "This procedure returns information on the specified procedure's return value. The return value type, name, and a description are retrieved.", + N_("Queries the procedural database for information on the specified procedure's return value"), + N_("This procedure returns information on the specified procedure's return value. The return value type, name, and a description are retrieved."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1997", @@ -332,7 +334,7 @@ static ProcArg procedural_db_get_data_size_args[] = { { PDB_STRING, "identifier", - "the identifier associated with data" + N_("the identifier associated with data") }, }; @@ -340,15 +342,15 @@ static ProcArg procedural_db_get_data_size_out_args[] = { { PDB_INT32, "bytes", - "the number of bytes in the data" + N_("the number of bytes in the data") } }; ProcRecord procedural_db_get_data_size_proc = { "gimp_procedural_db_get_data_size", - "Returns size of data associated with the specified identifier", - "This procedure returns the size of any data which may have been associated with the specified identifier. If no data has been associated with the identifier, an error is returned.", + N_("Returns size of data associated with the specified identifier"), + N_("This procedure returns the size of any data which may have been associated with the specified identifier. If no data has been associated with the identifier, an error is returned."), "Nick Lamb", "Nick Lamb", "1998", @@ -373,7 +375,7 @@ static ProcArg procedural_db_get_data_args[] = { { PDB_STRING, "identifier", - "the identifier associated with data" + N_("the identifier associated with data") }, }; @@ -381,19 +383,19 @@ static ProcArg procedural_db_get_data_out_args[] = { { PDB_INT32, "bytes", - "the number of bytes in the data" + N_("the number of bytes in the data") }, { PDB_INT8ARRAY, "data", - "a byte array containing data" + N_("a byte array containing data") } }; ProcRecord procedural_db_get_data_proc = { "gimp_procedural_db_get_data", - "Returns data associated with the specified identifier", - "This procedure returns any data which may have been associated with the specified identifier. The data is a variable length array of bytes. If no data has been associated with the identifier, an error is returned.", + N_("Returns data associated with the specified identifier"), + N_("This procedure returns any data which may have been associated with the specified identifier. The data is a variable length array of bytes. If no data has been associated with the identifier, an error is returned."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1997", @@ -419,23 +421,23 @@ static ProcArg procedural_db_set_data_args[] = { { PDB_STRING, "identifier", - "the identifier for association with data" + N_("the identifier for association with data") }, { PDB_INT32, "bytes", - "the number of bytes in data" + N_("the number of bytes in data") }, { PDB_INT8ARRAY, "data", - "the data" + N_("the data") } }; ProcRecord procedural_db_set_data_proc = { "gimp_procedural_db_set_data", - "Associates the specified identifier with the supplied data", - "This procedure associates the supplied data with the provided identifier. The data may be subsequently retrieved by a call to 'procedural_db_get_data'.", + N_("Associates the specified identifier with the supplied data"), + N_("This procedure associates the supplied data with the provided identifier. The data may be subsequently retrieved by a call to 'procedural_db_get_data'."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1997", @@ -461,31 +463,31 @@ static ProcArg procedural_db_query_args[] = { { PDB_STRING, "name", - "the regex for procedure name" + N_("the regex for procedure name") }, { PDB_STRING, "blurb", - "the regex for procedure blurb" + N_("the regex for procedure blurb") }, { PDB_STRING, "help", - "the regex for procedure help" + N_("the regex for procedure help") }, { PDB_STRING, "author", - "the regex for procedure author" + N_("the regex for procedure author") }, { PDB_STRING, "copyright", - "the regex for procedure copyright" + N_("the regex for procedure copyright") }, { PDB_STRING, "date", - "the regex for procedure date" + N_("the regex for procedure date") }, { PDB_STRING, "proc_type", - "the regex for procedure type: {'Internal GIMP procedure', 'GIMP Plug-In', 'GIMP Extension'}" + N_("the regex for procedure type: {'Internal GIMP procedure', 'GIMP Plug-In', 'GIMP Extension'}") } }; @@ -493,19 +495,19 @@ static ProcArg procedural_db_query_out_args[] = { { PDB_INT32, "num_matches", - "the number of matching procedures" + N_("the number of matching procedures") }, { PDB_STRINGARRAY, "procedure_names", - "the list of procedure names" + N_("the list of procedure names") } }; ProcRecord procedural_db_query_proc = { "gimp_procedural_db_query", - "Queries the procedural database for its contents using regular expression matching", - "This procedure queries the contents of the procedural database. It is supplied with seven arguments matching procedures on {name, blurb, help, author, copyright, date, procedure type}. This is accomplished using regular expression matching. For instance, to find all procedures with \"jpeg\" listed in the blurb, all seven arguments can be supplied as \".*\", except for the second, which can be supplied as \".*jpeg.*\". There are two return arguments for this procedure. The first is the number of procedures matching the query. The second is a concatenated list of procedure names corresponding to those matching the query. If no matching entries are found, then the returned string is NULL and the number of entries is 0.", + N_("Queries the procedural database for its contents using regular expression matching"), + N_("This procedure queries the contents of the procedural database. It is supplied with seven arguments matching procedures on {name, blurb, help, author, copyright, date, procedure type}. This is accomplished using regular expression matching. For instance, to find all procedures with \"jpeg\" listed in the blurb, all seven arguments can be supplied as \".*\", except for the second, which can be supplied as \".*jpeg.*\". There are two return arguments for this procedure. The first is the number of procedures matching the query. The second is a concatenated list of procedure names corresponding to those matching the query. If no matching entries are found, then the returned string is NULL and the number of entries is 0."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -527,7 +529,7 @@ ProcRecord procedural_db_query_proc = void procedural_db_init () { - app_init_update_status("Procedural Database", NULL, -1); + app_init_update_status(_("Procedural Database"), NULL, -1); if (!procedural_ht) procedural_ht = g_hash_table_new (procedural_db_hash_func, g_str_equal); @@ -626,7 +628,7 @@ procedural_db_execute (gchar *name, return_args->arg_type = PDB_STATUS; return_args->value.pdb_int = PDB_CALLING_ERROR; - g_message ("PDB calling error %s", procedure->name); + g_message (_("PDB calling error %s"), procedure->name); return return_args; } @@ -702,7 +704,7 @@ procedural_db_run_proc (gchar *name, { if (proc->args[i].arg_type != (params[i].arg_type = va_arg (args, PDBArgType))) { - g_message ("Incorrect arguments passed to procedural_db_run_proc"); + g_message (_("Incorrect arguments passed to procedural_db_run_proc")); g_free (params); return NULL; } diff --git a/app/rect_select.c b/app/rect_select.c index 3fe8721a15..9ede5f4259 100644 --- a/app/rect_select.c +++ b/app/rect_select.c @@ -24,6 +24,8 @@ #include "rect_select.h" #include "rect_selectP.h" +#include "libgimp/gimpintl.h" + #define NO 0 #define YES 1 @@ -108,25 +110,25 @@ create_selection_options (ToolType tool_type) switch (tool_type) { case RECT_SELECT: - label = gtk_label_new ("Rectangular Select Options"); + label = gtk_label_new (_("Rectangular Select Options")); break; case ELLIPSE_SELECT: - label = gtk_label_new ("Elliptical Selection Options"); + label = gtk_label_new (_("Elliptical Selection Options")); break; case FREE_SELECT: - label = gtk_label_new ("Free-hand Selection Options"); + label = gtk_label_new (_("Free-hand Selection Options")); break; case FUZZY_SELECT: - label = gtk_label_new ("Fuzzy Selection Options"); + label = gtk_label_new (_("Fuzzy Selection Options")); break; case BEZIER_SELECT: - label = gtk_label_new ("Bezier Selection Options"); + label = gtk_label_new (_("Bezier Selection Options")); break; case ISCISSORS: - label = gtk_label_new ("Intelligent Scissors Options"); + label = gtk_label_new (_("Intelligent Scissors Options")); break; case BY_COLOR_SELECT: - label = gtk_label_new ("By-Color Select Options"); + label = gtk_label_new (_("By-Color Select Options")); break; default: break; @@ -146,7 +148,7 @@ create_selection_options (ToolType tool_type) case FUZZY_SELECT: case ISCISSORS: case BY_COLOR_SELECT: - sample_merged_toggle = gtk_check_button_new_with_label ("Sample Merged"); + sample_merged_toggle = gtk_check_button_new_with_label (_("Sample Merged")); gtk_box_pack_start (GTK_BOX (vbox), sample_merged_toggle, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (sample_merged_toggle), "toggled", (GtkSignalFunc) selection_toggle_update, @@ -160,7 +162,7 @@ create_selection_options (ToolType tool_type) if (tool_type == BEZIER_SELECT) { - bezier_toggle = gtk_check_button_new_with_label ("Bezier Extends"); + bezier_toggle = gtk_check_button_new_with_label (_("Bezier Extends")); gtk_box_pack_start (GTK_BOX (vbox), bezier_toggle, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (bezier_toggle), "toggled", (GtkSignalFunc) selection_toggle_update, @@ -173,7 +175,7 @@ create_selection_options (ToolType tool_type) /* the antialias toggle button */ if (tool_type != RECT_SELECT) { - antialias_toggle = gtk_check_button_new_with_label ("Antialiasing"); + antialias_toggle = gtk_check_button_new_with_label (_("Antialiasing")); gtk_box_pack_start (GTK_BOX (vbox), antialias_toggle, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (antialias_toggle), "toggled", (GtkSignalFunc) selection_toggle_update, @@ -185,7 +187,7 @@ create_selection_options (ToolType tool_type) /* Widgets for fixed size select */ if (tool_type == RECT_SELECT || tool_type == ELLIPSE_SELECT) { - fixed_size_toggle = gtk_check_button_new_with_label ("Fixed size / aspect ratio"); + fixed_size_toggle = gtk_check_button_new_with_label (_("Fixed size / aspect ratio")); gtk_box_pack_start (GTK_BOX(vbox), fixed_size_toggle, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT(fixed_size_toggle), "toggled", (GtkSignalFunc)selection_toggle_update, @@ -196,7 +198,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); @@ -214,7 +216,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); @@ -232,7 +234,7 @@ create_selection_options (ToolType tool_type) } /* the feather toggle button */ - feather_toggle = gtk_check_button_new_with_label ("Feather"); + feather_toggle = gtk_check_button_new_with_label (_("Feather")); gtk_box_pack_start (GTK_BOX (vbox), feather_toggle, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (feather_toggle), "toggled", (GtkSignalFunc) selection_toggle_update, @@ -244,7 +246,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); @@ -385,16 +387,16 @@ rect_select_button_press (Tool *tool, switch (rect_sel->op) { case ADD: - g_snprintf (select_mode, STATUSBAR_SIZE, "Selection: ADD"); + g_snprintf (select_mode, STATUSBAR_SIZE, _("Selection: ADD")); break; case SUB: - g_snprintf (select_mode, STATUSBAR_SIZE, "Selection: SUBTRACT"); + g_snprintf (select_mode, STATUSBAR_SIZE, _("Selection: SUBTRACT")); break; case INTERSECT: - g_snprintf (select_mode, STATUSBAR_SIZE, "Selection: INTERSECT"); + g_snprintf (select_mode, STATUSBAR_SIZE, _("Selection: INTERSECT")); break; case REPLACE: - g_snprintf (select_mode, STATUSBAR_SIZE, "Selection: REPLACE"); + g_snprintf (select_mode, STATUSBAR_SIZE, _("Selection: REPLACE")); break; default: break; @@ -592,7 +594,7 @@ rect_select_motion (Tool *tool, } gtk_statusbar_pop (GTK_STATUSBAR (gdisp->statusbar), rect_sel->context_id); - g_snprintf (size, STATUSBAR_SIZE, "Selection: %d x %d", abs(rect_sel->w), abs(rect_sel->h)); + g_snprintf (size, STATUSBAR_SIZE, _("Selection: %d x %d"), abs(rect_sel->w), abs(rect_sel->h)); gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), rect_sel->context_id, size); draw_core_resume (rect_sel->core, tool); @@ -722,43 +724,43 @@ ProcArg rect_select_args[] = { { PDB_IMAGE, "image", - "The image" + N_("the image") }, { PDB_FLOAT, "x", - "x coordinate of upper-left corner of rectangle" + N_("x coordinate of upper-left corner of rectangle") }, { PDB_FLOAT, "y", - "y coordinate of upper-left corner of rectangle" + N_("y coordinate of upper-left corner of rectangle") }, { PDB_FLOAT, "width", - "the width of the rectangle: width > 0" + N_("the width of the rectangle: width > 0") }, { PDB_FLOAT, "height", - "the height of the rectangle: height > 0" + N_("the height of the rectangle: height > 0") }, { PDB_INT32, "operation", - "the selection operation: { ADD (0), SUB (1), REPLACE (2), INTERSECT (3) }" + N_("the selection operation: { ADD (0), SUB (1), REPLACE (2), INTERSECT (3) }") }, { PDB_INT32, "feather", - "feather option for selections" + N_("feather option for selections") }, { PDB_FLOAT, "feather_radius", - "radius for feather operation" + N_("radius for feather operation") } }; ProcRecord rect_select_proc = { "gimp_rect_select", - "Create a rectangular selection over the specified image", - "This tool creates a rectangular selection over the specified image. The rectangular region can be either added to, subtracted from, or replace the contents of the previous selection mask. If the feather option is enabled, the resulting selection is blurred before combining. The blur is a gaussian blur with the specified feather radius.", + N_("Create a rectangular selection over the specified image"), + N_("This tool creates a rectangular selection over the specified image. The rectangular region can be either added to, subtracted from, or replace the contents of the previous selection mask. If the feather option is enabled, the resulting selection is blurred before combining. The blur is a gaussian blur with the specified feather radius."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/resize.c b/app/resize.c index 2efb92e187..02bb56beba 100644 --- a/app/resize.c +++ b/app/resize.c @@ -21,6 +21,8 @@ #include "appenv.h" #include "resize.h" +#include "libgimp/gimpintl.h" + #define EVENT_MASK GDK_EXPOSURE_MASK | GDK_BUTTON_PRESS_MASK #define DRAWING_AREA_SIZE 200 #define TEXT_WIDTH 35 @@ -101,11 +103,11 @@ resize_widget_new (ResizeType type, switch (type) { case ScaleWidget: - resize->resize_widget = gtk_frame_new ("Scale"); + resize->resize_widget = gtk_frame_new (_("Scale")); table = gtk_table_new (4, 2, TRUE); break; case ResizeWidget: - resize->resize_widget = gtk_frame_new ("Resize"); + resize->resize_widget = gtk_frame_new (_("Resize")); table = gtk_table_new (6, 2, TRUE); break; } @@ -121,7 +123,7 @@ resize_widget_new (ResizeType type, /* the width label and entry */ sprintf (size, "%d", width); - label = gtk_label_new ("New width:"); + label = gtk_label_new (_("New width:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1, GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2); @@ -138,7 +140,7 @@ resize_widget_new (ResizeType type, /* the height label and entry */ sprintf (size, "%d", height); - label = gtk_label_new ("New height:"); + label = gtk_label_new (_("New height:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2, GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2); @@ -155,7 +157,7 @@ resize_widget_new (ResizeType type, /* the x scale ratio label and entry */ sprintf (ratio_text, "%0.4f", resize->ratio_x); - label = gtk_label_new ("X ratio:"); + label = gtk_label_new (_("X ratio:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 2, 3, GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2); @@ -172,7 +174,7 @@ resize_widget_new (ResizeType type, /* the y scale ratio label and entry */ sprintf (ratio_text, "%0.4f", resize->ratio_y); - label = gtk_label_new ("Y ratio:"); + label = gtk_label_new (_("Y ratio:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 3, 4, GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2); @@ -191,7 +193,7 @@ resize_widget_new (ResizeType type, { /* the off_x label and entry */ sprintf (size, "%d", 0); - label = gtk_label_new ("X Offset:"); + label = gtk_label_new (_("Offset X:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 4, 5, GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2); @@ -208,7 +210,7 @@ resize_widget_new (ResizeType type, /* the off_y label and entry */ sprintf (size, "%d", 0); - label = gtk_label_new ("Y Offset:"); + label = gtk_label_new (_("Offset Y:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 5, 6, GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2); @@ -225,7 +227,7 @@ resize_widget_new (ResizeType type, } /* the constrain toggle button */ - constrain = gtk_check_button_new_with_label ("Constrain Ratio"); + constrain = gtk_check_button_new_with_label (_("Constrain Ratio")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (constrain), private->constrain); gtk_box_pack_start (GTK_BOX (vbox), constrain, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (constrain), "toggled", diff --git a/app/rotate_tool.c b/app/rotate_tool.c index e805ef0ab5..3521858aac 100644 --- a/app/rotate_tool.c +++ b/app/rotate_tool.c @@ -33,6 +33,8 @@ #include "tile_manager_pvt.h" +#include "libgimp/gimpintl.h" + #ifndef M_PI #define M_PI 3.14159265358979323846 #endif /* M_PI */ @@ -81,10 +83,10 @@ rotate_tool_transform (tool, gdisp_ptr, state) case INIT : if (!transform_info) { - transform_info = info_dialog_new ("Rotation Information"); - info_dialog_add_field (transform_info, "Angle: ", angle_buf, (GtkSignalFunc) rotate_angle_changed, tool); - info_dialog_add_field (transform_info, "Center X: ", center_x_buf, (GtkSignalFunc) rotate_center_x_changed, tool); - info_dialog_add_field (transform_info, "Center Y: ", center_y_buf, (GtkSignalFunc) rotate_center_y_changed, tool); + transform_info = info_dialog_new (_("Rotation Information")); + info_dialog_add_field (transform_info, _("Angle: "), angle_buf, (GtkSignalFunc) rotate_angle_changed, tool); + info_dialog_add_field (transform_info, _("Center X: "), center_x_buf, (GtkSignalFunc) rotate_center_x_changed, tool); + info_dialog_add_field (transform_info, _("Center Y: "), center_y_buf, (GtkSignalFunc) rotate_center_y_changed, tool); } transform_core->trans_info[ANGLE] = 0.0; @@ -376,19 +378,19 @@ ProcArg rotate_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the affected drawable" + N_("the affected drawable") }, { PDB_INT32, "interpolation", - "whether to use interpolation" + N_("whether to use interpolation") }, { PDB_FLOAT, "angle", - "the angle of rotation (radians)", + N_("the angle of rotation (radians)"), } }; @@ -396,15 +398,15 @@ ProcArg rotate_out_args[] = { { PDB_DRAWABLE, "drawable", - "the rotated drawable" + N_("the rotated drawable") } }; ProcRecord rotate_proc = { "gimp_rotate", - "Rotate the specified drawable about its center through the specified angle", - "This tool rotates the specified drawable if no selection exists. If a selection exists, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then rotated by the specified amount. The interpolation parameter can be set to TRUE to indicate that either linear or cubic interpolation should be used to smooth the resulting rotated drawable. The return value is the ID of the rotated drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and rotated drawable.", + N_("Rotate the specified drawable about its center through the specified angle"), + N_("This tool rotates the specified drawable if no selection exists. If a selection exists, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then rotated by the specified amount. The interpolation parameter can be set to TRUE to indicate that either linear or cubic interpolation should be used to smooth the resulting rotated drawable. The return value is the ID of the rotated drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and rotated drawable."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/scale_tool.c b/app/scale_tool.c index 7d83bb64bd..ca41474c27 100644 --- a/app/scale_tool.c +++ b/app/scale_tool.c @@ -31,6 +31,8 @@ #include "tile_manager_pvt.h" +#include "libgimp/gimpintl.h" + #define X1 0 #define Y1 1 #define X2 2 @@ -72,13 +74,13 @@ scale_tool_transform (tool, gdisp_ptr, state) case INIT : if (!transform_info) { - transform_info = info_dialog_new ("Scaling Information"); - info_dialog_add_field (transform_info, "Original Width: ", orig_width_buf, NULL, NULL); - info_dialog_add_field (transform_info, "Original Height: ", orig_height_buf, NULL, NULL); - info_dialog_add_field (transform_info, "Current Width: ", width_buf, scale_width_changed, tool); - info_dialog_add_field (transform_info, "Current Height: ", height_buf, scale_height_changed, tool); - info_dialog_add_field (transform_info, "X Scale Ratio: ", x_ratio_buf, NULL, NULL); - info_dialog_add_field (transform_info, "Y Scale Ratio: ", y_ratio_buf, NULL, NULL); + transform_info = info_dialog_new (_("Scaling Information")); + info_dialog_add_field (transform_info, _("Original Width: "), orig_width_buf, NULL, NULL); + info_dialog_add_field (transform_info, _("Original Height: "), orig_height_buf, NULL, NULL); + info_dialog_add_field (transform_info, _("Current Width: "), width_buf, scale_width_changed, tool); + info_dialog_add_field (transform_info, _("Current Height: "), height_buf, scale_height_changed, tool); + info_dialog_add_field (transform_info, _("X Scale Ratio: "), x_ratio_buf, NULL, NULL); + info_dialog_add_field (transform_info, _("Y Scale Ratio: "), y_ratio_buf, NULL, NULL); } transform_core->trans_info [X1] = (double) transform_core->x1; @@ -467,31 +469,31 @@ ProcArg scale_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the affected drawable" + N_("the affected drawable") }, { PDB_INT32, "interpolation", - "whether to use interpolation" + N_("whether to use interpolation") }, { PDB_FLOAT, "x1", - "the x coordinate of the upper-left corner of newly scaled region" + N_("the x coordinate of the upper-left corner of newly scaled region") }, { PDB_FLOAT, "y1", - "the y coordinate of the upper-left corner of newly scaled region" + N_("the y coordinate of the upper-left corner of newly scaled region") }, { PDB_FLOAT, "x2", - "the x coordinate of the lower-right corner of newly scaled region" + N_("the x coordinate of the lower-right corner of newly scaled region") }, { PDB_FLOAT, "y2", - "the y coordinate of the lower-right corner of newly scaled region" + N_("the y coordinate of the lower-right corner of newly scaled region") } }; @@ -499,15 +501,15 @@ ProcArg scale_out_args[] = { { PDB_DRAWABLE, "drawable", - "the scaled drawable" + N_("the scaled drawable") } }; ProcRecord scale_proc = { "gimp_scale", - "Scale the specified drawable", - "This tool scales the specified drawable if no selection exists. If a selection exists, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then scaled by the specified amount. The interpolation parameter can be set to TRUE to indicate that either linear or cubic interpolation should be used to smooth the resulting scaled drawable. The return value is the ID of the scaled drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and scaled drawable.", + N_("Scale the specified drawable"), + N_("This tool scales the specified drawable if no selection exists. If a selection exists, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then scaled by the specified amount. The interpolation parameter can be set to TRUE to indicate that either linear or cubic interpolation should be used to smooth the resulting scaled drawable. The return value is the ID of the scaled drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and scaled drawable."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/session.c b/app/session.c index 211833bdb5..5c9f416386 100644 --- a/app/session.c +++ b/app/session.c @@ -54,6 +54,8 @@ #include "gimprc.h" #include "session.h" +#include "libgimp/gimpintl.h" + static void sessionrc_write_info (SessionInfo *, FILE *); static void session_open_dialog (SessionInfo *); static void session_reset_open_state (SessionInfo *); @@ -141,13 +143,13 @@ save_sessionrc (void) if (!fp) return; - fprintf(fp, "# GIMP sessionrc\n"); - fprintf(fp, "# This file takes session-specific info (that is info,\n"); - fprintf(fp, "# you want to keep between two gimp-sessions). You are\n"); - fprintf(fp, "# not supposed to edit it manually, but of course you\n"); - fprintf(fp, "# can do. This file will be entirely rewritten every time\n"); - fprintf(fp, "# you quit the gimp. If this file isn't found, defaults\n"); - fprintf(fp, "# are used.\n\n"); + fprintf(fp, _("# GIMP sessionrc\n")); + fprintf(fp, _("# This file takes session-specific info (that is info,\n")); + fprintf(fp, _("# you want to keep between two gimp-sessions). You are\n")); + fprintf(fp, _("# not supposed to edit it manually, but of course you\n")); + fprintf(fp, _("# can do. This file will be entirely rewritten every time\n")); + fprintf(fp, _("# you quit the gimp. If this file isn't found, defaults\n")); + fprintf(fp, _("# are used.\n\n")); /* save window geometries */ g_list_foreach (session_info_updates, (GFunc)sessionrc_write_info, fp); diff --git a/app/shear_tool.c b/app/shear_tool.c index dbab53702f..cd86593906 100644 --- a/app/shear_tool.c +++ b/app/shear_tool.c @@ -33,6 +33,8 @@ #include "tile_manager_pvt.h" +#include "libgimp/gimpintl.h" + /* index into trans_info array */ #define HORZ_OR_VERT 0 #define XSHEAR 1 @@ -78,9 +80,9 @@ shear_tool_transform (tool, gdisp_ptr, state) case INIT : if (!transform_info) { - transform_info = info_dialog_new ("Shear Information"); - info_dialog_add_field (transform_info, "X Shear Magnitude: ", xshear_buf, shear_x_mag_changed, tool); - info_dialog_add_field (transform_info, "Y Shear Magnitude: ", yshear_buf, shear_y_mag_changed, tool); + transform_info = info_dialog_new (_("Shear Information")); + info_dialog_add_field (transform_info, _("X Shear Magnitude: "), xshear_buf, shear_x_mag_changed, tool); + info_dialog_add_field (transform_info, _("Y Shear Magnitude: "), yshear_buf, shear_y_mag_changed, tool); } direction_unknown = 1; transform_core->trans_info[HORZ_OR_VERT] = HORZ; @@ -363,23 +365,23 @@ ProcArg shear_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the affected drawable" + N_("the affected drawable") }, { PDB_INT32, "interpolation", - "whether to use interpolation" + N_("whether to use interpolation") }, { PDB_INT32, "shear_type", - "Type of shear: { HORIZONTAL (0), VERTICAL (1) }" + N_("Type of shear: { HORIZONTAL (0), VERTICAL (1) }") }, { PDB_FLOAT, "magnitude", - "the magnitude of the shear" + N_("the magnitude of the shear") } }; @@ -387,15 +389,15 @@ ProcArg shear_out_args[] = { { PDB_DRAWABLE, "drawable", - "the sheard drawable" + N_("the sheard drawable") } }; ProcRecord shear_proc = { "gimp_shear", - "Shear the specified drawable about its center by the specified magnitude", - "This tool shears the specified drawable if no selection exists. If a selection exists, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then sheard by the specified amount. The interpolation parameter can be set to TRUE to indicate that either linear or cubic interpolation should be used to smooth the resulting sheard drawable. The return value is the ID of the sheard drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and sheard drawable. The shear type parameter indicates whether the shear will be applied horizontally or vertically. The magnitude can be either positive or negative and indicates the extent (in pixels) to shear by.", + N_("Shear the specified drawable about its center by the specified magnitude"), + N_("This tool shears the specified drawable if no selection exists. If a selection exists, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then sheard by the specified amount. The interpolation parameter can be set to TRUE to indicate that either linear or cubic interpolation should be used to smooth the resulting sheard drawable. The return value is the ID of the sheard drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and sheard drawable. The shear type parameter indicates whether the shear will be applied horizontally or vertically. The magnitude can be either positive or negative and indicates the extent (in pixels) to shear by."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/text_tool.c b/app/text_tool.c index 67c221920b..3895f9573a 100644 --- a/app/text_tool.c +++ b/app/text_tool.c @@ -43,6 +43,8 @@ #include "tile_manager_pvt.h" #include "drawable_pvt.h" +#include "libgimp/gimpintl.h" + #define PIXELS 0 #define POINTS 1 @@ -162,12 +164,12 @@ init_text_options(TextToolOptions *options) vbox = gtk_vbox_new (FALSE, 2); /* the main label */ - label = gtk_label_new ("Text Options"); + label = gtk_label_new (_("Text Options")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); /* antialias toggle */ - antialias_toggle = gtk_check_button_new_with_label("Antialiasing"); + antialias_toggle = gtk_check_button_new_with_label(_("Antialiasing")); gtk_box_pack_start(GTK_BOX(vbox), antialias_toggle, FALSE, FALSE, 0); gtk_signal_connect(GTK_OBJECT(antialias_toggle), "toggled", @@ -179,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); @@ -305,9 +307,9 @@ static void text_create_dialog (TextTool *text_tool) { /* Create the shell and vertical & horizontal boxes */ - text_tool->shell = gtk_font_selection_dialog_new ("Text Tool"); + text_tool->shell = gtk_font_selection_dialog_new (_("Text Tool")); gtk_window_set_wmclass (GTK_WINDOW (text_tool->shell), "text_tool", "Gimp"); - gtk_window_set_title (GTK_WINDOW (text_tool->shell), "Text Tool"); + gtk_window_set_title (GTK_WINDOW (text_tool->shell), _("Text Tool")); gtk_window_set_policy (GTK_WINDOW (text_tool->shell), FALSE, TRUE, TRUE); gtk_window_position (GTK_WINDOW (text_tool->shell), GTK_WIN_POS_MOUSE); gtk_widget_set (GTK_WIDGET (text_tool->shell), @@ -532,10 +534,10 @@ text_render (GImage *gimage, gdk_error_warnings = 1; if (!font || (gdk_error_code == -1)) { - g_message("Font '%s' not found.%s", + g_message(_("Font '%s' not found.%s"), fontname, - antialias? "\nIf you don't have scalable fonts, " - "try turning off antialiasing in the tool options." : ""); + antialias? _("\nIf you don't have scalable fonts, " + "try turning off antialiasing in the tool options.") : ""); return NULL; } @@ -618,10 +620,10 @@ text_render (GImage *gimage, image = gdk_image_get (pixmap, 0, 0, pixmap_width, pixmap_height); if (!image) - fatal_error ("sanity check failed: could not get gdk image"); + fatal_error (_("sanity check failed: could not get gdk image")); if (image->depth != 1) - fatal_error ("sanity check failed: image should have 1 bit per pixel"); + fatal_error (_("sanity check failed: image should have 1 bit per pixel")); /* convert the GdkImage bitmap to a region */ text_gdk_image_to_region (image, antialias, &maskPR); @@ -638,7 +640,7 @@ text_render (GImage *gimage, if (newmask && (layer = layer_new (gimage, newmask->width, newmask->height, layer_type, - "Text Layer", OPAQUE_OPACITY, NORMAL_MODE))) + _("Text Layer"), OPAQUE_OPACITY, NORMAL_MODE))) { /* color the layer buffer */ gimage_get_foreground (gimage, drawable, color); @@ -681,7 +683,7 @@ text_render (GImage *gimage, { if (newmask) { - g_message ("text_render: could not allocate image"); + g_message (_("text_render: could not allocate image")); tile_manager_destroy (newmask); } layer = NULL; @@ -914,63 +916,63 @@ ProcArg text_tool_args[] = { { PDB_IMAGE, "image", - "The image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "The affected drawable: (-1 for a new text layer)" + N_("the affected drawable: (-1 for a new text layer)") }, { PDB_FLOAT, "x", - "the x coordinate for the left side of text bounding box" + N_("the x coordinate for the left side of text bounding box") }, { PDB_FLOAT, "y", - "the y coordinate for the top of text bounding box" + N_("the y coordinate for the top of text bounding box") }, { PDB_STRING, "text", - "the text to generate" + N_("the text to generate") }, { PDB_INT32, "border", - "the size of the border: border >= 0" + N_("the size of the border: border >= 0") }, { PDB_INT32, "antialias", - "generate antialiased text" + N_("generate antialiased text") }, { PDB_FLOAT, "size", - "the size of text in either pixels or points" + N_("the size of text in either pixels or points") }, { PDB_INT32, "size_type", - "the units of the specified size: { PIXELS (0), POINTS (1) }" + N_("the units of the specified size: { PIXELS (0), POINTS (1) }") }, { PDB_STRING, "foundry", - "the font foundry, \"*\" for any" + N_("the font foundry, \"*\" for any") }, { PDB_STRING, "family", - "the font family, \"*\" for any" + N_("the font family, \"*\" for any") }, { PDB_STRING, "weight", - "the font weight, \"*\" for any" + N_("the font weight, \"*\" for any") }, { PDB_STRING, "slant", - "the font slant, \"*\" for any" + N_("the font slant, \"*\" for any") }, { PDB_STRING, "set_width", - "the font set-width parameter, \"*\" for any" + N_("the font set-width parameter, \"*\" for any") }, { PDB_STRING, "spacing", - "the font spacing, \"*\" for any" + N_("the font spacing, \"*\" for any") } }; @@ -978,18 +980,18 @@ ProcArg text_tool_out_args[] = { { PDB_LAYER, "text_layer", - "the new text layer" + N_("the new text layer") } }; ProcRecord text_tool_proc = { "gimp_text", - "Add text at the specified location as a floating selection or a new layer.", - "This tool requires font information in the form of seven parameters: {size, foundry, family, weight, slant, set_width, spacing}. The font size can either be specified in units of pixels or points, and the appropriate metric is specified using the size_type " - "argument. The x and y parameters together control the placement of the new text by specifying the upper left corner of the text bounding box. If the antialias parameter is non-zero, the generated text will blend more smoothly with underlying layers. " - "This option requires more time and memory to compute than non-antialiased text; the resulting floating selection or layer, however, will require the same amount of memory with or without antialiasing. If the specified drawable parameter is valid, the " - "text will be created as a floating selection attached to the drawable. If the drawable parameter is not valid (-1), the text will appear as a new layer. Finally, a border can be specified around the final rendered text. The border is measured in pixels.", + N_("Add text at the specified location as a floating selection or a new layer."), + N_("This tool requires font information in the form of seven parameters: {size, foundry, family, weight, slant, set_width, spacing}. The font size can either be specified in units of pixels or points, and the appropriate metric is specified using the size_type " + "argument. The x and y parameters together control the placement of the new text by specifying the upper left corner of the text bounding box. If the antialias parameter is non-zero, the generated text will blend more smoothly with underlying layers. " + "This option requires more time and memory to compute than non-antialiased text; the resulting floating selection or layer, however, will require the same amount of memory with or without antialiasing. If the specified drawable parameter is valid, the " + "text will be created as a floating selection attached to the drawable. If the drawable parameter is not valid (-1), the text will appear as a new layer. Finally, a border can be specified around the final rendered text. The border is measured in pixels."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -1013,71 +1015,71 @@ ProcArg text_tool_args_ext[] = { { PDB_IMAGE, "image", - "The image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "The affected drawable: (-1 for a new text layer)" + N_("the affected drawable: (-1 for a new text layer)") }, { PDB_FLOAT, "x", - "the x coordinate for the left side of text bounding box" + N_("the x coordinate for the left side of text bounding box") }, { PDB_FLOAT, "y", - "the y coordinate for the top of text bounding box" + N_("the y coordinate for the top of text bounding box") }, { PDB_STRING, "text", - "the text to generate" + N_("the text to generate") }, { PDB_INT32, "border", - "the size of the border: border >= 0" + N_("the size of the border: border >= 0") }, { PDB_INT32, "antialias", - "generate antialiased text" + N_("generate antialiased text") }, { PDB_FLOAT, "size", - "the size of text in either pixels or points" + N_("the size of text in either pixels or points") }, { PDB_INT32, "size_type", - "the units of the specified size: { PIXELS (0), POINTS (1) }" + N_("the units of the specified size: { PIXELS (0), POINTS (1) }") }, { PDB_STRING, "foundry", - "the font foundry, \"*\" for any" + N_("the font foundry, \"*\" for any") }, { PDB_STRING, "family", - "the font family, \"*\" for any" + N_("the font family, \"*\" for any") }, { PDB_STRING, "weight", - "the font weight, \"*\" for any" + N_("the font weight, \"*\" for any") }, { PDB_STRING, "slant", - "the font slant, \"*\" for any" + N_("the font slant, \"*\" for any") }, { PDB_STRING, "set_width", - "the font set-width parameter, \"*\" for any" + N_("the font set-width parameter, \"*\" for any") }, { PDB_STRING, "spacing", - "the font spacing, \"*\" for any" + N_("the font spacing, \"*\" for any") }, { PDB_STRING, "registry", - "the font registry, \"*\" for any" + N_("the font registry, \"*\" for any") }, { PDB_STRING, "encoding", - "the font encoding, \"*\" for any" + N_("the font encoding, \"*\" for any") } }; @@ -1085,18 +1087,18 @@ ProcArg text_tool_out_args_ext[] = { { PDB_LAYER, "text_layer", - "the new text layer" + N_("the new text layer") } }; ProcRecord text_tool_proc_ext = { "gimp_text_ext", - "Add text at the specified location as a floating selection or a new layer.", - "This tool requires font information in the form of nine parameters: {size, foundry, family, weight, slant, set_width, spacing, registry, encoding}. The font size can either be specified in units of pixels or points, and the appropriate metric is specified using the size_type " - "argument. The x and y parameters together control the placement of the new text by specifying the upper left corner of the text bounding box. If the antialias parameter is non-zero, the generated text will blend more smoothly with underlying layers. " - "This option requires more time and memory to compute than non-antialiased text; the resulting floating selection or layer, however, will require the same amount of memory with or without antialiasing. If the specified drawable parameter is valid, the " - "text will be created as a floating selection attached to the drawable. If the drawable parameter is not valid (-1), the text will appear as a new layer. Finally, a border can be specified around the final rendered text. The border is measured in pixels.", + N_("Add text at the specified location as a floating selection or a new layer."), + N_("This tool requires font information in the form of nine parameters: {size, foundry, family, weight, slant, set_width, spacing, registry, encoding}. The font size can either be specified in units of pixels or points, and the appropriate metric is specified using the size_type " + "argument. The x and y parameters together control the placement of the new text by specifying the upper left corner of the text bounding box. If the antialias parameter is non-zero, the generated text will blend more smoothly with underlying layers. " + "This option requires more time and memory to compute than non-antialiased text; the resulting floating selection or layer, however, will require the same amount of memory with or without antialiasing. If the specified drawable parameter is valid, the " + "text will be created as a floating selection attached to the drawable. If the drawable parameter is not valid (-1), the text will appear as a new layer. Finally, a border can be specified around the final rendered text. The border is measured in pixels."), "Martin Edlman", "Spencer Kimball & Peter Mattis", "1998", @@ -1120,43 +1122,43 @@ ProcArg text_tool_args_fontname[] = { { PDB_IMAGE, "image", - "The image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "The affected drawable: (-1 for a new text layer)" + N_("the affected drawable: (-1 for a new text layer)") }, { PDB_FLOAT, "x", - "the x coordinate for the left side of text bounding box" + N_("the x coordinate for the left side of text bounding box") }, { PDB_FLOAT, "y", - "the y coordinate for the top of text bounding box" + N_("the y coordinate for the top of text bounding box") }, { PDB_STRING, "text", - "the text to generate" + N_("the text to generate") }, { PDB_INT32, "border", - "the size of the border: border >= 0" + N_("the size of the border: border >= 0") }, { PDB_INT32, "antialias", - "generate antialiased text" + N_("generate antialiased text") }, { PDB_FLOAT, "size", - "the size of text in either pixels or points" + N_("the size of text in either pixels or points") }, { PDB_INT32, "size_type", - "the units of the specified size: { PIXELS (0), POINTS (1) }" + N_("the units of the specified size: { PIXELS (0), POINTS (1) }") }, { PDB_STRING, "fontname", - "the fontname (conforming to the X Logical Font Description Conventions)" + N_("the fontname (conforming to the X Logical Font Description Conventions)") } }; @@ -1164,18 +1166,18 @@ ProcArg text_tool_out_args_fontname[] = { { PDB_LAYER, "text_layer", - "the new text layer" + N_("the new text layer") } }; ProcRecord text_tool_proc_fontname = { "gimp_text_fontname", - "Add text at the specified location as a floating selection or a new layer.", - "This tool requires font information as a fontname conforming to the 'X Logical Font Description Conventions'. You can specify the fontsize in units of pixels or points, and the appropriate metric is specified using the size_type argument. The fontsize specified in the fontname is silently ignored." - "The x and y parameters together control the placement of the new text by specifying the upper left corner of the text bounding box. If the antialias parameter is non-zero, the generated text will blend more smoothly with underlying layers. " - "This option requires more time and memory to compute than non-antialiased text; the resulting floating selection or layer, however, will require the same amount of memory with or without antialiasing. If the specified drawable parameter is valid, the " - "text will be created as a floating selection attached to the drawable. If the drawable parameter is not valid (-1), the text will appear as a new layer. Finally, a border can be specified around the final rendered text. The border is measured in pixels.", + N_("Add text at the specified location as a floating selection or a new layer."), + N_("This tool requires font information as a fontname conforming to the 'X Logical Font Description Conventions'. You can specify the fontsize in units of pixels or points, and the appropriate metric is specified using the size_type argument. The fontsize specified in the fontname is silently ignored." + "The x and y parameters together control the placement of the new text by specifying the upper left corner of the text bounding box. If the antialias parameter is non-zero, the generated text will blend more smoothly with underlying layers. " + "This option requires more time and memory to compute than non-antialiased text; the resulting floating selection or layer, however, will require the same amount of memory with or without antialiasing. If the specified drawable parameter is valid, the " + "text will be created as a floating selection attached to the drawable. If the drawable parameter is not valid (-1), the text will appear as a new layer. Finally, a border can be specified around the final rendered text. The border is measured in pixels."), "Martin Edlman, Sven Neumann", "Spencer Kimball & Peter Mattis", "1998", @@ -1200,39 +1202,39 @@ ProcArg text_tool_get_extents_args[] = { { PDB_STRING, "text", - "the text to generate" + N_("the text to generate") }, { PDB_FLOAT, "size", - "the size of text in either pixels or points" + N_("the size of text in either pixels or points") }, { PDB_INT32, "size_type", - "the units of the specified size: { PIXELS (0), POINTS (1) }" + N_("the units of the specified size: { PIXELS (0), POINTS (1) }") }, { PDB_STRING, "foundry", - "the font foundry, \"*\" for any" + N_("the font foundry, \"*\" for any") }, { PDB_STRING, "family", - "the font family, \"*\" for any" + N_("the font family, \"*\" for any") }, { PDB_STRING, "weight", - "the font weight, \"*\" for any" + N_("the font weight, \"*\" for any") }, { PDB_STRING, "slant", - "the font slant, \"*\" for any" + N_("the font slant, \"*\" for any") }, { PDB_STRING, "set_width", - "the font set-width parameter, \"*\" for any" + N_("the font set-width parameter, \"*\" for any") }, { PDB_STRING, "spacing", - "the font spacing, \"*\" for any" + N_("the font spacing, \"*\" for any") } }; @@ -1240,27 +1242,27 @@ ProcArg text_tool_get_extents_out_args[] = { { PDB_INT32, "width", - "the width of the specified text" + N_("the width of the specified text") }, { PDB_INT32, "height", - "the height of the specified text" + N_("the height of the specified text") }, { PDB_INT32, "ascent", - "the ascent of the specified font" + N_("the ascent of the specified font") }, { PDB_INT32, "descent", - "the descent of the specified font" + N_("the descent of the specified font") } }; ProcRecord text_tool_get_extents_proc = { "gimp_text_get_extents", - "Get extents of the bounding box for the specified text", - "This tool returns the width and height of a bounding box for the specified text string with the specified font information. Ascent and descent for the specified font are returned as well.", + N_("Get extents of the bounding box for the specified text"), + N_("This tool returns the width and height of a bounding box for the specified text string with the specified font information. Ascent and descent for the specified font are returned as well."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -1284,47 +1286,47 @@ ProcArg text_tool_get_extents_args_ext[] = { { PDB_STRING, "text", - "the text to generate" + N_("the text to generate") }, { PDB_FLOAT, "size", - "the size of text in either pixels or points" + N_("the size of text in either pixels or points") }, { PDB_INT32, "size_type", - "the units of the specified size: { PIXELS (0), POINTS (1) }" + N_("the units of the specified size: { PIXELS (0), POINTS (1) }") }, { PDB_STRING, "foundry", - "the font foundry, \"*\" for any" + N_("the font foundry, \"*\" for any") }, { PDB_STRING, "family", - "the font family, \"*\" for any" + N_("the font family, \"*\" for any") }, { PDB_STRING, "weight", - "the font weight, \"*\" for any" + N_("the font weight, \"*\" for any") }, { PDB_STRING, "slant", - "the font slant, \"*\" for any" + N_("the font slant, \"*\" for any") }, { PDB_STRING, "set_width", - "the font set-width parameter, \"*\" for any" + N_("the font set-width parameter, \"*\" for any") }, { PDB_STRING, "spacing", - "the font spacing, \"*\" for any" + N_("the font spacing, \"*\" for any") }, { PDB_STRING, "registry", - "the font registry, \"*\" for any" + N_("the font registry, \"*\" for any") }, { PDB_STRING, "encoding", - "the font encoding, \"*\" for any" + N_("the font encoding, \"*\" for any") } }; @@ -1332,27 +1334,27 @@ ProcArg text_tool_get_extents_out_args_ext[] = { { PDB_INT32, "width", - "the width of the specified text" + N_("the width of the specified text") }, { PDB_INT32, "height", - "the height of the specified text" + N_("the height of the specified text") }, { PDB_INT32, "ascent", - "the ascent of the specified font" + N_("the ascent of the specified font") }, { PDB_INT32, "descent", - "the descent of the specified font" + N_("the descent of the specified font") } }; ProcRecord text_tool_get_extents_proc_ext = { "gimp_text_get_extents_ext", - "Get extents of the bounding box for the specified text", - "This tool returns the width and height of a bounding box for the specified text string with the specified font information. Ascent and descent for the specified font are returned as well.", + N_("Get extents of the bounding box for the specified text"), + N_("This tool returns the width and height of a bounding box for the specified text string with the specified font information. Ascent and descent for the specified font are returned as well."), "Martin Edlman", "Spencer Kimball & Peter Mattis", "1998", @@ -1376,19 +1378,19 @@ ProcArg text_tool_get_extents_args_fontname[] = { { PDB_STRING, "text", - "the text to generate" + N_("the text to generate") }, { PDB_FLOAT, "size", - "the size of text in either pixels or points" + N_("the size of text in either pixels or points") }, { PDB_INT32, "size_type", - "the units of the specified size: { PIXELS (0), POINTS (1) }" + N_("the units of the specified size: { PIXELS (0), POINTS (1) }") }, { PDB_STRING, "fontname", - "the fontname (conforming to the X Logical Font Description Conventions)" + N_("the fontname (conforming to the X Logical Font Description Conventions)") } }; @@ -1396,27 +1398,27 @@ ProcArg text_tool_get_extents_out_args_fontname[] = { { PDB_INT32, "width", - "the width of the specified text" + N_("the width of the specified text") }, { PDB_INT32, "height", - "the height of the specified text" + N_("the height of the specified text") }, { PDB_INT32, "ascent", - "the ascent of the specified font" + N_("the ascent of the specified font") }, { PDB_INT32, "descent", - "the descent of the specified font" + N_("the descent of the specified font") } }; ProcRecord text_tool_get_extents_proc_fontname = { "gimp_text_get_extents_fontname", - "Get extents of the bounding box for the specified text", - "This tool returns the width and height of a bounding box for the specified text string with the specified font information. Ascent and descent for the specified font are returned as well.", + N_("Get extents of the bounding box for the specified text"), + N_("This tool returns the width and height of a bounding box for the specified text string with the specified font information. Ascent and descent for the specified font are returned as well."), "Martin Edlman, Sven Neumann", "Spencer Kimball & Peter Mattis", "1998", diff --git a/app/threshold.c b/app/threshold.c index c0aca94f5b..0286f06c43 100644 --- a/app/threshold.c +++ b/app/threshold.c @@ -28,6 +28,8 @@ #include "interface.h" #include "threshold.h" +#include "libgimp/gimpintl.h" + #define TEXT_WIDTH 45 #define HISTOGRAM_WIDTH 256 #define HISTOGRAM_HEIGHT 150 @@ -292,7 +294,7 @@ tools_new_threshold () /* The tool options */ if (!threshold_options) - threshold_options = tools_register_no_options (THRESHOLD, "Threshold Options"); + threshold_options = tools_register_no_options (THRESHOLD, _("Threshold Options")); /* The threshold dialog */ if (!threshold_dialog) @@ -339,7 +341,7 @@ threshold_initialize (GDisplay *gdisp) { if (drawable_indexed (gimage_active_drawable (gdisp->gimage))) { - g_message ("Threshold does not operate on indexed drawables."); + g_message (_("Threshold does not operate on indexed drawables.")); return; } @@ -372,8 +374,8 @@ threshold_initialize (GDisplay *gdisp) /* the action area structure */ static ActionAreaItem action_items[] = { - { "OK", threshold_ok_callback, NULL, NULL }, - { "Cancel", threshold_cancel_callback, NULL, NULL } + { N_("OK"), threshold_ok_callback, NULL, NULL }, + { N_("Cancel"), threshold_cancel_callback, NULL, NULL } }; static ThresholdDialog * @@ -394,7 +396,7 @@ threshold_new_dialog () /* The shell and main vbox */ td->shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (td->shell), "threshold", "Gimp"); - gtk_window_set_title (GTK_WINDOW (td->shell), "Threshold"); + gtk_window_set_title (GTK_WINDOW (td->shell), _("Threshold")); /* handle the wm close signal */ gtk_signal_connect (GTK_OBJECT (td->shell), "delete_event", @@ -409,7 +411,7 @@ threshold_new_dialog () hbox = gtk_hbox_new (TRUE, 2); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); - label = gtk_label_new ("Threshold Range: "); + label = gtk_label_new (_("Threshold Range: ")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -454,7 +456,7 @@ threshold_new_dialog () gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); /* The preview toggle */ - toggle = gtk_check_button_new_with_label ("Preview"); + toggle = gtk_check_button_new_with_label (_("Preview")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), td->preview); gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -484,7 +486,7 @@ static void threshold_preview (ThresholdDialog *td) { if (!td->image_map) - g_message ("threshold_preview(): No image map"); + g_message (_("threshold_preview(): No image map")); image_map_apply (td->image_map, threshold, (void *) td); } @@ -611,27 +613,27 @@ ProcArg threshold_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_INT32, "low_threshold", - "the low threshold value: (0 <= low_threshold <= 255)" + N_("the low threshold value: (0 <= low_threshold <= 255)") }, { PDB_INT32, "high_threshold", - "the high threshold value: (0 <= high_threshold <= 255)" + N_("the high threshold value: (0 <= high_threshold <= 255)") } }; ProcRecord threshold_proc = { "gimp_threshold", - "Threshold the specified drawable", - "This procedures generates a threshold map of the specified drawable. All pixels between the values of 'low_threshold' and 'high_threshold' are replaced with white, and all other pixels with black.", + N_("Threshold the specified drawable"), + N_("This procedures generates a threshold map of the specified drawable. All pixels between the values of 'low_threshold' and 'high_threshold' are replaced with white, and all other pixels with black."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1997", diff --git a/app/tile.c b/app/tile.c index 2db5b8202d..1e4cf4efb4 100644 --- a/app/tile.c +++ b/app/tile.c @@ -6,6 +6,7 @@ #include "tile_manager.h" #include "tile_swap.h" +#include "libgimp/gimpintl.h" /* EXPERIMENTAL Copy-On-Write goodies * by Adam D. Moss @@ -163,12 +164,12 @@ tile_destroy (Tile *tile) { if (tile->ref_count) { - g_warning ("tried to destroy a ref'd tile"); + g_warning (_("tried to destroy a ref'd tile")); return; } if (tile->share_count) { - g_warning ("tried to destroy an attached tile"); + g_warning (_("tried to destroy an attached tile")); return; } if (tile->data) @@ -281,7 +282,7 @@ tile_detach (Tile *tile, void *tm, int tile_num) if (*link == NULL) { - g_warning ("Tried to detach a nonattached tile"); + g_warning (_("Tried to detach a nonattached tile")); return; } diff --git a/app/tile_cache.c b/app/tile_cache.c index 0c7c46c419..1d01aff3d1 100644 --- a/app/tile_cache.c +++ b/app/tile_cache.c @@ -10,6 +10,8 @@ #include "tile_pvt.h" /* ick. */ +#include "libgimp/gimpintl.h" + #include "stdio.h" /* This is the percentage of the maximum cache size that should be cleared @@ -109,7 +111,7 @@ tile_cache_insert (Tile *tile) { if (!tile_cache_zorch_next()) { - g_warning ("cache: unable to find room for a tile"); + g_warning (_("cache: unable to find room for a tile")); goto out; } } @@ -261,7 +263,7 @@ tile_idle_thread (void *data) TileList *list; int count; - fprintf (stderr,"starting tile preswapper\n"); + fprintf (stderr,_("starting tile preswapper\n")); count = 0; while(1) diff --git a/app/tile_manager.c b/app/tile_manager.c index 58814e36e1..c8ed436c01 100644 --- a/app/tile_manager.c +++ b/app/tile_manager.c @@ -23,6 +23,8 @@ #include "tile_manager_pvt.h" #include "tile_pvt.h" /* ick. */ +#include "libgimp/gimpintl.h" + static int tile_manager_get_tile_num (TileManager *tm, int xpixel, int ypixel); @@ -306,7 +308,7 @@ tile_manager_map_tile (TileManager *tm, if ((xpixel < 0) || (xpixel >= tm->width) || (ypixel < 0) || (ypixel >= tm->height)) { - g_warning ("tile_manager_map_tile: tile co-ord out of range."); + g_warning (_("tile_manager_map_tile: tile co-ord out of range.")); return; } @@ -334,7 +336,7 @@ tile_manager_map (TileManager *tm, if ((tile_num < 0) || (tile_num >= ntiles)) { - g_warning ("tile_manager_map: tile out of range."); + g_warning (_("tile_manager_map: tile out of range.")); return; } @@ -380,7 +382,7 @@ tile_manager_map (TileManager *tm, if ((*tile_ptr)->ewidth != srctile->ewidth || (*tile_ptr)->eheight != srctile->eheight || (*tile_ptr)->bpp != srctile->bpp) { - g_warning ("tile_manager_map: nonconformant map (%p -> %p)", + g_warning (_("tile_manager_map: nonconformant map (%p -> %p)"), srctile, *tile_ptr); } tile_detach (*tile_ptr, tm, tile_num); @@ -461,7 +463,7 @@ tile_manager_get_tile_coordinates (TileManager *tm, Tile *tile, int *x, int *y) if (tl == NULL) { - g_warning ("tile_manager_get_tile_coordinates: tile not attached to manager"); + g_warning (_("tile_manager_get_tile_coordinates: tile not attached to manager")); return; } @@ -482,7 +484,7 @@ tile_manager_map_over_tile (TileManager *tm, Tile *tile, Tile *srctile) if (tl == NULL) { - g_warning ("tile_manager_map_over_tile: tile not attached to manager"); + g_warning (_("tile_manager_map_over_tile: tile not attached to manager")); return; } diff --git a/app/tile_swap.c b/app/tile_swap.c index beecc8b9a9..777a06f03e 100644 --- a/app/tile_swap.c +++ b/app/tile_swap.c @@ -8,6 +8,7 @@ #include #endif +#include "libgimp/gimpintl.h" #define MAX_OPEN_SWAP_FILES 16 @@ -133,7 +134,7 @@ tile_swap_exit1 (gpointer key, DefSwapFile *def_swap_file; if (tile_ref_count != 0) - g_message ("tile ref count balance: %d\n", tile_ref_count); + g_message (_("tile ref count balance: %d\n"), tile_ref_count); swap_file = value; if (swap_file->swap_func == tile_swap_default) @@ -141,7 +142,7 @@ tile_swap_exit1 (gpointer key, def_swap_file = swap_file->user_data; if (def_swap_file->swap_file_end != 0) { - g_message ("swap file not empty: \"%s\"\n", swap_file->filename); + g_message (_("swap file not empty: \"%s\"\n"), swap_file->filename); tile_swap_print_gaps (def_swap_file); } @@ -313,7 +314,7 @@ tile_swap_command (Tile *tile, swap_file = g_hash_table_lookup (swap_files, &tile->swap_num); if (!swap_file) { - g_message ("could not find swap file for tile"); + g_message (_("could not find swap file for tile")); goto out; } @@ -352,7 +353,7 @@ tile_swap_open (SwapFile *swap_file) swap_file->fd = open (swap_file->filename, O_CREAT|O_RDWR, S_IRUSR|S_IWUSR); if (swap_file->fd == -1) { - g_message ("unable to open swap file...BAD THINGS WILL HAPPEN SOON"); + g_message (_("unable to open swap file...BAD THINGS WILL HAPPEN SOON")); return; } @@ -394,7 +395,7 @@ tile_swap_default (int fd, tile_swap_default_delete (def_swap_file, fd, tile); break; case SWAP_COMPRESS: - g_message ("tile_swap_default: SWAP_COMPRESS: UNFINISHED"); + g_message (_("tile_swap_default: SWAP_COMPRESS: UNFINISHED")); break; } @@ -472,7 +473,7 @@ tile_swap_default_in (DefSwapFile *def_swap_file, if (offset == -1) { if (seek_err_msg) - g_message ("unable to seek to tile location on disk: %d", err); + g_message (_("unable to seek to tile location on disk: %d"), err); seek_err_msg = FALSE; return; } @@ -491,7 +492,7 @@ tile_swap_default_in (DefSwapFile *def_swap_file, if (err <= 0) { if (read_err_msg) - g_message ("unable to read tile data from disk: %d/%d ( %d ) bytes read", err, errno, nleft); + g_message (_("unable to read tile data from disk: %d/%d ( %d ) bytes read"), err, errno, nleft); read_err_msg = FALSE; return; } @@ -533,7 +534,7 @@ tile_swap_default_out (DefSwapFile *def_swap_file, if (offset == -1) { if (seek_err_msg) - g_message ("unable to seek to tile location on disk: %d", errno); + g_message (_("unable to seek to tile location on disk: %d"), errno); seek_err_msg = FALSE; return; } @@ -546,7 +547,7 @@ tile_swap_default_out (DefSwapFile *def_swap_file, if (err <= 0) { if (write_err_msg) - g_message ("unable to write tile data to disk: %d ( %d ) bytes written", err, nleft); + g_message (_("unable to write tile data to disk: %d ( %d ) bytes written"), err, nleft); write_err_msg = FALSE; return; } diff --git a/app/tips_dialog.c b/app/tips_dialog.c index 9b65acb6f7..34ac211b47 100644 --- a/app/tips_dialog.c +++ b/app/tips_dialog.c @@ -8,6 +8,8 @@ #include "interface.h" #include "wilber.h" +#include "libgimp/gimpintl.h" + #define TIPS_FILE_NAME "gimp_tips.txt" static int tips_dialog_hide (GtkWidget *widget, gpointer data); @@ -57,7 +59,7 @@ tips_dialog_create () { tips_dialog = gtk_window_new (GTK_WINDOW_DIALOG); gtk_window_set_wmclass (GTK_WINDOW (tips_dialog), "tip_of_the_day", "Gimp"); - gtk_window_set_title (GTK_WINDOW (tips_dialog), "GIMP Tip of the day"); + gtk_window_set_title (GTK_WINDOW (tips_dialog), _("GIMP Tip of the day")); gtk_window_position (GTK_WINDOW (tips_dialog), GTK_WIN_POS_CENTER); gtk_signal_connect (GTK_OBJECT (tips_dialog), "delete_event", GTK_SIGNAL_FUNC (tips_dialog_hide), NULL); @@ -102,27 +104,27 @@ tips_dialog_create () gtk_box_pack_start (GTK_BOX (hbox1), tips_label, TRUE, TRUE, 3); gtk_widget_show (tips_label); - button_close = gtk_button_new_with_label ("Close"); + button_close = gtk_button_new_with_label (_("Close")); gtk_signal_connect (GTK_OBJECT (button_close), "clicked", GTK_SIGNAL_FUNC (tips_dialog_hide), NULL); gtk_box_pack_end (GTK_BOX (hbox2), button_close, FALSE, TRUE, 0); gtk_widget_show (button_close); - button_next = gtk_button_new_with_label ("Next Tip"); + button_next = gtk_button_new_with_label (_("Next Tip")); gtk_signal_connect (GTK_OBJECT (button_next), "clicked", GTK_SIGNAL_FUNC (tips_show_next), (gpointer) "next"); gtk_box_pack_end (GTK_BOX (hbox2), button_next, FALSE, TRUE, 0); gtk_widget_show (button_next); - button_prev = gtk_button_new_with_label ("Prev. Tip"); + button_prev = gtk_button_new_with_label (_("Prev. Tip")); gtk_signal_connect (GTK_OBJECT (button_prev), "clicked", GTK_SIGNAL_FUNC (tips_show_next), (gpointer) "prev"); gtk_box_pack_end (GTK_BOX (hbox2), button_prev, FALSE, TRUE, 0); gtk_widget_show (button_prev); - button_check = gtk_check_button_new_with_label ("Show tip next time"); + button_check = gtk_check_button_new_with_label (_("Show tip next time")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (button_check), show_tips); gtk_signal_connect (GTK_OBJECT (button_check), "toggled", @@ -220,9 +222,9 @@ read_tips_file (char *filename) fp = fopen (filename, "rb"); if (!fp) { - store_tip ("Your GIMP tips file appears to be missing!\n" + store_tip (_("Your GIMP tips file appears to be missing!\n" "There should be a file called " TIPS_FILE_NAME " in the\n" - "GIMP data directory. Please check your installation."); + "GIMP data directory. Please check your installation.")); return; } diff --git a/app/tools.c b/app/tools.c index bfdc10e946..3d620f0488 100644 --- a/app/tools.c +++ b/app/tools.c @@ -57,6 +57,8 @@ #include "tools.h" #include "transform_tool.h" +#include "libgimp/gimpintl.h" + #include "pixmaps2.h" /* Global Data */ @@ -76,12 +78,12 @@ ToolInfo tool_info[] = { { NULL, - "Rect Select", + N_("Rect Select"), 0, - "/Tools/Rect Select", + N_("/Tools/Rect Select"), "R", (char **)rect_bits, - "Select rectangular regions", + N_("Select rectangular regions"), "ContextHelp/rect-select", RECT_SELECT, tools_new_rect_select, @@ -91,12 +93,12 @@ ToolInfo tool_info[] = { NULL, - "Ellipse Select", + N_("Ellipse Select"), 1, - "/Tools/Ellipse Select", + N_("/Tools/Ellipse Select"), "E", (char **) circ_bits, - "Select elliptical regions", + N_("Select elliptical regions"), "ContextHelp/ellipse-select", ELLIPSE_SELECT, tools_new_ellipse_select, @@ -106,12 +108,12 @@ ToolInfo tool_info[] = { NULL, - "Free Select", + N_("Free Select"), 2, - "/Tools/Free Select", + N_("/Tools/Free Select"), "F", (char **) free_bits, - "Select hand-drawn regions", + N_("Select hand-drawn regions"), "ContextHelp/free-select", FREE_SELECT, tools_new_free_select, @@ -121,12 +123,12 @@ ToolInfo tool_info[] = { NULL, - "Fuzzy Select", + N_("Fuzzy Select"), 3, - "/Tools/Fuzzy Select", + N_("/Tools/Fuzzy Select"), "Z", (char **) fuzzy_bits, - "Select contiguous regions", + N_("Select contiguous regions"), "ContextHelp/fuzzy-select", FUZZY_SELECT, tools_new_fuzzy_select, @@ -136,12 +138,12 @@ ToolInfo tool_info[] = { NULL, - "Bezier Select", + N_("Bezier Select"), 4, - "/Tools/Bezier Select", + N_("/Tools/Bezier Select"), "B", (char **) bezier_bits, - "Select regions using Bezier curves", + N_("Select regions using Bezier curves"), "ContextHelp/bezier-select", BEZIER_SELECT, tools_new_bezier_select, @@ -151,12 +153,12 @@ ToolInfo tool_info[] = { NULL, - "Intelligent Scissors", + N_("Intelligent Scissors"), 5, - "/Tools/Intelligent Scissors", + N_("/Tools/Intelligent Scissors"), "I", (char **) iscissors_bits, - "Select shapes from image", + N_("Select shapes from image"), "ContextHelp/iscissors", ISCISSORS, tools_new_iscissors, @@ -166,12 +168,12 @@ ToolInfo tool_info[] = { NULL, - "Move", + N_("Move"), 6, - "/Tools/Move", + N_("/Tools/Move"), "M", (char **) move_bits, - "Move layers & selections", + N_("Move layers & selections"), "ContextHelp/move", MOVE, tools_new_move_tool, @@ -181,12 +183,12 @@ ToolInfo tool_info[] = { NULL, - "Magnify", + N_("Magnify"), 7, - "/Tools/Magnify", + N_("/Tools/Magnify"), "M", (char **) magnify_bits, - "Zoom in & out", + N_("Zoom in & out"), "ContextHelp/magnify", MAGNIFY, tools_new_magnify, @@ -196,12 +198,12 @@ ToolInfo tool_info[] = { NULL, - "Crop", + N_("Crop"), 8, - "/Tools/Crop", + N_("/Tools/Crop"), "C", (char **) crop_bits, - "Crop the image", + N_("Crop the image"), "ContextHelp/crop", CROP, tools_new_crop, @@ -211,12 +213,12 @@ ToolInfo tool_info[] = { NULL, - "Transform", + N_("Transform"), 9, - "/Tools/Transform", + N_("/Tools/Transform"), "T", (char **) scale_bits, - "Transform the layer or selection", + N_("Transform the layer or selection"), "ContextHelp/rotate", ROTATE, tools_new_transform_tool, @@ -226,7 +228,7 @@ ToolInfo tool_info[] = { NULL, - "Transform", + N_("Transform"), 9, NULL, NULL, @@ -241,7 +243,7 @@ ToolInfo tool_info[] = { NULL, - "Transform", + N_("Transform"), 9, NULL, NULL, @@ -256,7 +258,7 @@ ToolInfo tool_info[] = { NULL, - "Transform", + N_("Transform"), 9, NULL, NULL, @@ -271,12 +273,12 @@ ToolInfo tool_info[] = { NULL, - "Flip", + N_("Flip"), 10, - "/Tools/Flip", + N_("/Tools/Flip"), "F", (char **) horizflip_bits, - "Flip the layer or selection", + N_("Flip the layer or selection"), "ContextHelp/flip", FLIP_HORZ, tools_new_flip, @@ -286,7 +288,7 @@ ToolInfo tool_info[] = { NULL, - "Flip", + N_("Flip"), 10, NULL, NULL, @@ -301,12 +303,12 @@ ToolInfo tool_info[] = { NULL, - "Text", + N_("Text"), 11, - "/Tools/Text", + N_("/Tools/Text"), "T", (char **) text_bits, - "Add text to the image", + N_("Add text to the image"), "ContextHelp/text", TEXT, tools_new_text, @@ -316,12 +318,12 @@ ToolInfo tool_info[] = { NULL, - "Color Picker", + N_("Color Picker"), 12, - "/Tools/Color Picker", + N_("/Tools/Color Picker"), "O", (char **) colorpicker_bits, - "Pick colors from the image", + N_("Pick colors from the image"), "ContextHelp/color-picker", COLOR_PICKER, tools_new_color_picker, @@ -331,12 +333,12 @@ ToolInfo tool_info[] = { NULL, - "Bucket Fill", + N_("Bucket Fill"), 13, - "/Tools/Bucket Fill", + N_("/Tools/Bucket Fill"), "B", (char **) fill_bits, - "Fill with a color or pattern", + N_("Fill with a color or pattern"), "ContextHelp/bucket-fill", BUCKET_FILL, tools_new_bucket_fill, @@ -346,12 +348,12 @@ ToolInfo tool_info[] = { NULL, - "Blend", + N_("Blend"), 14, - "/Tools/Blend", + N_("/Tools/Blend"), "L", (char **) gradient_bits, - "Fill with a color gradient", + N_("Fill with a color gradient"), "ContextHelp/gradient", BLEND, tools_new_blend, @@ -361,12 +363,12 @@ ToolInfo tool_info[] = { NULL, - "Pencil", + N_("Pencil"), 15, - "/Tools/Pencil", + N_("/Tools/Pencil"), "P", (char **) pencil_bits, - "Draw sharp pencil strokes", + N_("Draw sharp pencil strokes"), "ContextHelp/pencil", PENCIL, tools_new_pencil, @@ -376,12 +378,12 @@ ToolInfo tool_info[] = { NULL, - "Paintbrush", + N_("Paintbrush"), 16, - "/Tools/Paintbrush", + N_("/Tools/Paintbrush"), "P", (char **) paint_bits, - "Paint fuzzy brush strokes", + N_("Paint fuzzy brush strokes"), "ContextHelp/paintbrush", PAINTBRUSH, tools_new_paintbrush, @@ -391,12 +393,12 @@ ToolInfo tool_info[] = { NULL, - "Eraser", + N_("Eraser"), 17, - "/Tools/Eraser", + N_("/Tools/Eraser"), "E", (char **) erase_bits, - "Erase to background or transparency", + N_("Erase to background or transparency"), "ContextHelp/eraser", ERASER, tools_new_eraser, @@ -406,12 +408,12 @@ ToolInfo tool_info[] = { NULL, - "Airbrush", + N_("Airbrush"), 18, - "/Tools/Airbrush", + N_("/Tools/Airbrush"), "A", (char **) airbrush_bits, - "Airbrush with variable pressure", + N_("Airbrush with variable pressure"), "ContextHelp/airbrush", AIRBRUSH, tools_new_airbrush, @@ -421,12 +423,12 @@ ToolInfo tool_info[] = { NULL, - "Clone", + N_("Clone"), 19, - "/Tools/Clone", + N_("/Tools/Clone"), "C", (char **) clone_bits, - "Paint using patterns or image regions", + N_("Paint using patterns or image regions"), "ContextHelp/clone", CLONE, tools_new_clone, @@ -436,12 +438,12 @@ ToolInfo tool_info[] = { NULL, - "Convolve", + N_("Convolve"), 20, - "/Tools/Convolve", + N_("/Tools/Convolve"), "V", (char **) blur_bits, - "Blur or sharpen", + N_("Blur or sharpen"), "ContextHelp/convolve", CONVOLVE, tools_new_convolve, @@ -451,12 +453,12 @@ ToolInfo tool_info[] = { NULL, - "Ink", + N_("Ink"), 21, - "/Tools/Ink", + N_("/Tools/Ink"), "K", (char **) ink_bits, - "Draw in ink", + N_("Draw in ink"), "ContextHelp/ink", INK, tools_new_ink, @@ -467,9 +469,9 @@ ToolInfo tool_info[] = /* Non-toolbox tools */ { NULL, - "By Color Select", + N_("By Color Select"), 22, - "/Select/By Color...", + N_("/Select/By Color..."), NULL, NULL, NULL, @@ -482,9 +484,9 @@ ToolInfo tool_info[] = { NULL, - "Color Balance", + N_("Color Balance"), 23, - "/Image/Colors/Color Balance", + N_("/Image/Colors/Color Balance"), NULL, NULL, NULL, @@ -497,9 +499,9 @@ ToolInfo tool_info[] = { NULL, - "Brightness-Contrast", + N_("Brightness-Contrast"), 24, - "/Image/Colors/Brightness-Contrast", + N_("/Image/Colors/Brightness-Contrast"), NULL, NULL, NULL, @@ -512,9 +514,9 @@ ToolInfo tool_info[] = { NULL, - "Hue-Saturation", + N_("Hue-Saturation"), 25, - "/Image/Colors/Hue-Saturation", + N_("/Image/Colors/Hue-Saturation"), NULL, NULL, NULL, @@ -527,9 +529,9 @@ ToolInfo tool_info[] = { NULL, - "Posterize", + N_("Posterize"), 26, - "/Image/Colors/Posterize", + N_("/Image/Colors/Posterize"), NULL, NULL, NULL, @@ -542,9 +544,9 @@ ToolInfo tool_info[] = { NULL, - "Threshold", + N_("Threshold"), 27, - "/Image/Colors/Threshold", + N_("/Image/Colors/Threshold"), NULL, NULL, NULL, @@ -557,9 +559,9 @@ ToolInfo tool_info[] = { NULL, - "Curves", + N_("Curves"), 28, - "/Image/Colors/Curves", + N_("/Image/Colors/Curves"), NULL, NULL, NULL, @@ -572,9 +574,9 @@ ToolInfo tool_info[] = { NULL, - "Levels", + N_("Levels"), 29, - "/Image/Colors/Levels", + N_("/Image/Colors/Levels"), NULL, NULL, NULL, @@ -587,9 +589,9 @@ ToolInfo tool_info[] = { NULL, - "Histogram", + N_("Histogram"), 30, - "/Image/Histogram", + N_("/Image/Histogram"), NULL, NULL, NULL, @@ -694,13 +696,13 @@ tools_options_dialog_new () { ActionAreaItem action_items[1] = { - { "Close", tools_options_dialog_callback, NULL, NULL } + { N_("Close"), tools_options_dialog_callback, NULL, NULL } }; /* The shell and main vbox */ options_shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (options_shell), "tool_options", "Gimp"); - gtk_window_set_title (GTK_WINDOW (options_shell), "Tool Options"); + gtk_window_set_title (GTK_WINDOW (options_shell), _("Tool Options")); gtk_window_set_policy (GTK_WINDOW (options_shell), FALSE, TRUE, TRUE); session_set_window_geometry (options_shell, &tool_options_session_info, FALSE ); @@ -777,7 +779,7 @@ tools_register_no_options (ToolType tool_type, gtk_widget_show (label); /* this tool has no special options */ - label = gtk_label_new ("This tool has no options."); + label = gtk_label_new (_("This tool has no options.")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); diff --git a/app/tools/airbrush.c b/app/tools/airbrush.c index 2aba45ca33..2b724ef682 100644 --- a/app/tools/airbrush.c +++ b/app/tools/airbrush.c @@ -29,6 +29,8 @@ #include "tools.h" #include "gimage.h" +#include "libgimp/gimpintl.h" + typedef struct _AirbrushTimeout AirbrushTimeout; struct _AirbrushTimeout @@ -92,7 +94,7 @@ create_airbrush_options (void) vbox = gtk_vbox_new (FALSE, 1); /* the main label */ - label = gtk_label_new ("Airbrush Options"); + label = gtk_label_new (_("Airbrush Options")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -101,7 +103,7 @@ create_airbrush_options (void) gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_widget_show (hbox); - label = gtk_label_new ("Rate"); + label = gtk_label_new (_("Rate")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -119,7 +121,7 @@ create_airbrush_options (void) gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_widget_show (hbox); - label = gtk_label_new ("Pressure"); + label = gtk_label_new (_("Pressure")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -155,7 +157,7 @@ airbrush_paint_func (PaintCore *paint_core, /* timer_state = OFF; */ if (timer_state == ON) { - g_warning ("killing stray timer, please report to lewing@gimp.org"); + g_warning (_("killing stray timer, please report to lewing@gimp.org")); gtk_timeout_remove (timer); } timer_state = OFF; @@ -295,23 +297,23 @@ ProcArg airbrush_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_FLOAT, "pressure", - "The pressure of the airbrush strokes: 0 <= pressure <= 100" + N_("The pressure of the airbrush strokes: 0 <= pressure <= 100") }, { PDB_INT32, "num_strokes", - "number of stroke control points (count each coordinate as 2 points)" + N_("number of stroke control points (count each coordinate as 2 points)") }, { PDB_FLOATARRAY, "strokes", - "array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}" + N_("array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}") } }; @@ -319,8 +321,8 @@ ProcArg airbrush_args[] = ProcRecord airbrush_proc = { "gimp_airbrush", - "Paint in the current brush with varying pressure. Paint application is time-dependent", - "This tool simulates the use of an airbrush. Paint pressure represents the relative intensity of the paint application. High pressure results in a thicker layer of paint while low pressure results in a thinner layer.", + N_("Paint in the current brush with varying pressure. Paint application is time-dependent"), + N_("This tool simulates the use of an airbrush. Paint pressure represents the relative intensity of the paint application. High pressure results in a thicker layer of paint while low pressure results in a thinner layer."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/tools/bezier_select.c b/app/tools/bezier_select.c index 0e0686be36..901da800dd 100644 --- a/app/tools/bezier_select.c +++ b/app/tools/bezier_select.c @@ -30,6 +30,8 @@ #include "interface.h" #include "actionarea.h" +#include "libgimp/gimpintl.h" + /* Bezier extensions made by Raphael FRANCOIS (fraph@ibm.net) BEZIER_EXTENDS VER 1.0 @@ -435,7 +437,7 @@ bezier_select_button_press (Tool *tool, break; case BEZIER_EDIT: if (!bezier_sel->closed) - fatal_error ("tried to edit on open bezier curve in edit selection"); + fatal_error (_("tried to edit on open bezier curve in edit selection")); /* erase the handles */ bezier_sel->draw = BEZIER_DRAW_HANDLES; @@ -775,7 +777,7 @@ bezier_select_motion (Tool *tool, } if (!anchor) - fatal_error ("Encountered orphaned bezier control point"); + fatal_error (_("Encountered orphaned bezier control point")); if (opposite_control) { @@ -1132,7 +1134,7 @@ bezier_draw_segment (BezierSelect *bezier_sel, for (i = 0; i < 4; i++) { if (!points) - fatal_error ("bad bezier segment"); + fatal_error (_("bad bezier segment")); switch (space) { @@ -1149,7 +1151,7 @@ bezier_draw_segment (BezierSelect *bezier_sel, geometry[i][1] = points->sy; break; default: - fatal_error ("unknown coordinate space: %d", space); + fatal_error (_("unknown coordinate space: %d"), space); break; } @@ -1290,7 +1292,7 @@ bezier_convert (BezierSelect *bezier_sel, int i, j; if (!bezier_sel->closed) - fatal_error ("tried to convert an open bezier curve"); + fatal_error (_("tried to convert an open bezier curve")); /* destroy previous mask */ if (bezier_sel->mask) @@ -1842,7 +1844,7 @@ static void file_ok_callback(GtkWidget * widget, gpointer client_data) pn_dlg = (PasteNamedDlg *) client_data; f = fopen(filename, "rb"); - printf("reading %s\n", filename); + printf(_("reading %s\n"), filename); while(!feof(f)) { @@ -1856,9 +1858,9 @@ static void file_ok_callback(GtkWidget * widget, gpointer client_data) GString *s; fclose(f); - s = g_string_new ("Open failed: "); + s = g_string_new (_("Open failed: ")); - g_string_append (s, "Bezier Load"); + g_string_append (s, _("Bezier Load")); g_message (s->str); @@ -1944,7 +1946,7 @@ static void file_cancel_callback(GtkWidget * widget, gpointer data) static void make_file_dlg(gpointer data) { - file_dlg = gtk_file_selection_new ("Load/Store Bezier Curves"); + file_dlg = gtk_file_selection_new (_("Load/Store Bezier Curves")); gtk_window_position (GTK_WINDOW (file_dlg), GTK_WIN_POS_MOUSE); gtk_signal_connect(GTK_OBJECT (GTK_FILE_SELECTION (file_dlg)->cancel_button), "clicked", (GtkSignalFunc) file_cancel_callback, data); @@ -1964,7 +1966,7 @@ static void load_callback(GtkWidget * widget, gpointer data) if (GTK_WIDGET_VISIBLE(file_dlg)) return; } - gtk_window_set_title(GTK_WINDOW (file_dlg), "Load Bezier Curves"); + gtk_window_set_title(GTK_WINDOW (file_dlg), _("Load Bezier Curves")); load_store = 1; gtk_widget_show (file_dlg); } @@ -1981,7 +1983,7 @@ static void store_callback(GtkWidget * widget, gpointer data) return; } - gtk_window_set_title(GTK_WINDOW (file_dlg), "Store Bezier Curves"); + gtk_window_set_title(GTK_WINDOW (file_dlg), _("Store Bezier Curves")); load_store = 0; gtk_widget_show (file_dlg); } @@ -2061,8 +2063,8 @@ static void bezier_add_callback (GtkWidget *w, pn_dlg = (PasteNamedDlg *) client_data; - query_string_box ("Named Bezier Buffer", - "Enter a name for this buffer", + query_string_box (_("Named Bezier Buffer"), + _("Enter a name for this buffer"), NULL, new_bezier_buffer_callback, pn_dlg); @@ -2099,9 +2101,9 @@ void create_choice(GtkWidget *box) char *name; int value; } menu_items[] = { - {"Edit Curve", EXTEND_EDIT }, - {"Add Point", EXTEND_ADD }, - {"Remove Point", EXTEND_REMOVE}, + {N_("Edit Curve"), EXTEND_EDIT }, + {N_("Add Point"), EXTEND_ADD }, + {N_("Remove Point"), EXTEND_REMOVE}, { NULL, 0}, }; @@ -2114,7 +2116,7 @@ void create_choice(GtkWidget *box) gtk_box_pack_start(GTK_BOX(box), hbox, TRUE, FALSE, 10); gtk_widget_show(hbox); - w = gtk_label_new("Mode :"); + w = gtk_label_new(_("Mode :")); gtk_misc_set_alignment(GTK_MISC(w), 0.0, 0.5); gtk_box_pack_start(GTK_BOX(hbox), w, FALSE, FALSE, 0); gtk_widget_show(w); @@ -2143,13 +2145,13 @@ static void bezier_named_buffer_proc (GDisplay *gdisp) int i; static ActionAreaItem action_items[] = { - { "New", bezier_new_curve_callback, NULL, NULL }, - { "Add", bezier_add_callback, NULL, NULL }, - { "Replace", bezier_replace_callback, NULL, NULL }, - { "Paste", bezier_buffer_paste_callback, NULL, NULL }, - { "Delete", bezier_buffer_delete_callback, NULL, NULL }, - { "Load", load_callback, NULL, NULL }, - { "Save", store_callback, NULL, NULL } + { N_("New"), bezier_new_curve_callback, NULL, NULL }, + { N_("Add"), bezier_add_callback, NULL, NULL }, + { N_("Replace"), bezier_replace_callback, NULL, NULL }, + { N_("Paste"), bezier_buffer_paste_callback, NULL, NULL }, + { N_("Delete"), bezier_buffer_delete_callback, NULL, NULL }, + { N_("Load"), load_callback, NULL, NULL }, + { N_("Save"), store_callback, NULL, NULL } }; PasteNamedDlg *pn_dlg; GtkWidget *vbox; @@ -2168,7 +2170,7 @@ static void bezier_named_buffer_proc (GDisplay *gdisp) curPndlg = pn_dlg; - gtk_window_set_title (GTK_WINDOW (pn_dlg->shell), "Paste Bezier Named Buffer"); + gtk_window_set_title (GTK_WINDOW (pn_dlg->shell), _("Paste Bezier Named Buffer")); gtk_window_position (GTK_WINDOW (pn_dlg->shell), GTK_WIN_POS_MOUSE); vbox = gtk_vbox_new (FALSE, 1); @@ -2176,7 +2178,7 @@ static void bezier_named_buffer_proc (GDisplay *gdisp) gtk_box_pack_start (GTK_BOX (GTK_DIALOG (pn_dlg->shell)->vbox), vbox, TRUE, TRUE, 0); gtk_widget_show (vbox); - label = gtk_label_new ("Select a buffer to operate:"); + label = gtk_label_new (_("Select a buffer to operate:")); gtk_box_pack_start (GTK_BOX (vbox), label, TRUE, FALSE, 0); gtk_widget_show (label); @@ -2242,7 +2244,7 @@ add_point_on_segment (BezierSelect *bezier_sel, for (i = 0; i < 4; i++) { if (!points) - fatal_error ("bad bezier segment"); + fatal_error (_("bad bezier segment")); switch (space) { @@ -2259,7 +2261,7 @@ add_point_on_segment (BezierSelect *bezier_sel, geometry[i][1] = points->sy; break; default: - fatal_error ("unknown coordinate space: %d", space); + fatal_error (_("unknown coordinate space: %d"), space); break; } diff --git a/app/tools/blend.c b/app/tools/blend.c index a5649e88ee..95b7c9c9b9 100644 --- a/app/tools/blend.c +++ b/app/tools/blend.c @@ -37,6 +37,8 @@ #include "tools.h" #include "undo.h" +#include "libgimp/gimpintl.h" + #include "tile.h" /* target size */ @@ -208,25 +210,25 @@ static PixelRegion distR = /* the blend option menu items -- the blend modes */ static MenuItem blend_option_items[] = { - { "FG to BG (RGB)", 0, 0, blend_mode_callback, (gpointer) FG_BG_RGB_MODE, NULL, NULL }, - { "FG to BG (HSV)", 0, 0, blend_mode_callback, (gpointer) FG_BG_HSV_MODE, NULL, NULL }, - { "FG to Transparent", 0, 0, blend_mode_callback, (gpointer) FG_TRANS_MODE, NULL, NULL }, - { "Custom (from editor)", 0, 0, blend_mode_callback, (gpointer) CUSTOM_MODE, NULL, NULL }, + { N_("FG to BG RGB"), 0, 0, blend_mode_callback, (gpointer) FG_BG_RGB_MODE, NULL, NULL }, + { N_("FG to BG HSV"), 0, 0, blend_mode_callback, (gpointer) FG_BG_HSV_MODE, NULL, NULL }, + { N_("FG to Transparent"), 0, 0, blend_mode_callback, (gpointer) FG_TRANS_MODE, NULL, NULL }, + { N_("Custom from editor"), 0, 0, blend_mode_callback, (gpointer) CUSTOM_MODE, NULL, NULL }, { NULL, 0, 0, NULL, NULL, NULL, NULL } }; /* the gradient option menu items -- the gradient modes */ static MenuItem gradient_option_items[] = { - { "Linear", 0, 0, gradient_type_callback, (gpointer) Linear, NULL, NULL }, - { "Bi-Linear", 0, 0, gradient_type_callback, (gpointer) BiLinear, NULL, NULL }, - { "Radial", 0, 0, gradient_type_callback, (gpointer) Radial, NULL, NULL }, - { "Square", 0, 0, gradient_type_callback, (gpointer) Square, NULL, NULL }, - { "Conical (symmetric)", 0, 0, gradient_type_callback, (gpointer) ConicalSymmetric, NULL, NULL }, - { "Conical (asymmetric)", 0, 0, gradient_type_callback, (gpointer) ConicalAsymmetric, NULL, NULL }, - { "Shapeburst (angular)", 0, 0, gradient_type_callback, (gpointer) ShapeburstAngular, NULL, NULL }, - { "Shapeburst (spherical)", 0, 0, gradient_type_callback, (gpointer) ShapeburstSpherical, NULL, NULL }, - { "Shapeburst (dimpled)", 0, 0, gradient_type_callback, (gpointer) ShapeburstDimpled, NULL, NULL }, + { N_("Linear"), 0, 0, gradient_type_callback, (gpointer) Linear, NULL, NULL }, + { N_("Bi-Linear"), 0, 0, gradient_type_callback, (gpointer) BiLinear, NULL, NULL }, + { N_("Radial"), 0, 0, gradient_type_callback, (gpointer) Radial, NULL, NULL }, + { N_("Square"), 0, 0, gradient_type_callback, (gpointer) Square, NULL, NULL }, + { N_("Conical (symmetric)"), 0, 0, gradient_type_callback, (gpointer) ConicalSymmetric, NULL, NULL }, + { N_("Conical (asymmetric)"), 0, 0, gradient_type_callback, (gpointer) ConicalAsymmetric, NULL, NULL }, + { N_("Shapeburst (angular)"), 0, 0, gradient_type_callback, (gpointer) ShapeburstAngular, NULL, NULL }, + { N_("Shapeburst (spherical)"), 0, 0, gradient_type_callback, (gpointer) ShapeburstSpherical, NULL, NULL }, + { N_("Shapeburst (dimpled)"), 0, 0, gradient_type_callback, (gpointer) ShapeburstDimpled, NULL, NULL }, { NULL, 0, 0, NULL, NULL, NULL, NULL } }; @@ -237,9 +239,9 @@ static BlendOptions *blend_options = NULL; static MenuItem repeat_option_items[] = { - { "None", 0, 0, repeat_type_callback, (gpointer) REPEAT_NONE, NULL, NULL }, - { "Sawtooth wave", 0, 0, repeat_type_callback, (gpointer) REPEAT_SAWTOOTH, NULL, NULL }, - { "Triangular wave", 0, 0, repeat_type_callback, (gpointer) REPEAT_TRIANGULAR, NULL, NULL }, + { N_("None"), 0, 0, repeat_type_callback, (gpointer) REPEAT_NONE, NULL, NULL }, + { N_("Sawtooth wave"), 0, 0, repeat_type_callback, (gpointer) REPEAT_SAWTOOTH, NULL, NULL }, + { N_("Triangular wave"), 0, 0, repeat_type_callback, (gpointer) REPEAT_TRIANGULAR, NULL, NULL }, { NULL, 0, 0, NULL, NULL, NULL, NULL } }; @@ -355,7 +357,7 @@ create_blend_options () vbox = gtk_vbox_new (FALSE, 2); /* the main label */ - label = gtk_label_new ("Blend Options"); + label = gtk_label_new (_("Blend Options")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -365,7 +367,7 @@ create_blend_options () gtk_box_pack_start(GTK_BOX(vbox), table, TRUE, TRUE, 0); /* the opacity scale */ - label = gtk_label_new ("Opacity:"); + label = gtk_label_new (_("Opacity:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 1.0); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2); @@ -383,7 +385,7 @@ create_blend_options () gtk_widget_show (opacity_scale); /* the offset scale */ - label = gtk_label_new ("Offset:"); + label = gtk_label_new (_("Offset:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 1.0); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2); @@ -401,7 +403,7 @@ create_blend_options () gtk_widget_show (offset_scale); /* the paint mode menu */ - label = gtk_label_new ("Mode:"); + label = gtk_label_new (_("Mode:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 2, 3, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2); @@ -414,7 +416,7 @@ create_blend_options () gtk_widget_show (pm_option_menu); /* the blend mode menu */ - label = gtk_label_new ("Blend:"); + label = gtk_label_new (_("Blend:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 3, 4, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2); @@ -427,7 +429,7 @@ create_blend_options () gtk_widget_show (bm_option_menu); /* the gradient type menu */ - label = gtk_label_new ("Gradient:"); + label = gtk_label_new (_("Gradient:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 4, 5, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2); @@ -441,7 +443,7 @@ create_blend_options () /* the repeat option */ - label = gtk_label_new("Repeat:"); + label = gtk_label_new(_("Repeat:")); gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 5, 6, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2); @@ -460,7 +462,7 @@ create_blend_options () /* supersampling toggle */ - button = gtk_check_button_new_with_label("Adaptive supersampling"); + button = gtk_check_button_new_with_label(_("Adaptive supersampling")); gtk_box_pack_start(GTK_BOX(vbox), button, FALSE, FALSE, 0); gtk_signal_connect(GTK_OBJECT(button), "toggled", (GtkSignalFunc) supersample_toggle_update, @@ -482,7 +484,7 @@ create_blend_options () /* max depth scale */ - label = gtk_label_new("Max depth:"); + label = gtk_label_new(_("Max depth:")); gtk_misc_set_alignment(GTK_MISC(label), 0.0, 1.0); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 0, 1, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2); @@ -501,7 +503,7 @@ create_blend_options () /* threshold scale */ - label = gtk_label_new("Threshold:"); + label = gtk_label_new(_("Threshold:")); gtk_misc_set_alignment(GTK_MISC(label), 0.0, 1.0); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 1, 2, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2); @@ -555,7 +557,7 @@ blend_button_press (Tool *tool, switch (drawable_type (gimage_active_drawable (gdisp->gimage))) { case INDEXED_GIMAGE: case INDEXEDA_GIMAGE: - g_message ("Blend: Invalid for indexed images."); + g_message (_("Blend: Invalid for indexed images.")); return; break; @@ -580,7 +582,7 @@ blend_button_press (Tool *tool, /* initialize the statusbar display */ blend_tool->context_id = gtk_statusbar_get_context_id (GTK_STATUSBAR (gdisp->statusbar), "blend"); - gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), blend_tool->context_id, "Blend: 0, 0"); + gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), blend_tool->context_id, _("Blend: 0, 0")); /* Start drawing the blend tool */ draw_core_start (blend_tool->core, gdisp->canvas->window, tool); @@ -636,7 +638,7 @@ blend_button_release (Tool *tool, if (return_vals[0].value.pdb_int == PDB_SUCCESS) gdisplays_flush (); else - g_message ("Blend operation failed."); + g_message (_("Blend operation failed.")); procedural_db_destroy_args (return_vals, nreturn_vals); } @@ -662,7 +664,7 @@ blend_motion (Tool *tool, &blend_tool->endx, &blend_tool->endy, FALSE, 1); gtk_statusbar_pop (GTK_STATUSBAR (gdisp->statusbar), blend_tool->context_id); - g_snprintf (vector, STATUSBAR_SIZE, "Blend: %d, %d", + g_snprintf (vector, STATUSBAR_SIZE, _("Blend: %d, %d"), abs(blend_tool->endx - blend_tool->startx), abs(blend_tool->endy - blend_tool->starty)); gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), blend_tool->context_id, vector); @@ -1248,7 +1250,7 @@ gradient_render_pixel(double x, double y, color_t *color, void *render_data) break; default: - fatal_error("gradient_render_pixel(): unknown gradient type %d", + fatal_error(_("gradient_render_pixel(): unknown gradient type %d"), (int) rbd->gradient_type); return; } @@ -1380,7 +1382,7 @@ gradient_fill_region (GImage *gimage, break; default: - fatal_error("gradient_fill_region(): unknown blend mode %d", + fatal_error(_("gradient_fill_region(): unknown blend mode %d"), (int) blend_mode); break; } @@ -1419,7 +1421,7 @@ gradient_fill_region (GImage *gimage, break; default: - fatal_error("gradient_fill_region(): unknown gradient type %d", + fatal_error(_("gradient_fill_region(): unknown gradient type %d"), (int) gradient_type); break; } @@ -1441,7 +1443,7 @@ gradient_fill_region (GImage *gimage, break; default: - fatal_error("gradient_fill_region(): unknown repeat mode %d", + fatal_error(_("gradient_fill_region(): unknown repeat mode %d"), (int) repeat); break; } @@ -1711,71 +1713,71 @@ ProcArg blend_args[] = { { PDB_IMAGE, "image", - "The image" + N_("The image") }, { PDB_DRAWABLE, "drawable", - "The affected drawable" + N_("The affected drawable") }, { PDB_INT32, "blend_mode", - "The type of blend: { FG-BG-RGB (0), FG-BG-HSV (1), FG-TRANS (2), CUSTOM (3) }" + N_("The type of blend: { FG-BG-RGB (0), FG-BG-HSV (1), FG-TRANS (2), CUSTOM (3) }") }, { PDB_INT32, "paint_mode", - "the paint application mode: { NORMAL (0), DISSOLVE (1), BEHIND (2), MULTIPLY/BURN (3), SCREEN (4), OVERLAY (5) DIFFERENCE (6), ADDITION (7), SUBTRACT (8), DARKEN-ONLY (9), LIGHTEN-ONLY (10), HUE (11), SATURATION (12), COLOR (13), VALUE (14), DIVIDE/DODGE (15) }" + N_("the paint application mode: { NORMAL (0), DISSOLVE (1), BEHIND (2), MULTIPLY/BURN (3), SCREEN (4), OVERLAY (5) DIFFERENCE (6), ADDITION (7), SUBTRACT (8), DARKEN-ONLY (9), LIGHTEN-ONLY (10), HUE (11), SATURATION (12), COLOR (13), VALUE (14), DIVIDE/DODGE (15) }") }, { PDB_INT32, "gradient_type", - "The type of gradient: { LINEAR (0), BILINEAR (1), RADIAL (2), SQUARE (3), CONICAL-SYMMETRIC (4), CONICAL-ASYMMETRIC (5), SHAPEBURST-ANGULAR (6), SHAPEBURST-SPHERICAL (7), SHAPEBURST-DIMPLED (8) }" + N_("The type of gradient: { LINEAR (0), BILINEAR (1), RADIAL (2), SQUARE (3), CONICAL-SYMMETRIC (4), CONICAL-ASYMMETRIC (5), SHAPEBURST-ANGULAR (6), SHAPEBURST-SPHERICAL (7), SHAPEBURST-DIMPLED (8) }") }, { PDB_FLOAT, "opacity", - "The opacity of the final blend (0 <= opacity <= 100)" + N_("The opacity of the final blend (0 <= opacity <= 100)") }, { PDB_FLOAT, "offset", - "Offset relates to the starting and ending coordinates specified for the blend. This parameter is mode depndent (0 <= offset)" + N_("Offset relates to the starting and ending coordinates specified for the blend. This parameter is mode depndent (0 <= offset)") }, { PDB_INT32, "repeat", - "Repeat mode: { REPEAT-NONE (0), REPEAT-SAWTOOTH (1), REPEAT-TRIANGULAR (2) }" + N_("Repeat mode: { REPEAT-NONE (0), REPEAT-SAWTOOTH (1), REPEAT-TRIANGULAR (2) }") }, { PDB_INT32, "supersample", - "Do adaptive supersampling (true / false)" + N_("Do adaptive supersampling (true / false)") }, { PDB_INT32, "max_depth", - "Maximum recursion levels for supersampling" + N_("Maximum recursion levels for supersampling") }, { PDB_FLOAT, "threshold", - "Supersampling threshold" + N_("Supersampling threshold") }, { PDB_FLOAT, "x1", - "The x coordinate of this blend's starting point" + N_("The x coordinate of this blend's starting point") }, { PDB_FLOAT, "y1", - "The y coordinate of this blend's starting point" + N_("The y coordinate of this blend's starting point") }, { PDB_FLOAT, "x2", - "The x coordinate of this blend's ending point" + N_("The x coordinate of this blend's ending point") }, { PDB_FLOAT, "y2", - "The y coordinate of this blend's ending point" + N_("The y coordinate of this blend's ending point") } }; ProcRecord blend_proc = { "gimp_blend", - "Blend between the starting and ending coordinates with the specified blend mode and gradient type.", - "This tool requires information on the paint application mode, the blend mode, and the gradient type. It creates the specified variety of blend using the starting and ending coordinates as defined for each gradient type.", + N_("Blend between the starting and ending coordinates with the specified blend mode and gradient type."), + N_("This tool requires information on the paint application mode, the blend mode, and the gradient type. It creates the specified variety of blend using the starting and ending coordinates as defined for each gradient type."), "Spencer Kimball & Peter Mattis & Federico Mena Quintero", "Spencer Kimball & Peter Mattis & Federico Mena Quintero", "1995-1996", diff --git a/app/tools/brightness_contrast.c b/app/tools/brightness_contrast.c index 3e0de2157f..17f6d2afd0 100644 --- a/app/tools/brightness_contrast.c +++ b/app/tools/brightness_contrast.c @@ -28,6 +28,8 @@ #include "image_map.h" #include "interface.h" +#include "libgimp/gimpintl.h" + #define TEXT_WIDTH 45 #define TEXT_HEIGHT 25 #define SLIDER_WIDTH 200 @@ -240,7 +242,7 @@ tools_new_brightness_contrast () /* The tool options */ if (!brightness_contrast_options) brightness_contrast_options = tools_register_no_options (BRIGHTNESS_CONTRAST, - "Brightness-Contrast Options"); + _("Brightness-Contrast Options")); tool = (Tool *) g_malloc (sizeof (Tool)); private = (BrightnessContrast *) g_malloc (sizeof (BrightnessContrast)); @@ -282,7 +284,7 @@ brightness_contrast_initialize (GDisplay *gdisp) { if (drawable_indexed (gimage_active_drawable (gdisp->gimage))) { - g_message ("Brightness-Contrast does not operate on indexed drawables."); + g_message (_("Brightness-Contrast does not operate on indexed drawables.")); return; } @@ -313,8 +315,8 @@ brightness_contrast_initialize (GDisplay *gdisp) /* the action area structure */ static ActionAreaItem action_items[] = { - { "OK", brightness_contrast_ok_callback, NULL, NULL }, - { "Cancel", brightness_contrast_cancel_callback, NULL, NULL } + { N_("OK"), brightness_contrast_ok_callback, NULL, NULL }, + { N_("Cancel"), brightness_contrast_cancel_callback, NULL, NULL } }; static BrightnessContrastDialog * @@ -335,7 +337,7 @@ brightness_contrast_new_dialog () /* The shell and main vbox */ bcd->shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (bcd->shell), "brightness_contrast", "Gimp"); - gtk_window_set_title (GTK_WINDOW (bcd->shell), "Brightness-Contrast"); + gtk_window_set_title (GTK_WINDOW (bcd->shell), N_("Brightness-Contrast")); /* handle wm close signal */ gtk_signal_connect (GTK_OBJECT (bcd->shell), "delete_event", @@ -351,7 +353,7 @@ brightness_contrast_new_dialog () gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, FALSE, 0); /* Create the brightness scale widget */ - label = gtk_label_new ("Brightness"); + label = gtk_label_new (_("Brightness")); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2); @@ -385,7 +387,7 @@ brightness_contrast_new_dialog () /* Create the contrast scale widget */ - label = gtk_label_new ("Contrast"); + label = gtk_label_new (_("Contrast")); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2); @@ -423,7 +425,7 @@ brightness_contrast_new_dialog () gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); /* The preview toggle */ - toggle = gtk_check_button_new_with_label ("Preview"); + toggle = gtk_check_button_new_with_label (_("Preview")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), bcd->preview); gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -479,7 +481,7 @@ static void brightness_contrast_preview (BrightnessContrastDialog *bcd) { if (!bcd->image_map) - g_message ("brightness_contrast_preview(): No image map"); + g_message (_("brightness_contrast_preview(): No image map")); active_tool->preserve = TRUE; image_map_apply (bcd->image_map, brightness_contrast, (void *) bcd); active_tool->preserve = FALSE; @@ -643,27 +645,27 @@ ProcArg brightness_contrast_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_INT32, "brightness", - "brightness adjustment: (-127 <= brightness <= 127)" + N_("brightness adjustment: (-127 <= brightness <= 127)") }, { PDB_INT32, "contrast", - "constrast adjustment: (-127 <= contrast <= 127)" + N_("constrast adjustment: (-127 <= contrast <= 127)") } }; ProcRecord brightness_contrast_proc = { "gimp_brightness_contrast", - "Modify brightness/contrast in the specified drawable", - "This procedures allows the brightness and contrast of the specified drawable to be modified. Both 'brightness' and 'contrast' parameters are defined between -127 and 127.", + N_("Modify brightness/contrast in the specified drawable"), + N_("This procedures allows the brightness and contrast of the specified drawable to be modified. Both 'brightness' and 'contrast' parameters are defined between -127 and 127."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1997", diff --git a/app/tools/bucket_fill.c b/app/tools/bucket_fill.c index 950fe7945b..efaf158ed4 100644 --- a/app/tools/bucket_fill.c +++ b/app/tools/bucket_fill.c @@ -31,6 +31,8 @@ #include "tools.h" #include "undo.h" +#include "libgimp/gimpintl.h" + /* the Bucket Fill structures */ typedef enum { @@ -141,8 +143,8 @@ create_bucket_options (void) int i; char *button_names[2] = { - "Color Fill", - "Pattern Fill" + N_("Color Fill"), + N_("Pattern Fill") }; /* the new options structure */ @@ -157,7 +159,7 @@ create_bucket_options (void) vbox = gtk_vbox_new (FALSE, 1); /* the main label */ - label = gtk_label_new ("Bucket Fill Options"); + label = gtk_label_new (_("Bucket Fill Options")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -165,7 +167,7 @@ create_bucket_options (void) hbox = gtk_hbox_new (FALSE, 1); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); - label = gtk_label_new ("Fill Opacity"); + label = gtk_label_new (_("Fill Opacity")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -184,7 +186,7 @@ create_bucket_options (void) hbox = gtk_hbox_new (FALSE, 1); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); - label = gtk_label_new ("Fill Threshold"); + label = gtk_label_new (_("Fill Threshold")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -203,7 +205,7 @@ create_bucket_options (void) hbox = gtk_hbox_new (FALSE, 1); gtk_container_border_width (GTK_CONTAINER (hbox), 0); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); - label = gtk_label_new ("Mode:"); + label = gtk_label_new (_("Mode:")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 2); menu = create_paint_mode_menu (bucket_fill_paint_mode_callback,NULL); option_menu = gtk_option_menu_new (); @@ -214,7 +216,7 @@ create_bucket_options (void) gtk_widget_show (hbox); /* the radio frame and box */ - radio_frame = gtk_frame_new ("Fill Type"); + radio_frame = gtk_frame_new (_("Fill Type")); gtk_box_pack_start (GTK_BOX (vbox), radio_frame, FALSE, FALSE, 0); radio_box = gtk_vbox_new (FALSE, 1); @@ -236,7 +238,7 @@ create_bucket_options (void) gtk_widget_show (radio_frame); /* the sample merged toggle */ - sample_merged_toggle = gtk_check_button_new_with_label ("Sample Merged"); + sample_merged_toggle = gtk_check_button_new_with_label (_("Sample Merged")); gtk_signal_connect (GTK_OBJECT (sample_merged_toggle), "toggled", (GtkSignalFunc) bucket_fill_toggle_update, &options->sample_merged); @@ -328,7 +330,7 @@ bucket_fill_button_release (tool, bevent, gdisp_ptr) if (return_vals[0].value.pdb_int == PDB_SUCCESS) gdisplays_flush (); else - g_message ("Bucket Fill operation failed."); + g_message (_("Bucket Fill operation failed.")); procedural_db_destroy_args (return_vals, nreturn_vals); } @@ -425,7 +427,7 @@ bucket_fill (gimage, drawable, fill_mode, paint_mode, if (!pattern) { - g_message ("No available patterns for this operation."); + g_message (_("No available patterns for this operation.")); return; } @@ -698,47 +700,47 @@ ProcArg bucket_fill_args[] = { { PDB_IMAGE, "image", - "The image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "The affected drawable" + N_("the affected drawable") }, { PDB_INT32, "fill_mode", - "The type of fill: { FG-BUCKET-FILL (0), BG-BUCKET-FILL (1), PATTERN-BUCKET-FILL (2) }" + N_("the type of fill: { FG-BUCKET-FILL (0), BG-BUCKET-FILL (1), PATTERN-BUCKET-FILL (2) }") }, { PDB_INT32, "paint_mode", - "the paint application mode: { NORMAL (0), DISSOLVE (1), BEHIND (2), MULTIPLY/BURN (3), SCREEN (4), OVERLAY (5) DIFFERENCE (6), ADDITION (7), SUBTRACT (8), DARKEN-ONLY (9), LIGHTEN-ONLY (10), HUE (11), SATURATION (12), COLOR (13), VALUE (14), DIVIDE/DODGE (15) }" + N_("the paint application mode: { NORMAL (0), DISSOLVE (1), BEHIND (2), MULTIPLY/BURN (3), SCREEN (4), OVERLAY (5) DIFFERENCE (6), ADDITION (7), SUBTRACT (8), DARKEN-ONLY (9), LIGHTEN-ONLY (10), HUE (11), SATURATION (12), COLOR (13), VALUE (14), DIVIDE/DODGE (15) }") }, { PDB_FLOAT, "opacity", - "The opacity of the final bucket fill (0 <= opacity <= 100)" + N_("the opacity of the final bucket fill (0 <= opacity <= 100)") }, { PDB_FLOAT, "threshold", - "The threshold determines how extensive the seed fill will be. It's value is specified in terms of intensity levels (0 <= threshold <= 255). This parameter is only valid when there is no selection in the specified image." + N_("the threshold determines how extensive the seed fill will be. It's value is specified in terms of intensity levels (0 <= threshold <= 255). This parameter is only valid when there is no selection in the specified image.") }, { PDB_INT32, "sample_merged", - "use the composite image, not the drawable" + N_("use the composite image, not the drawable") }, { PDB_FLOAT, "x", - "The x coordinate of this bucket fill's application. This parameter is only valid when there is no selection in the specified image." + N_("the x coordinate of this bucket fill's application. This parameter is only valid when there is no selection in the specified image.") }, { PDB_FLOAT, "y", - "The y coordinate of this bucket fill's application. This parameter is only valid when there is no selection in the specified image." + N_("the y coordinate of this bucket fill's application. This parameter is only valid when there is no selection in the specified image.") }, }; ProcRecord bucket_fill_proc = { "gimp_bucket_fill", - "Fill the area specified either by the current selection if there is one, or by a seed fill starting at the specified coordinates.", - "This tool requires information on the paint application mode, and the fill mode, which can either be in the foreground color, or in the currently active pattern. If there is no selection, a seed fill is executed at the specified coordinates and extends outward in keeping with the threshold parameter. If there is a selection in the target image, the threshold, sample merged, x, and y arguments are unused. If the sample_merged parameter is non-zero, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of merged sampling, the x,y coordinates are relative to the image's origin; otherwise, they are relative to the drawable's origin.", + N_("Fill the area specified either by the current selection if there is one, or by a seed fill starting at the specified coordinates."), + N_("This tool requires information on the paint application mode, and the fill mode, which can either be in the foreground color, or in the currently active pattern. If there is no selection, a seed fill is executed at the specified coordinates and extends outward in keeping with the threshold parameter. If there is a selection in the target image, the threshold, sample merged, x, and y arguments are unused. If the sample_merged parameter is non-zero, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of merged sampling, the x,y coordinates are relative to the image's origin; otherwise, they are relative to the drawable's origin."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/tools/by_color_select.c b/app/tools/by_color_select.c index 2cbbc9e495..8dcb7b3893 100644 --- a/app/tools/by_color_select.c +++ b/app/tools/by_color_select.c @@ -30,6 +30,8 @@ #include "gdisplay.h" #include "rect_select.h" +#include "libgimp/gimpintl.h" + #include "tile.h" /* ick. */ #define DEFAULT_FUZZINESS 15 @@ -547,10 +549,10 @@ by_color_select_new_dialog () int i; char *button_names[4] = { - "Replace", - "Add", - "Subtract", - "Intersect" + N_("Replace"), + N_("Add"), + N_("Subtract"), + N_("Intersect") }; int button_values[4] = { @@ -568,7 +570,7 @@ by_color_select_new_dialog () /* The shell and main vbox */ bcd->shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (bcd->shell), "by_color_selection", "Gimp"); - gtk_window_set_title (GTK_WINDOW (bcd->shell), "By Color Selection"); + gtk_window_set_title (GTK_WINDOW (bcd->shell), _("By Color Selection")); gtk_container_border_width (GTK_CONTAINER (GTK_DIALOG (bcd->shell)->action_area), 2); /* handle the wm close signal */ @@ -611,14 +613,14 @@ by_color_select_new_dialog () /* Create the active image label */ util_box = gtk_hbox_new (FALSE, 2); gtk_box_pack_start (GTK_BOX (options_box), util_box, FALSE, FALSE, 0); - bcd->gimage_name = gtk_label_new ("Inactive"); + bcd->gimage_name = gtk_label_new (_("Inactive")); gtk_box_pack_start (GTK_BOX (util_box), bcd->gimage_name, FALSE, FALSE, 2); gtk_widget_show (bcd->gimage_name); gtk_widget_show (util_box); /* Create the selection mode radio box */ - frame = gtk_frame_new ("Selection Mode"); + frame = gtk_frame_new (_("Selection Mode")); gtk_box_pack_start (GTK_BOX (options_box), frame, FALSE, FALSE, 0); radio_box = gtk_vbox_new (FALSE, 2); @@ -641,7 +643,7 @@ by_color_select_new_dialog () /* Create the opacity scale widget */ util_box = gtk_vbox_new (FALSE, 2); gtk_box_pack_start (GTK_BOX (options_box), util_box, FALSE, FALSE, 0); - label = gtk_label_new ("Fuzziness Threshold"); + label = gtk_label_new (_("Fuzziness Threshold")); gtk_box_pack_start (GTK_BOX (util_box), label, FALSE, FALSE, 2); data = gtk_adjustment_new (bcd->threshold, 0.0, 255.0, 1.0, 1.0, 0.0); slider = gtk_hscale_new (GTK_ADJUSTMENT (data)); @@ -657,7 +659,7 @@ by_color_select_new_dialog () gtk_widget_show (util_box); /* The reset push button */ - push_button = gtk_button_new_with_label ("Reset"); + push_button = gtk_button_new_with_label (_("Reset")); GTK_WIDGET_SET_FLAGS (push_button, GTK_CAN_DEFAULT); gtk_box_pack_start (GTK_BOX (GTK_DIALOG (bcd->shell)->action_area), push_button, TRUE, TRUE, 0); gtk_signal_connect (GTK_OBJECT (push_button), "clicked", @@ -667,7 +669,7 @@ by_color_select_new_dialog () gtk_widget_show (push_button); /* The close push button */ - push_button = gtk_button_new_with_label ("Close"); + push_button = gtk_button_new_with_label (_("Close")); GTK_WIDGET_SET_FLAGS (push_button, GTK_CAN_DEFAULT); gtk_box_pack_start (GTK_BOX (GTK_DIALOG (bcd->shell)->action_area), push_button, TRUE, TRUE, 0); gtk_signal_connect (GTK_OBJECT (push_button), "clicked", @@ -971,47 +973,47 @@ ProcArg by_color_select_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_COLOR, "color", - "the color to select" + N_("the color to select") }, { PDB_INT32, "threshold", - "threshold in intensity levels: 0 <= threshold <= 255" + N_("threshold in intensity levels: 0 <= threshold <= 255") }, { PDB_INT32, "operation", - "the selection operation: { ADD (0), SUB (1), REPLACE (2), INTERSECT (3) }" + N_("the selection operation: { ADD (0), SUB (1), REPLACE (2), INTERSECT (3) }") }, { PDB_INT32, "antialias", - "antialiasing On/Off" + N_("antialiasing On/Off") }, { PDB_INT32, "feather", - "feather option for selections" + N_("feather option for selections") }, { PDB_FLOAT, "feather_radius", - "radius for feather operation" + N_("radius for feather operation") }, { PDB_INT32, "sample_merged", - "use the composite image, not the drawable" + N_("use the composite image, not the drawable") } }; ProcRecord by_color_select_proc = { "gimp_by_color_select", - "Create a selection by selecting all pixels (in the specified drawable) with the same (or similar) color to that specified.", - "This tool creates a selection over the specified image. A by-color selection is determined by the supplied color under the constraints of the specified threshold. Essentially, all pixels (in the drawable) that have color sufficiently close to the specified color (as determined by the threshold value) are included in the selection. The antialiasing parameter allows the final selection mask to contain intermediate values based on close misses to the threshold bar. Feathering can be enabled optionally and is controlled with the \"feather_radius\" paramter. If the sample_merged parameter is non-zero, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of a merged sampling, the supplied drawable is ignored.", + N_("Create a selection by selecting all pixels (in the specified drawable) with the same (or similar) color to that specified."), + N_("This tool creates a selection over the specified image. A by-color selection is determined by the supplied color under the constraints of the specified threshold. Essentially, all pixels (in the drawable) that have color sufficiently close to the specified color (as determined by the threshold value) are included in the selection. The antialiasing parameter allows the final selection mask to contain intermediate values based on close misses to the threshold bar. Feathering can be enabled optionally and is controlled with the \"feather_radius\" paramter. If the sample_merged parameter is non-zero, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of a merged sampling, the supplied drawable is ignored."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/tools/clone.c b/app/tools/clone.c index 154d2e8a3a..bda1348195 100644 --- a/app/tools/clone.c +++ b/app/tools/clone.c @@ -31,6 +31,8 @@ #include "selection.h" #include "tools.h" +#include "libgimp/gimpintl.h" + #define TARGET_HEIGHT 15 #define TARGET_WIDTH 15 @@ -112,8 +114,8 @@ create_clone_options (void) int i; char *button_names[2] = { - "Image Source", - "Pattern Source" + N_("Image Source"), + N_("Pattern Source") }; /* the new options structure */ @@ -125,12 +127,12 @@ create_clone_options (void) vbox = gtk_vbox_new (FALSE, 1); /* the main label */ - label = gtk_label_new ("Clone Tool Options"); + label = gtk_label_new (_("Clone Tool Options")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); /* the radio frame and box */ - radio_frame = gtk_frame_new ("Source"); + radio_frame = gtk_frame_new (_("Source")); gtk_box_pack_start (GTK_BOX (vbox), radio_frame, FALSE, FALSE, 0); radio_box = gtk_vbox_new (FALSE, 1); @@ -151,7 +153,7 @@ create_clone_options (void) gtk_widget_show (radio_frame); /* the aligned toggle button */ - aligned_toggle = gtk_check_button_new_with_label ("Aligned"); + aligned_toggle = gtk_check_button_new_with_label (_("Aligned")); gtk_box_pack_start (GTK_BOX (vbox), aligned_toggle, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (aligned_toggle), "toggled", (GtkSignalFunc) clone_toggle_update, @@ -228,7 +230,7 @@ clone_paint_func (PaintCore *paint_core, if (clone_options->type == PatternClone) if (!get_active_pattern ()) - g_message ("No patterns available for this operation."); + g_message (_("No patterns available for this operation.")); break; case FINISH_PAINT : @@ -541,35 +543,35 @@ ProcArg clone_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_DRAWABLE, "src_drawable", - "the source drawable" + N_("the source drawable") }, { PDB_INT32, "clone_type", - "the type of clone: { IMAGE-CLONE (0), PATTERN-CLONE (1) }" + N_("the type of clone: { IMAGE-CLONE (0), PATTERN-CLONE (1) }") }, { PDB_FLOAT, "src_x", - "the x coordinate in the source image" + N_("the x coordinate in the source image") }, { PDB_FLOAT, "src_y", - "the y coordinate in the source image" + N_("the y coordinate in the source image") }, { PDB_INT32, "num_strokes", - "number of stroke control points (count each coordinate as 2 points)" + N_("number of stroke control points (count each coordinate as 2 points)") }, { PDB_FLOATARRAY, "strokes", - "array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}" + N_("array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}") } }; @@ -577,8 +579,8 @@ ProcArg clone_args[] = ProcRecord clone_proc = { "gimp_clone", - "Clone from the source to the dest drawable using the current brush", - "This tool clones (copies) from the source drawable starting at the specified source coordinates to the dest drawable. If the \"clone_type\" argument is set to PATTERN-CLONE, then the current pattern is used as the source and the \"src_drawable\" argument is ignored. Pattern cloning assumes a tileable pattern and mods the sum of the src coordinates and subsequent stroke offsets with the width and height of the pattern. For image cloning, if the sum of the src coordinates and subsequent stroke offsets exceeds the extents of the src drawable, then no paint is transferred. The clone tool is capable of transforming between any image types including RGB->Indexed--although converting from any type to indexed is significantly slower.", + N_("Clone from the source to the dest drawable using the current brush"), + N_("This tool clones (copies) from the source drawable starting at the specified source coordinates to the dest drawable. If the \"clone_type\" argument is set to PATTERN-CLONE, then the current pattern is used as the source and the \"src_drawable\" argument is ignored. Pattern cloning assumes a tileable pattern and mods the sum of the src coordinates and subsequent stroke offsets with the width and height of the pattern. For image cloning, if the sum of the src coordinates and subsequent stroke offsets exceeds the extents of the src drawable, then no paint is transferred. The clone tool is capable of transforming between any image types including RGB->Indexed--although converting from any type to indexed is significantly slower."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/tools/color_balance.c b/app/tools/color_balance.c index 178ec52906..240e478815 100644 --- a/app/tools/color_balance.c +++ b/app/tools/color_balance.c @@ -29,6 +29,8 @@ #include "image_map.h" #include "interface.h" +#include "libgimp/gimpintl.h" + #define TEXT_WIDTH 55 #define SHADOWS 0 @@ -273,7 +275,7 @@ tools_new_color_balance () /* The tool options */ if (!color_balance_options) - color_balance_options = tools_register_no_options (COLOR_BALANCE, "Color Balance Options"); + color_balance_options = tools_register_no_options (COLOR_BALANCE, _("Color Balance Options")); tool = (Tool *) g_malloc (sizeof (Tool)); private = (ColorBalance *) g_malloc (sizeof (ColorBalance)); @@ -317,7 +319,7 @@ color_balance_initialize (GDisplay *gdisp) if (! drawable_color (gimage_active_drawable (gdisp->gimage))) { - g_message ("Color balance operates only on RGB color drawables."); + g_message (_("Color balance operates only on RGB color drawables.")); return; } @@ -349,8 +351,8 @@ color_balance_initialize (GDisplay *gdisp) /* the action area structure */ static ActionAreaItem action_items[] = { - { "OK", color_balance_ok_callback, NULL, NULL }, - { "Cancel", color_balance_cancel_callback, NULL, NULL } + { N_("OK"), color_balance_ok_callback, NULL, NULL }, + { N_("Cancel"), color_balance_cancel_callback, NULL, NULL } }; static ColorBalanceDialog * @@ -371,9 +373,9 @@ color_balance_new_dialog () int i; char *appl_mode_names[3] = { - "Shadows", - "Midtones", - "Highlights" + N_("Shadows"), + N_("Midtones"), + N_("Highlights") }; ActionCallback appl_mode_callbacks[3] = { @@ -390,7 +392,7 @@ color_balance_new_dialog () /* The shell and main vbox */ cbd->shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (cbd->shell), "color_balance", "Gimp"); - gtk_window_set_title (GTK_WINDOW (cbd->shell), "Color Balance"); + gtk_window_set_title (GTK_WINDOW (cbd->shell), N_("Color Balance")); /* handle the wm close signal */ gtk_signal_connect (GTK_OBJECT (cbd->shell), "delete_event", @@ -405,7 +407,7 @@ color_balance_new_dialog () hbox = gtk_hbox_new (TRUE, 2); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); - label = gtk_label_new ("Color Levels: "); + label = gtk_label_new (_("Color Levels: ")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, FALSE, 0); gtk_widget_show (label); @@ -444,7 +446,7 @@ color_balance_new_dialog () gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, FALSE, 0); /* Create the cyan-red scale widget */ - start_label = gtk_label_new ("Cyan"); + start_label = gtk_label_new (_("Cyan")); gtk_misc_set_alignment (GTK_MISC (start_label), 1.0, 1.0); gtk_table_attach (GTK_TABLE (table), start_label, 0, 1, 0, 1, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2); @@ -461,7 +463,7 @@ color_balance_new_dialog () gtk_signal_connect (GTK_OBJECT (data), "value_changed", (GtkSignalFunc) color_balance_cr_scale_update, cbd); - end_label = gtk_label_new ("Red"); + end_label = gtk_label_new (_("Red")); gtk_misc_set_alignment (GTK_MISC (end_label), 0.0, 1.0); gtk_table_attach (GTK_TABLE (table), end_label, 2, 3, 0, 1, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2); @@ -471,7 +473,7 @@ color_balance_new_dialog () gtk_widget_show (slider); /* Create the magenta-green scale widget */ - start_label = gtk_label_new ("Magenta"); + start_label = gtk_label_new (_("Magenta")); gtk_misc_set_alignment (GTK_MISC (start_label), 1.0, 1.0); gtk_table_attach (GTK_TABLE (table), start_label, 0, 1, 1, 2, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2); @@ -488,7 +490,7 @@ color_balance_new_dialog () gtk_signal_connect (GTK_OBJECT (data), "value_changed", (GtkSignalFunc) color_balance_mg_scale_update, cbd); - end_label = gtk_label_new ("Green"); + end_label = gtk_label_new (_("Green")); gtk_misc_set_alignment (GTK_MISC (end_label), 0.0, 1.0); gtk_table_attach (GTK_TABLE (table), end_label, 2, 3, 1, 2, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2); @@ -498,7 +500,7 @@ color_balance_new_dialog () gtk_widget_show (slider); /* Create the yellow-blue scale widget */ - start_label = gtk_label_new ("Yellow"); + start_label = gtk_label_new (_("Yellow")); gtk_misc_set_alignment (GTK_MISC (start_label), 1.0, 1.0); gtk_table_attach (GTK_TABLE (table), start_label, 0, 1, 2, 3, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2); @@ -515,7 +517,7 @@ color_balance_new_dialog () gtk_signal_connect (GTK_OBJECT (data), "value_changed", (GtkSignalFunc) color_balance_yb_scale_update, cbd); - end_label = gtk_label_new ("Blue"); + end_label = gtk_label_new (_("Blue")); gtk_misc_set_alignment (GTK_MISC (end_label), 0.0, 1.0); gtk_table_attach (GTK_TABLE (table), end_label, 2, 3, 2, 3, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2); @@ -529,7 +531,7 @@ color_balance_new_dialog () gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); /* The preview toggle */ - toggle = gtk_check_button_new_with_label ("Preview"); + toggle = gtk_check_button_new_with_label (_("Preview")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), cbd->preview); gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -538,7 +540,7 @@ color_balance_new_dialog () gtk_widget_show (toggle); /* The preserve luminosity toggle */ - toggle = gtk_check_button_new_with_label ("Preserve Luminosity"); + toggle = gtk_check_button_new_with_label (_("Preserve Luminosity")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), cbd->preserve_luminosity); gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -618,7 +620,7 @@ static void color_balance_preview (ColorBalanceDialog *cbd) { if (!cbd->image_map) - g_message ("color_balance_preview(): No image map"); + g_message (_("color_balance_preview(): No image map")); active_tool->preserve = TRUE; image_map_apply (cbd->image_map, color_balance, (void *) cbd); active_tool->preserve = FALSE; @@ -877,39 +879,39 @@ ProcArg color_balance_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_INT32, "transfer_mode", - "Transfer mode: { SHADOWS (0), MIDTONES (1), HIGHLIGHTS (2) }" + N_("Transfer mode: { SHADOWS (0), MIDTONES (1), HIGHLIGHTS (2) }") }, { PDB_INT32, "preserve_lum", - "Preserve luminosity values at each pixel" + N_("Preserve luminosity values at each pixel") }, { PDB_FLOAT, "cyan_red", - "Cyan-Red color balance: (-100 <= cyan_red <= 100)" + N_("Cyan-Red color balance: (-100 <= cyan_red <= 100)") }, { PDB_FLOAT, "magenta_green", - "Magenta-Green color balance: (-100 <= magenta_green <= 100)" + N_("Magenta-Green color balance: (-100 <= magenta_green <= 100)") }, { PDB_FLOAT, "yellow_blue", - "Yellow-Blue color balance: (-100 <= yellow_blue <= 100)" + N_("Yellow-Blue color balance: (-100 <= yellow_blue <= 100)") } }; ProcRecord color_balance_proc = { "gimp_color_balance", - "Modify the color balance of the specified drawable", - "Modify the color balance of the specified drawable. There are three axis which can be modified: cyan-red, magenta-green, and yellow-blue. Negative values increase the amount of the former, positive values increase the amount of the latter. Color balance can be controlled with the 'transfer_mode' setting, which allows shadows, midtones, and highlights in an image to be affected differently. The 'preserve_lum' parameter, if non-zero, ensures that the luminosity of each pixel remains fixed.", + N_("Modify the color balance of the specified drawable"), + N_("Modify the color balance of the specified drawable. There are three axis which can be modified: cyan-red, magenta-green, and yellow-blue. Negative values increase the amount of the former, positive values increase the amount of the latter. Color balance can be controlled with the 'transfer_mode' setting, which allows shadows, midtones, and highlights in an image to be affected differently. The 'preserve_lum' parameter, if non-zero, ensures that the luminosity of each pixel remains fixed."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1997", diff --git a/app/tools/color_picker.c b/app/tools/color_picker.c index a5600f8c5d..2fede4fae7 100644 --- a/app/tools/color_picker.c +++ b/app/tools/color_picker.c @@ -26,6 +26,8 @@ #include "palette.h" #include "tools.h" +#include "libgimp/gimpintl.h" + #include "tile.h" /* ick. */ /* maximum information buffer size */ @@ -101,12 +103,12 @@ create_color_picker_options (void) vbox = gtk_vbox_new (FALSE, 1); /* the main label */ - label = gtk_label_new ("Color Picker Options"); + label = gtk_label_new (_("Color Picker Options")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); /* the sample merged toggle button */ - sample_merged_toggle = gtk_check_button_new_with_label ("Sample Merged"); + sample_merged_toggle = gtk_check_button_new_with_label (_("Sample Merged")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (sample_merged_toggle), options->sample_merged); gtk_box_pack_start (GTK_BOX (vbox), sample_merged_toggle, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (sample_merged_toggle), "toggled", @@ -123,7 +125,7 @@ create_color_picker_options (void) static ActionAreaItem action_items[] = { - { "Close", color_picker_info_window_close_callback, NULL, NULL }, + { N_("Close"), color_picker_info_window_close_callback, NULL, NULL }, }; static void @@ -146,33 +148,33 @@ color_picker_button_press (Tool *tool, if (color_picker_info) info_dialog_free (color_picker_info); - color_picker_info = info_dialog_new ("Color Picker"); + color_picker_info = info_dialog_new (_("Color Picker")); active_drawable = gimage_active_drawable (gdisp->gimage); /* if the gdisplay is for a color image, the dialog must have RGB */ switch (drawable_type (active_drawable)) { case RGB_GIMAGE: case RGBA_GIMAGE: - info_dialog_add_field (color_picker_info, "Red", red_buf, NULL, NULL); - info_dialog_add_field (color_picker_info, "Green", green_buf, NULL, NULL); - info_dialog_add_field (color_picker_info, "Blue", blue_buf, NULL, NULL); - info_dialog_add_field (color_picker_info, "Alpha", alpha_buf, NULL, NULL); - info_dialog_add_field (color_picker_info, "Hex Triplet", hex_buf, NULL, NULL); + info_dialog_add_field (color_picker_info, _("Red"), red_buf, NULL, NULL); + info_dialog_add_field (color_picker_info, _("Green"), green_buf, NULL, NULL); + info_dialog_add_field (color_picker_info, _("Blue"), blue_buf, NULL, NULL); + info_dialog_add_field (color_picker_info, _("Alpha"), alpha_buf, NULL, NULL); + info_dialog_add_field (color_picker_info, _("Hex Triplet"), hex_buf, NULL, NULL); break; case INDEXED_GIMAGE: case INDEXEDA_GIMAGE: - info_dialog_add_field (color_picker_info, "Index", index_buf, NULL, NULL); - info_dialog_add_field (color_picker_info, "Alpha", alpha_buf, NULL, NULL); - info_dialog_add_field (color_picker_info, "Red", red_buf, NULL, NULL); - info_dialog_add_field (color_picker_info, "Green", green_buf, NULL, NULL); - info_dialog_add_field (color_picker_info, "Blue", blue_buf, NULL, NULL); - info_dialog_add_field (color_picker_info, "Hex Triplet", hex_buf, NULL, NULL); + info_dialog_add_field (color_picker_info, _("Index"), index_buf, NULL, NULL); + info_dialog_add_field (color_picker_info, _("Alpha"), alpha_buf, NULL, NULL); + info_dialog_add_field (color_picker_info, _("Red"), red_buf, NULL, NULL); + info_dialog_add_field (color_picker_info, _("Green"), green_buf, NULL, NULL); + info_dialog_add_field (color_picker_info, _("Blue"), blue_buf, NULL, NULL); + info_dialog_add_field (color_picker_info, _("Hex Triplet"), hex_buf, NULL, NULL); break; case GRAY_GIMAGE: case GRAYA_GIMAGE: - info_dialog_add_field (color_picker_info, "Intensity", gray_buf, NULL, NULL); - info_dialog_add_field (color_picker_info, "Alpha", alpha_buf, NULL, NULL); - info_dialog_add_field (color_picker_info, "Hex Triplet", hex_buf, NULL, NULL); + info_dialog_add_field (color_picker_info, _("Intensity"), gray_buf, NULL, NULL); + info_dialog_add_field (color_picker_info, _("Alpha"), alpha_buf, NULL, NULL); + info_dialog_add_field (color_picker_info, _("Hex Triplet"), hex_buf, NULL, NULL); break; default : @@ -381,13 +383,13 @@ color_picker_info_update (Tool *tool, { if (!valid) { - sprintf (red_buf, "N/A"); - sprintf (green_buf, "N/A"); - sprintf (blue_buf, "N/A"); - sprintf (alpha_buf, "N/A"); - sprintf (index_buf, "N/A"); - sprintf (gray_buf, "N/A"); - sprintf (hex_buf, "N/A"); + sprintf (red_buf, _("N/A")); + sprintf (green_buf, _("N/A")); + sprintf (blue_buf, _("N/A")); + sprintf (alpha_buf, _("N/A")); + sprintf (index_buf, _("N/A")); + sprintf (gray_buf, _("N/A")); + sprintf (hex_buf, _("N/A")); } else { @@ -400,7 +402,7 @@ color_picker_info_update (Tool *tool, if (sample_type == RGBA_GIMAGE) sprintf (alpha_buf, "%d", col_value [ALPHA_PIX]); else - sprintf (alpha_buf, "N/A"); + sprintf (alpha_buf, _("N/A")); sprintf (hex_buf, "#%.2x%.2x%.2x", col_value [RED_PIX], col_value [GREEN_PIX], col_value [BLUE_PIX]); break; @@ -410,7 +412,7 @@ color_picker_info_update (Tool *tool, if (sample_type == INDEXEDA_GIMAGE) sprintf (alpha_buf, "%d", col_value [ALPHA_PIX]); else - sprintf (alpha_buf, "N/A"); + sprintf (alpha_buf, _("N/A")); sprintf (red_buf, "%d", col_value [RED_PIX]); sprintf (green_buf, "%d", col_value [GREEN_PIX]); sprintf (blue_buf, "%d", col_value [BLUE_PIX]); @@ -423,7 +425,7 @@ color_picker_info_update (Tool *tool, if (sample_type == GRAYA_GIMAGE) sprintf (alpha_buf, "%d", col_value [ALPHA_PIX]); else - sprintf (alpha_buf, "N/A"); + sprintf (alpha_buf, _("N/A")); sprintf (hex_buf, "#%.2x%.2x%.2x", col_value [GRAY_PIX], col_value [GRAY_PIX], col_value [GRAY_PIX]); break; @@ -475,27 +477,27 @@ ProcArg color_picker_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_FLOAT, "x", - "x coordinate of upper-left corner of rectangle" + N_("x coordinate of upper-left corner of rectangle") }, { PDB_FLOAT, "y", - "y coordinate of upper-left corner of rectangle" + N_("y coordinate of upper-left corner of rectangle") }, { PDB_INT32, "sample_merged", - "use the composite image, not the drawable" + N_("use the composite image, not the drawable") }, { PDB_INT32, "save_color", - "save the color to the active palette" + N_("save the color to the active palette") } }; @@ -503,15 +505,15 @@ ProcArg color_picker_out_args[] = { { PDB_COLOR, "color", - "the return color" + N_("the return color") } }; ProcRecord color_picker_proc = { "gimp_color_picker", - "Determine the color at the given drawable coordinates", - "This tool determines the color at the specified coordinates. The returned color is an RGB triplet even for grayscale and indexed drawables. If the coordinates lie outside of the extents of the specified drawable, then an error is returned. If the drawable has an alpha channel, the algorithm examines the alpha value of the drawable at the coordinates. If the alpha value is completely transparent (0), then an error is returned. If the sample_merged parameter is non-zero, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of a merged sampling, the supplied drawable is ignored.", + N_("Determine the color at the given drawable coordinates"), + N_("This tool determines the color at the specified coordinates. The returned color is an RGB triplet even for grayscale and indexed drawables. If the coordinates lie outside of the extents of the specified drawable, then an error is returned. If the drawable has an alpha channel, the algorithm examines the alpha value of the drawable at the coordinates. If the alpha value is completely transparent (0), then an error is returned. If the sample_merged parameter is non-zero, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of a merged sampling, the supplied drawable is ignored."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/tools/convolve.c b/app/tools/convolve.c index 4c99b98a46..4440ce8242 100644 --- a/app/tools/convolve.c +++ b/app/tools/convolve.c @@ -29,6 +29,8 @@ #include "tools.h" #include "gimage.h" +#include "libgimp/gimpintl.h" + typedef enum { Blur, @@ -126,9 +128,9 @@ create_convolve_options (void) int i; char *button_names[3] = { - "Blur", - "Sharpen", - "Custom" + N_("Blur"), + N_("Sharpen"), + N_("Custom") }; /* the new options structure */ @@ -140,7 +142,7 @@ create_convolve_options (void) vbox = gtk_vbox_new (FALSE, 2); /* the main label */ - label = gtk_label_new ("Convolver Options"); + label = gtk_label_new (_("Convolver Options")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -148,7 +150,7 @@ create_convolve_options (void) hbox = gtk_hbox_new (FALSE, 1); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); - label = gtk_label_new ("Pressure"); + label = gtk_label_new (_("Pressure")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -424,27 +426,27 @@ ProcArg convolve_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_FLOAT, "pressure", - "the pressure: 0 <= pressure <= 100" + N_("the pressure: 0 <= pressure <= 100") }, { PDB_INT32, "convolve_type", - "convolve type: { BLUR (0), SHARPEN (1) }" + N_("convolve type: { BLUR (0), SHARPEN (1) }") }, { PDB_INT32, "num_strokes", - "number of stroke control points (count each coordinate as 2 points)" + N_("number of stroke control points (count each coordinate as 2 points)") }, { PDB_FLOATARRAY, "strokes", - "array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}" + N_("array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}") } }; @@ -452,8 +454,8 @@ ProcArg convolve_args[] = ProcRecord convolve_proc = { "gimp_convolve", - "Convolve (Blur, Sharpen) using the current brush", - "This tool convolves the specified drawable with either a sharpening or blurring kernel. The pressure parameter controls the magnitude of the operation. Like the paintbrush, this tool linearly interpolates between the specified stroke coordinates.", + N_("Convolve (Blur, Sharpen) using the current brush"), + N_("This tool convolves the specified drawable with either a sharpening or blurring kernel. The pressure parameter controls the magnitude of the operation. Like the paintbrush, this tool linearly interpolates between the specified stroke coordinates."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/tools/crop.c b/app/tools/crop.c index 25b2259729..6b9dd888cd 100644 --- a/app/tools/crop.c +++ b/app/tools/crop.c @@ -29,6 +29,8 @@ #include "info_dialog.h" #include "undo.h" +#include "libgimp/gimpintl.h" + #define STATUSBAR_SIZE 128 typedef struct _crop Crop; @@ -351,7 +353,7 @@ crop_motion (Tool *tool, crop->function == RESIZING_LEFT || crop->function == RESIZING_RIGHT) { gtk_statusbar_pop (GTK_STATUSBAR (gdisp->statusbar), crop->context_id); - g_snprintf (size, STATUSBAR_SIZE, "Crop: %d x %d", + g_snprintf (size, STATUSBAR_SIZE, _("Crop: %d x %d"), (crop->tx2 - crop->tx1), (crop->ty2 - crop->ty1)); gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), crop->context_id, size); } @@ -521,7 +523,7 @@ tools_new_crop () Crop * private; if (! crop_options) - crop_options = tools_register_no_options (CROP, "Crop Tool Options"); + crop_options = tools_register_no_options (CROP, _("Crop Tool Options")); tool = (Tool *) g_malloc (sizeof (Tool)); private = (Crop *) g_malloc (sizeof (Crop)); @@ -701,7 +703,7 @@ crop_start (Tool *tool, /* initialize the statusbar display */ crop->context_id = gtk_statusbar_get_context_id (GTK_STATUSBAR (gdisp->statusbar), "crop"); - gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), crop->context_id, "Crop: 0 x 0"); + gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), crop->context_id, _("Crop: 0 x 0")); draw_core_start (crop->core, gdisp->canvas->window, tool); } @@ -713,22 +715,22 @@ crop_start (Tool *tool, static ActionAreaItem action_items[3] = { - { "Crop", crop_ok_callback, NULL, NULL }, - { "Selection", crop_selection_callback, NULL, NULL }, - { "Close", crop_close_callback, NULL, NULL }, + { N_("Crop"), crop_ok_callback, NULL, NULL }, + { N_("Selection"), crop_selection_callback, NULL, NULL }, + { N_("Close"), crop_close_callback, NULL, NULL }, }; static void crop_info_create (Tool *tool) { /* create the info dialog */ - crop_info = info_dialog_new ("Crop Information"); + crop_info = info_dialog_new (_("Crop Information")); /* add the information fields */ - info_dialog_add_field (crop_info, "X Origin: ", orig_x_buf, crop_orig_x_changed, tool); - info_dialog_add_field (crop_info, "Y Origin: ", orig_y_buf, crop_orig_y_changed, tool); - info_dialog_add_field (crop_info, "Width: ", width_buf, crop_width_changed, tool); - info_dialog_add_field (crop_info, "Height: ", height_buf, crop_height_changed, tool); + info_dialog_add_field (crop_info, _("X Origin: "), orig_x_buf, crop_orig_x_changed, tool); + info_dialog_add_field (crop_info, _("Y Origin: "), orig_y_buf, crop_orig_y_changed, tool); + info_dialog_add_field (crop_info, _("Width: "), width_buf, crop_width_changed, tool); + info_dialog_add_field (crop_info, _("Height: "), height_buf, crop_height_changed, tool); /* Create the action area */ build_action_area (GTK_DIALOG (crop_info->shell), action_items, 3, 0); @@ -941,31 +943,31 @@ ProcArg crop_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_INT32, "new_width", - "new image width: (0 < new_width <= width)" + N_("new image width: (0 < new_width <= width)") }, { PDB_INT32, "new_height", - "new image height: (0 < new_height <= height)" + N_("new image height: (0 < new_height <= height)") }, { PDB_INT32, "offx", - "x offset: (0 <= offx <= (width - new_width))" + N_("x offset: (0 <= offx <= (width - new_width))") }, { PDB_INT32, "offy", - "y offset: (0 <= offy <= (height - new_height))" + N_("y offset: (0 <= offy <= (height - new_height))") } }; ProcRecord crop_proc = { "gimp_crop", - "Crop the image to the specified extents.", - "This procedure crops the image so that it's new width and height are equal to the supplied parameters. Offsets are also provided which describe the position of the previous image's content. All channels and layers within the image are cropped to the new image extents; this includes the image selection mask. If any parameters are out of range, an error is returned.", + N_("Crop the image to the specified extents."), + N_("This procedure crops the image so that it's new width and height are equal to the supplied parameters. Offsets are also provided which describe the position of the previous image's content. All channels and layers within the image are cropped to the new image extents; this includes the image selection mask. If any parameters are out of range, an error is returned."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/tools/curves.c b/app/tools/curves.c index 15512ec6f6..92ef076bbf 100644 --- a/app/tools/curves.c +++ b/app/tools/curves.c @@ -31,6 +31,8 @@ #include "interface.h" #include "curves.h" +#include "libgimp/gimpintl.h" + #define ROUND(x) ((int) ((x) + 0.5)) #define GRAPH 0x1 @@ -274,7 +276,7 @@ tools_new_curves () /* The tool options */ if (!curves_options) - curves_options = tools_register_no_options (CURVES, "Curves Options"); + curves_options = tools_register_no_options (CURVES, _("Curves Options")); tool = (Tool *) g_malloc (sizeof (Tool)); private = (Curves *) g_malloc (sizeof (Curves)); @@ -314,25 +316,25 @@ tools_free_curves (Tool *tool) /* the action area structure */ static ActionAreaItem action_items[] = { - { "Reset", curves_reset_callback, NULL, NULL }, - { "OK", curves_ok_callback, NULL, NULL }, - { "Cancel", curves_cancel_callback, NULL, NULL } + { N_("Reset"), curves_reset_callback, NULL, NULL }, + { N_("OK"), curves_ok_callback, NULL, NULL }, + { N_("Cancel"), curves_cancel_callback, NULL, NULL } }; static MenuItem channel_items[] = { - { "Value", 0, 0, curves_value_callback, NULL, NULL, NULL }, - { "Red", 0, 0, curves_red_callback, NULL, NULL, NULL }, - { "Green", 0, 0, curves_green_callback, NULL, NULL, NULL }, - { "Blue", 0, 0, curves_blue_callback, NULL, NULL, NULL }, - { "Alpha", 0, 0, curves_alpha_callback, NULL, NULL, NULL }, + { N_("Value"), 0, 0, curves_value_callback, NULL, NULL, NULL }, + { N_("Red"), 0, 0, curves_red_callback, NULL, NULL, NULL }, + { N_("Green"), 0, 0, curves_green_callback, NULL, NULL, NULL }, + { N_("Blue"), 0, 0, curves_blue_callback, NULL, NULL, NULL }, + { N_("Alpha"), 0, 0, curves_alpha_callback, NULL, NULL, NULL }, { NULL, 0, 0, NULL, NULL, NULL, NULL } }; static MenuItem curve_type_items[] = { - { "Smooth", 0, 0, curves_smooth_callback, NULL, NULL, NULL }, - { "Free", 0, 0, curves_free_callback, NULL, NULL, NULL }, + { N_("Smooth"), 0, 0, curves_smooth_callback, NULL, NULL, NULL }, + { N_("Free"), 0, 0, curves_free_callback, NULL, NULL, NULL }, { NULL, 0, 0, NULL, NULL, NULL, NULL } }; @@ -343,7 +345,7 @@ curves_initialize (GDisplay *gdisp) if (drawable_indexed (gimage_active_drawable (gdisp->gimage))) { - g_message ("Curves for indexed drawables cannot be adjusted."); + g_message (_("Curves for indexed drawables cannot be adjusted.")); return; } @@ -453,7 +455,7 @@ curves_new_dialog () /* The shell and main vbox */ cd->shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (cd->shell), "curves", "Gimp"); - gtk_window_set_title (GTK_WINDOW (cd->shell), "Curves"); + gtk_window_set_title (GTK_WINDOW (cd->shell), _("Curves")); gtk_signal_connect (GTK_OBJECT (cd->shell), "delete_event", GTK_SIGNAL_FUNC (curves_delete_callback), @@ -467,7 +469,7 @@ curves_new_dialog () channel_hbox = gtk_hbox_new (FALSE, 2); gtk_box_pack_start (GTK_BOX (vbox), channel_hbox, FALSE, FALSE, 0); - label = gtk_label_new ("Modify Curves for Channel: "); + label = gtk_label_new (_("Modify Curves for Channel: ")); gtk_box_pack_start (GTK_BOX (channel_hbox), label, FALSE, FALSE, 0); menu = build_menu (channel_items, NULL); @@ -541,7 +543,7 @@ curves_new_dialog () gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); /* The option menu for selecting the drawing method */ - label = gtk_label_new ("Curve Type: "); + label = gtk_label_new (_("Curve Type: ")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); menu = build_menu (curve_type_items, NULL); @@ -554,7 +556,7 @@ curves_new_dialog () gtk_option_menu_set_menu (GTK_OPTION_MENU (option_menu), menu); /* The preview toggle */ - toggle = gtk_check_button_new_with_label ("Preview"); + toggle = gtk_check_button_new_with_label (_("Preview")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), cd->preview); gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -814,7 +816,7 @@ static void curves_preview (CurvesDialog *cd) { if (!cd->image_map) - g_message ("curves_preview(): No image map"); + g_message (_("curves_preview(): No image map")); active_tool->preserve = TRUE; /* Going to dirty the display... */ @@ -1298,31 +1300,31 @@ ProcArg curves_spline_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_INT32, "channel", - "the channel to modify: { VALUE (0), RED (1), GREEN (2), BLUE (3), ALPHA (4), GRAY (0) }" + N_("the channel to modify: { VALUE (0), RED (1), GREEN (2), BLUE (3), ALPHA (4), GRAY (0) }") }, { PDB_INT32, "num_points", - "the number of values in the control point array ( 3 < num_points <= 32 )" + N_("the number of values in the control point array ( 3 < num_points <= 32 )") }, { PDB_INT8ARRAY, "control_pts", - "the spline control points: { cp1.x, cp1.y, cp2.x, cp2.y, ... }" + N_("the spline control points: { cp1.x, cp1.y, cp2.x, cp2.y, ... }") } }; ProcRecord curves_spline_proc = { "gimp_curves_spline", - "Modifies the intensity curve(s) for specified drawable", - "Modifies the intensity mapping for one channel in the specified drawable. The drawable must be either grayscale or RGB, and the channel can be either an intensity component, or the value. The 'control_pts' parameter is an array of integers which define a set of control points which describe a Catmull Rom spline which yields the final intensity curve. Use the 'gimp_curves_explicit' function to explicitly modify intensity levels.", + N_("Modifies the intensity curve(s) for specified drawable"), + N_("Modifies the intensity mapping for one channel in the specified drawable. The drawable must be either grayscale or RGB, and the channel can be either an intensity component, or the value. The 'control_pts' parameter is an array of integers which define a set of control points which describe a Catmull Rom spline which yields the final intensity curve. Use the 'gimp_curves_explicit' function to explicitly modify intensity levels."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -1456,31 +1458,31 @@ ProcArg curves_explicit_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_INT32, "channel", - "the channel to modify: { VALUE (0), RED (1), GREEN (2), BLUE (3), GRAY (0) }" + N_("the channel to modify: { VALUE (0), RED (1), GREEN (2), BLUE (3), GRAY (0) }") }, { PDB_INT32, "num_bytes", - "the number of bytes in the new curve (always 256)" + N_("the number of bytes in the new curve (always 256)") }, { PDB_INT8ARRAY, "curve", - "the explicit curve" + N_("the explicit curve") } }; ProcRecord curves_explicit_proc = { "gimp_curves_explicit", - "Modifies the intensity curve(s) for specified drawable", - "Modifies the intensity mapping for one channel in the specified drawable. The drawable must be either grayscale or RGB, and the channel can be either an intensity component, or the value. The 'curve' parameter is an array of bytes which explicitly defines how each pixel value in the drawable will be modified. Use the 'gimp_curves_spline' function to modify intensity levels with Catmull Rom splines.", + N_("Modifies the intensity curve(s) for specified drawable"), + N_("Modifies the intensity mapping for one channel in the specified drawable. The drawable must be either grayscale or RGB, and the channel can be either an intensity component, or the value. The 'curve' parameter is an array of bytes which explicitly defines how each pixel value in the drawable will be modified. Use the 'gimp_curves_spline' function to modify intensity levels with Catmull Rom splines."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/tools/edit_selection.c b/app/tools/edit_selection.c index cfa6cac7eb..fe39657205 100644 --- a/app/tools/edit_selection.c +++ b/app/tools/edit_selection.c @@ -28,6 +28,8 @@ #include "gdisplay.h" #include "undo.h" +#include "libgimp/gimpintl.h" + #define EDIT_SELECT_SCROLL_LOCK 0 #define ARROW_VELOCITY 25 #define STATUSBAR_SIZE 128 @@ -149,7 +151,7 @@ init_edit_selection (Tool *tool, /* initialize the statusbar display */ edit_select.context_id = gtk_statusbar_get_context_id (GTK_STATUSBAR (gdisp->statusbar), "edit_select"); - gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), edit_select.context_id, "Move: 0, 0"); + gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), edit_select.context_id, _("Move: 0, 0")); /* Create and start the selection core */ edit_select.core = draw_core_new (edit_selection_draw); @@ -294,7 +296,7 @@ edit_selection_motion (Tool *tool, edit_selection_snap (gdisp, mevent->x, mevent->y); gtk_statusbar_pop (GTK_STATUSBAR(gdisp->statusbar), edit_select.context_id); - g_snprintf (offset, STATUSBAR_SIZE, "Move: %d, %d", + g_snprintf (offset, STATUSBAR_SIZE, _("Move: %d, %d"), (edit_select.x - edit_select.origx), (edit_select.y - edit_select.origy)); gtk_statusbar_push (GTK_STATUSBAR(gdisp->statusbar), edit_select.context_id, offset); diff --git a/app/tools/ellipse_select.c b/app/tools/ellipse_select.c index 0996d51773..1006660e55 100644 --- a/app/tools/ellipse_select.c +++ b/app/tools/ellipse_select.c @@ -25,6 +25,8 @@ /* private header file for rect_select data structure */ #include "rect_selectP.h" +#include "libgimp/gimpintl.h" + #define NO 0 #define YES 1 @@ -151,47 +153,47 @@ ProcArg ellipse_select_args[] = { { PDB_IMAGE, "image", - "The image" + N_("the image") }, { PDB_FLOAT, "x", - "x coordinate of upper-left corner of ellipse bounding box" + N_("x coordinate of upper-left corner of ellipse bounding box") }, { PDB_FLOAT, "y", - "y coordinate of upper-left corner of ellipse bounding box" + N_("y coordinate of upper-left corner of ellipse bounding box") }, { PDB_FLOAT, "width", - "the width of the ellipse: width > 0" + N_("the width of the ellipse: width > 0") }, { PDB_FLOAT, "height", - "the height of the ellipse: height > 0" + N_("the height of the ellipse: height > 0") }, { PDB_INT32, "operation", - "the selection operation: { ADD (0), SUB (1), REPLACE (2), INTERSECT (3) }" + N_("the selection operation: { ADD (0), SUB (1), REPLACE (2), INTERSECT (3) }") }, { PDB_INT32, "antialias", - "antialiasing On/Off" + N_("antialiasing On/Off") }, { PDB_INT32, "feather", - "feather option for selections" + N_("feather option for selections") }, { PDB_FLOAT, "feather_radius", - "radius for feather operation" + N_("radius for feather operation") } }; ProcRecord ellipse_select_proc = { "gimp_ellipse_select", - "Create an elliptical selection over the specified image", - "This tool creates an elliptical selection over the specified image. The elliptical region can be either added to, subtracted from, or replace the contents of the previous selection mask. If antialiasing is turned on, the edges of the elliptical region will contain intermediate values which give the appearance of a sharper, less pixelized edge. This should be set as TRUE most of the time. If the feather option is enabled, the resulting selection is blurred before combining. The blur is a gaussian blur with the specified feather radius.", + N_("Create an elliptical selection over the specified image"), + N_("This tool creates an elliptical selection over the specified image. The elliptical region can be either added to, subtracted from, or replace the contents of the previous selection mask. If antialiasing is turned on, the edges of the elliptical region will contain intermediate values which give the appearance of a sharper, less pixelized edge. This should be set as TRUE most of the time. If the feather option is enabled, the resulting selection is blurred before combining. The blur is a gaussian blur with the specified feather radius."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/tools/eraser.c b/app/tools/eraser.c index 138784e975..33a3fc0d21 100644 --- a/app/tools/eraser.c +++ b/app/tools/eraser.c @@ -28,6 +28,8 @@ #include "selection.h" #include "tools.h" +#include "libgimp/gimpintl.h" + /* forward function declarations */ static void eraser_motion (PaintCore *, GimpDrawable *, gboolean, gboolean); static Argument * eraser_invoker (Argument *); @@ -76,12 +78,12 @@ create_eraser_options (void) vbox = gtk_vbox_new (FALSE, 1); /* the main label */ - label = gtk_label_new ("Eraser Options"); + label = gtk_label_new (_("Eraser Options")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); /* the hard toggle */ - hard_toggle = gtk_check_button_new_with_label ("Hard edge"); + hard_toggle = gtk_check_button_new_with_label (_("Hard edge")); gtk_box_pack_start (GTK_BOX (vbox), hard_toggle, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (hard_toggle), "toggled", (GtkSignalFunc) eraser_toggle_update, @@ -90,7 +92,7 @@ create_eraser_options (void) gtk_widget_show (hard_toggle); /* the incremental toggle */ - incremental_toggle = gtk_check_button_new_with_label ("Incremental"); + incremental_toggle = gtk_check_button_new_with_label (_("Incremental")); gtk_box_pack_start (GTK_BOX (vbox), incremental_toggle, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (incremental_toggle), "toggled", (GtkSignalFunc) eraser_toggle_update, @@ -202,27 +204,27 @@ ProcArg eraser_extended_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_INT32, "num_strokes", - "number of stroke control points (count each coordinate as 2 points)" + N_("number of stroke control points (count each coordinate as 2 points)") }, { PDB_FLOATARRAY, "strokes", - "array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}" + N_("array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}") }, { PDB_INT32, "hardness", - "SOFT(0) or HARD(1)" + N_("SOFT(0) or HARD(1)") }, { PDB_INT32, "method", - "CONTINUOUS(0) or INCREMENTAL(1)" + N_("CONTINUOUS(0) or INCREMENTAL(1)") } }; @@ -230,19 +232,19 @@ ProcArg eraser_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_INT32, "num_strokes", - "number of stroke control points (count each coordinate as 2 points)" + N_("number of stroke control points (count each coordinate as 2 points)") }, { PDB_FLOATARRAY, "strokes", - "array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}" + N_("array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}") } }; @@ -250,8 +252,8 @@ ProcArg eraser_args[] = ProcRecord eraser_proc = { "gimp_eraser", - "Erase using the current brush", - "This tool erases using the current brush mask. If the specified drawable contains an alpha channel, then the erased pixels will become transparent. Otherwise, the eraser tool replaces the contents of the drawable with the background color. Like paintbrush, this tool linearly interpolates between the specified stroke coordinates.", + N_("Erase using the current brush"), + N_("This tool erases using the current brush mask. If the specified drawable contains an alpha channel, then the erased pixels will become transparent. Otherwise, the eraser tool replaces the contents of the drawable with the background color. Like paintbrush, this tool linearly interpolates between the specified stroke coordinates."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -272,8 +274,8 @@ ProcRecord eraser_proc = ProcRecord eraser_extended_proc = { "gimp_eraser_extended", - "Erase using the current brush", - "This tool erases using the current brush mask. If the specified drawable contains an alpha channel, then the erased pixels will become transparent. Otherwise, the eraser tool replaces the contents of the drawable with the background color. Like paintbrush, this tool linearly interpolates between the specified stroke coordinates.", + N_("Erase using the current brush"), + N_("This tool erases using the current brush mask. If the specified drawable contains an alpha channel, then the erased pixels will become transparent. Otherwise, the eraser tool replaces the contents of the drawable with the background color. Like paintbrush, this tool linearly interpolates between the specified stroke coordinates."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/tools/flip_tool.c b/app/tools/flip_tool.c index 6b119f3a69..a694983e16 100644 --- a/app/tools/flip_tool.c +++ b/app/tools/flip_tool.c @@ -26,6 +26,8 @@ #include "undo.h" #include "gimage.h" +#include "libgimp/gimpintl.h" + #include "tile_manager_pvt.h" /* ick. */ #define FLIP 0 @@ -68,8 +70,8 @@ create_flip_options (void) int i; char *button_names[2] = { - "Horizontal", - "Vertical", + N_("Horizontal"), + N_("Vertical"), }; /* the new options structure */ @@ -80,7 +82,7 @@ create_flip_options (void) vbox = gtk_vbox_new (FALSE, 1); /* the main label */ - label = gtk_label_new ("Flip Tool Options"); + label = gtk_label_new (_("Flip Tool Options")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -332,15 +334,15 @@ ProcArg flip_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the affected drawable" + N_("the affected drawable") }, { PDB_INT32, "flip_type", - "Type of flip: { HORIZONTAL (0), VERTICAL (1) }" + N_("Type of flip: { HORIZONTAL (0), VERTICAL (1) }") } }; @@ -348,15 +350,15 @@ ProcArg flip_out_args[] = { { PDB_DRAWABLE, "drawable", - "the flipped drawable" + N_("the flipped drawable") } }; ProcRecord flip_proc = { "gimp_flip", - "Flip the specified drawable about its center either vertically or horizontally", - "This tool flips the specified drawable if no selection exists. If a selection exists, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then flipd by the specified amount. The return value is the ID of the flipped drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and flipd drawable. The flip type parameter indicates whether the flip will be applied horizontally or vertically.", + N_("Flip the specified drawable about its center either vertically or horizontally"), + N_("This tool flips the specified drawable if no selection exists. If a selection exists, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then flipd by the specified amount. The return value is the ID of the flipped drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and flipd drawable. The flip type parameter indicates whether the flip will be applied horizontally or vertically."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/tools/free_select.c b/app/tools/free_select.c index 5295abc553..936b447071 100644 --- a/app/tools/free_select.c +++ b/app/tools/free_select.c @@ -26,6 +26,8 @@ #include "gdisplay.h" #include "rect_select.h" +#include "libgimp/gimpintl.h" + typedef struct _free_select FreeSelect; struct _free_select @@ -67,7 +69,7 @@ add_point (int num_pts, int x, int y) global_pts = (GdkPoint *) g_realloc ((void *) global_pts, sizeof (GdkPoint) * max_segs); if (!global_pts) - fatal_error ("Unable to reallocate points array in free_select."); + fatal_error (_("Unable to reallocate points array in free_select.")); } global_pts[num_pts].x = x; @@ -212,7 +214,7 @@ scan_convert (GimpImage* gimage, int num_pts, FreeSelectPoint *pts, x = (long) list->data; list = g_slist_next(list); if (!list) - g_message ("Cannot properly scanline convert polygon!\n"); + g_message (_("Cannot properly scanline convert polygon!\n")); else { /* bounds checking */ @@ -489,39 +491,39 @@ ProcArg free_select_args[] = { { PDB_IMAGE, "image", - "The image" + N_("the image") }, { PDB_INT32, "num_pts", - "number of points (count 1 coordinate as two points)" + N_("number of points (count 1 coordinate as two points)") }, { PDB_FLOATARRAY, "segs", - "array of points: { p1.x, p1.y, p2.x, p2.y, ..., pn.x, pn.y}" + N_("array of points: { p1.x, p1.y, p2.x, p2.y, ..., pn.x, pn.y}") }, { PDB_INT32, "operation", - "the selection operation: { ADD (0), SUB (1), REPLACE (2), INTERSECT (3) }" + N_("the selection operation: { ADD (0), SUB (1), REPLACE (2), INTERSECT (3) }") }, { PDB_INT32, "antialias", - "antialiasing option for selections" + N_("antialiasing option for selections") }, { PDB_INT32, "feather", - "feather option for selections" + N_("feather option for selections") }, { PDB_FLOAT, "feather_radius", - "radius for feather operation" + N_("radius for feather operation") } }; ProcRecord free_select_proc = { "gimp_free_select", - "Create a polygonal selection over the specified image", - "This tool creates a polygonal selection over the specified image. The polygonal region can be either added to, subtracted from, or replace the contents of the previous selection mask. The polygon is specified through an array of floating point numbers and its length. The length of array must be 2n, where n is the number of points. Each point is defined by 2 floating point values which correspond to the x and y coordinates. If the final point does not connect to the starting point, a connecting segment is automatically added. If the feather option is enabled, the resulting selection is blurred before combining. The blur is a gaussian blur with the specified feather radius.", + N_("Create a polygonal selection over the specified image"), + N_("This tool creates a polygonal selection over the specified image. The polygonal region can be either added to, subtracted from, or replace the contents of the previous selection mask. The polygon is specified through an array of floating point numbers and its length. The length of array must be 2n, where n is the number of points. Each point is defined by 2 floating point values which correspond to the x and y coordinates. If the final point does not connect to the starting point, a connecting segment is automatically added. If the feather option is enabled, the resulting selection is blurred before combining. The blur is a gaussian blur with the specified feather radius."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/tools/gimpairbrushtool.c b/app/tools/gimpairbrushtool.c index 2aba45ca33..2b724ef682 100644 --- a/app/tools/gimpairbrushtool.c +++ b/app/tools/gimpairbrushtool.c @@ -29,6 +29,8 @@ #include "tools.h" #include "gimage.h" +#include "libgimp/gimpintl.h" + typedef struct _AirbrushTimeout AirbrushTimeout; struct _AirbrushTimeout @@ -92,7 +94,7 @@ create_airbrush_options (void) vbox = gtk_vbox_new (FALSE, 1); /* the main label */ - label = gtk_label_new ("Airbrush Options"); + label = gtk_label_new (_("Airbrush Options")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -101,7 +103,7 @@ create_airbrush_options (void) gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_widget_show (hbox); - label = gtk_label_new ("Rate"); + label = gtk_label_new (_("Rate")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -119,7 +121,7 @@ create_airbrush_options (void) gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); gtk_widget_show (hbox); - label = gtk_label_new ("Pressure"); + label = gtk_label_new (_("Pressure")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -155,7 +157,7 @@ airbrush_paint_func (PaintCore *paint_core, /* timer_state = OFF; */ if (timer_state == ON) { - g_warning ("killing stray timer, please report to lewing@gimp.org"); + g_warning (_("killing stray timer, please report to lewing@gimp.org")); gtk_timeout_remove (timer); } timer_state = OFF; @@ -295,23 +297,23 @@ ProcArg airbrush_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_FLOAT, "pressure", - "The pressure of the airbrush strokes: 0 <= pressure <= 100" + N_("The pressure of the airbrush strokes: 0 <= pressure <= 100") }, { PDB_INT32, "num_strokes", - "number of stroke control points (count each coordinate as 2 points)" + N_("number of stroke control points (count each coordinate as 2 points)") }, { PDB_FLOATARRAY, "strokes", - "array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}" + N_("array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}") } }; @@ -319,8 +321,8 @@ ProcArg airbrush_args[] = ProcRecord airbrush_proc = { "gimp_airbrush", - "Paint in the current brush with varying pressure. Paint application is time-dependent", - "This tool simulates the use of an airbrush. Paint pressure represents the relative intensity of the paint application. High pressure results in a thicker layer of paint while low pressure results in a thinner layer.", + N_("Paint in the current brush with varying pressure. Paint application is time-dependent"), + N_("This tool simulates the use of an airbrush. Paint pressure represents the relative intensity of the paint application. High pressure results in a thicker layer of paint while low pressure results in a thinner layer."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/tools/gimpblendtool.c b/app/tools/gimpblendtool.c index a5649e88ee..95b7c9c9b9 100644 --- a/app/tools/gimpblendtool.c +++ b/app/tools/gimpblendtool.c @@ -37,6 +37,8 @@ #include "tools.h" #include "undo.h" +#include "libgimp/gimpintl.h" + #include "tile.h" /* target size */ @@ -208,25 +210,25 @@ static PixelRegion distR = /* the blend option menu items -- the blend modes */ static MenuItem blend_option_items[] = { - { "FG to BG (RGB)", 0, 0, blend_mode_callback, (gpointer) FG_BG_RGB_MODE, NULL, NULL }, - { "FG to BG (HSV)", 0, 0, blend_mode_callback, (gpointer) FG_BG_HSV_MODE, NULL, NULL }, - { "FG to Transparent", 0, 0, blend_mode_callback, (gpointer) FG_TRANS_MODE, NULL, NULL }, - { "Custom (from editor)", 0, 0, blend_mode_callback, (gpointer) CUSTOM_MODE, NULL, NULL }, + { N_("FG to BG RGB"), 0, 0, blend_mode_callback, (gpointer) FG_BG_RGB_MODE, NULL, NULL }, + { N_("FG to BG HSV"), 0, 0, blend_mode_callback, (gpointer) FG_BG_HSV_MODE, NULL, NULL }, + { N_("FG to Transparent"), 0, 0, blend_mode_callback, (gpointer) FG_TRANS_MODE, NULL, NULL }, + { N_("Custom from editor"), 0, 0, blend_mode_callback, (gpointer) CUSTOM_MODE, NULL, NULL }, { NULL, 0, 0, NULL, NULL, NULL, NULL } }; /* the gradient option menu items -- the gradient modes */ static MenuItem gradient_option_items[] = { - { "Linear", 0, 0, gradient_type_callback, (gpointer) Linear, NULL, NULL }, - { "Bi-Linear", 0, 0, gradient_type_callback, (gpointer) BiLinear, NULL, NULL }, - { "Radial", 0, 0, gradient_type_callback, (gpointer) Radial, NULL, NULL }, - { "Square", 0, 0, gradient_type_callback, (gpointer) Square, NULL, NULL }, - { "Conical (symmetric)", 0, 0, gradient_type_callback, (gpointer) ConicalSymmetric, NULL, NULL }, - { "Conical (asymmetric)", 0, 0, gradient_type_callback, (gpointer) ConicalAsymmetric, NULL, NULL }, - { "Shapeburst (angular)", 0, 0, gradient_type_callback, (gpointer) ShapeburstAngular, NULL, NULL }, - { "Shapeburst (spherical)", 0, 0, gradient_type_callback, (gpointer) ShapeburstSpherical, NULL, NULL }, - { "Shapeburst (dimpled)", 0, 0, gradient_type_callback, (gpointer) ShapeburstDimpled, NULL, NULL }, + { N_("Linear"), 0, 0, gradient_type_callback, (gpointer) Linear, NULL, NULL }, + { N_("Bi-Linear"), 0, 0, gradient_type_callback, (gpointer) BiLinear, NULL, NULL }, + { N_("Radial"), 0, 0, gradient_type_callback, (gpointer) Radial, NULL, NULL }, + { N_("Square"), 0, 0, gradient_type_callback, (gpointer) Square, NULL, NULL }, + { N_("Conical (symmetric)"), 0, 0, gradient_type_callback, (gpointer) ConicalSymmetric, NULL, NULL }, + { N_("Conical (asymmetric)"), 0, 0, gradient_type_callback, (gpointer) ConicalAsymmetric, NULL, NULL }, + { N_("Shapeburst (angular)"), 0, 0, gradient_type_callback, (gpointer) ShapeburstAngular, NULL, NULL }, + { N_("Shapeburst (spherical)"), 0, 0, gradient_type_callback, (gpointer) ShapeburstSpherical, NULL, NULL }, + { N_("Shapeburst (dimpled)"), 0, 0, gradient_type_callback, (gpointer) ShapeburstDimpled, NULL, NULL }, { NULL, 0, 0, NULL, NULL, NULL, NULL } }; @@ -237,9 +239,9 @@ static BlendOptions *blend_options = NULL; static MenuItem repeat_option_items[] = { - { "None", 0, 0, repeat_type_callback, (gpointer) REPEAT_NONE, NULL, NULL }, - { "Sawtooth wave", 0, 0, repeat_type_callback, (gpointer) REPEAT_SAWTOOTH, NULL, NULL }, - { "Triangular wave", 0, 0, repeat_type_callback, (gpointer) REPEAT_TRIANGULAR, NULL, NULL }, + { N_("None"), 0, 0, repeat_type_callback, (gpointer) REPEAT_NONE, NULL, NULL }, + { N_("Sawtooth wave"), 0, 0, repeat_type_callback, (gpointer) REPEAT_SAWTOOTH, NULL, NULL }, + { N_("Triangular wave"), 0, 0, repeat_type_callback, (gpointer) REPEAT_TRIANGULAR, NULL, NULL }, { NULL, 0, 0, NULL, NULL, NULL, NULL } }; @@ -355,7 +357,7 @@ create_blend_options () vbox = gtk_vbox_new (FALSE, 2); /* the main label */ - label = gtk_label_new ("Blend Options"); + label = gtk_label_new (_("Blend Options")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -365,7 +367,7 @@ create_blend_options () gtk_box_pack_start(GTK_BOX(vbox), table, TRUE, TRUE, 0); /* the opacity scale */ - label = gtk_label_new ("Opacity:"); + label = gtk_label_new (_("Opacity:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 1.0); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2); @@ -383,7 +385,7 @@ create_blend_options () gtk_widget_show (opacity_scale); /* the offset scale */ - label = gtk_label_new ("Offset:"); + label = gtk_label_new (_("Offset:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 1.0); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2); @@ -401,7 +403,7 @@ create_blend_options () gtk_widget_show (offset_scale); /* the paint mode menu */ - label = gtk_label_new ("Mode:"); + label = gtk_label_new (_("Mode:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 2, 3, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2); @@ -414,7 +416,7 @@ create_blend_options () gtk_widget_show (pm_option_menu); /* the blend mode menu */ - label = gtk_label_new ("Blend:"); + label = gtk_label_new (_("Blend:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 3, 4, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2); @@ -427,7 +429,7 @@ create_blend_options () gtk_widget_show (bm_option_menu); /* the gradient type menu */ - label = gtk_label_new ("Gradient:"); + label = gtk_label_new (_("Gradient:")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 4, 5, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2); @@ -441,7 +443,7 @@ create_blend_options () /* the repeat option */ - label = gtk_label_new("Repeat:"); + label = gtk_label_new(_("Repeat:")); gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 5, 6, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2); @@ -460,7 +462,7 @@ create_blend_options () /* supersampling toggle */ - button = gtk_check_button_new_with_label("Adaptive supersampling"); + button = gtk_check_button_new_with_label(_("Adaptive supersampling")); gtk_box_pack_start(GTK_BOX(vbox), button, FALSE, FALSE, 0); gtk_signal_connect(GTK_OBJECT(button), "toggled", (GtkSignalFunc) supersample_toggle_update, @@ -482,7 +484,7 @@ create_blend_options () /* max depth scale */ - label = gtk_label_new("Max depth:"); + label = gtk_label_new(_("Max depth:")); gtk_misc_set_alignment(GTK_MISC(label), 0.0, 1.0); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 0, 1, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2); @@ -501,7 +503,7 @@ create_blend_options () /* threshold scale */ - label = gtk_label_new("Threshold:"); + label = gtk_label_new(_("Threshold:")); gtk_misc_set_alignment(GTK_MISC(label), 0.0, 1.0); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 1, 2, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 2); @@ -555,7 +557,7 @@ blend_button_press (Tool *tool, switch (drawable_type (gimage_active_drawable (gdisp->gimage))) { case INDEXED_GIMAGE: case INDEXEDA_GIMAGE: - g_message ("Blend: Invalid for indexed images."); + g_message (_("Blend: Invalid for indexed images.")); return; break; @@ -580,7 +582,7 @@ blend_button_press (Tool *tool, /* initialize the statusbar display */ blend_tool->context_id = gtk_statusbar_get_context_id (GTK_STATUSBAR (gdisp->statusbar), "blend"); - gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), blend_tool->context_id, "Blend: 0, 0"); + gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), blend_tool->context_id, _("Blend: 0, 0")); /* Start drawing the blend tool */ draw_core_start (blend_tool->core, gdisp->canvas->window, tool); @@ -636,7 +638,7 @@ blend_button_release (Tool *tool, if (return_vals[0].value.pdb_int == PDB_SUCCESS) gdisplays_flush (); else - g_message ("Blend operation failed."); + g_message (_("Blend operation failed.")); procedural_db_destroy_args (return_vals, nreturn_vals); } @@ -662,7 +664,7 @@ blend_motion (Tool *tool, &blend_tool->endx, &blend_tool->endy, FALSE, 1); gtk_statusbar_pop (GTK_STATUSBAR (gdisp->statusbar), blend_tool->context_id); - g_snprintf (vector, STATUSBAR_SIZE, "Blend: %d, %d", + g_snprintf (vector, STATUSBAR_SIZE, _("Blend: %d, %d"), abs(blend_tool->endx - blend_tool->startx), abs(blend_tool->endy - blend_tool->starty)); gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), blend_tool->context_id, vector); @@ -1248,7 +1250,7 @@ gradient_render_pixel(double x, double y, color_t *color, void *render_data) break; default: - fatal_error("gradient_render_pixel(): unknown gradient type %d", + fatal_error(_("gradient_render_pixel(): unknown gradient type %d"), (int) rbd->gradient_type); return; } @@ -1380,7 +1382,7 @@ gradient_fill_region (GImage *gimage, break; default: - fatal_error("gradient_fill_region(): unknown blend mode %d", + fatal_error(_("gradient_fill_region(): unknown blend mode %d"), (int) blend_mode); break; } @@ -1419,7 +1421,7 @@ gradient_fill_region (GImage *gimage, break; default: - fatal_error("gradient_fill_region(): unknown gradient type %d", + fatal_error(_("gradient_fill_region(): unknown gradient type %d"), (int) gradient_type); break; } @@ -1441,7 +1443,7 @@ gradient_fill_region (GImage *gimage, break; default: - fatal_error("gradient_fill_region(): unknown repeat mode %d", + fatal_error(_("gradient_fill_region(): unknown repeat mode %d"), (int) repeat); break; } @@ -1711,71 +1713,71 @@ ProcArg blend_args[] = { { PDB_IMAGE, "image", - "The image" + N_("The image") }, { PDB_DRAWABLE, "drawable", - "The affected drawable" + N_("The affected drawable") }, { PDB_INT32, "blend_mode", - "The type of blend: { FG-BG-RGB (0), FG-BG-HSV (1), FG-TRANS (2), CUSTOM (3) }" + N_("The type of blend: { FG-BG-RGB (0), FG-BG-HSV (1), FG-TRANS (2), CUSTOM (3) }") }, { PDB_INT32, "paint_mode", - "the paint application mode: { NORMAL (0), DISSOLVE (1), BEHIND (2), MULTIPLY/BURN (3), SCREEN (4), OVERLAY (5) DIFFERENCE (6), ADDITION (7), SUBTRACT (8), DARKEN-ONLY (9), LIGHTEN-ONLY (10), HUE (11), SATURATION (12), COLOR (13), VALUE (14), DIVIDE/DODGE (15) }" + N_("the paint application mode: { NORMAL (0), DISSOLVE (1), BEHIND (2), MULTIPLY/BURN (3), SCREEN (4), OVERLAY (5) DIFFERENCE (6), ADDITION (7), SUBTRACT (8), DARKEN-ONLY (9), LIGHTEN-ONLY (10), HUE (11), SATURATION (12), COLOR (13), VALUE (14), DIVIDE/DODGE (15) }") }, { PDB_INT32, "gradient_type", - "The type of gradient: { LINEAR (0), BILINEAR (1), RADIAL (2), SQUARE (3), CONICAL-SYMMETRIC (4), CONICAL-ASYMMETRIC (5), SHAPEBURST-ANGULAR (6), SHAPEBURST-SPHERICAL (7), SHAPEBURST-DIMPLED (8) }" + N_("The type of gradient: { LINEAR (0), BILINEAR (1), RADIAL (2), SQUARE (3), CONICAL-SYMMETRIC (4), CONICAL-ASYMMETRIC (5), SHAPEBURST-ANGULAR (6), SHAPEBURST-SPHERICAL (7), SHAPEBURST-DIMPLED (8) }") }, { PDB_FLOAT, "opacity", - "The opacity of the final blend (0 <= opacity <= 100)" + N_("The opacity of the final blend (0 <= opacity <= 100)") }, { PDB_FLOAT, "offset", - "Offset relates to the starting and ending coordinates specified for the blend. This parameter is mode depndent (0 <= offset)" + N_("Offset relates to the starting and ending coordinates specified for the blend. This parameter is mode depndent (0 <= offset)") }, { PDB_INT32, "repeat", - "Repeat mode: { REPEAT-NONE (0), REPEAT-SAWTOOTH (1), REPEAT-TRIANGULAR (2) }" + N_("Repeat mode: { REPEAT-NONE (0), REPEAT-SAWTOOTH (1), REPEAT-TRIANGULAR (2) }") }, { PDB_INT32, "supersample", - "Do adaptive supersampling (true / false)" + N_("Do adaptive supersampling (true / false)") }, { PDB_INT32, "max_depth", - "Maximum recursion levels for supersampling" + N_("Maximum recursion levels for supersampling") }, { PDB_FLOAT, "threshold", - "Supersampling threshold" + N_("Supersampling threshold") }, { PDB_FLOAT, "x1", - "The x coordinate of this blend's starting point" + N_("The x coordinate of this blend's starting point") }, { PDB_FLOAT, "y1", - "The y coordinate of this blend's starting point" + N_("The y coordinate of this blend's starting point") }, { PDB_FLOAT, "x2", - "The x coordinate of this blend's ending point" + N_("The x coordinate of this blend's ending point") }, { PDB_FLOAT, "y2", - "The y coordinate of this blend's ending point" + N_("The y coordinate of this blend's ending point") } }; ProcRecord blend_proc = { "gimp_blend", - "Blend between the starting and ending coordinates with the specified blend mode and gradient type.", - "This tool requires information on the paint application mode, the blend mode, and the gradient type. It creates the specified variety of blend using the starting and ending coordinates as defined for each gradient type.", + N_("Blend between the starting and ending coordinates with the specified blend mode and gradient type."), + N_("This tool requires information on the paint application mode, the blend mode, and the gradient type. It creates the specified variety of blend using the starting and ending coordinates as defined for each gradient type."), "Spencer Kimball & Peter Mattis & Federico Mena Quintero", "Spencer Kimball & Peter Mattis & Federico Mena Quintero", "1995-1996", diff --git a/app/tools/gimpbrightnesscontrasttool.c b/app/tools/gimpbrightnesscontrasttool.c index 3e0de2157f..17f6d2afd0 100644 --- a/app/tools/gimpbrightnesscontrasttool.c +++ b/app/tools/gimpbrightnesscontrasttool.c @@ -28,6 +28,8 @@ #include "image_map.h" #include "interface.h" +#include "libgimp/gimpintl.h" + #define TEXT_WIDTH 45 #define TEXT_HEIGHT 25 #define SLIDER_WIDTH 200 @@ -240,7 +242,7 @@ tools_new_brightness_contrast () /* The tool options */ if (!brightness_contrast_options) brightness_contrast_options = tools_register_no_options (BRIGHTNESS_CONTRAST, - "Brightness-Contrast Options"); + _("Brightness-Contrast Options")); tool = (Tool *) g_malloc (sizeof (Tool)); private = (BrightnessContrast *) g_malloc (sizeof (BrightnessContrast)); @@ -282,7 +284,7 @@ brightness_contrast_initialize (GDisplay *gdisp) { if (drawable_indexed (gimage_active_drawable (gdisp->gimage))) { - g_message ("Brightness-Contrast does not operate on indexed drawables."); + g_message (_("Brightness-Contrast does not operate on indexed drawables.")); return; } @@ -313,8 +315,8 @@ brightness_contrast_initialize (GDisplay *gdisp) /* the action area structure */ static ActionAreaItem action_items[] = { - { "OK", brightness_contrast_ok_callback, NULL, NULL }, - { "Cancel", brightness_contrast_cancel_callback, NULL, NULL } + { N_("OK"), brightness_contrast_ok_callback, NULL, NULL }, + { N_("Cancel"), brightness_contrast_cancel_callback, NULL, NULL } }; static BrightnessContrastDialog * @@ -335,7 +337,7 @@ brightness_contrast_new_dialog () /* The shell and main vbox */ bcd->shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (bcd->shell), "brightness_contrast", "Gimp"); - gtk_window_set_title (GTK_WINDOW (bcd->shell), "Brightness-Contrast"); + gtk_window_set_title (GTK_WINDOW (bcd->shell), N_("Brightness-Contrast")); /* handle wm close signal */ gtk_signal_connect (GTK_OBJECT (bcd->shell), "delete_event", @@ -351,7 +353,7 @@ brightness_contrast_new_dialog () gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, FALSE, 0); /* Create the brightness scale widget */ - label = gtk_label_new ("Brightness"); + label = gtk_label_new (_("Brightness")); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2); @@ -385,7 +387,7 @@ brightness_contrast_new_dialog () /* Create the contrast scale widget */ - label = gtk_label_new ("Contrast"); + label = gtk_label_new (_("Contrast")); gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5); gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2); @@ -423,7 +425,7 @@ brightness_contrast_new_dialog () gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); /* The preview toggle */ - toggle = gtk_check_button_new_with_label ("Preview"); + toggle = gtk_check_button_new_with_label (_("Preview")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), bcd->preview); gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -479,7 +481,7 @@ static void brightness_contrast_preview (BrightnessContrastDialog *bcd) { if (!bcd->image_map) - g_message ("brightness_contrast_preview(): No image map"); + g_message (_("brightness_contrast_preview(): No image map")); active_tool->preserve = TRUE; image_map_apply (bcd->image_map, brightness_contrast, (void *) bcd); active_tool->preserve = FALSE; @@ -643,27 +645,27 @@ ProcArg brightness_contrast_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_INT32, "brightness", - "brightness adjustment: (-127 <= brightness <= 127)" + N_("brightness adjustment: (-127 <= brightness <= 127)") }, { PDB_INT32, "contrast", - "constrast adjustment: (-127 <= contrast <= 127)" + N_("constrast adjustment: (-127 <= contrast <= 127)") } }; ProcRecord brightness_contrast_proc = { "gimp_brightness_contrast", - "Modify brightness/contrast in the specified drawable", - "This procedures allows the brightness and contrast of the specified drawable to be modified. Both 'brightness' and 'contrast' parameters are defined between -127 and 127.", + N_("Modify brightness/contrast in the specified drawable"), + N_("This procedures allows the brightness and contrast of the specified drawable to be modified. Both 'brightness' and 'contrast' parameters are defined between -127 and 127."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1997", diff --git a/app/tools/gimpbucketfilltool.c b/app/tools/gimpbucketfilltool.c index 950fe7945b..efaf158ed4 100644 --- a/app/tools/gimpbucketfilltool.c +++ b/app/tools/gimpbucketfilltool.c @@ -31,6 +31,8 @@ #include "tools.h" #include "undo.h" +#include "libgimp/gimpintl.h" + /* the Bucket Fill structures */ typedef enum { @@ -141,8 +143,8 @@ create_bucket_options (void) int i; char *button_names[2] = { - "Color Fill", - "Pattern Fill" + N_("Color Fill"), + N_("Pattern Fill") }; /* the new options structure */ @@ -157,7 +159,7 @@ create_bucket_options (void) vbox = gtk_vbox_new (FALSE, 1); /* the main label */ - label = gtk_label_new ("Bucket Fill Options"); + label = gtk_label_new (_("Bucket Fill Options")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -165,7 +167,7 @@ create_bucket_options (void) hbox = gtk_hbox_new (FALSE, 1); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); - label = gtk_label_new ("Fill Opacity"); + label = gtk_label_new (_("Fill Opacity")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -184,7 +186,7 @@ create_bucket_options (void) hbox = gtk_hbox_new (FALSE, 1); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); - label = gtk_label_new ("Fill Threshold"); + label = gtk_label_new (_("Fill Threshold")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -203,7 +205,7 @@ create_bucket_options (void) hbox = gtk_hbox_new (FALSE, 1); gtk_container_border_width (GTK_CONTAINER (hbox), 0); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); - label = gtk_label_new ("Mode:"); + label = gtk_label_new (_("Mode:")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 2); menu = create_paint_mode_menu (bucket_fill_paint_mode_callback,NULL); option_menu = gtk_option_menu_new (); @@ -214,7 +216,7 @@ create_bucket_options (void) gtk_widget_show (hbox); /* the radio frame and box */ - radio_frame = gtk_frame_new ("Fill Type"); + radio_frame = gtk_frame_new (_("Fill Type")); gtk_box_pack_start (GTK_BOX (vbox), radio_frame, FALSE, FALSE, 0); radio_box = gtk_vbox_new (FALSE, 1); @@ -236,7 +238,7 @@ create_bucket_options (void) gtk_widget_show (radio_frame); /* the sample merged toggle */ - sample_merged_toggle = gtk_check_button_new_with_label ("Sample Merged"); + sample_merged_toggle = gtk_check_button_new_with_label (_("Sample Merged")); gtk_signal_connect (GTK_OBJECT (sample_merged_toggle), "toggled", (GtkSignalFunc) bucket_fill_toggle_update, &options->sample_merged); @@ -328,7 +330,7 @@ bucket_fill_button_release (tool, bevent, gdisp_ptr) if (return_vals[0].value.pdb_int == PDB_SUCCESS) gdisplays_flush (); else - g_message ("Bucket Fill operation failed."); + g_message (_("Bucket Fill operation failed.")); procedural_db_destroy_args (return_vals, nreturn_vals); } @@ -425,7 +427,7 @@ bucket_fill (gimage, drawable, fill_mode, paint_mode, if (!pattern) { - g_message ("No available patterns for this operation."); + g_message (_("No available patterns for this operation.")); return; } @@ -698,47 +700,47 @@ ProcArg bucket_fill_args[] = { { PDB_IMAGE, "image", - "The image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "The affected drawable" + N_("the affected drawable") }, { PDB_INT32, "fill_mode", - "The type of fill: { FG-BUCKET-FILL (0), BG-BUCKET-FILL (1), PATTERN-BUCKET-FILL (2) }" + N_("the type of fill: { FG-BUCKET-FILL (0), BG-BUCKET-FILL (1), PATTERN-BUCKET-FILL (2) }") }, { PDB_INT32, "paint_mode", - "the paint application mode: { NORMAL (0), DISSOLVE (1), BEHIND (2), MULTIPLY/BURN (3), SCREEN (4), OVERLAY (5) DIFFERENCE (6), ADDITION (7), SUBTRACT (8), DARKEN-ONLY (9), LIGHTEN-ONLY (10), HUE (11), SATURATION (12), COLOR (13), VALUE (14), DIVIDE/DODGE (15) }" + N_("the paint application mode: { NORMAL (0), DISSOLVE (1), BEHIND (2), MULTIPLY/BURN (3), SCREEN (4), OVERLAY (5) DIFFERENCE (6), ADDITION (7), SUBTRACT (8), DARKEN-ONLY (9), LIGHTEN-ONLY (10), HUE (11), SATURATION (12), COLOR (13), VALUE (14), DIVIDE/DODGE (15) }") }, { PDB_FLOAT, "opacity", - "The opacity of the final bucket fill (0 <= opacity <= 100)" + N_("the opacity of the final bucket fill (0 <= opacity <= 100)") }, { PDB_FLOAT, "threshold", - "The threshold determines how extensive the seed fill will be. It's value is specified in terms of intensity levels (0 <= threshold <= 255). This parameter is only valid when there is no selection in the specified image." + N_("the threshold determines how extensive the seed fill will be. It's value is specified in terms of intensity levels (0 <= threshold <= 255). This parameter is only valid when there is no selection in the specified image.") }, { PDB_INT32, "sample_merged", - "use the composite image, not the drawable" + N_("use the composite image, not the drawable") }, { PDB_FLOAT, "x", - "The x coordinate of this bucket fill's application. This parameter is only valid when there is no selection in the specified image." + N_("the x coordinate of this bucket fill's application. This parameter is only valid when there is no selection in the specified image.") }, { PDB_FLOAT, "y", - "The y coordinate of this bucket fill's application. This parameter is only valid when there is no selection in the specified image." + N_("the y coordinate of this bucket fill's application. This parameter is only valid when there is no selection in the specified image.") }, }; ProcRecord bucket_fill_proc = { "gimp_bucket_fill", - "Fill the area specified either by the current selection if there is one, or by a seed fill starting at the specified coordinates.", - "This tool requires information on the paint application mode, and the fill mode, which can either be in the foreground color, or in the currently active pattern. If there is no selection, a seed fill is executed at the specified coordinates and extends outward in keeping with the threshold parameter. If there is a selection in the target image, the threshold, sample merged, x, and y arguments are unused. If the sample_merged parameter is non-zero, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of merged sampling, the x,y coordinates are relative to the image's origin; otherwise, they are relative to the drawable's origin.", + N_("Fill the area specified either by the current selection if there is one, or by a seed fill starting at the specified coordinates."), + N_("This tool requires information on the paint application mode, and the fill mode, which can either be in the foreground color, or in the currently active pattern. If there is no selection, a seed fill is executed at the specified coordinates and extends outward in keeping with the threshold parameter. If there is a selection in the target image, the threshold, sample merged, x, and y arguments are unused. If the sample_merged parameter is non-zero, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of merged sampling, the x,y coordinates are relative to the image's origin; otherwise, they are relative to the drawable's origin."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/tools/gimpbycolorselecttool.c b/app/tools/gimpbycolorselecttool.c index 2cbbc9e495..8dcb7b3893 100644 --- a/app/tools/gimpbycolorselecttool.c +++ b/app/tools/gimpbycolorselecttool.c @@ -30,6 +30,8 @@ #include "gdisplay.h" #include "rect_select.h" +#include "libgimp/gimpintl.h" + #include "tile.h" /* ick. */ #define DEFAULT_FUZZINESS 15 @@ -547,10 +549,10 @@ by_color_select_new_dialog () int i; char *button_names[4] = { - "Replace", - "Add", - "Subtract", - "Intersect" + N_("Replace"), + N_("Add"), + N_("Subtract"), + N_("Intersect") }; int button_values[4] = { @@ -568,7 +570,7 @@ by_color_select_new_dialog () /* The shell and main vbox */ bcd->shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (bcd->shell), "by_color_selection", "Gimp"); - gtk_window_set_title (GTK_WINDOW (bcd->shell), "By Color Selection"); + gtk_window_set_title (GTK_WINDOW (bcd->shell), _("By Color Selection")); gtk_container_border_width (GTK_CONTAINER (GTK_DIALOG (bcd->shell)->action_area), 2); /* handle the wm close signal */ @@ -611,14 +613,14 @@ by_color_select_new_dialog () /* Create the active image label */ util_box = gtk_hbox_new (FALSE, 2); gtk_box_pack_start (GTK_BOX (options_box), util_box, FALSE, FALSE, 0); - bcd->gimage_name = gtk_label_new ("Inactive"); + bcd->gimage_name = gtk_label_new (_("Inactive")); gtk_box_pack_start (GTK_BOX (util_box), bcd->gimage_name, FALSE, FALSE, 2); gtk_widget_show (bcd->gimage_name); gtk_widget_show (util_box); /* Create the selection mode radio box */ - frame = gtk_frame_new ("Selection Mode"); + frame = gtk_frame_new (_("Selection Mode")); gtk_box_pack_start (GTK_BOX (options_box), frame, FALSE, FALSE, 0); radio_box = gtk_vbox_new (FALSE, 2); @@ -641,7 +643,7 @@ by_color_select_new_dialog () /* Create the opacity scale widget */ util_box = gtk_vbox_new (FALSE, 2); gtk_box_pack_start (GTK_BOX (options_box), util_box, FALSE, FALSE, 0); - label = gtk_label_new ("Fuzziness Threshold"); + label = gtk_label_new (_("Fuzziness Threshold")); gtk_box_pack_start (GTK_BOX (util_box), label, FALSE, FALSE, 2); data = gtk_adjustment_new (bcd->threshold, 0.0, 255.0, 1.0, 1.0, 0.0); slider = gtk_hscale_new (GTK_ADJUSTMENT (data)); @@ -657,7 +659,7 @@ by_color_select_new_dialog () gtk_widget_show (util_box); /* The reset push button */ - push_button = gtk_button_new_with_label ("Reset"); + push_button = gtk_button_new_with_label (_("Reset")); GTK_WIDGET_SET_FLAGS (push_button, GTK_CAN_DEFAULT); gtk_box_pack_start (GTK_BOX (GTK_DIALOG (bcd->shell)->action_area), push_button, TRUE, TRUE, 0); gtk_signal_connect (GTK_OBJECT (push_button), "clicked", @@ -667,7 +669,7 @@ by_color_select_new_dialog () gtk_widget_show (push_button); /* The close push button */ - push_button = gtk_button_new_with_label ("Close"); + push_button = gtk_button_new_with_label (_("Close")); GTK_WIDGET_SET_FLAGS (push_button, GTK_CAN_DEFAULT); gtk_box_pack_start (GTK_BOX (GTK_DIALOG (bcd->shell)->action_area), push_button, TRUE, TRUE, 0); gtk_signal_connect (GTK_OBJECT (push_button), "clicked", @@ -971,47 +973,47 @@ ProcArg by_color_select_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_COLOR, "color", - "the color to select" + N_("the color to select") }, { PDB_INT32, "threshold", - "threshold in intensity levels: 0 <= threshold <= 255" + N_("threshold in intensity levels: 0 <= threshold <= 255") }, { PDB_INT32, "operation", - "the selection operation: { ADD (0), SUB (1), REPLACE (2), INTERSECT (3) }" + N_("the selection operation: { ADD (0), SUB (1), REPLACE (2), INTERSECT (3) }") }, { PDB_INT32, "antialias", - "antialiasing On/Off" + N_("antialiasing On/Off") }, { PDB_INT32, "feather", - "feather option for selections" + N_("feather option for selections") }, { PDB_FLOAT, "feather_radius", - "radius for feather operation" + N_("radius for feather operation") }, { PDB_INT32, "sample_merged", - "use the composite image, not the drawable" + N_("use the composite image, not the drawable") } }; ProcRecord by_color_select_proc = { "gimp_by_color_select", - "Create a selection by selecting all pixels (in the specified drawable) with the same (or similar) color to that specified.", - "This tool creates a selection over the specified image. A by-color selection is determined by the supplied color under the constraints of the specified threshold. Essentially, all pixels (in the drawable) that have color sufficiently close to the specified color (as determined by the threshold value) are included in the selection. The antialiasing parameter allows the final selection mask to contain intermediate values based on close misses to the threshold bar. Feathering can be enabled optionally and is controlled with the \"feather_radius\" paramter. If the sample_merged parameter is non-zero, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of a merged sampling, the supplied drawable is ignored.", + N_("Create a selection by selecting all pixels (in the specified drawable) with the same (or similar) color to that specified."), + N_("This tool creates a selection over the specified image. A by-color selection is determined by the supplied color under the constraints of the specified threshold. Essentially, all pixels (in the drawable) that have color sufficiently close to the specified color (as determined by the threshold value) are included in the selection. The antialiasing parameter allows the final selection mask to contain intermediate values based on close misses to the threshold bar. Feathering can be enabled optionally and is controlled with the \"feather_radius\" paramter. If the sample_merged parameter is non-zero, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of a merged sampling, the supplied drawable is ignored."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/tools/gimpclonetool.c b/app/tools/gimpclonetool.c index 154d2e8a3a..bda1348195 100644 --- a/app/tools/gimpclonetool.c +++ b/app/tools/gimpclonetool.c @@ -31,6 +31,8 @@ #include "selection.h" #include "tools.h" +#include "libgimp/gimpintl.h" + #define TARGET_HEIGHT 15 #define TARGET_WIDTH 15 @@ -112,8 +114,8 @@ create_clone_options (void) int i; char *button_names[2] = { - "Image Source", - "Pattern Source" + N_("Image Source"), + N_("Pattern Source") }; /* the new options structure */ @@ -125,12 +127,12 @@ create_clone_options (void) vbox = gtk_vbox_new (FALSE, 1); /* the main label */ - label = gtk_label_new ("Clone Tool Options"); + label = gtk_label_new (_("Clone Tool Options")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); /* the radio frame and box */ - radio_frame = gtk_frame_new ("Source"); + radio_frame = gtk_frame_new (_("Source")); gtk_box_pack_start (GTK_BOX (vbox), radio_frame, FALSE, FALSE, 0); radio_box = gtk_vbox_new (FALSE, 1); @@ -151,7 +153,7 @@ create_clone_options (void) gtk_widget_show (radio_frame); /* the aligned toggle button */ - aligned_toggle = gtk_check_button_new_with_label ("Aligned"); + aligned_toggle = gtk_check_button_new_with_label (_("Aligned")); gtk_box_pack_start (GTK_BOX (vbox), aligned_toggle, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (aligned_toggle), "toggled", (GtkSignalFunc) clone_toggle_update, @@ -228,7 +230,7 @@ clone_paint_func (PaintCore *paint_core, if (clone_options->type == PatternClone) if (!get_active_pattern ()) - g_message ("No patterns available for this operation."); + g_message (_("No patterns available for this operation.")); break; case FINISH_PAINT : @@ -541,35 +543,35 @@ ProcArg clone_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_DRAWABLE, "src_drawable", - "the source drawable" + N_("the source drawable") }, { PDB_INT32, "clone_type", - "the type of clone: { IMAGE-CLONE (0), PATTERN-CLONE (1) }" + N_("the type of clone: { IMAGE-CLONE (0), PATTERN-CLONE (1) }") }, { PDB_FLOAT, "src_x", - "the x coordinate in the source image" + N_("the x coordinate in the source image") }, { PDB_FLOAT, "src_y", - "the y coordinate in the source image" + N_("the y coordinate in the source image") }, { PDB_INT32, "num_strokes", - "number of stroke control points (count each coordinate as 2 points)" + N_("number of stroke control points (count each coordinate as 2 points)") }, { PDB_FLOATARRAY, "strokes", - "array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}" + N_("array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}") } }; @@ -577,8 +579,8 @@ ProcArg clone_args[] = ProcRecord clone_proc = { "gimp_clone", - "Clone from the source to the dest drawable using the current brush", - "This tool clones (copies) from the source drawable starting at the specified source coordinates to the dest drawable. If the \"clone_type\" argument is set to PATTERN-CLONE, then the current pattern is used as the source and the \"src_drawable\" argument is ignored. Pattern cloning assumes a tileable pattern and mods the sum of the src coordinates and subsequent stroke offsets with the width and height of the pattern. For image cloning, if the sum of the src coordinates and subsequent stroke offsets exceeds the extents of the src drawable, then no paint is transferred. The clone tool is capable of transforming between any image types including RGB->Indexed--although converting from any type to indexed is significantly slower.", + N_("Clone from the source to the dest drawable using the current brush"), + N_("This tool clones (copies) from the source drawable starting at the specified source coordinates to the dest drawable. If the \"clone_type\" argument is set to PATTERN-CLONE, then the current pattern is used as the source and the \"src_drawable\" argument is ignored. Pattern cloning assumes a tileable pattern and mods the sum of the src coordinates and subsequent stroke offsets with the width and height of the pattern. For image cloning, if the sum of the src coordinates and subsequent stroke offsets exceeds the extents of the src drawable, then no paint is transferred. The clone tool is capable of transforming between any image types including RGB->Indexed--although converting from any type to indexed is significantly slower."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/tools/gimpcolorbalancetool.c b/app/tools/gimpcolorbalancetool.c index 178ec52906..240e478815 100644 --- a/app/tools/gimpcolorbalancetool.c +++ b/app/tools/gimpcolorbalancetool.c @@ -29,6 +29,8 @@ #include "image_map.h" #include "interface.h" +#include "libgimp/gimpintl.h" + #define TEXT_WIDTH 55 #define SHADOWS 0 @@ -273,7 +275,7 @@ tools_new_color_balance () /* The tool options */ if (!color_balance_options) - color_balance_options = tools_register_no_options (COLOR_BALANCE, "Color Balance Options"); + color_balance_options = tools_register_no_options (COLOR_BALANCE, _("Color Balance Options")); tool = (Tool *) g_malloc (sizeof (Tool)); private = (ColorBalance *) g_malloc (sizeof (ColorBalance)); @@ -317,7 +319,7 @@ color_balance_initialize (GDisplay *gdisp) if (! drawable_color (gimage_active_drawable (gdisp->gimage))) { - g_message ("Color balance operates only on RGB color drawables."); + g_message (_("Color balance operates only on RGB color drawables.")); return; } @@ -349,8 +351,8 @@ color_balance_initialize (GDisplay *gdisp) /* the action area structure */ static ActionAreaItem action_items[] = { - { "OK", color_balance_ok_callback, NULL, NULL }, - { "Cancel", color_balance_cancel_callback, NULL, NULL } + { N_("OK"), color_balance_ok_callback, NULL, NULL }, + { N_("Cancel"), color_balance_cancel_callback, NULL, NULL } }; static ColorBalanceDialog * @@ -371,9 +373,9 @@ color_balance_new_dialog () int i; char *appl_mode_names[3] = { - "Shadows", - "Midtones", - "Highlights" + N_("Shadows"), + N_("Midtones"), + N_("Highlights") }; ActionCallback appl_mode_callbacks[3] = { @@ -390,7 +392,7 @@ color_balance_new_dialog () /* The shell and main vbox */ cbd->shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (cbd->shell), "color_balance", "Gimp"); - gtk_window_set_title (GTK_WINDOW (cbd->shell), "Color Balance"); + gtk_window_set_title (GTK_WINDOW (cbd->shell), N_("Color Balance")); /* handle the wm close signal */ gtk_signal_connect (GTK_OBJECT (cbd->shell), "delete_event", @@ -405,7 +407,7 @@ color_balance_new_dialog () hbox = gtk_hbox_new (TRUE, 2); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); - label = gtk_label_new ("Color Levels: "); + label = gtk_label_new (_("Color Levels: ")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, FALSE, 0); gtk_widget_show (label); @@ -444,7 +446,7 @@ color_balance_new_dialog () gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, FALSE, 0); /* Create the cyan-red scale widget */ - start_label = gtk_label_new ("Cyan"); + start_label = gtk_label_new (_("Cyan")); gtk_misc_set_alignment (GTK_MISC (start_label), 1.0, 1.0); gtk_table_attach (GTK_TABLE (table), start_label, 0, 1, 0, 1, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2); @@ -461,7 +463,7 @@ color_balance_new_dialog () gtk_signal_connect (GTK_OBJECT (data), "value_changed", (GtkSignalFunc) color_balance_cr_scale_update, cbd); - end_label = gtk_label_new ("Red"); + end_label = gtk_label_new (_("Red")); gtk_misc_set_alignment (GTK_MISC (end_label), 0.0, 1.0); gtk_table_attach (GTK_TABLE (table), end_label, 2, 3, 0, 1, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2); @@ -471,7 +473,7 @@ color_balance_new_dialog () gtk_widget_show (slider); /* Create the magenta-green scale widget */ - start_label = gtk_label_new ("Magenta"); + start_label = gtk_label_new (_("Magenta")); gtk_misc_set_alignment (GTK_MISC (start_label), 1.0, 1.0); gtk_table_attach (GTK_TABLE (table), start_label, 0, 1, 1, 2, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2); @@ -488,7 +490,7 @@ color_balance_new_dialog () gtk_signal_connect (GTK_OBJECT (data), "value_changed", (GtkSignalFunc) color_balance_mg_scale_update, cbd); - end_label = gtk_label_new ("Green"); + end_label = gtk_label_new (_("Green")); gtk_misc_set_alignment (GTK_MISC (end_label), 0.0, 1.0); gtk_table_attach (GTK_TABLE (table), end_label, 2, 3, 1, 2, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2); @@ -498,7 +500,7 @@ color_balance_new_dialog () gtk_widget_show (slider); /* Create the yellow-blue scale widget */ - start_label = gtk_label_new ("Yellow"); + start_label = gtk_label_new (_("Yellow")); gtk_misc_set_alignment (GTK_MISC (start_label), 1.0, 1.0); gtk_table_attach (GTK_TABLE (table), start_label, 0, 1, 2, 3, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2); @@ -515,7 +517,7 @@ color_balance_new_dialog () gtk_signal_connect (GTK_OBJECT (data), "value_changed", (GtkSignalFunc) color_balance_yb_scale_update, cbd); - end_label = gtk_label_new ("Blue"); + end_label = gtk_label_new (_("Blue")); gtk_misc_set_alignment (GTK_MISC (end_label), 0.0, 1.0); gtk_table_attach (GTK_TABLE (table), end_label, 2, 3, 2, 3, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 2, 2); @@ -529,7 +531,7 @@ color_balance_new_dialog () gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); /* The preview toggle */ - toggle = gtk_check_button_new_with_label ("Preview"); + toggle = gtk_check_button_new_with_label (_("Preview")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), cbd->preview); gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -538,7 +540,7 @@ color_balance_new_dialog () gtk_widget_show (toggle); /* The preserve luminosity toggle */ - toggle = gtk_check_button_new_with_label ("Preserve Luminosity"); + toggle = gtk_check_button_new_with_label (_("Preserve Luminosity")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), cbd->preserve_luminosity); gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -618,7 +620,7 @@ static void color_balance_preview (ColorBalanceDialog *cbd) { if (!cbd->image_map) - g_message ("color_balance_preview(): No image map"); + g_message (_("color_balance_preview(): No image map")); active_tool->preserve = TRUE; image_map_apply (cbd->image_map, color_balance, (void *) cbd); active_tool->preserve = FALSE; @@ -877,39 +879,39 @@ ProcArg color_balance_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_INT32, "transfer_mode", - "Transfer mode: { SHADOWS (0), MIDTONES (1), HIGHLIGHTS (2) }" + N_("Transfer mode: { SHADOWS (0), MIDTONES (1), HIGHLIGHTS (2) }") }, { PDB_INT32, "preserve_lum", - "Preserve luminosity values at each pixel" + N_("Preserve luminosity values at each pixel") }, { PDB_FLOAT, "cyan_red", - "Cyan-Red color balance: (-100 <= cyan_red <= 100)" + N_("Cyan-Red color balance: (-100 <= cyan_red <= 100)") }, { PDB_FLOAT, "magenta_green", - "Magenta-Green color balance: (-100 <= magenta_green <= 100)" + N_("Magenta-Green color balance: (-100 <= magenta_green <= 100)") }, { PDB_FLOAT, "yellow_blue", - "Yellow-Blue color balance: (-100 <= yellow_blue <= 100)" + N_("Yellow-Blue color balance: (-100 <= yellow_blue <= 100)") } }; ProcRecord color_balance_proc = { "gimp_color_balance", - "Modify the color balance of the specified drawable", - "Modify the color balance of the specified drawable. There are three axis which can be modified: cyan-red, magenta-green, and yellow-blue. Negative values increase the amount of the former, positive values increase the amount of the latter. Color balance can be controlled with the 'transfer_mode' setting, which allows shadows, midtones, and highlights in an image to be affected differently. The 'preserve_lum' parameter, if non-zero, ensures that the luminosity of each pixel remains fixed.", + N_("Modify the color balance of the specified drawable"), + N_("Modify the color balance of the specified drawable. There are three axis which can be modified: cyan-red, magenta-green, and yellow-blue. Negative values increase the amount of the former, positive values increase the amount of the latter. Color balance can be controlled with the 'transfer_mode' setting, which allows shadows, midtones, and highlights in an image to be affected differently. The 'preserve_lum' parameter, if non-zero, ensures that the luminosity of each pixel remains fixed."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1997", diff --git a/app/tools/gimpconvolvetool.c b/app/tools/gimpconvolvetool.c index 4c99b98a46..4440ce8242 100644 --- a/app/tools/gimpconvolvetool.c +++ b/app/tools/gimpconvolvetool.c @@ -29,6 +29,8 @@ #include "tools.h" #include "gimage.h" +#include "libgimp/gimpintl.h" + typedef enum { Blur, @@ -126,9 +128,9 @@ create_convolve_options (void) int i; char *button_names[3] = { - "Blur", - "Sharpen", - "Custom" + N_("Blur"), + N_("Sharpen"), + N_("Custom") }; /* the new options structure */ @@ -140,7 +142,7 @@ create_convolve_options (void) vbox = gtk_vbox_new (FALSE, 2); /* the main label */ - label = gtk_label_new ("Convolver Options"); + label = gtk_label_new (_("Convolver Options")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -148,7 +150,7 @@ create_convolve_options (void) hbox = gtk_hbox_new (FALSE, 1); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); - label = gtk_label_new ("Pressure"); + label = gtk_label_new (_("Pressure")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -424,27 +426,27 @@ ProcArg convolve_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_FLOAT, "pressure", - "the pressure: 0 <= pressure <= 100" + N_("the pressure: 0 <= pressure <= 100") }, { PDB_INT32, "convolve_type", - "convolve type: { BLUR (0), SHARPEN (1) }" + N_("convolve type: { BLUR (0), SHARPEN (1) }") }, { PDB_INT32, "num_strokes", - "number of stroke control points (count each coordinate as 2 points)" + N_("number of stroke control points (count each coordinate as 2 points)") }, { PDB_FLOATARRAY, "strokes", - "array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}" + N_("array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}") } }; @@ -452,8 +454,8 @@ ProcArg convolve_args[] = ProcRecord convolve_proc = { "gimp_convolve", - "Convolve (Blur, Sharpen) using the current brush", - "This tool convolves the specified drawable with either a sharpening or blurring kernel. The pressure parameter controls the magnitude of the operation. Like the paintbrush, this tool linearly interpolates between the specified stroke coordinates.", + N_("Convolve (Blur, Sharpen) using the current brush"), + N_("This tool convolves the specified drawable with either a sharpening or blurring kernel. The pressure parameter controls the magnitude of the operation. Like the paintbrush, this tool linearly interpolates between the specified stroke coordinates."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/tools/gimpcroptool.c b/app/tools/gimpcroptool.c index 25b2259729..6b9dd888cd 100644 --- a/app/tools/gimpcroptool.c +++ b/app/tools/gimpcroptool.c @@ -29,6 +29,8 @@ #include "info_dialog.h" #include "undo.h" +#include "libgimp/gimpintl.h" + #define STATUSBAR_SIZE 128 typedef struct _crop Crop; @@ -351,7 +353,7 @@ crop_motion (Tool *tool, crop->function == RESIZING_LEFT || crop->function == RESIZING_RIGHT) { gtk_statusbar_pop (GTK_STATUSBAR (gdisp->statusbar), crop->context_id); - g_snprintf (size, STATUSBAR_SIZE, "Crop: %d x %d", + g_snprintf (size, STATUSBAR_SIZE, _("Crop: %d x %d"), (crop->tx2 - crop->tx1), (crop->ty2 - crop->ty1)); gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), crop->context_id, size); } @@ -521,7 +523,7 @@ tools_new_crop () Crop * private; if (! crop_options) - crop_options = tools_register_no_options (CROP, "Crop Tool Options"); + crop_options = tools_register_no_options (CROP, _("Crop Tool Options")); tool = (Tool *) g_malloc (sizeof (Tool)); private = (Crop *) g_malloc (sizeof (Crop)); @@ -701,7 +703,7 @@ crop_start (Tool *tool, /* initialize the statusbar display */ crop->context_id = gtk_statusbar_get_context_id (GTK_STATUSBAR (gdisp->statusbar), "crop"); - gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), crop->context_id, "Crop: 0 x 0"); + gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), crop->context_id, _("Crop: 0 x 0")); draw_core_start (crop->core, gdisp->canvas->window, tool); } @@ -713,22 +715,22 @@ crop_start (Tool *tool, static ActionAreaItem action_items[3] = { - { "Crop", crop_ok_callback, NULL, NULL }, - { "Selection", crop_selection_callback, NULL, NULL }, - { "Close", crop_close_callback, NULL, NULL }, + { N_("Crop"), crop_ok_callback, NULL, NULL }, + { N_("Selection"), crop_selection_callback, NULL, NULL }, + { N_("Close"), crop_close_callback, NULL, NULL }, }; static void crop_info_create (Tool *tool) { /* create the info dialog */ - crop_info = info_dialog_new ("Crop Information"); + crop_info = info_dialog_new (_("Crop Information")); /* add the information fields */ - info_dialog_add_field (crop_info, "X Origin: ", orig_x_buf, crop_orig_x_changed, tool); - info_dialog_add_field (crop_info, "Y Origin: ", orig_y_buf, crop_orig_y_changed, tool); - info_dialog_add_field (crop_info, "Width: ", width_buf, crop_width_changed, tool); - info_dialog_add_field (crop_info, "Height: ", height_buf, crop_height_changed, tool); + info_dialog_add_field (crop_info, _("X Origin: "), orig_x_buf, crop_orig_x_changed, tool); + info_dialog_add_field (crop_info, _("Y Origin: "), orig_y_buf, crop_orig_y_changed, tool); + info_dialog_add_field (crop_info, _("Width: "), width_buf, crop_width_changed, tool); + info_dialog_add_field (crop_info, _("Height: "), height_buf, crop_height_changed, tool); /* Create the action area */ build_action_area (GTK_DIALOG (crop_info->shell), action_items, 3, 0); @@ -941,31 +943,31 @@ ProcArg crop_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_INT32, "new_width", - "new image width: (0 < new_width <= width)" + N_("new image width: (0 < new_width <= width)") }, { PDB_INT32, "new_height", - "new image height: (0 < new_height <= height)" + N_("new image height: (0 < new_height <= height)") }, { PDB_INT32, "offx", - "x offset: (0 <= offx <= (width - new_width))" + N_("x offset: (0 <= offx <= (width - new_width))") }, { PDB_INT32, "offy", - "y offset: (0 <= offy <= (height - new_height))" + N_("y offset: (0 <= offy <= (height - new_height))") } }; ProcRecord crop_proc = { "gimp_crop", - "Crop the image to the specified extents.", - "This procedure crops the image so that it's new width and height are equal to the supplied parameters. Offsets are also provided which describe the position of the previous image's content. All channels and layers within the image are cropped to the new image extents; this includes the image selection mask. If any parameters are out of range, an error is returned.", + N_("Crop the image to the specified extents."), + N_("This procedure crops the image so that it's new width and height are equal to the supplied parameters. Offsets are also provided which describe the position of the previous image's content. All channels and layers within the image are cropped to the new image extents; this includes the image selection mask. If any parameters are out of range, an error is returned."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/tools/gimpcurvestool.c b/app/tools/gimpcurvestool.c index 15512ec6f6..92ef076bbf 100644 --- a/app/tools/gimpcurvestool.c +++ b/app/tools/gimpcurvestool.c @@ -31,6 +31,8 @@ #include "interface.h" #include "curves.h" +#include "libgimp/gimpintl.h" + #define ROUND(x) ((int) ((x) + 0.5)) #define GRAPH 0x1 @@ -274,7 +276,7 @@ tools_new_curves () /* The tool options */ if (!curves_options) - curves_options = tools_register_no_options (CURVES, "Curves Options"); + curves_options = tools_register_no_options (CURVES, _("Curves Options")); tool = (Tool *) g_malloc (sizeof (Tool)); private = (Curves *) g_malloc (sizeof (Curves)); @@ -314,25 +316,25 @@ tools_free_curves (Tool *tool) /* the action area structure */ static ActionAreaItem action_items[] = { - { "Reset", curves_reset_callback, NULL, NULL }, - { "OK", curves_ok_callback, NULL, NULL }, - { "Cancel", curves_cancel_callback, NULL, NULL } + { N_("Reset"), curves_reset_callback, NULL, NULL }, + { N_("OK"), curves_ok_callback, NULL, NULL }, + { N_("Cancel"), curves_cancel_callback, NULL, NULL } }; static MenuItem channel_items[] = { - { "Value", 0, 0, curves_value_callback, NULL, NULL, NULL }, - { "Red", 0, 0, curves_red_callback, NULL, NULL, NULL }, - { "Green", 0, 0, curves_green_callback, NULL, NULL, NULL }, - { "Blue", 0, 0, curves_blue_callback, NULL, NULL, NULL }, - { "Alpha", 0, 0, curves_alpha_callback, NULL, NULL, NULL }, + { N_("Value"), 0, 0, curves_value_callback, NULL, NULL, NULL }, + { N_("Red"), 0, 0, curves_red_callback, NULL, NULL, NULL }, + { N_("Green"), 0, 0, curves_green_callback, NULL, NULL, NULL }, + { N_("Blue"), 0, 0, curves_blue_callback, NULL, NULL, NULL }, + { N_("Alpha"), 0, 0, curves_alpha_callback, NULL, NULL, NULL }, { NULL, 0, 0, NULL, NULL, NULL, NULL } }; static MenuItem curve_type_items[] = { - { "Smooth", 0, 0, curves_smooth_callback, NULL, NULL, NULL }, - { "Free", 0, 0, curves_free_callback, NULL, NULL, NULL }, + { N_("Smooth"), 0, 0, curves_smooth_callback, NULL, NULL, NULL }, + { N_("Free"), 0, 0, curves_free_callback, NULL, NULL, NULL }, { NULL, 0, 0, NULL, NULL, NULL, NULL } }; @@ -343,7 +345,7 @@ curves_initialize (GDisplay *gdisp) if (drawable_indexed (gimage_active_drawable (gdisp->gimage))) { - g_message ("Curves for indexed drawables cannot be adjusted."); + g_message (_("Curves for indexed drawables cannot be adjusted.")); return; } @@ -453,7 +455,7 @@ curves_new_dialog () /* The shell and main vbox */ cd->shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (cd->shell), "curves", "Gimp"); - gtk_window_set_title (GTK_WINDOW (cd->shell), "Curves"); + gtk_window_set_title (GTK_WINDOW (cd->shell), _("Curves")); gtk_signal_connect (GTK_OBJECT (cd->shell), "delete_event", GTK_SIGNAL_FUNC (curves_delete_callback), @@ -467,7 +469,7 @@ curves_new_dialog () channel_hbox = gtk_hbox_new (FALSE, 2); gtk_box_pack_start (GTK_BOX (vbox), channel_hbox, FALSE, FALSE, 0); - label = gtk_label_new ("Modify Curves for Channel: "); + label = gtk_label_new (_("Modify Curves for Channel: ")); gtk_box_pack_start (GTK_BOX (channel_hbox), label, FALSE, FALSE, 0); menu = build_menu (channel_items, NULL); @@ -541,7 +543,7 @@ curves_new_dialog () gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); /* The option menu for selecting the drawing method */ - label = gtk_label_new ("Curve Type: "); + label = gtk_label_new (_("Curve Type: ")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); menu = build_menu (curve_type_items, NULL); @@ -554,7 +556,7 @@ curves_new_dialog () gtk_option_menu_set_menu (GTK_OPTION_MENU (option_menu), menu); /* The preview toggle */ - toggle = gtk_check_button_new_with_label ("Preview"); + toggle = gtk_check_button_new_with_label (_("Preview")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), cd->preview); gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -814,7 +816,7 @@ static void curves_preview (CurvesDialog *cd) { if (!cd->image_map) - g_message ("curves_preview(): No image map"); + g_message (_("curves_preview(): No image map")); active_tool->preserve = TRUE; /* Going to dirty the display... */ @@ -1298,31 +1300,31 @@ ProcArg curves_spline_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_INT32, "channel", - "the channel to modify: { VALUE (0), RED (1), GREEN (2), BLUE (3), ALPHA (4), GRAY (0) }" + N_("the channel to modify: { VALUE (0), RED (1), GREEN (2), BLUE (3), ALPHA (4), GRAY (0) }") }, { PDB_INT32, "num_points", - "the number of values in the control point array ( 3 < num_points <= 32 )" + N_("the number of values in the control point array ( 3 < num_points <= 32 )") }, { PDB_INT8ARRAY, "control_pts", - "the spline control points: { cp1.x, cp1.y, cp2.x, cp2.y, ... }" + N_("the spline control points: { cp1.x, cp1.y, cp2.x, cp2.y, ... }") } }; ProcRecord curves_spline_proc = { "gimp_curves_spline", - "Modifies the intensity curve(s) for specified drawable", - "Modifies the intensity mapping for one channel in the specified drawable. The drawable must be either grayscale or RGB, and the channel can be either an intensity component, or the value. The 'control_pts' parameter is an array of integers which define a set of control points which describe a Catmull Rom spline which yields the final intensity curve. Use the 'gimp_curves_explicit' function to explicitly modify intensity levels.", + N_("Modifies the intensity curve(s) for specified drawable"), + N_("Modifies the intensity mapping for one channel in the specified drawable. The drawable must be either grayscale or RGB, and the channel can be either an intensity component, or the value. The 'control_pts' parameter is an array of integers which define a set of control points which describe a Catmull Rom spline which yields the final intensity curve. Use the 'gimp_curves_explicit' function to explicitly modify intensity levels."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -1456,31 +1458,31 @@ ProcArg curves_explicit_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_INT32, "channel", - "the channel to modify: { VALUE (0), RED (1), GREEN (2), BLUE (3), GRAY (0) }" + N_("the channel to modify: { VALUE (0), RED (1), GREEN (2), BLUE (3), GRAY (0) }") }, { PDB_INT32, "num_bytes", - "the number of bytes in the new curve (always 256)" + N_("the number of bytes in the new curve (always 256)") }, { PDB_INT8ARRAY, "curve", - "the explicit curve" + N_("the explicit curve") } }; ProcRecord curves_explicit_proc = { "gimp_curves_explicit", - "Modifies the intensity curve(s) for specified drawable", - "Modifies the intensity mapping for one channel in the specified drawable. The drawable must be either grayscale or RGB, and the channel can be either an intensity component, or the value. The 'curve' parameter is an array of bytes which explicitly defines how each pixel value in the drawable will be modified. Use the 'gimp_curves_spline' function to modify intensity levels with Catmull Rom splines.", + N_("Modifies the intensity curve(s) for specified drawable"), + N_("Modifies the intensity mapping for one channel in the specified drawable. The drawable must be either grayscale or RGB, and the channel can be either an intensity component, or the value. The 'curve' parameter is an array of bytes which explicitly defines how each pixel value in the drawable will be modified. Use the 'gimp_curves_spline' function to modify intensity levels with Catmull Rom splines."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/tools/gimpeditselectiontool.c b/app/tools/gimpeditselectiontool.c index cfa6cac7eb..fe39657205 100644 --- a/app/tools/gimpeditselectiontool.c +++ b/app/tools/gimpeditselectiontool.c @@ -28,6 +28,8 @@ #include "gdisplay.h" #include "undo.h" +#include "libgimp/gimpintl.h" + #define EDIT_SELECT_SCROLL_LOCK 0 #define ARROW_VELOCITY 25 #define STATUSBAR_SIZE 128 @@ -149,7 +151,7 @@ init_edit_selection (Tool *tool, /* initialize the statusbar display */ edit_select.context_id = gtk_statusbar_get_context_id (GTK_STATUSBAR (gdisp->statusbar), "edit_select"); - gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), edit_select.context_id, "Move: 0, 0"); + gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), edit_select.context_id, _("Move: 0, 0")); /* Create and start the selection core */ edit_select.core = draw_core_new (edit_selection_draw); @@ -294,7 +296,7 @@ edit_selection_motion (Tool *tool, edit_selection_snap (gdisp, mevent->x, mevent->y); gtk_statusbar_pop (GTK_STATUSBAR(gdisp->statusbar), edit_select.context_id); - g_snprintf (offset, STATUSBAR_SIZE, "Move: %d, %d", + g_snprintf (offset, STATUSBAR_SIZE, _("Move: %d, %d"), (edit_select.x - edit_select.origx), (edit_select.y - edit_select.origy)); gtk_statusbar_push (GTK_STATUSBAR(gdisp->statusbar), edit_select.context_id, offset); diff --git a/app/tools/gimpellipseselecttool.c b/app/tools/gimpellipseselecttool.c index 0996d51773..1006660e55 100644 --- a/app/tools/gimpellipseselecttool.c +++ b/app/tools/gimpellipseselecttool.c @@ -25,6 +25,8 @@ /* private header file for rect_select data structure */ #include "rect_selectP.h" +#include "libgimp/gimpintl.h" + #define NO 0 #define YES 1 @@ -151,47 +153,47 @@ ProcArg ellipse_select_args[] = { { PDB_IMAGE, "image", - "The image" + N_("the image") }, { PDB_FLOAT, "x", - "x coordinate of upper-left corner of ellipse bounding box" + N_("x coordinate of upper-left corner of ellipse bounding box") }, { PDB_FLOAT, "y", - "y coordinate of upper-left corner of ellipse bounding box" + N_("y coordinate of upper-left corner of ellipse bounding box") }, { PDB_FLOAT, "width", - "the width of the ellipse: width > 0" + N_("the width of the ellipse: width > 0") }, { PDB_FLOAT, "height", - "the height of the ellipse: height > 0" + N_("the height of the ellipse: height > 0") }, { PDB_INT32, "operation", - "the selection operation: { ADD (0), SUB (1), REPLACE (2), INTERSECT (3) }" + N_("the selection operation: { ADD (0), SUB (1), REPLACE (2), INTERSECT (3) }") }, { PDB_INT32, "antialias", - "antialiasing On/Off" + N_("antialiasing On/Off") }, { PDB_INT32, "feather", - "feather option for selections" + N_("feather option for selections") }, { PDB_FLOAT, "feather_radius", - "radius for feather operation" + N_("radius for feather operation") } }; ProcRecord ellipse_select_proc = { "gimp_ellipse_select", - "Create an elliptical selection over the specified image", - "This tool creates an elliptical selection over the specified image. The elliptical region can be either added to, subtracted from, or replace the contents of the previous selection mask. If antialiasing is turned on, the edges of the elliptical region will contain intermediate values which give the appearance of a sharper, less pixelized edge. This should be set as TRUE most of the time. If the feather option is enabled, the resulting selection is blurred before combining. The blur is a gaussian blur with the specified feather radius.", + N_("Create an elliptical selection over the specified image"), + N_("This tool creates an elliptical selection over the specified image. The elliptical region can be either added to, subtracted from, or replace the contents of the previous selection mask. If antialiasing is turned on, the edges of the elliptical region will contain intermediate values which give the appearance of a sharper, less pixelized edge. This should be set as TRUE most of the time. If the feather option is enabled, the resulting selection is blurred before combining. The blur is a gaussian blur with the specified feather radius."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/tools/gimperasertool.c b/app/tools/gimperasertool.c index 138784e975..33a3fc0d21 100644 --- a/app/tools/gimperasertool.c +++ b/app/tools/gimperasertool.c @@ -28,6 +28,8 @@ #include "selection.h" #include "tools.h" +#include "libgimp/gimpintl.h" + /* forward function declarations */ static void eraser_motion (PaintCore *, GimpDrawable *, gboolean, gboolean); static Argument * eraser_invoker (Argument *); @@ -76,12 +78,12 @@ create_eraser_options (void) vbox = gtk_vbox_new (FALSE, 1); /* the main label */ - label = gtk_label_new ("Eraser Options"); + label = gtk_label_new (_("Eraser Options")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); /* the hard toggle */ - hard_toggle = gtk_check_button_new_with_label ("Hard edge"); + hard_toggle = gtk_check_button_new_with_label (_("Hard edge")); gtk_box_pack_start (GTK_BOX (vbox), hard_toggle, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (hard_toggle), "toggled", (GtkSignalFunc) eraser_toggle_update, @@ -90,7 +92,7 @@ create_eraser_options (void) gtk_widget_show (hard_toggle); /* the incremental toggle */ - incremental_toggle = gtk_check_button_new_with_label ("Incremental"); + incremental_toggle = gtk_check_button_new_with_label (_("Incremental")); gtk_box_pack_start (GTK_BOX (vbox), incremental_toggle, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (incremental_toggle), "toggled", (GtkSignalFunc) eraser_toggle_update, @@ -202,27 +204,27 @@ ProcArg eraser_extended_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_INT32, "num_strokes", - "number of stroke control points (count each coordinate as 2 points)" + N_("number of stroke control points (count each coordinate as 2 points)") }, { PDB_FLOATARRAY, "strokes", - "array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}" + N_("array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}") }, { PDB_INT32, "hardness", - "SOFT(0) or HARD(1)" + N_("SOFT(0) or HARD(1)") }, { PDB_INT32, "method", - "CONTINUOUS(0) or INCREMENTAL(1)" + N_("CONTINUOUS(0) or INCREMENTAL(1)") } }; @@ -230,19 +232,19 @@ ProcArg eraser_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_INT32, "num_strokes", - "number of stroke control points (count each coordinate as 2 points)" + N_("number of stroke control points (count each coordinate as 2 points)") }, { PDB_FLOATARRAY, "strokes", - "array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}" + N_("array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}") } }; @@ -250,8 +252,8 @@ ProcArg eraser_args[] = ProcRecord eraser_proc = { "gimp_eraser", - "Erase using the current brush", - "This tool erases using the current brush mask. If the specified drawable contains an alpha channel, then the erased pixels will become transparent. Otherwise, the eraser tool replaces the contents of the drawable with the background color. Like paintbrush, this tool linearly interpolates between the specified stroke coordinates.", + N_("Erase using the current brush"), + N_("This tool erases using the current brush mask. If the specified drawable contains an alpha channel, then the erased pixels will become transparent. Otherwise, the eraser tool replaces the contents of the drawable with the background color. Like paintbrush, this tool linearly interpolates between the specified stroke coordinates."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -272,8 +274,8 @@ ProcRecord eraser_proc = ProcRecord eraser_extended_proc = { "gimp_eraser_extended", - "Erase using the current brush", - "This tool erases using the current brush mask. If the specified drawable contains an alpha channel, then the erased pixels will become transparent. Otherwise, the eraser tool replaces the contents of the drawable with the background color. Like paintbrush, this tool linearly interpolates between the specified stroke coordinates.", + N_("Erase using the current brush"), + N_("This tool erases using the current brush mask. If the specified drawable contains an alpha channel, then the erased pixels will become transparent. Otherwise, the eraser tool replaces the contents of the drawable with the background color. Like paintbrush, this tool linearly interpolates between the specified stroke coordinates."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/tools/gimpfliptool.c b/app/tools/gimpfliptool.c index 6b119f3a69..a694983e16 100644 --- a/app/tools/gimpfliptool.c +++ b/app/tools/gimpfliptool.c @@ -26,6 +26,8 @@ #include "undo.h" #include "gimage.h" +#include "libgimp/gimpintl.h" + #include "tile_manager_pvt.h" /* ick. */ #define FLIP 0 @@ -68,8 +70,8 @@ create_flip_options (void) int i; char *button_names[2] = { - "Horizontal", - "Vertical", + N_("Horizontal"), + N_("Vertical"), }; /* the new options structure */ @@ -80,7 +82,7 @@ create_flip_options (void) vbox = gtk_vbox_new (FALSE, 1); /* the main label */ - label = gtk_label_new ("Flip Tool Options"); + label = gtk_label_new (_("Flip Tool Options")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -332,15 +334,15 @@ ProcArg flip_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the affected drawable" + N_("the affected drawable") }, { PDB_INT32, "flip_type", - "Type of flip: { HORIZONTAL (0), VERTICAL (1) }" + N_("Type of flip: { HORIZONTAL (0), VERTICAL (1) }") } }; @@ -348,15 +350,15 @@ ProcArg flip_out_args[] = { { PDB_DRAWABLE, "drawable", - "the flipped drawable" + N_("the flipped drawable") } }; ProcRecord flip_proc = { "gimp_flip", - "Flip the specified drawable about its center either vertically or horizontally", - "This tool flips the specified drawable if no selection exists. If a selection exists, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then flipd by the specified amount. The return value is the ID of the flipped drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and flipd drawable. The flip type parameter indicates whether the flip will be applied horizontally or vertically.", + N_("Flip the specified drawable about its center either vertically or horizontally"), + N_("This tool flips the specified drawable if no selection exists. If a selection exists, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then flipd by the specified amount. The return value is the ID of the flipped drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and flipd drawable. The flip type parameter indicates whether the flip will be applied horizontally or vertically."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/tools/gimpfreeselecttool.c b/app/tools/gimpfreeselecttool.c index 5295abc553..936b447071 100644 --- a/app/tools/gimpfreeselecttool.c +++ b/app/tools/gimpfreeselecttool.c @@ -26,6 +26,8 @@ #include "gdisplay.h" #include "rect_select.h" +#include "libgimp/gimpintl.h" + typedef struct _free_select FreeSelect; struct _free_select @@ -67,7 +69,7 @@ add_point (int num_pts, int x, int y) global_pts = (GdkPoint *) g_realloc ((void *) global_pts, sizeof (GdkPoint) * max_segs); if (!global_pts) - fatal_error ("Unable to reallocate points array in free_select."); + fatal_error (_("Unable to reallocate points array in free_select.")); } global_pts[num_pts].x = x; @@ -212,7 +214,7 @@ scan_convert (GimpImage* gimage, int num_pts, FreeSelectPoint *pts, x = (long) list->data; list = g_slist_next(list); if (!list) - g_message ("Cannot properly scanline convert polygon!\n"); + g_message (_("Cannot properly scanline convert polygon!\n")); else { /* bounds checking */ @@ -489,39 +491,39 @@ ProcArg free_select_args[] = { { PDB_IMAGE, "image", - "The image" + N_("the image") }, { PDB_INT32, "num_pts", - "number of points (count 1 coordinate as two points)" + N_("number of points (count 1 coordinate as two points)") }, { PDB_FLOATARRAY, "segs", - "array of points: { p1.x, p1.y, p2.x, p2.y, ..., pn.x, pn.y}" + N_("array of points: { p1.x, p1.y, p2.x, p2.y, ..., pn.x, pn.y}") }, { PDB_INT32, "operation", - "the selection operation: { ADD (0), SUB (1), REPLACE (2), INTERSECT (3) }" + N_("the selection operation: { ADD (0), SUB (1), REPLACE (2), INTERSECT (3) }") }, { PDB_INT32, "antialias", - "antialiasing option for selections" + N_("antialiasing option for selections") }, { PDB_INT32, "feather", - "feather option for selections" + N_("feather option for selections") }, { PDB_FLOAT, "feather_radius", - "radius for feather operation" + N_("radius for feather operation") } }; ProcRecord free_select_proc = { "gimp_free_select", - "Create a polygonal selection over the specified image", - "This tool creates a polygonal selection over the specified image. The polygonal region can be either added to, subtracted from, or replace the contents of the previous selection mask. The polygon is specified through an array of floating point numbers and its length. The length of array must be 2n, where n is the number of points. Each point is defined by 2 floating point values which correspond to the x and y coordinates. If the final point does not connect to the starting point, a connecting segment is automatically added. If the feather option is enabled, the resulting selection is blurred before combining. The blur is a gaussian blur with the specified feather radius.", + N_("Create a polygonal selection over the specified image"), + N_("This tool creates a polygonal selection over the specified image. The polygonal region can be either added to, subtracted from, or replace the contents of the previous selection mask. The polygon is specified through an array of floating point numbers and its length. The length of array must be 2n, where n is the number of points. Each point is defined by 2 floating point values which correspond to the x and y coordinates. If the final point does not connect to the starting point, a connecting segment is automatically added. If the feather option is enabled, the resulting selection is blurred before combining. The blur is a gaussian blur with the specified feather radius."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/tools/gimprectselecttool.c b/app/tools/gimprectselecttool.c index 3fe8721a15..9ede5f4259 100644 --- a/app/tools/gimprectselecttool.c +++ b/app/tools/gimprectselecttool.c @@ -24,6 +24,8 @@ #include "rect_select.h" #include "rect_selectP.h" +#include "libgimp/gimpintl.h" + #define NO 0 #define YES 1 @@ -108,25 +110,25 @@ create_selection_options (ToolType tool_type) switch (tool_type) { case RECT_SELECT: - label = gtk_label_new ("Rectangular Select Options"); + label = gtk_label_new (_("Rectangular Select Options")); break; case ELLIPSE_SELECT: - label = gtk_label_new ("Elliptical Selection Options"); + label = gtk_label_new (_("Elliptical Selection Options")); break; case FREE_SELECT: - label = gtk_label_new ("Free-hand Selection Options"); + label = gtk_label_new (_("Free-hand Selection Options")); break; case FUZZY_SELECT: - label = gtk_label_new ("Fuzzy Selection Options"); + label = gtk_label_new (_("Fuzzy Selection Options")); break; case BEZIER_SELECT: - label = gtk_label_new ("Bezier Selection Options"); + label = gtk_label_new (_("Bezier Selection Options")); break; case ISCISSORS: - label = gtk_label_new ("Intelligent Scissors Options"); + label = gtk_label_new (_("Intelligent Scissors Options")); break; case BY_COLOR_SELECT: - label = gtk_label_new ("By-Color Select Options"); + label = gtk_label_new (_("By-Color Select Options")); break; default: break; @@ -146,7 +148,7 @@ create_selection_options (ToolType tool_type) case FUZZY_SELECT: case ISCISSORS: case BY_COLOR_SELECT: - sample_merged_toggle = gtk_check_button_new_with_label ("Sample Merged"); + sample_merged_toggle = gtk_check_button_new_with_label (_("Sample Merged")); gtk_box_pack_start (GTK_BOX (vbox), sample_merged_toggle, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (sample_merged_toggle), "toggled", (GtkSignalFunc) selection_toggle_update, @@ -160,7 +162,7 @@ create_selection_options (ToolType tool_type) if (tool_type == BEZIER_SELECT) { - bezier_toggle = gtk_check_button_new_with_label ("Bezier Extends"); + bezier_toggle = gtk_check_button_new_with_label (_("Bezier Extends")); gtk_box_pack_start (GTK_BOX (vbox), bezier_toggle, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (bezier_toggle), "toggled", (GtkSignalFunc) selection_toggle_update, @@ -173,7 +175,7 @@ create_selection_options (ToolType tool_type) /* the antialias toggle button */ if (tool_type != RECT_SELECT) { - antialias_toggle = gtk_check_button_new_with_label ("Antialiasing"); + antialias_toggle = gtk_check_button_new_with_label (_("Antialiasing")); gtk_box_pack_start (GTK_BOX (vbox), antialias_toggle, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (antialias_toggle), "toggled", (GtkSignalFunc) selection_toggle_update, @@ -185,7 +187,7 @@ create_selection_options (ToolType tool_type) /* Widgets for fixed size select */ if (tool_type == RECT_SELECT || tool_type == ELLIPSE_SELECT) { - fixed_size_toggle = gtk_check_button_new_with_label ("Fixed size / aspect ratio"); + fixed_size_toggle = gtk_check_button_new_with_label (_("Fixed size / aspect ratio")); gtk_box_pack_start (GTK_BOX(vbox), fixed_size_toggle, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT(fixed_size_toggle), "toggled", (GtkSignalFunc)selection_toggle_update, @@ -196,7 +198,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); @@ -214,7 +216,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); @@ -232,7 +234,7 @@ create_selection_options (ToolType tool_type) } /* the feather toggle button */ - feather_toggle = gtk_check_button_new_with_label ("Feather"); + feather_toggle = gtk_check_button_new_with_label (_("Feather")); gtk_box_pack_start (GTK_BOX (vbox), feather_toggle, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (feather_toggle), "toggled", (GtkSignalFunc) selection_toggle_update, @@ -244,7 +246,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); @@ -385,16 +387,16 @@ rect_select_button_press (Tool *tool, switch (rect_sel->op) { case ADD: - g_snprintf (select_mode, STATUSBAR_SIZE, "Selection: ADD"); + g_snprintf (select_mode, STATUSBAR_SIZE, _("Selection: ADD")); break; case SUB: - g_snprintf (select_mode, STATUSBAR_SIZE, "Selection: SUBTRACT"); + g_snprintf (select_mode, STATUSBAR_SIZE, _("Selection: SUBTRACT")); break; case INTERSECT: - g_snprintf (select_mode, STATUSBAR_SIZE, "Selection: INTERSECT"); + g_snprintf (select_mode, STATUSBAR_SIZE, _("Selection: INTERSECT")); break; case REPLACE: - g_snprintf (select_mode, STATUSBAR_SIZE, "Selection: REPLACE"); + g_snprintf (select_mode, STATUSBAR_SIZE, _("Selection: REPLACE")); break; default: break; @@ -592,7 +594,7 @@ rect_select_motion (Tool *tool, } gtk_statusbar_pop (GTK_STATUSBAR (gdisp->statusbar), rect_sel->context_id); - g_snprintf (size, STATUSBAR_SIZE, "Selection: %d x %d", abs(rect_sel->w), abs(rect_sel->h)); + g_snprintf (size, STATUSBAR_SIZE, _("Selection: %d x %d"), abs(rect_sel->w), abs(rect_sel->h)); gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), rect_sel->context_id, size); draw_core_resume (rect_sel->core, tool); @@ -722,43 +724,43 @@ ProcArg rect_select_args[] = { { PDB_IMAGE, "image", - "The image" + N_("the image") }, { PDB_FLOAT, "x", - "x coordinate of upper-left corner of rectangle" + N_("x coordinate of upper-left corner of rectangle") }, { PDB_FLOAT, "y", - "y coordinate of upper-left corner of rectangle" + N_("y coordinate of upper-left corner of rectangle") }, { PDB_FLOAT, "width", - "the width of the rectangle: width > 0" + N_("the width of the rectangle: width > 0") }, { PDB_FLOAT, "height", - "the height of the rectangle: height > 0" + N_("the height of the rectangle: height > 0") }, { PDB_INT32, "operation", - "the selection operation: { ADD (0), SUB (1), REPLACE (2), INTERSECT (3) }" + N_("the selection operation: { ADD (0), SUB (1), REPLACE (2), INTERSECT (3) }") }, { PDB_INT32, "feather", - "feather option for selections" + N_("feather option for selections") }, { PDB_FLOAT, "feather_radius", - "radius for feather operation" + N_("radius for feather operation") } }; ProcRecord rect_select_proc = { "gimp_rect_select", - "Create a rectangular selection over the specified image", - "This tool creates a rectangular selection over the specified image. The rectangular region can be either added to, subtracted from, or replace the contents of the previous selection mask. If the feather option is enabled, the resulting selection is blurred before combining. The blur is a gaussian blur with the specified feather radius.", + N_("Create a rectangular selection over the specified image"), + N_("This tool creates a rectangular selection over the specified image. The rectangular region can be either added to, subtracted from, or replace the contents of the previous selection mask. If the feather option is enabled, the resulting selection is blurred before combining. The blur is a gaussian blur with the specified feather radius."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/tools/gimprotatetool.c b/app/tools/gimprotatetool.c index e805ef0ab5..3521858aac 100644 --- a/app/tools/gimprotatetool.c +++ b/app/tools/gimprotatetool.c @@ -33,6 +33,8 @@ #include "tile_manager_pvt.h" +#include "libgimp/gimpintl.h" + #ifndef M_PI #define M_PI 3.14159265358979323846 #endif /* M_PI */ @@ -81,10 +83,10 @@ rotate_tool_transform (tool, gdisp_ptr, state) case INIT : if (!transform_info) { - transform_info = info_dialog_new ("Rotation Information"); - info_dialog_add_field (transform_info, "Angle: ", angle_buf, (GtkSignalFunc) rotate_angle_changed, tool); - info_dialog_add_field (transform_info, "Center X: ", center_x_buf, (GtkSignalFunc) rotate_center_x_changed, tool); - info_dialog_add_field (transform_info, "Center Y: ", center_y_buf, (GtkSignalFunc) rotate_center_y_changed, tool); + transform_info = info_dialog_new (_("Rotation Information")); + info_dialog_add_field (transform_info, _("Angle: "), angle_buf, (GtkSignalFunc) rotate_angle_changed, tool); + info_dialog_add_field (transform_info, _("Center X: "), center_x_buf, (GtkSignalFunc) rotate_center_x_changed, tool); + info_dialog_add_field (transform_info, _("Center Y: "), center_y_buf, (GtkSignalFunc) rotate_center_y_changed, tool); } transform_core->trans_info[ANGLE] = 0.0; @@ -376,19 +378,19 @@ ProcArg rotate_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the affected drawable" + N_("the affected drawable") }, { PDB_INT32, "interpolation", - "whether to use interpolation" + N_("whether to use interpolation") }, { PDB_FLOAT, "angle", - "the angle of rotation (radians)", + N_("the angle of rotation (radians)"), } }; @@ -396,15 +398,15 @@ ProcArg rotate_out_args[] = { { PDB_DRAWABLE, "drawable", - "the rotated drawable" + N_("the rotated drawable") } }; ProcRecord rotate_proc = { "gimp_rotate", - "Rotate the specified drawable about its center through the specified angle", - "This tool rotates the specified drawable if no selection exists. If a selection exists, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then rotated by the specified amount. The interpolation parameter can be set to TRUE to indicate that either linear or cubic interpolation should be used to smooth the resulting rotated drawable. The return value is the ID of the rotated drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and rotated drawable.", + N_("Rotate the specified drawable about its center through the specified angle"), + N_("This tool rotates the specified drawable if no selection exists. If a selection exists, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then rotated by the specified amount. The interpolation parameter can be set to TRUE to indicate that either linear or cubic interpolation should be used to smooth the resulting rotated drawable. The return value is the ID of the rotated drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and rotated drawable."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/tools/gimpscaletool.c b/app/tools/gimpscaletool.c index 7d83bb64bd..ca41474c27 100644 --- a/app/tools/gimpscaletool.c +++ b/app/tools/gimpscaletool.c @@ -31,6 +31,8 @@ #include "tile_manager_pvt.h" +#include "libgimp/gimpintl.h" + #define X1 0 #define Y1 1 #define X2 2 @@ -72,13 +74,13 @@ scale_tool_transform (tool, gdisp_ptr, state) case INIT : if (!transform_info) { - transform_info = info_dialog_new ("Scaling Information"); - info_dialog_add_field (transform_info, "Original Width: ", orig_width_buf, NULL, NULL); - info_dialog_add_field (transform_info, "Original Height: ", orig_height_buf, NULL, NULL); - info_dialog_add_field (transform_info, "Current Width: ", width_buf, scale_width_changed, tool); - info_dialog_add_field (transform_info, "Current Height: ", height_buf, scale_height_changed, tool); - info_dialog_add_field (transform_info, "X Scale Ratio: ", x_ratio_buf, NULL, NULL); - info_dialog_add_field (transform_info, "Y Scale Ratio: ", y_ratio_buf, NULL, NULL); + transform_info = info_dialog_new (_("Scaling Information")); + info_dialog_add_field (transform_info, _("Original Width: "), orig_width_buf, NULL, NULL); + info_dialog_add_field (transform_info, _("Original Height: "), orig_height_buf, NULL, NULL); + info_dialog_add_field (transform_info, _("Current Width: "), width_buf, scale_width_changed, tool); + info_dialog_add_field (transform_info, _("Current Height: "), height_buf, scale_height_changed, tool); + info_dialog_add_field (transform_info, _("X Scale Ratio: "), x_ratio_buf, NULL, NULL); + info_dialog_add_field (transform_info, _("Y Scale Ratio: "), y_ratio_buf, NULL, NULL); } transform_core->trans_info [X1] = (double) transform_core->x1; @@ -467,31 +469,31 @@ ProcArg scale_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the affected drawable" + N_("the affected drawable") }, { PDB_INT32, "interpolation", - "whether to use interpolation" + N_("whether to use interpolation") }, { PDB_FLOAT, "x1", - "the x coordinate of the upper-left corner of newly scaled region" + N_("the x coordinate of the upper-left corner of newly scaled region") }, { PDB_FLOAT, "y1", - "the y coordinate of the upper-left corner of newly scaled region" + N_("the y coordinate of the upper-left corner of newly scaled region") }, { PDB_FLOAT, "x2", - "the x coordinate of the lower-right corner of newly scaled region" + N_("the x coordinate of the lower-right corner of newly scaled region") }, { PDB_FLOAT, "y2", - "the y coordinate of the lower-right corner of newly scaled region" + N_("the y coordinate of the lower-right corner of newly scaled region") } }; @@ -499,15 +501,15 @@ ProcArg scale_out_args[] = { { PDB_DRAWABLE, "drawable", - "the scaled drawable" + N_("the scaled drawable") } }; ProcRecord scale_proc = { "gimp_scale", - "Scale the specified drawable", - "This tool scales the specified drawable if no selection exists. If a selection exists, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then scaled by the specified amount. The interpolation parameter can be set to TRUE to indicate that either linear or cubic interpolation should be used to smooth the resulting scaled drawable. The return value is the ID of the scaled drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and scaled drawable.", + N_("Scale the specified drawable"), + N_("This tool scales the specified drawable if no selection exists. If a selection exists, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then scaled by the specified amount. The interpolation parameter can be set to TRUE to indicate that either linear or cubic interpolation should be used to smooth the resulting scaled drawable. The return value is the ID of the scaled drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and scaled drawable."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/tools/gimpsheartool.c b/app/tools/gimpsheartool.c index dbab53702f..cd86593906 100644 --- a/app/tools/gimpsheartool.c +++ b/app/tools/gimpsheartool.c @@ -33,6 +33,8 @@ #include "tile_manager_pvt.h" +#include "libgimp/gimpintl.h" + /* index into trans_info array */ #define HORZ_OR_VERT 0 #define XSHEAR 1 @@ -78,9 +80,9 @@ shear_tool_transform (tool, gdisp_ptr, state) case INIT : if (!transform_info) { - transform_info = info_dialog_new ("Shear Information"); - info_dialog_add_field (transform_info, "X Shear Magnitude: ", xshear_buf, shear_x_mag_changed, tool); - info_dialog_add_field (transform_info, "Y Shear Magnitude: ", yshear_buf, shear_y_mag_changed, tool); + transform_info = info_dialog_new (_("Shear Information")); + info_dialog_add_field (transform_info, _("X Shear Magnitude: "), xshear_buf, shear_x_mag_changed, tool); + info_dialog_add_field (transform_info, _("Y Shear Magnitude: "), yshear_buf, shear_y_mag_changed, tool); } direction_unknown = 1; transform_core->trans_info[HORZ_OR_VERT] = HORZ; @@ -363,23 +365,23 @@ ProcArg shear_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the affected drawable" + N_("the affected drawable") }, { PDB_INT32, "interpolation", - "whether to use interpolation" + N_("whether to use interpolation") }, { PDB_INT32, "shear_type", - "Type of shear: { HORIZONTAL (0), VERTICAL (1) }" + N_("Type of shear: { HORIZONTAL (0), VERTICAL (1) }") }, { PDB_FLOAT, "magnitude", - "the magnitude of the shear" + N_("the magnitude of the shear") } }; @@ -387,15 +389,15 @@ ProcArg shear_out_args[] = { { PDB_DRAWABLE, "drawable", - "the sheard drawable" + N_("the sheard drawable") } }; ProcRecord shear_proc = { "gimp_shear", - "Shear the specified drawable about its center by the specified magnitude", - "This tool shears the specified drawable if no selection exists. If a selection exists, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then sheard by the specified amount. The interpolation parameter can be set to TRUE to indicate that either linear or cubic interpolation should be used to smooth the resulting sheard drawable. The return value is the ID of the sheard drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and sheard drawable. The shear type parameter indicates whether the shear will be applied horizontally or vertically. The magnitude can be either positive or negative and indicates the extent (in pixels) to shear by.", + N_("Shear the specified drawable about its center by the specified magnitude"), + N_("This tool shears the specified drawable if no selection exists. If a selection exists, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then sheard by the specified amount. The interpolation parameter can be set to TRUE to indicate that either linear or cubic interpolation should be used to smooth the resulting sheard drawable. The return value is the ID of the sheard drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and sheard drawable. The shear type parameter indicates whether the shear will be applied horizontally or vertically. The magnitude can be either positive or negative and indicates the extent (in pixels) to shear by."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/tools/gimpsourcetool.c b/app/tools/gimpsourcetool.c index 154d2e8a3a..bda1348195 100644 --- a/app/tools/gimpsourcetool.c +++ b/app/tools/gimpsourcetool.c @@ -31,6 +31,8 @@ #include "selection.h" #include "tools.h" +#include "libgimp/gimpintl.h" + #define TARGET_HEIGHT 15 #define TARGET_WIDTH 15 @@ -112,8 +114,8 @@ create_clone_options (void) int i; char *button_names[2] = { - "Image Source", - "Pattern Source" + N_("Image Source"), + N_("Pattern Source") }; /* the new options structure */ @@ -125,12 +127,12 @@ create_clone_options (void) vbox = gtk_vbox_new (FALSE, 1); /* the main label */ - label = gtk_label_new ("Clone Tool Options"); + label = gtk_label_new (_("Clone Tool Options")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); /* the radio frame and box */ - radio_frame = gtk_frame_new ("Source"); + radio_frame = gtk_frame_new (_("Source")); gtk_box_pack_start (GTK_BOX (vbox), radio_frame, FALSE, FALSE, 0); radio_box = gtk_vbox_new (FALSE, 1); @@ -151,7 +153,7 @@ create_clone_options (void) gtk_widget_show (radio_frame); /* the aligned toggle button */ - aligned_toggle = gtk_check_button_new_with_label ("Aligned"); + aligned_toggle = gtk_check_button_new_with_label (_("Aligned")); gtk_box_pack_start (GTK_BOX (vbox), aligned_toggle, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (aligned_toggle), "toggled", (GtkSignalFunc) clone_toggle_update, @@ -228,7 +230,7 @@ clone_paint_func (PaintCore *paint_core, if (clone_options->type == PatternClone) if (!get_active_pattern ()) - g_message ("No patterns available for this operation."); + g_message (_("No patterns available for this operation.")); break; case FINISH_PAINT : @@ -541,35 +543,35 @@ ProcArg clone_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_DRAWABLE, "src_drawable", - "the source drawable" + N_("the source drawable") }, { PDB_INT32, "clone_type", - "the type of clone: { IMAGE-CLONE (0), PATTERN-CLONE (1) }" + N_("the type of clone: { IMAGE-CLONE (0), PATTERN-CLONE (1) }") }, { PDB_FLOAT, "src_x", - "the x coordinate in the source image" + N_("the x coordinate in the source image") }, { PDB_FLOAT, "src_y", - "the y coordinate in the source image" + N_("the y coordinate in the source image") }, { PDB_INT32, "num_strokes", - "number of stroke control points (count each coordinate as 2 points)" + N_("number of stroke control points (count each coordinate as 2 points)") }, { PDB_FLOATARRAY, "strokes", - "array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}" + N_("array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}") } }; @@ -577,8 +579,8 @@ ProcArg clone_args[] = ProcRecord clone_proc = { "gimp_clone", - "Clone from the source to the dest drawable using the current brush", - "This tool clones (copies) from the source drawable starting at the specified source coordinates to the dest drawable. If the \"clone_type\" argument is set to PATTERN-CLONE, then the current pattern is used as the source and the \"src_drawable\" argument is ignored. Pattern cloning assumes a tileable pattern and mods the sum of the src coordinates and subsequent stroke offsets with the width and height of the pattern. For image cloning, if the sum of the src coordinates and subsequent stroke offsets exceeds the extents of the src drawable, then no paint is transferred. The clone tool is capable of transforming between any image types including RGB->Indexed--although converting from any type to indexed is significantly slower.", + N_("Clone from the source to the dest drawable using the current brush"), + N_("This tool clones (copies) from the source drawable starting at the specified source coordinates to the dest drawable. If the \"clone_type\" argument is set to PATTERN-CLONE, then the current pattern is used as the source and the \"src_drawable\" argument is ignored. Pattern cloning assumes a tileable pattern and mods the sum of the src coordinates and subsequent stroke offsets with the width and height of the pattern. For image cloning, if the sum of the src coordinates and subsequent stroke offsets exceeds the extents of the src drawable, then no paint is transferred. The clone tool is capable of transforming between any image types including RGB->Indexed--although converting from any type to indexed is significantly slower."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/tools/gimptexttool.c b/app/tools/gimptexttool.c index 67c221920b..3895f9573a 100644 --- a/app/tools/gimptexttool.c +++ b/app/tools/gimptexttool.c @@ -43,6 +43,8 @@ #include "tile_manager_pvt.h" #include "drawable_pvt.h" +#include "libgimp/gimpintl.h" + #define PIXELS 0 #define POINTS 1 @@ -162,12 +164,12 @@ init_text_options(TextToolOptions *options) vbox = gtk_vbox_new (FALSE, 2); /* the main label */ - label = gtk_label_new ("Text Options"); + label = gtk_label_new (_("Text Options")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); /* antialias toggle */ - antialias_toggle = gtk_check_button_new_with_label("Antialiasing"); + antialias_toggle = gtk_check_button_new_with_label(_("Antialiasing")); gtk_box_pack_start(GTK_BOX(vbox), antialias_toggle, FALSE, FALSE, 0); gtk_signal_connect(GTK_OBJECT(antialias_toggle), "toggled", @@ -179,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); @@ -305,9 +307,9 @@ static void text_create_dialog (TextTool *text_tool) { /* Create the shell and vertical & horizontal boxes */ - text_tool->shell = gtk_font_selection_dialog_new ("Text Tool"); + text_tool->shell = gtk_font_selection_dialog_new (_("Text Tool")); gtk_window_set_wmclass (GTK_WINDOW (text_tool->shell), "text_tool", "Gimp"); - gtk_window_set_title (GTK_WINDOW (text_tool->shell), "Text Tool"); + gtk_window_set_title (GTK_WINDOW (text_tool->shell), _("Text Tool")); gtk_window_set_policy (GTK_WINDOW (text_tool->shell), FALSE, TRUE, TRUE); gtk_window_position (GTK_WINDOW (text_tool->shell), GTK_WIN_POS_MOUSE); gtk_widget_set (GTK_WIDGET (text_tool->shell), @@ -532,10 +534,10 @@ text_render (GImage *gimage, gdk_error_warnings = 1; if (!font || (gdk_error_code == -1)) { - g_message("Font '%s' not found.%s", + g_message(_("Font '%s' not found.%s"), fontname, - antialias? "\nIf you don't have scalable fonts, " - "try turning off antialiasing in the tool options." : ""); + antialias? _("\nIf you don't have scalable fonts, " + "try turning off antialiasing in the tool options.") : ""); return NULL; } @@ -618,10 +620,10 @@ text_render (GImage *gimage, image = gdk_image_get (pixmap, 0, 0, pixmap_width, pixmap_height); if (!image) - fatal_error ("sanity check failed: could not get gdk image"); + fatal_error (_("sanity check failed: could not get gdk image")); if (image->depth != 1) - fatal_error ("sanity check failed: image should have 1 bit per pixel"); + fatal_error (_("sanity check failed: image should have 1 bit per pixel")); /* convert the GdkImage bitmap to a region */ text_gdk_image_to_region (image, antialias, &maskPR); @@ -638,7 +640,7 @@ text_render (GImage *gimage, if (newmask && (layer = layer_new (gimage, newmask->width, newmask->height, layer_type, - "Text Layer", OPAQUE_OPACITY, NORMAL_MODE))) + _("Text Layer"), OPAQUE_OPACITY, NORMAL_MODE))) { /* color the layer buffer */ gimage_get_foreground (gimage, drawable, color); @@ -681,7 +683,7 @@ text_render (GImage *gimage, { if (newmask) { - g_message ("text_render: could not allocate image"); + g_message (_("text_render: could not allocate image")); tile_manager_destroy (newmask); } layer = NULL; @@ -914,63 +916,63 @@ ProcArg text_tool_args[] = { { PDB_IMAGE, "image", - "The image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "The affected drawable: (-1 for a new text layer)" + N_("the affected drawable: (-1 for a new text layer)") }, { PDB_FLOAT, "x", - "the x coordinate for the left side of text bounding box" + N_("the x coordinate for the left side of text bounding box") }, { PDB_FLOAT, "y", - "the y coordinate for the top of text bounding box" + N_("the y coordinate for the top of text bounding box") }, { PDB_STRING, "text", - "the text to generate" + N_("the text to generate") }, { PDB_INT32, "border", - "the size of the border: border >= 0" + N_("the size of the border: border >= 0") }, { PDB_INT32, "antialias", - "generate antialiased text" + N_("generate antialiased text") }, { PDB_FLOAT, "size", - "the size of text in either pixels or points" + N_("the size of text in either pixels or points") }, { PDB_INT32, "size_type", - "the units of the specified size: { PIXELS (0), POINTS (1) }" + N_("the units of the specified size: { PIXELS (0), POINTS (1) }") }, { PDB_STRING, "foundry", - "the font foundry, \"*\" for any" + N_("the font foundry, \"*\" for any") }, { PDB_STRING, "family", - "the font family, \"*\" for any" + N_("the font family, \"*\" for any") }, { PDB_STRING, "weight", - "the font weight, \"*\" for any" + N_("the font weight, \"*\" for any") }, { PDB_STRING, "slant", - "the font slant, \"*\" for any" + N_("the font slant, \"*\" for any") }, { PDB_STRING, "set_width", - "the font set-width parameter, \"*\" for any" + N_("the font set-width parameter, \"*\" for any") }, { PDB_STRING, "spacing", - "the font spacing, \"*\" for any" + N_("the font spacing, \"*\" for any") } }; @@ -978,18 +980,18 @@ ProcArg text_tool_out_args[] = { { PDB_LAYER, "text_layer", - "the new text layer" + N_("the new text layer") } }; ProcRecord text_tool_proc = { "gimp_text", - "Add text at the specified location as a floating selection or a new layer.", - "This tool requires font information in the form of seven parameters: {size, foundry, family, weight, slant, set_width, spacing}. The font size can either be specified in units of pixels or points, and the appropriate metric is specified using the size_type " - "argument. The x and y parameters together control the placement of the new text by specifying the upper left corner of the text bounding box. If the antialias parameter is non-zero, the generated text will blend more smoothly with underlying layers. " - "This option requires more time and memory to compute than non-antialiased text; the resulting floating selection or layer, however, will require the same amount of memory with or without antialiasing. If the specified drawable parameter is valid, the " - "text will be created as a floating selection attached to the drawable. If the drawable parameter is not valid (-1), the text will appear as a new layer. Finally, a border can be specified around the final rendered text. The border is measured in pixels.", + N_("Add text at the specified location as a floating selection or a new layer."), + N_("This tool requires font information in the form of seven parameters: {size, foundry, family, weight, slant, set_width, spacing}. The font size can either be specified in units of pixels or points, and the appropriate metric is specified using the size_type " + "argument. The x and y parameters together control the placement of the new text by specifying the upper left corner of the text bounding box. If the antialias parameter is non-zero, the generated text will blend more smoothly with underlying layers. " + "This option requires more time and memory to compute than non-antialiased text; the resulting floating selection or layer, however, will require the same amount of memory with or without antialiasing. If the specified drawable parameter is valid, the " + "text will be created as a floating selection attached to the drawable. If the drawable parameter is not valid (-1), the text will appear as a new layer. Finally, a border can be specified around the final rendered text. The border is measured in pixels."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -1013,71 +1015,71 @@ ProcArg text_tool_args_ext[] = { { PDB_IMAGE, "image", - "The image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "The affected drawable: (-1 for a new text layer)" + N_("the affected drawable: (-1 for a new text layer)") }, { PDB_FLOAT, "x", - "the x coordinate for the left side of text bounding box" + N_("the x coordinate for the left side of text bounding box") }, { PDB_FLOAT, "y", - "the y coordinate for the top of text bounding box" + N_("the y coordinate for the top of text bounding box") }, { PDB_STRING, "text", - "the text to generate" + N_("the text to generate") }, { PDB_INT32, "border", - "the size of the border: border >= 0" + N_("the size of the border: border >= 0") }, { PDB_INT32, "antialias", - "generate antialiased text" + N_("generate antialiased text") }, { PDB_FLOAT, "size", - "the size of text in either pixels or points" + N_("the size of text in either pixels or points") }, { PDB_INT32, "size_type", - "the units of the specified size: { PIXELS (0), POINTS (1) }" + N_("the units of the specified size: { PIXELS (0), POINTS (1) }") }, { PDB_STRING, "foundry", - "the font foundry, \"*\" for any" + N_("the font foundry, \"*\" for any") }, { PDB_STRING, "family", - "the font family, \"*\" for any" + N_("the font family, \"*\" for any") }, { PDB_STRING, "weight", - "the font weight, \"*\" for any" + N_("the font weight, \"*\" for any") }, { PDB_STRING, "slant", - "the font slant, \"*\" for any" + N_("the font slant, \"*\" for any") }, { PDB_STRING, "set_width", - "the font set-width parameter, \"*\" for any" + N_("the font set-width parameter, \"*\" for any") }, { PDB_STRING, "spacing", - "the font spacing, \"*\" for any" + N_("the font spacing, \"*\" for any") }, { PDB_STRING, "registry", - "the font registry, \"*\" for any" + N_("the font registry, \"*\" for any") }, { PDB_STRING, "encoding", - "the font encoding, \"*\" for any" + N_("the font encoding, \"*\" for any") } }; @@ -1085,18 +1087,18 @@ ProcArg text_tool_out_args_ext[] = { { PDB_LAYER, "text_layer", - "the new text layer" + N_("the new text layer") } }; ProcRecord text_tool_proc_ext = { "gimp_text_ext", - "Add text at the specified location as a floating selection or a new layer.", - "This tool requires font information in the form of nine parameters: {size, foundry, family, weight, slant, set_width, spacing, registry, encoding}. The font size can either be specified in units of pixels or points, and the appropriate metric is specified using the size_type " - "argument. The x and y parameters together control the placement of the new text by specifying the upper left corner of the text bounding box. If the antialias parameter is non-zero, the generated text will blend more smoothly with underlying layers. " - "This option requires more time and memory to compute than non-antialiased text; the resulting floating selection or layer, however, will require the same amount of memory with or without antialiasing. If the specified drawable parameter is valid, the " - "text will be created as a floating selection attached to the drawable. If the drawable parameter is not valid (-1), the text will appear as a new layer. Finally, a border can be specified around the final rendered text. The border is measured in pixels.", + N_("Add text at the specified location as a floating selection or a new layer."), + N_("This tool requires font information in the form of nine parameters: {size, foundry, family, weight, slant, set_width, spacing, registry, encoding}. The font size can either be specified in units of pixels or points, and the appropriate metric is specified using the size_type " + "argument. The x and y parameters together control the placement of the new text by specifying the upper left corner of the text bounding box. If the antialias parameter is non-zero, the generated text will blend more smoothly with underlying layers. " + "This option requires more time and memory to compute than non-antialiased text; the resulting floating selection or layer, however, will require the same amount of memory with or without antialiasing. If the specified drawable parameter is valid, the " + "text will be created as a floating selection attached to the drawable. If the drawable parameter is not valid (-1), the text will appear as a new layer. Finally, a border can be specified around the final rendered text. The border is measured in pixels."), "Martin Edlman", "Spencer Kimball & Peter Mattis", "1998", @@ -1120,43 +1122,43 @@ ProcArg text_tool_args_fontname[] = { { PDB_IMAGE, "image", - "The image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "The affected drawable: (-1 for a new text layer)" + N_("the affected drawable: (-1 for a new text layer)") }, { PDB_FLOAT, "x", - "the x coordinate for the left side of text bounding box" + N_("the x coordinate for the left side of text bounding box") }, { PDB_FLOAT, "y", - "the y coordinate for the top of text bounding box" + N_("the y coordinate for the top of text bounding box") }, { PDB_STRING, "text", - "the text to generate" + N_("the text to generate") }, { PDB_INT32, "border", - "the size of the border: border >= 0" + N_("the size of the border: border >= 0") }, { PDB_INT32, "antialias", - "generate antialiased text" + N_("generate antialiased text") }, { PDB_FLOAT, "size", - "the size of text in either pixels or points" + N_("the size of text in either pixels or points") }, { PDB_INT32, "size_type", - "the units of the specified size: { PIXELS (0), POINTS (1) }" + N_("the units of the specified size: { PIXELS (0), POINTS (1) }") }, { PDB_STRING, "fontname", - "the fontname (conforming to the X Logical Font Description Conventions)" + N_("the fontname (conforming to the X Logical Font Description Conventions)") } }; @@ -1164,18 +1166,18 @@ ProcArg text_tool_out_args_fontname[] = { { PDB_LAYER, "text_layer", - "the new text layer" + N_("the new text layer") } }; ProcRecord text_tool_proc_fontname = { "gimp_text_fontname", - "Add text at the specified location as a floating selection or a new layer.", - "This tool requires font information as a fontname conforming to the 'X Logical Font Description Conventions'. You can specify the fontsize in units of pixels or points, and the appropriate metric is specified using the size_type argument. The fontsize specified in the fontname is silently ignored." - "The x and y parameters together control the placement of the new text by specifying the upper left corner of the text bounding box. If the antialias parameter is non-zero, the generated text will blend more smoothly with underlying layers. " - "This option requires more time and memory to compute than non-antialiased text; the resulting floating selection or layer, however, will require the same amount of memory with or without antialiasing. If the specified drawable parameter is valid, the " - "text will be created as a floating selection attached to the drawable. If the drawable parameter is not valid (-1), the text will appear as a new layer. Finally, a border can be specified around the final rendered text. The border is measured in pixels.", + N_("Add text at the specified location as a floating selection or a new layer."), + N_("This tool requires font information as a fontname conforming to the 'X Logical Font Description Conventions'. You can specify the fontsize in units of pixels or points, and the appropriate metric is specified using the size_type argument. The fontsize specified in the fontname is silently ignored." + "The x and y parameters together control the placement of the new text by specifying the upper left corner of the text bounding box. If the antialias parameter is non-zero, the generated text will blend more smoothly with underlying layers. " + "This option requires more time and memory to compute than non-antialiased text; the resulting floating selection or layer, however, will require the same amount of memory with or without antialiasing. If the specified drawable parameter is valid, the " + "text will be created as a floating selection attached to the drawable. If the drawable parameter is not valid (-1), the text will appear as a new layer. Finally, a border can be specified around the final rendered text. The border is measured in pixels."), "Martin Edlman, Sven Neumann", "Spencer Kimball & Peter Mattis", "1998", @@ -1200,39 +1202,39 @@ ProcArg text_tool_get_extents_args[] = { { PDB_STRING, "text", - "the text to generate" + N_("the text to generate") }, { PDB_FLOAT, "size", - "the size of text in either pixels or points" + N_("the size of text in either pixels or points") }, { PDB_INT32, "size_type", - "the units of the specified size: { PIXELS (0), POINTS (1) }" + N_("the units of the specified size: { PIXELS (0), POINTS (1) }") }, { PDB_STRING, "foundry", - "the font foundry, \"*\" for any" + N_("the font foundry, \"*\" for any") }, { PDB_STRING, "family", - "the font family, \"*\" for any" + N_("the font family, \"*\" for any") }, { PDB_STRING, "weight", - "the font weight, \"*\" for any" + N_("the font weight, \"*\" for any") }, { PDB_STRING, "slant", - "the font slant, \"*\" for any" + N_("the font slant, \"*\" for any") }, { PDB_STRING, "set_width", - "the font set-width parameter, \"*\" for any" + N_("the font set-width parameter, \"*\" for any") }, { PDB_STRING, "spacing", - "the font spacing, \"*\" for any" + N_("the font spacing, \"*\" for any") } }; @@ -1240,27 +1242,27 @@ ProcArg text_tool_get_extents_out_args[] = { { PDB_INT32, "width", - "the width of the specified text" + N_("the width of the specified text") }, { PDB_INT32, "height", - "the height of the specified text" + N_("the height of the specified text") }, { PDB_INT32, "ascent", - "the ascent of the specified font" + N_("the ascent of the specified font") }, { PDB_INT32, "descent", - "the descent of the specified font" + N_("the descent of the specified font") } }; ProcRecord text_tool_get_extents_proc = { "gimp_text_get_extents", - "Get extents of the bounding box for the specified text", - "This tool returns the width and height of a bounding box for the specified text string with the specified font information. Ascent and descent for the specified font are returned as well.", + N_("Get extents of the bounding box for the specified text"), + N_("This tool returns the width and height of a bounding box for the specified text string with the specified font information. Ascent and descent for the specified font are returned as well."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -1284,47 +1286,47 @@ ProcArg text_tool_get_extents_args_ext[] = { { PDB_STRING, "text", - "the text to generate" + N_("the text to generate") }, { PDB_FLOAT, "size", - "the size of text in either pixels or points" + N_("the size of text in either pixels or points") }, { PDB_INT32, "size_type", - "the units of the specified size: { PIXELS (0), POINTS (1) }" + N_("the units of the specified size: { PIXELS (0), POINTS (1) }") }, { PDB_STRING, "foundry", - "the font foundry, \"*\" for any" + N_("the font foundry, \"*\" for any") }, { PDB_STRING, "family", - "the font family, \"*\" for any" + N_("the font family, \"*\" for any") }, { PDB_STRING, "weight", - "the font weight, \"*\" for any" + N_("the font weight, \"*\" for any") }, { PDB_STRING, "slant", - "the font slant, \"*\" for any" + N_("the font slant, \"*\" for any") }, { PDB_STRING, "set_width", - "the font set-width parameter, \"*\" for any" + N_("the font set-width parameter, \"*\" for any") }, { PDB_STRING, "spacing", - "the font spacing, \"*\" for any" + N_("the font spacing, \"*\" for any") }, { PDB_STRING, "registry", - "the font registry, \"*\" for any" + N_("the font registry, \"*\" for any") }, { PDB_STRING, "encoding", - "the font encoding, \"*\" for any" + N_("the font encoding, \"*\" for any") } }; @@ -1332,27 +1334,27 @@ ProcArg text_tool_get_extents_out_args_ext[] = { { PDB_INT32, "width", - "the width of the specified text" + N_("the width of the specified text") }, { PDB_INT32, "height", - "the height of the specified text" + N_("the height of the specified text") }, { PDB_INT32, "ascent", - "the ascent of the specified font" + N_("the ascent of the specified font") }, { PDB_INT32, "descent", - "the descent of the specified font" + N_("the descent of the specified font") } }; ProcRecord text_tool_get_extents_proc_ext = { "gimp_text_get_extents_ext", - "Get extents of the bounding box for the specified text", - "This tool returns the width and height of a bounding box for the specified text string with the specified font information. Ascent and descent for the specified font are returned as well.", + N_("Get extents of the bounding box for the specified text"), + N_("This tool returns the width and height of a bounding box for the specified text string with the specified font information. Ascent and descent for the specified font are returned as well."), "Martin Edlman", "Spencer Kimball & Peter Mattis", "1998", @@ -1376,19 +1378,19 @@ ProcArg text_tool_get_extents_args_fontname[] = { { PDB_STRING, "text", - "the text to generate" + N_("the text to generate") }, { PDB_FLOAT, "size", - "the size of text in either pixels or points" + N_("the size of text in either pixels or points") }, { PDB_INT32, "size_type", - "the units of the specified size: { PIXELS (0), POINTS (1) }" + N_("the units of the specified size: { PIXELS (0), POINTS (1) }") }, { PDB_STRING, "fontname", - "the fontname (conforming to the X Logical Font Description Conventions)" + N_("the fontname (conforming to the X Logical Font Description Conventions)") } }; @@ -1396,27 +1398,27 @@ ProcArg text_tool_get_extents_out_args_fontname[] = { { PDB_INT32, "width", - "the width of the specified text" + N_("the width of the specified text") }, { PDB_INT32, "height", - "the height of the specified text" + N_("the height of the specified text") }, { PDB_INT32, "ascent", - "the ascent of the specified font" + N_("the ascent of the specified font") }, { PDB_INT32, "descent", - "the descent of the specified font" + N_("the descent of the specified font") } }; ProcRecord text_tool_get_extents_proc_fontname = { "gimp_text_get_extents_fontname", - "Get extents of the bounding box for the specified text", - "This tool returns the width and height of a bounding box for the specified text string with the specified font information. Ascent and descent for the specified font are returned as well.", + N_("Get extents of the bounding box for the specified text"), + N_("This tool returns the width and height of a bounding box for the specified text string with the specified font information. Ascent and descent for the specified font are returned as well."), "Martin Edlman, Sven Neumann", "Spencer Kimball & Peter Mattis", "1998", diff --git a/app/tools/gimpthresholdtool.c b/app/tools/gimpthresholdtool.c index c0aca94f5b..0286f06c43 100644 --- a/app/tools/gimpthresholdtool.c +++ b/app/tools/gimpthresholdtool.c @@ -28,6 +28,8 @@ #include "interface.h" #include "threshold.h" +#include "libgimp/gimpintl.h" + #define TEXT_WIDTH 45 #define HISTOGRAM_WIDTH 256 #define HISTOGRAM_HEIGHT 150 @@ -292,7 +294,7 @@ tools_new_threshold () /* The tool options */ if (!threshold_options) - threshold_options = tools_register_no_options (THRESHOLD, "Threshold Options"); + threshold_options = tools_register_no_options (THRESHOLD, _("Threshold Options")); /* The threshold dialog */ if (!threshold_dialog) @@ -339,7 +341,7 @@ threshold_initialize (GDisplay *gdisp) { if (drawable_indexed (gimage_active_drawable (gdisp->gimage))) { - g_message ("Threshold does not operate on indexed drawables."); + g_message (_("Threshold does not operate on indexed drawables.")); return; } @@ -372,8 +374,8 @@ threshold_initialize (GDisplay *gdisp) /* the action area structure */ static ActionAreaItem action_items[] = { - { "OK", threshold_ok_callback, NULL, NULL }, - { "Cancel", threshold_cancel_callback, NULL, NULL } + { N_("OK"), threshold_ok_callback, NULL, NULL }, + { N_("Cancel"), threshold_cancel_callback, NULL, NULL } }; static ThresholdDialog * @@ -394,7 +396,7 @@ threshold_new_dialog () /* The shell and main vbox */ td->shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (td->shell), "threshold", "Gimp"); - gtk_window_set_title (GTK_WINDOW (td->shell), "Threshold"); + gtk_window_set_title (GTK_WINDOW (td->shell), _("Threshold")); /* handle the wm close signal */ gtk_signal_connect (GTK_OBJECT (td->shell), "delete_event", @@ -409,7 +411,7 @@ threshold_new_dialog () hbox = gtk_hbox_new (TRUE, 2); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); - label = gtk_label_new ("Threshold Range: "); + label = gtk_label_new (_("Threshold Range: ")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -454,7 +456,7 @@ threshold_new_dialog () gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); /* The preview toggle */ - toggle = gtk_check_button_new_with_label ("Preview"); + toggle = gtk_check_button_new_with_label (_("Preview")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), td->preview); gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -484,7 +486,7 @@ static void threshold_preview (ThresholdDialog *td) { if (!td->image_map) - g_message ("threshold_preview(): No image map"); + g_message (_("threshold_preview(): No image map")); image_map_apply (td->image_map, threshold, (void *) td); } @@ -611,27 +613,27 @@ ProcArg threshold_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_INT32, "low_threshold", - "the low threshold value: (0 <= low_threshold <= 255)" + N_("the low threshold value: (0 <= low_threshold <= 255)") }, { PDB_INT32, "high_threshold", - "the high threshold value: (0 <= high_threshold <= 255)" + N_("the high threshold value: (0 <= high_threshold <= 255)") } }; ProcRecord threshold_proc = { "gimp_threshold", - "Threshold the specified drawable", - "This procedures generates a threshold map of the specified drawable. All pixels between the values of 'low_threshold' and 'high_threshold' are replaced with white, and all other pixels with black.", + N_("Threshold the specified drawable"), + N_("This procedures generates a threshold map of the specified drawable. All pixels between the values of 'low_threshold' and 'high_threshold' are replaced with white, and all other pixels with black."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1997", diff --git a/app/tools/rect_select.c b/app/tools/rect_select.c index 3fe8721a15..9ede5f4259 100644 --- a/app/tools/rect_select.c +++ b/app/tools/rect_select.c @@ -24,6 +24,8 @@ #include "rect_select.h" #include "rect_selectP.h" +#include "libgimp/gimpintl.h" + #define NO 0 #define YES 1 @@ -108,25 +110,25 @@ create_selection_options (ToolType tool_type) switch (tool_type) { case RECT_SELECT: - label = gtk_label_new ("Rectangular Select Options"); + label = gtk_label_new (_("Rectangular Select Options")); break; case ELLIPSE_SELECT: - label = gtk_label_new ("Elliptical Selection Options"); + label = gtk_label_new (_("Elliptical Selection Options")); break; case FREE_SELECT: - label = gtk_label_new ("Free-hand Selection Options"); + label = gtk_label_new (_("Free-hand Selection Options")); break; case FUZZY_SELECT: - label = gtk_label_new ("Fuzzy Selection Options"); + label = gtk_label_new (_("Fuzzy Selection Options")); break; case BEZIER_SELECT: - label = gtk_label_new ("Bezier Selection Options"); + label = gtk_label_new (_("Bezier Selection Options")); break; case ISCISSORS: - label = gtk_label_new ("Intelligent Scissors Options"); + label = gtk_label_new (_("Intelligent Scissors Options")); break; case BY_COLOR_SELECT: - label = gtk_label_new ("By-Color Select Options"); + label = gtk_label_new (_("By-Color Select Options")); break; default: break; @@ -146,7 +148,7 @@ create_selection_options (ToolType tool_type) case FUZZY_SELECT: case ISCISSORS: case BY_COLOR_SELECT: - sample_merged_toggle = gtk_check_button_new_with_label ("Sample Merged"); + sample_merged_toggle = gtk_check_button_new_with_label (_("Sample Merged")); gtk_box_pack_start (GTK_BOX (vbox), sample_merged_toggle, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (sample_merged_toggle), "toggled", (GtkSignalFunc) selection_toggle_update, @@ -160,7 +162,7 @@ create_selection_options (ToolType tool_type) if (tool_type == BEZIER_SELECT) { - bezier_toggle = gtk_check_button_new_with_label ("Bezier Extends"); + bezier_toggle = gtk_check_button_new_with_label (_("Bezier Extends")); gtk_box_pack_start (GTK_BOX (vbox), bezier_toggle, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (bezier_toggle), "toggled", (GtkSignalFunc) selection_toggle_update, @@ -173,7 +175,7 @@ create_selection_options (ToolType tool_type) /* the antialias toggle button */ if (tool_type != RECT_SELECT) { - antialias_toggle = gtk_check_button_new_with_label ("Antialiasing"); + antialias_toggle = gtk_check_button_new_with_label (_("Antialiasing")); gtk_box_pack_start (GTK_BOX (vbox), antialias_toggle, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (antialias_toggle), "toggled", (GtkSignalFunc) selection_toggle_update, @@ -185,7 +187,7 @@ create_selection_options (ToolType tool_type) /* Widgets for fixed size select */ if (tool_type == RECT_SELECT || tool_type == ELLIPSE_SELECT) { - fixed_size_toggle = gtk_check_button_new_with_label ("Fixed size / aspect ratio"); + fixed_size_toggle = gtk_check_button_new_with_label (_("Fixed size / aspect ratio")); gtk_box_pack_start (GTK_BOX(vbox), fixed_size_toggle, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT(fixed_size_toggle), "toggled", (GtkSignalFunc)selection_toggle_update, @@ -196,7 +198,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); @@ -214,7 +216,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); @@ -232,7 +234,7 @@ create_selection_options (ToolType tool_type) } /* the feather toggle button */ - feather_toggle = gtk_check_button_new_with_label ("Feather"); + feather_toggle = gtk_check_button_new_with_label (_("Feather")); gtk_box_pack_start (GTK_BOX (vbox), feather_toggle, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (feather_toggle), "toggled", (GtkSignalFunc) selection_toggle_update, @@ -244,7 +246,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); @@ -385,16 +387,16 @@ rect_select_button_press (Tool *tool, switch (rect_sel->op) { case ADD: - g_snprintf (select_mode, STATUSBAR_SIZE, "Selection: ADD"); + g_snprintf (select_mode, STATUSBAR_SIZE, _("Selection: ADD")); break; case SUB: - g_snprintf (select_mode, STATUSBAR_SIZE, "Selection: SUBTRACT"); + g_snprintf (select_mode, STATUSBAR_SIZE, _("Selection: SUBTRACT")); break; case INTERSECT: - g_snprintf (select_mode, STATUSBAR_SIZE, "Selection: INTERSECT"); + g_snprintf (select_mode, STATUSBAR_SIZE, _("Selection: INTERSECT")); break; case REPLACE: - g_snprintf (select_mode, STATUSBAR_SIZE, "Selection: REPLACE"); + g_snprintf (select_mode, STATUSBAR_SIZE, _("Selection: REPLACE")); break; default: break; @@ -592,7 +594,7 @@ rect_select_motion (Tool *tool, } gtk_statusbar_pop (GTK_STATUSBAR (gdisp->statusbar), rect_sel->context_id); - g_snprintf (size, STATUSBAR_SIZE, "Selection: %d x %d", abs(rect_sel->w), abs(rect_sel->h)); + g_snprintf (size, STATUSBAR_SIZE, _("Selection: %d x %d"), abs(rect_sel->w), abs(rect_sel->h)); gtk_statusbar_push (GTK_STATUSBAR (gdisp->statusbar), rect_sel->context_id, size); draw_core_resume (rect_sel->core, tool); @@ -722,43 +724,43 @@ ProcArg rect_select_args[] = { { PDB_IMAGE, "image", - "The image" + N_("the image") }, { PDB_FLOAT, "x", - "x coordinate of upper-left corner of rectangle" + N_("x coordinate of upper-left corner of rectangle") }, { PDB_FLOAT, "y", - "y coordinate of upper-left corner of rectangle" + N_("y coordinate of upper-left corner of rectangle") }, { PDB_FLOAT, "width", - "the width of the rectangle: width > 0" + N_("the width of the rectangle: width > 0") }, { PDB_FLOAT, "height", - "the height of the rectangle: height > 0" + N_("the height of the rectangle: height > 0") }, { PDB_INT32, "operation", - "the selection operation: { ADD (0), SUB (1), REPLACE (2), INTERSECT (3) }" + N_("the selection operation: { ADD (0), SUB (1), REPLACE (2), INTERSECT (3) }") }, { PDB_INT32, "feather", - "feather option for selections" + N_("feather option for selections") }, { PDB_FLOAT, "feather_radius", - "radius for feather operation" + N_("radius for feather operation") } }; ProcRecord rect_select_proc = { "gimp_rect_select", - "Create a rectangular selection over the specified image", - "This tool creates a rectangular selection over the specified image. The rectangular region can be either added to, subtracted from, or replace the contents of the previous selection mask. If the feather option is enabled, the resulting selection is blurred before combining. The blur is a gaussian blur with the specified feather radius.", + N_("Create a rectangular selection over the specified image"), + N_("This tool creates a rectangular selection over the specified image. The rectangular region can be either added to, subtracted from, or replace the contents of the previous selection mask. If the feather option is enabled, the resulting selection is blurred before combining. The blur is a gaussian blur with the specified feather radius."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/tools/rotate_tool.c b/app/tools/rotate_tool.c index e805ef0ab5..3521858aac 100644 --- a/app/tools/rotate_tool.c +++ b/app/tools/rotate_tool.c @@ -33,6 +33,8 @@ #include "tile_manager_pvt.h" +#include "libgimp/gimpintl.h" + #ifndef M_PI #define M_PI 3.14159265358979323846 #endif /* M_PI */ @@ -81,10 +83,10 @@ rotate_tool_transform (tool, gdisp_ptr, state) case INIT : if (!transform_info) { - transform_info = info_dialog_new ("Rotation Information"); - info_dialog_add_field (transform_info, "Angle: ", angle_buf, (GtkSignalFunc) rotate_angle_changed, tool); - info_dialog_add_field (transform_info, "Center X: ", center_x_buf, (GtkSignalFunc) rotate_center_x_changed, tool); - info_dialog_add_field (transform_info, "Center Y: ", center_y_buf, (GtkSignalFunc) rotate_center_y_changed, tool); + transform_info = info_dialog_new (_("Rotation Information")); + info_dialog_add_field (transform_info, _("Angle: "), angle_buf, (GtkSignalFunc) rotate_angle_changed, tool); + info_dialog_add_field (transform_info, _("Center X: "), center_x_buf, (GtkSignalFunc) rotate_center_x_changed, tool); + info_dialog_add_field (transform_info, _("Center Y: "), center_y_buf, (GtkSignalFunc) rotate_center_y_changed, tool); } transform_core->trans_info[ANGLE] = 0.0; @@ -376,19 +378,19 @@ ProcArg rotate_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the affected drawable" + N_("the affected drawable") }, { PDB_INT32, "interpolation", - "whether to use interpolation" + N_("whether to use interpolation") }, { PDB_FLOAT, "angle", - "the angle of rotation (radians)", + N_("the angle of rotation (radians)"), } }; @@ -396,15 +398,15 @@ ProcArg rotate_out_args[] = { { PDB_DRAWABLE, "drawable", - "the rotated drawable" + N_("the rotated drawable") } }; ProcRecord rotate_proc = { "gimp_rotate", - "Rotate the specified drawable about its center through the specified angle", - "This tool rotates the specified drawable if no selection exists. If a selection exists, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then rotated by the specified amount. The interpolation parameter can be set to TRUE to indicate that either linear or cubic interpolation should be used to smooth the resulting rotated drawable. The return value is the ID of the rotated drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and rotated drawable.", + N_("Rotate the specified drawable about its center through the specified angle"), + N_("This tool rotates the specified drawable if no selection exists. If a selection exists, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then rotated by the specified amount. The interpolation parameter can be set to TRUE to indicate that either linear or cubic interpolation should be used to smooth the resulting rotated drawable. The return value is the ID of the rotated drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and rotated drawable."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/tools/scale_tool.c b/app/tools/scale_tool.c index 7d83bb64bd..ca41474c27 100644 --- a/app/tools/scale_tool.c +++ b/app/tools/scale_tool.c @@ -31,6 +31,8 @@ #include "tile_manager_pvt.h" +#include "libgimp/gimpintl.h" + #define X1 0 #define Y1 1 #define X2 2 @@ -72,13 +74,13 @@ scale_tool_transform (tool, gdisp_ptr, state) case INIT : if (!transform_info) { - transform_info = info_dialog_new ("Scaling Information"); - info_dialog_add_field (transform_info, "Original Width: ", orig_width_buf, NULL, NULL); - info_dialog_add_field (transform_info, "Original Height: ", orig_height_buf, NULL, NULL); - info_dialog_add_field (transform_info, "Current Width: ", width_buf, scale_width_changed, tool); - info_dialog_add_field (transform_info, "Current Height: ", height_buf, scale_height_changed, tool); - info_dialog_add_field (transform_info, "X Scale Ratio: ", x_ratio_buf, NULL, NULL); - info_dialog_add_field (transform_info, "Y Scale Ratio: ", y_ratio_buf, NULL, NULL); + transform_info = info_dialog_new (_("Scaling Information")); + info_dialog_add_field (transform_info, _("Original Width: "), orig_width_buf, NULL, NULL); + info_dialog_add_field (transform_info, _("Original Height: "), orig_height_buf, NULL, NULL); + info_dialog_add_field (transform_info, _("Current Width: "), width_buf, scale_width_changed, tool); + info_dialog_add_field (transform_info, _("Current Height: "), height_buf, scale_height_changed, tool); + info_dialog_add_field (transform_info, _("X Scale Ratio: "), x_ratio_buf, NULL, NULL); + info_dialog_add_field (transform_info, _("Y Scale Ratio: "), y_ratio_buf, NULL, NULL); } transform_core->trans_info [X1] = (double) transform_core->x1; @@ -467,31 +469,31 @@ ProcArg scale_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the affected drawable" + N_("the affected drawable") }, { PDB_INT32, "interpolation", - "whether to use interpolation" + N_("whether to use interpolation") }, { PDB_FLOAT, "x1", - "the x coordinate of the upper-left corner of newly scaled region" + N_("the x coordinate of the upper-left corner of newly scaled region") }, { PDB_FLOAT, "y1", - "the y coordinate of the upper-left corner of newly scaled region" + N_("the y coordinate of the upper-left corner of newly scaled region") }, { PDB_FLOAT, "x2", - "the x coordinate of the lower-right corner of newly scaled region" + N_("the x coordinate of the lower-right corner of newly scaled region") }, { PDB_FLOAT, "y2", - "the y coordinate of the lower-right corner of newly scaled region" + N_("the y coordinate of the lower-right corner of newly scaled region") } }; @@ -499,15 +501,15 @@ ProcArg scale_out_args[] = { { PDB_DRAWABLE, "drawable", - "the scaled drawable" + N_("the scaled drawable") } }; ProcRecord scale_proc = { "gimp_scale", - "Scale the specified drawable", - "This tool scales the specified drawable if no selection exists. If a selection exists, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then scaled by the specified amount. The interpolation parameter can be set to TRUE to indicate that either linear or cubic interpolation should be used to smooth the resulting scaled drawable. The return value is the ID of the scaled drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and scaled drawable.", + N_("Scale the specified drawable"), + N_("This tool scales the specified drawable if no selection exists. If a selection exists, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then scaled by the specified amount. The interpolation parameter can be set to TRUE to indicate that either linear or cubic interpolation should be used to smooth the resulting scaled drawable. The return value is the ID of the scaled drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and scaled drawable."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/tools/shear_tool.c b/app/tools/shear_tool.c index dbab53702f..cd86593906 100644 --- a/app/tools/shear_tool.c +++ b/app/tools/shear_tool.c @@ -33,6 +33,8 @@ #include "tile_manager_pvt.h" +#include "libgimp/gimpintl.h" + /* index into trans_info array */ #define HORZ_OR_VERT 0 #define XSHEAR 1 @@ -78,9 +80,9 @@ shear_tool_transform (tool, gdisp_ptr, state) case INIT : if (!transform_info) { - transform_info = info_dialog_new ("Shear Information"); - info_dialog_add_field (transform_info, "X Shear Magnitude: ", xshear_buf, shear_x_mag_changed, tool); - info_dialog_add_field (transform_info, "Y Shear Magnitude: ", yshear_buf, shear_y_mag_changed, tool); + transform_info = info_dialog_new (_("Shear Information")); + info_dialog_add_field (transform_info, _("X Shear Magnitude: "), xshear_buf, shear_x_mag_changed, tool); + info_dialog_add_field (transform_info, _("Y Shear Magnitude: "), yshear_buf, shear_y_mag_changed, tool); } direction_unknown = 1; transform_core->trans_info[HORZ_OR_VERT] = HORZ; @@ -363,23 +365,23 @@ ProcArg shear_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the affected drawable" + N_("the affected drawable") }, { PDB_INT32, "interpolation", - "whether to use interpolation" + N_("whether to use interpolation") }, { PDB_INT32, "shear_type", - "Type of shear: { HORIZONTAL (0), VERTICAL (1) }" + N_("Type of shear: { HORIZONTAL (0), VERTICAL (1) }") }, { PDB_FLOAT, "magnitude", - "the magnitude of the shear" + N_("the magnitude of the shear") } }; @@ -387,15 +389,15 @@ ProcArg shear_out_args[] = { { PDB_DRAWABLE, "drawable", - "the sheard drawable" + N_("the sheard drawable") } }; ProcRecord shear_proc = { "gimp_shear", - "Shear the specified drawable about its center by the specified magnitude", - "This tool shears the specified drawable if no selection exists. If a selection exists, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then sheard by the specified amount. The interpolation parameter can be set to TRUE to indicate that either linear or cubic interpolation should be used to smooth the resulting sheard drawable. The return value is the ID of the sheard drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and sheard drawable. The shear type parameter indicates whether the shear will be applied horizontally or vertically. The magnitude can be either positive or negative and indicates the extent (in pixels) to shear by.", + N_("Shear the specified drawable about its center by the specified magnitude"), + N_("This tool shears the specified drawable if no selection exists. If a selection exists, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then sheard by the specified amount. The interpolation parameter can be set to TRUE to indicate that either linear or cubic interpolation should be used to smooth the resulting sheard drawable. The return value is the ID of the sheard drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and sheard drawable. The shear type parameter indicates whether the shear will be applied horizontally or vertically. The magnitude can be either positive or negative and indicates the extent (in pixels) to shear by."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", diff --git a/app/tools/text_tool.c b/app/tools/text_tool.c index 67c221920b..3895f9573a 100644 --- a/app/tools/text_tool.c +++ b/app/tools/text_tool.c @@ -43,6 +43,8 @@ #include "tile_manager_pvt.h" #include "drawable_pvt.h" +#include "libgimp/gimpintl.h" + #define PIXELS 0 #define POINTS 1 @@ -162,12 +164,12 @@ init_text_options(TextToolOptions *options) vbox = gtk_vbox_new (FALSE, 2); /* the main label */ - label = gtk_label_new ("Text Options"); + label = gtk_label_new (_("Text Options")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); /* antialias toggle */ - antialias_toggle = gtk_check_button_new_with_label("Antialiasing"); + antialias_toggle = gtk_check_button_new_with_label(_("Antialiasing")); gtk_box_pack_start(GTK_BOX(vbox), antialias_toggle, FALSE, FALSE, 0); gtk_signal_connect(GTK_OBJECT(antialias_toggle), "toggled", @@ -179,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); @@ -305,9 +307,9 @@ static void text_create_dialog (TextTool *text_tool) { /* Create the shell and vertical & horizontal boxes */ - text_tool->shell = gtk_font_selection_dialog_new ("Text Tool"); + text_tool->shell = gtk_font_selection_dialog_new (_("Text Tool")); gtk_window_set_wmclass (GTK_WINDOW (text_tool->shell), "text_tool", "Gimp"); - gtk_window_set_title (GTK_WINDOW (text_tool->shell), "Text Tool"); + gtk_window_set_title (GTK_WINDOW (text_tool->shell), _("Text Tool")); gtk_window_set_policy (GTK_WINDOW (text_tool->shell), FALSE, TRUE, TRUE); gtk_window_position (GTK_WINDOW (text_tool->shell), GTK_WIN_POS_MOUSE); gtk_widget_set (GTK_WIDGET (text_tool->shell), @@ -532,10 +534,10 @@ text_render (GImage *gimage, gdk_error_warnings = 1; if (!font || (gdk_error_code == -1)) { - g_message("Font '%s' not found.%s", + g_message(_("Font '%s' not found.%s"), fontname, - antialias? "\nIf you don't have scalable fonts, " - "try turning off antialiasing in the tool options." : ""); + antialias? _("\nIf you don't have scalable fonts, " + "try turning off antialiasing in the tool options.") : ""); return NULL; } @@ -618,10 +620,10 @@ text_render (GImage *gimage, image = gdk_image_get (pixmap, 0, 0, pixmap_width, pixmap_height); if (!image) - fatal_error ("sanity check failed: could not get gdk image"); + fatal_error (_("sanity check failed: could not get gdk image")); if (image->depth != 1) - fatal_error ("sanity check failed: image should have 1 bit per pixel"); + fatal_error (_("sanity check failed: image should have 1 bit per pixel")); /* convert the GdkImage bitmap to a region */ text_gdk_image_to_region (image, antialias, &maskPR); @@ -638,7 +640,7 @@ text_render (GImage *gimage, if (newmask && (layer = layer_new (gimage, newmask->width, newmask->height, layer_type, - "Text Layer", OPAQUE_OPACITY, NORMAL_MODE))) + _("Text Layer"), OPAQUE_OPACITY, NORMAL_MODE))) { /* color the layer buffer */ gimage_get_foreground (gimage, drawable, color); @@ -681,7 +683,7 @@ text_render (GImage *gimage, { if (newmask) { - g_message ("text_render: could not allocate image"); + g_message (_("text_render: could not allocate image")); tile_manager_destroy (newmask); } layer = NULL; @@ -914,63 +916,63 @@ ProcArg text_tool_args[] = { { PDB_IMAGE, "image", - "The image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "The affected drawable: (-1 for a new text layer)" + N_("the affected drawable: (-1 for a new text layer)") }, { PDB_FLOAT, "x", - "the x coordinate for the left side of text bounding box" + N_("the x coordinate for the left side of text bounding box") }, { PDB_FLOAT, "y", - "the y coordinate for the top of text bounding box" + N_("the y coordinate for the top of text bounding box") }, { PDB_STRING, "text", - "the text to generate" + N_("the text to generate") }, { PDB_INT32, "border", - "the size of the border: border >= 0" + N_("the size of the border: border >= 0") }, { PDB_INT32, "antialias", - "generate antialiased text" + N_("generate antialiased text") }, { PDB_FLOAT, "size", - "the size of text in either pixels or points" + N_("the size of text in either pixels or points") }, { PDB_INT32, "size_type", - "the units of the specified size: { PIXELS (0), POINTS (1) }" + N_("the units of the specified size: { PIXELS (0), POINTS (1) }") }, { PDB_STRING, "foundry", - "the font foundry, \"*\" for any" + N_("the font foundry, \"*\" for any") }, { PDB_STRING, "family", - "the font family, \"*\" for any" + N_("the font family, \"*\" for any") }, { PDB_STRING, "weight", - "the font weight, \"*\" for any" + N_("the font weight, \"*\" for any") }, { PDB_STRING, "slant", - "the font slant, \"*\" for any" + N_("the font slant, \"*\" for any") }, { PDB_STRING, "set_width", - "the font set-width parameter, \"*\" for any" + N_("the font set-width parameter, \"*\" for any") }, { PDB_STRING, "spacing", - "the font spacing, \"*\" for any" + N_("the font spacing, \"*\" for any") } }; @@ -978,18 +980,18 @@ ProcArg text_tool_out_args[] = { { PDB_LAYER, "text_layer", - "the new text layer" + N_("the new text layer") } }; ProcRecord text_tool_proc = { "gimp_text", - "Add text at the specified location as a floating selection or a new layer.", - "This tool requires font information in the form of seven parameters: {size, foundry, family, weight, slant, set_width, spacing}. The font size can either be specified in units of pixels or points, and the appropriate metric is specified using the size_type " - "argument. The x and y parameters together control the placement of the new text by specifying the upper left corner of the text bounding box. If the antialias parameter is non-zero, the generated text will blend more smoothly with underlying layers. " - "This option requires more time and memory to compute than non-antialiased text; the resulting floating selection or layer, however, will require the same amount of memory with or without antialiasing. If the specified drawable parameter is valid, the " - "text will be created as a floating selection attached to the drawable. If the drawable parameter is not valid (-1), the text will appear as a new layer. Finally, a border can be specified around the final rendered text. The border is measured in pixels.", + N_("Add text at the specified location as a floating selection or a new layer."), + N_("This tool requires font information in the form of seven parameters: {size, foundry, family, weight, slant, set_width, spacing}. The font size can either be specified in units of pixels or points, and the appropriate metric is specified using the size_type " + "argument. The x and y parameters together control the placement of the new text by specifying the upper left corner of the text bounding box. If the antialias parameter is non-zero, the generated text will blend more smoothly with underlying layers. " + "This option requires more time and memory to compute than non-antialiased text; the resulting floating selection or layer, however, will require the same amount of memory with or without antialiasing. If the specified drawable parameter is valid, the " + "text will be created as a floating selection attached to the drawable. If the drawable parameter is not valid (-1), the text will appear as a new layer. Finally, a border can be specified around the final rendered text. The border is measured in pixels."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -1013,71 +1015,71 @@ ProcArg text_tool_args_ext[] = { { PDB_IMAGE, "image", - "The image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "The affected drawable: (-1 for a new text layer)" + N_("the affected drawable: (-1 for a new text layer)") }, { PDB_FLOAT, "x", - "the x coordinate for the left side of text bounding box" + N_("the x coordinate for the left side of text bounding box") }, { PDB_FLOAT, "y", - "the y coordinate for the top of text bounding box" + N_("the y coordinate for the top of text bounding box") }, { PDB_STRING, "text", - "the text to generate" + N_("the text to generate") }, { PDB_INT32, "border", - "the size of the border: border >= 0" + N_("the size of the border: border >= 0") }, { PDB_INT32, "antialias", - "generate antialiased text" + N_("generate antialiased text") }, { PDB_FLOAT, "size", - "the size of text in either pixels or points" + N_("the size of text in either pixels or points") }, { PDB_INT32, "size_type", - "the units of the specified size: { PIXELS (0), POINTS (1) }" + N_("the units of the specified size: { PIXELS (0), POINTS (1) }") }, { PDB_STRING, "foundry", - "the font foundry, \"*\" for any" + N_("the font foundry, \"*\" for any") }, { PDB_STRING, "family", - "the font family, \"*\" for any" + N_("the font family, \"*\" for any") }, { PDB_STRING, "weight", - "the font weight, \"*\" for any" + N_("the font weight, \"*\" for any") }, { PDB_STRING, "slant", - "the font slant, \"*\" for any" + N_("the font slant, \"*\" for any") }, { PDB_STRING, "set_width", - "the font set-width parameter, \"*\" for any" + N_("the font set-width parameter, \"*\" for any") }, { PDB_STRING, "spacing", - "the font spacing, \"*\" for any" + N_("the font spacing, \"*\" for any") }, { PDB_STRING, "registry", - "the font registry, \"*\" for any" + N_("the font registry, \"*\" for any") }, { PDB_STRING, "encoding", - "the font encoding, \"*\" for any" + N_("the font encoding, \"*\" for any") } }; @@ -1085,18 +1087,18 @@ ProcArg text_tool_out_args_ext[] = { { PDB_LAYER, "text_layer", - "the new text layer" + N_("the new text layer") } }; ProcRecord text_tool_proc_ext = { "gimp_text_ext", - "Add text at the specified location as a floating selection or a new layer.", - "This tool requires font information in the form of nine parameters: {size, foundry, family, weight, slant, set_width, spacing, registry, encoding}. The font size can either be specified in units of pixels or points, and the appropriate metric is specified using the size_type " - "argument. The x and y parameters together control the placement of the new text by specifying the upper left corner of the text bounding box. If the antialias parameter is non-zero, the generated text will blend more smoothly with underlying layers. " - "This option requires more time and memory to compute than non-antialiased text; the resulting floating selection or layer, however, will require the same amount of memory with or without antialiasing. If the specified drawable parameter is valid, the " - "text will be created as a floating selection attached to the drawable. If the drawable parameter is not valid (-1), the text will appear as a new layer. Finally, a border can be specified around the final rendered text. The border is measured in pixels.", + N_("Add text at the specified location as a floating selection or a new layer."), + N_("This tool requires font information in the form of nine parameters: {size, foundry, family, weight, slant, set_width, spacing, registry, encoding}. The font size can either be specified in units of pixels or points, and the appropriate metric is specified using the size_type " + "argument. The x and y parameters together control the placement of the new text by specifying the upper left corner of the text bounding box. If the antialias parameter is non-zero, the generated text will blend more smoothly with underlying layers. " + "This option requires more time and memory to compute than non-antialiased text; the resulting floating selection or layer, however, will require the same amount of memory with or without antialiasing. If the specified drawable parameter is valid, the " + "text will be created as a floating selection attached to the drawable. If the drawable parameter is not valid (-1), the text will appear as a new layer. Finally, a border can be specified around the final rendered text. The border is measured in pixels."), "Martin Edlman", "Spencer Kimball & Peter Mattis", "1998", @@ -1120,43 +1122,43 @@ ProcArg text_tool_args_fontname[] = { { PDB_IMAGE, "image", - "The image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "The affected drawable: (-1 for a new text layer)" + N_("the affected drawable: (-1 for a new text layer)") }, { PDB_FLOAT, "x", - "the x coordinate for the left side of text bounding box" + N_("the x coordinate for the left side of text bounding box") }, { PDB_FLOAT, "y", - "the y coordinate for the top of text bounding box" + N_("the y coordinate for the top of text bounding box") }, { PDB_STRING, "text", - "the text to generate" + N_("the text to generate") }, { PDB_INT32, "border", - "the size of the border: border >= 0" + N_("the size of the border: border >= 0") }, { PDB_INT32, "antialias", - "generate antialiased text" + N_("generate antialiased text") }, { PDB_FLOAT, "size", - "the size of text in either pixels or points" + N_("the size of text in either pixels or points") }, { PDB_INT32, "size_type", - "the units of the specified size: { PIXELS (0), POINTS (1) }" + N_("the units of the specified size: { PIXELS (0), POINTS (1) }") }, { PDB_STRING, "fontname", - "the fontname (conforming to the X Logical Font Description Conventions)" + N_("the fontname (conforming to the X Logical Font Description Conventions)") } }; @@ -1164,18 +1166,18 @@ ProcArg text_tool_out_args_fontname[] = { { PDB_LAYER, "text_layer", - "the new text layer" + N_("the new text layer") } }; ProcRecord text_tool_proc_fontname = { "gimp_text_fontname", - "Add text at the specified location as a floating selection or a new layer.", - "This tool requires font information as a fontname conforming to the 'X Logical Font Description Conventions'. You can specify the fontsize in units of pixels or points, and the appropriate metric is specified using the size_type argument. The fontsize specified in the fontname is silently ignored." - "The x and y parameters together control the placement of the new text by specifying the upper left corner of the text bounding box. If the antialias parameter is non-zero, the generated text will blend more smoothly with underlying layers. " - "This option requires more time and memory to compute than non-antialiased text; the resulting floating selection or layer, however, will require the same amount of memory with or without antialiasing. If the specified drawable parameter is valid, the " - "text will be created as a floating selection attached to the drawable. If the drawable parameter is not valid (-1), the text will appear as a new layer. Finally, a border can be specified around the final rendered text. The border is measured in pixels.", + N_("Add text at the specified location as a floating selection or a new layer."), + N_("This tool requires font information as a fontname conforming to the 'X Logical Font Description Conventions'. You can specify the fontsize in units of pixels or points, and the appropriate metric is specified using the size_type argument. The fontsize specified in the fontname is silently ignored." + "The x and y parameters together control the placement of the new text by specifying the upper left corner of the text bounding box. If the antialias parameter is non-zero, the generated text will blend more smoothly with underlying layers. " + "This option requires more time and memory to compute than non-antialiased text; the resulting floating selection or layer, however, will require the same amount of memory with or without antialiasing. If the specified drawable parameter is valid, the " + "text will be created as a floating selection attached to the drawable. If the drawable parameter is not valid (-1), the text will appear as a new layer. Finally, a border can be specified around the final rendered text. The border is measured in pixels."), "Martin Edlman, Sven Neumann", "Spencer Kimball & Peter Mattis", "1998", @@ -1200,39 +1202,39 @@ ProcArg text_tool_get_extents_args[] = { { PDB_STRING, "text", - "the text to generate" + N_("the text to generate") }, { PDB_FLOAT, "size", - "the size of text in either pixels or points" + N_("the size of text in either pixels or points") }, { PDB_INT32, "size_type", - "the units of the specified size: { PIXELS (0), POINTS (1) }" + N_("the units of the specified size: { PIXELS (0), POINTS (1) }") }, { PDB_STRING, "foundry", - "the font foundry, \"*\" for any" + N_("the font foundry, \"*\" for any") }, { PDB_STRING, "family", - "the font family, \"*\" for any" + N_("the font family, \"*\" for any") }, { PDB_STRING, "weight", - "the font weight, \"*\" for any" + N_("the font weight, \"*\" for any") }, { PDB_STRING, "slant", - "the font slant, \"*\" for any" + N_("the font slant, \"*\" for any") }, { PDB_STRING, "set_width", - "the font set-width parameter, \"*\" for any" + N_("the font set-width parameter, \"*\" for any") }, { PDB_STRING, "spacing", - "the font spacing, \"*\" for any" + N_("the font spacing, \"*\" for any") } }; @@ -1240,27 +1242,27 @@ ProcArg text_tool_get_extents_out_args[] = { { PDB_INT32, "width", - "the width of the specified text" + N_("the width of the specified text") }, { PDB_INT32, "height", - "the height of the specified text" + N_("the height of the specified text") }, { PDB_INT32, "ascent", - "the ascent of the specified font" + N_("the ascent of the specified font") }, { PDB_INT32, "descent", - "the descent of the specified font" + N_("the descent of the specified font") } }; ProcRecord text_tool_get_extents_proc = { "gimp_text_get_extents", - "Get extents of the bounding box for the specified text", - "This tool returns the width and height of a bounding box for the specified text string with the specified font information. Ascent and descent for the specified font are returned as well.", + N_("Get extents of the bounding box for the specified text"), + N_("This tool returns the width and height of a bounding box for the specified text string with the specified font information. Ascent and descent for the specified font are returned as well."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1995-1996", @@ -1284,47 +1286,47 @@ ProcArg text_tool_get_extents_args_ext[] = { { PDB_STRING, "text", - "the text to generate" + N_("the text to generate") }, { PDB_FLOAT, "size", - "the size of text in either pixels or points" + N_("the size of text in either pixels or points") }, { PDB_INT32, "size_type", - "the units of the specified size: { PIXELS (0), POINTS (1) }" + N_("the units of the specified size: { PIXELS (0), POINTS (1) }") }, { PDB_STRING, "foundry", - "the font foundry, \"*\" for any" + N_("the font foundry, \"*\" for any") }, { PDB_STRING, "family", - "the font family, \"*\" for any" + N_("the font family, \"*\" for any") }, { PDB_STRING, "weight", - "the font weight, \"*\" for any" + N_("the font weight, \"*\" for any") }, { PDB_STRING, "slant", - "the font slant, \"*\" for any" + N_("the font slant, \"*\" for any") }, { PDB_STRING, "set_width", - "the font set-width parameter, \"*\" for any" + N_("the font set-width parameter, \"*\" for any") }, { PDB_STRING, "spacing", - "the font spacing, \"*\" for any" + N_("the font spacing, \"*\" for any") }, { PDB_STRING, "registry", - "the font registry, \"*\" for any" + N_("the font registry, \"*\" for any") }, { PDB_STRING, "encoding", - "the font encoding, \"*\" for any" + N_("the font encoding, \"*\" for any") } }; @@ -1332,27 +1334,27 @@ ProcArg text_tool_get_extents_out_args_ext[] = { { PDB_INT32, "width", - "the width of the specified text" + N_("the width of the specified text") }, { PDB_INT32, "height", - "the height of the specified text" + N_("the height of the specified text") }, { PDB_INT32, "ascent", - "the ascent of the specified font" + N_("the ascent of the specified font") }, { PDB_INT32, "descent", - "the descent of the specified font" + N_("the descent of the specified font") } }; ProcRecord text_tool_get_extents_proc_ext = { "gimp_text_get_extents_ext", - "Get extents of the bounding box for the specified text", - "This tool returns the width and height of a bounding box for the specified text string with the specified font information. Ascent and descent for the specified font are returned as well.", + N_("Get extents of the bounding box for the specified text"), + N_("This tool returns the width and height of a bounding box for the specified text string with the specified font information. Ascent and descent for the specified font are returned as well."), "Martin Edlman", "Spencer Kimball & Peter Mattis", "1998", @@ -1376,19 +1378,19 @@ ProcArg text_tool_get_extents_args_fontname[] = { { PDB_STRING, "text", - "the text to generate" + N_("the text to generate") }, { PDB_FLOAT, "size", - "the size of text in either pixels or points" + N_("the size of text in either pixels or points") }, { PDB_INT32, "size_type", - "the units of the specified size: { PIXELS (0), POINTS (1) }" + N_("the units of the specified size: { PIXELS (0), POINTS (1) }") }, { PDB_STRING, "fontname", - "the fontname (conforming to the X Logical Font Description Conventions)" + N_("the fontname (conforming to the X Logical Font Description Conventions)") } }; @@ -1396,27 +1398,27 @@ ProcArg text_tool_get_extents_out_args_fontname[] = { { PDB_INT32, "width", - "the width of the specified text" + N_("the width of the specified text") }, { PDB_INT32, "height", - "the height of the specified text" + N_("the height of the specified text") }, { PDB_INT32, "ascent", - "the ascent of the specified font" + N_("the ascent of the specified font") }, { PDB_INT32, "descent", - "the descent of the specified font" + N_("the descent of the specified font") } }; ProcRecord text_tool_get_extents_proc_fontname = { "gimp_text_get_extents_fontname", - "Get extents of the bounding box for the specified text", - "This tool returns the width and height of a bounding box for the specified text string with the specified font information. Ascent and descent for the specified font are returned as well.", + N_("Get extents of the bounding box for the specified text"), + N_("This tool returns the width and height of a bounding box for the specified text string with the specified font information. Ascent and descent for the specified font are returned as well."), "Martin Edlman, Sven Neumann", "Spencer Kimball & Peter Mattis", "1998", diff --git a/app/tools/threshold.c b/app/tools/threshold.c index c0aca94f5b..0286f06c43 100644 --- a/app/tools/threshold.c +++ b/app/tools/threshold.c @@ -28,6 +28,8 @@ #include "interface.h" #include "threshold.h" +#include "libgimp/gimpintl.h" + #define TEXT_WIDTH 45 #define HISTOGRAM_WIDTH 256 #define HISTOGRAM_HEIGHT 150 @@ -292,7 +294,7 @@ tools_new_threshold () /* The tool options */ if (!threshold_options) - threshold_options = tools_register_no_options (THRESHOLD, "Threshold Options"); + threshold_options = tools_register_no_options (THRESHOLD, _("Threshold Options")); /* The threshold dialog */ if (!threshold_dialog) @@ -339,7 +341,7 @@ threshold_initialize (GDisplay *gdisp) { if (drawable_indexed (gimage_active_drawable (gdisp->gimage))) { - g_message ("Threshold does not operate on indexed drawables."); + g_message (_("Threshold does not operate on indexed drawables.")); return; } @@ -372,8 +374,8 @@ threshold_initialize (GDisplay *gdisp) /* the action area structure */ static ActionAreaItem action_items[] = { - { "OK", threshold_ok_callback, NULL, NULL }, - { "Cancel", threshold_cancel_callback, NULL, NULL } + { N_("OK"), threshold_ok_callback, NULL, NULL }, + { N_("Cancel"), threshold_cancel_callback, NULL, NULL } }; static ThresholdDialog * @@ -394,7 +396,7 @@ threshold_new_dialog () /* The shell and main vbox */ td->shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (td->shell), "threshold", "Gimp"); - gtk_window_set_title (GTK_WINDOW (td->shell), "Threshold"); + gtk_window_set_title (GTK_WINDOW (td->shell), _("Threshold")); /* handle the wm close signal */ gtk_signal_connect (GTK_OBJECT (td->shell), "delete_event", @@ -409,7 +411,7 @@ threshold_new_dialog () hbox = gtk_hbox_new (TRUE, 2); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); - label = gtk_label_new ("Threshold Range: "); + label = gtk_label_new (_("Threshold Range: ")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -454,7 +456,7 @@ threshold_new_dialog () gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); /* The preview toggle */ - toggle = gtk_check_button_new_with_label ("Preview"); + toggle = gtk_check_button_new_with_label (_("Preview")); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), td->preview); gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -484,7 +486,7 @@ static void threshold_preview (ThresholdDialog *td) { if (!td->image_map) - g_message ("threshold_preview(): No image map"); + g_message (_("threshold_preview(): No image map")); image_map_apply (td->image_map, threshold, (void *) td); } @@ -611,27 +613,27 @@ ProcArg threshold_args[] = { { PDB_IMAGE, "image", - "the image" + N_("the image") }, { PDB_DRAWABLE, "drawable", - "the drawable" + N_("the drawable") }, { PDB_INT32, "low_threshold", - "the low threshold value: (0 <= low_threshold <= 255)" + N_("the low threshold value: (0 <= low_threshold <= 255)") }, { PDB_INT32, "high_threshold", - "the high threshold value: (0 <= high_threshold <= 255)" + N_("the high threshold value: (0 <= high_threshold <= 255)") } }; ProcRecord threshold_proc = { "gimp_threshold", - "Threshold the specified drawable", - "This procedures generates a threshold map of the specified drawable. All pixels between the values of 'low_threshold' and 'high_threshold' are replaced with white, and all other pixels with black.", + N_("Threshold the specified drawable"), + N_("This procedures generates a threshold map of the specified drawable. All pixels between the values of 'low_threshold' and 'high_threshold' are replaced with white, and all other pixels with black."), "Spencer Kimball & Peter Mattis", "Spencer Kimball & Peter Mattis", "1997", diff --git a/app/tools/tools.c b/app/tools/tools.c index bfdc10e946..3d620f0488 100644 --- a/app/tools/tools.c +++ b/app/tools/tools.c @@ -57,6 +57,8 @@ #include "tools.h" #include "transform_tool.h" +#include "libgimp/gimpintl.h" + #include "pixmaps2.h" /* Global Data */ @@ -76,12 +78,12 @@ ToolInfo tool_info[] = { { NULL, - "Rect Select", + N_("Rect Select"), 0, - "/Tools/Rect Select", + N_("/Tools/Rect Select"), "R", (char **)rect_bits, - "Select rectangular regions", + N_("Select rectangular regions"), "ContextHelp/rect-select", RECT_SELECT, tools_new_rect_select, @@ -91,12 +93,12 @@ ToolInfo tool_info[] = { NULL, - "Ellipse Select", + N_("Ellipse Select"), 1, - "/Tools/Ellipse Select", + N_("/Tools/Ellipse Select"), "E", (char **) circ_bits, - "Select elliptical regions", + N_("Select elliptical regions"), "ContextHelp/ellipse-select", ELLIPSE_SELECT, tools_new_ellipse_select, @@ -106,12 +108,12 @@ ToolInfo tool_info[] = { NULL, - "Free Select", + N_("Free Select"), 2, - "/Tools/Free Select", + N_("/Tools/Free Select"), "F", (char **) free_bits, - "Select hand-drawn regions", + N_("Select hand-drawn regions"), "ContextHelp/free-select", FREE_SELECT, tools_new_free_select, @@ -121,12 +123,12 @@ ToolInfo tool_info[] = { NULL, - "Fuzzy Select", + N_("Fuzzy Select"), 3, - "/Tools/Fuzzy Select", + N_("/Tools/Fuzzy Select"), "Z", (char **) fuzzy_bits, - "Select contiguous regions", + N_("Select contiguous regions"), "ContextHelp/fuzzy-select", FUZZY_SELECT, tools_new_fuzzy_select, @@ -136,12 +138,12 @@ ToolInfo tool_info[] = { NULL, - "Bezier Select", + N_("Bezier Select"), 4, - "/Tools/Bezier Select", + N_("/Tools/Bezier Select"), "B", (char **) bezier_bits, - "Select regions using Bezier curves", + N_("Select regions using Bezier curves"), "ContextHelp/bezier-select", BEZIER_SELECT, tools_new_bezier_select, @@ -151,12 +153,12 @@ ToolInfo tool_info[] = { NULL, - "Intelligent Scissors", + N_("Intelligent Scissors"), 5, - "/Tools/Intelligent Scissors", + N_("/Tools/Intelligent Scissors"), "I", (char **) iscissors_bits, - "Select shapes from image", + N_("Select shapes from image"), "ContextHelp/iscissors", ISCISSORS, tools_new_iscissors, @@ -166,12 +168,12 @@ ToolInfo tool_info[] = { NULL, - "Move", + N_("Move"), 6, - "/Tools/Move", + N_("/Tools/Move"), "M", (char **) move_bits, - "Move layers & selections", + N_("Move layers & selections"), "ContextHelp/move", MOVE, tools_new_move_tool, @@ -181,12 +183,12 @@ ToolInfo tool_info[] = { NULL, - "Magnify", + N_("Magnify"), 7, - "/Tools/Magnify", + N_("/Tools/Magnify"), "M", (char **) magnify_bits, - "Zoom in & out", + N_("Zoom in & out"), "ContextHelp/magnify", MAGNIFY, tools_new_magnify, @@ -196,12 +198,12 @@ ToolInfo tool_info[] = { NULL, - "Crop", + N_("Crop"), 8, - "/Tools/Crop", + N_("/Tools/Crop"), "C", (char **) crop_bits, - "Crop the image", + N_("Crop the image"), "ContextHelp/crop", CROP, tools_new_crop, @@ -211,12 +213,12 @@ ToolInfo tool_info[] = { NULL, - "Transform", + N_("Transform"), 9, - "/Tools/Transform", + N_("/Tools/Transform"), "T", (char **) scale_bits, - "Transform the layer or selection", + N_("Transform the layer or selection"), "ContextHelp/rotate", ROTATE, tools_new_transform_tool, @@ -226,7 +228,7 @@ ToolInfo tool_info[] = { NULL, - "Transform", + N_("Transform"), 9, NULL, NULL, @@ -241,7 +243,7 @@ ToolInfo tool_info[] = { NULL, - "Transform", + N_("Transform"), 9, NULL, NULL, @@ -256,7 +258,7 @@ ToolInfo tool_info[] = { NULL, - "Transform", + N_("Transform"), 9, NULL, NULL, @@ -271,12 +273,12 @@ ToolInfo tool_info[] = { NULL, - "Flip", + N_("Flip"), 10, - "/Tools/Flip", + N_("/Tools/Flip"), "F", (char **) horizflip_bits, - "Flip the layer or selection", + N_("Flip the layer or selection"), "ContextHelp/flip", FLIP_HORZ, tools_new_flip, @@ -286,7 +288,7 @@ ToolInfo tool_info[] = { NULL, - "Flip", + N_("Flip"), 10, NULL, NULL, @@ -301,12 +303,12 @@ ToolInfo tool_info[] = { NULL, - "Text", + N_("Text"), 11, - "/Tools/Text", + N_("/Tools/Text"), "T", (char **) text_bits, - "Add text to the image", + N_("Add text to the image"), "ContextHelp/text", TEXT, tools_new_text, @@ -316,12 +318,12 @@ ToolInfo tool_info[] = { NULL, - "Color Picker", + N_("Color Picker"), 12, - "/Tools/Color Picker", + N_("/Tools/Color Picker"), "O", (char **) colorpicker_bits, - "Pick colors from the image", + N_("Pick colors from the image"), "ContextHelp/color-picker", COLOR_PICKER, tools_new_color_picker, @@ -331,12 +333,12 @@ ToolInfo tool_info[] = { NULL, - "Bucket Fill", + N_("Bucket Fill"), 13, - "/Tools/Bucket Fill", + N_("/Tools/Bucket Fill"), "B", (char **) fill_bits, - "Fill with a color or pattern", + N_("Fill with a color or pattern"), "ContextHelp/bucket-fill", BUCKET_FILL, tools_new_bucket_fill, @@ -346,12 +348,12 @@ ToolInfo tool_info[] = { NULL, - "Blend", + N_("Blend"), 14, - "/Tools/Blend", + N_("/Tools/Blend"), "L", (char **) gradient_bits, - "Fill with a color gradient", + N_("Fill with a color gradient"), "ContextHelp/gradient", BLEND, tools_new_blend, @@ -361,12 +363,12 @@ ToolInfo tool_info[] = { NULL, - "Pencil", + N_("Pencil"), 15, - "/Tools/Pencil", + N_("/Tools/Pencil"), "P", (char **) pencil_bits, - "Draw sharp pencil strokes", + N_("Draw sharp pencil strokes"), "ContextHelp/pencil", PENCIL, tools_new_pencil, @@ -376,12 +378,12 @@ ToolInfo tool_info[] = { NULL, - "Paintbrush", + N_("Paintbrush"), 16, - "/Tools/Paintbrush", + N_("/Tools/Paintbrush"), "P", (char **) paint_bits, - "Paint fuzzy brush strokes", + N_("Paint fuzzy brush strokes"), "ContextHelp/paintbrush", PAINTBRUSH, tools_new_paintbrush, @@ -391,12 +393,12 @@ ToolInfo tool_info[] = { NULL, - "Eraser", + N_("Eraser"), 17, - "/Tools/Eraser", + N_("/Tools/Eraser"), "E", (char **) erase_bits, - "Erase to background or transparency", + N_("Erase to background or transparency"), "ContextHelp/eraser", ERASER, tools_new_eraser, @@ -406,12 +408,12 @@ ToolInfo tool_info[] = { NULL, - "Airbrush", + N_("Airbrush"), 18, - "/Tools/Airbrush", + N_("/Tools/Airbrush"), "A", (char **) airbrush_bits, - "Airbrush with variable pressure", + N_("Airbrush with variable pressure"), "ContextHelp/airbrush", AIRBRUSH, tools_new_airbrush, @@ -421,12 +423,12 @@ ToolInfo tool_info[] = { NULL, - "Clone", + N_("Clone"), 19, - "/Tools/Clone", + N_("/Tools/Clone"), "C", (char **) clone_bits, - "Paint using patterns or image regions", + N_("Paint using patterns or image regions"), "ContextHelp/clone", CLONE, tools_new_clone, @@ -436,12 +438,12 @@ ToolInfo tool_info[] = { NULL, - "Convolve", + N_("Convolve"), 20, - "/Tools/Convolve", + N_("/Tools/Convolve"), "V", (char **) blur_bits, - "Blur or sharpen", + N_("Blur or sharpen"), "ContextHelp/convolve", CONVOLVE, tools_new_convolve, @@ -451,12 +453,12 @@ ToolInfo tool_info[] = { NULL, - "Ink", + N_("Ink"), 21, - "/Tools/Ink", + N_("/Tools/Ink"), "K", (char **) ink_bits, - "Draw in ink", + N_("Draw in ink"), "ContextHelp/ink", INK, tools_new_ink, @@ -467,9 +469,9 @@ ToolInfo tool_info[] = /* Non-toolbox tools */ { NULL, - "By Color Select", + N_("By Color Select"), 22, - "/Select/By Color...", + N_("/Select/By Color..."), NULL, NULL, NULL, @@ -482,9 +484,9 @@ ToolInfo tool_info[] = { NULL, - "Color Balance", + N_("Color Balance"), 23, - "/Image/Colors/Color Balance", + N_("/Image/Colors/Color Balance"), NULL, NULL, NULL, @@ -497,9 +499,9 @@ ToolInfo tool_info[] = { NULL, - "Brightness-Contrast", + N_("Brightness-Contrast"), 24, - "/Image/Colors/Brightness-Contrast", + N_("/Image/Colors/Brightness-Contrast"), NULL, NULL, NULL, @@ -512,9 +514,9 @@ ToolInfo tool_info[] = { NULL, - "Hue-Saturation", + N_("Hue-Saturation"), 25, - "/Image/Colors/Hue-Saturation", + N_("/Image/Colors/Hue-Saturation"), NULL, NULL, NULL, @@ -527,9 +529,9 @@ ToolInfo tool_info[] = { NULL, - "Posterize", + N_("Posterize"), 26, - "/Image/Colors/Posterize", + N_("/Image/Colors/Posterize"), NULL, NULL, NULL, @@ -542,9 +544,9 @@ ToolInfo tool_info[] = { NULL, - "Threshold", + N_("Threshold"), 27, - "/Image/Colors/Threshold", + N_("/Image/Colors/Threshold"), NULL, NULL, NULL, @@ -557,9 +559,9 @@ ToolInfo tool_info[] = { NULL, - "Curves", + N_("Curves"), 28, - "/Image/Colors/Curves", + N_("/Image/Colors/Curves"), NULL, NULL, NULL, @@ -572,9 +574,9 @@ ToolInfo tool_info[] = { NULL, - "Levels", + N_("Levels"), 29, - "/Image/Colors/Levels", + N_("/Image/Colors/Levels"), NULL, NULL, NULL, @@ -587,9 +589,9 @@ ToolInfo tool_info[] = { NULL, - "Histogram", + N_("Histogram"), 30, - "/Image/Histogram", + N_("/Image/Histogram"), NULL, NULL, NULL, @@ -694,13 +696,13 @@ tools_options_dialog_new () { ActionAreaItem action_items[1] = { - { "Close", tools_options_dialog_callback, NULL, NULL } + { N_("Close"), tools_options_dialog_callback, NULL, NULL } }; /* The shell and main vbox */ options_shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (options_shell), "tool_options", "Gimp"); - gtk_window_set_title (GTK_WINDOW (options_shell), "Tool Options"); + gtk_window_set_title (GTK_WINDOW (options_shell), _("Tool Options")); gtk_window_set_policy (GTK_WINDOW (options_shell), FALSE, TRUE, TRUE); session_set_window_geometry (options_shell, &tool_options_session_info, FALSE ); @@ -777,7 +779,7 @@ tools_register_no_options (ToolType tool_type, gtk_widget_show (label); /* this tool has no special options */ - label = gtk_label_new ("This tool has no options."); + label = gtk_label_new (_("This tool has no options.")); gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0); gtk_widget_show (label); diff --git a/app/tools/transform_core.c b/app/tools/transform_core.c index 32975bbed2..d092a0d643 100644 --- a/app/tools/transform_core.c +++ b/app/tools/transform_core.c @@ -41,6 +41,8 @@ #include "tile_manager_pvt.h" #include "tile.h" /* ick. */ +#include "libgimp/gimpintl.h" + #define SQR(x) ((x) * (x)) #ifndef M_PI @@ -105,12 +107,12 @@ transform_reset_callback (GtkWidget *w, static ActionAreaItem action_items[2] = { { NULL, transform_ok_callback, NULL, NULL }, - { "Reset", transform_reset_callback, NULL, NULL }, + { N_("Reset"), transform_reset_callback, NULL, NULL }, }; static char *action_labels[4] = { - "Rotate", "Scale", "Shear", "Transform" + N_("Rotate"), N_("Scale"), N_("Shear"), N_("Transform") }; void @@ -217,7 +219,7 @@ transform_core_button_press (tool, bevent, gdisp_ptr) { if (layer->mask != NULL && GIMP_DRAWABLE(layer->mask)) { - g_message ("Transformations do not work on\nlayers that contain layer masks."); + g_message (_("Transformations do not work on\nlayers that contain layer masks.")); tool->state = INACTIVE; return; } @@ -1066,7 +1068,7 @@ transform_core_do (gimage, drawable, float_tiles, interpolation, matrix) { /* normalize homogeneous coords */ if (tw == 0.0) - g_message ("homogeneous coordinate = 0...\n"); + g_message (_("homogeneous coordinate = 0...\n")); else if (tw != 1.0) { ttx = tx / tw; diff --git a/app/tools/transform_tool.c b/app/tools/transform_tool.c index 5bb3d3def0..c923a13431 100644 --- a/app/tools/transform_tool.c +++ b/app/tools/transform_tool.c @@ -27,6 +27,8 @@ #include "transform_core.h" #include "transform_tool.h" +#include "libgimp/gimpintl.h" + typedef struct _TransformOptions TransformOptions; struct _TransformOptions @@ -111,15 +113,15 @@ create_transform_options (void) int i; char *transform_button_names[4] = { - "Rotation", - "Scaling", - "Shearing", - "Perspective" + N_("Rotation"), + N_("Scaling"), + N_("Shearing"), + N_("Perspective") }; char *direction_button_names[2] = { - "Traditional", - "Corrective" + N_("Traditional"), + N_("Corrective") }; /* the new options structure */ @@ -135,7 +137,7 @@ create_transform_options (void) main_box = gtk_vbox_new (FALSE, 1); /* the main label */ - label = gtk_label_new ("Transform Tool Options"); + label = gtk_label_new (_("Transform Tool Options")); gtk_box_pack_start (GTK_BOX (main_box), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -148,7 +150,7 @@ create_transform_options (void) gtk_box_pack_start (GTK_BOX (box), vbox, FALSE, FALSE, 0); /* the first radio frame and box, for transform type */ - radio_frame = gtk_frame_new ("Transform"); + radio_frame = gtk_frame_new (_("Transform")); gtk_box_pack_start (GTK_BOX (vbox), radio_frame, FALSE, FALSE, 0); radio_box = gtk_vbox_new (FALSE, 1); @@ -171,7 +173,7 @@ create_transform_options (void) gtk_widget_show (radio_frame); /* the smoothing toggle button */ - toggle = gtk_check_button_new_with_label ("Smoothing"); + toggle = gtk_check_button_new_with_label (_("Smoothing")); gtk_box_pack_start (GTK_BOX (vbox), toggle, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", (GtkSignalFunc) transform_toggle_update, @@ -187,7 +189,7 @@ create_transform_options (void) gtk_box_pack_start (GTK_BOX (box), vbox, FALSE, FALSE, 0); /* the second radio frame and box, for transform direction */ - radio_frame = gtk_frame_new ("Tool paradigm"); + radio_frame = gtk_frame_new (_("Tool paradigm")); gtk_box_pack_start (GTK_BOX (vbox), radio_frame, FALSE, FALSE, 0); radio_box = gtk_vbox_new (FALSE, 1); @@ -210,7 +212,7 @@ create_transform_options (void) gtk_widget_show (radio_frame); /* the show grid toggle button */ - toggle = gtk_check_button_new_with_label ("Show grid"); + toggle = gtk_check_button_new_with_label (_("Show grid")); gtk_box_pack_start (GTK_BOX (vbox), toggle, FALSE, FALSE, 0); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), options->show_grid); @@ -225,7 +227,7 @@ create_transform_options (void) hbox = gtk_hbox_new (FALSE, 1); gtk_widget_show (hbox); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); - label = gtk_label_new ("Grid density: "); + label = gtk_label_new (_("Grid density: ")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); grid_adj = (GtkAdjustment *) gtk_adjustment_new (2.0, 0.0, 5.0, 1.0, 1.0, 0.0); @@ -238,7 +240,7 @@ create_transform_options (void) gtk_widget_show (grid_density); /* the clip resulting image toggle button */ - toggle = gtk_check_button_new_with_label ("Clip result"); + toggle = gtk_check_button_new_with_label (_("Clip result")); gtk_box_pack_start (GTK_BOX (vbox), toggle, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", (GtkSignalFunc) transform_toggle_update, diff --git a/app/transform_core.c b/app/transform_core.c index 32975bbed2..d092a0d643 100644 --- a/app/transform_core.c +++ b/app/transform_core.c @@ -41,6 +41,8 @@ #include "tile_manager_pvt.h" #include "tile.h" /* ick. */ +#include "libgimp/gimpintl.h" + #define SQR(x) ((x) * (x)) #ifndef M_PI @@ -105,12 +107,12 @@ transform_reset_callback (GtkWidget *w, static ActionAreaItem action_items[2] = { { NULL, transform_ok_callback, NULL, NULL }, - { "Reset", transform_reset_callback, NULL, NULL }, + { N_("Reset"), transform_reset_callback, NULL, NULL }, }; static char *action_labels[4] = { - "Rotate", "Scale", "Shear", "Transform" + N_("Rotate"), N_("Scale"), N_("Shear"), N_("Transform") }; void @@ -217,7 +219,7 @@ transform_core_button_press (tool, bevent, gdisp_ptr) { if (layer->mask != NULL && GIMP_DRAWABLE(layer->mask)) { - g_message ("Transformations do not work on\nlayers that contain layer masks."); + g_message (_("Transformations do not work on\nlayers that contain layer masks.")); tool->state = INACTIVE; return; } @@ -1066,7 +1068,7 @@ transform_core_do (gimage, drawable, float_tiles, interpolation, matrix) { /* normalize homogeneous coords */ if (tw == 0.0) - g_message ("homogeneous coordinate = 0...\n"); + g_message (_("homogeneous coordinate = 0...\n")); else if (tw != 1.0) { ttx = tx / tw; diff --git a/app/transform_tool.c b/app/transform_tool.c index 5bb3d3def0..c923a13431 100644 --- a/app/transform_tool.c +++ b/app/transform_tool.c @@ -27,6 +27,8 @@ #include "transform_core.h" #include "transform_tool.h" +#include "libgimp/gimpintl.h" + typedef struct _TransformOptions TransformOptions; struct _TransformOptions @@ -111,15 +113,15 @@ create_transform_options (void) int i; char *transform_button_names[4] = { - "Rotation", - "Scaling", - "Shearing", - "Perspective" + N_("Rotation"), + N_("Scaling"), + N_("Shearing"), + N_("Perspective") }; char *direction_button_names[2] = { - "Traditional", - "Corrective" + N_("Traditional"), + N_("Corrective") }; /* the new options structure */ @@ -135,7 +137,7 @@ create_transform_options (void) main_box = gtk_vbox_new (FALSE, 1); /* the main label */ - label = gtk_label_new ("Transform Tool Options"); + label = gtk_label_new (_("Transform Tool Options")); gtk_box_pack_start (GTK_BOX (main_box), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -148,7 +150,7 @@ create_transform_options (void) gtk_box_pack_start (GTK_BOX (box), vbox, FALSE, FALSE, 0); /* the first radio frame and box, for transform type */ - radio_frame = gtk_frame_new ("Transform"); + radio_frame = gtk_frame_new (_("Transform")); gtk_box_pack_start (GTK_BOX (vbox), radio_frame, FALSE, FALSE, 0); radio_box = gtk_vbox_new (FALSE, 1); @@ -171,7 +173,7 @@ create_transform_options (void) gtk_widget_show (radio_frame); /* the smoothing toggle button */ - toggle = gtk_check_button_new_with_label ("Smoothing"); + toggle = gtk_check_button_new_with_label (_("Smoothing")); gtk_box_pack_start (GTK_BOX (vbox), toggle, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", (GtkSignalFunc) transform_toggle_update, @@ -187,7 +189,7 @@ create_transform_options (void) gtk_box_pack_start (GTK_BOX (box), vbox, FALSE, FALSE, 0); /* the second radio frame and box, for transform direction */ - radio_frame = gtk_frame_new ("Tool paradigm"); + radio_frame = gtk_frame_new (_("Tool paradigm")); gtk_box_pack_start (GTK_BOX (vbox), radio_frame, FALSE, FALSE, 0); radio_box = gtk_vbox_new (FALSE, 1); @@ -210,7 +212,7 @@ create_transform_options (void) gtk_widget_show (radio_frame); /* the show grid toggle button */ - toggle = gtk_check_button_new_with_label ("Show grid"); + toggle = gtk_check_button_new_with_label (_("Show grid")); gtk_box_pack_start (GTK_BOX (vbox), toggle, FALSE, FALSE, 0); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), options->show_grid); @@ -225,7 +227,7 @@ create_transform_options (void) hbox = gtk_hbox_new (FALSE, 1); gtk_widget_show (hbox); gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0); - label = gtk_label_new ("Grid density: "); + label = gtk_label_new (_("Grid density: ")); gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); grid_adj = (GtkAdjustment *) gtk_adjustment_new (2.0, 0.0, 5.0, 1.0, 1.0, 0.0); @@ -238,7 +240,7 @@ create_transform_options (void) gtk_widget_show (grid_density); /* the clip resulting image toggle button */ - toggle = gtk_check_button_new_with_label ("Clip result"); + toggle = gtk_check_button_new_with_label (_("Clip result")); gtk_box_pack_start (GTK_BOX (vbox), toggle, FALSE, FALSE, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", (GtkSignalFunc) transform_toggle_update, diff --git a/app/undo_cmds.c b/app/undo_cmds.c index 30cd2bb510..61cb96ea71 100644 --- a/app/undo_cmds.c +++ b/app/undo_cmds.c @@ -24,6 +24,8 @@ #include "undo.h" #include "undo_cmds.h" +#include "libgimp/gimpintl.h" + static int int_value; static int success; @@ -54,17 +56,17 @@ ProcArg undo_push_group_start_args[] = { { PDB_IMAGE, "image", - "The ID of the image in which to pop an undo group" + N_("The ID of the image in which to pop an undo group") } }; ProcRecord undo_push_group_start_proc = { "gimp_undo_push_group_start", - "Starts a group undo", - "This function is used to start a group undo--necessary for logically combining two or more undo operations into a single operation. This call must be used in conjunction with a 'gimp_undo_push_group_end' call.", - "Spencer Kimball & Peter Mattis", - "Spencer Kimball & Peter Mattis", + N_("Starts a group undo"), + N_("This function is used to start a group undo--necessary for logically combining two or more undo operations into a single operation. This call must be used in conjunction with a 'gimp_undo_push_group_end' call."), + N_("Spencer Kimball & Peter Mattis"), + N_("Spencer Kimball & Peter Mattis"), "1997", PDB_INTERNAL, @@ -108,17 +110,17 @@ ProcArg undo_push_group_end_args[] = { { PDB_IMAGE, "image", - "The ID of the image in which to pop an undo group" + N_("The ID of the image in which to pop an undo group") } }; ProcRecord undo_push_group_end_proc = { "gimp_undo_push_group_end", - "Finish a group undo", - "This function must be called once for each undo_push_group call that is made.", - "Spencer Kimball & Peter Mattis", - "Spencer Kimball & Peter Mattis", + N_("Finish a group undo"), + N_("This function must be called once for each undo_push_group call that is made."), + N_("Spencer Kimball & Peter Mattis"), + N_("Spencer Kimball & Peter Mattis"), "1997", PDB_INTERNAL, diff --git a/app/user_install.c b/app/user_install.c index 2453185622..8e7b1eba97 100644 --- a/app/user_install.c +++ b/app/user_install.c @@ -26,6 +26,7 @@ #include "interface.h" #include "gimprc.h" +#include "libgimp/gimpintl.h" static void install_run (InstallCallback); static void install_help (InstallCallback); @@ -48,7 +49,7 @@ install_verify (InstallCallback install_callback) filename = gimp_directory (); if ('\000' == filename[0]) { - g_message ("No home directory--skipping GIMP user installation."); + g_message (_("No home directory--skipping GIMP user installation.")); (* install_callback) (); } @@ -63,9 +64,9 @@ install_verify (InstallCallback install_callback) /* Otherwise, prepare for installation */ else if (no_interface) { - g_print ("The GIMP is not properly installed for the current user\n"); - g_print ("User installation was skipped because the '--nointerface' flag was encountered\n"); - g_print ("To perform user installation, run the GIMP without the '--nointerface' flag\n"); + g_print (_("The GIMP is not properly installed for the current user\n")); + g_print (_("User installation was skipped because the '--nointerface' flag was encountered\n")); + g_print (_("To perform user installation, run the GIMP without the '--nointerface' flag\n")); (* install_callback) (); } @@ -84,9 +85,9 @@ install_help (InstallCallback callback) { static ActionAreaItem action_items[] = { - { "Install", help_install_callback, NULL, NULL }, - { "Ignore", help_ignore_callback, NULL, NULL }, - { "Quit", help_quit_callback, NULL, NULL } + { N_("Install"), help_install_callback, NULL, NULL }, + { N_("Ignore"), help_ignore_callback, NULL, NULL }, + { N_("Quit"), help_quit_callback, NULL, NULL } }; GtkWidget *text; GtkWidget *table; @@ -101,7 +102,7 @@ install_help (InstallCallback callback) GTK_SIGNAL_FUNC (gtk_true), NULL); gtk_window_set_wmclass (GTK_WINDOW (help_widget), "gimp_installation", "Gimp"); - gtk_window_set_title (GTK_WINDOW (help_widget), "GIMP Installation"); + gtk_window_set_title (GTK_WINDOW (help_widget), _("GIMP Installation")); gtk_window_position (GTK_WINDOW (help_widget), GTK_WIN_POS_CENTER); vadj = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 0.0, 0.0, 0.0, 0.0)); @@ -137,188 +138,188 @@ install_help (InstallCallback callback) gtk_widget_realize (text); gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL, - "The GIMP - GNU Image Manipulation Program\n\n", -1); + _("The GIMP - GNU Image Manipulation Program\n\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "Copyright (C) 1995 Spencer Kimball and Peter Mattis\n", -1); + _("Copyright (C) 1995 Spencer Kimball and Peter Mattis\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, "\n", -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "This program is free software; you can redistribute it and/or modify\n", -1); + _("This program is free software; you can redistribute it and/or modify\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "it under the terms of the GNU General Public License as published by\n", -1); + _("it under the terms of the GNU General Public License as published by\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "the Free Software Foundation; either version 2 of the License, or\n", -1); + _("the Free Software Foundation; either version 2 of the License, or\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "(at your option) any later version.\n", -1); + _("(at your option) any later version.\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, "\n", -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "This program is distributed in the hope that it will be useful,\n", -1); + _("This program is distributed in the hope that it will be useful,\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "but WITHOUT ANY WARRANTY; without even the implied warranty of\n", -1); + _("but WITHOUT ANY WARRANTY; without even the implied warranty of\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n", -1); + _("MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "See the GNU General Public License for more details.\n", -1); + _("See the GNU General Public License for more details.\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, "\n", -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "You should have received a copy of the GNU General Public License\n", -1); + _("You should have received a copy of the GNU General Public License\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "along with this program; if not, write to the Free Software\n", -1); + _("along with this program; if not, write to the Free Software\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n", -1); + _("Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, "\n\n", -1); gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL, - "Personal GIMP Installation\n\n", -1); + _("Personal GIMP Installation\n\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "For a proper GIMP installation, a subdirectory called\n", -1); + _("For a proper GIMP installation, a subdirectory called\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, gimp_directory (), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - " needs to be created. This\n", -1); + _(" needs to be created. This\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "subdirectory will contain a number of important files:\n\n", -1); + _("subdirectory will contain a number of important files:\n\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "gimprc\n", -1); + _("gimprc\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThe gimprc is used to store personal preferences\n", -1); + _("\t\tThe gimprc is used to store personal preferences\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tsuch as default GIMP behaviors & plug-in hotkeys.\n", -1); + _("\t\tsuch as default GIMP behaviors & plug-in hotkeys.\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tPaths to search for brushes, palettes, gradients\n", -1); + _("\t\tPaths to search for brushes, palettes, gradients\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tpatterns, and plug-ins are also configured here.\n", -1); + _("\t\tpatterns, and plug-ins are also configured here.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "pluginrc\n", -1); + _("pluginrc\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tPlug-ins and extensions are extern programs run by\n", -1); + _("\t\tPlug-ins and extensions are extern programs run by\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tthe GIMP which provide additional functionality.\n", -1); + _("\t\tthe GIMP which provide additional functionality.\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThese programs are searched for at run-time and\n", -1); + _("\t\tThese programs are searched for at run-time and\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tinformation about their functionality and mod-times\n", -1); + _("\t\tinformation about their functionality and mod-times\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tis cached in this file. This file is intended to\n", -1); + _("\t\tis cached in this file. This file is intended to\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tbe GIMP-readable only, and should not be edited.\n", -1); + _("\t\tbe GIMP-readable only, and should not be edited.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "brushes\n", -1); + _("brushes\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis is a subdirectory which can be used to store\n", -1); + _("\t\tThis is a subdirectory which can be used to store\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tuser defined brushes. The default gimprc file\n", -1); + _("\t\tuser defined brushes. The default gimprc file\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tchecks this subdirectory in addition to the system-\n", -1); + _("\t\tchecks this subdirectory in addition to the system-\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\twide gimp brushes installation when searching for\n", -1); + _("\t\twide gimp brushes installation when searching for\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tbrushes.\n", -1); + _("\t\tbrushes.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "gradients\n", -1); + _("gradients\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis is a subdirectory which can be used to store\n", -1); + _("\t\tThis is a subdirectory which can be used to store\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tuser defined gradients. The default gimprc file\n", -1); + _("\t\tuser defined gradients. The default gimprc file\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tchecks this subdirectory in addition to the system-\n", -1); + _("\t\tchecks this subdirectory in addition to the system-\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\twide gimp gradients installation when searching for\n", -1); + _("\t\twide gimp gradients installation when searching for\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tgradients.\n", -1); + _("\t\tgradients.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "gfig\n", -1); + _("gfig\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis is a subdirectory which can be used to store\n", -1); + _("\t\tThis is a subdirectory which can be used to store\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tuser defined figures to be used by the gfig plug-in.\n", -1); + _("\t\tuser defined figures to be used by the gfig plug-in.\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThe default gimprc file checks this subdirectory in\n", -1); + _("\t\tThe default gimprc file checks this subdirectory in\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\taddition to the systemwide gimp gfig installation\n", -1); + _("\t\taddition to the systemwide gimp gfig installation\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\twhen searching for gfig figures.\n", -1); + _("\t\twhen searching for gfig figures.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "gflares\n", -1); + _("gflares\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis is a subdirectory which can be used to store\n", -1); + _("\t\tThis is a subdirectory which can be used to store\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tuser defined gflares to be used by the gflare plug-in.\n", -1); + _("\t\tuser defined gflares to be used by the gflare plug-in.\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThe default gimprc file checks this subdirectory in\n", -1); + _("\t\tThe default gimprc file checks this subdirectory in\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\taddition to the systemwide gimp gflares installation\n", -1); + _("\t\taddition to the systemwide gimp gflares installation\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\twhen searching for gflares.\n", -1); + _("\t\twhen searching for gflares.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "palettes\n", -1); + _("palettes\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis is a subdirectory which can be used to store\n", -1); + _("\t\tThis is a subdirectory which can be used to store\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tuser defined palettes. The default gimprc file\n", -1); + _("\t\tuser defined palettes. The default gimprc file\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tchecks only this subdirectory (not the system-wide\n", -1); + _("\t\tchecks only this subdirectory (not the system-wide\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tinstallation) when searching for palettes. During\n", -1); + _("\t\tinstallation) when searching for palettes. During\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tinstallation, the system palettes will be copied\n", -1); + _("\t\tinstallation, the system palettes will be copied\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\there. This is done to allow modifications made to\n", -1); + _("\t\there. This is done to allow modifications made to\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tpalettes during GIMP execution to persist across\n", -1); + _("\t\tpalettes during GIMP execution to persist across\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tsessions.\n", -1); + _("\t\tsessions.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "patterns\n", -1); + _("patterns\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis is a subdirectory which can be used to store\n", -1); + _("\t\tThis is a subdirectory which can be used to store\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tuser defined patterns. The default gimprc file\n", -1); + _("\t\tuser defined patterns. The default gimprc file\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tchecks this subdirectory in addition to the system-\n", -1); + _("\t\tchecks this subdirectory in addition to the system-\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\twide gimp patterns installation when searching for\n", -1); + _("\t\twide gimp patterns installation when searching for\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tpatterns.\n", -1); + _("\t\tpatterns.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "plug-ins\n", -1); + _("plug-ins\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis is a subdirectory which can be used to store\n", -1); + _("\t\tThis is a subdirectory which can be used to store\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tuser created, temporary, or otherwise non-system-\n", -1); + _("\t\tuser created, temporary, or otherwise non-system-\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tsupported plug-ins. The default gimprc file\n", -1); + _("\t\tsupported plug-ins. The default gimprc file\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tchecks this subdirectory in addition to the system-\n", -1); + _("\t\tchecks this subdirectory in addition to the system-\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\twide GIMP plug-in directories when searching for\n", -1); + _("\t\twide GIMP plug-in directories when searching for\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tplug-ins.\n", -1); + _("\t\tplug-ins.\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "scripts\n", -1); + _("scripts\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis subdirectory is used by the GIMP to store \n", -1); + _("\t\tThis subdirectory is used by the GIMP to store \n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tuser created and installed scripts. The default gimprc\n", -1); + _("\t\tuser created and installed scripts. The default gimprc\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tfile checks this subdirectory in addition to the system\n", -1); + _("\t\tfile checks this subdirectory in addition to the system\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\t-wide gimp scripts subdirectory when searching for scripts\n", -1); + _("\t\t-wide gimp scripts subdirectory when searching for scripts\n"), -1); gtk_text_insert (GTK_TEXT (text), font_emphasis, NULL, NULL, - "tmp\n", -1); + _("tmp\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tThis subdirectory is used by the GIMP to temporarily\n", -1); + _("\t\tThis subdirectory is used by the GIMP to temporarily\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tstore undo buffers to reduce memory usage. If GIMP is\n", -1); + _("\t\tstore undo buffers to reduce memory usage. If GIMP is\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tunceremoniously killed, files may persist in this directory\n", -1); + _("\t\tunceremoniously killed, files may persist in this directory\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tof the form: gimp<#>.<#>. These files are useless across\n", -1); + _("\t\tof the form: gimp<#>.<#>. These files are useless across\n"), -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\t\tGIMP sessions and can be destroyed with impunity.\n", -1); + _("\t\tGIMP sessions and can be destroyed with impunity.\n"), -1); gtk_widget_show (vsb); gtk_widget_show (text); @@ -361,8 +362,8 @@ install_run (InstallCallback callback) { static ActionAreaItem action_items[] = { - { "Continue", install_continue_callback, NULL, NULL }, - { "Quit", install_quit_callback, NULL, NULL } + { N_("Continue"), install_continue_callback, NULL, NULL }, + { N_("Quit"), install_quit_callback, NULL, NULL } }; GtkWidget *text; GtkWidget *table; @@ -382,7 +383,7 @@ install_run (InstallCallback callback) GTK_SIGNAL_FUNC (gtk_true), NULL); gtk_window_set_wmclass (GTK_WINDOW (install_widget), "installation_log", "Gimp"); - gtk_window_set_title (GTK_WINDOW (install_widget), "Installation Log"); + gtk_window_set_title (GTK_WINDOW (install_widget), _("Installation Log")); gtk_window_position (GTK_WINDOW (install_widget), GTK_WIN_POS_CENTER); vadj = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 0.0, 0.0, 0.0, 0.0)); vsb = gtk_vscrollbar_new (vadj); @@ -413,7 +414,7 @@ install_run (InstallCallback callback) /* Realize the text widget before inserting text strings */ gtk_widget_realize (text); - gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL, "User Installation Log\n\n", -1); + gtk_text_insert (GTK_TEXT (text), font_strong, NULL, NULL, _("User Installation Log\n\n"), -1); /* Generate output */ if ((gimp_data_dir = getenv ("GIMP_DATADIR")) != NULL) @@ -425,14 +426,14 @@ install_run (InstallCallback callback) { gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, buffer, -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - " does not exist. Cannot install.\n", -1); + _(" does not exist. Cannot install.\n"), -1); executable = FALSE; } else if (! (S_IXUSR & stat_buf.st_mode) || ! (S_IRUSR & stat_buf.st_mode)) { gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, buffer, -1); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - " has invalid permissions.\nCannot install.", -1); + _(" has invalid permissions.\nCannot install."), -1); executable = FALSE; } @@ -452,14 +453,14 @@ install_run (InstallCallback callback) pclose (pfp); gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\nInstallation successful!\n", -1); + _("\nInstallation successful!\n"), -1); } else executable = FALSE; } if (executable == FALSE) gtk_text_insert (GTK_TEXT (text), font, NULL, NULL, - "\nInstallation failed. Contact system administrator.\n", -1); + _("\nInstallation failed. Contact system administrator.\n"), -1); gtk_widget_show (vsb); gtk_widget_show (text); diff --git a/app/widgets/gimpbrusheditor.c b/app/widgets/gimpbrusheditor.c index 26f21e9612..7cb8cd09fc 100644 --- a/app/widgets/gimpbrusheditor.c +++ b/app/widgets/gimpbrusheditor.c @@ -26,6 +26,7 @@ #include "actionarea.h" #include "math.h" +#include "libgimp/gimpintl.h" static void brush_edit_close_callback (GtkWidget *w, void *data); static gint brush_edit_preview_resize (GtkWidget *widget, GdkEvent *event, @@ -34,7 +35,7 @@ static gint brush_edit_preview_resize (GtkWidget *widget, GdkEvent *event, /* the action area structure */ static ActionAreaItem action_items[] = { - { "Close", brush_edit_close_callback, NULL, NULL } + { N_("Close"), brush_edit_close_callback, NULL, NULL } }; static void @@ -196,7 +197,7 @@ brush_edit_generated_new () begw->shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (begw->shell), "generatedbrusheditor", "Gimp"); - gtk_window_set_title (GTK_WINDOW (begw->shell), "Brush Editor"); + gtk_window_set_title (GTK_WINDOW (begw->shell), _("Brush Editor")); gtk_window_set_policy(GTK_WINDOW(begw->shell), FALSE, TRUE, FALSE); vbox = gtk_vbox_new (FALSE, 1); @@ -236,7 +237,7 @@ brush_edit_generated_new () gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, FALSE, 0); /* brush radius scale */ - label = gtk_label_new ("Radius:"); + label = gtk_label_new (_("Radius:")); gtk_misc_set_alignment (GTK_MISC(label), 1.0, 0.5); /* gtk_table_attach(GTK_TABLE (table), label, 0, 1, 0, 1, 0, 0, 0, 0); */ gtk_table_attach(GTK_TABLE (table), label, 0, 1, 0, 1, 3, 0, 0, 0); @@ -253,7 +254,7 @@ brush_edit_generated_new () /* brush hardness scale */ - label = gtk_label_new ("Hardness:"); + label = gtk_label_new (_("Hardness:")); gtk_misc_set_alignment (GTK_MISC(label), 1.0, 0.5); gtk_table_attach(GTK_TABLE (table), label, 0, 1, 1, 2, 0, 0, 0, 0); begw->hardness_data = GTK_ADJUSTMENT (gtk_adjustment_new (0.0, 0.0, 1.0, 0.01, 0.01, 0.0)); @@ -269,7 +270,7 @@ brush_edit_generated_new () /* brush aspect ratio scale */ - label = gtk_label_new ("Aspect Ratio:"); + label = gtk_label_new (_("Aspect Ratio:")); gtk_misc_set_alignment (GTK_MISC(label), 1.0, 0.5); gtk_table_attach(GTK_TABLE (table), label, 0, 1, 2, 3, 0, 0, 0, 0); begw->aspect_ratio_data = GTK_ADJUSTMENT (gtk_adjustment_new (1.0, 1.0, 20.0, 0.1, 1.0, 0.0)); @@ -285,7 +286,7 @@ brush_edit_generated_new () /* brush angle scale */ - label = gtk_label_new ("Angle:"); + label = gtk_label_new (_("Angle:")); gtk_misc_set_alignment (GTK_MISC(label), 1.0, 0.5); gtk_table_attach(GTK_TABLE (table), label, 0, 1, 3, 4, 0, 0, 0, 0); begw->angle_data = GTK_ADJUSTMENT (gtk_adjustment_new (00.0, 0.0, 180.0, 0.1, 1.0, 0.0)); diff --git a/app/widgets/gimpdeviceinfo.c b/app/widgets/gimpdeviceinfo.c index bf2daef09c..f1c1479b97 100644 --- a/app/widgets/gimpdeviceinfo.c +++ b/app/widgets/gimpdeviceinfo.c @@ -30,6 +30,8 @@ #include "session.h" #include "tools.h" +#include "libgimp/gimpintl.h" + #define CELL_SIZE 20 /* The size of the preview cells */ #define PREVIEW_EVENT_MASK GDK_EXPOSURE_MASK | \ GDK_BUTTON_PRESS_MASK | \ @@ -113,8 +115,8 @@ int current_device = GDK_CORE_POINTER; /* the action area structure */ static ActionAreaItem action_items[] = { - { "Close", devices_close_callback, NULL, NULL }, - { "Save", (ActionCallback)devices_write_rc, NULL, NULL }, + { N_("Close"), devices_close_callback, NULL, NULL }, + { N_("Save"), (ActionCallback)devices_write_rc, NULL, NULL }, }; void @@ -351,7 +353,7 @@ devices_rc_update (gchar *name, DeviceValues values, } else { - g_warning ("devices_rc_update called multiple times for not present device\n"); + g_warning (_("devices_rc_update called multiple times for not present device\n")); return; } } @@ -650,7 +652,7 @@ create_device_status (void) deviceD = g_new (DeviceInfoDialog, 1); deviceD->shell = gtk_dialog_new (); - gtk_window_set_title (GTK_WINDOW(deviceD->shell), "Device Status"); + gtk_window_set_title (GTK_WINDOW(deviceD->shell), _("Device Status")); gtk_window_set_policy (GTK_WINDOW (deviceD->shell), FALSE, FALSE, TRUE); session_set_window_geometry (deviceD->shell, &device_status_session_info, TRUE); @@ -1022,7 +1024,7 @@ device_preview_events (GtkWidget *widget, if(tmp_list == NULL) { - g_message("Failed to find device_info\n"); + g_message(_("Failed to find device_info\n")); break; /* Error no device info */ } diff --git a/app/widgets/gimpdevices.c b/app/widgets/gimpdevices.c index bf2daef09c..f1c1479b97 100644 --- a/app/widgets/gimpdevices.c +++ b/app/widgets/gimpdevices.c @@ -30,6 +30,8 @@ #include "session.h" #include "tools.h" +#include "libgimp/gimpintl.h" + #define CELL_SIZE 20 /* The size of the preview cells */ #define PREVIEW_EVENT_MASK GDK_EXPOSURE_MASK | \ GDK_BUTTON_PRESS_MASK | \ @@ -113,8 +115,8 @@ int current_device = GDK_CORE_POINTER; /* the action area structure */ static ActionAreaItem action_items[] = { - { "Close", devices_close_callback, NULL, NULL }, - { "Save", (ActionCallback)devices_write_rc, NULL, NULL }, + { N_("Close"), devices_close_callback, NULL, NULL }, + { N_("Save"), (ActionCallback)devices_write_rc, NULL, NULL }, }; void @@ -351,7 +353,7 @@ devices_rc_update (gchar *name, DeviceValues values, } else { - g_warning ("devices_rc_update called multiple times for not present device\n"); + g_warning (_("devices_rc_update called multiple times for not present device\n")); return; } } @@ -650,7 +652,7 @@ create_device_status (void) deviceD = g_new (DeviceInfoDialog, 1); deviceD->shell = gtk_dialog_new (); - gtk_window_set_title (GTK_WINDOW(deviceD->shell), "Device Status"); + gtk_window_set_title (GTK_WINDOW(deviceD->shell), _("Device Status")); gtk_window_set_policy (GTK_WINDOW (deviceD->shell), FALSE, FALSE, TRUE); session_set_window_geometry (deviceD->shell, &device_status_session_info, TRUE); @@ -1022,7 +1024,7 @@ device_preview_events (GtkWidget *widget, if(tmp_list == NULL) { - g_message("Failed to find device_info\n"); + g_message(_("Failed to find device_info\n")); break; /* Error no device info */ } diff --git a/app/widgets/gimpitemfactory.c b/app/widgets/gimpitemfactory.c index 8caeb61268..d4718a6dd6 100644 --- a/app/widgets/gimpitemfactory.c +++ b/app/widgets/gimpitemfactory.c @@ -35,7 +35,7 @@ #include "libgimp/gimpintl.h" -#define MRU_MENU_ENTRY_SIZE sizeof (N_("/File/MRU00")) +#define MRU_MENU_ENTRY_SIZE sizeof ("/File/MRU00 ") #define MRU_MENU_ACCEL_SIZE sizeof ("0") static void menus_init (void); @@ -79,7 +79,6 @@ static GtkItemFactoryEntry image_entries[] = { N_("/File/Preferences..."), NULL, file_pref_cmd_callback, 0 }, { N_("/File/---"), NULL, NULL, 0, "" }, - { N_("/File/Close"), "W", file_close_cmd_callback, 0 }, { N_("/File/Quit"), "Q", file_quit_cmd_callback, 0 }, { N_("/File/---"), NULL, NULL, 0, "" }, @@ -310,7 +309,7 @@ menus_tools_create (ToolInfo *tool_info) /* entry.path = g_strconcat ("", tool_info->menu_path, NULL);*/ /* entry.callback_data = tool_info; */ - entry.path = tool_info->menu_path; + entry.path = gettext(tool_info->menu_path); entry.accelerator = tool_info->menu_accel; entry.callback = tools_select_cmd_callback; entry.callback_action = tool_info->tool_id; @@ -340,12 +339,12 @@ menus_set_sensitive (char *path, if (ifactory) { widget = gtk_item_factory_get_widget (ifactory, path); - + gtk_widget_set_sensitive (widget, sensitive); } if (!ifactory || !widget) printf (_("Unable to set sensitivity for menu which doesn't exist:\n%s"), path); -} +} void menus_set_state (char *path, @@ -509,9 +508,7 @@ menus_init_mru () gtk_item_factory_create_items_ac (toolbox_factory, last_opened_size, last_opened_entries, NULL, 2); - gtk_item_factory_create_item (toolbox_factory, &file_menu_separator, NULL, 2); - gtk_item_factory_create_item (toolbox_factory, &toolbox_end, NULL, 2); - + for (i=0; i < last_opened_size; i++) { widget = gtk_item_factory_get_widget (toolbox_factory, @@ -540,6 +537,14 @@ menus_init_toolbox () translated_entries, NULL, 2); free_translated_entries(translated_entries, n_toolbox_entries); menus_init_mru (); + + translated_entries=translate_entries(&file_menu_separator,1); + gtk_item_factory_create_item (toolbox_factory, translated_entries, NULL, 2); + free_translated_entries(translated_entries, 1); + + translated_entries=translate_entries(&toolbox_end,1); + gtk_item_factory_create_item (toolbox_factory, translated_entries, NULL, 2); + free_translated_entries(translated_entries, 1); } static GtkItemFactoryEntry * diff --git a/app/widgets/gimppaletteeditor.c b/app/widgets/gimppaletteeditor.c index 8e449cf1ed..8587be1598 100644 --- a/app/widgets/gimppaletteeditor.c +++ b/app/widgets/gimppaletteeditor.c @@ -59,6 +59,7 @@ struct _Palette { GtkWidget *color_area; GtkWidget *color_name; GtkWidget *palette_ops; + GtkWidget *clist; GdkGC *gc; GtkAdjustment *sbar_data; PaletteEntriesP entries; @@ -110,6 +111,8 @@ static int num_palette_entries = 0; static unsigned char foreground[3] = { 0, 0, 0 }; static unsigned char background[3] = { 255, 255, 255 }; +static PaletteEntriesP p_entries = NULL; + /* Color select dialog */ /* static ColorSelectP color_select = NULL; static int color_select_active = 0; */ @@ -146,11 +149,13 @@ palettes_free () void palette_create () { + /* why isnt this stuff in the Palette struct? */ GtkWidget *vbox; GtkWidget *hbox; GtkWidget *sbar; GtkWidget *frame; GtkWidget *options_box; + GtkWidget *clist_box; GtkWidget *arrow_hbox; GtkWidget *label; GtkWidget *arrow; @@ -167,7 +172,7 @@ palette_create () palette->color_select = NULL; palette->color_select_active = 0; palette->scroll_offset = 0; - palette->gc = NULL; + palette->gc = NULL;\ palette->updating = FALSE; /* The shell and main vbox */ @@ -189,6 +194,10 @@ palette_create () options_box = gtk_hbox_new (FALSE, 1); gtk_box_pack_start (GTK_BOX (vbox), options_box, FALSE, FALSE, 0); + /* the clist box */ + clist_box = gtk_hbox_new(FALSE, 1); + gtk_box_pack_start(GTK_BOX(vbox), clist_box, FALSE, FALSE, 0); + /* The popup menu -- palette_ops */ for (i = 0; palette_ops[i].label; i++) palette_ops[i].user_data = palette; @@ -216,11 +225,28 @@ palette_create () gtk_widget_show (menu_bar_item); gtk_widget_show (menu_bar); + /* the clist */ + palette->clist = gtk_clist_new(1); /* one column */ + /* dont forget the callback */ + /* It isn't necessary to shadow the border, but it looks nice :) */ + gtk_clist_set_border(GTK_CLIST(palette->clist), GTK_SHADOW_OUT); + gtk_clist_set_column_width (GTK_CLIST(palette->clist), 0, 100); + /* slap the clist in place of the option menu for testing */ + gtk_box_pack_start (GTK_BOX (clist_box), palette->clist, TRUE, TRUE, 0); + gtk_widget_show(palette->clist); + + gtk_signal_connect(GTK_OBJECT(palette->clist), "select_row", + GTK_SIGNAL_FUNC(palette_entries_set_callback), + (gpointer) p_entries); + + /* The option menu */ - palette->option_menu = gtk_option_menu_new (); - gtk_box_pack_start (GTK_BOX (options_box), palette->option_menu, TRUE, TRUE, 0); - gtk_widget_show (palette->option_menu); - gtk_widget_show (options_box); + /* slap both of them into that box for now... */ +/* palette->option_menu = gtk_option_menu_new (); */ +/* gtk_box_pack_start (GTK_BOX (options_box), palette->option_menu, TRUE, TRUE, 0); */ +/* gtk_widget_show (palette->option_menu); */ + /* gtk_widget_show (options_box); */ + gtk_widget_show(clist_box); /* The active color name */ palette->color_name = gtk_entry_new (); @@ -442,7 +468,7 @@ palette_create_palette_menu (PaletteP palette, { GtkWidget *menu_item; GSList *list; - PaletteEntriesP p_entries = NULL; + /* PaletteEntriesP p_entries = NULL; */ PaletteEntriesP found_entries = NULL; int i = 0; int default_index = -1; @@ -468,12 +494,18 @@ palette_create_palette_menu (PaletteP palette, default_index = i; } - menu_item = gtk_menu_item_new_with_label (p_entries->name); - gtk_signal_connect (GTK_OBJECT (menu_item), "activate", - (GtkSignalFunc) palette_entries_set_callback, - (gpointer) p_entries); - gtk_container_add (GTK_CONTAINER (palette->menu), menu_item); - gtk_widget_show (menu_item); + /* add each palette to the clist */ + /* casting? */ + gtk_clist_append( (GtkCList*)(palette->clist), &p_entries->name); + + + + /* menu_item = gtk_menu_item_new_with_label (p_entries->name); */ +/* gtk_signal_connect (GTK_OBJECT (menu_item), "activate", */ +/* (GtkSignalFunc) palette_entries_set_callback, */ +/* (gpointer) p_entries); */ +/* gtk_container_add (GTK_CONTAINER (palette->menu), menu_item); */ +/* gtk_widget_show (menu_item); */ i++; } diff --git a/app/xcf.c b/app/xcf.c index 683212b1e4..2519c4402a 100644 --- a/app/xcf.c +++ b/app/xcf.c @@ -22,6 +22,8 @@ #include "xcf.h" #include "frac.h" +#include "libgimp/gimpintl.h" + #include "drawable_pvt.h" #include "layer_pvt.h" #include "channel_pvt.h" @@ -161,20 +163,20 @@ static ProcArg xcf_load_args[] = { { PDB_INT32, "dummy_param", - "dummy parameter" }, + N_("dummy parameter") }, { PDB_STRING, "filename", - "The name of the file to load" }, + N_("The name of the file to load") }, { PDB_STRING, "raw_filename", - "The name of the file to load" }, + N_("The name of the file to load") }, }; static ProcArg xcf_load_return_vals[] = { { PDB_IMAGE, "image", - "Output image" }, + N_("Output image") }, }; static PlugInProcDef xcf_plug_in_load_proc = @@ -189,10 +191,10 @@ static PlugInProcDef xcf_plug_in_load_proc = 0, /* ignored for load */ { "gimp_xcf_load", - "loads file saved in the .xcf file format", - "The xcf file format has been designed specifically for loading and saving tiled and layered images in the GIMP. This procedure will load the specified file.", - "Spencer Kimball & Peter Mattis", - "Spencer Kimball & Peter Mattis", + N_("loads file saved in the .xcf file format"), + N_("The xcf file format has been designed specifically for loading and saving tiled and layered images in the GIMP. This procedure will load the specified file."), + N_("Spencer Kimball & Peter Mattis"), + N_("Spencer Kimball & Peter Mattis"), "1995-1996", PDB_INTERNAL, 3, @@ -209,19 +211,19 @@ static ProcArg xcf_save_args[] = { { PDB_INT32, "dummy_param", - "dummy parameter" }, + N_("dummy parameter") }, { PDB_IMAGE, "image", - "Input image" }, + N_("Input image") }, { PDB_DRAWABLE, "drawable", - "Active drawable of input image" }, + N_("Active drawable of input image") }, { PDB_STRING, "filename", - "The name of the file to save the image in" }, + N_("The name of the file to save the image in") }, { PDB_STRING, "raw_filename", - "The name of the file to load" }, + N_("The name of the file to load") }, }; static PlugInProcDef xcf_plug_in_save_proc = @@ -236,10 +238,10 @@ static PlugInProcDef xcf_plug_in_save_proc = 0, /* fill me in at runtime */ { "gimp_xcf_save", - "saves file in the .xcf file format", - "The xcf file format has been designed specifically for loading and saving tiled and layered images in the GIMP. This procedure will save the specified image in the xcf file format.", - "Spencer Kimball & Peter Mattis", - "Spencer Kimball & Peter Mattis", + N_("saves file in the .xcf file format"), + N_("The xcf file format has been designed specifically for loading and saving tiled and layered images in the GIMP. This procedure will save the specified image in the xcf file format."), + N_("Spencer Kimball & Peter Mattis"), + N_("Spencer Kimball & Peter Mattis"), "1995-1996", PDB_INTERNAL, 5, @@ -332,7 +334,7 @@ xcf_load_invoker (Argument *args) } else { - g_message ("XCF error: unsupported XCF file version %d encountered", info.file_version); + g_message (_("XCF error: unsupported XCF file version %d encountered"), info.file_version); success = FALSE; } } @@ -382,7 +384,7 @@ xcf_save_invoker (Argument *args) } else { - g_message ("open failed on %s: %s\n", filename, g_strerror(errno)); + g_message (_("open failed on %s: %s\n"), filename, g_strerror(errno)); } return_args = procedural_db_return_args (&xcf_plug_in_save_proc.db_info, success); @@ -1085,7 +1087,7 @@ xcf_save_level (XcfInfo *info, xcf_save_tile_rle (info, level->tiles[i]); break; case COMPRESS_ZLIB: - g_error ("xcf: zlib compression unimplemented"); + g_error (_("xcf: zlib compression unimplemented")); break; case COMPRESS_FRACTAL: xcf_save_frac_compressed_tile (info, level->tiles[i]); @@ -1242,7 +1244,7 @@ xcf_save_tile_rle (XcfInfo *info, } if (count != (tile_ewidth (tile) * tile_eheight (tile))) - g_print ("xcf: uh oh! xcf rle tile saving error: %d\n", count); + g_print (_("xcf: uh oh! xcf rle tile saving error: %d\n"), count); } tile_release (tile, FALSE); @@ -1384,9 +1386,9 @@ xcf_load_image_props (XcfInfo *info, if (info->file_version == 0) { int i; - g_message ("XCF warning: version 0 of XCF file format\n" + g_message (_("XCF warning: version 0 of XCF file format\n" "did not save indexed colormaps correctly.\n" - "Substituting grayscale map."); + "Substituting grayscale map.")); info->cp += xcf_read_int32 (info->fp, (guint32*) &gimage->num_cols, 1); gimage->cmap = g_new (guchar, gimage->num_cols*3); xcf_seek_pos (info, info->cp + gimage->num_cols); @@ -1415,7 +1417,7 @@ xcf_load_image_props (XcfInfo *info, (compression != COMPRESS_ZLIB) && (compression != COMPRESS_FRACTAL)) { - g_message ("unknown compression type: %d", (int) compression); + g_message (_("unknown compression type: %d"), (int) compression); return FALSE; } @@ -1447,7 +1449,7 @@ xcf_load_image_props (XcfInfo *info, } break; default: - g_message ("unexpected/unknown image property: %d (skipping)", prop_type); + g_message (_("unexpected/unknown image property: %d (skipping)"), prop_type); { guint8 buf[16]; @@ -1520,7 +1522,7 @@ xcf_load_layer_props (XcfInfo *info, info->cp += xcf_read_int32 (info->fp, (guint32*) &layer->mode, 1); break; default: - g_message ("unexpected/unknown layer property: %d (skipping)", prop_type); + g_message (_("unexpected/unknown layer property: %d (skipping)"), prop_type); { guint8 buf[16]; @@ -1579,7 +1581,7 @@ xcf_load_channel_props (XcfInfo *info, info->cp += xcf_read_int8 (info->fp, (guint8*) channel->col, 3); break; default: - g_message ("unexpected/unknown channel property: %d (skipping)", prop_type); + g_message (_("unexpected/unknown channel property: %d (skipping)"), prop_type); { guint8 buf[16]; @@ -1919,7 +1921,7 @@ xcf_load_level (XcfInfo *info, if (offset == 0) { - g_message ("not enough tiles found in level"); + g_message (_("not enough tiles found in level")); return FALSE; } @@ -1946,11 +1948,11 @@ xcf_load_level (XcfInfo *info, fail = TRUE; break; case COMPRESS_ZLIB: - g_error ("xcf: zlib compression unimplemented"); + g_error (_("xcf: zlib compression unimplemented")); fail = TRUE; break; case COMPRESS_FRACTAL: - g_error ("xcf: fractal compression unimplemented"); + g_error (_("xcf: fractal compression unimplemented")); fail = TRUE; break; } @@ -1992,7 +1994,7 @@ xcf_load_level (XcfInfo *info, if (offset != 0) { - g_message ("encountered garbage after reading level: %d", offset); + g_message (_("encountered garbage after reading level: %d"), offset); return FALSE; } @@ -2091,7 +2093,7 @@ xcf_load_tile_rle (XcfInfo *info, size -= length; if (size < 0) - g_message ("xcf: uh oh! xcf rle tile loading error: %d", count); + g_message (_("xcf: uh oh! xcf rle tile loading error: %d"), count); info->cp += xcf_read_int8 (info->fp, &val, 1); @@ -2138,7 +2140,7 @@ xcf_swap_func (int fd, if (err <= 0) { - g_message ("unable to read tile data from xcf file: %d ( %d ) bytes read", err, nleft); + g_message (_("unable to read tile data from xcf file: %d ( %d ) bytes read"), err, nleft); return FALSE; } diff --git a/app/xcf/xcf.c b/app/xcf/xcf.c index 683212b1e4..2519c4402a 100644 --- a/app/xcf/xcf.c +++ b/app/xcf/xcf.c @@ -22,6 +22,8 @@ #include "xcf.h" #include "frac.h" +#include "libgimp/gimpintl.h" + #include "drawable_pvt.h" #include "layer_pvt.h" #include "channel_pvt.h" @@ -161,20 +163,20 @@ static ProcArg xcf_load_args[] = { { PDB_INT32, "dummy_param", - "dummy parameter" }, + N_("dummy parameter") }, { PDB_STRING, "filename", - "The name of the file to load" }, + N_("The name of the file to load") }, { PDB_STRING, "raw_filename", - "The name of the file to load" }, + N_("The name of the file to load") }, }; static ProcArg xcf_load_return_vals[] = { { PDB_IMAGE, "image", - "Output image" }, + N_("Output image") }, }; static PlugInProcDef xcf_plug_in_load_proc = @@ -189,10 +191,10 @@ static PlugInProcDef xcf_plug_in_load_proc = 0, /* ignored for load */ { "gimp_xcf_load", - "loads file saved in the .xcf file format", - "The xcf file format has been designed specifically for loading and saving tiled and layered images in the GIMP. This procedure will load the specified file.", - "Spencer Kimball & Peter Mattis", - "Spencer Kimball & Peter Mattis", + N_("loads file saved in the .xcf file format"), + N_("The xcf file format has been designed specifically for loading and saving tiled and layered images in the GIMP. This procedure will load the specified file."), + N_("Spencer Kimball & Peter Mattis"), + N_("Spencer Kimball & Peter Mattis"), "1995-1996", PDB_INTERNAL, 3, @@ -209,19 +211,19 @@ static ProcArg xcf_save_args[] = { { PDB_INT32, "dummy_param", - "dummy parameter" }, + N_("dummy parameter") }, { PDB_IMAGE, "image", - "Input image" }, + N_("Input image") }, { PDB_DRAWABLE, "drawable", - "Active drawable of input image" }, + N_("Active drawable of input image") }, { PDB_STRING, "filename", - "The name of the file to save the image in" }, + N_("The name of the file to save the image in") }, { PDB_STRING, "raw_filename", - "The name of the file to load" }, + N_("The name of the file to load") }, }; static PlugInProcDef xcf_plug_in_save_proc = @@ -236,10 +238,10 @@ static PlugInProcDef xcf_plug_in_save_proc = 0, /* fill me in at runtime */ { "gimp_xcf_save", - "saves file in the .xcf file format", - "The xcf file format has been designed specifically for loading and saving tiled and layered images in the GIMP. This procedure will save the specified image in the xcf file format.", - "Spencer Kimball & Peter Mattis", - "Spencer Kimball & Peter Mattis", + N_("saves file in the .xcf file format"), + N_("The xcf file format has been designed specifically for loading and saving tiled and layered images in the GIMP. This procedure will save the specified image in the xcf file format."), + N_("Spencer Kimball & Peter Mattis"), + N_("Spencer Kimball & Peter Mattis"), "1995-1996", PDB_INTERNAL, 5, @@ -332,7 +334,7 @@ xcf_load_invoker (Argument *args) } else { - g_message ("XCF error: unsupported XCF file version %d encountered", info.file_version); + g_message (_("XCF error: unsupported XCF file version %d encountered"), info.file_version); success = FALSE; } } @@ -382,7 +384,7 @@ xcf_save_invoker (Argument *args) } else { - g_message ("open failed on %s: %s\n", filename, g_strerror(errno)); + g_message (_("open failed on %s: %s\n"), filename, g_strerror(errno)); } return_args = procedural_db_return_args (&xcf_plug_in_save_proc.db_info, success); @@ -1085,7 +1087,7 @@ xcf_save_level (XcfInfo *info, xcf_save_tile_rle (info, level->tiles[i]); break; case COMPRESS_ZLIB: - g_error ("xcf: zlib compression unimplemented"); + g_error (_("xcf: zlib compression unimplemented")); break; case COMPRESS_FRACTAL: xcf_save_frac_compressed_tile (info, level->tiles[i]); @@ -1242,7 +1244,7 @@ xcf_save_tile_rle (XcfInfo *info, } if (count != (tile_ewidth (tile) * tile_eheight (tile))) - g_print ("xcf: uh oh! xcf rle tile saving error: %d\n", count); + g_print (_("xcf: uh oh! xcf rle tile saving error: %d\n"), count); } tile_release (tile, FALSE); @@ -1384,9 +1386,9 @@ xcf_load_image_props (XcfInfo *info, if (info->file_version == 0) { int i; - g_message ("XCF warning: version 0 of XCF file format\n" + g_message (_("XCF warning: version 0 of XCF file format\n" "did not save indexed colormaps correctly.\n" - "Substituting grayscale map."); + "Substituting grayscale map.")); info->cp += xcf_read_int32 (info->fp, (guint32*) &gimage->num_cols, 1); gimage->cmap = g_new (guchar, gimage->num_cols*3); xcf_seek_pos (info, info->cp + gimage->num_cols); @@ -1415,7 +1417,7 @@ xcf_load_image_props (XcfInfo *info, (compression != COMPRESS_ZLIB) && (compression != COMPRESS_FRACTAL)) { - g_message ("unknown compression type: %d", (int) compression); + g_message (_("unknown compression type: %d"), (int) compression); return FALSE; } @@ -1447,7 +1449,7 @@ xcf_load_image_props (XcfInfo *info, } break; default: - g_message ("unexpected/unknown image property: %d (skipping)", prop_type); + g_message (_("unexpected/unknown image property: %d (skipping)"), prop_type); { guint8 buf[16]; @@ -1520,7 +1522,7 @@ xcf_load_layer_props (XcfInfo *info, info->cp += xcf_read_int32 (info->fp, (guint32*) &layer->mode, 1); break; default: - g_message ("unexpected/unknown layer property: %d (skipping)", prop_type); + g_message (_("unexpected/unknown layer property: %d (skipping)"), prop_type); { guint8 buf[16]; @@ -1579,7 +1581,7 @@ xcf_load_channel_props (XcfInfo *info, info->cp += xcf_read_int8 (info->fp, (guint8*) channel->col, 3); break; default: - g_message ("unexpected/unknown channel property: %d (skipping)", prop_type); + g_message (_("unexpected/unknown channel property: %d (skipping)"), prop_type); { guint8 buf[16]; @@ -1919,7 +1921,7 @@ xcf_load_level (XcfInfo *info, if (offset == 0) { - g_message ("not enough tiles found in level"); + g_message (_("not enough tiles found in level")); return FALSE; } @@ -1946,11 +1948,11 @@ xcf_load_level (XcfInfo *info, fail = TRUE; break; case COMPRESS_ZLIB: - g_error ("xcf: zlib compression unimplemented"); + g_error (_("xcf: zlib compression unimplemented")); fail = TRUE; break; case COMPRESS_FRACTAL: - g_error ("xcf: fractal compression unimplemented"); + g_error (_("xcf: fractal compression unimplemented")); fail = TRUE; break; } @@ -1992,7 +1994,7 @@ xcf_load_level (XcfInfo *info, if (offset != 0) { - g_message ("encountered garbage after reading level: %d", offset); + g_message (_("encountered garbage after reading level: %d"), offset); return FALSE; } @@ -2091,7 +2093,7 @@ xcf_load_tile_rle (XcfInfo *info, size -= length; if (size < 0) - g_message ("xcf: uh oh! xcf rle tile loading error: %d", count); + g_message (_("xcf: uh oh! xcf rle tile loading error: %d"), count); info->cp += xcf_read_int8 (info->fp, &val, 1); @@ -2138,7 +2140,7 @@ xcf_swap_func (int fd, if (err <= 0) { - g_message ("unable to read tile data from xcf file: %d ( %d ) bytes read", err, nleft); + g_message (_("unable to read tile data from xcf file: %d ( %d ) bytes read"), err, nleft); return FALSE; } diff --git a/libgimp/gimpintl.h b/libgimp/gimpintl.h index 976e55062a..6434dd6666 100644 --- a/libgimp/gimpintl.h +++ b/libgimp/gimpintl.h @@ -1,7 +1,7 @@ #ifndef __GIMPINTL_H__ #define __GIMPINTL_H__ -#define LOCALEDIR LIBDIR "/locale" +#define LOCALEDIR "/usr/local/share/locale" /* Copied from gnome-i18n.h by Tom Tromey */ diff --git a/libgimpwidgets/gimpcolorselect.c b/libgimpwidgets/gimpcolorselect.c index 6a3fbcb07e..e68219090f 100644 --- a/libgimpwidgets/gimpcolorselect.c +++ b/libgimpwidgets/gimpcolorselect.c @@ -26,6 +26,8 @@ #include "session.h" #include "color_area.h" /* for color_area_draw_rect */ +#include "libgimp/gimpintl.h" + #define XY_DEF_WIDTH 240 #define XY_DEF_HEIGHT 240 #define Z_DEF_WIDTH 15 @@ -133,8 +135,8 @@ static ColorSelectFillUpdateProc update_procs[] = static ActionAreaItem action_items[2] = { - { "OK", color_select_ok_callback, NULL, NULL }, - { "Cancel", color_select_cancel_callback, NULL, NULL }, + { N_("OK"), color_select_ok_callback, NULL, NULL }, + { N_("Cancel"), color_select_cancel_callback, NULL, NULL }, }; ColorSelectP @@ -183,7 +185,7 @@ color_select_new (int r, csp->shell = gtk_dialog_new (); gtk_window_set_wmclass (GTK_WINDOW (csp->shell), "color_selection", "Gimp"); - gtk_window_set_title (GTK_WINDOW (csp->shell), "Color Selection"); + gtk_window_set_title (GTK_WINDOW (csp->shell), _("Color Selection")); gtk_window_set_policy (GTK_WINDOW (csp->shell), FALSE, FALSE, FALSE); @@ -335,7 +337,7 @@ color_select_new (int r, csp); gtk_widget_show (csp->hex_entry); - label = gtk_label_new ("Hex Triplet:"); + label = gtk_label_new (_("Hex Triplet:")); gtk_box_pack_end (GTK_BOX (hex_hbox), label, FALSE, FALSE, 0); gtk_widget_show (label); @@ -344,13 +346,13 @@ color_select_new (int r, action_items[1].user_data = csp; if (csp->wants_updates) { - action_items[0].label = "Close"; - action_items[1].label = "Revert to Old Color"; + action_items[0].label = _("Close"); + action_items[1].label = _("Revert to Old Color"); } else { - action_items[0].label = "OK"; - action_items[1].label = "Cancel"; + action_items[0].label = _("OK"); + action_items[1].label = _("Cancel"); } build_action_area (GTK_DIALOG (csp->shell), action_items, 2, 0); diff --git a/plug-ins/common/guillotine.c b/plug-ins/common/guillotine.c index 989131809b..6f557c027d 100644 --- a/plug-ins/common/guillotine.c +++ b/plug-ins/common/guillotine.c @@ -133,6 +133,7 @@ guillotine(gint32 image_ID) gint guide_num; gint* hguides; gint* vguides; + gchar filename[1024]; gint i,x,y; GParam *return_vals; gint nreturn_vals; @@ -242,10 +243,11 @@ guillotine(gint32 image_ID) PARAM_IMAGE, new_image, PARAM_END); - /* printf("(%dx%d:%d,%d)\n", - (vguides[x+1]-vguides[x]), - (hguides[y+1]-hguides[y]), - vguides[x], hguides[y]); */ +/* printf("(%dx%d:%d,%d:%d,%d)\n", */ +/* (vguides[x+1]-vguides[x]), */ +/* (hguides[y+1]-hguides[y]), */ +/* vguides[x], hguides[y],x, y); */ + gimp_run_procedure("gimp_crop", &nreturn_vals, PARAM_IMAGE, new_image, @@ -261,6 +263,11 @@ guillotine(gint32 image_ID) gimp_image_enable_undo (new_image); + /* show the rough coordinates of the image in the title */ + sprintf(filename, "%s-(%i,%i)", gimp_image_get_filename (image_ID), + x, y); + gimp_image_set_filename(new_image, filename); + gimp_display_new (new_image); } } diff --git a/plug-ins/guillotine/guillotine.c b/plug-ins/guillotine/guillotine.c index 989131809b..6f557c027d 100644 --- a/plug-ins/guillotine/guillotine.c +++ b/plug-ins/guillotine/guillotine.c @@ -133,6 +133,7 @@ guillotine(gint32 image_ID) gint guide_num; gint* hguides; gint* vguides; + gchar filename[1024]; gint i,x,y; GParam *return_vals; gint nreturn_vals; @@ -242,10 +243,11 @@ guillotine(gint32 image_ID) PARAM_IMAGE, new_image, PARAM_END); - /* printf("(%dx%d:%d,%d)\n", - (vguides[x+1]-vguides[x]), - (hguides[y+1]-hguides[y]), - vguides[x], hguides[y]); */ +/* printf("(%dx%d:%d,%d:%d,%d)\n", */ +/* (vguides[x+1]-vguides[x]), */ +/* (hguides[y+1]-hguides[y]), */ +/* vguides[x], hguides[y],x, y); */ + gimp_run_procedure("gimp_crop", &nreturn_vals, PARAM_IMAGE, new_image, @@ -261,6 +263,11 @@ guillotine(gint32 image_ID) gimp_image_enable_undo (new_image); + /* show the rough coordinates of the image in the title */ + sprintf(filename, "%s-(%i,%i)", gimp_image_get_filename (image_ID), + x, y); + gimp_image_set_filename(new_image, filename); + gimp_display_new (new_image); } } diff --git a/plug-ins/script-fu/scripts/neon-logo.scm b/plug-ins/script-fu/scripts/neon-logo.scm index c8a5511f91..3f8e08050b 100644 --- a/plug-ins/script-fu/scripts/neon-logo.scm +++ b/plug-ins/script-fu/scripts/neon-logo.scm @@ -60,7 +60,7 @@ (shadow-feather (/ size 20)) (shadow-offx (/ size 10)) (shadow-offy (/ size 10)) - (tube-layer (car (gimp-text img -1 0 0 text border TRUE size PIXELS "*" font "*" "*" "*" "*"))) + (tube-layer (car (gimp-text-fontname img -1 0 0 text border TRUE size PIXELS font))) (width (car (gimp-drawable-width tube-layer))) (height (car (gimp-drawable-height tube-layer))) (glow-layer (car (gimp-layer-new img width height RGBA_IMAGE "Neon Glow" 100 NORMAL))) @@ -159,7 +159,9 @@ "1997" "" SF-STRING "Text String" "NEON" - SF-VALUE "Font Size (in pixels)" "150" +; SF-VALUE "Font Size (in pixels)" "150" + SF-ADJUSTMENT "Font Size" '(150 2 256 1 10 0 0) + SF-FONT "Font" "-*-blippo-*-*-*-*-*-*-*-*-*-*-*-*" SF-STRING "Font" "Blippo" SF-COLOR "Background Color" '(0 0 0) SF-COLOR "Glow Color" '(38 211 255) diff --git a/plug-ins/script-fu/scripts/perspective-shadow.scm b/plug-ins/script-fu/scripts/perspective-shadow.scm index 720f53ce50..7caf77480a 100644 --- a/plug-ins/script-fu/scripts/perspective-shadow.scm +++ b/plug-ins/script-fu/scripts/perspective-shadow.scm @@ -186,12 +186,12 @@ "RGB RGBA GRAY GRAYA" SF-IMAGE "Image" 0 SF-DRAWABLE "Drawable" 0 - SF-VALUE "Angle" "45" - SF-VALUE "Relative horizon distance" "5.0" - SF-VALUE "Relative shadow length" "1.0" - SF-VALUE "Blur Radius" "3" + SF-ADJUSTMENT "Angle" '(45 0 180 1 10 1 0) + SF-ADJUSTMENT "Relative horizon distance" '(5 0 24 .1 1 1 1) + SF-ADJUSTMENT "Relative shadow length" '(1 0 24 .1 1 1 1) + SF-ADJUSTMENT "Blur Radius" '(3 0 64 1 10 0 0) SF-COLOR "Color" '(0 0 0) - SF-VALUE "Opacity" "80" + SF-ADJUSTMENT "Opacity" '(80 0 100 1 10 0 0) SF-TOGGLE "Interpolate" TRUE SF-TOGGLE "Allow Resizing" FALSE) diff --git a/plug-ins/script-fu/scripts/predator.scm b/plug-ins/script-fu/scripts/predator.scm index b06ae2e993..72cb2b6170 100644 --- a/plug-ins/script-fu/scripts/predator.scm +++ b/plug-ins/script-fu/scripts/predator.scm @@ -108,9 +108,9 @@ "RGB RGBA" SF-IMAGE "Image" 0 SF-DRAWABLE "Drawable" 0 - SF-VALUE "edge-amount" "2" + SF-ADJUSTMENT "edge-amount" '(2 0 24 1 1 0 0) SF-TOGGLE "pixelize?" TRUE - SF-VALUE "Pixel amount" "3" + SF-ADJUSTMENT "Pixel Amount" '(3 1 16 1 1 0 0) SF-TOGGLE "Keep Selection?" TRUE SF-TOGGLE "Seperate Layer?" TRUE) diff --git a/plug-ins/script-fu/scripts/rendermap.scm b/plug-ins/script-fu/scripts/rendermap.scm index 0dcb0e2b1f..30fd473d3f 100644 --- a/plug-ins/script-fu/scripts/rendermap.scm +++ b/plug-ins/script-fu/scripts/rendermap.scm @@ -66,8 +66,8 @@ "28th April 1998" "Chris Gutteridge / ECS @ University of Southampton, England" "" - SF-VALUE "Image Size:" "256" - SF-VALUE "Granularity (0 - 15):" "4" + SF-ADJUSTMENT "Image Size" '(256 0 2048 1 10 0 0) + SF-ADJUSTMENT "Granularity (0 - 15):" '(4 0 15 1 1 0 1) SF-STRING "Gradient:" "Land_and_Sea" SF-TOGGLE "TRUE = Detail in middle, FALSE = tile" FALSE ) diff --git a/plug-ins/script-fu/scripts/ripply-anim.scm b/plug-ins/script-fu/scripts/ripply-anim.scm index b0f12c6c20..6ef267de82 100644 --- a/plug-ins/script-fu/scripts/ripply-anim.scm +++ b/plug-ins/script-fu/scripts/ripply-anim.scm @@ -98,5 +98,5 @@ "RGB*, GRAY*" SF-IMAGE "Image to Animage" 0 SF-DRAWABLE "Drawable to Animate" 0 - SF-VALUE "Rippling Strength" "3" - SF-VALUE "Number of Frames" "15") + SF-ADJUSTMENT "Rippling Strentgh" '(3 0 256 1 10 3 0) + SF-ADJUSTMENT "Number of Frames" '(15 0 256 1 10 0 1)) diff --git a/plug-ins/script-fu/scripts/select-to-image.scm b/plug-ins/script-fu/scripts/select-to-image.scm index 2b03f3dcbe..95d6b0f929 100644 --- a/plug-ins/script-fu/scripts/select-to-image.scm +++ b/plug-ins/script-fu/scripts/select-to-image.scm @@ -60,8 +60,11 @@ (gimp-palette-set-background old-bg) (gimp-image-enable-undo image) (gimp-image-set-active-layer image drawable) - (gimp-display-new brush-image) - (gimp-displays-flush))) +; (gimp-display-new brush-image) +; (gimp-displays-flush) + (script-fu-export-file 1 img drawable RGB 255 FALSE 2 "-export" "png") + +)) (script-fu-register "script-fu-selection-to-image" ; I prefer this to go under the main selection menu, but this seems more diff --git a/plug-ins/script-fu/scripts/select_to_image.scm b/plug-ins/script-fu/scripts/select_to_image.scm index 2b03f3dcbe..95d6b0f929 100644 --- a/plug-ins/script-fu/scripts/select_to_image.scm +++ b/plug-ins/script-fu/scripts/select_to_image.scm @@ -60,8 +60,11 @@ (gimp-palette-set-background old-bg) (gimp-image-enable-undo image) (gimp-image-set-active-layer image drawable) - (gimp-display-new brush-image) - (gimp-displays-flush))) +; (gimp-display-new brush-image) +; (gimp-displays-flush) + (script-fu-export-file 1 img drawable RGB 255 FALSE 2 "-export" "png") + +)) (script-fu-register "script-fu-selection-to-image" ; I prefer this to go under the main selection menu, but this seems more diff --git a/plug-ins/script-fu/scripts/swirltile.scm b/plug-ins/script-fu/scripts/swirltile.scm index e36f24e6df..5df26e3118 100644 --- a/plug-ins/script-fu/scripts/swirltile.scm +++ b/plug-ins/script-fu/scripts/swirltile.scm @@ -34,7 +34,8 @@ (plug-in-bump-map 1 img layer-one layer-one azimuth elevation depth 0 0 0 0 FALSE FALSE 0) - (gimp-display-new img) +; (gimp-display-new img) + (gimp-file-save 1 img layer-one "/home/aklikins/test.jpg" "/home/aklikins/test.jpg") (gimp-image-enable-undo img))) (script-fu-register "script-fu-swirl-tile" diff --git a/plug-ins/script-fu/scripts/xach-effect.scm b/plug-ins/script-fu/scripts/xach-effect.scm index 002bf73e59..9109384224 100644 --- a/plug-ins/script-fu/scripts/xach-effect.scm +++ b/plug-ins/script-fu/scripts/xach-effect.scm @@ -31,6 +31,9 @@ hl-offset-y hl-color hl-opacity-comp + red + green + blue ds-color ds-opacity ds-blur @@ -40,6 +43,7 @@ (let* ((ds-blur (max ds-blur 0)) (ds-opacity (min ds-opacity 100)) (ds-opacity (max ds-opacity 0)) + (new-color (list (red green blue))) (type (car (gimp-drawable-type-with-alpha drawable))) (image-width (car (gimp-image-width image))) (hl-opacity (list hl-opacity-comp hl-opacity-comp hl-opacity-comp)) @@ -126,6 +130,9 @@ SF-COLOR "Highlight Color" '(255 255 255) SF-ADJUSTMENT "Opacity" '(66 0 255 1 10 0 0) ; SF-COLOR "Opacity" '(66 66 66) + SF-STRING "RED" "123" + SF-STRING "GREEN" "0" + SF-STRING "BLUE" "190" SF-COLOR "Drop Shadow Color" '(0 0 0) SF-ADJUSTMENT "Drop Shadow Opacity" '(100 0 100 1 10 0 0) SF-ADJUSTMENT "Drop Shadow Blur Radius" '(12 0 255 1 10 0 1) diff --git a/po/POTFILES.in b/po/POTFILES.in index d026c08113..d0768db5df 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -3,8 +3,36 @@ app/about_dialog.c +app/app_procs.c +app/batch.c +app/blend.c +app/boundary.c +app/docindex.c +app/docindexif.c +app/drawable_cmds.c +app/edit_cmds.c +app/edit_selection.c +app/ellipse_select.c +app/equalize.c +app/eraser.c +app/errorconsole.c +app/file_new_dialog.c +app/fileops.c +app/flip_tool.c +app/floating_sel.c +app/floating_sel_cmds.c +app/free_select.c +app/fuzzy_select.c +app/gdisplay.c +app/gdisplay_ops.c +app/install.c app/main.c app/menus.c +app/plug_in.c +app/tools.c +app/transform_tool.c +app/undo_cmds.c +app/xcf.c # Originally marked by the authors (GNU people) app/regex.c diff --git a/po/de.po b/po/de.po index fc1f32cd7f..82c647c949 100644 --- a/po/de.po +++ b/po/de.po @@ -1,34 +1,3202 @@ msgid "" msgstr "" -"Date: 1998-10-03 18:39:26+0200\n" +"Date: 1998-10-08 21:24:18+0200\n" "From: Daniel Egger \n" "Content-Type: text/plain; charset=\n" "Xgettext-Options: --default-domain=gimp --directory=.. --add-comments --keyword=_ --keyword=N_ --files-from=./POTFILES.in\n" -"Files: app/about_dialog.c app/main.c app/menus.c app/regex.c\n" -#: app/about_dialog.c:151 +#: app/about_dialog.c:153 msgid "About the GIMP" -msgstr "Über GIMP" +msgstr "\334ber GIMP" -#: app/about_dialog.c:194 +#: app/about_dialog.c:196 msgid "-Adobe-Helvetica-Medium-R-Normal--*-140-*-*-*-*-*-*" msgstr "" -#: app/about_dialog.c:197 +#: app/about_dialog.c:199 msgid "Version " msgstr "" -#: app/about_dialog.c:198 +#: app/about_dialog.c:200 msgid " brought to you by" msgstr " wurde euch gebracht von" -#: app/about_dialog.c:204 -msgid "Spencer Kimball and Peter Mattis" +#: app/about_dialog.c:239 +msgid "Please visit http://www.gimp.org/ for more info" +msgstr "Siehe http://www.gimp.org/ f\374r mehr Informationen" + +#: app/airbrush.c:97 +msgid "Airbrush Options" +msgstr "Airbrush Einstellungen" + +#: app/airbrush.c:106 +msgid "Rate" +msgstr "Gschwindigkeit" + +#: app/airbrush.c:124 app/convolve.c:153 +msgid "Pressure" +msgstr "Druck" + +#: app/airbrush.c:160 +msgid "killing stray timer, please report to lewing@gimp.org" msgstr "" -#: app/about_dialog.c:237 -msgid "Please visit http://www.gimp.org/ for more info" -msgstr "Siehe http://www.gimp.org/ für mehr Informationen" +#: app/airbrush.c:300 app/brightness_contrast.c:648 app/bucket_fill.c:703 app/by_color_select.c:976 app/channel_ops.c:568 app/clone.c:546 app/color_balance.c:882 app/color_picker.c:480 app/convert.c:2920 app/convert.c:2978 app/convert.c:3036 app/convert.c:3112 app/convolve.c:429 app/crop.c:946 app/curves.c:1303 app/curves.c:1461 app/desaturate.c:121 app/edit_cmds.c:75 app/edit_cmds.c:145 app/edit_cmds.c:227 app/edit_cmds.c:309 app/edit_cmds.c:378 app/edit_cmds.c:448 app/ellipse_select.c:156 app/equalize.c:239 app/eraser.c:207 app/eraser.c:235 app/flip_tool.c:337 app/free_select.c:494 app/fuzzy_select.c:586 app/rect_select.c:727 app/rotate_tool.c:381 app/scale_tool.c:472 app/shear_tool.c:368 app/text_tool.c:919 app/text_tool.c:1018 app/text_tool.c:1125 app/threshold.c:616 +msgid "the image" +msgstr "Das Bild" + +#: app/airbrush.c:304 app/brightness_contrast.c:652 app/by_color_select.c:980 app/clone.c:550 app/color_balance.c:886 app/color_picker.c:484 app/convolve.c:433 app/curves.c:1307 app/curves.c:1465 app/desaturate.c:125 app/drawable_cmds.c:62 app/drawable_cmds.c:133 app/drawable_cmds.c:195 app/drawable_cmds.c:275 app/drawable_cmds.c:355 app/drawable_cmds.c:421 app/drawable_cmds.c:485 app/drawable_cmds.c:549 app/drawable_cmds.c:613 app/drawable_cmds.c:677 app/drawable_cmds.c:741 app/drawable_cmds.c:804 app/drawable_cmds.c:868 app/drawable_cmds.c:931 app/drawable_cmds.c:999 app/drawable_cmds.c:1067 app/drawable_cmds.c:1131 app/drawable_cmds.c:1195 app/drawable_cmds.c:1291 app/drawable_cmds.c:1403 app/equalize.c:243 app/eraser.c:211 app/eraser.c:239 app/fuzzy_select.c:590 app/threshold.c:620 +msgid "the drawable" +msgstr "" + +#: app/airbrush.c:308 +msgid "The pressure of the airbrush strokes: 0 <= pressure <= 100" +msgstr "" + +#: app/airbrush.c:312 app/clone.c:570 app/convolve.c:445 app/eraser.c:215 app/eraser.c:243 +msgid "number of stroke control points (count each coordinate as 2 points)" +msgstr "" + +#: app/airbrush.c:316 app/clone.c:574 app/convolve.c:449 app/eraser.c:219 app/eraser.c:247 +msgid "array of stroke coordinates: {s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y}" +msgstr "" + +#: app/airbrush.c:324 +msgid "Paint in the current brush with varying pressure. Paint application is time-dependent" +msgstr "" + +#: app/airbrush.c:325 +msgid "This tool simulates the use of an airbrush. Paint pressure represents the relative intensity of the paint application. High pressure results in a thicker layer of paint while low pressure results in a thinner layer." +msgstr "" + +#: app/app_procs.c:100 +msgid "Flag specifying whether to kill the gimp process or exit normally" +msgstr "" + +#: app/app_procs.c:106 +msgid "Causes the gimp to exit gracefully" +msgstr "Beendet GIMP sanft" + +#: app/app_procs.c:107 +msgid "The internal procedure which can either be used to make the gimp quit normally, or to have the gimp clean up its resources and exit immediately. The normaly shutdown process allows for querying the user to save any dirty images." +msgstr "" + +#: app/app_procs.c:460 +msgid "parsing %s\n" +msgstr "bearbeite %s\n" + +#: app/app_procs.c:504 +msgid "Looking for data files" +msgstr "Suche nach Arbeitsdaten" + +#: app/app_procs.c:504 +msgid "Brushes" +msgstr "Pinsel" + +#. initialize the list of gimp brushes +#: app/app_procs.c:506 +msgid "Patterns" +msgstr "Muster" + +#. initialize the list of gimp patterns +#: app/app_procs.c:508 +msgid "Palettes" +msgstr "Farben" + +#: app/app_procs.c:510 +msgid "Gradients" +msgstr "Farbverl\344ufe" + +#: app/app_procs.c:642 app/app_procs.c:664 +msgid "/File/Quit" +msgstr "/Datei/Beenden" + +#: app/app_procs.c:643 app/app_procs.c:665 +msgid "/File/Quit" +msgstr "/Datei/Beenden" + +#: app/app_procs.c:669 +msgid "Really Quit?" +msgstr "Wirklich Beenden?" + +#: app/app_procs.c:677 app/fileops.c:1084 +msgid "Yes" +msgstr "Ja" + +#: app/app_procs.c:686 app/fileops.c:1085 +msgid "No" +msgstr "Nein" + +#: app/app_procs.c:694 +msgid "Some files unsaved. Quit the GIMP?" +msgstr "Einige Dateien wurden nicht gesichert. Wirklich beenden?" + +#: app/batch.c:35 +msgid "script-fu not available: batch mode disabled\n" +msgstr "script-fu nicht verf\374gbar: Stapelmodus ausgeschaltet" + +#: app/batch.c:46 +msgid "reading batch commands from stdin\n" +msgstr "lese Stapelkommandos aus Standardeingabe" + +#: app/batch.c:83 +msgid "batch command: experienced an execution error.\n" +msgstr "" + +#: app/batch.c:86 +msgid "batch command: experienced a calling error.\n" +msgstr "" + +#: app/batch.c:89 +msgid "batch command: executed successfully.\n" +msgstr "" + +#: app/bezier_select.c:440 +msgid "tried to edit on open bezier curve in edit selection" +msgstr "" + +#: app/bezier_select.c:780 +msgid "Encountered orphaned bezier control point" +msgstr "" + +#: app/bezier_select.c:1137 app/bezier_select.c:2247 +msgid "bad bezier segment" +msgstr "" + +#: app/bezier_select.c:1154 app/bezier_select.c:2264 +msgid "unknown coordinate space: %d" +msgstr "Unbekannter Koordinatenraum: %d" + +#: app/bezier_select.c:1295 +msgid "tried to convert an open bezier curve" +msgstr "" + +#: app/bezier_select.c:1847 +msgid "reading %s\n" +msgstr "lese %s\n" + +#: app/bezier_select.c:1949 +msgid "Load/Store Bezier Curves" +msgstr "" + +#: app/bezier_select.c:1969 +msgid "Load Bezier Curves" +msgstr "" + +#: app/bezier_select.c:1986 +msgid "Store Bezier Curves" +msgstr "Speichere Bezierkurven" + +#: app/bezier_select.c:2066 +msgid "Named Bezier Buffer" +msgstr "" + +#: app/bezier_select.c:2067 +msgid "Enter a name for this buffer" +msgstr "" + +#: app/bezier_select.c:2104 +msgid "Edit Curve" +msgstr "Bearbeite Kurve" + +#: app/bezier_select.c:2105 +msgid "Add Point" +msgstr "Punkt hinzufügen" + +#: app/bezier_select.c:2106 +msgid "Remove Point" +msgstr "Punkt entfernen" + +#: app/bezier_select.c:2119 +msgid "Mode :" +msgstr "Modus:" + +#: app/bezier_select.c:2148 +msgid "New" +msgstr "Neu" + +#: app/bezier_select.c:2149 app/by_color_select.c:553 +msgid "Add" +msgstr "Hinzufügen" + +#: app/bezier_select.c:2150 app/by_color_select.c:552 +msgid "Replace" +msgstr "Ersetzen" + +#: app/bezier_select.c:2151 +msgid "Paste" +msgstr "Einf\374gen" + +#: app/bezier_select.c:2152 +msgid "Delete" +msgstr "Löschen" + +#: app/bezier_select.c:2153 +msgid "Load" +msgstr "Laden" + +#: app/bezier_select.c:2154 app/devices.c:119 app/preferences_dialog.c:796 +msgid "Save" +msgstr "Speichern" + +#: app/bezier_select.c:2173 +msgid "Paste Bezier Named Buffer" +msgstr "" + +#: app/bezier_select.c:2181 +msgid "Select a buffer to operate:" +msgstr "" + +#: app/blend.c:213 +msgid "FG to BG RGB" +msgstr "VG nach HG RGB" + +#: app/blend.c:214 +msgid "FG to BG HSV" +msgstr "VG nach HG HSV" + +#: app/blend.c:215 +msgid "FG to Transparent" +msgstr "VG nach transparent" + +#: app/blend.c:216 +msgid "Custom from editor" +msgstr "Selbsterstellt" + +#: app/blend.c:223 +msgid "Linear" +msgstr "Linear" + +#: app/blend.c:224 +msgid "Bi-Linear" +msgstr "Bilinear" + +#: app/blend.c:225 +msgid "Radial" +msgstr "Kreisf\366rmig" + +#: app/blend.c:226 +msgid "Square" +msgstr "Quadratisch" + +#: app/blend.c:227 +msgid "Conical (symmetric)" +msgstr "Konisch (symmetrisch)" + +#: app/blend.c:228 +msgid "Conical (asymmetric)" +msgstr "Konisch (unsymmetrisch)" + +#: app/blend.c:229 +msgid "Shapeburst (angular)" +msgstr "" + +#: app/blend.c:230 +msgid "Shapeburst (spherical)" +msgstr "" + +#: app/blend.c:231 +msgid "Shapeburst (dimpled)" +msgstr "" + +#: app/blend.c:242 app/preferences_dialog.c:703 +msgid "None" +msgstr "Kein" + +#: app/blend.c:243 +msgid "Sawtooth wave" +msgstr "" + +#: app/blend.c:244 +msgid "Triangular wave" +msgstr "" + +#. the main label +#: app/blend.c:360 +msgid "Blend Options" +msgstr "Verlauf Einstellungen" + +#. the opacity scale +#: app/blend.c:370 app/brush_select.c:284 +msgid "Opacity:" +msgstr "Durchsichtigkeit:" + +#. the offset scale +#: app/blend.c:388 +msgid "Offset:" +msgstr "Überstand:" + +#. the paint mode menu +#: app/blend.c:406 app/brush_select.c:270 app/bucket_fill.c:208 +msgid "Mode:" +msgstr "Modus:" + +#: app/blend.c:419 +msgid "Blend:" +msgstr "Übergang:" + +#. the gradient type menu +#: app/blend.c:432 +msgid "Gradient:" +msgstr "Verlauf:" + +#: app/blend.c:446 +msgid "Repeat:" +msgstr "Wiederholung:" + +#: app/blend.c:465 +msgid "Adaptive supersampling" +msgstr "Anpassende Hochrechnung" + +#. max depth scale +#: app/blend.c:487 +msgid "Max depth:" +msgstr "Maximale Tiefe:" + +#: app/blend.c:506 +msgid "Threshold:" +msgstr "Schwellwert:" + +#: app/blend.c:560 +msgid "Blend: Invalid for indexed images." +msgstr "" + +#: app/blend.c:585 +msgid "Blend: 0, 0" +msgstr "Übergang: 0, 0" + +#: app/blend.c:641 +msgid "Blend operation failed." +msgstr "" + +#: app/blend.c:667 +msgid "Blend: %d, %d" +msgstr "Übergang: %d, %d" + +#: app/blend.c:1253 +msgid "gradient_render_pixel(): unknown gradient type %d" +msgstr "" + +#: app/blend.c:1385 +msgid "gradient_fill_region(): unknown blend mode %d" +msgstr "" + +#: app/blend.c:1424 +msgid "gradient_fill_region(): unknown gradient type %d" +msgstr "" + +#: app/blend.c:1446 +msgid "gradient_fill_region(): unknown repeat mode %d" +msgstr "" + +#: app/blend.c:1716 +msgid "The image" +msgstr "Das Bild" + +#: app/blend.c:1720 +msgid "The affected drawable" +msgstr "Die betroffene Zeichnebene" + +#: app/blend.c:1724 +msgid "The type of blend: { FG-BG-RGB (0), FG-BG-HSV (1), FG-TRANS (2), CUSTOM (3) }" +msgstr "" + +#: app/blend.c:1728 app/bucket_fill.c:715 +msgid "the paint application mode: { NORMAL (0), DISSOLVE (1), BEHIND (2), MULTIPLY/BURN (3), SCREEN (4), OVERLAY (5) DIFFERENCE (6), ADDITION (7), SUBTRACT (8), DARKEN-ONLY (9), LIGHTEN-ONLY (10), HUE (11), SATURATION (12), COLOR (13), VALUE (14), DIVIDE/DODGE (15) }" +msgstr "" + +#: app/blend.c:1732 +msgid "The type of gradient: { LINEAR (0), BILINEAR (1), RADIAL (2), SQUARE (3), CONICAL-SYMMETRIC (4), CONICAL-ASYMMETRIC (5), SHAPEBURST-ANGULAR (6), SHAPEBURST-SPHERICAL (7), SHAPEBURST-DIMPLED (8) }" +msgstr "" + +#: app/blend.c:1736 +msgid "The opacity of the final blend (0 <= opacity <= 100)" +msgstr "" + +#: app/blend.c:1740 +msgid "Offset relates to the starting and ending coordinates specified for the blend. This parameter is mode depndent (0 <= offset)" +msgstr "" + +#: app/blend.c:1744 +msgid "Repeat mode: { REPEAT-NONE (0), REPEAT-SAWTOOTH (1), REPEAT-TRIANGULAR (2) }" +msgstr "" + +#: app/blend.c:1748 +msgid "Do adaptive supersampling (true / false)" +msgstr "" + +#: app/blend.c:1752 +msgid "Maximum recursion levels for supersampling" +msgstr "" + +#: app/blend.c:1756 +msgid "Supersampling threshold" +msgstr "Hochrechnungsschwellwert" + +#: app/blend.c:1760 +msgid "The x coordinate of this blend's starting point" +msgstr "" + +#: app/blend.c:1764 +msgid "The y coordinate of this blend's starting point" +msgstr "" + +#: app/blend.c:1768 +msgid "The x coordinate of this blend's ending point" +msgstr "" + +#: app/blend.c:1772 +msgid "The y coordinate of this blend's ending point" +msgstr "" + +#: app/blend.c:1779 +msgid "Blend between the starting and ending coordinates with the specified blend mode and gradient type." +msgstr "" + +#: app/blend.c:1780 +msgid "This tool requires information on the paint application mode, the blend mode, and the gradient type. It creates the specified variety of blend using the starting and ending coordinates as defined for each gradient type." +msgstr "" + +#: app/boundary.c:177 +msgid "Unable to reallocate segments array for mask boundary." +msgstr "" + +#: app/boundary.c:219 +msgid "Unable to reallocate empty segments array for mask boundary." +msgstr "" + +#: app/boundary.c:474 +msgid "sort_boundary(): Unconnected boundary group!" +msgstr "" + +#: app/brightness_contrast.c:245 +msgid "Brightness-Contrast Options" +msgstr "" + +#: app/brightness_contrast.c:287 +msgid "Brightness-Contrast does not operate on indexed drawables." +msgstr "" + +#. Action area +#: app/brightness_contrast.c:318 app/channel_ops.c:113 app/channels_dialog.c:1777 app/channels_dialog.c:1950 app/color_balance.c:354 app/color_select.c:138 app/color_select.c:354 app/commands.c:741 app/commands.c:788 app/convert.c:281 app/curves.c:320 app/file_new_dialog.c:487 app/preferences_dialog.c:786 app/threshold.c:377 +msgid "OK" +msgstr "OK" + +#: app/brightness_contrast.c:319 app/channel_ops.c:122 app/channels_dialog.c:1778 app/channels_dialog.c:1951 app/color_balance.c:355 app/color_select.c:139 app/color_select.c:355 app/commands.c:742 app/commands.c:789 app/convert.c:282 app/curves.c:321 app/file_new_dialog.c:497 app/gdisplay_ops.c:326 app/plug_in.c:3155 app/preferences_dialog.c:806 app/threshold.c:378 +msgid "Cancel" +msgstr "Abbrechen" + +#: app/brightness_contrast.c:340 app/tools.c:502 +msgid "Brightness-Contrast" +msgstr "" + +#. Create the brightness scale widget +#: app/brightness_contrast.c:356 +msgid "Brightness" +msgstr "Helligkeit" + +#: app/brightness_contrast.c:390 +msgid "Contrast" +msgstr "Kontrast" + +#. The preview toggle +#: app/brightness_contrast.c:428 app/color_balance.c:534 app/curves.c:559 app/threshold.c:459 +msgid "Preview" +msgstr "Vorschau" + +#: app/brightness_contrast.c:484 +msgid "brightness_contrast_preview(): No image map" +msgstr "" + +#: app/brightness_contrast.c:656 +msgid "brightness adjustment: (-127 <= brightness <= 127)" +msgstr "" + +#: app/brightness_contrast.c:660 +msgid "constrast adjustment: (-127 <= contrast <= 127)" +msgstr "" + +#: app/brightness_contrast.c:667 +msgid "Modify brightness/contrast in the specified drawable" +msgstr "" + +#: app/brightness_contrast.c:668 +msgid "This procedures allows the brightness and contrast of the specified drawable to be modified. Both 'brightness' and 'contrast' parameters are defined between -127 and 127." +msgstr "" + +#. The close push button +#: app/brush_edit.c:38 app/brush_select.c:117 app/by_color_select.c:672 app/color_picker.c:128 app/color_select.c:349 app/crop.c:720 app/devices.c:118 app/docindexif.c:96 app/errorconsole.c:216 app/gdisplay_ops.c:325 app/tips_dialog.c:103 app/tools.c:699 +msgid "Close" +msgstr "Schlie\337en" + +#: app/brush_edit.c:200 +msgid "Brush Editor" +msgstr "Pinseleditor" + +#: app/brush_edit.c:240 +msgid "Radius:" +msgstr "Radius:" + +#. brush hardness scale +#: app/brush_edit.c:257 +msgid "Hardness:" +msgstr "Härte:" + +#: app/brush_edit.c:273 +msgid "Aspect Ratio:" +msgstr "Darstellungsverhältnis:" + +#: app/brush_edit.c:289 +msgid "Angle:" +msgstr "Winkel:" + +#: app/brush_select.c:95 +msgid "Normal" +msgstr "Normal" + +#: app/brush_select.c:96 +msgid "Dissolve" +msgstr "" + +#: app/brush_select.c:97 +msgid "Behind" +msgstr "" + +#: app/brush_select.c:98 +msgid "Multiply (Burn)" +msgstr "" + +#: app/brush_select.c:99 +msgid "Divide (Dodge)" +msgstr "" + +#: app/brush_select.c:100 +msgid "Screen" +msgstr "" + +#: app/brush_select.c:101 +msgid "Overlay" +msgstr "" + +#: app/brush_select.c:102 +msgid "Difference" +msgstr "Unterschiede" + +#: app/brush_select.c:103 +msgid "Addition" +msgstr "" + +#: app/brush_select.c:104 app/by_color_select.c:554 +msgid "Subtract" +msgstr "" + +#: app/brush_select.c:105 +msgid "Darken Only" +msgstr "Nur Schwarz" + +#: app/brush_select.c:106 +msgid "Lighten Only" +msgstr "Nur Wei\337" + +#: app/brush_select.c:107 +msgid "Hue" +msgstr "" + +#: app/brush_select.c:108 +msgid "Saturation" +msgstr "S\344ttigung" + +#: app/brush_select.c:109 +msgid "Color" +msgstr "Farbe" + +#: app/brush_select.c:110 app/curves.c:326 +msgid "Value" +msgstr "Wert" + +#: app/brush_select.c:118 +msgid "Refresh" +msgstr "Auffrischen" + +#: app/brush_select.c:190 +msgid "Brush Selection" +msgstr "Pinselauswahl" + +#: app/brush_select.c:258 +msgid "Active" +msgstr "Aktiv" + +#: app/brush_select.c:301 +msgid "Spacing:" +msgstr "Zwischenraum:" + +#: app/brush_select.c:318 +msgid "Edit Brush" +msgstr "Ver\344ndere Pinsel" + +#: app/brush_select.c:327 +msgid "New Brush" +msgstr "Neuer Pinsel" + +#: app/brush_select.c:498 +msgid "failed to run brush callback function" +msgstr "" + +#: app/brush_select.c:1020 +msgid "" +"We are all fresh out of brush editors today,\n" +"please write your own or try back tomorrow\n" +msgstr "" + +#: app/brush_select.c:1274 +msgid "the callback PDB proc to call when brush selection is made" +msgstr "" + +#: app/brush_select.c:1278 +msgid "title to give the popup window" +msgstr "" + +#: app/brush_select.c:1282 +msgid "The name of the brush to set as the first selected" +msgstr "" + +#: app/brush_select.c:1286 +msgid "The initial opacity of the brush" +msgstr "" + +#: app/brush_select.c:1290 +msgid "The initial spacing of the brush (if < 0 then use brush default spacing)" +msgstr "" + +#: app/brush_select.c:1294 +msgid "The initial paint mode: { NORMAL (0), DISSOLVE (1), BEHIND (2), MULTIPLY/BURN (3), SCREEN (4), OVERLAY (5) DIFFERENCE (6), ADDITION (7), SUBTRACT (8), DARKEN-ONLY (9), LIGHTEN-ONLY (10), HUE (11), SATURATION (12), COLOR (13), VALUE (14), DIVIDE/DODGE (15) }" +msgstr "" + +#: app/brush_select.c:1301 +msgid "Invokes the Gimp brush selection" +msgstr "" + +#: app/brush_select.c:1302 +msgid "This procedure popups the brush selection dialog" +msgstr "" + +#: app/bucket_fill.c:146 +msgid "Color Fill" +msgstr "Mit Farbe f\374llen" + +#: app/bucket_fill.c:147 +msgid "Pattern Fill" +msgstr "Mit Muster f\374llen" + +#: app/bucket_fill.c:162 +msgid "Bucket Fill Options" +msgstr "F\374lleimereinstellungen" + +#: app/bucket_fill.c:170 app/channels_dialog.c:2010 +msgid "Fill Opacity" +msgstr "F\374lldurchsichtigkeit" + +#: app/bucket_fill.c:189 +msgid "Fill Threshold" +msgstr "Füllschwellwert" + +#. frame for fill type +#: app/bucket_fill.c:219 app/file_new_dialog.c:708 +msgid "Fill Type" +msgstr "Füllart" + +#. the sample merged toggle +#: app/bucket_fill.c:241 app/color_picker.c:111 app/rect_select.c:151 +msgid "Sample Merged" +msgstr "" + +#: app/bucket_fill.c:333 +msgid "Bucket Fill operation failed." +msgstr "" + +#: app/bucket_fill.c:430 +msgid "No available patterns for this operation." +msgstr "" + +#: app/bucket_fill.c:707 app/flip_tool.c:341 app/rotate_tool.c:385 app/scale_tool.c:476 app/shear_tool.c:372 +msgid "the affected drawable" +msgstr "" + +#: app/bucket_fill.c:711 +msgid "the type of fill: { FG-BUCKET-FILL (0), BG-BUCKET-FILL (1), PATTERN-BUCKET-FILL (2) }" +msgstr "" + +#: app/bucket_fill.c:719 +msgid "the opacity of the final bucket fill (0 <= opacity <= 100)" +msgstr "" + +#: app/bucket_fill.c:723 +msgid "the threshold determines how extensive the seed fill will be. It's value is specified in terms of intensity levels (0 <= threshold <= 255). This parameter is only valid when there is no selection in the specified image." +msgstr "" + +#: app/bucket_fill.c:727 app/by_color_select.c:1008 app/color_picker.c:496 app/fuzzy_select.c:622 +msgid "use the composite image, not the drawable" +msgstr "" + +#: app/bucket_fill.c:731 +msgid "the x coordinate of this bucket fill's application. This parameter is only valid when there is no selection in the specified image." +msgstr "" + +#: app/bucket_fill.c:735 +msgid "the y coordinate of this bucket fill's application. This parameter is only valid when there is no selection in the specified image." +msgstr "" + +#: app/bucket_fill.c:742 +msgid "Fill the area specified either by the current selection if there is one, or by a seed fill starting at the specified coordinates." +msgstr "" + +#: app/bucket_fill.c:743 +msgid "This tool requires information on the paint application mode, and the fill mode, which can either be in the foreground color, or in the currently active pattern. If there is no selection, a seed fill is executed at the specified coordinates and extends outward in keeping with the threshold parameter. If there is a selection in the target image, the threshold, sample merged, x, and y arguments are unused. If the sample_merged parameter is non-zero, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of merged sampling, the x,y coordinates are relative to the image's origin; otherwise, they are relative to the drawable's origin." +msgstr "" + +#: app/by_color_select.c:555 +msgid "Intersect" +msgstr "Schnitt" + +#: app/by_color_select.c:573 +msgid "By Color Selection" +msgstr "Auswahl nach Farbe" + +#: app/by_color_select.c:616 +msgid "Inactive" +msgstr "Nicht aktiv" + +#. Create the selection mode radio box +#: app/by_color_select.c:623 +msgid "Selection Mode" +msgstr "Auswahlmodus" + +#: app/by_color_select.c:646 +msgid "Fuzziness Threshold" +msgstr "Ungenauigkeitsschwellwert" + +#. The reset push button +#: app/by_color_select.c:662 app/curves.c:319 app/transform_core.c:111 +msgid "Reset" +msgstr "Zur\374cksetzen" + +#: app/by_color_select.c:984 +msgid "the color to select" +msgstr "" + +#: app/by_color_select.c:988 app/fuzzy_select.c:602 +msgid "threshold in intensity levels: 0 <= threshold <= 255" +msgstr "" + +#: app/by_color_select.c:992 app/ellipse_select.c:176 app/free_select.c:506 app/fuzzy_select.c:606 app/rect_select.c:747 +msgid "the selection operation: { ADD (0), SUB (1), REPLACE (2), INTERSECT (3) }" +msgstr "" + +#: app/by_color_select.c:996 app/ellipse_select.c:180 app/fuzzy_select.c:610 +msgid "antialiasing On/Off" +msgstr "" + +#: app/by_color_select.c:1000 app/ellipse_select.c:184 app/free_select.c:514 app/fuzzy_select.c:614 app/rect_select.c:751 +msgid "feather option for selections" +msgstr "Rundungseinstellungen f\374r Auswahlen" + +#: app/by_color_select.c:1004 app/ellipse_select.c:188 app/free_select.c:518 app/fuzzy_select.c:618 app/rect_select.c:755 +msgid "radius for feather operation" +msgstr "Radius f\374r Rundungoperation " + +#: app/by_color_select.c:1015 +msgid "Create a selection by selecting all pixels (in the specified drawable) with the same (or similar) color to that specified." +msgstr "" + +#: app/by_color_select.c:1016 +msgid "This tool creates a selection over the specified image. A by-color selection is determined by the supplied color under the constraints of the specified threshold. Essentially, all pixels (in the drawable) that have color sufficiently close to the specified color (as determined by the threshold value) are included in the selection. The antialiasing parameter allows the final selection mask to contain intermediate values based on close misses to the threshold bar. Feathering can be enabled optionally and is controlled with the \"feather_radius\" paramter. If the sample_merged parameter is non-zero, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of a merged sampling, the supplied drawable is ignored." +msgstr "" + +#: app/channel.c:187 +msgid "copy" +msgstr "kopieren" + +#: app/channel.c:193 +msgid "%s copy" +msgstr "%s kopieren" + +#. Create the new channel +#: app/channel.c:492 +msgid "Selection Mask" +msgstr "Auswahlmaske" + +#: app/channel_cmds.c:104 +msgid "the image to which to add the channel" +msgstr "" + +#: app/channel_cmds.c:108 +msgid "the channel width: (width > 0)" +msgstr "" + +#: app/channel_cmds.c:112 +msgid "the channel height: (height > 0)" +msgstr "" + +#: app/channel_cmds.c:116 app/channel_cmds.c:325 +msgid "the channel name" +msgstr "" + +#: app/channel_cmds.c:120 +msgid "the channel opacity: (0 <= opacity <= 100)" +msgstr "" + +#: app/channel_cmds.c:124 +msgid "the channel compositing color" +msgstr "" + +#: app/channel_cmds.c:132 +msgid "the newly created channel" +msgstr "" + +#: app/channel_cmds.c:139 +msgid "Create a new channel" +msgstr "Erstelle einen neuen Kanal" + +#: app/channel_cmds.c:140 +msgid "This procedure creates a new channel with the specified width and height. Name, opacity, and color are also supplied parameters. The new channel still needs to be added to the image, as this is not automatic. Add the new channel with the 'gimp_image_add_channel' command. Other attributes such as channel show masked, should be set with explicit procedure calls. The channel's contents are undefined initially." +msgstr "" + +#: app/channel_cmds.c:195 +msgid "the channel to copy" +msgstr "" + +#: app/channel_cmds.c:203 +msgid "the newly copied channel" +msgstr "" + +#: app/channel_cmds.c:210 +msgid "Copy a channel" +msgstr "Kopiere einen Kanal" + +#: app/channel_cmds.c:211 +msgid "This procedure copies the specified channel and returns the copy." +msgstr "" + +#: app/channel_cmds.c:257 +msgid "the channel to delete" +msgstr "" + +#: app/channel_cmds.c:264 +msgid "Delete a channel" +msgstr "L\366sche einen Kanal" + +#: app/channel_cmds.c:265 +msgid "This procedure deletes the specified channel. This does not need to be done if a gimage containing this channel was already deleted." +msgstr "" + +#: app/channel_cmds.c:317 app/channel_cmds.c:382 app/channel_cmds.c:448 app/channel_cmds.c:513 app/channel_cmds.c:579 app/channel_cmds.c:644 app/channel_cmds.c:710 app/channel_cmds.c:775 app/channel_cmds.c:846 app/channel_cmds.c:913 +msgid "the channel" +msgstr "Der Kanal" + +#: app/channel_cmds.c:332 +msgid "Get the name of the specified channel." +msgstr "" + +#: app/channel_cmds.c:333 +msgid "This procedure returns the specified channel's name." +msgstr "" + +#: app/channel_cmds.c:386 +msgid "the new channel name" +msgstr "" + +#: app/channel_cmds.c:393 +msgid "Set the name of the specified channel." +msgstr "" + +#: app/channel_cmds.c:394 +msgid "This procedure sets the specified channel's name to the supplied name." +msgstr "" + +#: app/channel_cmds.c:456 +msgid "the channel visibility" +msgstr "" + +#: app/channel_cmds.c:463 +msgid "Get the visibility of the specified channel." +msgstr "" + +#: app/channel_cmds.c:464 +msgid "This procedure returns the specified channel's visibility." +msgstr "" + +#: app/channel_cmds.c:517 +msgid "the new channel visibility" +msgstr "" + +#: app/channel_cmds.c:524 +msgid "Set the visibility of the specified channel." +msgstr "" + +#: app/channel_cmds.c:525 +msgid "This procedure sets the specified channel's visibility." +msgstr "" + +#: app/channel_cmds.c:587 +msgid "composite method for channel" +msgstr "" + +#: app/channel_cmds.c:594 +msgid "Get the composite type for the channel" +msgstr "" + +#: app/channel_cmds.c:595 +msgid "This procedure returns the specified channel's composite type. If it is non-zero, then the channel is composited with the image so that masked regions are shown. Otherwise, selected regions are shown." +msgstr "" + +#: app/channel_cmds.c:648 +msgid "the new channel show_masked value" +msgstr "" + +#: app/channel_cmds.c:655 +msgid "Set the composite type for the specified channel." +msgstr "" + +#: app/channel_cmds.c:656 +msgid "This procedure sets the specified channel's composite type. If it is non-zero, then the channel is composited with the image so that masked regions are shown. Otherwise, selected regions are shown." +msgstr "" + +#: app/channel_cmds.c:718 +msgid "the channel opacity" +msgstr "" + +#: app/channel_cmds.c:725 +msgid "Get the opacity of the specified channel." +msgstr "" + +#: app/channel_cmds.c:726 +msgid "This procedure returns the specified channel's opacity." +msgstr "" + +#: app/channel_cmds.c:779 +msgid "the new channel opacity: (0 <= opacity <= 100)" +msgstr "" + +#: app/channel_cmds.c:786 +msgid "Set the opacity of the specified channel." +msgstr "" + +#: app/channel_cmds.c:787 +msgid "This procedure sets the specified channel's opacity." +msgstr "" + +#: app/channel_cmds.c:854 +msgid "the channel's composite color" +msgstr "" + +#: app/channel_cmds.c:861 +msgid "Get the compositing color of the specified channel." +msgstr "" + +#: app/channel_cmds.c:862 +msgid "This procedure returns the specified channel's compositing color." +msgstr "" + +#: app/channel_cmds.c:917 +msgid "the composite color" +msgstr "" + +#: app/channel_cmds.c:924 +msgid "Set the compositing color of the specified channel." +msgstr "" + +#: app/channel_cmds.c:925 +msgid "This procedure sets the specified channel's compositing color." +msgstr "" + +#: app/channel_ops.c:105 +msgid "Offset" +msgstr "Überstand" + +#: app/channel_ops.c:139 +msgid "Offset X:" +msgstr "X Überstand:" + +#: app/channel_ops.c:149 +msgid "Offset Y:" +msgstr "Y Überstand:" + +#. the wrap around option +#: app/channel_ops.c:161 +msgid "Wrap-Around" +msgstr "" + +#: app/channel_ops.c:166 +msgid "Fill Options" +msgstr "F\374lleinstellungen" + +#: app/channel_ops.c:173 app/file_new_dialog.c:122 app/file_new_dialog.c:728 +msgid "Background" +msgstr "Hintergrund" + +#: app/channel_ops.c:184 app/file_new_dialog.c:750 +msgid "Transparent" +msgstr "Durchsichtig" + +#. the by half height and half width offtion +#: app/channel_ops.c:195 +msgid "Offset by (x/2),(y/2)" +msgstr "" + +#: app/channel_ops.c:572 +msgid "the drawable to offset" +msgstr "" + +#: app/channel_ops.c:576 +msgid "wrap image around or fill vacated regions" +msgstr "" + +#: app/channel_ops.c:580 +msgid "fill vacated regions of drawable with background or transparent: { OFFSET_BACKGROUND (0), OFFSET_TRANSPARENT (1) }" +msgstr "" + +#: app/channel_ops.c:584 +msgid "offset by this amount in X direction" +msgstr "" + +#: app/channel_ops.c:588 +msgid "offset by this amount in Y direction" +msgstr "" + +#: app/channel_ops.c:595 +msgid "Offset the drawable by the specified amounts in the X and Y directions" +msgstr "" + +#: app/channel_ops.c:596 +msgid "This procedure offsets the specified drawable by the amounts specified by 'offset_x' and 'offset_y'. If 'wrap_around' is set to TRUE, then portions of the drawable which are offset out of bounds are wrapped around. Alternatively, the undefined regions of the drawable can be filled with transparency or the background color, as specified by the 'fill_type' parameter." +msgstr "" + +#: app/channels_dialog.c:164 app/channels_dialog.c:182 app/channels_dialog.c:1824 +msgid "New Channel" +msgstr "Neuer Kanal" + +#: app/channels_dialog.c:166 app/channels_dialog.c:183 +msgid "Raise Channel" +msgstr "Erhöhe Kanal" + +#: app/channels_dialog.c:168 app/channels_dialog.c:184 +msgid "Lower Channel" +msgstr "Erniedrige Kanal" + +#: app/channels_dialog.c:170 app/channels_dialog.c:185 +msgid "Duplicate Channel" +msgstr "Dupliziere Kanal" + +#: app/channels_dialog.c:172 app/channels_dialog.c:186 +msgid "Delete Channel" +msgstr "L\366sche Kanal" + +#: app/channels_dialog.c:174 +msgid "Channel To Selection" +msgstr "Kanal zur Auswahl" + +#: app/channels_dialog.c:613 app/channels_dialog.c:667 +msgid "error in %s at %d: this shouldn't happen." +msgstr "" + +#: app/channels_dialog.c:1070 app/color_balance.c:466 app/color_picker.c:158 app/color_picker.c:168 app/curves.c:327 +msgid "Red" +msgstr "Rot" + +#: app/channels_dialog.c:1071 app/color_balance.c:493 app/color_picker.c:159 app/color_picker.c:169 app/curves.c:328 +msgid "Green" +msgstr "Gr\374n" + +#: app/channels_dialog.c:1072 app/color_balance.c:520 app/color_picker.c:160 app/color_picker.c:170 app/curves.c:329 +msgid "Blue" +msgstr "Blau" + +#: app/channels_dialog.c:1073 +msgid "Gray" +msgstr "Grau" + +#: app/channels_dialog.c:1074 +msgid "Indexed" +msgstr "Indiziert" + +#: app/channels_dialog.c:1796 +msgid "New Channel Options" +msgstr "Einstellungen f\374r neuen Kanal" + +#. the name entry hbox, label and entry +#: app/channels_dialog.c:1814 +msgid "Channel name: " +msgstr "Kanalname: " + +#: app/channels_dialog.c:1828 +msgid "Fill Opacity: " +msgstr "F\374lldurchsichtigkeit:" + +#: app/channels_dialog.c:1975 +msgid "Edit Channel Attributes" +msgstr "Verändere Kanalmerkamle" + +#: app/channels_dialog.c:1995 +msgid "Channel name:" +msgstr "Kanalname:" + +#: app/clone.c:117 +msgid "Image Source" +msgstr "Bildquelle" + +#: app/clone.c:118 +msgid "Pattern Source" +msgstr "Musterquelle" + +#. the main label +#: app/clone.c:130 +msgid "Clone Tool Options" +msgstr "Klonwerkzeug Einstellungen" + +#. the radio frame and box +#: app/clone.c:135 +msgid "Source" +msgstr "Quelle" + +#. the aligned toggle button +#: app/clone.c:156 +msgid "Aligned" +msgstr "" + +#: app/clone.c:233 +msgid "No patterns available for this operation." +msgstr "" + +#: app/clone.c:554 +msgid "the source drawable" +msgstr "" + +#: app/clone.c:558 +msgid "the type of clone: { IMAGE-CLONE (0), PATTERN-CLONE (1) }" +msgstr "" + +#: app/clone.c:562 +msgid "the x coordinate in the source image" +msgstr "" + +#: app/clone.c:566 +msgid "the y coordinate in the source image" +msgstr "" + +#: app/clone.c:582 +msgid "Clone from the source to the dest drawable using the current brush" +msgstr "" + +#: app/clone.c:583 +msgid "This tool clones (copies) from the source drawable starting at the specified source coordinates to the dest drawable. If the \"clone_type\" argument is set to PATTERN-CLONE, then the current pattern is used as the source and the \"src_drawable\" argument is ignored. Pattern cloning assumes a tileable pattern and mods the sum of the src coordinates and subsequent stroke offsets with the width and height of the pattern. For image cloning, if the sum of the src coordinates and subsequent stroke offsets exceeds the extents of the src drawable, then no paint is transferred. The clone tool is capable of transforming between any image types including RGB->Indexed--although converting from any type to indexed is significantly slower." +msgstr "" + +#. The tool options +#: app/color_balance.c:278 +msgid "Color Balance Options" +msgstr "" + +#: app/color_balance.c:322 +msgid "Color balance operates only on RGB color drawables." +msgstr "" + +#: app/color_balance.c:376 +msgid "Shadows" +msgstr "Shatten" + +#: app/color_balance.c:377 +msgid "Midtones" +msgstr "" + +#: app/color_balance.c:378 +msgid "Highlights" +msgstr "Glanzlichter" + +#: app/color_balance.c:395 app/tools.c:487 +msgid "Color Balance" +msgstr "Farbausgleich" + +#: app/color_balance.c:410 +msgid "Color Levels: " +msgstr "Farbwerte: " + +#. Create the cyan-red scale widget +#: app/color_balance.c:449 +msgid "Cyan" +msgstr "Cyan" + +#. Create the magenta-green scale widget +#: app/color_balance.c:476 +msgid "Magenta" +msgstr "Magenta" + +#. Create the yellow-blue scale widget +#: app/color_balance.c:503 +msgid "Yellow" +msgstr "Gelb" + +#: app/color_balance.c:543 +msgid "Preserve Luminosity" +msgstr "" + +#: app/color_balance.c:623 +msgid "color_balance_preview(): No image map" +msgstr "" + +#: app/color_balance.c:890 +msgid "Transfer mode: { SHADOWS (0), MIDTONES (1), HIGHLIGHTS (2) }" +msgstr "" + +#: app/color_balance.c:894 +msgid "Preserve luminosity values at each pixel" +msgstr "" + +#: app/color_balance.c:898 +msgid "Cyan-Red color balance: (-100 <= cyan_red <= 100)" +msgstr "" + +#: app/color_balance.c:902 +msgid "Magenta-Green color balance: (-100 <= magenta_green <= 100)" +msgstr "" + +#: app/color_balance.c:906 +msgid "Yellow-Blue color balance: (-100 <= yellow_blue <= 100)" +msgstr "" + +#: app/color_balance.c:913 +msgid "Modify the color balance of the specified drawable" +msgstr "" + +#: app/color_balance.c:914 +msgid "Modify the color balance of the specified drawable. There are three axis which can be modified: cyan-red, magenta-green, and yellow-blue. Negative values increase the amount of the former, positive values increase the amount of the latter. Color balance can be controlled with the 'transfer_mode' setting, which allows shadows, midtones, and highlights in an image to be affected differently. The 'preserve_lum' parameter, if non-zero, ensures that the luminosity of each pixel remains fixed." +msgstr "" + +#. the main label +#: app/color_picker.c:106 +msgid "Color Picker Options" +msgstr "Farbpipetteeinstellungen" + +#: app/color_picker.c:151 app/tools.c:321 +msgid "Color Picker" +msgstr "Farbpipette" + +#: app/color_picker.c:161 app/color_picker.c:167 app/color_picker.c:176 app/curves.c:330 +msgid "Alpha" +msgstr "" + +#: app/color_picker.c:162 app/color_picker.c:171 app/color_picker.c:177 +msgid "Hex Triplet" +msgstr "" + +#: app/color_picker.c:166 +msgid "Index" +msgstr "Index" + +#: app/color_picker.c:175 +msgid "Intensity" +msgstr "Intensität" + +#: app/color_picker.c:386 app/color_picker.c:387 app/color_picker.c:388 app/color_picker.c:389 app/color_picker.c:390 app/color_picker.c:391 app/color_picker.c:392 app/color_picker.c:405 app/color_picker.c:415 app/color_picker.c:428 +msgid "N/A" +msgstr "n.v." + +#: app/color_picker.c:488 app/rect_select.c:731 +msgid "x coordinate of upper-left corner of rectangle" +msgstr "" + +#: app/color_picker.c:492 app/rect_select.c:735 +msgid "y coordinate of upper-left corner of rectangle" +msgstr "" + +#: app/color_picker.c:500 +msgid "save the color to the active palette" +msgstr "" + +#: app/color_picker.c:508 +msgid "the return color" +msgstr "" + +#: app/color_picker.c:515 +msgid "Determine the color at the given drawable coordinates" +msgstr "" + +#: app/color_picker.c:516 +msgid "This tool determines the color at the specified coordinates. The returned color is an RGB triplet even for grayscale and indexed drawables. If the coordinates lie outside of the extents of the specified drawable, then an error is returned. If the drawable has an alpha channel, the algorithm examines the alpha value of the drawable at the coordinates. If the alpha value is completely transparent (0), then an error is returned. If the sample_merged parameter is non-zero, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of a merged sampling, the supplied drawable is ignored." +msgstr "" + +#: app/color_select.c:188 +msgid "Color Selection" +msgstr "Farbauswahl" + +#: app/color_select.c:340 +msgid "Hex Triplet:" +msgstr "" + +#: app/color_select.c:350 +msgid "Revert to Old Color" +msgstr "" + +#: app/commands.c:365 +msgid "Border Selection" +msgstr "Randauswahl" + +#: app/commands.c:365 +msgid "Border selection by:" +msgstr "" + +#: app/commands.c:379 +msgid "Feather Selection" +msgstr "" + +#: app/commands.c:379 +msgid "Feather selection by:" +msgstr "" + +#: app/commands.c:393 +msgid "Grow Selection" +msgstr "Vergrößere Auswahl" + +#: app/commands.c:393 +msgid "Grow selection by:" +msgstr "Vergrößere Auswahl um:" + +#: app/commands.c:407 +msgid "Shrink Selection" +msgstr "Verkleinere Auswahl" + +#: app/commands.c:407 +msgid "Shrink selection by:" +msgstr "Verkleinere Auswahl um:" + +#: app/commands.c:758 +msgid "Image Resize" +msgstr "" + +#: app/commands.c:805 +msgid "Image Scale" +msgstr "Bildskalierung" + +#: app/commands.c:1101 +msgid "Resize Error: Both width and height must be greater than zero." +msgstr "" + +#: app/commands.c:1131 +msgid "Scale Error: Both width and height must be greater than zero." +msgstr "" + +#: app/convert.c:291 +msgid "You are attempting to convert an image with alpha/layers from RGB to INDEXED. You should not generate a palette of more than 255 colors if you intend to create a transparent or animated GIF file from this image." +msgstr "" + +#: app/convert.c:324 +msgid "Indexed Color Conversion" +msgstr "" + +#: app/convert.c:329 +msgid "Palette Options" +msgstr "Palette Einstellungen" + +#: app/convert.c:346 +msgid "Generate optimal palette: " +msgstr "Erstelle optimale palette: " + +#: app/convert.c:354 +msgid "# of colors: " +msgstr "Anzahl der Farben: " + +#: app/convert.c:407 +msgid "Use custom palette" +msgstr "Benutze eigene Palette" + +#: app/convert.c:439 +msgid "Use WWW-optimised palette" +msgstr "Benutze WWW-optimierte Palette" + +#: app/convert.c:457 +msgid "Use black/white (1-bit) palette" +msgstr "Benutze Schwarz/Weiß palette" + +#: app/convert.c:467 +msgid "Dither Options" +msgstr "" + +#: app/convert.c:481 +msgid "Enable Floyd-Steinberg dithering" +msgstr "" + +#: app/convert.c:505 +msgid " [ Warning ] " +msgstr " [ Warnung ] " + +#: app/convert.c:2359 +msgid "Non-existant colour was expected to be in non-destructive colourmap." +msgstr "" + +#: app/convert.c:2927 +msgid "Convert specified image to RGB color" +msgstr "" + +#: app/convert.c:2928 +msgid "This procedure converts the specified image to RGB color. This process requires an image of type GRAY or INDEXED. No image content is lost in this process aside from the colormap for an indexed image." +msgstr "" + +#: app/convert.c:2985 +msgid "Convert specified image to grayscale (256 intensity levels)" +msgstr "" + +#: app/convert.c:2986 +msgid "This procedure converts the specified image to grayscale with 8 bits per pixel (256 intensity levels). This process requires an image of type RGB or INDEXED." +msgstr "" + +#: app/convert.c:3040 app/convert.c:3116 +msgid "Floyd-Steinberg dithering" +msgstr "" + +#: app/convert.c:3044 +msgid "the number of colors to quantize to" +msgstr "" + +#: app/convert.c:3051 app/convert.c:3135 +msgid "Convert specified image to indexed color" +msgstr "" + +#: app/convert.c:3052 +msgid "This procedure converts the specified image to indexed color. This process requires an image of type GRAY or RGB. The 'num_cols' arguments specifies how many colors the resulting image should be quantized to (1-256)." +msgstr "" + +#: app/convert.c:3120 +msgid "The type of palette to use, (0 optimal) (1 reuse) (2 WWW) (3 Mono) (4 Custom)" +msgstr "" + +#: app/convert.c:3124 +msgid "the number of colors to quantize to, ignored unless (palette_type == 0)" +msgstr "" + +#: app/convert.c:3128 +msgid "The name of the custom palette to use, ignored unless (palette_type == 4)" +msgstr "" + +#: app/convert.c:3136 +msgid "This procedure converts the specified image to indexed color. This process requires an image of type GRAY or RGB. The `palette_type' specifies what kind of palette to use, A type of `0' means to use an optimal palette of `num_cols' generated from the colors in the image. A type of `1' means to re-use the previous palette. A type of `2' means to use the WWW-optimized palette. Type `3' means to use only black and white colors. A type of `4' means to use a palette from the gimp palettes directories." +msgstr "" + +#: app/convolve.c:131 +msgid "Blur" +msgstr "Aufweichen" + +#: app/convolve.c:132 +msgid "Sharpen" +msgstr "Schärfen" + +#: app/convolve.c:133 +msgid "Custom" +msgstr "Eigene" + +#. the main label +#: app/convolve.c:145 +msgid "Convolver Options" +msgstr "" + +#: app/convolve.c:437 +msgid "the pressure: 0 <= pressure <= 100" +msgstr "" + +#: app/convolve.c:441 +msgid "convolve type: { BLUR (0), SHARPEN (1) }" +msgstr "" + +#: app/convolve.c:457 +msgid "Convolve (Blur, Sharpen) using the current brush" +msgstr "" + +#: app/convolve.c:458 +msgid "This tool convolves the specified drawable with either a sharpening or blurring kernel. The pressure parameter controls the magnitude of the operation. Like the paintbrush, this tool linearly interpolates between the specified stroke coordinates." +msgstr "" + +#: app/crop.c:356 +msgid "Crop: %d x %d" +msgstr "Zuschneiden: %d x %d" + +#: app/crop.c:526 +msgid "Crop Tool Options" +msgstr "Zuschneidewerkzeug Einstellungen" + +#. initialize the statusbar display +#: app/crop.c:706 +msgid "Crop: 0 x 0" +msgstr "Zuschneiden: 0 x 0" + +#: app/crop.c:718 app/tools.c:201 +msgid "Crop" +msgstr "Zuschneiden" + +#: app/crop.c:719 +msgid "Selection" +msgstr "Auswahl" + +#. create the info dialog +#: app/crop.c:727 +msgid "Crop Information" +msgstr "Zuschneideinformationen" + +#. add the information fields +#: app/crop.c:730 +msgid "X Origin: " +msgstr "X Ursprung: " + +#: app/crop.c:731 +msgid "Y Origin: " +msgstr "Y Ursprung: " + +#: app/crop.c:732 +msgid "Width: " +msgstr "Breite: " + +#: app/crop.c:733 +msgid "Height: " +msgstr "Höhe: " + +#: app/crop.c:950 +msgid "new image width: (0 < new_width <= width)" +msgstr "" + +#: app/crop.c:954 +msgid "new image height: (0 < new_height <= height)" +msgstr "" + +#: app/crop.c:958 +msgid "x offset: (0 <= offx <= (width - new_width))" +msgstr "" + +#: app/crop.c:962 +msgid "y offset: (0 <= offy <= (height - new_height))" +msgstr "" + +#: app/crop.c:969 +msgid "Crop the image to the specified extents." +msgstr "" + +#: app/crop.c:970 +msgid "This procedure crops the image so that it's new width and height are equal to the supplied parameters. Offsets are also provided which describe the position of the previous image's content. All channels and layers within the image are cropped to the new image extents; this includes the image selection mask. If any parameters are out of range, an error is returned." +msgstr "" + +#: app/curves.c:279 +msgid "Curves Options" +msgstr "Kurveneinstellungen" + +#: app/curves.c:336 +msgid "Smooth" +msgstr "" + +#: app/curves.c:337 +msgid "Free" +msgstr "" + +#: app/curves.c:348 +msgid "Curves for indexed drawables cannot be adjusted." +msgstr "" + +#: app/curves.c:458 app/tools.c:562 +msgid "Curves" +msgstr "" + +#: app/curves.c:472 +msgid "Modify Curves for Channel: " +msgstr "" + +#. The option menu for selecting the drawing method +#: app/curves.c:546 +msgid "Curve Type: " +msgstr "" + +#: app/curves.c:819 +msgid "curves_preview(): No image map" +msgstr "" + +#: app/curves.c:1311 +msgid "the channel to modify: { VALUE (0), RED (1), GREEN (2), BLUE (3), ALPHA (4), GRAY (0) }" +msgstr "" + +#: app/curves.c:1315 +msgid "the number of values in the control point array ( 3 < num_points <= 32 )" +msgstr "" + +#: app/curves.c:1319 +msgid "the spline control points: { cp1.x, cp1.y, cp2.x, cp2.y, ... }" +msgstr "" + +#: app/curves.c:1326 app/curves.c:1484 +msgid "Modifies the intensity curve(s) for specified drawable" +msgstr "" + +#: app/curves.c:1327 +msgid "Modifies the intensity mapping for one channel in the specified drawable. The drawable must be either grayscale or RGB, and the channel can be either an intensity component, or the value. The 'control_pts' parameter is an array of integers which define a set of control points which describe a Catmull Rom spline which yields the final intensity curve. Use the 'gimp_curves_explicit' function to explicitly modify intensity levels." +msgstr "" + +#: app/curves.c:1469 +msgid "the channel to modify: { VALUE (0), RED (1), GREEN (2), BLUE (3), GRAY (0) }" +msgstr "" + +#: app/curves.c:1473 +msgid "the number of bytes in the new curve (always 256)" +msgstr "" + +#: app/curves.c:1477 +msgid "the explicit curve" +msgstr "" + +#: app/curves.c:1485 +msgid "Modifies the intensity mapping for one channel in the specified drawable. The drawable must be either grayscale or RGB, and the channel can be either an intensity component, or the value. The 'curve' parameter is an array of bytes which explicitly defines how each pixel value in the drawable will be modified. Use the 'gimp_curves_spline' function to modify intensity levels with Catmull Rom splines." +msgstr "" + +#: app/desaturate.c:46 +msgid "Desaturate operates only on RGB color drawables." +msgstr "" + +#: app/desaturate.c:132 +msgid "Desaturate the contents of the specified drawable" +msgstr "" + +#: app/desaturate.c:133 +msgid "This procedure desaturates the contents of the specified drawable. This procedure only works on drawables of type RGB color." +msgstr "" + +#: app/devices.c:356 +msgid "devices_rc_update called multiple times for not present device\n" +msgstr "" + +#: app/devices.c:655 +msgid "Device Status" +msgstr "Ger\344testatus" + +#: app/devices.c:1027 +msgid "Failed to find device_info\n" +msgstr "" + +#. Set the GOWindow title +#: app/docindex.c:173 +msgid "Document Index" +msgstr "Dokumentenindex" + +#. Set the initial status message +#: app/docindex.c:179 +msgid "GTK successfully started" +msgstr "" + +#: app/docindex.c:531 +msgid "This file cannot be moved up." +msgstr "" + +#: app/docindex.c:534 +msgid "There's no selection to move up." +msgstr "" + +#: app/docindex.c:544 +msgid "This file cannot be moved down." +msgstr "" + +#: app/docindex.c:547 +msgid "There's no selection to move down." +msgstr "" + +#: app/docindex.c:559 +msgid "There's no selection to remove." +msgstr "" + +#: app/docindexif.c:76 +msgid "Open" +msgstr "" + +#: app/docindexif.c:76 +msgid "Open a file" +msgstr "\326ffne eine Datei" + +#: app/docindexif.c:81 +msgid "Up" +msgstr "" + +#: app/docindexif.c:81 +msgid "Move the selected entry up in the index" +msgstr "" + +#: app/docindexif.c:86 +msgid "Down" +msgstr "" + +#: app/docindexif.c:86 +msgid "Move the selected entry down in the index" +msgstr "" + +#: app/docindexif.c:91 +msgid "Remove" +msgstr "Entfernen" + +#: app/docindexif.c:91 +msgid "Remove the selected entry from the index" +msgstr "" + +#: app/docindexif.c:96 +msgid "Close the Document Index" +msgstr "" + +#: app/drawable_cmds.c:66 +msgid "push merge to undo stack?" +msgstr "" + +#: app/drawable_cmds.c:73 +msgid "Merge the shadow buffer with the specified drawable" +msgstr "" + +#: app/drawable_cmds.c:74 +msgid "This procedure combines the contents of the image's shadow buffer (for temporary processing) with the specified drawable. The \"undo\" parameter specifies whether to add an undo step for the operation. Requesting no undo is useful for such applications as 'auto-apply'." +msgstr "" + +#: app/drawable_cmds.c:137 +msgid "type of fill: { BG-IMAGE-FILL (0), WHITE-IMAGE-FILL (1), TRANS-IMAGE-FILL (2) }" +msgstr "" + +#: app/drawable_cmds.c:144 +msgid "Fill the drawable with the specified fill mode." +msgstr "" + +#: app/drawable_cmds.c:145 +msgid "This procedure fills the drawable with the fill mode. If the fill mode is foreground the current foreground color is used. If the fill mode is background, the current background color is used. If the fill type is white, then white is used. Transparent fill only affects layers with an alpha channel, in which case the alpha channel is set to transparent. If the drawable has no alpha channel, it is filled to white. No fill leaves the drawable's contents undefined. This procedure is unlike the bucket fill tool because it fills regardless of a selection" +msgstr "" + +#: app/drawable_cmds.c:199 +msgid "x coordinate of upper left corner of update region" +msgstr "" + +#: app/drawable_cmds.c:203 +msgid "y coordinate of upper left corner of update region" +msgstr "" + +#: app/drawable_cmds.c:207 +msgid "width of update region" +msgstr "" + +#: app/drawable_cmds.c:211 +msgid "height of update region" +msgstr "" + +#: app/drawable_cmds.c:218 +msgid "Update the specified region of the drawable." +msgstr "" + +#: app/drawable_cmds.c:219 +msgid "This procedure updates the specified region of the drawable. The (x, y) coordinate pair is relative to the drawable's origin, not to the image origin. Therefore, the entire drawable can be updated with: {x->0, y->0, w->width, h->height}." +msgstr "" + +#: app/drawable_cmds.c:283 +msgid "true if there is a selection" +msgstr "" + +#: app/drawable_cmds.c:287 +msgid "x coordinate of upper left corner of selection bounds" +msgstr "" + +#: app/drawable_cmds.c:291 +msgid "y coordinate of upper left corner of selection bounds" +msgstr "" + +#: app/drawable_cmds.c:295 +msgid "x coordinate of lower right corner of selection bounds" +msgstr "" + +#: app/drawable_cmds.c:299 +msgid "y coordinate of lower right corner of selection bounds" +msgstr "" + +#: app/drawable_cmds.c:306 +msgid "Find the bounding box of the current selection in relation to the specified drawable" +msgstr "" + +#: app/drawable_cmds.c:307 +msgid "This procedure returns the whether there is a selection. If there is one, the upper left and lower righthand corners of its bounding box are returned. These coordinates are specified relative to the drawable's origin, and bounded by the drawable's extents." +msgstr "" + +#: app/drawable_cmds.c:363 +msgid "the drawable's image" +msgstr "" + +#: app/drawable_cmds.c:370 +msgid "Returns the drawable's image" +msgstr "" + +#: app/drawable_cmds.c:371 +msgid "This procedure returns the drawable's image." +msgstr "" + +#: app/drawable_cmds.c:429 +msgid "the drawable's type: { RGB (0), RGBA (1), GRAY (2), GRAYA (3), INDEXED (4), INDEXEDA (5) }" +msgstr "" + +#: app/drawable_cmds.c:436 +msgid "Returns the drawable's type" +msgstr "" + +#: app/drawable_cmds.c:437 +msgid "This procedure returns the drawable's type." +msgstr "" + +#: app/drawable_cmds.c:493 +msgid "does the drawable have an alpha channel?" +msgstr "" + +#: app/drawable_cmds.c:500 +msgid "Returns non-zero if the drawable has an alpha channel" +msgstr "" + +#: app/drawable_cmds.c:501 +msgid "This procedure returns whether the specified drawable has an alpha channel. This can only be true for layers, and the associated type will be one of: { RGBA, GRAYA, INDEXEDA }." +msgstr "" + +#: app/drawable_cmds.c:557 +msgid "the drawable's type with alpha: { RGBA (0), GRAYA (1), INDEXEDA (2) }" +msgstr "" + +#: app/drawable_cmds.c:564 +msgid "Returns the drawable's type with alpha" +msgstr "" + +#: app/drawable_cmds.c:565 +msgid "This procedure returns the drawable's type if an alpha channel were added. If the type is currently Gray, for instance, the returned type would be GrayA. If the drawable already has an alpha channel, the drawable's type is simply returned." +msgstr "" + +#: app/drawable_cmds.c:621 +msgid "non-zero if the drawable is an RGB type" +msgstr "" + +#: app/drawable_cmds.c:628 +msgid "Returns whether the drawable is an RGB based type" +msgstr "" + +#: app/drawable_cmds.c:629 +msgid "This procedure returns non-zero if the specified drawable is of type { RGB, RGBA }." +msgstr "" + +#: app/drawable_cmds.c:685 +msgid "non-zero if the drawable is a grayscale type" +msgstr "" + +#: app/drawable_cmds.c:692 +msgid "Returns whether the drawable is an grayscale type" +msgstr "" + +#: app/drawable_cmds.c:693 +msgid "This procedure returns non-zero if the specified drawable is of type { Gray, GrayA }." +msgstr "" + +#: app/drawable_cmds.c:749 +msgid "non-zero if the drawable is a indexed type" +msgstr "" + +#: app/drawable_cmds.c:756 +msgid "Returns whether the drawable is an indexed type" +msgstr "" + +#: app/drawable_cmds.c:757 +msgid "This procedure returns non-zero if the specified drawable is of type { Indexed, IndexedA }." +msgstr "" + +#: app/drawable_cmds.c:812 +msgid "bytes per pixel" +msgstr "" + +#: app/drawable_cmds.c:819 +msgid "Returns the bytes per pixel" +msgstr "" + +#: app/drawable_cmds.c:820 +msgid "This procedure returns the number of bytes per pixel (or the number of channels) for the specified drawable." +msgstr "" + +#: app/drawable_cmds.c:876 +msgid "width of drawable" +msgstr "" + +#: app/drawable_cmds.c:883 +msgid "Returns the width of the drawable" +msgstr "" + +#: app/drawable_cmds.c:884 +msgid "This procedure returns the specified drawable's width in pixels." +msgstr "" + +#: app/drawable_cmds.c:939 +msgid "height of drawable" +msgstr "" + +#: app/drawable_cmds.c:946 +msgid "Returns the height of the drawable" +msgstr "" + +#: app/drawable_cmds.c:947 +msgid "This procedure returns the height of the specified drawable in pixels" +msgstr "" + +#: app/drawable_cmds.c:1007 +msgid "x offset of drawable" +msgstr "" + +#: app/drawable_cmds.c:1011 +msgid "y offset of drawable" +msgstr "" + +#: app/drawable_cmds.c:1018 +msgid "Returns the offsets for the drawable" +msgstr "" + +#: app/drawable_cmds.c:1019 +msgid "This procedure returns the specified drawable's offsets. This only makes sense if the drawable is a layer since channels are anchored. The offsets of a channel will be returned as 0." +msgstr "" + +#: app/drawable_cmds.c:1075 +msgid "non-zero if the drawable is a layer" +msgstr "" + +#: app/drawable_cmds.c:1082 +msgid "Returns whether the drawable is a layer" +msgstr "" + +#: app/drawable_cmds.c:1083 +msgid "This procedure returns non-zero if the specified drawable is a layer." +msgstr "" + +#: app/drawable_cmds.c:1139 +msgid "non-zero if the drawable is a layer mask" +msgstr "" + +#: app/drawable_cmds.c:1146 +msgid "Returns whether the drawable is a layer mask" +msgstr "" + +#: app/drawable_cmds.c:1147 +msgid "This procedure returns non-zero if the specified drawable is a layer mask." +msgstr "" + +#: app/drawable_cmds.c:1203 +msgid "non-zero if the drawable is a channel" +msgstr "" + +#: app/drawable_cmds.c:1210 +msgid "Returns whether the drawable is a channel" +msgstr "" + +#: app/drawable_cmds.c:1211 +msgid "This procedure returns non-zero if the specified drawable is a channel. Even though a layer mask is technically considered a channel, this call will return 0 on a layer mask." +msgstr "" + +#: app/drawable_cmds.c:1295 app/drawable_cmds.c:1407 +msgid "the x coordinate" +msgstr "" + +#: app/drawable_cmds.c:1299 app/drawable_cmds.c:1411 +msgid "the y coordinate" +msgstr "" + +#: app/drawable_cmds.c:1303 app/drawable_cmds.c:1419 +msgid "the number of channels for the pixel" +msgstr "" + +#: app/drawable_cmds.c:1307 app/drawable_cmds.c:1423 +msgid "the pixel value" +msgstr "" + +#: app/drawable_cmds.c:1314 +msgid "Sets the value of the pixel at the specified coordinates" +msgstr "" + +#: app/drawable_cmds.c:1315 +msgid "This procedure sets the pixel value at the specified coordinates. The 'num_channels' argument must always be equal to the bytes-per-pixel value for the specified drawable." +msgstr "" + +#: app/drawable_cmds.c:1430 +msgid "Gets the value of the pixel at the specified coordinates" +msgstr "" + +#: app/drawable_cmds.c:1431 +msgid "This procedure gets the pixel value at the specified coordinates. The 'num_channels' argument must always be equal to the bytes-per-pixel value for the specified drawable." +msgstr "" + +#: app/drawable_cmds.c:1463 app/drawable_cmds.c:1554 app/drawable_cmds.c:1628 +msgid "the input drawable" +msgstr "" + +#: app/drawable_cmds.c:1467 +msgid "The creator ID of the parasite to find" +msgstr "" + +#: app/drawable_cmds.c:1471 +msgid "The type ID of the parasite to find" +msgstr "" + +#: app/drawable_cmds.c:1479 +msgid "the found parasite" +msgstr "" + +#: app/drawable_cmds.c:1486 app/drawable_cmds.c:1487 +msgid "Finds a parasite of a specified type and creator in an drawable." +msgstr "" + +#: app/drawable_cmds.c:1558 +msgid "The parasite to attach to the drawable" +msgstr "" + +#: app/drawable_cmds.c:1565 +msgid "Add a parasite to an drawable" +msgstr "" + +#: app/drawable_cmds.c:1566 +msgid "This procedure attaches a parasite to a drawable. It has no return values." +msgstr "" + +#: app/drawable_cmds.c:1632 +msgid "The parasite to detach to the drawable" +msgstr "" + +#: app/drawable_cmds.c:1639 +msgid "Add a parasite to a drawable" +msgstr "" + +#: app/drawable_cmds.c:1640 +msgid "This procedure detaches a parasite from a drawable. It has no return values." +msgstr "" + +#: app/edit_cmds.c:79 +msgid "the drawable to cut from" +msgstr "" + +#: app/edit_cmds.c:86 +msgid "Cut from the specified drawable" +msgstr "" + +#: app/edit_cmds.c:87 +msgid "If there is a selection in the image, then the area specified by the selection is cut from the specified drawable and placed in an internal GIMP edit buffer. It can subsequently be retrieved using the 'gimp-edit-paste' command. If there is no selection, then the specified drawable will be removed and its contents stored in the internal GIMP edit buffer. The drawable MUST belong to the specified image, or an error is returned." +msgstr "" + +#: app/edit_cmds.c:149 +msgid "the drawable to copy from" +msgstr "" + +#: app/edit_cmds.c:156 +msgid "Copy from the specified drawable" +msgstr "" + +#: app/edit_cmds.c:157 +msgid "If there is a selection in the image, then the area specified by the selection is copied from the specified drawable and placed in an internal GIMP edit buffer. It can subsequently be retrieved using the 'gimp-edit-paste' command. If there is no selection, then the specified drawable's contents will be stored in the internal GIMP edit buffer. The drawable MUST belong to the specified image, or an error is returned." +msgstr "" + +#: app/edit_cmds.c:231 +msgid "the drawable to paste from" +msgstr "" + +#: app/edit_cmds.c:235 +msgid "clear selection, or paste behind it?" +msgstr "" + +#: app/edit_cmds.c:243 +msgid "the new floating selection" +msgstr "" + +#: app/edit_cmds.c:250 +msgid "Paste buffer to the specified drawable" +msgstr "" + +#: app/edit_cmds.c:251 +msgid "This procedure pastes a copy of the internal GIMP edit buffer to the specified drawable. The GIMP edit buffer will be empty unless a call was previously made to either 'gimp-edit-cut' or 'gimp-edit-copy'. The \"paste_into\" option specifies whether to clear the current image selection, or to paste the buffer \"behind\" the selection. This allows the selection to act as a mask for the pasted buffer. Anywhere that the selection mask is non-zero, the pasted buffer will show through. The pasted buffer will be a new layer in the image which is designated as the image floating selection. If the image has a floating selection at the time of pasting, the old floating selection will be anchored to it's drawable before the new floating selection is added. This procedure returns the new floating layer. The resulting floating selection will already be attached to the specified drawable, and a subsequent call to floating_sel_attach is not needed." +msgstr "" + +#: app/edit_cmds.c:313 +msgid "The drawable to clear from" +msgstr "" + +#: app/edit_cmds.c:320 +msgid "Clear selected area of drawable" +msgstr "" + +#: app/edit_cmds.c:321 +msgid "This procedure clears the specified drawable. If the drawable has an alpha channel, the cleared pixels will become transparent. If the drawable does not have an alpha channel, cleared pixels will be set to the background color. This procedure only affects regions within a selection if there is a selection active." +msgstr "" + +#: app/edit_cmds.c:382 +msgid "the drawable to fill from" +msgstr "" + +#: app/edit_cmds.c:389 +msgid "Fill selected area of drawable" +msgstr "" + +#: app/edit_cmds.c:390 +msgid "This procedure fills the specified drawable with the background color. This procedure only affects regions within a selection if there is a selection active." +msgstr "" + +#: app/edit_cmds.c:452 +msgid "the drawable to stroke to" +msgstr "" + +#: app/edit_cmds.c:459 +msgid "Stroke the current selection" +msgstr "" + +#: app/edit_cmds.c:460 +msgid "This procedure strokes the current selection, painting along the selection boundary with the active brush and foreground color. The paint is applied to the specified drawable regardless of the active selection." +msgstr "" + +#: app/edit_selection.c:154 +msgid "Move: 0, 0" +msgstr "" + +#: app/edit_selection.c:299 +msgid "Move: %d, %d" +msgstr "" + +#: app/ellipse_select.c:160 +msgid "x coordinate of upper-left corner of ellipse bounding box" +msgstr "" + +#: app/ellipse_select.c:164 +msgid "y coordinate of upper-left corner of ellipse bounding box" +msgstr "" + +#: app/ellipse_select.c:168 +msgid "the width of the ellipse: width > 0" +msgstr "" + +#: app/ellipse_select.c:172 +msgid "the height of the ellipse: height > 0" +msgstr "" + +#: app/ellipse_select.c:195 +msgid "Create an elliptical selection over the specified image" +msgstr "" + +#: app/ellipse_select.c:196 +msgid "This tool creates an elliptical selection over the specified image. The elliptical region can be either added to, subtracted from, or replace the contents of the previous selection mask. If antialiasing is turned on, the edges of the elliptical region will contain intermediate values which give the appearance of a sharper, less pixelized edge. This should be set as TRUE most of the time. If the feather option is enabled, the resulting selection is blurred before combining. The blur is a gaussian blur with the specified feather radius." +msgstr "" + +#: app/equalize.c:247 +msgid "equalization option" +msgstr "" + +#: app/equalize.c:254 +msgid "Equalize the contents of the specified drawable" +msgstr "" + +#: app/equalize.c:255 +msgid "This procedure equalizes the contents of the specified drawable. Each intensity channel is equalizeed independently. The equalizeed intensity is given as inten' = (255 - inten). Indexed color drawables are not valid for this operation. The 'mask_only' option specifies whether to adjust only the area of the image within the selection bounds, or the entire image based on the histogram of the selected area. If there is no selection, the entire image is adjusted based on the histogram for the entire image." +msgstr "" + +#: app/eraser.c:81 +msgid "Eraser Options" +msgstr "Sicherungseinstellungen" + +#. the hard toggle +#: app/eraser.c:86 +msgid "Hard edge" +msgstr "" + +#. the incremental toggle +#: app/eraser.c:95 +msgid "Incremental" +msgstr "" + +#: app/eraser.c:223 +msgid "SOFT(0) or HARD(1)" +msgstr "" + +#: app/eraser.c:227 +msgid "CONTINUOUS(0) or INCREMENTAL(1)" +msgstr "" + +#: app/eraser.c:255 app/eraser.c:277 +msgid "Erase using the current brush" +msgstr "" + +#: app/eraser.c:256 app/eraser.c:278 +msgid "This tool erases using the current brush mask. If the specified drawable contains an alpha channel, then the erased pixels will become transparent. Otherwise, the eraser tool replaces the contents of the drawable with the background color. Like paintbrush, this tool linearly interpolates between the specified stroke coordinates." +msgstr "" + +#: app/errorconsole.c:138 +msgid "Error opening file %s: %s" +msgstr "Kann Datei nicht \366ffnen %s: %s" + +#: app/errorconsole.c:153 +msgid "Can't save, nothing selected!" +msgstr "" + +#: app/errorconsole.c:157 +msgid "Save error log to file..." +msgstr "" + +#: app/errorconsole.c:205 +msgid "GIMP Error console" +msgstr "" + +#: app/errorconsole.c:224 +msgid "Write all errors to file..." +msgstr "" + +#: app/errorconsole.c:231 +msgid "Write selection to file..." +msgstr "" + +#: app/file_new_dialog.c:477 +msgid "New Image" +msgstr "Neues Bild" + +#: app/file_new_dialog.c:520 +msgid "Width" +msgstr "Breite" + +#: app/file_new_dialog.c:526 +msgid "Height" +msgstr "H\366he" + +#: app/file_new_dialog.c:589 +msgid "Pixels" +msgstr "" + +#. menu and menu items for the units pop-up menu for the units entries +#: app/file_new_dialog.c:597 +msgid "inches" +msgstr "" + +#: app/file_new_dialog.c:602 app/file_new_dialog.c:655 +msgid "cm" +msgstr "" + +#. resolution frame +#: app/file_new_dialog.c:615 +msgid "Resolution" +msgstr "Auflösung" + +#. resolution label +#: app/file_new_dialog.c:638 +msgid " pixels per " +msgstr "" + +#: app/file_new_dialog.c:650 +msgid "inch" +msgstr "" + +#: app/file_new_dialog.c:674 +msgid "Image Type" +msgstr "Bildart" + +#: app/file_new_dialog.c:684 app/gdisplay.c:164 app/preferences_dialog.c:894 +msgid "RGB" +msgstr "" + +#: app/file_new_dialog.c:695 app/preferences_dialog.c:904 +msgid "Grayscale" +msgstr "Graustufen" + +#: app/file_new_dialog.c:717 +msgid "Foreground" +msgstr "Vordergrund" + +#: app/file_new_dialog.c:739 +msgid "White" +msgstr "Wei\337" + +#: app/fileops.c:117 +msgid "Interactive, non-interactive." +msgstr "" + +#: app/fileops.c:118 +msgid "The name of the file to load." +msgstr "Der Name des zu ladenden Bildes." + +#: app/fileops.c:119 +msgid "The name entered." +msgstr "" + +#: app/fileops.c:124 +msgid "Output image." +msgstr "" + +#: app/fileops.c:130 +msgid "Loads a file by extension" +msgstr "" + +#: app/fileops.c:131 +msgid "This procedure invokes the correct file load handler according to the file's extension and/or prefix. The name of the file to load is typically a full pathname, and the name entered is what the user actually typed before prepending a directory path. The reason for this is that if the user types http://www.xcf/~gimp he wants to fetch a URL, and the full pathname will not look like a URL." +msgstr "" + +#: app/fileops.c:147 +msgid "Interactive, non-interactive" +msgstr "" + +#: app/fileops.c:148 app/xcf.c:217 +msgid "Input image" +msgstr "" + +#: app/fileops.c:149 +msgid "Drawable to save" +msgstr "" + +#: app/fileops.c:150 app/fileops.c:151 app/xcf.c:223 +msgid "The name of the file to save the image in" +msgstr "" + +#: app/fileops.c:157 +msgid "Saves a file by extension" +msgstr "" + +#: app/fileops.c:158 +msgid "This procedure invokes the correct file save handler according to the file's extension and/or prefix. The name of the file to save is typically a full pathname, and the name entered is what the user actually typed before prepending a directory path. The reason for this is that if the user types http://www.xcf/~gimp he wants to fetch a URL, and the full pathname will not look like a URL." +msgstr "" + +#: app/fileops.c:175 +msgid "The extension the file will have." +msgstr "" + +#: app/fileops.c:180 +msgid "The temp name." +msgstr "" + +#: app/fileops.c:186 +msgid "Generates a unique filename." +msgstr "" + +#: app/fileops.c:187 +msgid "Generates a unique filename using the temp path supplied in the user's gimprc." +msgstr "" + +#: app/fileops.c:206 app/fileops.c:242 +msgid "the name of the procedure to be used for loading" +msgstr "" + +#: app/fileops.c:209 app/fileops.c:245 +msgid "comma separated list of extensions this handler can load (ie. \"jpeg,jpg\")" +msgstr "" + +#: app/fileops.c:212 app/fileops.c:248 +msgid "comma separated list of prefixes this handler can load (ie. \"http:,ftp:\")" +msgstr "" + +#: app/fileops.c:215 +msgid "comma separated list of magic file information this handler can load (ie. \"0,string,GIF\")" +msgstr "" + +#: app/fileops.c:221 app/fileops.c:254 +msgid "Registers a file load handler procedure" +msgstr "" + +#: app/fileops.c:222 +msgid "Registers a procedural database procedure to be called to load files of a particular file format using magic file information." +msgstr "" + +#: app/fileops.c:255 +msgid "Registers a procedural database procedure to be called to load files of a particular file format." +msgstr "" + +#: app/fileops.c:274 +msgid "the name of the procedure to be used for saving" +msgstr "" + +#: app/fileops.c:277 +msgid "comma separated list of extensions this handler can save (ie. \"jpeg,jpg\")" +msgstr "" + +#: app/fileops.c:280 +msgid "comma separated list of prefixes this handler can save (ie. \"http:,ftp:\")" +msgstr "" + +#: app/fileops.c:286 +msgid "Registers a file save handler procedure" +msgstr "" + +#: app/fileops.c:287 +msgid "Registers a procedural database procedure to be called to save files in a particular file format." +msgstr "" + +#: app/fileops.c:406 +msgid "load handler \"%s\" does not take the standard load handler args" +msgstr "" + +#: app/fileops.c:418 +msgid "attempt to register non-existant load handler \"%s\"" +msgstr "" + +#: app/fileops.c:452 +msgid "save handler \"%s\" does not take the standard save handler args" +msgstr "" + +#: app/fileops.c:464 +msgid "attempt to register non-existant save handler \"%s\"" +msgstr "" + +#: app/fileops.c:491 app/fileops.c:516 +msgid "Load Image" +msgstr "Lade Bild" + +#: app/fileops.c:523 +msgid "Open Options" +msgstr "Öffnungseinstellungen" + +#: app/fileops.c:531 app/fileops.c:621 +msgid "Determine file type:" +msgstr "Bestimme Datentyp:" + +#: app/fileops.c:584 app/fileops.c:605 +msgid "Save Image" +msgstr "Speichere Bild" + +#: app/fileops.c:613 +msgid "Save Options" +msgstr "Sicherungseinstellungen" + +#: app/fileops.c:880 app/fileops.c:968 +msgid "Open failed: " +msgstr "\326ffnen schlug fehl: " + +#: app/fileops.c:1034 +msgid "%s is an irregular file (%s)" +msgstr "" + +#: app/fileops.c:1046 app/fileops.c:1150 +msgid "Save failed: " +msgstr "Speichern schlug fehl: " + +#: app/fileops.c:1058 app/fileops.c:1071 +msgid "/File/Open" +msgstr "/Datei/\326ffnen" + +#: app/fileops.c:1059 app/fileops.c:1072 +msgid "/File/Open" +msgstr "/Datei/\326ffnen" + +#: app/fileops.c:1060 app/fileops.c:1073 +msgid "/File/Save" +msgstr "/Datei/Speichern" + +#: app/fileops.c:1061 app/fileops.c:1074 +msgid "/File/Save as" +msgstr "/Datei/Speichern unter..." + +#: app/fileops.c:1094 +msgid " exists, overwrite?" +msgstr " existiert, \374berschreiben?" + +#: app/fileops.c:1095 +msgid "%s exists, overwrite?" +msgstr "%s existiert, \374berschreiben?" + +#: app/fileops.c:1101 +msgid "File Exists!" +msgstr "Datein Existiert!" + +#: app/flip_tool.c:73 +msgid "Horizontal" +msgstr "" + +#: app/flip_tool.c:74 +msgid "Vertical" +msgstr "" + +#. the main label +#: app/flip_tool.c:85 +msgid "Flip Tool Options" +msgstr "Spiegelwerkzeugeinstellungen" + +#: app/flip_tool.c:345 +msgid "Type of flip: { HORIZONTAL (0), VERTICAL (1) }" +msgstr "" + +#: app/flip_tool.c:353 +msgid "the flipped drawable" +msgstr "" + +#: app/flip_tool.c:360 +msgid "Flip the specified drawable about its center either vertically or horizontally" +msgstr "" + +#: app/flip_tool.c:361 +msgid "This tool flips the specified drawable if no selection exists. If a selection exists, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then flipd by the specified amount. The return value is the ID of the flipped drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and flipd drawable. The flip type parameter indicates whether the flip will be applied horizontally or vertically." +msgstr "" + +#: app/floating_sel.c:108 +msgid "" +"Cannot anchor this layer because\n" +"it is not a floating selection." +msgstr "" + +#: app/floating_sel.c:174 +msgid "" +"Cannot create a new layer from the floating\n" +"selection because it belongs to a\n" +"layer mask or channel." +msgstr "" + +#: app/floating_sel_cmds.c:64 app/floating_sel_cmds.c:122 app/floating_sel_cmds.c:180 +msgid "the floating selection" +msgstr "" + +#: app/floating_sel_cmds.c:71 +msgid "Remove the specified floating selection from its associated drawable" +msgstr "" + +#: app/floating_sel_cmds.c:72 +msgid "This procedure removes the floating selection completely, without any side effects. The associated drawable is then set to active." +msgstr "" + +#: app/floating_sel_cmds.c:129 +msgid "Anchor the specified floating selection to its associated drawable" +msgstr "" + +#: app/floating_sel_cmds.c:130 +msgid "This procedure anchors the floating selection to its associated drawable. This is similar to merging with a merge type of ClipToBottomLayer. The floating selection layer is no longer valid after this operation." +msgstr "" + +#: app/floating_sel_cmds.c:187 +msgid "Transforms the specified floating selection into a layer" +msgstr "" + +#: app/floating_sel_cmds.c:188 +msgid "This procedure transforms the specified floating selection into a layer with the same offsets and extents. The composited image will look precisely the same, but the floating selection layer will no longer be clipped to the extents of the drawable it was attached to. The floating selection will become the active layer. This procedure will not work if the floating selection has a different base type from the underlying image. This might be the case if the floating selection is above an auxillary channel or a layer mask." +msgstr "" + +#: app/free_select.c:72 +msgid "Unable to reallocate points array in free_select." +msgstr "" + +#: app/free_select.c:217 +msgid "Cannot properly scanline convert polygon!\n" +msgstr "" + +#: app/free_select.c:498 +msgid "number of points (count 1 coordinate as two points)" +msgstr "" + +#: app/free_select.c:502 +msgid "array of points: { p1.x, p1.y, p2.x, p2.y, ..., pn.x, pn.y}" +msgstr "" + +#: app/free_select.c:510 +msgid "antialiasing option for selections" +msgstr "" + +#: app/free_select.c:525 +msgid "Create a polygonal selection over the specified image" +msgstr "" + +#: app/free_select.c:526 +msgid "This tool creates a polygonal selection over the specified image. The polygonal region can be either added to, subtracted from, or replace the contents of the previous selection mask. The polygon is specified through an array of floating point numbers and its length. The length of array must be 2n, where n is the number of points. Each point is defined by 2 floating point values which correspond to the x and y coordinates. If the final point does not connect to the starting point, a connecting segment is automatically added. If the feather option is enabled, the resulting selection is blurred before combining. The blur is a gaussian blur with the specified feather radius." +msgstr "" + +#: app/fuzzy_select.c:594 +msgid "x coordinate of initial seed fill point: (image coordinates)" +msgstr "" + +#: app/fuzzy_select.c:598 +msgid "y coordinate of initial seed fill point: (image coordinates)" +msgstr "" + +#: app/fuzzy_select.c:629 +msgid "Create a fuzzy selection starting at the specified coordinates on the specified drawable" +msgstr "" + +#: app/fuzzy_select.c:630 +msgid "" +"This tool creates a fuzzy selection over the specified image. A fuzzy selection is determined by a seed fill under the constraints of the specified threshold. Essentially, the color at the specified coordinates (in the drawable) is measured and the selection expands outwards from that point to any adjacent pixels which are not significantly different (as determined by the threshold value). This process continues until no more expansion is possible. The antialiasing parameter allows the final selection mask to contain intermediate values based on close misses to the threshold bar at pixels along the seed fill boundary. Feathering can be enabled optionally and is controlled with the \"feather_radius\" paramter. If the sample_merged parameter is non-zero, the data of the composite image will be used instead of that for the specified drawable. This is equivalent to sampling for colors after merging all visible layers. In the case of a merged sampling, the supplied drawable is " +"ignored. If the sample is merged, the specified coordinates are relative to the image origin; otherwise, they are relative to the drawable's origin." +msgstr "" + +#: app/gdisplay.c:164 +msgid "RGB-empty" +msgstr "RGB leer" + +#: app/gdisplay.c:167 +msgid "grayscale-empty" +msgstr "Graustufen leer" + +#: app/gdisplay.c:167 +msgid "grayscale" +msgstr "Graustufen" + +#: app/gdisplay.c:170 +msgid "indexed-empty" +msgstr "Indiziert leer" + +#: app/gdisplay.c:170 +msgid "indexed" +msgstr "Indiziert" + +#: app/gdisplay.c:212 +msgid "Deleted idlerendering gdisp %p...\n" +msgstr "" + +#: app/gdisplay.c:213 +msgid "\tIdlerender stops now!\n" +msgstr "" + +#: app/gdisplay.c:216 +msgid "\tDeletion finished.\n" +msgstr "" + +#: app/gdisplay.c:441 +msgid "Wanted to start idlerender thread with no update_areas. (+memleak)" +msgstr "" + +#: app/gdisplay.c:1319 +msgid "/Layers/Raise Layer" +msgstr "/Schichten/Schicht nach vorne" + +#: app/gdisplay.c:1320 +msgid "/Layers/Lower Layer" +msgstr "/Schichten/Schicht nach hinten" + +#: app/gdisplay.c:1321 +msgid "/Layers/Anchor Layer" +msgstr "/Schichten/Schicht verankern" + +#: app/gdisplay.c:1322 +msgid "/Layers/Merge Visible Layers" +msgstr "/Schichten/Sichtbare Schichten vereinen" + +#: app/gdisplay.c:1323 +msgid "/Layers/Flatten Image" +msgstr "/Schichten/Bild zusammenf\374gen" + +#: app/gdisplay.c:1324 +msgid "/Layers/Alpha To Selection" +msgstr "/Schichten/Auswahl aus Alphakanal" + +#: app/gdisplay.c:1325 +msgid "/Layers/Mask To Selection" +msgstr "/Schichten/Auswahl aus Maske" + +#: app/gdisplay.c:1326 +msgid "/Layers/Add Alpha Channel" +msgstr "/Schichten/Neuer Alphakanal" + +#: app/gdisplay.c:1328 +msgid "/Image/RGB" +msgstr "/Bild/RGB" + +#: app/gdisplay.c:1329 +msgid "/Image/Grayscale" +msgstr "/Bild/Graustufen" + +#: app/gdisplay.c:1330 +msgid "/Image/Indexed" +msgstr "/Bild/Indiziert" + +#: app/gdisplay.c:1332 +msgid "/Image/Colors/Threshold" +msgstr "/Bild/Farben/Schwellwert" + +#: app/gdisplay.c:1333 +msgid "/Image/Colors/Posterize" +msgstr "/Bild/Farben/Posterisieren" + +#: app/gdisplay.c:1334 +msgid "/Image/Colors/Equalize" +msgstr "/Bild/Farben/Ausgleichen" + +#: app/gdisplay.c:1335 +msgid "/Image/Colors/Invert" +msgstr "/Bild/Farben/Invertieren" + +#: app/gdisplay.c:1337 +msgid "/Image/Colors/Color Balance" +msgstr "/Bild/Farben/Ausgleichen" + +#: app/gdisplay.c:1338 +msgid "/Image/Colors/Brightness-Contrast" +msgstr "/Bild/Farben/Helligkeit-Kontrast" + +#: app/gdisplay.c:1339 +msgid "/Image/Colors/Hue-Saturation" +msgstr "/Bild/Farben/Farbton-S\344ttigung" + +#: app/gdisplay.c:1340 +msgid "/Image/Colors/Curves" +msgstr "/Bild/Farben/Kurven" + +#: app/gdisplay.c:1341 +msgid "/Image/Colors/Levels" +msgstr "/Bild/Farben/Werte" + +#: app/gdisplay.c:1343 +msgid "/Image/Colors/Desaturate" +msgstr "/Bild/Farben/S\344ttigung vermindern" + +#: app/gdisplay.c:1345 +msgid "/Image/Alpha/Add Alpha Channel" +msgstr "/Bild/Alpha/Erstelle Alphakanal" + +#: app/gdisplay.c:1347 +msgid "/Select" +msgstr "/Auswahl" + +#: app/gdisplay.c:1348 +msgid "/Edit/Cut" +msgstr "/Bearbeiten/Ausschneiden" + +#: app/gdisplay.c:1349 +msgid "/Edit/Copy" +msgstr "/Bearbeiten/Kopieren" + +#: app/gdisplay.c:1350 +msgid "/Edit/Paste" +msgstr "/Bearbeiten/Einf\374gen" + +#: app/gdisplay.c:1351 +msgid "/Edit/Paste Into" +msgstr "/Bearbeiten/Einf\374gen in..." + +#: app/gdisplay.c:1352 +msgid "/Edit/Clear" +msgstr "/Bearbeiten/L\366schen" + +#: app/gdisplay.c:1353 +msgid "/Edit/Fill" +msgstr "/Bearbeiten/F\374llen" + +#: app/gdisplay.c:1354 +msgid "/Edit/Stroke" +msgstr "/Bearbeiten/Nachfahren" + +#: app/gdisplay.c:1355 +msgid "/Edit/Cut Named" +msgstr "/Bearbeiten/Mit Namen ausschneiden" + +#: app/gdisplay.c:1356 +msgid "/Edit/Copy Named" +msgstr "/Bearbeiten/Mit Namen kopieren" + +#: app/gdisplay.c:1357 +msgid "/Edit/Paste Named" +msgstr "/Bearbeiten/Mit Namen einf\374gen" + +#: app/gdisplay.c:1358 +msgid "/Image/Colors" +msgstr "/Bild/Farben" + +#: app/gdisplay.c:1359 +msgid "/Image/Channel Ops/Offset" +msgstr "/Bild/Kanal/Überstand" + +#: app/gdisplay.c:1360 +msgid "/Image/Histogram" +msgstr "/Bild/Histogram" + +#: app/gdisplay.c:1361 +msgid "/Filters" +msgstr "/Filter" + +#: app/gdisplay.c:1364 +msgid "/Select/Save To Channel" +msgstr "/Auswahl/In Kanal speichern" + +#: app/gdisplay.c:1366 +msgid "/View/Toggle Rulers" +msgstr "/Ansicht/Lineale an/aus" + +#: app/gdisplay.c:1367 +msgid "/View/Toggle Guides" +msgstr "/Ansicht/Hilfslinien an/aus" + +#: app/gdisplay.c:1368 +msgid "/View/Snap To Guides" +msgstr "/Ansicht/magnetische Hilfslinien an/aus" + +#: app/gdisplay.c:1369 +msgid "/View/Toggle Statusbar" +msgstr "/Ansicht/Statusleiste an/aus" + +#: app/gdisplay.c:1757 +msgid "gdisplays_flush() called recursively." +msgstr "" + +#: app/gdisplay_ops.c:278 app/gdisplay_ops.c:297 app/gdisplay_ops.c:307 app/gdisplay_ops.c:343 +msgid "/File/Close" +msgstr "/Datei/Schlie\337en" + +#: app/gdisplay_ops.c:366 +msgid "Changes were made to %s. Close anyway?" +msgstr "Es wurden Ver\344nderungen vorgenommen an %s. Trotzdem schlie\337en?" + +#: app/install.c:52 +msgid "No home directory--skipping GIMP user installation." +msgstr "" + +#: app/install.c:67 +msgid "The GIMP is not properly installed for the current user\n" +msgstr "" + +#: app/install.c:68 +msgid "User installation was skipped because the '--nointerface' flag was encountered\n" +msgstr "" + +#: app/install.c:69 +msgid "To perform user installation, run the GIMP without the '--nointerface' flag\n" +msgstr "" + +#: app/install.c:88 +msgid "Install" +msgstr "Installieren" + +#: app/install.c:89 +msgid "Ignore" +msgstr "Ignorieren" + +#: app/install.c:90 app/install.c:366 +msgid "Quit" +msgstr "Beenden" + +#: app/install.c:105 +msgid "GIMP Installation" +msgstr "GIMP Installation" + +#: app/install.c:141 +msgid "" +"The GIMP - GNU Image Manipulation Program\n" +"\n" +msgstr "" + +#: app/install.c:143 +msgid "Copyright (C) 1995 Spencer Kimball and Peter Mattis\n" +msgstr "" + +#: app/install.c:147 +msgid "This program is free software; you can redistribute it and/or modify\n" +msgstr "" + +#: app/install.c:149 +msgid "it under the terms of the GNU General Public License as published by\n" +msgstr "" + +#: app/install.c:151 +msgid "the Free Software Foundation; either version 2 of the License, or\n" +msgstr "" + +#: app/install.c:153 +msgid "(at your option) any later version.\n" +msgstr "" + +#: app/install.c:157 +msgid "This program is distributed in the hope that it will be useful,\n" +msgstr "" + +#: app/install.c:159 +msgid "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" +msgstr "" + +#: app/install.c:161 +msgid "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n" +msgstr "" + +#: app/install.c:163 +msgid "See the GNU General Public License for more details.\n" +msgstr "" + +#: app/install.c:167 +msgid "You should have received a copy of the GNU General Public License\n" +msgstr "" + +#: app/install.c:169 +msgid "along with this program; if not, write to the Free Software\n" +msgstr "" + +#: app/install.c:171 +msgid "Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n" +msgstr "" + +#: app/install.c:176 +msgid "" +"Personal GIMP Installation\n" +"\n" +msgstr "" + +#: app/install.c:178 +msgid "For a proper GIMP installation, a subdirectory called\n" +msgstr "" + +#: app/install.c:182 +msgid " needs to be created. This\n" +msgstr "" + +#: app/install.c:184 +msgid "" +"subdirectory will contain a number of important files:\n" +"\n" +msgstr "" + +#: app/install.c:186 +msgid "gimprc\n" +msgstr "" + +#: app/install.c:188 +msgid "\t\tThe gimprc is used to store personal preferences\n" +msgstr "" + +#: app/install.c:190 +msgid "\t\tsuch as default GIMP behaviors & plug-in hotkeys.\n" +msgstr "" + +#: app/install.c:192 +msgid "\t\tPaths to search for brushes, palettes, gradients\n" +msgstr "" + +#: app/install.c:194 +msgid "\t\tpatterns, and plug-ins are also configured here.\n" +msgstr "" + +#: app/install.c:196 +msgid "pluginrc\n" +msgstr "" + +#: app/install.c:198 +msgid "\t\tPlug-ins and extensions are extern programs run by\n" +msgstr "" + +#: app/install.c:200 +msgid "\t\tthe GIMP which provide additional functionality.\n" +msgstr "" + +#: app/install.c:202 +msgid "\t\tThese programs are searched for at run-time and\n" +msgstr "" + +#: app/install.c:204 +msgid "\t\tinformation about their functionality and mod-times\n" +msgstr "" + +#: app/install.c:206 +msgid "\t\tis cached in this file. This file is intended to\n" +msgstr "" + +#: app/install.c:208 +msgid "\t\tbe GIMP-readable only, and should not be edited.\n" +msgstr "" + +#: app/install.c:210 +msgid "brushes\n" +msgstr "Pinsel\n" + +#: app/install.c:212 app/install.c:224 app/install.c:236 app/install.c:248 app/install.c:260 app/install.c:278 app/install.c:290 +msgid "\t\tThis is a subdirectory which can be used to store\n" +msgstr "" + +#: app/install.c:214 +msgid "\t\tuser defined brushes. The default gimprc file\n" +msgstr "" + +#: app/install.c:216 app/install.c:228 app/install.c:282 app/install.c:296 +msgid "\t\tchecks this subdirectory in addition to the system-\n" +msgstr "" + +#: app/install.c:218 +msgid "\t\twide gimp brushes installation when searching for\n" +msgstr "" + +#: app/install.c:220 +msgid "\t\tbrushes.\n" +msgstr "\t\tPinsel.\n" + +#: app/install.c:222 +msgid "gradients\n" +msgstr "Farbverl\344ufe\n" + +#: app/install.c:226 +msgid "\t\tuser defined gradients. The default gimprc file\n" +msgstr "" + +#: app/install.c:230 +msgid "\t\twide gimp gradients installation when searching for\n" +msgstr "" + +#: app/install.c:232 +msgid "\t\tgradients.\n" +msgstr "\t\tFarbverl\344ufe.\n" + +#: app/install.c:234 +msgid "gfig\n" +msgstr "" + +#: app/install.c:238 +msgid "\t\tuser defined figures to be used by the gfig plug-in.\n" +msgstr "" + +#: app/install.c:240 app/install.c:252 +msgid "\t\tThe default gimprc file checks this subdirectory in\n" +msgstr "" + +#: app/install.c:242 +msgid "\t\taddition to the systemwide gimp gfig installation\n" +msgstr "" + +#: app/install.c:244 +msgid "\t\twhen searching for gfig figures.\n" +msgstr "" + +#: app/install.c:246 +msgid "gflares\n" +msgstr "" + +#: app/install.c:250 +msgid "\t\tuser defined gflares to be used by the gflare plug-in.\n" +msgstr "" + +#: app/install.c:254 +msgid "\t\taddition to the systemwide gimp gflares installation\n" +msgstr "" + +#: app/install.c:256 +msgid "\t\twhen searching for gflares.\n" +msgstr "" + +#: app/install.c:258 +msgid "palettes\n" +msgstr "Farben\n" + +#: app/install.c:262 +msgid "\t\tuser defined palettes. The default gimprc file\n" +msgstr "" + +#: app/install.c:264 +msgid "\t\tchecks only this subdirectory (not the system-wide\n" +msgstr "" + +#: app/install.c:266 +msgid "\t\tinstallation) when searching for palettes. During\n" +msgstr "" + +#: app/install.c:268 +msgid "\t\tinstallation, the system palettes will be copied\n" +msgstr "" + +#: app/install.c:270 +msgid "\t\there. This is done to allow modifications made to\n" +msgstr "" + +#: app/install.c:272 +msgid "\t\tpalettes during GIMP execution to persist across\n" +msgstr "" + +#: app/install.c:274 +msgid "\t\tsessions.\n" +msgstr "" + +#: app/install.c:276 +msgid "patterns\n" +msgstr "Muster\n" + +#: app/install.c:280 +msgid "\t\tuser defined patterns. The default gimprc file\n" +msgstr "" + +#: app/install.c:284 +msgid "\t\twide gimp patterns installation when searching for\n" +msgstr "" + +#: app/install.c:286 +msgid "\t\tpatterns.\n" +msgstr "\t\tMuster.\n" + +#: app/install.c:288 +msgid "plug-ins\n" +msgstr "" + +#: app/install.c:292 +msgid "\t\tuser created, temporary, or otherwise non-system-\n" +msgstr "" + +#: app/install.c:294 +msgid "\t\tsupported plug-ins. The default gimprc file\n" +msgstr "" + +#: app/install.c:298 +msgid "\t\twide GIMP plug-in directories when searching for\n" +msgstr "" + +#: app/install.c:300 +msgid "\t\tplug-ins.\n" +msgstr "" + +#: app/install.c:302 +msgid "scripts\n" +msgstr "" + +#: app/install.c:304 +msgid "\t\tThis subdirectory is used by the GIMP to store \n" +msgstr "" + +#: app/install.c:306 +msgid "\t\tuser created and installed scripts. The default gimprc\n" +msgstr "" + +#: app/install.c:308 +msgid "\t\tfile checks this subdirectory in addition to the system\n" +msgstr "" + +#: app/install.c:310 +msgid "\t\t-wide gimp scripts subdirectory when searching for scripts\n" +msgstr "" + +#: app/install.c:312 +msgid "tmp\n" +msgstr "" + +#: app/install.c:314 +msgid "\t\tThis subdirectory is used by the GIMP to temporarily\n" +msgstr "" + +#: app/install.c:316 +msgid "\t\tstore undo buffers to reduce memory usage. If GIMP is\n" +msgstr "" + +#: app/install.c:318 +msgid "\t\tunceremoniously killed, files may persist in this directory\n" +msgstr "" + +#: app/install.c:320 +msgid "\t\tof the form: gimp<#>.<#>. These files are useless across\n" +msgstr "" + +#: app/install.c:322 +msgid "\t\tGIMP sessions and can be destroyed with impunity.\n" +msgstr "" + +#: app/install.c:365 +msgid "Continue" +msgstr "Weiter" + +#: app/install.c:385 +msgid "Installation Log" +msgstr "" + +#: app/install.c:416 +msgid "" +"User Installation Log\n" +"\n" +msgstr "" + +#: app/install.c:424 +msgid " does not exist. Cannot install.\n" +msgstr "" + +#: app/install.c:431 +msgid "" +" has invalid permissions.\n" +"Cannot install." +msgstr "" + +#: app/install.c:446 +msgid "" +"\n" +"Installation successful!\n" +msgstr "" + +#: app/install.c:453 +msgid "" +"\n" +"Installation failed. Contact system administrator.\n" +msgstr "" #: app/main.c:265 msgid "GIMP version" @@ -40,7 +3208,7 @@ msgstr "\007Benutzung: %s [Option ...] [Datei ...]\n" #: app/main.c:270 msgid "Valid options are:\n" -msgstr "Gültige Optionen sind:\n" +msgstr "G\374ltige Möglichkeiten sind:\n" #: app/main.c:271 msgid " -h --help Output this help.\n" @@ -60,7 +3228,7 @@ msgstr " -g --gimprc Benutzt ein alternatives Profil.\n" #: app/main.c:275 msgid " -n --no-interface Run without a user interface.\n" -msgstr " -n --no-interface Startet ohne Oberfläche.\n" +msgstr " -n --no-interface Startet ohne Oberfl\344che.\n" #: app/main.c:276 msgid " -r --restore-session Try to restore saved session.\n" @@ -68,7 +3236,7 @@ msgstr " -r --restore-session Versucht eine abgelegte Sitzung wiederherzust #: app/main.c:277 msgid " --no-data Do not load patterns, gradients, palettes, brushes.\n" -msgstr " --no-data Lädt keine Muster, Farbverläufe, Farben und Pinsel.\n" +msgstr " --no-data L\344dt keine Muster, Farbverl\344ufe, Farben und Pinsel.\n" #: app/main.c:278 msgid " --verbose Show startup messages.\n" @@ -80,7 +3248,7 @@ msgstr " --no-splash Verbirgt Startfenster.\n" #: app/main.c:280 msgid " --no-splash-image Do not add an image to the startup window.\n" -msgstr " --no-splash-image Lädt kein Bild ins Startfenster.\n" +msgstr " --no-splash-image L\344dt kein Bild ins Startfenster.\n" #: app/main.c:281 msgid " --no-shm Do not use shared memory between GIMP and its plugins.\n" @@ -156,11 +3324,11 @@ msgstr "/Datei/Neu" #: app/menus.c:50 app/menus.c:76 msgid "/File/Open" -msgstr "/Datei/Öffnen" +msgstr "/Datei/\326ffnen" #: app/menus.c:51 msgid "/File/About..." -msgstr "/Datei/Über..." +msgstr "/Datei/\334ber..." #: app/menus.c:52 app/menus.c:79 msgid "/File/Preferences..." @@ -170,9 +3338,9 @@ msgstr "/Datei/Einstellungen..." msgid "/File/Tip of the day" msgstr "/Datei/Tip des Tages" -#: app/menus.c:54 app/menus.c:65 app/menus.c:70 app/menus.c:80 app/menus.c:85 +#: app/menus.c:54 app/menus.c:65 app/menus.c:70 app/menus.c:80 app/menus.c:84 msgid "/File/---" -msgstr "Datei/---" +msgstr "/Datei/---" #: app/menus.c:55 msgid "/File/Dialogs/Brushes..." @@ -188,23 +3356,23 @@ msgstr "/Datei/Dialoge/Farben..." #: app/menus.c:58 msgid "/File/Dialogs/Gradient Editor..." -msgstr "/Datei/Dialoge/Farbverläufe..." +msgstr "/Datei/Dialoge/Farbverl\344ufe..." #: app/menus.c:59 msgid "/File/Dialogs/Layers & Channels..." -msgstr "/Datei/Dialoge/Schichten und Kanäle..." +msgstr "/Datei/Dialoge/Schichten und Kan\344le..." #: app/menus.c:60 msgid "/File/Dialogs/Tool Options..." -msgstr "/Datei/Dialoge/Werkzeugoptionen..." +msgstr "/Datei/Dialoge/Werkzeugeinstellungen..." #: app/menus.c:61 msgid "/File/Dialogs/Input Devices..." -msgstr "/Datei/Dialoge/Eingabegeräte..." +msgstr "/Datei/Dialoge/Eingabeger\344te..." #: app/menus.c:62 msgid "/File/Dialogs/Device Status..." -msgstr "/Datei/Dialoge/Gerätestatus..." +msgstr "/Datei/Dialoge/Ger\344testatus..." #: app/menus.c:63 msgid "/File/Dialogs/Document Index..." @@ -214,7 +3382,7 @@ msgstr "/Datei/Dialoge/Dokumentenindex..." msgid "/File/Dialogs/Error Console..." msgstr "/Datei/Dialoge/Fehlerkonsole..." -#: app/menus.c:71 app/menus.c:84 +#: app/menus.c:71 app/menus.c:83 msgid "/File/Quit" msgstr "/Datei/Beenden" @@ -226,187 +3394,190 @@ msgstr "/Datei/Speichern" msgid "/File/Save as" msgstr "/Datei/Speichern unter..." -#: app/menus.c:83 +#: app/menus.c:82 msgid "/File/Close" -msgstr "/Datei/Schließen" +msgstr "/Datei/Schlie\337en" -#: app/menus.c:87 +#: app/menus.c:86 msgid "/Edit/Cut" msgstr "/Bearbeiten/Ausschneiden" -#: app/menus.c:88 +#: app/menus.c:87 msgid "/Edit/Copy" msgstr "/Bearbeiten/Kopieren" -#: app/menus.c:89 +#: app/menus.c:88 msgid "/Edit/Paste" -msgstr "/Bearbeiten/Einfügen" +msgstr "/Bearbeiten/Einf\374gen" + +#: app/menus.c:89 +msgid "/Edit/Paste Into" +msgstr "/Bearbeiten/Einf\374gen in..." #: app/menus.c:90 -msgid "/Edit/Paste Into" -msgstr "/Bearbeiten/Einfügen in..." +msgid "/Edit/Clear" +msgstr "/Bearbeiten/L\366schen" #: app/menus.c:91 -msgid "/Edit/Clear" -msgstr "/Bearbeiten/Löschen" +msgid "/Edit/Fill" +msgstr "/Bearbeiten/F\374llen" #: app/menus.c:92 -msgid "/Edit/Fill" -msgstr "/Bearbeiten/Füllen" - -#: app/menus.c:93 msgid "/Edit/Stroke" msgstr "/Bearbeiten/Nachfahren" -#: app/menus.c:94 +#: app/menus.c:93 msgid "/Edit/Undo" -msgstr "/Bearbeiten/Rückgängig" +msgstr "/Bearbeiten/R\374ckg\344ngig" -#: app/menus.c:95 +#: app/menus.c:94 msgid "/Edit/Redo" msgstr "/Bearbeiten/Wiederholen" -#: app/menus.c:96 app/menus.c:100 +#: app/menus.c:95 app/menus.c:99 msgid "/Edit/---" msgstr "/Bearbeiten/---" -#: app/menus.c:97 +#: app/menus.c:96 msgid "/Edit/Cut Named" msgstr "/Bearbeiten/Mit Namen ausschneiden" -#: app/menus.c:98 +#: app/menus.c:97 msgid "/Edit/Copy Named" msgstr "/Bearbeiten/Mit Namen kopieren" -#: app/menus.c:99 +#: app/menus.c:98 msgid "/Edit/Paste Named" -msgstr "/Bearbeiten/Mit Namen einfügen" +msgstr "/Bearbeiten/Mit Namen einf\374gen" -#: app/menus.c:102 +#: app/menus.c:101 msgid "/Select/Toggle" msgstr "/Auswahl/Umschalten" -#: app/menus.c:103 +#: app/menus.c:102 msgid "/Select/Invert" -msgstr "/Auswahl/Ivertieren" +msgstr "/Auswahl/Invertieren" -#: app/menus.c:104 +#: app/menus.c:103 msgid "/Select/All" msgstr "/Auswahl/Alles" -#: app/menus.c:105 +#: app/menus.c:104 msgid "/Select/None" msgstr "/Auswahl/Nichts" -#: app/menus.c:106 +#: app/menus.c:105 msgid "/Select/Float" -msgstr "/Auswahl/Fließend" +msgstr "/Auswahl/Flie\337end" + +#: app/menus.c:106 +msgid "/Select/Sharpen" +msgstr "/Auswahl/Sch\344rfen" #: app/menus.c:107 -msgid "/Select/Sharpen" -msgstr "/Auswahl/Schärfen" - -#: app/menus.c:108 msgid "/Select/Border" msgstr "/Auswahl/Rand" -#: app/menus.c:109 +#: app/menus.c:108 msgid "/Select/Feather" msgstr "/Auswahl/Runden" -#: app/menus.c:110 +#: app/menus.c:109 msgid "/Select/Grow" -msgstr "/Auswahl/Vergrößern" +msgstr "/Auswahl/Vergr\366\337ern" -#: app/menus.c:111 +#: app/menus.c:110 msgid "/Select/Shrink" msgstr "/Auswahl/Schrumpfen" -#: app/menus.c:112 +#: app/menus.c:111 msgid "/Select/Save To Channel" msgstr "/Auswahl/In Kanal speichern" -#: app/menus.c:117 +#. +#. { "/Select/By Color...", NULL, tools_select_cmd_callback, BY_COLOR_SELECT }, +#. +#: app/menus.c:116 msgid "/View/Zoom In" msgstr "/Ansicht/Hineinzoomen" -#: app/menus.c:118 +#: app/menus.c:117 msgid "/View/Zoom Out" msgstr "/Ansicht/Herauszoomen" -#: app/menus.c:119 +#: app/menus.c:118 msgid "/View/Zoom/16:1" msgstr "/Ansicht/Zoom/16:!" -#: app/menus.c:120 +#: app/menus.c:119 msgid "/View/Zoom/8:1" msgstr "/Ansicht/Zoom/8:1" -#: app/menus.c:121 +#: app/menus.c:120 msgid "/View/Zoom/4:1" msgstr "/Ansicht/Zoom/4:1" -#: app/menus.c:122 +#: app/menus.c:121 msgid "/View/Zoom/2:1" msgstr "/Ansicht/Zoom/2:1" -#: app/menus.c:123 +#: app/menus.c:122 msgid "/View/Zoom/1:1" msgstr "/Ansicht/Zoom/1:1" -#: app/menus.c:124 +#: app/menus.c:123 msgid "/View/Zoom/1:2" msgstr "/Ansicht/Zoom/1:2" -#: app/menus.c:125 +#: app/menus.c:124 msgid "/View/Zoom/1:4" msgstr "/Ansicht/Zoom/1:4" -#: app/menus.c:126 +#: app/menus.c:125 msgid "/View/Zoom/1:8" msgstr "/Ansicht/Zoom/1:8" -#: app/menus.c:127 +#: app/menus.c:126 msgid "/View/Zoom/1:16" msgstr "/Ansicht/Zoom/1:16" -#: app/menus.c:128 +#: app/menus.c:127 msgid "/View/Window Info..." msgstr "/Ansicht/Fensterinformationen..." -#: app/menus.c:129 +#: app/menus.c:128 msgid "/View/Toggle Rulers" msgstr "/Ansicht/Lineale an/aus" -#: app/menus.c:130 +#: app/menus.c:129 msgid "/View/Toggle Statusbar" msgstr "/Ansicht/Statusleiste an/aus" -#: app/menus.c:131 +#: app/menus.c:130 msgid "/View/Toggle Guides" msgstr "/Ansicht/Hilfslinien an/aus" -#: app/menus.c:132 +#: app/menus.c:131 msgid "/View/Snap To Guides" msgstr "/Ansicht/magnetische Hilfslinien an/aus" -#: app/menus.c:133 +#: app/menus.c:132 msgid "/View/---" msgstr "/Ansicht/---" -#: app/menus.c:134 +#: app/menus.c:133 msgid "/View/New View" msgstr "/Ansicht/Neues Fenster" -#: app/menus.c:135 +#: app/menus.c:134 msgid "/View/Shrink Wrap" msgstr "/Ansicht/Sicht verkleinern" -#: app/menus.c:137 +#: app/menus.c:136 msgid "/Image/Colors/Equalize" msgstr "/Bild/Farben/Ausgleichen" -#: app/menus.c:138 +#: app/menus.c:137 msgid "/Image/Colors/Invert" msgstr "/Bild/Farben/Invertieren" @@ -420,189 +3591,1958 @@ msgstr "/Bild/Farben/Invertieren" #. { N_("/Image/Colors/Curves"), NULL, tools_select_cmd_callback, CURVES }, #. { N_("/Image/Colors/Levels"), NULL, tools_select_cmd_callback, LEVELS }, #. -#: app/menus.c:149 +#: app/menus.c:148 msgid "/Image/Colors/---" msgstr "/Bild/Farben/---" -#: app/menus.c:150 +#: app/menus.c:149 msgid "/Image/Colors/Desaturate" -msgstr "/Bild/Farben/Sättigung vermindern" +msgstr "/Bild/Farben/S\344ttigung vermindern" -#: app/menus.c:151 +#: app/menus.c:150 msgid "/Image/Channel Ops/Duplicate" msgstr "/Bild/Kanal/Duplizieren" -#: app/menus.c:152 +#: app/menus.c:151 msgid "/Image/Channel Ops/Offset" -msgstr "/Bild/Kanal/Abstand" +msgstr "/Bild/Kanal/Überstand" -#: app/menus.c:153 +#: app/menus.c:152 msgid "/Image/Alpha/Add Alpha Channel" msgstr "/Bild/Alpha/Erstelle Alphakanal" #. { N_("/Image/Histogram"), NULL, tools_select_cmd_callback, HISTOGRAM}, -#: app/menus.c:155 app/menus.c:159 app/menus.c:162 app/menus.c:164 +#: app/menus.c:154 app/menus.c:158 app/menus.c:161 app/menus.c:163 msgid "/Image/---" msgstr "/Bild/---" -#: app/menus.c:156 +#: app/menus.c:155 msgid "/Image/RGB" msgstr "/Bild/RGB" -#: app/menus.c:157 +#: app/menus.c:156 msgid "/Image/Grayscale" msgstr "/Bild/Graustufen" -#: app/menus.c:158 +#: app/menus.c:157 msgid "/Image/Indexed" msgstr "/Bild/Indiziert" -#: app/menus.c:160 +#: app/menus.c:159 msgid "/Image/Resize" -msgstr "/Bild/Größe verändern" +msgstr "/Bild/Gr\366\337e ver\344ndern" -#: app/menus.c:161 +#: app/menus.c:160 msgid "/Image/Scale" msgstr "/Bild/Skalieren" -#: app/menus.c:166 +#: app/menus.c:165 msgid "/Layers/Layers & Channels..." -msgstr "/Schichten/Schichten und Kanäle..." +msgstr "/Schichten/Schichten und Kan\344le..." -#: app/menus.c:167 +#: app/menus.c:166 msgid "/Layers/Raise Layer" msgstr "/Schichten/Schicht nach vorne" -#: app/menus.c:168 +#: app/menus.c:167 msgid "/Layers/Lower Layer" msgstr "/Schichten/Schicht nach hinten" -#: app/menus.c:169 +#: app/menus.c:168 msgid "/Layers/Anchor Layer" msgstr "/Schichten/Schicht verankern" -#: app/menus.c:170 +#: app/menus.c:169 msgid "/Layers/Merge Visible Layers" msgstr "/Schichten/Sichtbare Schichten vereinen" -#: app/menus.c:171 +#: app/menus.c:170 msgid "/Layers/Flatten Image" -msgstr "/Schichten/Bild zusammenfügen" +msgstr "/Schichten/Bild zusammenf\374gen" -#: app/menus.c:172 +#: app/menus.c:171 msgid "/Layers/Alpha To Selection" msgstr "/Schichten/Auswahl aus Alphakanal" -#: app/menus.c:173 +#: app/menus.c:172 msgid "/Layers/Mask To Selection" msgstr "/Schichten/Auswahl aus Maske" -#: app/menus.c:174 +#: app/menus.c:173 msgid "/Layers/Add Alpha Channel" msgstr "/Schichten/Neuer Alphakanal" -#: app/menus.c:200 +#. { N_("/Tools/Rect Select"), "R", tools_select_cmd_callback, RECT_SELECT }, +#. { N_("/Tools/Ellipse Select"), "E", tools_select_cmd_callback, ELLIPSE_SELECT }, +#. { N_("/Tools/Free Select"), "F", tools_select_cmd_callback, FREE_SELECT }, +#. { N_("/Tools/Fuzzy Select"), "Z", tools_select_cmd_callback, FUZZY_SELECT }, +#. { N_("/Tools/Bezier Select"), "B", tools_select_cmd_callback, BEZIER_SELECT }, +#. { N_("/Tools/Intelligent Scissors"), "I", tools_select_cmd_callback, ISCISSORS }, +#. { N_("/Tools/Move"), "M", tools_select_cmd_callback, MOVE }, +#. { N_("/Tools/Magnify"), "M", tools_select_cmd_callback, MAGNIFY }, +#. { N_("/Tools/Crop"), "C", tools_select_cmd_callback, CROP }, +#. { N_("/Tools/Transform"), "T", tools_select_cmd_callback, ROTATE }, +#. { N_("/Tools/Flip"), "F", tools_select_cmd_callback, FLIP_HORZ }, +#. { N_("/Tools/Text"), "T", tools_select_cmd_callback, TEXT }, +#. { N_("/Tools/Color Picker"), "O", tools_select_cmd_callback, COLOR_PICKER }, +#. { N_("/Tools/Bucket Fill"), "B", tools_select_cmd_callback, BUCKET_FILL }, +#. { N_("/Tools/Blend"), "L", tools_select_cmd_callback, BLEND }, +#. { N_("/Tools/Paintbrush"), "P", tools_select_cmd_callback, PAINTBRUSH }, +#. { N_("/Tools/Pencil"), "P", tools_select_cmd_callback, PENCIL }, +#. { N_("/Tools/Eraser"), "E", tools_select_cmd_callback, ERASER }, +#. { N_("/Tools/Airbrush"), "A", tools_select_cmd_callback, AIRBRUSH }, +#. { N_("/Tools/Clone"), "C", tools_select_cmd_callback, CLONE }, +#. { N_("/Tools/Convolve"), "V", tools_select_cmd_callback, CONVOLVE }, +#. { N_("/Tools/Ink"), "K", tools_select_cmd_callback, INK }, +#. { N_("/Tools/Default Colors"), "D", tools_default_colors_cmd_callback, 0 }, +#. { N_("/Tools/Swap Colors"), "X", tools_swap_colors_cmd_callback, 0 }, +#: app/menus.c:199 msgid "/Tools/Toolbox" msgstr "/Werkzeuge/Werkzeugkasten" -#: app/menus.c:201 +#: app/menus.c:200 msgid "/Tools/---" msgstr "/Werkzeuge/---" -#: app/menus.c:202 +#: app/menus.c:201 msgid "/Tools/Default Colors" msgstr "/Werkzeuge/Stadardfarben" -#: app/menus.c:203 +#: app/menus.c:202 msgid "/Tools/Swap Colors" msgstr "/Werkzeuge/Tausche Farben" -#: app/menus.c:204 +#: app/menus.c:203 msgid "/Filters/" msgstr "/Filter/" -#: app/menus.c:205 +#: app/menus.c:204 msgid "/Filters/Repeat last" msgstr "/Filter/Wiederhole letzten Vorgang" -#: app/menus.c:206 +#: app/menus.c:205 msgid "/Filters/Re-show last" msgstr "/Filter/Zeige letzten Vorgang nochmal" -#: app/menus.c:207 +#: app/menus.c:206 msgid "/Filters/---" msgstr "/Filter/---" -#: app/menus.c:209 +#: app/menus.c:208 msgid "/Script-Fu/" msgstr "/Script-Fu/" -#: app/menus.c:211 +#: app/menus.c:210 msgid "/Dialogs/Brushes..." msgstr "/Dialoge/Pinsel..." -#: app/menus.c:212 +#: app/menus.c:211 msgid "/Dialogs/Patterns..." msgstr "/Dialoge/Muster..." -#: app/menus.c:213 +#: app/menus.c:212 msgid "/Dialogs/Palette..." msgstr "/Dialoge/Farben...." -#: app/menus.c:214 +#: app/menus.c:213 msgid "/Dialogs/Gradient Editor..." -msgstr "/Dialoge/Farbverläufe..." +msgstr "/Dialoge/Farbverl\344ufe..." + +#: app/menus.c:214 +msgid "/Dialogs/Layers & Channels..." +msgstr "/Dialoge/Schichten und Kan\344le..." #: app/menus.c:215 -msgid "/Dialogs/Layers & Channels..." -msgstr "/Dialoge/Schichten und Kanäle..." - -#: app/menus.c:216 msgid "/Dialogs/Indexed Palette..." msgstr "/Dialoge/Indizierte Palette..." -#: app/menus.c:217 +#: app/menus.c:216 msgid "/Dialogs/Tool Options..." -msgstr "/Dialoge/Werkzeugoptionen..." +msgstr "/Dialoge/Werkzeugeinstellungen..." + +#: app/menus.c:217 +msgid "/Dialogs/Input Devices..." +msgstr "/Dialoge/Eingabeger\344te..." #: app/menus.c:218 -msgid "/Dialogs/Input Devices..." -msgstr "/Dialoge/Eingabegeräte..." - -#: app/menus.c:219 msgid "/Dialogs/Device Status..." -msgstr "/Dialoge/Gerätestatus..." +msgstr "/Dialoge/Ger\344testatus..." -#: app/menus.c:226 +#: app/menus.c:225 msgid "/Automatic" msgstr "/Automatisch" -#: app/menus.c:234 +#: app/menus.c:233 msgid "/By extension" -msgstr "/Nach Erweiterung" +msgstr "/Nach Endung" -#: app/menus.c:347 +#: app/menus.c:346 msgid "" "Unable to set sensitivity for menu which doesn't exist:\n" "%s" msgstr "" -"Kann keine Menüs de-/aktivieren, die nicht existieren:\n" +"Kann keine Men\374s de-/aktivieren, die nicht existieren:\n" "%s" -#: app/menus.c:372 +#: app/menus.c:371 msgid "" "Unable to set state for menu which doesn't exist:\n" "%s" msgstr "" -"Kann den Status eines Menüs nicht verändern, das nicht existiert:\n" +"Kann den Status eines Men\374s nicht ver\344ndern, das nicht existiert:\n" "%s" -#: app/menus.c:414 +#: app/menus.c:413 msgid "Error opening file: %s\n" -msgstr "Kann Datei nicht öffnen: %s\n" +msgstr "Kann Datei nicht \366ffnen: %s\n" -#: app/menus.c:436 app/menus.c:506 +#: app/menus.c:435 app/menus.c:505 msgid "/File/MRU%02d" +msgstr "/Datei/MRU%02d" + +#: app/plug_in.c:166 +msgid "Message to use in the progress dialog." +msgstr "" + +#: app/plug_in.c:169 +msgid "GDisplay to update progressbar in, or -1 for a seperate window" +msgstr "" + +#: app/plug_in.c:175 +msgid "Initializes the progress bar for the current plug-in" +msgstr "" + +#: app/plug_in.c:176 +msgid "Initializes the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in." +msgstr "" + +#: app/plug_in.c:192 +msgid "Percentage of progress completed" +msgstr "" + +#: app/plug_in.c:198 +msgid "Updates the progress bar for the current plug-in" +msgstr "" + +#: app/plug_in.c:199 +msgid "Updates the progress bar for the current plug-in. It is only valid to call this procedure from a plug-in." +msgstr "" + +#: app/plug_in.c:216 +msgid "Message to display in the dialog." +msgstr "" + +#: app/plug_in.c:222 +msgid "Displays a dialog box with a message" +msgstr "" + +#: app/plug_in.c:223 +msgid "Displays a dialog box with a message. Useful for status or error reporting." +msgstr "" + +#: app/plug_in.c:240 +msgid "the current handler type: { MESSAGE_BOX (0), CONSOLE (1) }" +msgstr "" + +#: app/plug_in.c:246 +msgid "Returns the current state of where warning messages are displayed." +msgstr "" + +#: app/plug_in.c:247 +msgid "This procedure returns the way g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started." +msgstr "" + +#: app/plug_in.c:263 +msgid "the new handler type: { MESSAGE_BOX (0), CONSOLE (1) }" +msgstr "" + +#: app/plug_in.c:269 +msgid "Controls where warning messages are displayed." +msgstr "" + +#: app/plug_in.c:270 +msgid "This procedure controls how g_message warnings are displayed. They can be shown in a dialog box or printed on the console where gimp was started." +msgstr "" + +#: app/plug_in.c:286 +msgid "A unique temporary name for a temporary PDB entry name" +msgstr "" + +#: app/plug_in.c:293 +msgid "Generates a unique temporary PDB name" +msgstr "" + +#: app/plug_in.c:294 +msgid "This procedure generates a temporary PDB entry name that is guaranteed to be unique. It is many used by the interactive popup dialogs to generate a PDB entry name." +msgstr "" + +#: app/plug_in.c:345 +msgid "shmget failed...disabling shared memory tile transport\n" +msgstr "" + +#: app/plug_in.c:351 +msgid "shmat failed...disabling shared memory tile transport\n" +msgstr "" + +#: app/plug_in.c:377 +msgid "Resource configuration" +msgstr "" + +#: app/plug_in.c:384 +msgid "Plug-ins" +msgstr "Erg\344nzungen" + +#: app/plug_in.c:396 +msgid "query plug-in: \"%s\"\n" +msgstr "\334berpr\374fe Erg\344nzung: \"%s\"\n" + +#: app/plug_in.c:433 +msgid "writing \"%s\"\n" +msgstr "schreibe \"%s\"\n" + +#: app/plug_in.c:446 +msgid "Starting extensions: " +msgstr "Starte Erweiterung: " + +#: app/plug_in.c:447 +msgid "Extensions" +msgstr "Erweiterung" + +#: app/plug_in.c:734 +msgid "\"%s\" executable not found\n" +msgstr "" + +#: app/plug_in.c:787 +msgid "unable to locate plug-in: \"%s\"" +msgstr "Kann Erg\344nzung \"%s\" nicht finden" + +#: app/plug_in.c:884 +msgid "unable to open pipe" +msgstr "Kann Pipeline nicht \366ffnen" + +#: app/plug_in.c:932 +msgid "unable to run plug-in: %s\n" +msgstr "Kann Erg\344nzung \"%s\" nicht starten" + +#: app/plug_in.c:1268 +msgid "/Filters/Repeat last" +msgstr "/Filter/Wiederhole letzten Vorgang" + +#: app/plug_in.c:1269 +msgid "/Filters/Re-show last" +msgstr "/Filter/Zeige letzten Vorgang nochmal" + +#: app/plug_in.c:1308 app/plug_in.c:1315 app/plug_in.c:1319 +msgid "plug_in_handle_message(): received a config message (should not happen)\n" +msgstr "" + +#: app/plug_in.c:1330 +msgid "plug_in_handle_message(): received a temp proc run message (should not happen)\n" +msgstr "" + +#: app/plug_in.c:1377 app/plug_in.c:1384 app/plug_in.c:1428 app/plug_in.c:1470 app/plug_in.c:1479 +msgid "plug_in_handle_tile_req: ERROR" +msgstr "" + +#: app/plug_in.c:1391 +msgid "expected tile data and received: %d\n" +msgstr "" + +#: app/plug_in.c:1405 app/plug_in.c:1442 +msgid "plug-in requested invalid drawable (killing)\n" +msgstr "" + +#: app/plug_in.c:1413 app/plug_in.c:1450 +msgid "plug-in requested invalid tile (killing)\n" +msgstr "" + +#: app/plug_in.c:1486 +msgid "expected tile ack and received: %d\n" +msgstr "" + +#. THIS IS PROBABLY NOT CORRECT -josh +#: app/plug_in.c:1510 +msgid "PDB lookup failed on %s\n" +msgstr "PDB: Nachschlagen schlug fehl bei: %s\n" + +#: app/plug_in.c:1534 app/plug_in.c:1578 +msgid "plug_in_handle_proc_run: ERROR" +msgstr "" + +#: app/plug_in.c:1617 app/plug_in.c:1630 app/plug_in.c:1643 app/plug_in.c:1658 +msgid "plug-in \"%s\" attempted to install procedure \"%s\" which does not take the standard plug-in args" +msgstr "" + +#: app/plug_in.c:1666 +msgid "plug-in \"%s\" attempted to install procedure \"%s\" in an invalid menu location. Use either \"\", \"\", \"\", or \"\"." +msgstr "" + +#: app/plug_in.c:1686 +msgid "plug_in \"%s\" attempted to install procedure \"%s\" which fails to comply with the array parameter passing standard. Argument %d is noncompliant." +msgstr "" + +#: app/plug_in.c:2096 +msgid "duplicate plug-in: \"%s\" (skipping)\n" +msgstr "" + +#: app/plug_in.c:2270 +msgid "Uh-oh, no active gdisplay for the plug-in!" +msgstr "" + +#: app/plug_in.c:2291 +msgid "Uh-oh, no active gdisplay for the temporary procedure!" +msgstr "" + +#: app/plug_in.c:2299 +msgid "Unknown procedure type." +msgstr "" + +#: app/plug_in.c:2605 app/plug_in.c:2770 app/plug_in.c:2883 app/plug_in.c:2966 +msgid "the \"region\" arg type is not currently supported" +msgstr "" + +#: app/preferences_dialog.c:209 +msgid "Error: Levels of undo must be zero or greater." +msgstr "" + +#: app/preferences_dialog.c:215 +msgid "Error: Marching speed must be 50 or greater." +msgstr "" + +#: app/preferences_dialog.c:221 +msgid "Error: Default width must be one or greater." +msgstr "" + +#: app/preferences_dialog.c:227 +msgid "Error: Default height must be one or greater." +msgstr "" + +#: app/preferences_dialog.c:434 +msgid "You will need to restart GIMP for these changes to take effect." +msgstr "" + +#: app/preferences_dialog.c:648 +msgid "Light Checks" +msgstr "Helle Markierungen" + +#: app/preferences_dialog.c:649 +msgid "Mid-Tone Checks" +msgstr "Halbhelle Markierungen" + +#: app/preferences_dialog.c:650 +msgid "Dark Checks" +msgstr "Dunkle Markierungen" + +#: app/preferences_dialog.c:651 +msgid "White Only" +msgstr "Nur Wei\337" + +#: app/preferences_dialog.c:652 +msgid "Gray Only" +msgstr "Nur Grau" + +#: app/preferences_dialog.c:653 +msgid "Black Only" +msgstr "Nur Schwarz" + +#: app/preferences_dialog.c:657 +msgid "Small Checks" +msgstr "Kleine Markierungen" + +#: app/preferences_dialog.c:658 +msgid "Medium Checks" +msgstr "Mittlere Markierungen" + +#: app/preferences_dialog.c:659 +msgid "Large Checks" +msgstr "Gro\337e Markierungen" + +#: app/preferences_dialog.c:681 +msgid "Bytes" +msgstr "Byte" + +#: app/preferences_dialog.c:682 +msgid "KiloBytes" +msgstr "Kilobyte" + +#: app/preferences_dialog.c:683 +msgid "MegaBytes" +msgstr "Megabyte" + +#: app/preferences_dialog.c:690 +msgid "Temp dir:" +msgstr "Zwischenverzeichnis:" + +#: app/preferences_dialog.c:691 +msgid "Swap dir:" +msgstr "Auslagerverzeichnis:" + +#: app/preferences_dialog.c:692 +msgid "Brushes dir:" +msgstr "Pinselverzeichnis:" + +#: app/preferences_dialog.c:693 +msgid "Gradients dir:" +msgstr "Farbverl\344ufeverzeichnis:" + +#: app/preferences_dialog.c:694 +msgid "Patterns dir:" +msgstr "Musterverzeichnis:" + +#: app/preferences_dialog.c:695 +msgid "Palette dir:" +msgstr "Farbenverzeichnis" + +#: app/preferences_dialog.c:696 +msgid "Plug-in dir:" +msgstr "Erg\344nzungsverzeichnis:" + +#: app/preferences_dialog.c:704 +msgid "Small" +msgstr "Klein" + +#: app/preferences_dialog.c:705 +msgid "Medium" +msgstr "Mittel" + +#: app/preferences_dialog.c:706 +msgid "Large" +msgstr "Gro\337" + +#: app/preferences_dialog.c:776 +msgid "Preferences" +msgstr "Einstellungen" + +#. Display page +#: app/preferences_dialog.c:820 +msgid "Display settings" +msgstr "Anzeigeeinstellungen" + +#: app/preferences_dialog.c:833 +msgid "Default image size" +msgstr "Standard Bildgr\366\337e" + +#: app/preferences_dialog.c:848 +msgid "Width:" +msgstr "Breite:" + +#: app/preferences_dialog.c:854 +msgid "Height:" +msgstr "H\366he:" + +#: app/preferences_dialog.c:885 +msgid "Default image type" +msgstr "Standard Bildart" + +#: app/preferences_dialog.c:918 +msgid "Preview size:" +msgstr "Vorschaugr\366\337e" + +#: app/preferences_dialog.c:940 +msgid "Cubic interpolation" +msgstr "Kubische Interpolierung" + +#: app/preferences_dialog.c:953 +msgid "Transparency Type" +msgstr "Durchsichtigkeitsart" + +#: app/preferences_dialog.c:977 +msgid "Check Size" +msgstr "Markierungsgr\366\337e" + +#: app/preferences_dialog.c:1002 +msgid "Display" +msgstr "Anzeige" + +#. Interface +#: app/preferences_dialog.c:1006 +msgid "Interface settings" +msgstr "Oberfl\344cheneinstellungen" + +#: app/preferences_dialog.c:1015 +msgid "Resize window on zoom" +msgstr "Ver\344ndere Fenstergr\366\337e beim Zoomen" + +#: app/preferences_dialog.c:1024 +msgid "Perfect-but-slow pointer tracking" +msgstr "Genaue aber langsame Mauszeigenachf\374hrung" + +#: app/preferences_dialog.c:1046 +msgid "Disable cursor updating" +msgstr "" + +#: app/preferences_dialog.c:1055 +msgid "Show tool tips" +msgstr "Zeige Hilfen" + +#: app/preferences_dialog.c:1064 +msgid "Show rulers" +msgstr "Zeige Lineale" + +#: app/preferences_dialog.c:1073 +msgid "Show statusbar" +msgstr "Zeige Statusanzeige" + +#: app/preferences_dialog.c:1086 +msgid "Levels of undo:" +msgstr "Stufen der R\374ckg\344ngigmachung:" + +#: app/preferences_dialog.c:1106 +msgid "Marching ants speed:" +msgstr "Geschwindigkeit der laufenden Ameisen:" + +#: app/preferences_dialog.c:1126 +msgid "Recent Documents list size:" +msgstr "Gr\366\337e der letzten Dokumentliste:" + +#: app/preferences_dialog.c:1142 +msgid "Interface" +msgstr "Oberfl\344che" + +#. Environment +#: app/preferences_dialog.c:1146 +msgid "Environment settings" +msgstr "Umgebungseinstellungen" + +#: app/preferences_dialog.c:1156 +msgid "Conservative memory usage" +msgstr "Zur\374ckhaltende Speicherausnutzung" + +#: app/preferences_dialog.c:1169 +msgid "Tile cache size:" +msgstr "" + +#: app/preferences_dialog.c:1205 +msgid "Install colormap (8-bit only)" +msgstr "" + +#: app/preferences_dialog.c:1216 +msgid "Colormap cycling (8-bit only)" +msgstr "" + +#: app/preferences_dialog.c:1227 +msgid "Environment" +msgstr "Umgebung" + +#: app/preferences_dialog.c:1231 +msgid "Session managment" +msgstr "" + +#: app/preferences_dialog.c:1241 +msgid "Save window positions on exit" +msgstr "" + +#: app/preferences_dialog.c:1255 +msgid "Clear saved window positions" +msgstr "" + +#: app/preferences_dialog.c:1262 +msgid "Always try to restore session" +msgstr "" + +#: app/preferences_dialog.c:1271 +msgid "Save device status on exit" +msgstr "" + +#: app/preferences_dialog.c:1280 +msgid "Session" +msgstr "Sitzung" + +#. Directories +#: app/preferences_dialog.c:1286 +msgid "Directories settings" +msgstr "" + +#: app/preferences_dialog.c:1321 +msgid "Directories" +msgstr "" + +#: app/procedural_db.c:112 +msgid "Internal GIMP procedure" +msgstr "" + +#: app/procedural_db.c:113 +msgid "GIMP Plug-In" +msgstr "GIMP Erg\344nzung" + +#: app/procedural_db.c:114 +msgid "GIMP Extension" +msgstr "GIMP Erweiterung" + +#: app/procedural_db.c:115 +msgid "Temporary Procedure" +msgstr "" + +#: app/procedural_db.c:125 +msgid "the dump filename" +msgstr "" + +#: app/procedural_db.c:132 +msgid "Dumps the current contents of the procedural database" +msgstr "" + +#: app/procedural_db.c:133 +msgid "This procedure dumps the contents of the procedural database to the specified file. The file will contain all of the information provided for each registered procedure. This file is in a format appropriate for use with the supplied \"pdb_self_doc.el\" Elisp script, which generates a texinfo document." +msgstr "" + +#: app/procedural_db.c:159 app/procedural_db.c:229 app/procedural_db.c:283 +msgid "the procedure name" +msgstr "" + +#: app/procedural_db.c:167 +msgid "a short blurb" +msgstr "" + +#: app/procedural_db.c:171 +msgid "detailed procedure help" +msgstr "" + +#: app/procedural_db.c:175 +msgid "author(s) of the procedure" +msgstr "" + +#: app/procedural_db.c:179 +msgid "the copyright" +msgstr "" + +#: app/procedural_db.c:183 +msgid "copyright date" +msgstr "" + +#: app/procedural_db.c:187 +msgid "the procedure type: { INTERNAL (0), PLUGIN (1), EXTENSION (2) }" +msgstr "" + +#: app/procedural_db.c:191 +msgid "the number of input arguments" +msgstr "" + +#: app/procedural_db.c:195 +msgid "the number of return values" +msgstr "" + +#: app/procedural_db.c:202 +msgid "Queries the procedural database for information on the specified procedure" +msgstr "" + +#: app/procedural_db.c:203 +msgid "This procedure returns information on the specified procedure. A short blurb, detailed help, author(s), copyright information, procedure type, number of input, and number of return values are returned. For specific information on each input argument and return value, use the 'gimp_procedural_db_query_proc_arg' and 'gimp_procedural_db_query_proc_val' procedures" +msgstr "" + +#: app/procedural_db.c:233 +msgid "the argument number" +msgstr "" + +#: app/procedural_db.c:241 +msgid "the type of argument { PDB_INT32 (0), PDB_INT16 (1), PDB_INT8 (2), PDB_FLOAT (3), PDB_STRING (4), PDB_INT32ARRAY (5), PDB_INT16ARRAY (6), PDB_INT8ARRAY (7), PDB_FLOATARRAY (8), PDB_STRINGARRAY (9), PDB_COLOR (10), PDB_REGION (11), PDB_DISPLAY (12), PDB_IMAGE (13), PDB_LAYER (14), PDB_CHANNEL (15), PDB_DRAWABLE (16), PDB_SELECTION (17), PDB_BOUNDARY (18), PDB_PATH (19), PDB_PARASITE (20), PDB_STATUS (21) }" +msgstr "" + +#: app/procedural_db.c:245 +msgid "the name of the argument" +msgstr "" + +#: app/procedural_db.c:249 +msgid "a description of the argument" +msgstr "" + +#: app/procedural_db.c:256 +msgid "Queries the procedural database for information on the specified procedure's argument" +msgstr "" + +#: app/procedural_db.c:257 +msgid "This procedure returns information on the specified procedure's argument. The argument type, name, and a description are retrieved." +msgstr "" + +#: app/procedural_db.c:287 +msgid "the return value number" +msgstr "" + +#: app/procedural_db.c:295 +msgid "the type of return value { PDB_INT32 (0), PDB_INT16 (1), PDB_INT8 (2), PDB_FLOAT (3), PDB_STRING (4), PDB_INT32ARRAY (5), PDB_INT16ARRAY (6), PDB_INT8ARRAY (7), PDB_FLOATARRAY (8), PDB_STRINGARRAY (9), PDB_COLOR (10), PDB_REGION (11), PDB_DISPLAY (12), PDB_IMAGE (13), PDB_LAYER (14), PDB_CHANNEL (15), PDB_DRAWABLE (16), PDB_SELECTION (17), PDB_BOUNDARY (18), PDB_PATH (19), PDB_PARASITE (20), PDB_STATUS (21) }" +msgstr "" + +#: app/procedural_db.c:299 +msgid "the name of the return value" +msgstr "" + +#: app/procedural_db.c:303 +msgid "a description of the return value" +msgstr "" + +#: app/procedural_db.c:310 +msgid "Queries the procedural database for information on the specified procedure's return value" +msgstr "" + +#: app/procedural_db.c:311 +msgid "This procedure returns information on the specified procedure's return value. The return value type, name, and a description are retrieved." +msgstr "" + +#: app/procedural_db.c:337 app/procedural_db.c:378 +msgid "the identifier associated with data" +msgstr "" + +#: app/procedural_db.c:345 app/procedural_db.c:386 +msgid "the number of bytes in the data" +msgstr "" + +#: app/procedural_db.c:352 +msgid "Returns size of data associated with the specified identifier" +msgstr "" + +#: app/procedural_db.c:353 +msgid "This procedure returns the size of any data which may have been associated with the specified identifier. If no data has been associated with the identifier, an error is returned." +msgstr "" + +#: app/procedural_db.c:390 +msgid "a byte array containing data" +msgstr "" + +#: app/procedural_db.c:397 +msgid "Returns data associated with the specified identifier" +msgstr "" + +#: app/procedural_db.c:398 +msgid "This procedure returns any data which may have been associated with the specified identifier. The data is a variable length array of bytes. If no data has been associated with the identifier, an error is returned." +msgstr "" + +#: app/procedural_db.c:424 +msgid "the identifier for association with data" +msgstr "" + +#: app/procedural_db.c:428 +msgid "the number of bytes in data" +msgstr "" + +#: app/procedural_db.c:432 +msgid "the data" +msgstr "" + +#: app/procedural_db.c:439 +msgid "Associates the specified identifier with the supplied data" +msgstr "" + +#: app/procedural_db.c:440 +msgid "This procedure associates the supplied data with the provided identifier. The data may be subsequently retrieved by a call to 'procedural_db_get_data'." +msgstr "" + +#: app/procedural_db.c:466 +msgid "the regex for procedure name" +msgstr "" + +#: app/procedural_db.c:470 +msgid "the regex for procedure blurb" +msgstr "" + +#: app/procedural_db.c:474 +msgid "the regex for procedure help" +msgstr "" + +#: app/procedural_db.c:478 +msgid "the regex for procedure author" +msgstr "" + +#: app/procedural_db.c:482 +msgid "the regex for procedure copyright" +msgstr "" + +#: app/procedural_db.c:486 +msgid "the regex for procedure date" +msgstr "" + +#: app/procedural_db.c:490 +msgid "the regex for procedure type: {'Internal GIMP procedure', 'GIMP Plug-In', 'GIMP Extension'}" +msgstr "" + +#: app/procedural_db.c:498 +msgid "the number of matching procedures" +msgstr "" + +#: app/procedural_db.c:502 +msgid "the list of procedure names" +msgstr "" + +#: app/procedural_db.c:509 +msgid "Queries the procedural database for its contents using regular expression matching" +msgstr "" + +#: app/procedural_db.c:510 +msgid "This procedure queries the contents of the procedural database. It is supplied with seven arguments matching procedures on {name, blurb, help, author, copyright, date, procedure type}. This is accomplished using regular expression matching. For instance, to find all procedures with \"jpeg\" listed in the blurb, all seven arguments can be supplied as \".*\", except for the second, which can be supplied as \".*jpeg.*\". There are two return arguments for this procedure. The first is the number of procedures matching the query. The second is a concatenated list of procedure names corresponding to those matching the query. If no matching entries are found, then the returned string is NULL and the number of entries is 0." +msgstr "" + +#: app/procedural_db.c:532 +msgid "Procedural Database" +msgstr "" + +#: app/procedural_db.c:631 +msgid "PDB calling error %s" +msgstr "" + +#: app/procedural_db.c:707 +msgid "Incorrect arguments passed to procedural_db_run_proc" +msgstr "" + +#: app/rect_select.c:113 +msgid "Rectangular Select Options" +msgstr "Rechteckige Auswahl Einstellungen" + +#: app/rect_select.c:116 +msgid "Elliptical Selection Options" +msgstr "" + +#: app/rect_select.c:119 +msgid "Free-hand Selection Options" +msgstr "" + +#: app/rect_select.c:122 +msgid "Fuzzy Selection Options" +msgstr "Ungenaue Auswahl Einstellungen" + +#: app/rect_select.c:125 +msgid "Bezier Selection Options" +msgstr "Bezierauswahl Einstellungen" + +#: app/rect_select.c:128 +msgid "Intelligent Scissors Options" +msgstr "Intelligente Messer Einstellungen" + +#: app/rect_select.c:131 +msgid "By-Color Select Options" +msgstr "" + +#: app/rect_select.c:165 +msgid "Bezier Extends" +msgstr "" + +#. antialias toggle +#: app/rect_select.c:178 app/text_tool.c:172 +msgid "Antialiasing" +msgstr "" + +#: app/rect_select.c:190 +msgid "Fixed size / aspect ratio" +msgstr "" + +#: app/rect_select.c:201 +msgid " Width: " +msgstr "" + +#: app/rect_select.c:219 +msgid " Height: " +msgstr "" + +#. the feather toggle button +#: app/rect_select.c:237 +msgid "Feather" +msgstr "Runden" + +#: app/rect_select.c:249 +msgid "Feather Radius" +msgstr "" + +#: app/rect_select.c:390 +msgid "Selection: ADD" +msgstr "Auswahl: Hinzuf\374gen" + +#: app/rect_select.c:393 +msgid "Selection: SUBTRACT" +msgstr "Auswahl: Abziehen" + +#: app/rect_select.c:396 +msgid "Selection: INTERSECT" +msgstr "Auswahl: Schnitt" + +#: app/rect_select.c:399 +msgid "Selection: REPLACE" +msgstr "Auswahl: Ersetzen" + +#: app/rect_select.c:597 +msgid "Selection: %d x %d" +msgstr "" + +#: app/rect_select.c:739 +msgid "the width of the rectangle: width > 0" +msgstr "" + +#: app/rect_select.c:743 +msgid "the height of the rectangle: height > 0" +msgstr "" + +#: app/rect_select.c:762 +msgid "Create a rectangular selection over the specified image" +msgstr "" + +#: app/rect_select.c:763 +msgid "This tool creates a rectangular selection over the specified image. The rectangular region can be either added to, subtracted from, or replace the contents of the previous selection mask. If the feather option is enabled, the resulting selection is blurred before combining. The blur is a gaussian blur with the specified feather radius." +msgstr "" + +#: app/resize.c:106 app/transform_core.c:116 +msgid "Scale" +msgstr "" + +#: app/resize.c:110 +msgid "Resize" +msgstr "" + +#: app/resize.c:126 +msgid "New width:" +msgstr "" + +#: app/resize.c:143 +msgid "New height:" +msgstr "" + +#. the x scale ratio label and entry +#: app/resize.c:160 +msgid "X ratio:" +msgstr "" + +#: app/resize.c:177 +msgid "Y ratio:" +msgstr "" + +#: app/resize.c:230 +msgid "Constrain Ratio" +msgstr "" + +#: app/rotate_tool.c:86 +msgid "Rotation Information" +msgstr "" + +#: app/rotate_tool.c:87 +msgid "Angle: " +msgstr "" + +#: app/rotate_tool.c:88 +msgid "Center X: " +msgstr "" + +#: app/rotate_tool.c:89 +msgid "Center Y: " +msgstr "" + +#: app/rotate_tool.c:389 app/scale_tool.c:480 app/shear_tool.c:376 +msgid "whether to use interpolation" +msgstr "" + +#: app/rotate_tool.c:393 +msgid "the angle of rotation (radians)" +msgstr "" + +#: app/rotate_tool.c:401 +msgid "the rotated drawable" +msgstr "" + +#: app/rotate_tool.c:408 +msgid "Rotate the specified drawable about its center through the specified angle" +msgstr "" + +#: app/rotate_tool.c:409 +msgid "This tool rotates the specified drawable if no selection exists. If a selection exists, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then rotated by the specified amount. The interpolation parameter can be set to TRUE to indicate that either linear or cubic interpolation should be used to smooth the resulting rotated drawable. The return value is the ID of the rotated drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and rotated drawable." +msgstr "" + +#: app/scale_tool.c:77 +msgid "Scaling Information" +msgstr "" + +#: app/scale_tool.c:78 +msgid "Original Width: " +msgstr "" + +#: app/scale_tool.c:79 +msgid "Original Height: " +msgstr "" + +#: app/scale_tool.c:80 +msgid "Current Width: " +msgstr "" + +#: app/scale_tool.c:81 +msgid "Current Height: " +msgstr "" + +#: app/scale_tool.c:82 +msgid "X Scale Ratio: " +msgstr "" + +#: app/scale_tool.c:83 +msgid "Y Scale Ratio: " +msgstr "" + +#: app/scale_tool.c:484 +msgid "the x coordinate of the upper-left corner of newly scaled region" +msgstr "" + +#: app/scale_tool.c:488 +msgid "the y coordinate of the upper-left corner of newly scaled region" +msgstr "" + +#: app/scale_tool.c:492 +msgid "the x coordinate of the lower-right corner of newly scaled region" +msgstr "" + +#: app/scale_tool.c:496 +msgid "the y coordinate of the lower-right corner of newly scaled region" +msgstr "" + +#: app/scale_tool.c:504 +msgid "the scaled drawable" +msgstr "" + +#: app/scale_tool.c:511 +msgid "Scale the specified drawable" +msgstr "" + +#: app/scale_tool.c:512 +msgid "This tool scales the specified drawable if no selection exists. If a selection exists, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then scaled by the specified amount. The interpolation parameter can be set to TRUE to indicate that either linear or cubic interpolation should be used to smooth the resulting scaled drawable. The return value is the ID of the scaled drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and scaled drawable." +msgstr "" + +#: app/session.c:146 +msgid "# GIMP sessionrc\n" +msgstr "GIMP Version" + +#: app/session.c:147 +msgid "# This file takes session-specific info (that is info,\n" +msgstr "" + +#: app/session.c:148 +msgid "# you want to keep between two gimp-sessions). You are\n" +msgstr "" + +#: app/session.c:149 +msgid "# not supposed to edit it manually, but of course you\n" +msgstr "" + +#: app/session.c:150 +msgid "# can do. This file will be entirely rewritten every time\n" +msgstr "" + +#: app/session.c:151 +msgid "# you quit the gimp. If this file isn't found, defaults\n" +msgstr "" + +#: app/session.c:152 +msgid "" +"# are used.\n" +"\n" +msgstr "" + +#: app/shear_tool.c:83 +msgid "Shear Information" +msgstr "" + +#: app/shear_tool.c:84 +msgid "X Shear Magnitude: " +msgstr "" + +#: app/shear_tool.c:85 +msgid "Y Shear Magnitude: " +msgstr "" + +#: app/shear_tool.c:380 +msgid "Type of shear: { HORIZONTAL (0), VERTICAL (1) }" +msgstr "" + +#: app/shear_tool.c:384 +msgid "the magnitude of the shear" +msgstr "" + +#: app/shear_tool.c:392 +msgid "the sheard drawable" +msgstr "" + +#: app/shear_tool.c:399 +msgid "Shear the specified drawable about its center by the specified magnitude" +msgstr "" + +#: app/shear_tool.c:400 +msgid "This tool shears the specified drawable if no selection exists. If a selection exists, the portion of the drawable which lies under the selection is cut from the drawable and made into a floating selection which is then sheard by the specified amount. The interpolation parameter can be set to TRUE to indicate that either linear or cubic interpolation should be used to smooth the resulting sheard drawable. The return value is the ID of the sheard drawable. If there was no selection, this will be equal to the drawable ID supplied as input. Otherwise, this will be the newly created and sheard drawable. The shear type parameter indicates whether the shear will be applied horizontally or vertically. The magnitude can be either positive or negative and indicates the extent (in pixels) to shear by." +msgstr "" + +#. the main label +#: app/text_tool.c:167 +msgid "Text Options" +msgstr "Texteinstellungen" + +#: app/text_tool.c:184 +msgid "Border" +msgstr "Rand" + +#: app/text_tool.c:310 app/text_tool.c:312 +msgid "Text Tool" +msgstr "Textwerkzeug" + +#: app/text_tool.c:537 +msgid "Font '%s' not found.%s" +msgstr "" + +#: app/text_tool.c:539 +msgid "" +"\n" +"If you don't have scalable fonts, try turning off antialiasing in the tool options." +msgstr "" + +#: app/text_tool.c:623 +msgid "sanity check failed: could not get gdk image" +msgstr "" + +#: app/text_tool.c:626 +msgid "sanity check failed: image should have 1 bit per pixel" +msgstr "" + +#: app/text_tool.c:643 +msgid "Text Layer" +msgstr "" + +#: app/text_tool.c:686 +msgid "text_render: could not allocate image" +msgstr "" + +#: app/text_tool.c:923 app/text_tool.c:1022 app/text_tool.c:1129 +msgid "the affected drawable: (-1 for a new text layer)" +msgstr "" + +#: app/text_tool.c:927 app/text_tool.c:1026 app/text_tool.c:1133 +msgid "the x coordinate for the left side of text bounding box" +msgstr "" + +#: app/text_tool.c:931 app/text_tool.c:1030 app/text_tool.c:1137 +msgid "the y coordinate for the top of text bounding box" +msgstr "" + +#: app/text_tool.c:935 app/text_tool.c:1034 app/text_tool.c:1141 app/text_tool.c:1205 app/text_tool.c:1289 app/text_tool.c:1381 +msgid "the text to generate" +msgstr "" + +#: app/text_tool.c:939 app/text_tool.c:1038 app/text_tool.c:1145 +msgid "the size of the border: border >= 0" +msgstr "" + +#: app/text_tool.c:943 app/text_tool.c:1042 app/text_tool.c:1149 +msgid "generate antialiased text" +msgstr "" + +#: app/text_tool.c:947 app/text_tool.c:1046 app/text_tool.c:1153 app/text_tool.c:1209 app/text_tool.c:1293 app/text_tool.c:1385 +msgid "the size of text in either pixels or points" +msgstr "" + +#: app/text_tool.c:951 app/text_tool.c:1050 app/text_tool.c:1157 app/text_tool.c:1213 app/text_tool.c:1297 app/text_tool.c:1389 +msgid "the units of the specified size: { PIXELS (0), POINTS (1) }" +msgstr "" + +#: app/text_tool.c:955 app/text_tool.c:1054 app/text_tool.c:1217 app/text_tool.c:1301 +msgid "the font foundry, \"*\" for any" +msgstr "" + +#: app/text_tool.c:959 app/text_tool.c:1058 app/text_tool.c:1221 app/text_tool.c:1305 +msgid "the font family, \"*\" for any" +msgstr "" + +#: app/text_tool.c:963 app/text_tool.c:1062 app/text_tool.c:1225 app/text_tool.c:1309 +msgid "the font weight, \"*\" for any" +msgstr "" + +#: app/text_tool.c:967 app/text_tool.c:1066 app/text_tool.c:1229 app/text_tool.c:1313 +msgid "the font slant, \"*\" for any" +msgstr "" + +#: app/text_tool.c:971 app/text_tool.c:1070 app/text_tool.c:1233 app/text_tool.c:1317 +msgid "the font set-width parameter, \"*\" for any" +msgstr "" + +#: app/text_tool.c:975 app/text_tool.c:1074 app/text_tool.c:1237 app/text_tool.c:1321 +msgid "the font spacing, \"*\" for any" +msgstr "" + +#: app/text_tool.c:983 app/text_tool.c:1090 app/text_tool.c:1169 +msgid "the new text layer" +msgstr "" + +#: app/text_tool.c:990 app/text_tool.c:1097 app/text_tool.c:1176 +msgid "Add text at the specified location as a floating selection or a new layer." +msgstr "" + +#: app/text_tool.c:991 +msgid "" +"This tool requires font information in the form of seven parameters: {size, foundry, family, weight, slant, set_width, spacing}. The font size can either be specified in units of pixels or points, and the appropriate metric is specified using the size_type argument. The x and y parameters together control the placement of the new text by specifying the upper left corner of the text bounding box. If the antialias parameter is non-zero, the generated text will blend more smoothly with underlying layers. This option requires more time and memory to compute than non-antialiased text; the resulting floating selection or layer, however, will require the same amount of memory with or without antialiasing. If the specified drawable parameter is valid, the text will be created as a floating selection attached to the drawable. If the drawable parameter is not valid (-1), the text will appear as a new layer. Finally, a border can be specified around the final rendered text. The border " +"is measured in pixels." +msgstr "" + +#: app/text_tool.c:1078 app/text_tool.c:1325 +msgid "the font registry, \"*\" for any" +msgstr "" + +#: app/text_tool.c:1082 app/text_tool.c:1329 +msgid "the font encoding, \"*\" for any" +msgstr "" + +#: app/text_tool.c:1098 +msgid "" +"This tool requires font information in the form of nine parameters: {size, foundry, family, weight, slant, set_width, spacing, registry, encoding}. The font size can either be specified in units of pixels or points, and the appropriate metric is specified using the size_type argument. The x and y parameters together control the placement of the new text by specifying the upper left corner of the text bounding box. If the antialias parameter is non-zero, the generated text will blend more smoothly with underlying layers. This option requires more time and memory to compute than non-antialiased text; the resulting floating selection or layer, however, will require the same amount of memory with or without antialiasing. If the specified drawable parameter is valid, the text will be created as a floating selection attached to the drawable. If the drawable parameter is not valid (-1), the text will appear as a new layer. Finally, a border can be specified around the final rendered " +"text. The border is measured in pixels." +msgstr "" + +#: app/text_tool.c:1161 app/text_tool.c:1393 +msgid "the fontname (conforming to the X Logical Font Description Conventions)" +msgstr "" + +#: app/text_tool.c:1177 +msgid "" +"This tool requires font information as a fontname conforming to the 'X Logical Font Description Conventions'. You can specify the fontsize in units of pixels or points, and the appropriate metric is specified using the size_type argument. The fontsize specified in the fontname is silently ignored.The x and y parameters together control the placement of the new text by specifying the upper left corner of the text bounding box. If the antialias parameter is non-zero, the generated text will blend more smoothly with underlying layers. This option requires more time and memory to compute than non-antialiased text; the resulting floating selection or layer, however, will require the same amount of memory with or without antialiasing. If the specified drawable parameter is valid, the text will be created as a floating selection attached to the drawable. If the drawable parameter is not valid (-1), the text will appear as a new layer. Finally, a border can be specified around the " +"final rendered text. The border is measured in pixels." +msgstr "" + +#: app/text_tool.c:1245 app/text_tool.c:1337 app/text_tool.c:1401 +msgid "the width of the specified text" +msgstr "" + +#: app/text_tool.c:1249 app/text_tool.c:1341 app/text_tool.c:1405 +msgid "the height of the specified text" +msgstr "" + +#: app/text_tool.c:1253 app/text_tool.c:1345 app/text_tool.c:1409 +msgid "the ascent of the specified font" +msgstr "" + +#: app/text_tool.c:1257 app/text_tool.c:1349 app/text_tool.c:1413 +msgid "the descent of the specified font" +msgstr "" + +#: app/text_tool.c:1264 app/text_tool.c:1356 app/text_tool.c:1420 +msgid "Get extents of the bounding box for the specified text" +msgstr "" + +#: app/text_tool.c:1265 app/text_tool.c:1357 app/text_tool.c:1421 +msgid "This tool returns the width and height of a bounding box for the specified text string with the specified font information. Ascent and descent for the specified font are returned as well." +msgstr "" + +#: app/threshold.c:297 +msgid "Threshold Options" +msgstr "Schwellwerteinstellungen" + +#: app/threshold.c:344 +msgid "Threshold does not operate on indexed drawables." +msgstr "" + +#: app/threshold.c:399 app/tools.c:547 +msgid "Threshold" +msgstr "" + +#: app/threshold.c:414 +msgid "Threshold Range: " +msgstr "Schwellwertreichweite: " + +#: app/threshold.c:489 +msgid "threshold_preview(): No image map" +msgstr "" + +#: app/threshold.c:624 +msgid "the low threshold value: (0 <= low_threshold <= 255)" +msgstr "" + +#: app/threshold.c:628 +msgid "the high threshold value: (0 <= high_threshold <= 255)" +msgstr "" + +#: app/threshold.c:635 +msgid "Threshold the specified drawable" +msgstr "" + +#: app/threshold.c:636 +msgid "This procedures generates a threshold map of the specified drawable. All pixels between the values of 'low_threshold' and 'high_threshold' are replaced with white, and all other pixels with black." +msgstr "" + +#: app/tile.c:167 +msgid "tried to destroy a ref'd tile" +msgstr "" + +#: app/tile.c:172 +msgid "tried to destroy an attached tile" +msgstr "" + +#: app/tile.c:285 +msgid "Tried to detach a nonattached tile" +msgstr "" + +#: app/tile_cache.c:114 +msgid "cache: unable to find room for a tile" +msgstr "" + +#: app/tile_cache.c:266 +msgid "starting tile preswapper\n" +msgstr "" + +#: app/tile_manager.c:311 +msgid "tile_manager_map_tile: tile co-ord out of range." +msgstr "" + +#: app/tile_manager.c:339 +msgid "tile_manager_map: tile out of range." +msgstr "" + +#: app/tile_manager.c:385 +msgid "tile_manager_map: nonconformant map (%p -> %p)" +msgstr "" + +#: app/tile_manager.c:466 +msgid "tile_manager_get_tile_coordinates: tile not attached to manager" +msgstr "" + +#: app/tile_manager.c:487 +msgid "tile_manager_map_over_tile: tile not attached to manager" +msgstr "" + +#: app/tile_swap.c:137 +msgid "tile ref count balance: %d\n" +msgstr "" + +#: app/tile_swap.c:145 +msgid "swap file not empty: \"%s\"\n" +msgstr "" + +#: app/tile_swap.c:317 +msgid "could not find swap file for tile" +msgstr "" + +#: app/tile_swap.c:356 +msgid "unable to open swap file...BAD THINGS WILL HAPPEN SOON" +msgstr "" + +#: app/tile_swap.c:398 +msgid "tile_swap_default: SWAP_COMPRESS: UNFINISHED" +msgstr "" + +#: app/tile_swap.c:476 app/tile_swap.c:537 +msgid "unable to seek to tile location on disk: %d" +msgstr "" + +#: app/tile_swap.c:495 +msgid "unable to read tile data from disk: %d/%d ( %d ) bytes read" +msgstr "" + +#: app/tile_swap.c:550 +msgid "unable to write tile data to disk: %d ( %d ) bytes written" +msgstr "" + +#: app/tips_dialog.c:58 +msgid "GIMP Tip of the day" +msgstr "GIMP Tip des Tages" + +#: app/tips_dialog.c:109 +msgid "Next Tip" +msgstr "" + +#: app/tips_dialog.c:116 +msgid "Prev. Tip" +msgstr "" + +#: app/tips_dialog.c:123 +msgid "Show tip next time" +msgstr "" + +#: app/tips_dialog.c:221 +msgid "" +"Your GIMP tips file appears to be missing!\n" +"There should be a file called " +msgstr "" + +#: app/tools.c:81 +msgid "Rect Select" +msgstr "Rechteckige Auswahl" + +#: app/tools.c:83 +msgid "/Tools/Rect Select" +msgstr "/Werkzeuge/Rechteckige Auswahl" + +#: app/tools.c:86 +msgid "Select rectangular regions" +msgstr "W\344hle rechteckigen Bereich" + +#: app/tools.c:96 +msgid "Ellipse Select" +msgstr "Elliptische Auswahl" + +#: app/tools.c:98 +msgid "/Tools/Ellipse Select" +msgstr "/Werkzeuge/Elliptische Auswahl" + +#: app/tools.c:101 +msgid "Select elliptical regions" +msgstr "W\344hle elliptischen Bereich" + +#: app/tools.c:111 +msgid "Free Select" +msgstr "Freie Auswahl" + +#: app/tools.c:113 +msgid "/Tools/Free Select" +msgstr "/Werkzeuge/Freie Auswahl" + +#: app/tools.c:116 +msgid "Select hand-drawn regions" +msgstr "W\344hle Bereich frei Hand" + +#: app/tools.c:126 +msgid "Fuzzy Select" +msgstr "Ungenaue Auswahl" + +#: app/tools.c:128 +msgid "/Tools/Fuzzy Select" +msgstr "/Werkzeuge/Ungenaue Auswahl" + +#: app/tools.c:131 +msgid "Select contiguous regions" +msgstr "W\344hle zusammenh\344ngenden Bereich" + +#: app/tools.c:141 +msgid "Bezier Select" +msgstr "Bezierauswahl" + +#: app/tools.c:143 +msgid "/Tools/Bezier Select" +msgstr "/Werkzeuge/Bezierauswahl" + +#: app/tools.c:146 +msgid "Select regions using Bezier curves" +msgstr "W\344hle Bereich mittels Bezierkurven" + +#: app/tools.c:156 +msgid "Intelligent Scissors" +msgstr "Intelligente Messer" + +#: app/tools.c:158 +msgid "/Tools/Intelligent Scissors" +msgstr "/Werkzeuge/Intelligente Messer" + +#: app/tools.c:161 +msgid "Select shapes from image" +msgstr "W\344hle Objekt aus Bild" + +#: app/tools.c:171 +msgid "Move" +msgstr "Bewege" + +#: app/tools.c:173 +msgid "/Tools/Move" +msgstr "/Werkzeuge/Bewege" + +#: app/tools.c:176 +msgid "Move layers & selections" +msgstr "Bewege Schichten und Auswahlen" + +#: app/tools.c:186 +msgid "Magnify" +msgstr "Vergr\366\337erung" + +#: app/tools.c:188 +msgid "/Tools/Magnify" +msgstr "/Werkzeuge/Vergr\366\337erung" + +#: app/tools.c:191 +msgid "Zoom in & out" +msgstr "Zoome hinein und heraus" + +#: app/tools.c:203 +msgid "/Tools/Crop" +msgstr "/Werkzeuge/Zuschneiden" + +#: app/tools.c:206 +msgid "Crop the image" +msgstr "Beschneide das Bild" + +#. the first radio frame and box, for transform type +#: app/tools.c:216 app/tools.c:231 app/tools.c:246 app/tools.c:261 app/transform_core.c:116 app/transform_tool.c:153 +msgid "Transform" +msgstr "Transformierung" + +#: app/tools.c:218 +msgid "/Tools/Transform" +msgstr "/Werkzeuge/Transformierung" + +#: app/tools.c:221 +msgid "Transform the layer or selection" +msgstr "Transformiere die Schicht oder Auswahl" + +#: app/tools.c:276 app/tools.c:291 +msgid "Flip" +msgstr "Spiegelung" + +#: app/tools.c:278 +msgid "/Tools/Flip" +msgstr "/Werkzeuge/Spiegelung" + +#: app/tools.c:281 +msgid "Flip the layer or selection" +msgstr "Spiegle die Schicht oder Auswahl" + +#: app/tools.c:306 +msgid "Text" +msgstr "Text" + +#: app/tools.c:308 +msgid "/Tools/Text" +msgstr "/Werkzeuge/Text" + +#: app/tools.c:311 +msgid "Add text to the image" +msgstr "F\374ge Text zum Bild hinzu" + +#: app/tools.c:323 +msgid "/Tools/Color Picker" +msgstr "/Werkzeuge/Farbpipette" + +#: app/tools.c:326 +msgid "Pick colors from the image" +msgstr "Nimm Farben aus dem Bild" + +#: app/tools.c:336 +msgid "Bucket Fill" +msgstr "" + +#: app/tools.c:338 +msgid "/Tools/Bucket Fill" +msgstr "/Werkzeuge/F\374lleimer" + +#: app/tools.c:341 +msgid "Fill with a color or pattern" +msgstr "" + +#: app/tools.c:351 +msgid "Blend" +msgstr "" + +#: app/tools.c:353 +msgid "/Tools/Blend" +msgstr "/Werkzeuge/Farbverl\344ufe" + +#: app/tools.c:356 +msgid "Fill with a color gradient" +msgstr "" + +#: app/tools.c:366 +msgid "Pencil" +msgstr "" + +#: app/tools.c:368 +msgid "/Tools/Pencil" +msgstr "/Werkzeuge/Stift" + +#: app/tools.c:371 +msgid "Draw sharp pencil strokes" +msgstr "" + +#: app/tools.c:381 +msgid "Paintbrush" +msgstr "" + +#: app/tools.c:383 +msgid "/Tools/Paintbrush" +msgstr "/Werkzeuge/Pinsel" + +#: app/tools.c:386 +msgid "Paint fuzzy brush strokes" +msgstr "" + +#: app/tools.c:396 +msgid "Eraser" +msgstr "" + +#: app/tools.c:398 +msgid "/Tools/Eraser" +msgstr "/Werkzeuge/Radierer" + +#: app/tools.c:401 +msgid "Erase to background or transparency" +msgstr "" + +#: app/tools.c:411 +msgid "Airbrush" +msgstr "" + +#: app/tools.c:413 +msgid "/Tools/Airbrush" +msgstr "/Werkzeuge/Airbrush" + +#: app/tools.c:416 +msgid "Airbrush with variable pressure" +msgstr "" + +#: app/tools.c:426 +msgid "Clone" +msgstr "" + +#: app/tools.c:428 +msgid "/Tools/Clone" +msgstr "/Werkzeuge/Klonen" + +#: app/tools.c:431 +msgid "Paint using patterns or image regions" +msgstr "" + +#: app/tools.c:441 +msgid "Convolve" +msgstr "" + +#: app/tools.c:443 +msgid "/Tools/Convolve" +msgstr "/Werkzeuge/Verkn\374pfen" + +#: app/tools.c:446 +msgid "Blur or sharpen" +msgstr "" + +#: app/tools.c:456 +msgid "Ink" +msgstr "" + +#: app/tools.c:458 +msgid "/Tools/Ink" +msgstr "/Werkzeuge/Tinte" + +#: app/tools.c:461 +msgid "Draw in ink" +msgstr "" + +#: app/tools.c:472 +msgid "By Color Select" +msgstr "" + +#: app/tools.c:474 +msgid "/Select/By Color..." +msgstr "/Auswahl/Nach Farbe..." + +#: app/tools.c:489 +msgid "/Image/Colors/Color Balance" +msgstr "/Bild/Farben/Ausgleichen" + +#: app/tools.c:504 +msgid "/Image/Colors/Brightness-Contrast" +msgstr "/Bild/Farben/Helligkeit-Kontrast" + +#: app/tools.c:517 +msgid "Hue-Saturation" +msgstr "" + +#: app/tools.c:519 +msgid "/Image/Colors/Hue-Saturation" +msgstr "/Bild/Farben/Farbton-S\344ttigung" + +#: app/tools.c:532 +msgid "Posterize" +msgstr "" + +#: app/tools.c:534 +msgid "/Image/Colors/Posterize" +msgstr "/Bild/Farben/Posterisieren" + +#: app/tools.c:549 +msgid "/Image/Colors/Threshold" +msgstr "/Bild/Farben/Schwellwert" + +#: app/tools.c:564 +msgid "/Image/Colors/Curves" +msgstr "/Bild/Farben/Kurven" + +#: app/tools.c:577 +msgid "Levels" +msgstr "" + +#: app/tools.c:579 +msgid "/Image/Colors/Levels" +msgstr "/Bild/Farben/Werte" + +#: app/tools.c:592 +msgid "Histogram" +msgstr "" + +#: app/tools.c:594 +msgid "/Image/Histogram" +msgstr "/Bild/Histogram" + +#: app/tools.c:705 +msgid "Tool Options" +msgstr "Werkzeugeinstellungen" + +#. this tool has no special options +#: app/tools.c:782 +msgid "This tool has no options." +msgstr "" + +#: app/transform_core.c:116 +msgid "Rotate" +msgstr "" + +#: app/transform_core.c:116 +msgid "Shear" +msgstr "" + +#: app/transform_core.c:223 +msgid "" +"Transformations do not work on\n" +"layers that contain layer masks." +msgstr "" + +#: app/transform_core.c:1260 +msgid "homogeneous coordinate = 0...\n" +msgstr "" + +#: app/transform_tool.c:116 +msgid "Rotation" +msgstr "" + +#: app/transform_tool.c:117 +msgid "Scaling" +msgstr "" + +#: app/transform_tool.c:118 +msgid "Shearing" +msgstr "" + +#: app/transform_tool.c:119 +msgid "Perspective" +msgstr "" + +#: app/transform_tool.c:123 +msgid "Traditional" +msgstr "" + +#: app/transform_tool.c:124 +msgid "Corrective" +msgstr "" + +#: app/transform_tool.c:140 +msgid "Transform Tool Options" +msgstr "Trasnformationswerkzeugeinstellungen..." + +#: app/transform_tool.c:176 +msgid "Smoothing" +msgstr "" + +#. the second radio frame and box, for transform direction +#: app/transform_tool.c:192 +msgid "Tool paradigm" +msgstr "" + +#: app/transform_tool.c:215 +msgid "Show grid" +msgstr "" + +#: app/transform_tool.c:230 +msgid "Grid density: " +msgstr "" + +#: app/transform_tool.c:243 +msgid "Clip result" +msgstr "" + +#: app/undo_cmds.c:59 app/undo_cmds.c:113 +msgid "The ID of the image in which to pop an undo group" +msgstr "" + +#: app/undo_cmds.c:66 +msgid "Starts a group undo" +msgstr "" + +#: app/undo_cmds.c:67 +msgid "This function is used to start a group undo--necessary for logically combining two or more undo operations into a single operation. This call must be used in conjunction with a 'gimp_undo_push_group_end' call." +msgstr "" + +#: app/undo_cmds.c:120 +msgid "Finish a group undo" +msgstr "" + +#: app/undo_cmds.c:121 +msgid "This function must be called once for each undo_push_group call that is made." +msgstr "" + +#: app/xcf.c:166 app/xcf.c:214 +msgid "dummy parameter" +msgstr "" + +#: app/xcf.c:169 app/xcf.c:172 app/xcf.c:226 +msgid "The name of the file to load" +msgstr "" + +#: app/xcf.c:179 +msgid "Output image" +msgstr "" + +#: app/xcf.c:194 +msgid "loads file saved in the .xcf file format" +msgstr "" + +#: app/xcf.c:195 +msgid "The xcf file format has been designed specifically for loading and saving tiled and layered images in the GIMP. This procedure will load the specified file." +msgstr "" + +#: app/xcf.c:220 +msgid "Active drawable of input image" +msgstr "" + +#: app/xcf.c:241 +msgid "saves file in the .xcf file format" +msgstr "" + +#: app/xcf.c:242 +msgid "The xcf file format has been designed specifically for loading and saving tiled and layered images in the GIMP. This procedure will save the specified image in the xcf file format." +msgstr "" + +#: app/xcf.c:337 +msgid "XCF error: unsupported XCF file version %d encountered" +msgstr "" + +#: app/xcf.c:387 +msgid "open failed on %s: %s\n" +msgstr "Kann %s nicht \366ffnen: %s\n" + +#: app/xcf.c:1090 app/xcf.c:1951 +msgid "xcf: zlib compression unimplemented" +msgstr "" + +#: app/xcf.c:1247 +msgid "xcf: uh oh! xcf rle tile saving error: %d\n" +msgstr "" + +#: app/xcf.c:1389 +msgid "" +"XCF warning: version 0 of XCF file format\n" +"did not save indexed colormaps correctly.\n" +"Substituting grayscale map." +msgstr "" + +#: app/xcf.c:1420 +msgid "unknown compression type: %d" +msgstr "" + +#: app/xcf.c:1452 +msgid "unexpected/unknown image property: %d (skipping)" +msgstr "" + +#: app/xcf.c:1525 +msgid "unexpected/unknown layer property: %d (skipping)" +msgstr "" + +#: app/xcf.c:1584 +msgid "unexpected/unknown channel property: %d (skipping)" +msgstr "" + +#: app/xcf.c:1924 +msgid "not enough tiles found in level" +msgstr "" + +#: app/xcf.c:1955 +msgid "xcf: fractal compression unimplemented" +msgstr "" + +#: app/xcf.c:1997 +msgid "encountered garbage after reading level: %d" +msgstr "" + +#: app/xcf.c:2096 +msgid "xcf: uh oh! xcf rle tile loading error: %d" +msgstr "" + +#: app/xcf.c:2143 +msgid "unable to read tile data from xcf file: %d ( %d ) bytes read" msgstr "" #: app/regex.c:976 @@ -616,7 +5556,7 @@ msgstr "Kein Treffer" #. REG_NOMATCH #: app/regex.c:978 msgid "Invalid regular expression" -msgstr "Ungültiger regulärer Ausdruck" +msgstr "Ung\374ltiger regul\344rer Ausdruck" #. REG_BADPAT #: app/regex.c:979 @@ -684,5 +5624,5 @@ msgid "Unmatched ) or \\)" msgstr "" #: app/regex.c:5442 -msgid "No previous regular expression" +msgid "No previous regular expression" msgstr ""