Commit 0fac8034 authored by Manish Singh's avatar Manish Singh

version number bump

* configure.in: version number bump

* app/unittest/Makefile.am: commented out unused var targets to
quell warnings

* libgimp/stdplugins-intl.h: fix include guard

* plug-ins/common/animoptimize.c
* plug-ins/common/lic.c
* plug-ins/common/warp.c
* plug-ins/gap/Makefile.am
* plug-ins/gap/gap_arr_dialog.c
* plug-ins/gap/gap_dbbrowser_utils.c
* plug-ins/gap/gap_filter_foreach.c
* plug-ins/gap/gap_filter_main.c
* plug-ins/gap/gap_lib.c
* plug-ins/gap/gap_main.c
* plug-ins/gap/gap_mod_layer.c
* plug-ins/gap/gap_mov_dialog.c
* plug-ins/gap/gap_mov_exec.c
* plug-ins/gap/gap_mpege.c
* plug-ins/gap/gap_range_ops.c
* plug-ins/gap/gap_resi_dialog.c
* plug-ins/gap/gap_split.c
* plug-ins/gap/resize.c
* plug-ins/gimpressionist/Makefile.am
* plug-ins/gimpressionist/brush.c
* plug-ins/gimpressionist/color.c
* plug-ins/gimpressionist/general.c
* plug-ins/gimpressionist/gimp.c
* plug-ins/gimpressionist/gimpressionist.c
* plug-ins/gimpressionist/orientation.c
* plug-ins/gimpressionist/orientmap.c
* plug-ins/gimpressionist/paper.c
* plug-ins/gimpressionist/placement.c
* plug-ins/gimpressionist/ppmtool.c
* plug-ins/gimpressionist/presets.c
* plug-ins/gimpressionist/preview.c
* plug-ins/gimpressionist/repaint.c
* plug-ins/gimpressionist/size.c
* plug-ins/gimpressionist/sizemap.c
* plug-ins/mosaic/Makefile.am
* plug-ins/mosaic/mosaic.c
* plug-ins/struc/Makefile.am
* plug-ins/struc/struc.c: applied gimp-yasuhiro-990917-0, plugin i18n patch

