libgimp/gimpintl.h use G_STMT_START and G_STMT_END for multiline #defines

* libgimp/gimpintl.h
* libgimp/stdplugins-intl.h: use G_STMT_START and G_STMT_END for
multiline #defines

i18n stuff from David Monniaux

-Yosh
This commit is contained in:
Manish Singh 1999-10-08 22:09:41 +00:00
parent 4f6393deb5
commit dea7f1ce43
11 changed files with 3125 additions and 201 deletions

View file

@ -1,3 +1,13 @@
Fri Oct 8 15:04:45 PDT 1999 Manish Singh <yosh@gimp.org>
* libgimp/gimpintl.h
* libgimp/stdplugins-intl.h: use G_STMT_START and G_STMT_END for
multiline #defines
* plug-ins/AlienMap/AlienMap.c
* plug-ins/AlienMap/AlienMap2.c
* tips/gimp_conseils.fr.txt: i18n stuff from David Monniaux
Fri Oct 8 22:00:00 MEST 1999 Sven Neumann <sven@gimp.org> Fri Oct 8 22:00:00 MEST 1999 Sven Neumann <sven@gimp.org>
* libgimp/gimpfeatures.h.in: #define GIMP_HAVE_EXPORT so that authors * libgimp/gimpfeatures.h.in: #define GIMP_HAVE_EXPORT so that authors

View file

@ -1,6 +1,7 @@
#ifndef __GIMPINTL_H__ #ifndef __GIMPINTL_H__
#define __GIMPINTL_H__ #define __GIMPINTL_H__
#include <glib.h>
#include <locale.h> #include <locale.h>
/* Copied from gnome-i18n.h by Tom Tromey <tromey@creche.cygnus.com> * /* Copied from gnome-i18n.h by Tom Tromey <tromey@creche.cygnus.com> *
@ -33,10 +34,11 @@
# define N_(String) (String) # define N_(String) (String)
#endif #endif
# define INIT_LOCALE( domain ) \ #define INIT_LOCALE( domain ) G_STMT_START{ \
gtk_set_locale (); \ gtk_set_locale (); \
setlocale (LC_NUMERIC, "C"); \ setlocale (LC_NUMERIC, "C"); \
bindtextdomain (domain, LOCALEDIR); \ bindtextdomain (domain, LOCALEDIR); \
textdomain (domain); textdomain (domain); \
}G_STMT_END
#endif /* __GIMPINTL_H__ */ #endif /* __GIMPINTL_H__ */

View file

@ -6,19 +6,22 @@
#include "libgimp/gimpintl.h" #include "libgimp/gimpintl.h"
#ifdef HAVE_LC_MESSAGES #ifdef HAVE_LC_MESSAGES
#define INIT_I18N() \ #define INIT_I18N() G_STMT_START{ \
setlocale(LC_MESSAGES, ""); \ setlocale(LC_MESSAGES, ""); \
bindtextdomain("gimp-std-plugins", LOCALEDIR); \ bindtextdomain("gimp-std-plugins", LOCALEDIR); \
textdomain("gimp-std-plugins") textdomain("gimp-std-plugins"); \
}G_STMT_END
#else #else
#define INIT_I18N() \ #define INIT_I18N() G_STMT_START{ \
bindtextdomain("gimp-std-plugins", LOCALEDIR); \ bindtextdomain("gimp-std-plugins", LOCALEDIR); \
textdomain("gimp-std-plugins") textdomain("gimp-std-plugins"); \
}G_STMT_END
#endif #endif
#define INIT_I18N_UI() \ #define INIT_I18N_UI() G_STMT_START{ \
gtk_set_locale(); \ gtk_set_locale(); \
setlocale (LC_NUMERIC, "C"); \ setlocale (LC_NUMERIC, "C"); \
INIT_I18N(); INIT_I18N(); \
}G_STMT_END
#endif /* __STDPLUGINS_INTL_H__ */ #endif /* __STDPLUGINS_INTL_H__ */

View file

