plug-ins/common/diffraction.c plug-ins/common/edge.c

1999-12-22  Shirasaki Yasuhiro  <yasuhiro@gnome.gr.jp>

        * plug-ins/common/diffraction.c
        * plug-ins/common/edge.c
        * plug-ins/common/emboss.c
        * plug-ins/common/engrave.c
        * po-plug-ins/POTFILES.in: Added gettext support

        * plug-ins/megawidget/megawidget.c: Added #include "config.h"
        * po-plug-ins/POTFILES.in: Include megawidget

-- yasuhiro
This commit is contained in:
Shirasaki Yasuhiro 1999-12-22 10:03:19 +00:00 committed by SHIRASAKI Yasuhiro
parent e9fdeba861
commit 4ba35380eb
7 changed files with 105 additions and 64 deletions

View File

@ -1,3 +1,14 @@
1999-12-22 Shirasaki Yasuhiro <yasuhiro@gnome.gr.jp>
* plug-ins/common/diffraction.c
* plug-ins/common/edge.c
* plug-ins/common/emboss.c
* plug-ins/common/engrave.c
* po-plug-ins/POTFILES.in: Added gettext support
* plug-ins/megawidget/megawidget.c: Added #include "config.h"
* po-plug-ins/POTFILES.in: Include megawidget
1999-12-21 Asbjorn Pettersen <asbjornP@dualog.no>
* plug-ins/gfig/gfig.c (gfig_update_stat_labels):

View File