-Yosh
parent cd45f5d0
Sat Sep 25 22:09:30 PDT 1999 Manish Singh <yosh@gimp.org>
* configure.in: version number bump
* app/unittest/Makefile.am: commented out unused var targets to
quell warnings
* libgimp/stdplugins-intl.h: fix include guard
* plug-ins/common/animoptimize.c
* plug-ins/common/lic.c
* plug-ins/common/warp.c
* plug-ins/gap/Makefile.am
* plug-ins/gap/gap_arr_dialog.c
* plug-ins/gap/gap_dbbrowser_utils.c
* plug-ins/gap/gap_filter_foreach.c
* plug-ins/gap/gap_filter_main.c
* plug-ins/gap/gap_lib.c
* plug-ins/gap/gap_main.c
* plug-ins/gap/gap_mod_layer.c
* plug-ins/gap/gap_mov_dialog.c
* plug-ins/gap/gap_mov_exec.c
* plug-ins/gap/gap_mpege.c
* plug-ins/gap/gap_range_ops.c
* plug-ins/gap/gap_resi_dialog.c
* plug-ins/gap/gap_split.c
* plug-ins/gap/resize.c
* plug-ins/gimpressionist/Makefile.am
* plug-ins/gimpressionist/brush.c
* plug-ins/gimpressionist/color.c
* plug-ins/gimpressionist/general.c
* plug-ins/gimpressionist/gimp.c
* plug-ins/gimpressionist/gimpressionist.c
* plug-ins/gimpressionist/orientation.c
* plug-ins/gimpressionist/orientmap.c
* plug-ins/gimpressionist/paper.c
* plug-ins/gimpressionist/placement.c
* plug-ins/gimpressionist/ppmtool.c
* plug-ins/gimpressionist/presets.c
* plug-ins/gimpressionist/preview.c
* plug-ins/gimpressionist/repaint.c
* plug-ins/gimpressionist/size.c
* plug-ins/gimpressionist/sizemap.c
* plug-ins/mosaic/Makefile.am
* plug-ins/mosaic/mosaic.c
* plug-ins/struc/Makefile.am
* plug-ins/struc/struc.c: applied gimp-yasuhiro-990917-0, plugin
i18n patch
Sun Sep 26 06:45:09 MEST 1999 Jens Lautenbacher <jens@tellux.de> Sun Sep 26 06:45:09 MEST 1999 Jens Lautenbacher <jens@tellux.de>
Sven Neumann <sven@gimp.org> Sven Neumann <sven@gimp.org>
......
...@@ -59,11 +59,11 @@ OFILES=../about_dialog.o ../disp_callbacks.o ../gimpunit.o \ ...@@ -59,11 +59,11 @@ OFILES=../about_dialog.o ../disp_callbacks.o ../gimpunit.o \
../indicator_area.o ../gdisplay_color.o ../gimpcontextpreview.o \ ../indicator_area.o ../gdisplay_color.o ../gimpcontextpreview.o \
../qmask.o ../context_manager.o ../lc_dialog.o ../gimpcontext.o ../qmask.o ../context_manager.o ../lc_dialog.o ../gimpcontext.o
testplugin_SOURCES = \ #testplugin_SOURCES = \
testplugin.c \ # testplugin.c \
init.c # init.c
plugshow_SOURCES = \ #plugshow_SOURCES = \
plugshow.c # plugshow.c
plugdir_SOURCES = \ plugdir_SOURCES = \
plugdir.c plugdir.c
gimppath_SOURCES = \ gimppath_SOURCES = \
...@@ -89,12 +89,12 @@ LDADD = $(OFILES) \ ...@@ -89,12 +89,12 @@ LDADD = $(OFILES) \
$(GIMP_THREAD_LIBS) \ $(GIMP_THREAD_LIBS) \
$(INTLLIBS) $(INTLLIBS)
plugshow_LDADD = $(OFILES) \ #plugshow_LDADD = $(OFILES) \
../libgimpim.a \ # ../libgimpim.a \
$(top_builddir)/libgimp/libgimpi.a \ # $(top_builddir)/libgimp/libgimpi.a \
$(GTK_LIBS) \ # $(GTK_LIBS) \
$(GIMP_THREAD_LIBS) \ # $(GIMP_THREAD_LIBS) \
$(INTLLIBS) # $(INTLLIBS)
plugdir_LDADD = $(OFILES) \ plugdir_LDADD = $(OFILES) \
../libgimpim.a \ ../libgimpim.a \
$(top_builddir)/libgimp/libgimpi.a \ $(top_builddir)/libgimp/libgimpi.a \
......
...@@ -4,7 +4,7 @@ AC_INIT(gimprc.in) ...@@ -4,7 +4,7 @@ AC_INIT(gimprc.in)
dnl Initialize automake stuff dnl Initialize automake stuff
GIMP_MAJOR_VERSION=1 GIMP_MAJOR_VERSION=1
GIMP_MINOR_VERSION=1 GIMP_MINOR_VERSION=1
GIMP_MICRO_VERSION=9 GIMP_MICRO_VERSION=10
GIMP_INTERFACE_AGE=0 GIMP_INTERFACE_AGE=0
GIMP_BINARY_AGE=0 GIMP_BINARY_AGE=0
GIMP_VERSION=$GIMP_MAJOR_VERSION.$GIMP_MINOR_VERSION.$GIMP_MICRO_VERSION GIMP_VERSION=$GIMP_MAJOR_VERSION.$GIMP_MINOR_VERSION.$GIMP_MICRO_VERSION
......
#ifndef __STDPLUGINS-INTL_H__ #ifndef __STDPLUGINS_INTL_H__
#define __STDPLUGINS-INTL_H__ #define __STDPLUGINS_INTL_H__
#include <locale.h> #include <locale.h>
...@@ -21,4 +21,4 @@ ...@@ -21,4 +21,4 @@
setlocale (LC_NUMERIC, "C"); \ setlocale (LC_NUMERIC, "C"); \
INIT_I18N(); INIT_I18N();
#endif /* __STDPLUGINS-INTL_H__ */ #endif /* __STDPLUGINS_INTL_H__ */
...@@ -100,7 +100,9 @@ ...@@ -100,7 +100,9 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <ctype.h> #include <ctype.h>
#include "config.h"
#include "libgimp/gimp.h" #include "libgimp/gimp.h"
#include "libgimp/stdplugins-intl.h"
#define WinMain WinMain_foo /* Kludge */ #define WinMain WinMain_foo /* Kludge */
#include "gdk/gdkx.h" #include "gdk/gdkx.h"
#undef WinMain #undef WinMain
...@@ -236,13 +238,15 @@ static void query() ...@@ -236,13 +238,15 @@ static void 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_animationplay", gimp_install_procedure("plug_in_animationplay",
"This plugin allows you to preview a GIMP layer-based animation.", _("This plugin allows you to preview a GIMP layer-based animation."),
"", "",
"Adam D. Moss <adam@gimp.org>", "Adam D. Moss <adam@gimp.org>",
"Adam D. Moss <adam@gimp.org>", "Adam D. Moss <adam@gimp.org>",
"1997, 1998...", "1997, 1998...",
"<Image>/Filters/Animation/Animation Playback", _("<Image>/Filters/Animation/Animation Playback"),
"RGB*, INDEXED*, GRAY*", "RGB*, INDEXED*, GRAY*",
PROC_PLUG_IN, PROC_PLUG_IN,
nargs, nreturn_vals, nargs, nreturn_vals,
...@@ -265,6 +269,9 @@ static void run(char *name, int n_params, GParam * param, int *nreturn_vals, ...@@ -265,6 +269,9 @@ static void run(char *name, int n_params, GParam * param, int *nreturn_vals,
if (n_params != 3) { if (n_params != 3) {
status = STATUS_CALLING_ERROR; status = STATUS_CALLING_ERROR;
} }
INIT_I18N();
} else {
INIT_I18N_UI();
} }
if (status == STATUS_SUCCESS) { if (status == STATUS_SUCCESS) {
...@@ -650,8 +657,8 @@ build_dialog(GImageType basetype, ...@@ -650,8 +657,8 @@ build_dialog(GImageType basetype,
dlg = gtk_dialog_new (); dlg = gtk_dialog_new ();
windowname = g_malloc(strlen("Animation Playback: ")+strlen(imagename)+1); windowname = g_malloc(strlen( _("Animation Playback: "))+strlen(imagename)+1);
strcpy(windowname,"Animation Playback: "); strcpy(windowname, _("Animation Playback: "));
strcat(windowname,imagename); strcat(windowname,imagename);
gtk_window_set_title (GTK_WINDOW (dlg), windowname); gtk_window_set_title (GTK_WINDOW (dlg), windowname);
g_free(windowname); g_free(windowname);
...@@ -663,7 +670,7 @@ build_dialog(GImageType basetype, ...@@ -663,7 +670,7 @@ build_dialog(GImageType basetype,
/* Action area - 'close' button only. */ /* Action area - 'close' button only. */
button = gtk_button_new_with_label ("Close"); button = gtk_button_new_with_label ( _("Close"));
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT); GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
gtk_signal_connect_object (GTK_OBJECT (button), "clicked", gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
(GtkSignalFunc) window_close_callback, (GtkSignalFunc) window_close_callback,
...@@ -677,10 +684,10 @@ build_dialog(GImageType basetype, ...@@ -677,10 +684,10 @@ build_dialog(GImageType basetype,
{ {
/* The 'playback' half of the dialog */ /* The 'playback' half of the dialog */
windowname = g_malloc(strlen("Playback: ")+strlen(imagename)+1); windowname = g_malloc(strlen( _("Playback: "))+strlen(imagename)+1);
if (total_frames > 1) if (total_frames > 1)
{ {
strcpy(windowname,"Playback: "); strcpy(windowname, _("Playback: "));
strcat(windowname,imagename); strcat(windowname,imagename);
} }
else else
...@@ -710,19 +717,19 @@ build_dialog(GImageType basetype, ...@@ -710,19 +717,19 @@ build_dialog(GImageType basetype,
gtk_box_pack_start (GTK_BOX (vbox), hbox2, TRUE, TRUE, 0); gtk_box_pack_start (GTK_BOX (vbox), hbox2, TRUE, TRUE, 0);
{ {
psbutton = gtk_toggle_button_new_with_label ("Play/Stop"); psbutton = gtk_toggle_button_new_with_label ( _("Play/Stop"));
gtk_signal_connect (GTK_OBJECT (psbutton), "toggled", gtk_signal_connect (GTK_OBJECT (psbutton), "toggled",
(GtkSignalFunc) playstop_callback, NULL); (GtkSignalFunc) playstop_callback, NULL);
gtk_box_pack_start (GTK_BOX (hbox2), psbutton, TRUE, TRUE, 0); gtk_box_pack_start (GTK_BOX (hbox2), psbutton, TRUE, TRUE, 0);
gtk_widget_show (psbutton); gtk_widget_show (psbutton);
button = gtk_button_new_with_label ("Rewind"); button = gtk_button_new_with_label ( _("Rewind"));
gtk_signal_connect (GTK_OBJECT (button), "clicked", gtk_signal_connect (GTK_OBJECT (button), "clicked",
(GtkSignalFunc) rewind_callback, NULL); (GtkSignalFunc) rewind_callback, NULL);
gtk_box_pack_start (GTK_BOX (hbox2), button, TRUE, TRUE, 0); gtk_box_pack_start (GTK_BOX (hbox2), button, TRUE, TRUE, 0);
gtk_widget_show (button); gtk_widget_show (button);
button = gtk_button_new_with_label ("Step"); button = gtk_button_new_with_label ( _("Step"));
gtk_signal_connect (GTK_OBJECT (button), "clicked", gtk_signal_connect (GTK_OBJECT (button), "clicked",
(GtkSignalFunc) step_callback, NULL); (GtkSignalFunc) step_callback, NULL);
gtk_box_pack_start (GTK_BOX (hbox2), button, TRUE, TRUE, 0); gtk_box_pack_start (GTK_BOX (hbox2), button, TRUE, TRUE, 0);
...@@ -780,7 +787,7 @@ build_dialog(GImageType basetype, ...@@ -780,7 +787,7 @@ build_dialog(GImageType basetype,
(adj)); (adj));
{ {
gtk_progress_set_format_string (GTK_PROGRESS (progress), gtk_progress_set_format_string (GTK_PROGRESS (progress),
"Frame %v of %u"); _("Frame %v of %u"));
gtk_progress_set_show_text (GTK_PROGRESS (progress), TRUE); gtk_progress_set_show_text (GTK_PROGRESS (progress), TRUE);
/* gtk_widget_set_usize (GTK_WIDGET (progress), 150, 15);*/ /* gtk_widget_set_usize (GTK_WIDGET (progress), 150, 15);*/
gtk_box_pack_start (GTK_BOX (vbox), GTK_WIDGET (progress), gtk_box_pack_start (GTK_BOX (vbox), GTK_WIDGET (progress),
...@@ -958,7 +965,7 @@ render_frame(gint32 whichframe) ...@@ -958,7 +965,7 @@ render_frame(gint32 whichframe)
if (whichframe >= total_frames) if (whichframe >= total_frames)
{ {
printf("playback: Asked for frame number %d in a %d-frame animation!\n", printf( _("playback: Asked for frame number %d in a %d-frame animation!\n"),
(int) (whichframe+1), (int) total_frames); (int) (whichframe+1), (int) total_frames);
exit(-1); exit(-1);
} }
......
...@@ -51,7 +51,9 @@ ...@@ -51,7 +51,9 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <ctype.h> #include <ctype.h>
#include "config.h"
#include "libgimp/gimp.h" #include "libgimp/gimp.h"
#include "libgimp/stdplugins-intl.h"
...@@ -122,30 +124,32 @@ static void query() ...@@ -122,30 +124,32 @@ static void 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_animationoptimize", gimp_install_procedure("plug_in_animationoptimize",
"This plugin applies various optimizations to" _("This plugin applies various optimizations to"
" a GIMP layer-based animation.", " a GIMP layer-based animation."),
"", "",
"Adam D. Moss <adam@gimp.org>", "Adam D. Moss <adam@gimp.org>",
"Adam D. Moss <adam@gimp.org>", "Adam D. Moss <adam@gimp.org>",
"1997-98", "1997-98",
"<Image>/Filters/Animation/Animation Optimize", _("<Image>/Filters/Animation/Animation Optimize"),
"RGB*, INDEXED*, GRAY*", "RGB*, INDEXED*, GRAY*",
PROC_PLUG_IN, PROC_PLUG_IN,
nargs, nreturn_vals, nargs, nreturn_vals,
args, return_vals); args, return_vals);
gimp_install_procedure("plug_in_animationunoptimize", gimp_install_procedure("plug_in_animationunoptimize",
"This plugin 'simplifies' a GIMP layer-based" _("This plugin 'simplifies' a GIMP layer-based"
" animation that has been AnimationOptimized. This" " animation that has been AnimationOptimized. This"
" makes the animation much easier to work with if," " makes the animation much easier to work with if,"
" for example, the optimized version is all you" " for example, the optimized version is all you"
" have.", " have."),
"", "",
"Adam D. Moss <adam@gimp.org>", "Adam D. Moss <adam@gimp.org>",
"Adam D. Moss <adam@gimp.org>", "Adam D. Moss <adam@gimp.org>",
"1997-98", "1997-98",
"<Image>/Filters/Animation/Animation UnOptimize", _("<Image>/Filters/Animation/Animation UnOptimize"),
"RGB*, INDEXED*, GRAY*", "RGB*, INDEXED*, GRAY*",
PROC_PLUG_IN, PROC_PLUG_IN,
nargs, nreturn_vals, nargs, nreturn_vals,
...@@ -171,7 +175,8 @@ static void run(char *name, int n_params, GParam * param, int *nreturn_vals, ...@@ -171,7 +175,8 @@ static void run(char *name, int n_params, GParam * param, int *nreturn_vals,
status = STATUS_CALLING_ERROR; status = STATUS_CALLING_ERROR;
} }
} }
INIT_I18N();
/* Check the procedure name we were called with, to decide /* Check the procedure name we were called with, to decide
what needs to be done. */ what needs to be done. */
if (strcmp(name,"plug_in_animationoptimize")==0) if (strcmp(name,"plug_in_animationoptimize")==0)
...@@ -288,9 +293,9 @@ do_optimizations(void) ...@@ -288,9 +293,9 @@ do_optimizations(void)
gint32 rbox_top, rbox_bottom, rbox_left, rbox_right; gint32 rbox_top, rbox_bottom, rbox_left, rbox_right;
if (optimize) if (optimize)
gimp_progress_init ("Optimizing Animation..."); gimp_progress_init (_("Optimizing Animation..."));
else else
gimp_progress_init ("UnOptimizing Animation..."); gimp_progress_init (_("UnOptimizing Animation..."));
width = gimp_image_width(image_id); width = gimp_image_width(image_id);
height = gimp_image_height(image_id); height = gimp_image_height(image_id);
...@@ -319,7 +324,7 @@ do_optimizations(void) ...@@ -319,7 +324,7 @@ do_optimizations(void)
} }
if ( (this_frame == NULL) || (last_frame == NULL) || (opti_frame == NULL) ) if ( (this_frame == NULL) || (last_frame == NULL) || (opti_frame == NULL) )
g_error("Not enough memory to allocate buffers for optimization.\n"); g_error(_("Not enough memory to allocate buffers for optimization.\n"));
for (this_frame_num=0; this_frame_num<total_frames; this_frame_num++) for (this_frame_num=0; this_frame_num<total_frames; this_frame_num++)
{ {
......
...@@ -40,9 +40,12 @@ ...@@ -40,9 +40,12 @@
#include <signal.h> #include <signal.h>
#include <gdk/gdk.h> #include <gdk/gdk.h>
#include <gtk/gtk.h> #include <gtk/gtk.h>
#include "config.h"
#include "libgimp/stdplugins-intl.h"
#include <libgimp/gimp.h> #include <libgimp/gimp.h>
#include <libgimp/gimpui.h> #include <libgimp/gimpui.h>
/************/ /************/
/* Typedefs */ /* Typedefs */
/************/ /************/
...@@ -842,7 +845,7 @@ void compute_image(void) ...@@ -842,7 +845,7 @@ void compute_image(void)
/* Create a "normal" layer */ /* Create a "normal" layer */
/* ======================= */ /* ======================= */
new_layer_id=gimp_layer_new(new_image_id,"Background", new_layer_id=gimp_layer_new(new_image_id, _("Background"),
width,height,RGB_IMAGE,100.0,NORMAL_MODE); width,height,RGB_IMAGE,100.0,NORMAL_MODE);
gimp_image_add_layer(new_image_id,new_layer_id,0); gimp_image_add_layer(new_image_id,new_layer_id,0);
...@@ -851,7 +854,7 @@ void compute_image(void) ...@@ -851,7 +854,7 @@ void compute_image(void)
gimp_pixel_rgn_init (&dest_region, output_drawable, 0,0, width,height, TRUE,TRUE); gimp_pixel_rgn_init (&dest_region, output_drawable, 0,0, width,height, TRUE,TRUE);
gimp_progress_init("Van Gogh (LIC)"); gimp_progress_init( _("Van Gogh (LIC)"));
if (licvals.effect_convolve==0) if (licvals.effect_convolve==0)
generatevectors(); generatevectors();
...@@ -879,7 +882,7 @@ void compute_image(void) ...@@ -879,7 +882,7 @@ void compute_image(void)
if (scalarfield==NULL) if (scalarfield==NULL)
{ {
printf("LIC: Couldn't allocate temporary buffer - out of memory!\n"); printf( _("LIC: Couldn't allocate temporary buffer - out of memory!\n"));
return; return;
} }
...@@ -982,7 +985,7 @@ void create_main_dialog(void) ...@@ -982,7 +985,7 @@ void create_main_dialog(void)
/* Dialog */ /* Dialog */
dialog = gtk_dialog_new(); dialog = gtk_dialog_new();
gtk_window_set_title(GTK_WINDOW(dialog), "Van Gogh (LIC)"); gtk_window_set_title(GTK_WINDOW(dialog), _("Van Gogh (LIC)"));
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), "delete_event", gtk_signal_connect(GTK_OBJECT(dialog), "delete_event",
...@@ -995,14 +998,14 @@ void create_main_dialog(void) ...@@ -995,14 +998,14 @@ void create_main_dialog(void)
vbox=gtk_vbox_new(FALSE,0); vbox=gtk_vbox_new(FALSE,0);
gtk_box_pack_start(GTK_BOX(hbox), vbox, FALSE, FALSE, 5); gtk_box_pack_start(GTK_BOX(hbox), vbox, FALSE, FALSE, 5);
frame = gtk_frame_new("Options"); frame = gtk_frame_new( _("Options"));
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_container_add(GTK_CONTAINER(vbox),frame); gtk_container_add(GTK_CONTAINER(vbox),frame);
hbox2=gtk_hbox_new(FALSE,5); hbox2=gtk_hbox_new(FALSE,5);
gtk_container_add(GTK_CONTAINER(frame),hbox2); gtk_container_add(GTK_CONTAINER(frame),hbox2);
button = gtk_check_button_new_with_label("Create new image"); button = gtk_check_button_new_with_label( _("Create new image"));
if (licvals.create_new_image==TRUE) if (licvals.create_new_image==TRUE)
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button),TRUE); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button),TRUE);
gtk_container_add(GTK_CONTAINER(hbox2),button); gtk_container_add(GTK_CONTAINER(hbox2),button);
...@@ -1011,14 +1014,14 @@ void create_main_dialog(void) ...@@ -1011,14 +1014,14 @@ void create_main_dialog(void)
gtk_widget_show(hbox2); gtk_widget_show(hbox2);
gtk_widget_show(frame); gtk_widget_show(frame);
frame = gtk_frame_new("Effect channel"); frame = gtk_frame_new( _("Effect channel"));
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_container_add(GTK_CONTAINER(vbox),frame); gtk_container_add(GTK_CONTAINER(vbox),frame);
vbox2=gtk_vbox_new(FALSE,0); vbox2=gtk_vbox_new(FALSE,0);
gtk_container_add(GTK_CONTAINER(frame),vbox2); gtk_container_add(GTK_CONTAINER(frame),vbox2);
button = gtk_radio_button_new_with_label(NULL,"Hue"); button = gtk_radio_button_new_with_label(NULL, _("Hue"));
group = gtk_radio_button_group(GTK_RADIO_BUTTON(button)); group = gtk_radio_button_group(GTK_RADIO_BUTTON(button));
if (licvals.effect_channel==0) if (licvals.effect_channel==0)
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), TRUE); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), TRUE);
...@@ -1030,7 +1033,7 @@ void create_main_dialog(void) ...@@ -1030,7 +1033,7 @@ void create_main_dialog(void)
gtk_box_pack_start(GTK_BOX(vbox2), button, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox2), button, FALSE, FALSE, 0);
gtk_widget_show(button); gtk_widget_show(button);
button = gtk_radio_button_new_with_label(group,"Saturation"); button = gtk_radio_button_new_with_label(group, _("Saturation"));
if (licvals.effect_channel==1) if (licvals.effect_channel==1)
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), TRUE); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), TRUE);
...@@ -1041,7 +1044,7 @@ void create_main_dialog(void) ...@@ -1041,7 +1044,7 @@ void create_main_dialog(void)
gtk_box_pack_start(GTK_BOX(vbox2), button, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox2), button, FALSE, FALSE, 0);
gtk_widget_show(button); gtk_widget_show(button);
button = gtk_radio_button_new_with_label(group,"Brightness"); button = gtk_radio_button_new_with_label(group, _("Brightness"));
if (licvals.effect_channel==2) if (licvals.effect_channel==2)
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), TRUE); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), TRUE);
...@@ -1055,14 +1058,14 @@ void create_main_dialog(void) ...@@ -1055,14 +1058,14 @@ void create_main_dialog(void)
gtk_widget_show(vbox2); gtk_widget_show(vbox2);
gtk_widget_show(frame); gtk_widget_show(frame);
frame = gtk_frame_new("Effect operator"); frame = gtk_frame_new( _("Effect operator"));
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_container_add(GTK_CONTAINER(vbox),frame); gtk_container_add(GTK_CONTAINER(vbox),frame);
vbox2=gtk_vbox_new(FALSE,0); vbox2=gtk_vbox_new(FALSE,0);
gtk_container_add(GTK_CONTAINER(frame),vbox2); gtk_container_add(GTK_CONTAINER(frame),vbox2);
button = gtk_radio_button_new_with_label(NULL,"Derivative"); button = gtk_radio_button_new_with_label(NULL, _("Derivative"));
group = gtk_radio_button_group(GTK_RADIO_BUTTON(button)); group = gtk_radio_button_group(GTK_RADIO_BUTTON(button));
if (licvals.effect_operator==0) if (licvals.effect_operator==0)
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), TRUE); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), TRUE);
...@@ -1074,7 +1077,7 @@ void create_main_dialog(void) ...@@ -1074,7 +1077,7 @@ void create_main_dialog(void)
gtk_box_pack_start(GTK_BOX(vbox2), button, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox2), button, FALSE, FALSE, 0);
gtk_widget_show(button); gtk_widget_show(button);
button = gtk_radio_button_new_with_label(group,"Gradient"); button = gtk_radio_button_new_with_label(group, _("Gradient"));
if (licvals.effect_operator==1) if (licvals.effect_operator==1)
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), TRUE); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), TRUE);
...@@ -1088,14 +1091,14 @@ void create_main_dialog(void) ...@@ -1088,14 +1091,14 @@ void create_main_dialog(void)
gtk_widget_show(vbox2); gtk_widget_show(vbox2);
gtk_widget_show(frame); gtk_widget_show(frame);
frame = gtk_frame_new("Convolve"); frame = gtk_frame_new( _("Convolve"));
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_container_add(GTK_CONTAINER(vbox),frame); gtk_container_add(GTK_CONTAINER(vbox),frame);
vbox2=gtk_vbox_new(FALSE,0); vbox2=gtk_vbox_new(FALSE,0);
gtk_container_add(GTK_CONTAINER(frame),vbox2); gtk_container_add(GTK_CONTAINER(frame),vbox2);
button = gtk_radio_button_new_with_label(NULL,"With white noise"); button = gtk_radio_button_new_with_label(NULL, _("With white noise"));
group = gtk_radio_button_group(GTK_RADIO_BUTTON(button)); group = gtk_radio_button_group(GTK_RADIO_BUTTON(button));
if (licvals.effect_convolve==0) if (licvals.effect_convolve==0)
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), TRUE); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), TRUE);
...@@ -1107,7 +1110,7 @@ void create_main_dialog(void) ...@@ -1107,7 +1110,7 @@ void create_main_dialog(void)
gtk_box_pack_start(GTK_BOX(vbox2), button, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox2), button, FALSE, FALSE, 0);
gtk_widget_show(button); gtk_widget_show(button);
button = gtk_radio_button_new_with_label(group,"With source image"); button = gtk_radio_button_new_with_label(group, _("With source image"));
if (licvals.effect_convolve==1) if (licvals.effect_convolve==1)
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), TRUE); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), TRUE);
...@@ -1126,7 +1129,7 @@ void create_main_dialog(void) ...@@ -1126,7 +1129,7 @@ void create_main_dialog(void)
vbox=gtk_vbox_new(FALSE,0); vbox=gtk_vbox_new(FALSE,0);
gtk_box_pack_start(GTK_BOX(hbox), vbox, FALSE, FALSE, 5); gtk_box_pack_start(GTK_BOX(hbox), vbox, FALSE, FALSE, 5);
frame = gtk_frame_new("Parameters"); frame = gtk_frame_new( _("Parameters"));
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_container_add(GTK_CONTAINER(vbox),frame); gtk_container_add(GTK_CONTAINER(vbox),frame);
...@@ -1138,7 +1141,7 @@ void create_main_dialog(void) ...@@ -1138,7 +1141,7 @@ void create_main_dialog(void)
hbox2=gtk_hbox_new(FALSE,0); hbox2=gtk_hbox_new(FALSE,0);
gtk_container_add(GTK_CONTAINER(vbox2),hbox2); gtk_container_add(GTK_CONTAINER(vbox2),hbox2);
label = gtk_label_new("Effect image:"); label = gtk_label_new( _("Effect image:"));
gtk_container_add(GTK_CONTAINER(hbox2),label); gtk_container_add(GTK_CONTAINER(hbox2),label);
gtk_widget_show(label);