@ -36,6 +36,7 @@
#include "gtk/gtk.h" #include "gtk/gtk.h"
#include "libgimp/gimp.h" #include "libgimp/gimp.h"
#include "logo.h" #include "logo.h"
#include "libgimp/stdplugins-intl.h"
/***** Macros *****/ /***** Macros *****/
@ -181,13 +182,15 @@ query ()
static int nargs = sizeof (args) / sizeof (args[0]); static int nargs = sizeof (args) / sizeof (args[0]);
static int nreturn_vals = 0; static int nreturn_vals = 0;
INIT_I18N();
gimp_install_procedure ("plug_in_alienmap", gimp_install_procedure ("plug_in_alienmap",
"AlienMap Color Transformation Plug-In", _("AlienMap Color Transformation Plug-In"),
"No help yet. Just try it and you'll see!", _("No help yet. Just try it and you'll see!"),
"Daniel Cotting (cotting@mygale.org, http://www.mygale.org/~cotting)", "Daniel Cotting (cotting@mygale.org, http://www.mygale.org/~cotting)",
"Daniel Cotting (cotting@mygale.org, http://www.mygale.org/~cotting)", "Daniel Cotting (cotting@mygale.org, http://www.mygale.org/~cotting)",
"1th May 1997", _("1th May 1997"),
"<Image>/Filters/Colors/Alien Map", N_("<Image>/Filters/Colors/Alien Map"),
"RGB*", "RGB*",
PROC_PLUG_IN, PROC_PLUG_IN,
nargs, nreturn_vals, nargs, nreturn_vals,
@ -268,6 +271,7 @@ run (char *name,
int pwidth, pheight; int pwidth, pheight;
GStatusType status = STATUS_SUCCESS; GStatusType status = STATUS_SUCCESS;
INIT_I18N_UI ();
run_mode = param[0].data.d_int32; run_mode = param[0].data.d_int32;
@ -371,7 +375,7 @@ run (char *name,
/* Make sure that the drawable is indexed or RGB color */ /* Make sure that the drawable is indexed or RGB color */
if (gimp_drawable_color (drawable->id)) if (gimp_drawable_color (drawable->id))
{ {
gimp_progress_init ("AlienMap: Transforming ..."); gimp_progress_init (_("AlienMap: Transforming ..."));
/* Set the tile cache size */ /* Set the tile cache size */
@ -658,7 +662,7 @@ alienmap_dialog(void)
build_preview_source_image(); build_preview_source_image();
dialog = maindlg = gtk_dialog_new(); dialog = maindlg = gtk_dialog_new();
gtk_window_set_title(GTK_WINDOW(dialog), "AlienMap"); gtk_window_set_title(GTK_WINDOW(dialog), _("AlienMap"));
gtk_window_position(GTK_WINDOW(dialog), GTK_WIN_POS_MOUSE); gtk_window_position(GTK_WINDOW(dialog), GTK_WIN_POS_MOUSE);
gtk_container_border_width(GTK_CONTAINER(dialog), 0); gtk_container_border_width(GTK_CONTAINER(dialog), 0);
gtk_signal_connect(GTK_OBJECT(dialog), "destroy", gtk_signal_connect(GTK_OBJECT(dialog), "destroy",
@ -702,7 +706,7 @@ alienmap_dialog(void)
gtk_table_attach(GTK_TABLE(top_table), table, 0, 4, 1, 2, GTK_EXPAND | GTK_FILL, 0, 0, 0); gtk_table_attach(GTK_TABLE(top_table), table, 0, 4, 1, 2, GTK_EXPAND | GTK_FILL, 0, 0, 0);
gtk_widget_show(table); gtk_widget_show(table);
dialog_create_value("R", GTK_TABLE(table), 0, &wvals.redstretch,0,128.00000000000, "Change intensity of the red channel"); dialog_create_value("R", GTK_TABLE(table), 0, &wvals.redstretch,0,128.00000000000, _("Change intensity of the red channel"));
table2 = gtk_table_new(1, 3, FALSE); table2 = gtk_table_new(1, 3, FALSE);
@ -710,7 +714,7 @@ alienmap_dialog(void)
gtk_table_attach(GTK_TABLE(top_table), table2, 0, 4, 2, 3, GTK_EXPAND | GTK_FILL, 0, 0, 0); gtk_table_attach(GTK_TABLE(top_table), table2, 0, 4, 2, 3, GTK_EXPAND | GTK_FILL, 0, 0, 0);
gtk_widget_show(table2); gtk_widget_show(table2);
dialog_create_value("G", GTK_TABLE(table2), 0, &wvals.greenstretch,0,128.0000000000000, "Change intensity of the green channel"); dialog_create_value("G", GTK_TABLE(table2), 0, &wvals.greenstretch,0,128.0000000000000, _("Change intensity of the green channel"));
table3 = gtk_table_new(1, 3, FALSE); table3 = gtk_table_new(1, 3, FALSE);
@ -718,17 +722,17 @@ alienmap_dialog(void)
gtk_table_attach(GTK_TABLE(top_table), table3, 0, 4, 3, 4, GTK_EXPAND | GTK_FILL, 0, 0, 0); gtk_table_attach(GTK_TABLE(top_table), table3, 0, 4, 3, 4, GTK_EXPAND | GTK_FILL, 0, 0, 0);
gtk_widget_show(table3); gtk_widget_show(table3);
dialog_create_value("B", GTK_TABLE(table3), 0, &wvals.bluestretch,0,128.00000000000000, "Change intensity of the blue channel"); dialog_create_value("B", GTK_TABLE(table3), 0, &wvals.bluestretch,0,128.00000000000000, _("Change intensity of the blue channel"));
/* Redmode toggle box */ /* Redmode toggle box */
frame = gtk_frame_new ("Red:"); frame = gtk_frame_new (_("Red:"));
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN); gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
gtk_table_attach (GTK_TABLE (top_table), frame, 1, 2, 0, 1, GTK_FILL | GTK_EXPAND, GTK_FILL | GTK_EXPAND, 5, 5); gtk_table_attach (GTK_TABLE (top_table), frame, 1, 2, 0, 1, GTK_FILL | GTK_EXPAND, GTK_FILL | GTK_EXPAND, 5, 5);
toggle_vbox = gtk_vbox_new (FALSE, 5); toggle_vbox = gtk_vbox_new (FALSE, 5);
gtk_container_border_width (GTK_CONTAINER (toggle_vbox), 5); gtk_container_border_width (GTK_CONTAINER (toggle_vbox), 5);
gtk_container_add (GTK_CONTAINER (frame), toggle_vbox); gtk_container_add (GTK_CONTAINER (frame), toggle_vbox);
toggle = gtk_radio_button_new_with_label (redmode_group, "Sine"); toggle = gtk_radio_button_new_with_label (redmode_group, _("Sine"));
redmode_group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle)); redmode_group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled", gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
@ -737,9 +741,9 @@ alienmap_dialog(void)
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), do_redsinus); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), do_redsinus);
gtk_widget_show (toggle); gtk_widget_show (toggle);
set_tooltip(tips,toggle,"Use sine-function for red component"); set_tooltip(tips,toggle,_("Use sine-function for red component"));
toggle = gtk_radio_button_new_with_label (redmode_group, "Cosine"); toggle = gtk_radio_button_new_with_label (redmode_group, _("Cosine"));
redmode_group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle)); redmode_group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled", gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
@ -747,9 +751,9 @@ alienmap_dialog(void)
&do_redcosinus); &do_redcosinus);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), do_redcosinus); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), do_redcosinus);
gtk_widget_show (toggle); gtk_widget_show (toggle);
set_tooltip(tips,toggle,"Use cosine-function for red component"); set_tooltip(tips,toggle,_("Use cosine-function for red component"));
toggle = gtk_radio_button_new_with_label (redmode_group, "None"); toggle = gtk_radio_button_new_with_label (redmode_group, _("None"));
redmode_group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle)); redmode_group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled", gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
@ -757,21 +761,21 @@ alienmap_dialog(void)
&do_rednone); &do_rednone);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), do_rednone); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), do_rednone);
gtk_widget_show (toggle); gtk_widget_show (toggle);
set_tooltip(tips,toggle,"Red channel: use linear mapping instead of any trigonometrical function"); set_tooltip(tips,toggle,_("Red channel: use linear mapping instead of any trigonometrical function"));
gtk_widget_show (toggle_vbox); gtk_widget_show (toggle_vbox);
gtk_widget_show (frame); gtk_widget_show (frame);
/* Greenmode toggle box */ /* Greenmode toggle box */
frame = gtk_frame_new ("Green:"); frame = gtk_frame_new (_("Green:"));
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN); gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
gtk_table_attach (GTK_TABLE (top_table), frame, 2, 3, 0, 1, GTK_FILL | GTK_EXPAND, GTK_FILL | GTK_EXPAND, 5, 5); gtk_table_attach (GTK_TABLE (top_table), frame, 2, 3, 0, 1, GTK_FILL | GTK_EXPAND, GTK_FILL | GTK_EXPAND, 5, 5);
toggle_vbox = gtk_vbox_new (FALSE, 5); toggle_vbox = gtk_vbox_new (FALSE, 5);
gtk_container_border_width (GTK_CONTAINER (toggle_vbox), 5); gtk_container_border_width (GTK_CONTAINER (toggle_vbox), 5);
gtk_container_add (GTK_CONTAINER (frame), toggle_vbox); gtk_container_add (GTK_CONTAINER (frame), toggle_vbox);
toggle = gtk_radio_button_new_with_label (greenmode_group, "Sine"); toggle = gtk_radio_button_new_with_label (greenmode_group, _("Sine"));
greenmode_group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle)); greenmode_group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled", gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
@ -779,9 +783,9 @@ alienmap_dialog(void)
&do_greensinus); &do_greensinus);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), do_greensinus); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), do_greensinus);
gtk_widget_show (toggle); gtk_widget_show (toggle);
set_tooltip(tips,toggle,"Use sine-function for green component"); set_tooltip(tips,toggle,_("Use sine-function for green component"));
toggle = gtk_radio_button_new_with_label (greenmode_group, "Cosine"); toggle = gtk_radio_button_new_with_label (greenmode_group, _("Cosine"));
greenmode_group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle)); greenmode_group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled", gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
@ -789,9 +793,9 @@ alienmap_dialog(void)
&do_greencosinus); &do_greencosinus);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), do_greencosinus); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), do_greencosinus);
gtk_widget_show (toggle); gtk_widget_show (toggle);
set_tooltip(tips,toggle,"Use cosine-function for green component"); set_tooltip(tips,toggle,_("Use cosine-function for green component"));
toggle = gtk_radio_button_new_with_label (greenmode_group, "None"); toggle = gtk_radio_button_new_with_label (greenmode_group, _("None"));
greenmode_group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle)); greenmode_group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled", gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
@ -799,21 +803,21 @@ alienmap_dialog(void)
&do_greennone); &do_greennone);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), do_greennone); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), do_greennone);
gtk_widget_show (toggle); gtk_widget_show (toggle);
set_tooltip(tips,toggle,"Green channel: use linear mapping instead of any trigonometrical function"); set_tooltip(tips,toggle,_("Green channel: use linear mapping instead of any trigonometrical function"));
gtk_widget_show (toggle_vbox); gtk_widget_show (toggle_vbox);
gtk_widget_show (frame); gtk_widget_show (frame);
/* Bluemode toggle box */ /* Bluemode toggle box */
frame = gtk_frame_new ("Blue:"); frame = gtk_frame_new (_("Blue:"));
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN); gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
gtk_table_attach (GTK_TABLE (top_table), frame, 3, 4, 0, 1, GTK_FILL | GTK_EXPAND, GTK_FILL | GTK_EXPAND, 5, 5); gtk_table_attach (GTK_TABLE (top_table), frame, 3, 4, 0, 1, GTK_FILL | GTK_EXPAND, GTK_FILL | GTK_EXPAND, 5, 5);
toggle_vbox = gtk_vbox_new (FALSE, 5); toggle_vbox = gtk_vbox_new (FALSE, 5);
gtk_container_border_width (GTK_CONTAINER (toggle_vbox), 5); gtk_container_border_width (GTK_CONTAINER (toggle_vbox), 5);
gtk_container_add (GTK_CONTAINER (frame), toggle_vbox); gtk_container_add (GTK_CONTAINER (frame), toggle_vbox);
toggle = gtk_radio_button_new_with_label (bluemode_group, "Sine"); toggle = gtk_radio_button_new_with_label (bluemode_group, _("Sine"));
bluemode_group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle)); bluemode_group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled", gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
@ -821,9 +825,9 @@ alienmap_dialog(void)
&do_bluesinus); &do_bluesinus);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), do_bluesinus); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), do_bluesinus);
gtk_widget_show (toggle); gtk_widget_show (toggle);
set_tooltip(tips,toggle,"Use sine-function for blue component"); set_tooltip(tips,toggle,_("Use sine-function for blue component"));
toggle = gtk_radio_button_new_with_label (bluemode_group, "Cosine"); toggle = gtk_radio_button_new_with_label (bluemode_group, _("Cosine"));
bluemode_group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle)); bluemode_group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled", gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
@ -831,9 +835,9 @@ alienmap_dialog(void)
&do_bluecosinus); &do_bluecosinus);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), do_bluecosinus); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), do_bluecosinus);
gtk_widget_show (toggle); gtk_widget_show (toggle);
set_tooltip(tips,toggle,"Use cosine-function for blue component"); set_tooltip(tips,toggle,_("Use cosine-function for blue component"));
toggle = gtk_radio_button_new_with_label (bluemode_group, "None"); toggle = gtk_radio_button_new_with_label (bluemode_group, _("None"));
bluemode_group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle)); bluemode_group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled", gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
@ -841,7 +845,7 @@ alienmap_dialog(void)
&do_bluenone); &do_bluenone);
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), do_bluenone); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), do_bluenone);
gtk_widget_show (toggle); gtk_widget_show (toggle);
set_tooltip(tips,toggle,"Blue channel: use linear mapping instead of any trigonometrical function"); set_tooltip(tips,toggle,_("Blue channel: use linear mapping instead of any trigonometrical function"));
gtk_widget_show (toggle_vbox); gtk_widget_show (toggle_vbox);
gtk_widget_show (frame); gtk_widget_show (frame);
@ -853,7 +857,7 @@ alienmap_dialog(void)
gtk_container_border_width(GTK_CONTAINER(GTK_DIALOG(dialog)->action_area), 6); gtk_container_border_width(GTK_CONTAINER(GTK_DIALOG(dialog)->action_area), 6);
button = gtk_button_new_with_label("OK"); button = gtk_button_new_with_label(_("OK"));
GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT); GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
gtk_signal_connect(GTK_OBJECT(button), "clicked", gtk_signal_connect(GTK_OBJECT(button), "clicked",
(GtkSignalFunc) dialog_ok_callback, (GtkSignalFunc) dialog_ok_callback,
@ -861,18 +865,18 @@ gtk_container_border_width(GTK_CONTAINER(GTK_DIALOG(dialog)->action_area), 6);
gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button, TRUE, TRUE, 0);
gtk_widget_grab_default(button); gtk_widget_grab_default(button);
gtk_widget_show(button); gtk_widget_show(button);
set_tooltip(tips,button,"Accept settings and apply filter on image"); set_tooltip(tips,button,_("Accept settings and apply filter on image"));
button = gtk_button_new_with_label("Cancel"); button = gtk_button_new_with_label(_("Cancel"));
GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT); GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
gtk_signal_connect(GTK_OBJECT(button), "clicked", gtk_signal_connect(GTK_OBJECT(button), "clicked",
(GtkSignalFunc) dialog_cancel_callback, (GtkSignalFunc) dialog_cancel_callback,
dialog); dialog);
gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button, TRUE, TRUE, 0);
gtk_widget_show(button); gtk_widget_show(button);
set_tooltip(tips,button,"Reject any changes and close plug-in"); set_tooltip(tips,button,_("Reject any changes and close plug-in"));
button = gtk_button_new_with_label("About..."); button = gtk_button_new_with_label(_("About..."));
GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT); GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
gtk_signal_connect(GTK_OBJECT(button), "clicked", gtk_signal_connect(GTK_OBJECT(button), "clicked",
GTK_SIGNAL_FUNC (alienmap_logo_dialog), GTK_SIGNAL_FUNC (alienmap_logo_dialog),
@ -880,7 +884,7 @@ gtk_container_border_width(GTK_CONTAINER(GTK_DIALOG(dialog)->action_area), 6);
gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area),
button, TRUE, TRUE, 0); button, TRUE, TRUE, 0);
gtk_widget_show(button); gtk_widget_show(button);
set_tooltip(tips,button,"Show information about this plug-in and the author"); set_tooltip(tips,button,_("Show information about this plug-in and the author"));
/* Done */ /* Done */
@ -1143,7 +1147,7 @@ alienmap_logo_dialog()
if (!logodlg) if (!logodlg)
{ {
logodlg = gtk_dialog_new(); logodlg = gtk_dialog_new();
gtk_window_set_title(GTK_WINDOW(logodlg), "About Alien Map"); gtk_window_set_title(GTK_WINDOW(logodlg), _("About Alien Map"));
gtk_window_position(GTK_WINDOW(logodlg), GTK_WIN_POS_MOUSE); gtk_window_position(GTK_WINDOW(logodlg), GTK_WIN_POS_MOUSE);
gtk_signal_connect(GTK_OBJECT(logodlg), gtk_signal_connect(GTK_OBJECT(logodlg),
"destroy", "destroy",
@ -1155,7 +1159,7 @@ alienmap_logo_dialog()
GTK_SIGNAL_FUNC (gtk_widget_hide_on_delete), GTK_SIGNAL_FUNC (gtk_widget_hide_on_delete),
&logodlg); &logodlg);
xbutton = gtk_button_new_with_label("OK"); xbutton = gtk_button_new_with_label(_("OK"));
GTK_WIDGET_SET_FLAGS(xbutton, GTK_CAN_DEFAULT); GTK_WIDGET_SET_FLAGS(xbutton, GTK_CAN_DEFAULT);
gtk_signal_connect_object (GTK_OBJECT(xbutton), "clicked", gtk_signal_connect_object (GTK_OBJECT(xbutton), "clicked",
GTK_SIGNAL_FUNC (gtk_widget_hide), GTK_SIGNAL_FUNC (gtk_widget_hide),
@ -1164,7 +1168,7 @@ alienmap_logo_dialog()
xbutton, TRUE, TRUE, 0); xbutton, TRUE, TRUE, 0);
gtk_widget_grab_default(xbutton); gtk_widget_grab_default(xbutton);
gtk_widget_show(xbutton); gtk_widget_show(xbutton);
set_tooltip(tips,xbutton,"This closes the information box"); set_tooltip(tips,xbutton,_("This closes the information box"));
xframe = gtk_frame_new(NULL); xframe = gtk_frame_new(NULL);
gtk_frame_set_shadow_type(GTK_FRAME(xframe), GTK_SHADOW_ETCHED_IN); gtk_frame_set_shadow_type(GTK_FRAME(xframe), GTK_SHADOW_ETCHED_IN);
@ -1206,13 +1210,13 @@ alienmap_logo_dialog()
xhbox = gtk_hbox_new(FALSE, 5); xhbox = gtk_hbox_new(FALSE, 5);
gtk_box_pack_start(GTK_BOX(xvbox), xhbox, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(xvbox), xhbox, TRUE, TRUE, 0);
text = "\nCotting Software Productions\n" text = _("\nCotting Software Productions\n"
"Bahnhofstrasse 31\n" "Bahnhofstrasse 31\n"
"CH-3066 Stettlen (Switzerland)\n\n" "CH-3066 Stettlen (Switzerland)\n\n"
"cotting@mygale.org\n" "cotting@mygale.org\n"
"http://www.mygale.org/~cotting\n\n" "http://www.mygale.org/~cotting\n\n"
"AlienMap Plug-In for the GIMP\n" "AlienMap Plug-In for the GIMP\n"
"Version 1.01\n"; "Version 1.01\n");
xlabel = gtk_label_new(text); xlabel = gtk_label_new(text);
gtk_box_pack_start(GTK_BOX(xhbox), xlabel, TRUE, FALSE, 0); gtk_box_pack_start(GTK_BOX(xhbox), xlabel, TRUE, FALSE, 0);
gtk_widget_show(xlabel); gtk_widget_show(xlabel);

View file

@ -33,6 +33,7 @@
#include "gtk/gtk.h" #include "gtk/gtk.h"
#include "libgimp/gimp.h" #include "libgimp/gimp.h"
#include "logo.h" #include "logo.h"
#include "libgimp/stdplugins-intl.h"
/***** Macros *****/ /***** Macros *****/
@ -52,8 +53,8 @@
/***** Color model *****/ /***** Color model *****/
#define RGB 0 #define RGB_MODEL 0
#define HSL 1 #define HSL_MODEL 1
/***** Types *****/ /***** Types *****/
typedef struct { typedef struct {
@ -157,7 +158,7 @@ static alienmap2_vals_t wvals = {
0.0, 0.0,
1.0, 1.0,
0.0, 0.0,
RGB, RGB_MODEL,
TRUE, TRUE,
TRUE, TRUE,
TRUE, TRUE,
@ -195,7 +196,7 @@ query ()
{ PARAM_FLOAT, "greenangle", "Green/saturation component angle factor (0-360)" }, { PARAM_FLOAT, "greenangle", "Green/saturation component angle factor (0-360)" },
{ PARAM_FLOAT, "bluefrequency", "Blue/luminance component frequency factor" }, { PARAM_FLOAT, "bluefrequency", "Blue/luminance component frequency factor" },
{ PARAM_FLOAT, "blueangle", "Blue/luminance component angle factor (0-360)" }, { PARAM_FLOAT, "blueangle", "Blue/luminance component angle factor (0-360)" },
{ PARAM_INT8, "colormodel", "Color model (0: RGB, 1: HSL)" }, { PARAM_INT8, "colormodel", "Color model (0: RGB_MODEL, 1: HSL_MODEL)" },
{ PARAM_INT8, "redmode", "Red/hue application mode (TRUE, FALSE)" }, { PARAM_INT8, "redmode", "Red/hue application mode (TRUE, FALSE)" },
{ PARAM_INT8, "greenmode", "Green/saturation application mode (TRUE, FALSE)" }, { PARAM_INT8, "greenmode", "Green/saturation application mode (TRUE, FALSE)" },
{ PARAM_INT8, "bluemode", "Blue/luminance application mode (TRUE, FALSE)" }, { PARAM_INT8, "bluemode", "Blue/luminance application mode (TRUE, FALSE)" },
@ -204,14 +205,16 @@ query ()
static int nargs = sizeof (args) / sizeof (args[0]); static int nargs = sizeof (args) / sizeof (args[0]);
static int nreturn_vals = 0; static int nreturn_vals = 0;
INIT_I18N();
gimp_install_procedure ("plug_in_alienmap2", gimp_install_procedure ("plug_in_alienmap2",
"AlienMap2 Color Transformation Plug-In", _("AlienMap2 Color Transformation Plug-In"),
"No help yet. Just try it and you'll see!", _("No help yet. Just try it and you'll see!"),
"Martin Weber (martin.weber@usa.net, http://diverse.freepage.de/martin.weber)", "Martin Weber (martin.weber@usa.net, http://diverse.freepage.de/martin.weber)",
"Martin Weber (martin.weber@usa.net, http://diverse.freepage.de/martin.weber", "Martin Weber (martin.weber@usa.net, http://diverse.freepage.de/martin.weber",
"24th April 1998", _("24th April 1998"),
"<Image>/Filters/Colors/Alien Map 2", _("<Image>/Filters/Colors/Alien Map 2"),
"RGB*", "RGB_MODEL*",
PROC_PLUG_IN, PROC_PLUG_IN,
nargs, nreturn_vals, nargs, nreturn_vals,
args, return_vals); args, return_vals);
@ -230,7 +233,7 @@ transform (short int *r,
green = *g; green = *g;
blue = *b; blue = *b;
if (wvals.colormodel == HSL) if (wvals.colormodel == HSL_MODEL)
{ {
r1 = (gdouble) red / 255.0; r1 = (gdouble) red / 255.0;
g1 = (gdouble) green / 255.0; g1 = (gdouble) green / 255.0;
@ -247,7 +250,7 @@ transform (short int *r,
green = (gint) (255.0 * g1 + 0.5); green = (gint) (255.0 * g1 + 0.5);
blue = (gint) (255.0 * b1 + 0.5); blue = (gint) (255.0 * b1 + 0.5);
} }
else if (wvals.colormodel == RGB) else if (wvals.colormodel == RGB_MODEL)
{ {
if (wvals.redmode) if (wvals.redmode)
red = (int) (127.5*(1.0+sin(((red/127.5-1.0)*wvals.redfrequency+wvals.redangle/180.0)*M_PI))+0.5); red = (int) (127.5*(1.0+sin(((red/127.5-1.0)*wvals.redfrequency+wvals.redangle/180.0)*M_PI))+0.5);
@ -278,6 +281,7 @@ run (char *name,
int pwidth, pheight; int pwidth, pheight;
GStatusType status = STATUS_SUCCESS; GStatusType status = STATUS_SUCCESS;
INIT_I18N_UI ();
run_mode = param[0].data.d_int32; run_mode = param[0].data.d_int32;
@ -381,10 +385,10 @@ run (char *name,
if (status == STATUS_SUCCESS) if (status == STATUS_SUCCESS)
{ {
/* Make sure that the drawable is indexed or RGB color */ /* Make sure that the drawable is indexed or RGB_MODEL color */
if (gimp_drawable_color (drawable->id)) if (gimp_drawable_color (drawable->id))
{ {
gimp_progress_init ("AlienMap2: Transforming ..."); gimp_progress_init (_("AlienMap2: Transforming ..."));
/* Set the tile cache size */ /* Set the tile cache size */
@ -406,7 +410,7 @@ run (char *name,
} }
else else
{ {
/* gimp_message("This filter only applies on RGB-images"); */ /* gimp_message("This filter only applies on RGB_MODEL-images"); */
status = STATUS_EXECUTION_ERROR; status = STATUS_EXECUTION_ERROR;
} }
} }
@ -630,8 +634,8 @@ alienmap2_dialog(void)
guchar *color_cube; guchar *color_cube;
use_rgb = (wvals.colormodel == RGB); use_rgb = (wvals.colormodel == RGB_MODEL);
use_hsl = (wvals.colormodel == HSL); use_hsl = (wvals.colormodel == HSL_MODEL);
argc = 1; argc = 1;
argv = g_new(gchar *, 1); argv = g_new(gchar *, 1);
@ -650,7 +654,7 @@ alienmap2_dialog(void)
build_preview_source_image(); build_preview_source_image();
dialog = maindlg = gtk_dialog_new(); dialog = maindlg = gtk_dialog_new();
gtk_window_set_title(GTK_WINDOW(dialog), "AlienMap2"); gtk_window_set_title(GTK_WINDOW(dialog), _("AlienMap2"));
gtk_window_position(GTK_WINDOW(dialog), GTK_WIN_POS_MOUSE); gtk_window_position(GTK_WINDOW(dialog), GTK_WIN_POS_MOUSE);
gtk_container_border_width(GTK_CONTAINER(dialog), 0); gtk_container_border_width(GTK_CONTAINER(dialog), 0);
gtk_signal_connect(GTK_OBJECT(dialog), "destroy", gtk_signal_connect(GTK_OBJECT(dialog), "destroy",
@ -695,28 +699,28 @@ alienmap2_dialog(void)
gtk_table_attach(GTK_TABLE(top_table), table, 0, 4, 1, 2, GTK_EXPAND | GTK_FILL, 0, 5, 5); gtk_table_attach(GTK_TABLE(top_table), table, 0, 4, 1, 2, GTK_EXPAND | GTK_FILL, 0, 5, 5);
gtk_widget_show(table); gtk_widget_show(table);
dialog_create_value("R/H-Frequency:", GTK_TABLE(table), 1, &wvals.redfrequency,0,5.0000000000000, "Change frequency of the red/hue channel"); dialog_create_value(_("R/H-Frequency:"), GTK_TABLE(table), 1, &wvals.redfrequency,0,5.0000000000000, _("Change frequency of the red/hue channel"));
if (wvals.redfrequency!=1.0) exit; if (wvals.redfrequency!=1.0) exit;
dialog_create_value("R/H-Phaseshift:", GTK_TABLE(table), 2, &wvals.redangle,0,360.00000000000000, "Change angle of the red/hue channel"); dialog_create_value(_("R/H-Phaseshift:"), GTK_TABLE(table), 2, &wvals.redangle,0,360.00000000000000, _("Change angle of the red/hue channel"));
dialog_create_value("G/S-Frequency:", GTK_TABLE(table), 3, &wvals.greenfrequency,0,5.00000000000, "Change frequeny of the green/saturation channel"); dialog_create_value(_("G/S-Frequency:"), GTK_TABLE(table), 3, &wvals.greenfrequency,0,5.00000000000, _("Change frequeny of the green/saturation channel"));
dialog_create_value("G/S-Phaseshift:", GTK_TABLE(table), 4, &wvals.greenangle,0,360.00000000000000, "Change angle of the green/saturation channel"); dialog_create_value(_("G/S-Phaseshift:"), GTK_TABLE(table), 4, &wvals.greenangle,0,360.00000000000000, _("Change angle of the green/saturation channel"));
dialog_create_value("B/L-Frequency:", GTK_TABLE(table), 5, &wvals.bluefrequency,0,5.00000000000, "Change frequency of the blue/luminance channel"); dialog_create_value(_("B/L-Frequency:"), GTK_TABLE(table), 5, &wvals.bluefrequency,0,5.00000000000, _("Change frequency of the blue/luminance channel"));
dialog_create_value("B/L-Phaseshift:", GTK_TABLE(table), 6, &wvals.blueangle,0,360.00000000000, "Change angle of the blue/luminance channel"); dialog_create_value(_("B/L-Phaseshift:"), GTK_TABLE(table), 6, &wvals.blueangle,0,360.00000000000, _("Change angle of the blue/luminance channel"));
/* Mode toggle box */ /* Mode toggle box */
frame = gtk_frame_new ("Mode:"); frame = gtk_frame_new (_("Mode:"));
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN); gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
gtk_table_attach (GTK_TABLE (top_table), frame, 1, 2, 0, 1, GTK_FILL | GTK_EXPAND, GTK_FILL | GTK_EXPAND, 5, 5); gtk_table_attach (GTK_TABLE (top_table), frame, 1, 2, 0, 1, GTK_FILL | GTK_EXPAND, GTK_FILL | GTK_EXPAND, 5, 5);
toggle_vbox = gtk_vbox_new (FALSE, 5); toggle_vbox = gtk_vbox_new (FALSE, 5);
gtk_container_border_width (GTK_CONTAINER (toggle_vbox), 5); gtk_container_border_width (GTK_CONTAINER (toggle_vbox), 5);
gtk_container_add (GTK_CONTAINER (frame), toggle_vbox); gtk_container_add (GTK_CONTAINER (frame), toggle_vbox);
toggle = gtk_radio_button_new_with_label (mode_group, "RGB color model"); toggle = gtk_radio_button_new_with_label (mode_group, _("RGB_MODEL color model"));
mode_group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle)); mode_group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled", gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
@ -725,9 +729,9 @@ if (wvals.redfrequency!=1.0) exit;
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), use_rgb); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), use_rgb);
gtk_widget_show (toggle); gtk_widget_show (toggle);
set_tooltip(tips,toggle,"Use RGB color model"); set_tooltip(tips,toggle,_("Use RGB_MODEL color model"));
toggle = gtk_radio_button_new_with_label (mode_group, "HSL color model"); toggle = gtk_radio_button_new_with_label (mode_group, _("HSL_MODEL color model"));
mode_group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle)); mode_group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled", gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
@ -735,9 +739,9 @@ if (wvals.redfrequency!=1.0) exit;
&use_hsl); &use_hsl);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), use_hsl); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), use_hsl);
gtk_widget_show (toggle); gtk_widget_show (toggle);
set_tooltip(tips,toggle,"Use HSL color model"); set_tooltip(tips,toggle,_("Use HSL_MODEL color model"));
toggle = gtk_check_button_new_with_label ("Modify red/hue channel"); toggle = gtk_check_button_new_with_label (_("Modify red/hue channel"));
gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled", gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) alienmap2_toggle_update, (GtkSignalFunc) alienmap2_toggle_update,
@ -745,9 +749,9 @@ if (wvals.redfrequency!=1.0) exit;
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), wvals.redmode); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), wvals.redmode);
gtk_widget_show (toggle); gtk_widget_show (toggle);
set_tooltip(tips,toggle,"Use function for red/hue component"); set_tooltip(tips,toggle,_("Use function for red/hue component"));
toggle = gtk_check_button_new_with_label ("Modify green/saturation channel"); toggle = gtk_check_button_new_with_label (_("Modify green/saturation channel"));
gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled", gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) alienmap2_toggle_update, (GtkSignalFunc) alienmap2_toggle_update,
@ -755,9 +759,9 @@ if (wvals.redfrequency!=1.0) exit;
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), wvals.greenmode); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), wvals.greenmode);
gtk_widget_show (toggle); gtk_widget_show (toggle);
set_tooltip(tips,toggle,"Use function for green/saturation component"); set_tooltip(tips,toggle,_("Use function for green/saturation component"));
toggle = gtk_check_button_new_with_label ("Modify blue/luminance channel"); toggle = gtk_check_button_new_with_label (_("Modify blue/luminance channel"));
gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled", gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) alienmap2_toggle_update, (GtkSignalFunc) alienmap2_toggle_update,
@ -765,7 +769,7 @@ if (wvals.redfrequency!=1.0) exit;
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), wvals.bluemode); gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), wvals.bluemode);
gtk_widget_show (toggle); gtk_widget_show (toggle);
set_tooltip(tips,toggle,"Use function for blue/luminance component"); set_tooltip(tips,toggle,_("Use function for blue/luminance component"));
gtk_widget_show (toggle_vbox); gtk_widget_show (toggle_vbox);
gtk_widget_show (frame); gtk_widget_show (frame);
@ -776,7 +780,7 @@ if (wvals.redfrequency!=1.0) exit;
gtk_container_border_width(GTK_CONTAINER(GTK_DIALOG(dialog)->action_area), 6); gtk_container_border_width(GTK_CONTAINER(GTK_DIALOG(dialog)->action_area), 6);
button = gtk_button_new_with_label("OK"); button = gtk_button_new_with_label(_("OK"));
GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT); GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
gtk_signal_connect(GTK_OBJECT(button), "clicked", gtk_signal_connect(GTK_OBJECT(button), "clicked",
(GtkSignalFunc) dialog_ok_callback, (GtkSignalFunc) dialog_ok_callback,
@ -784,18 +788,18 @@ gtk_container_border_width(GTK_CONTAINER(GTK_DIALOG(dialog)->action_area), 6);
gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button, TRUE, TRUE, 0);
gtk_widget_grab_default(button); gtk_widget_grab_default(button);
gtk_widget_show(button); gtk_widget_show(button);
set_tooltip(tips,button,"Accept settings and apply filter on image"); set_tooltip(tips,button,_("Accept settings and apply filter on image"));
button = gtk_button_new_with_label("Cancel"); button = gtk_button_new_with_label(_("Cancel"));
GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT); GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
gtk_signal_connect(GTK_OBJECT(button), "clicked", gtk_signal_connect(GTK_OBJECT(button), "clicked",
(GtkSignalFunc) dialog_cancel_callback, (GtkSignalFunc) dialog_cancel_callback,
dialog); dialog);
gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), button, TRUE, TRUE, 0);
gtk_widget_show(button); gtk_widget_show(button);
set_tooltip(tips,button,"Reject any changes and close plug-in"); set_tooltip(tips,button,_("Reject any changes and close plug-in"));
button = gtk_button_new_with_label("About..."); button = gtk_button_new_with_label(_("About..."));
GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT); GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT);
gtk_signal_connect(GTK_OBJECT(button), "clicked", gtk_signal_connect(GTK_OBJECT(button), "clicked",
GTK_SIGNAL_FUNC (alienmap2_logo_dialog), GTK_SIGNAL_FUNC (alienmap2_logo_dialog),
@ -803,7 +807,7 @@ gtk_container_border_width(GTK_CONTAINER(GTK_DIALOG(dialog)->action_area), 6);
gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area), gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->action_area),
button, TRUE, TRUE, 0); button, TRUE, TRUE, 0);
gtk_widget_show(button); gtk_widget_show(button);
set_tooltip(tips,button,"Show information about this plug-in and the author"); set_tooltip(tips,button,_("Show information about this plug-in and the author"));
@ -1022,9 +1026,9 @@ alienmap2_toggle_update (GtkWidget *widget,
/* determine colormodel */ /* determine colormodel */
if (use_rgb) if (use_rgb)
wvals.colormodel = RGB; wvals.colormodel = RGB_MODEL;
else if (use_hsl) else if (use_hsl)
wvals.colormodel = HSL; wvals.colormodel = HSL_MODEL;
dialog_update_preview(); dialog_update_preview();
@ -1048,7 +1052,7 @@ alienmap2_logo_dialog()
if (!logodlg) if (!logodlg)
{ {
logodlg = gtk_dialog_new(); logodlg = gtk_dialog_new();
gtk_window_set_title(GTK_WINDOW(logodlg), "About Alien Map 2"); gtk_window_set_title(GTK_WINDOW(logodlg), _("About Alien Map 2"));
gtk_window_position(GTK_WINDOW(logodlg), GTK_WIN_POS_MOUSE); gtk_window_position(GTK_WINDOW(logodlg), GTK_WIN_POS_MOUSE);
gtk_signal_connect(GTK_OBJECT(logodlg), gtk_signal_connect(GTK_OBJECT(logodlg),
"destroy", "destroy",
@ -1060,7 +1064,7 @@ alienmap2_logo_dialog()
GTK_SIGNAL_FUNC (gtk_widget_hide_on_delete), GTK_SIGNAL_FUNC (gtk_widget_hide_on_delete),
&logodlg); &logodlg);
xbutton = gtk_button_new_with_label("OK"); xbutton = gtk_button_new_with_label(_("OK"));
GTK_WIDGET_SET_FLAGS(xbutton, GTK_CAN_DEFAULT); GTK_WIDGET_SET_FLAGS(xbutton, GTK_CAN_DEFAULT);
gtk_signal_connect_object (GTK_OBJECT(xbutton), "clicked", gtk_signal_connect_object (GTK_OBJECT(xbutton), "clicked",
GTK_SIGNAL_FUNC (gtk_widget_hide), GTK_SIGNAL_FUNC (gtk_widget_hide),
@ -1069,7 +1073,7 @@ alienmap2_logo_dialog()
xbutton, TRUE, TRUE, 0); xbutton, TRUE, TRUE, 0);
gtk_widget_grab_default(xbutton); gtk_widget_grab_default(xbutton);
gtk_widget_show(xbutton); gtk_widget_show(xbutton);
set_tooltip(tips,xbutton,"This closes the information box"); set_tooltip(tips,xbutton,_("This closes the information box"));
xframe = gtk_frame_new(NULL); xframe = gtk_frame_new(NULL);
gtk_frame_set_shadow_type(GTK_FRAME(xframe), GTK_SHADOW_ETCHED_IN); gtk_frame_set_shadow_type(GTK_FRAME(xframe), GTK_SHADOW_ETCHED_IN);
@ -1111,11 +1115,11 @@ alienmap2_logo_dialog()
xhbox = gtk_hbox_new(FALSE, 5); xhbox = gtk_hbox_new(FALSE, 5);
gtk_box_pack_start(GTK_BOX(xvbox), xhbox, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(xvbox), xhbox, TRUE, TRUE, 0);
text = "\nMartin Weber\n" text = _("\nMartin Weber\n"
"martin.weber@usa.net\n" "martin.weber@usa.net\n"
"http://diverse.freepage.de/martin.weber\n\n" "http://diverse.freepage.de/martin.weber\n\n"
"AlienMap2 Plug-In for the GIMP\n" "AlienMap2 Plug-In for the GIMP\n"
"Version 1.0\n"; "Version 1.0\n");
xlabel = gtk_label_new(text); xlabel = gtk_label_new(text);
gtk_box_pack_start(GTK_BOX(xhbox), xlabel, TRUE, FALSE, 0); gtk_box_pack_start(GTK_BOX(xhbox), xlabel, TRUE, FALSE, 0);
gtk_widget_show(xlabel); gtk_widget_show(xlabel);

View file

@ -1,3 +1,7 @@
Fri Oct 8 15:07:02 PDT 1999 Manish Singh <yosh@gimp.org>
* fr.po: updates from David Monniaux
Sat Oct 2 11:12:09 PDT 1999 Manish Singh <yosh@gimp.org> Sat Oct 2 11:12:09 PDT 1999 Manish Singh <yosh@gimp.org>
* fr.po: updates from David Monniaux * fr.po: updates from David Monniaux

View file

@ -1,6 +1,8 @@
# Files from the Gimp distribution which have already been # Files from the Gimp distribution which have already been
# marked to allow runtime translation of messages # marked to allow runtime translation of messages
plug-ins/AlienMap/AlienMap.c
plug-ins/AlienMap2/AlienMap2.c
plug-ins/common/CEL.c plug-ins/common/CEL.c
plug-ins/common/CML_explorer.c plug-ins/common/CML_explorer.c
plug-ins/Lighting/lighting_main.c plug-ins/Lighting/lighting_main.c

File diff suppressed because it is too large Load diff

View file

@ -1,3 +1,7 @@
Fri Oct 8 15:06:37 PDT 1999 Manish Singh <yosh@gimp.org>
* fr.po: updates from David Monniaux
1999-10-08 Tomas Ogren <stric@ing.umu.se> 1999-10-08 Tomas Ogren <stric@ing.umu.se>
* sv.po: Fixed a lame translation * sv.po: Fixed a lame translation

157
po/fr.po
View file

@ -1545,7 +1545,6 @@ msgid "/Image/Colors"
msgstr "/Image/Couleurs" msgstr "/Image/Couleurs"
#: app/gdisplay.c:1692 #: app/gdisplay.c:1692
#, fuzzy
msgid "/Image/Channels" msgid "/Image/Channels"
msgstr "/Image/Canaux" msgstr "/Image/Canaux"
@ -1620,7 +1619,7 @@ msgstr "/Image/Alpha/Ajouter Canal Alpha"
#: app/gdisplay.c:1718 app/menus.c:307 #: app/gdisplay.c:1718 app/menus.c:307
#, fuzzy #, fuzzy
msgid "/Image/Transforms/Offset" msgid "/Image/Transforms/Offset"
msgstr "/Image/Transformations" msgstr "/Image/Transformations/Décalage"
#: app/gdisplay.c:1721 #: app/gdisplay.c:1721
msgid "/Layers/Stack" msgid "/Layers/Stack"
@ -6217,18 +6216,16 @@ msgid "Factor"
msgstr "Facteur" msgstr "Facteur"
#: libgimp/gimpexport.c:89 #: libgimp/gimpexport.c:89
#, fuzzy
msgid "can't handle layers" msgid "can't handle layers"
msgstr "Mettre calque à l'échelle" msgstr "je ne peux gérer les calques"
#: libgimp/gimpexport.c:90 libgimp/gimpexport.c:99 #: libgimp/gimpexport.c:90 libgimp/gimpexport.c:99
#, fuzzy
msgid "Merge visible layers" msgid "Merge visible layers"
msgstr "/Fusionner les calques visibles" msgstr "Fusionner les calques visibles"
#: libgimp/gimpexport.c:98 #: libgimp/gimpexport.c:98
msgid "can only handle layers as animation frames" msgid "can only handle layers as animation frames"
msgstr "" msgstr "je ne peux gérer les calques en tant qu'images d'une animation"
#: libgimp/gimpexport.c:99 #: libgimp/gimpexport.c:99
#, fuzzy #, fuzzy
@ -6240,6 +6237,122 @@ msgstr "Informations de Cisaillement"
msgid "can't handle transparency" msgid "can't handle transparency"
msgstr "Gomme (met la couleur de fond ou rend transparent)" msgstr "Gomme (met la couleur de fond ou rend transparent)"
#: libgimp/gimpexport.c:108
msgid "Flatten Image"
msgstr "Aplatir l'image"
#: libgimp/gimpexport.c:116
msgid "can only handle RGB images"
msgstr "Je ne gère que les images RVB."
#: libgimp/gimpexport.c:117 libgimp/gimpexport.c:144 libgimp/gimpexport.c:153
msgid "Convert to RGB"
msgstr "Convertir en RVB"
#: libgimp/gimpexport.c:125
msgid "can only handle grayscale images"
msgstr "Je ne gère que les images en niveaux de gris."
#: libgimp/gimpexport.c:126 libgimp/gimpexport.c:144 libgimp/gimpexport.c:163
msgid "Convert to grayscale"
msgstr "Convertir en niveaux de gris."
#: libgimp/gimpexport.c:134
msgid "can only handle indexed images"
msgstr "je ne gère que les images indexées"
#: libgimp/gimpexport.c:135 libgimp/gimpexport.c:153 libgimp/gimpexport.c:162
msgid ""
"Convert to indexed using default settings\n"
"(Do it manually to tune the result)"
msgstr ""
"Convertir en couleurs indexées en utilisant\n"
"les réglages par défaut (faites-le à la main\n"
"pour régler le résultat)."
#: libgimp/gimpexport.c:143
msgid "can only handle RGB or grayscale images"
msgstr "je ne gère que les images RVB ou en niveaux de gris"
#: libgimp/gimpexport.c:152
msgid "can only handle RGB or indexed images"
msgstr "je ne gère que les images RVB ou indexées"
#: libgimp/gimpexport.c:161
msgid "can only handle grayscale or indexed images"
msgstr "je ne gère que les images en tons de gris ou indexées"
#: libgimp/gimpexport.c:233
msgid "Export File"
msgstr "Exporter fichier"
#: libgimp/gimpexport.c:249
msgid "Export"
msgstr "Exporter"
#: libgimp/gimpexport.c:274
msgid ""
"Your image should be exported before it can be saved for the following "
"reasons:"
msgstr "Votre image devrait être exportée avant d'être enregistrée pour les raison suivantes:"
#. the footline
#: libgimp/gimpexport.c:332
msgid "The export conversion won't modify your original image."
msgstr "La conversion de sortie ne modifiera pas votr image originale."
#~ msgid "Cannot properly scanline convert polygon!\n"
#~ msgstr ""
#~ "Je n'arrive pas à convertir le polygone en lignes horizontales de trame.\n"
#~ msgid "/Image/Channel Ops/Offset"
#~ msgstr "/Image/Canaux/Décalage"
#~ msgid "raise layer"
#~ msgstr "élever calque"
#~ msgid "lower layer"
#~ msgstr "abaisser calque"
#~ msgid "raise layer to top"
#~ msgstr "élever le calque tout en haut"
#~ msgid "lower layer to bottom"
#~ msgstr "abaisser le calque tout en bas"
#~ msgid "re-position layer"
#~ msgstr "re-positionner le calque"
#~ msgid "/File/Acquire"
#~ msgstr "/Fichier/Acquisition"
#~ msgid "/View/Window Info..."
#~ msgstr "/Vue/Information sur la Fenêtre..."
#~ msgid "/Script-Fu/"
#~ msgstr "/Script-Fu/"
#: libgimp/gimpexport.c:89
msgid "can't handle layers"
msgstr "Je ne peux gérer les calques."
#: libgimp/gimpexport.c:90 libgimp/gimpexport.c:99
msgid "Merge visible layers"
msgstr "Fusionner les calques visibles"
#: libgimp/gimpexport.c:98
msgid "can only handle layers as animation frames"
msgstr "Je ne gère les calques qu'en tant qu'images d'une animation."
#: libgimp/gimpexport.c:99
msgid "Save as animation"
msgstr "Sauver comme annimation"
#: libgimp/gimpexport.c:107
#, fuzzy
msgid "can't handle transparency"
msgstr "Gomme (met la couleur de fond ou rend transparent)"
#: libgimp/gimpexport.c:108 #: libgimp/gimpexport.c:108
#, fuzzy #, fuzzy
msgid "Flatten Image" msgid "Flatten Image"
@ -6247,62 +6360,60 @@ msgstr "/Aplatir l'image"
#: libgimp/gimpexport.c:116 #: libgimp/gimpexport.c:116
msgid "can only handle RGB images" msgid "can only handle RGB images"
msgstr "" msgstr "je ne gère que les images RVB"
#: libgimp/gimpexport.c:117 libgimp/gimpexport.c:144 libgimp/gimpexport.c:153 #: libgimp/gimpexport.c:117 libgimp/gimpexport.c:144 libgimp/gimpexport.c:153
#, fuzzy
msgid "Convert to RGB" msgid "Convert to RGB"
msgstr "Convertir" msgstr "Convertir en RVB"
#: libgimp/gimpexport.c:125 #: libgimp/gimpexport.c:125
msgid "can only handle grayscale images" msgid "can only handle grayscale images"
msgstr "" msgstr "je ne gère que les images en tons de gris"
#: libgimp/gimpexport.c:126 libgimp/gimpexport.c:144 libgimp/gimpexport.c:163 #: libgimp/gimpexport.c:126 libgimp/gimpexport.c:144 libgimp/gimpexport.c:163
#, fuzzy
msgid "Convert to grayscale" msgid "Convert to grayscale"
msgstr "niveaux de gris" msgstr "Convertir en niveaux de gris"
#: libgimp/gimpexport.c:134 #: libgimp/gimpexport.c:134
#, fuzzy #, fuzzy
msgid "can only handle indexed images" msgid "can only handle indexed images"
msgstr "Mélange: Non valide pour les images indexées." msgstr "je ne gère que les images indexées."
#: libgimp/gimpexport.c:135 libgimp/gimpexport.c:153 libgimp/gimpexport.c:162 #: libgimp/gimpexport.c:135 libgimp/gimpexport.c:153 libgimp/gimpexport.c:162
msgid "" msgid ""
"Convert to indexed using default settings\n" "Convert to indexed using default settings\n"
"(Do it manually to tune the result)" "(Do it manually to tune the result)"
msgstr "" msgstr ""
"Convertir en couleurs indexées avec les réglages par défaut\n"
"(faites-le manuellement pour régler le résultat)"
#: libgimp/gimpexport.c:143 #: libgimp/gimpexport.c:143
msgid "can only handle RGB or grayscale images" msgid "can only handle RGB or grayscale images"
msgstr "" msgstr "je ne gère que les images RVB ou en tons de gris"
#: libgimp/gimpexport.c:152 #: libgimp/gimpexport.c:152
#, fuzzy
msgid "can only handle RGB or indexed images" msgid "can only handle RGB or indexed images"
msgstr "Mélange: Non valide pour les images indexées." msgstr "je ne gère que les images RVB ou indexées"
#: libgimp/gimpexport.c:161 #: libgimp/gimpexport.c:161
#, fuzzy
msgid "can only handle grayscale or indexed images" msgid "can only handle grayscale or indexed images"
msgstr "Mélange: Non valide pour les images indexées." msgstr "je ne gère que les images en tons de gris ou indexées"
#: libgimp/gimpexport.c:233 #: libgimp/gimpexport.c:233
#, fuzzy
msgid "Export File" msgid "Export File"
msgstr "/Exporter Chemin" msgstr "Exporter chemin"
#: libgimp/gimpexport.c:249 #: libgimp/gimpexport.c:249
#, fuzzy
msgid "Export" msgid "Export"
msgstr "Exposition:" msgstr "Exporter"
#: libgimp/gimpexport.c:274 #: libgimp/gimpexport.c:274
msgid "" msgid ""
"Your image should be exported before it can be saved for the following " "Your image should be exported before it can be saved for the following "
"reasons:" "reasons:"
msgstr "" msgstr ""
"Votre image devrait être exportée avant d'être enregistrée pour les\n"
"raison suivantes:"
#. the footline #. the footline
#: libgimp/gimpexport.c:332 #: libgimp/gimpexport.c:332

View file

@ -38,7 +38,7 @@ Lors de l'utilisation d'un outil de dessin (Pinceau, A
ou Crayon), Shift+Click tracera une ligne droite depuis le dernier ou Crayon), Shift+Click tracera une ligne droite depuis le dernier
point de tracé jusqu'à la position du pointeur (souris). point de tracé jusqu'à la position du pointeur (souris).
La plupart des modules plug-ins opèrent sur le calque courant La plupart des appendices opèrent sur le calque courant
de l'image courante. Dans certains cas, vous devrez d'abord de l'image courante. Dans certains cas, vous devrez d'abord
fusionner tous les calques (Calques->Aplatir image) si vous fusionner tous les calques (Calques->Aplatir image) si vous
voulez que le module opère sur l'image entière. voulez que le module opère sur l'image entière.