@ -33,7 +33,7 @@
#include "gtk/gtk.h"
#include "libgimp/gimp.h"
#include "libgimp/stdplugins-intl.h"
/***** Magic numbers *****/
#define ITERATIONS 100 /* 100 */
@ -168,13 +168,15 @@ query(void)
static int nargs = sizeof(args) / sizeof(args[0]);
static int nreturn_vals = 0;
INIT_I18N();
gimp_install_procedure("plug_in_diffraction",
"Generate diffraction patterns",
"Help? What help? Real men do not need help :-)", /* FIXME */
_("Generate diffraction patterns"),
_("Help? What help? Real men do not need help :-)"), /* FIXME */
"Federico Mena Quintero",
"Federico Mena Quintero & David Bleecker",
"April 1997, 0.5",
"<Image>/Filters/Render/Pattern/Diffraction Patterns...",
N_("<Image>/Filters/Render/Pattern/Diffraction Patterns..."),
"RGB*",
PROC_PLUG_IN,
nargs,
@ -216,6 +218,8 @@ run(char *name,
case RUN_INTERACTIVE:
/* Possibly retrieve data */
INIT_I18N_UI();
gimp_get_data("plug_in_diffraction", &dvals);
/* Get information from the dialog */
@ -231,6 +235,7 @@ run(char *name,
if (nparams != 15)
status = STATUS_CALLING_ERROR;
INIT_I18N();
if (status == STATUS_SUCCESS) {
dvals.lam_r = param[3].data.d_float;
dvals.lam_g = param[4].data.d_float;
@ -251,6 +256,7 @@ run(char *name,
case RUN_WITH_LAST_VALS:
/* Possibly retrieve data */
INIT_I18N();
gimp_get_data("plug_in_diffraction", &dvals);
break;
@ -326,7 +332,7 @@ diffraction(GDrawable *drawable)
progress = 0;
max_progress = width * height;
gimp_progress_init("Creating diffraction pattern...");
gimp_progress_init( _("Creating diffraction pattern..."));
/* Create diffraction pattern */
@ -543,7 +549,7 @@ diffraction_dialog(void)
gtk_widget_set_default_colormap(gtk_preview_get_cmap());
dialog = gtk_dialog_new();
gtk_window_set_title(GTK_WINDOW(dialog), "Diffraction patterns");
gtk_window_set_title(GTK_WINDOW(dialog), _("Diffraction patterns"));
gtk_window_position(GTK_WINDOW(dialog), GTK_WIN_POS_MOUSE);
gtk_container_border_width(GTK_CONTAINER(dialog), 0);
gtk_signal_connect(GTK_OBJECT(dialog), "destroy",
@ -580,7 +586,7 @@ diffraction_dialog(void)
gtk_box_pack_start(GTK_BOX(vbox), dint.progress, TRUE, FALSE, 0);
gtk_widget_show(dint.progress);
button = gtk_button_new_with_label("Preview!");
button = gtk_button_new_with_label( _("Preview!"));
gtk_signal_connect(GTK_OBJECT(button), "clicked",
(GtkSignalFunc) dialog_update_callback,
NULL);
@ -605,11 +611,11 @@ diffraction_dialog(void)
gtk_box_pack_start(GTK_BOX(vbox), table, TRUE, TRUE, 0);
gtk_widget_show(table);
dialog_create_value("Red", GTK_TABLE(table), 0, &dvals.lam_r, 0.0, 20.0);
dialog_create_value("Green", GTK_TABLE(table), 1, &dvals.lam_g, 0.0, 20.0);
dialog_create_value("Blue", GTK_TABLE(table), 2, &dvals.lam_b, 0.0, 20.0);
dialog_create_value( _("Red"), GTK_TABLE(table), 0, &dvals.lam_r, 0.0, 20.0);
dialog_create_value( _("Green"), GTK_TABLE(table), 1, &dvals.lam_g, 0.0, 20.0);
dialog_create_value( _("Blue"), GTK_TABLE(table), 2, &dvals.lam_b, 0.0, 20.0);
label = gtk_label_new("Frequencies");
label = gtk_label_new( _("Frequencies"));
gtk_misc_set_alignment(GTK_MISC(label), 0.5, 0.5);
gtk_notebook_append_page(GTK_NOTEBOOK(notebook), vbox, label);
gtk_widget_show(vbox);
@ -624,11 +630,11 @@ diffraction_dialog(void)
gtk_box_pack_start(GTK_BOX(vbox), table, TRUE, TRUE, 0);
gtk_widget_show(table);
dialog_create_value("Red", GTK_TABLE(table), 0, &dvals.contour_r, 0.0, 10.0);
dialog_create_value("Green", GTK_TABLE(table), 1, &dvals.contour_g, 0.0, 10.0);
dialog_create_value("Blue", GTK_TABLE(table), 2, &dvals.contour_b, 0.0, 10.0);
dialog_create_value( _("Red"), GTK_TABLE(table), 0, &dvals.contour_r, 0.0, 10.0);
dialog_create_value( _("Green"), GTK_TABLE(table), 1, &dvals.contour_g, 0.0, 10.0);
dialog_create_value( _("Blue"), GTK_TABLE(table), 2, &dvals.contour_b, 0.0, 10.0);
label = gtk_label_new("Contours");
label = gtk_label_new( _("Contours"));
gtk_misc_set_alignment(GTK_MISC(label), 0.5, 0.5);
gtk_notebook_append_page(GTK_NOTEBOOK(notebook), vbox, label);
gtk_widget_show(vbox);
@ -643,11 +649,11 @@ diffraction_dialog(void)
gtk_box_pack_start(GTK_BOX(vbox), table, TRUE, TRUE, 0);
gtk_widget_show(table);
dialog_create_value("Red", GTK_TABLE(table), 0, &dvals.edges_r, 0.0, 1.0);
dialog_create_value("Green", GTK_TABLE(table), 1, &dvals.edges_g, 0.0, 1.0);
dialog_create_value("Blue", GTK_TABLE(table), 2, &dvals.edges_b, 0.0, 1.0);
dialog_create_value( _("Red"), GTK_TABLE(table), 0, &dvals.edges_r, 0.0, 1.0);
dialog_create_value( _("Green"), GTK_TABLE(table), 1, &dvals.edges_g, 0.0, 1.0);
dialog_create_value( _("Blue"), GTK_TABLE(table), 2, &dvals.edges_b, 0.0, 1.0);
label = gtk_label_new("Sharp edges");
label = gtk_label_new( _("Sharp edges"));
gtk_misc_set_alignment(GTK_MISC(label), 0.5, 0.5);
gtk_notebook_append_page(GTK_NOTEBOOK(notebook), vbox, label);
gtk_widget_show(vbox);
@ -662,11 +668,11 @@ diffraction_dialog(void)
gtk_box_pack_start(GTK_BOX(vbox), table, TRUE, TRUE, 0);
gtk_widget_show(table);
dialog_create_value("Brightness", GTK_TABLE(table), 0, &dvals.brightness, 0.0, 1.0);
dialog_create_value("Scattering", GTK_TABLE(table), 1, &dvals.scattering, 0.0, 100.0);
dialog_create_value("Polarization", GTK_TABLE(table), 2, &dvals.polarization, -1.0, 1.0);
dialog_create_value( _("Brightness"), GTK_TABLE(table), 0, &dvals.brightness, 0.0, 1.0);
dialog_create_value( _("Scattering"), GTK_TABLE(table), 1, &dvals.scattering, 0.0, 100.0);
dialog_create_value( _("Polarization"), GTK_TABLE(table), 2, &dvals.polarization, -1.0, 1.0);
label = gtk_label_new("Other options");
label = gtk_label_new( _("Other options"));
gtk_misc_set_alignment(GTK_MISC(label), 0.5, 0.5);
gtk_notebook_append_page(GTK_NOTEBOOK(notebook), vbox, label);
gtk_widget_show(vbox);
@ -679,7 +685,7 @@ diffraction_dialog(void)
gtk_box_pack_end (GTK_BOX (GTK_DIALOG (dialog)->action_area), hbbox, FALSE, FALSE, 0);
gtk_widget_show (hbbox);
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) dialog_ok_callback,
@ -688,7 +694,7 @@ diffraction_dialog(void)
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) dialog_cancel_callback,

View File

@ -46,9 +46,11 @@
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "config.h"
#include "gtk/gtk.h"
#include "libgimp/gimp.h"
#include "libgimp/gimpui.h"
#include "libgimp/stdplugins-intl.h"
#ifdef RCSID
static char rcsid[] = "$Id$";
@ -152,19 +154,16 @@ query ()
static gint nargs = sizeof (args) / sizeof (args[0]);
static gint nreturn_vals = 0;
gchar *help_string =
" Perform edge detection on the contents of the specified"
" drawable. It applies, I think, convolusion with 3x3 kernel. AMOUNT"
" is an arbitrary constant, WRAPMODE is like displace plug-in"
" (useful for tilable image).";
_(" Perform edge detection on the contents of the specified drawable. It applies, I think, convolusion with 3x3 kernel. AMOUNT is an arbitrary constant, WRAPMODE is like displace plug-in (useful for tilable image).");
INIT_I18N();
gimp_install_procedure ("plug_in_edge",
"Perform edge detection on the contents of the specified drawable",
_("Perform edge detection on the contents of the specified drawable"),
help_string,
"Peter Mattis & (ported to 1.0 by) Eiichi Takamori",
"Peter Mattis",
"1996",
"<Image>/Filters/Edge-Detect/Edge...",
N_("<Image>/Filters/Edge-Detect/Edge..."),
"RGB*, GRAY*",
PROC_PLUG_IN,
nargs, nreturn_vals,
@ -197,6 +196,7 @@ run (gchar *name,
switch (run_mode)
{
case RUN_INTERACTIVE:
INIT_I18N_UI();
/* Possibly retrieve data */
gimp_get_data ("plug_in_edge", &evals);
@ -214,11 +214,13 @@ run (gchar *name,
evals.amount = param[3].data.d_float;
evals.wrapmode = param[4].data.d_int32;
}
INIT_I18N();
break;
case RUN_WITH_LAST_VALS:
/* Possibly retrieve data */
gimp_get_data ("plug_in_edge", &evals);
INIT_I18N();
break;
default:
@ -228,7 +230,7 @@ run (gchar *name,
/* make sure the drawable exist and is not indexed */
if (gimp_drawable_is_rgb (drawable->id) || gimp_drawable_is_gray (drawable->id))
{
gimp_progress_init ("Edge detection...");
gimp_progress_init ( _("Edge detection..."));
/* set the tile cache size */
gimp_tile_cache_ntiles (TILE_CACHE_SIZE);
@ -641,7 +643,7 @@ edge_dialog(GDrawable *drawable)
gtk_rc_parse (gimp_gtkrc ());
dlg = gtk_dialog_new ();
gtk_window_set_title (GTK_WINDOW (dlg), "Edge Detection");
gtk_window_set_title (GTK_WINDOW (dlg), _("Edge Detection"));
gtk_window_position (GTK_WINDOW (dlg), GTK_WIN_POS_MOUSE);
gtk_signal_connect (GTK_OBJECT (dlg), "destroy",
(GtkSignalFunc) edge_close_callback,
@ -655,7 +657,7 @@ edge_dialog(GDrawable *drawable)
gtk_box_pack_end (GTK_BOX (GTK_DIALOG (dlg)->action_area), hbbox, FALSE, FALSE, 0);
gtk_widget_show (hbbox);
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) edge_ok_callback,
@ -664,7 +666,7 @@ edge_dialog(GDrawable *drawable)
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_object (GTK_OBJECT (button), "clicked",
(GtkSignalFunc) gtk_widget_destroy,
@ -673,7 +675,7 @@ edge_dialog(GDrawable *drawable)
gtk_widget_show (button);
/* parameter settings */
frame = gtk_frame_new ("Edge Detection Options");
frame = gtk_frame_new ( _("Edge Detection Options"));
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
gtk_container_border_width (GTK_CONTAINER (frame), 10);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), frame, TRUE, TRUE, 0);
@ -686,7 +688,7 @@ edge_dialog(GDrawable *drawable)
Label, scale, entry for evals.amount
*/
label = gtk_label_new ("Amount:");
label = gtk_label_new ( _("Amount:"));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_widget_show (label);
@ -739,7 +741,7 @@ edge_dialog(GDrawable *drawable)
gtk_table_attach (GTK_TABLE (table), hbox, 0, 3, 1, 2,
GTK_FILL, GTK_FILL, 0, 0);
toggle = gtk_radio_button_new_with_label (group, "Wrap");
toggle = gtk_radio_button_new_with_label (group, _("Wrap"));
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",
@ -748,7 +750,7 @@ edge_dialog(GDrawable *drawable)
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), use_wrap);
gtk_widget_show (toggle);
toggle = gtk_radio_button_new_with_label (group, "Smear");
toggle = gtk_radio_button_new_with_label (group, _("Smear"));
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",
@ -757,7 +759,7 @@ edge_dialog(GDrawable *drawable)
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), use_smear);
gtk_widget_show (toggle);
toggle = gtk_radio_button_new_with_label (group, "Black");
toggle = gtk_radio_button_new_with_label (group, _("Black"));
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",

View File

@ -38,6 +38,7 @@
#include <libgimp/gimp.h>
#include <gtk/gtk.h>
#include <plug-ins/megawidget/megawidget.h>
#include "libgimp/stdplugins-intl.h"
static mw_preview_t emboss_do_preview;
@ -115,13 +116,14 @@ query(void){
static GParamDef *rets = NULL;
static gint nrets = 0;
INIT_I18N();
gimp_install_procedure("plug_in_emboss",
"Emboss filter",
"Emboss or Bumpmap the given drawable, specifying the angle and elevation for the light source.",
_("Emboss filter"),
_("Emboss or Bumpmap the given drawable, specifying the angle and elevation for the light source."),
"Eric L. Hernes, John Schlag",
"Eric L. Hernes",
"1997",
"<Image>/Filters/Distorts/Emboss...",
N_("<Image>/Filters/Distorts/Emboss..."),
"RGB",
PROC_PLUG_IN,
nargs, nrets,
@ -146,6 +148,7 @@ run(gchar *name, gint nparam, GParam *param,
switch (param[0].data.d_int32)
{
case RUN_INTERACTIVE:
INIT_I18N_UI();
gimp_get_data("plug_in_emboss", &args);
if (args.img == 0 && args.drw == 0)
{
@ -179,6 +182,7 @@ run(gchar *name, gint nparam, GParam *param,
break;
}
INIT_I18N();
args.img = param[1].data.d_image;
args.drw = param[2].data.d_drawable;
args.azimuth = param[3].data.d_float;
@ -194,6 +198,7 @@ run(gchar *name, gint nparam, GParam *param,
break;
case RUN_WITH_LAST_VALS:
INIT_I18N();
gimp_get_data("plug_in_emboss", &args);
/* use this image and drawable, even with last args */
args.img = param[1].data.d_image;
@ -341,7 +346,7 @@ int pluginCore(struct piArgs *argp) {
memset(dstbuf,(int)0,(size_t)rowsize);
EmbossInit(DtoR(argp->azimuth), DtoR(argp->elevation), argp->depth);
gimp_progress_init("Emboss");
gimp_progress_init( _("Emboss"));
gimp_tile_cache_ntiles((width + gimp_tile_width() - 1) / gimp_tile_width());
@ -387,12 +392,13 @@ int pluginCoreIA(struct piArgs *argp) {
gint runp;
struct mwRadioGroup functions[] = {
{ "Emboss", 0 },
{ "Bumpmap", 0 },
{ N_("Emboss"), 0 },
{ N_("Bumpmap"), 0 },
{ NULL, 0 },
};
gchar **argv;
gint argc;
gint i;
/* Set args */
argc = 1;
@ -400,10 +406,12 @@ int pluginCoreIA(struct piArgs *argp) {
argv[0] = g_strdup("emboss");
gtk_init(&argc, &argv);
gtk_rc_parse(gimp_gtkrc ());
for (i = 0; functions[i].name != NULL; i++)
functions[i].name = gettext(functions[i].name);
functions[!argp->embossp].var = 1;
dlg = mw_app_new("plug_in_emboss", "Emboss", &runp);
dlg = mw_app_new("plug_in_emboss", _("Emboss"), &runp);
hbox = gtk_hbox_new(FALSE, 5);
gtk_container_border_width(GTK_CONTAINER(hbox), 5);
@ -415,9 +423,9 @@ int pluginCoreIA(struct piArgs *argp) {
gtk_object_set_data(GTK_OBJECT(preview), "mwRadioGroup", &functions);
emboss_do_preview(preview);
mw_radio_group_new(hbox, "Function", functions);
mw_radio_group_new(hbox, _("Function"), functions);
frame = gtk_frame_new("Parameters");
frame = gtk_frame_new( _("Parameters"));
gtk_frame_set_shadow_type(GTK_FRAME(frame), GTK_SHADOW_ETCHED_IN);
gtk_container_border_width(GTK_CONTAINER(frame), 5);
gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dlg)->vbox), frame, TRUE, TRUE, 0);
@ -428,11 +436,11 @@ int pluginCoreIA(struct piArgs *argp) {
gtk_container_add(GTK_CONTAINER(frame), table);
mw_fscale_entry_new(table, "Azimuth", 0.0, 360.0, 1.0, 10.0, 0.0,
mw_fscale_entry_new(table, _("Azimuth"), 0.0, 360.0, 1.0, 10.0, 0.0,
0, 1, 1, 2, &argp->azimuth);
mw_fscale_entry_new(table, "Elevation", 0.0, 180.0, 1.0, 10.0, 0.0,
mw_fscale_entry_new(table, _("Elevation"), 0.0, 180.0, 1.0, 10.0, 0.0,
0, 1, 2, 3, &argp->elevation);
mw_iscale_entry_new(table, "Depth", 1, 100, 1, 5, 0,
mw_iscale_entry_new(table, _("Depth"), 1, 100, 1, 5, 0,
0, 1, 3, 4, &argp->depth);
gtk_widget_show(table);

View File

@ -25,8 +25,11 @@
#include <stdio.h>
#include <stdlib.h>
#include "config.h"
#include "gtk/gtk.h"
#include "libgimp/gimp.h"
#include "libgimp/gimpui.h"
#include "libgimp/stdplugins-intl.h"
/* Some useful macros */
@ -112,13 +115,15 @@ query()
static gint nargs = sizeof(args) / sizeof(args[0]);
static gint nreturn_vals = 0;
INIT_I18N();
gimp_install_procedure("plug_in_engrave",
"Engrave the contents of the specified drawable",
"Creates a black-and-white 'engraved' version of an image as seen in old illustrations",
_("Engrave the contents of the specified drawable"),
_("Creates a black-and-white 'engraved' version of an image as seen in old illustrations"),
"Spencer Kimball & Peter Mattis, Eiichi Takamori, Torsten Martinsen",
"Spencer Kimball & Peter Mattis, Eiichi Takamori, Torsten Martinsen",
"1995,1996,1997",
"<Image>/Filters/Distorts/Engrave...",
N_("<Image>/Filters/Distorts/Engrave..."),
"RGBA, GRAYA",
PROC_PLUG_IN,
nargs, nreturn_vals,
@ -150,6 +155,7 @@ run(gchar * name,
switch (run_mode) {
case RUN_INTERACTIVE:
INIT_I18N_UI();
/* Possibly retrieve data */
gimp_get_data("plug_in_engrave", &pvals);
@ -161,6 +167,7 @@ run(gchar * name,
break;
case RUN_NONINTERACTIVE:
INIT_I18N();
/* Make sure all the arguments are there! */
if (nparams != 5)
status = STATUS_CALLING_ERROR;
@ -174,6 +181,7 @@ run(gchar * name,
break;
case RUN_WITH_LAST_VALS:
INIT_I18N();
/* Possibly retrieve data */
gimp_get_data("plug_in_engrave", &pvals);
break;
@ -183,7 +191,7 @@ run(gchar * name,
}
if (status == STATUS_SUCCESS) {
gimp_progress_init("Engraving...");
gimp_progress_init( _("Engraving..."));
gimp_tile_cache_ntiles(TILE_CACHE_SIZE);
engrave(drawable);
@ -221,7 +229,7 @@ engrave_dialog()
gtk_rc_parse(gimp_gtkrc());
dlg = gtk_dialog_new();
gtk_window_set_title(GTK_WINDOW(dlg), "Engrave");
gtk_window_set_title(GTK_WINDOW(dlg), _("Engrave"));
gtk_window_position(GTK_WINDOW(dlg), GTK_WIN_POS_MOUSE);
gtk_signal_connect(GTK_OBJECT(dlg), "destroy",
(GtkSignalFunc) engrave_close_callback,
@ -235,7 +243,7 @@ engrave_dialog()
gtk_box_pack_end (GTK_BOX (GTK_DIALOG (dlg)->action_area), hbbox, FALSE, FALSE, 0);
gtk_widget_show (hbbox);
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) engrave_ok_callback,
@ -244,7 +252,7 @@ engrave_dialog()
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_object (GTK_OBJECT (button), "clicked",
(GtkSignalFunc) gtk_widget_destroy,
@ -253,7 +261,7 @@ engrave_dialog()
gtk_widget_show (button);
/* parameter settings */
frame = gtk_frame_new("Parameter Settings");
frame = gtk_frame_new( _("Parameter Settings"));
gtk_frame_set_shadow_type(GTK_FRAME(frame), GTK_SHADOW_ETCHED_IN);
gtk_container_border_width(GTK_CONTAINER(frame), 10);
gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dlg)->vbox), frame, TRUE, TRUE, 0);
@ -261,7 +269,7 @@ engrave_dialog()
gtk_container_border_width(GTK_CONTAINER(table), 10);
gtk_container_add(GTK_CONTAINER(frame), table);
toggle = gtk_check_button_new_with_label ("Limit line width");
toggle = gtk_check_button_new_with_label ( _("Limit line width"));
gtk_table_attach (GTK_TABLE (table), toggle, 0, 2, 0, 1, GTK_FILL, 0, 0, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) engrave_toggle_update,
@ -269,7 +277,7 @@ engrave_dialog()
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), pvals.limit);
gtk_widget_show (toggle);
dialog_create_value("Height", GTK_TABLE(table), 1, &pvals.height, 2.0, 16.0);
dialog_create_value( _("Height"), GTK_TABLE(table), 1, &pvals.height, 2.0, 16.0);
gtk_widget_show(frame);
gtk_widget_show(table);

View File

@ -41,9 +41,10 @@
#include <stdio.h>
#include <stdlib.h>
#include "config.h"
#include <gtk/gtk.h>
#include <libgimp/gimp.h>
#include <libgimp/gimpintl.h>
#include "libgimp/stdplugins-intl.h"
#include <plug-ins/megawidget/megawidget.h>

View File

@ -36,7 +36,11 @@ plug-ins/common/deinterlace.c
plug-ins/common/depthmerge.c
plug-ins/common/despeckle.c
plug-ins/common/destripe.c
plug-ins/common/diffraction.c
plug-ins/common/displace.c
plug-ins/common/edge.c
plug-ins/common/emboss.c
plug-ins/common/engrave.c
plug-ins/common/film.c
plug-ins/flame/flame.c
plug-ins/common/gif.c
@ -154,6 +158,7 @@ plug-ins/sel2path/sel2path.c
plug-ins/sinus/sinus.c
plug-ins/common/spheredesigner.c
plug-ins/struc/struc.c
plug-ins/megawidget/megawidget.c
libgimp/gimpcolorbutton.c
libgimp/gimpexport.c
libgimp/gimpfileselection.c