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>
Sven Neumann <sven@gimp.org>
......
......@@ -59,11 +59,11 @@ OFILES=../about_dialog.o ../disp_callbacks.o ../gimpunit.o \
../indicator_area.o ../gdisplay_color.o ../gimpcontextpreview.o \
../qmask.o ../context_manager.o ../lc_dialog.o ../gimpcontext.o
testplugin_SOURCES = \
testplugin.c \
init.c
plugshow_SOURCES = \
plugshow.c
#testplugin_SOURCES = \
# testplugin.c \
# init.c
#plugshow_SOURCES = \
# plugshow.c
plugdir_SOURCES = \
plugdir.c
gimppath_SOURCES = \
......@@ -89,12 +89,12 @@ LDADD = $(OFILES) \
$(GIMP_THREAD_LIBS) \
$(INTLLIBS)
plugshow_LDADD = $(OFILES) \
../libgimpim.a \
$(top_builddir)/libgimp/libgimpi.a \
$(GTK_LIBS) \
$(GIMP_THREAD_LIBS) \
$(INTLLIBS)
#plugshow_LDADD = $(OFILES) \
# ../libgimpim.a \
# $(top_builddir)/libgimp/libgimpi.a \
# $(GTK_LIBS) \
# $(GIMP_THREAD_LIBS) \
# $(INTLLIBS)
plugdir_LDADD = $(OFILES) \
../libgimpim.a \
$(top_builddir)/libgimp/libgimpi.a \
......
......@@ -4,7 +4,7 @@ AC_INIT(gimprc.in)
dnl Initialize automake stuff
GIMP_MAJOR_VERSION=1
GIMP_MINOR_VERSION=1
GIMP_MICRO_VERSION=9
GIMP_MICRO_VERSION=10
GIMP_INTERFACE_AGE=0
GIMP_BINARY_AGE=0
GIMP_VERSION=$GIMP_MAJOR_VERSION.$GIMP_MINOR_VERSION.$GIMP_MICRO_VERSION
......
#ifndef __STDPLUGINS-INTL_H__
#define __STDPLUGINS-INTL_H__
#ifndef __STDPLUGINS_INTL_H__
#define __STDPLUGINS_INTL_H__
#include <locale.h>
......@@ -21,4 +21,4 @@
setlocale (LC_NUMERIC, "C"); \
INIT_I18N();
#endif /* __STDPLUGINS-INTL_H__ */
#endif /* __STDPLUGINS_INTL_H__ */
......@@ -100,7 +100,9 @@
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include "config.h"
#include "libgimp/gimp.h"
#include "libgimp/stdplugins-intl.h"
#define WinMain WinMain_foo /* Kludge */
#include "gdk/gdkx.h"
#undef WinMain
......@@ -236,13 +238,15 @@ static void query()
static int nargs = sizeof(args) / sizeof(args[0]);
static int nreturn_vals = 0;
INIT_I18N();
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>",
"1997, 1998...",
"<Image>/Filters/Animation/Animation Playback",
_("<Image>/Filters/Animation/Animation Playback"),
"RGB*, INDEXED*, GRAY*",
PROC_PLUG_IN,
nargs, nreturn_vals,
......@@ -265,6 +269,9 @@ static void run(char *name, int n_params, GParam * param, int *nreturn_vals,
if (n_params != 3) {
status = STATUS_CALLING_ERROR;
}
INIT_I18N();
} else {
INIT_I18N_UI();
}
if (status == STATUS_SUCCESS) {
......@@ -650,8 +657,8 @@ build_dialog(GImageType basetype,
dlg = gtk_dialog_new ();
windowname = g_malloc(strlen("Animation Playback: ")+strlen(imagename)+1);
strcpy(windowname,"Animation Playback: ");
windowname = g_malloc(strlen( _("Animation Playback: "))+strlen(imagename)+1);
strcpy(windowname, _("Animation Playback: "));
strcat(windowname,imagename);
gtk_window_set_title (GTK_WINDOW (dlg), windowname);
g_free(windowname);
......@@ -663,7 +670,7 @@ build_dialog(GImageType basetype,
/* 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_signal_connect_object (GTK_OBJECT (button), "clicked",
(GtkSignalFunc) window_close_callback,
......@@ -677,10 +684,10 @@ build_dialog(GImageType basetype,
{
/* 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)
{
strcpy(windowname,"Playback: ");
strcpy(windowname, _("Playback: "));
strcat(windowname,imagename);
}
else
......@@ -710,19 +717,19 @@ build_dialog(GImageType basetype,
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",
(GtkSignalFunc) playstop_callback, NULL);
gtk_box_pack_start (GTK_BOX (hbox2), psbutton, TRUE, TRUE, 0);
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",
(GtkSignalFunc) rewind_callback, NULL);
gtk_box_pack_start (GTK_BOX (hbox2), button, TRUE, TRUE, 0);
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",
(GtkSignalFunc) step_callback, NULL);
gtk_box_pack_start (GTK_BOX (hbox2), button, TRUE, TRUE, 0);
......@@ -780,7 +787,7 @@ build_dialog(GImageType basetype,
(adj));
{
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_widget_set_usize (GTK_WIDGET (progress), 150, 15);*/
gtk_box_pack_start (GTK_BOX (vbox), GTK_WIDGET (progress),
......@@ -958,7 +965,7 @@ render_frame(gint32 whichframe)
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);
exit(-1);
}
......
......@@ -51,7 +51,9 @@
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include "config.h"
#include "libgimp/gimp.h"
#include "libgimp/stdplugins-intl.h"
......@@ -122,30 +124,32 @@ static void query()
static int nargs = sizeof(args) / sizeof(args[0]);
static int nreturn_vals = 0;
INIT_I18N();
gimp_install_procedure("plug_in_animationoptimize",
"This plugin applies various optimizations to"
" a GIMP layer-based animation.",
_("This plugin applies various optimizations to"
" a GIMP layer-based animation."),
"",
"Adam D. Moss <adam@gimp.org>",
"Adam D. Moss <adam@gimp.org>",
"1997-98",
"<Image>/Filters/Animation/Animation Optimize",
_("<Image>/Filters/Animation/Animation Optimize"),
"RGB*, INDEXED*, GRAY*",
PROC_PLUG_IN,
nargs, nreturn_vals,
args, return_vals);
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"
" makes the animation much easier to work with if,"
" for example, the optimized version is all you"
" have.",
" have."),
"",
"Adam D. Moss <adam@gimp.org>",
"Adam D. Moss <adam@gimp.org>",
"1997-98",
"<Image>/Filters/Animation/Animation UnOptimize",
_("<Image>/Filters/Animation/Animation UnOptimize"),
"RGB*, INDEXED*, GRAY*",
PROC_PLUG_IN,
nargs, nreturn_vals,
......@@ -171,7 +175,8 @@ static void run(char *name, int n_params, GParam * param, int *nreturn_vals,
status = STATUS_CALLING_ERROR;
}
}
INIT_I18N();
/* Check the procedure name we were called with, to decide
what needs to be done. */
if (strcmp(name,"plug_in_animationoptimize")==0)
......@@ -288,9 +293,9 @@ do_optimizations(void)
gint32 rbox_top, rbox_bottom, rbox_left, rbox_right;
if (optimize)
gimp_progress_init ("Optimizing Animation...");
gimp_progress_init (_("Optimizing Animation..."));
else
gimp_progress_init ("UnOptimizing Animation...");
gimp_progress_init (_("UnOptimizing Animation..."));
width = gimp_image_width(image_id);
height = gimp_image_height(image_id);
......@@ -319,7 +324,7 @@ do_optimizations(void)
}
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++)
{
......
......@@ -40,9 +40,12 @@
#include <signal.h>
#include <gdk/gdk.h>
#include <gtk/gtk.h>
#include "config.h"
#include "libgimp/stdplugins-intl.h"
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
/************/
/* Typedefs */
/************/
......@@ -842,7 +845,7 @@ void compute_image(void)
/* 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);
gimp_image_add_layer(new_image_id,new_layer_id,0);
......@@ -851,7 +854,7 @@ void compute_image(void)
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)
generatevectors();
......@@ -879,7 +882,7 @@ void compute_image(void)
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;
}
......@@ -982,7 +985,7 @@ void create_main_dialog(void)
/* Dialog */
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_container_border_width(GTK_CONTAINER(dialog), 0);
gtk_signal_connect(GTK_OBJECT(dialog), "delete_event",
......@@ -995,14 +998,14 @@ void create_main_dialog(void)
vbox=gtk_vbox_new(FALSE,0);
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_container_add(GTK_CONTAINER(vbox),frame);
hbox2=gtk_hbox_new(FALSE,5);
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)
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button),TRUE);
gtk_container_add(GTK_CONTAINER(hbox2),button);
......@@ -1011,14 +1014,14 @@ void create_main_dialog(void)
gtk_widget_show(hbox2);
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_container_add(GTK_CONTAINER(vbox),frame);
vbox2=gtk_vbox_new(FALSE,0);
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));
if (licvals.effect_channel==0)
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), TRUE);
......@@ -1030,7 +1033,7 @@ void create_main_dialog(void)
gtk_box_pack_start(GTK_BOX(vbox2), button, FALSE, FALSE, 0);
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)
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), TRUE);
......@@ -1041,7 +1044,7 @@ void create_main_dialog(void)
gtk_box_pack_start(GTK_BOX(vbox2), button, FALSE, FALSE, 0);
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)
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), TRUE);
......@@ -1055,14 +1058,14 @@ void create_main_dialog(void)
gtk_widget_show(vbox2);
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_container_add(GTK_CONTAINER(vbox),frame);
vbox2=gtk_vbox_new(FALSE,0);
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));
if (licvals.effect_operator==0)
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), TRUE);
......@@ -1074,7 +1077,7 @@ void create_main_dialog(void)
gtk_box_pack_start(GTK_BOX(vbox2), button, FALSE, FALSE, 0);
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)
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), TRUE);
......@@ -1088,14 +1091,14 @@ void create_main_dialog(void)
gtk_widget_show(vbox2);
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_container_add(GTK_CONTAINER(vbox),frame);
vbox2=gtk_vbox_new(FALSE,0);
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));
if (licvals.effect_convolve==0)
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), TRUE);
......@@ -1107,7 +1110,7 @@ void create_main_dialog(void)
gtk_box_pack_start(GTK_BOX(vbox2), button, FALSE, FALSE, 0);
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)
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), TRUE);
......@@ -1126,7 +1129,7 @@ void create_main_dialog(void)
vbox=gtk_vbox_new(FALSE,0);
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_container_add(GTK_CONTAINER(vbox),frame);
......@@ -1138,7 +1141,7 @@ void create_main_dialog(void)
hbox2=gtk_hbox_new(FALSE,0);
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_widget_show(label);
......@@ -1156,7 +1159,7 @@ void create_main_dialog(void)
gtk_widget_show(hbox2);
label = gtk_label_new("Filter length:");
label = gtk_label_new( _("Filter length:"));
gtk_misc_set_alignment(GTK_MISC(label), 0.5, 1.0);
gtk_container_add(GTK_CONTAINER(vbox2),label);
gtk_widget_show(label);
......@@ -1170,7 +1173,7 @@ void create_main_dialog(void)
gtk_container_add(GTK_CONTAINER(vbox2),scale);
gtk_widget_show(scale);
label = gtk_label_new("Noise magnitude:");
label = gtk_label_new( _("Noise magnitude:"));
gtk_misc_set_alignment(GTK_MISC(label), 0.5, 1.0);
gtk_container_add(GTK_CONTAINER(vbox2),label);
gtk_widget_show(label);
......@@ -1185,7 +1188,7 @@ void create_main_dialog(void)
gtk_container_add(GTK_CONTAINER(vbox2),scale);
gtk_widget_show(scale);
label = gtk_label_new("Integration steps:");
label = gtk_label_new( _("Integration steps:"));
gtk_misc_set_alignment(GTK_MISC(label), 0.5, 1.0);
gtk_container_add(GTK_CONTAINER(vbox2),label);
gtk_widget_show(label);
......@@ -1200,7 +1203,7 @@ void create_main_dialog(void)
gtk_container_add(GTK_CONTAINER(vbox2),scale);
gtk_widget_show(scale);
label = gtk_label_new("Minimum value:");
label = gtk_label_new( _("Minimum value:"));
gtk_misc_set_alignment(GTK_MISC(label), 0.5, 1.0);
gtk_container_add(GTK_CONTAINER(vbox2),label);
gtk_widget_show(label);
......@@ -1215,7 +1218,7 @@ void create_main_dialog(void)
gtk_container_add(GTK_CONTAINER(vbox2),scale);
gtk_widget_show(scale);
label = gtk_label_new("Maximum value:");
label = gtk_label_new( _("Maximum value:"));
gtk_misc_set_alignment(GTK_MISC(label), 0.5, 1.0);
gtk_container_add(GTK_CONTAINER(vbox2),label);
gtk_widget_show(label);
......@@ -1240,7 +1243,7 @@ void create_main_dialog(void)
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_signal_connect(GTK_OBJECT(button), "clicked",
(GtkSignalFunc)ok_button_clicked,(gpointer)dialog);
......@@ -1249,7 +1252,7 @@ void create_main_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)cancel_button_clicked,(gpointer)dialog);
......@@ -1300,13 +1303,15 @@ static void query(void)
static gint nargs = sizeof (args) / sizeof (args[0]);
static gint nreturn_vals = 0;
INIT_I18N();
gimp_install_procedure ("plug_in_lic",
"Creates a Van Gogh effect (Line Integral Convolution)",
_("Creates a Van Gogh effect (Line Integral Convolution)"),
"No help yet",
"Tom Bech & Federico Mena Quintero",
"Tom Bech & Federico Mena Quintero",
"Version 0.14, September 24 1997",
"<Image>/Filters/Artistic/Van Gogh (LIC)",
_("<Image>/Filters/Artistic/Van Gogh (LIC)"),
"RGB",
PROC_PLUG_IN,
nargs, nreturn_vals,
......@@ -1326,6 +1331,12 @@ static void run(gchar *name,
run_mode = param[0].data.d_int32;
if (run_mode == RUN_INTERACTIVE) {
INIT_I18N_UI();
} else {
INIT_I18N();
}
*nreturn_vals = 1;
*return_vals = values;
......@@ -1422,7 +1433,7 @@ void lic_interactive(GDrawable *drawable)
void lic_noninteractive(GDrawable *drawable)
{
printf("Noninteractive not yet implemented! Sorry.\n");
printf( _("Noninteractive not yet implemented! Sorry.\n"));
}
MAIN()
......
......@@ -27,6 +27,8 @@
#include <stdlib.h>
#include <string.h>
#include "gtk/gtk.h"
#include "config.h"
#include "libgimp/stdplugins-intl.h"
#include "libgimp/gimp.h"
/* The mosaic logo */
......@@ -318,13 +320,15 @@ query ()
static int nargs = sizeof (args) / sizeof (args[0]);
static int nreturn_vals = 0;
INIT_I18N();
gimp_install_procedure ("plug_in_mosaic",
"Convert the input drawable into a collection of tiles",
"Help not yet written for this plug-in",
_("Convert the input drawable into a collection of tiles"),
_("Help not yet written for this plug-in"),
"Spencer Kimball",
"Spencer Kimball & Peter Mattis",
"1996",
"<Image>/Filters/Artistic/Mosaic",
_("<Image>/Filters/Artistic/Mosaic"),
"RGB*, GRAY*",
PROC_PLUG_IN,
nargs, nreturn_vals,
......@@ -354,6 +358,7 @@ run (char *name,
switch (run_mode)
{
case RUN_INTERACTIVE:
INIT_I18N_UI();
/* Possibly retrieve data */
gimp_get_data ("plug_in_mosaic", &mvals);
......@@ -363,6 +368,7 @@ run (char *name,
break;
case RUN_NONINTERACTIVE:
INIT_I18N();
/* Make sure all the arguments are there! */
if (nparams != 14)
status = STATUS_CALLING_ERROR;
......@@ -443,7 +449,7 @@ mosaic (GDrawable *drawable)
gimp_drawable_mask_bounds (drawable->id, &x1, &y1, &x2, &y2);
/* progress bar for gradient finding */
gimp_progress_init ("Finding Edges...");
gimp_progress_init ( _("Finding Edges..."));
/* Find the gradients */
find_gradients (drawable, std_dev);
......@@ -493,7 +499,7 @@ mosaic (GDrawable *drawable)
0.5 : 1.0 - mvals.tile_spacing / mvals.tile_size;
/* Progress bar for rendering tiles */
gimp_progress_init ("Rendering Tiles...");
gimp_progress_init ( _("Rendering Tiles..."));
/* Render the tiles */
grid_render (drawable);
......@@ -548,14 +554,14 @@ mosaic_dialog ()
gtk_widget_set_default_colormap (gtk_preview_get_cmap ());
dlg = gtk_dialog_new ();
gtk_window_set_title (GTK_WINDOW (dlg), "Mosaic");
gtk_window_set_title (GTK_WINDOW (dlg), _("Mosaic"));
gtk_window_position (GTK_WINDOW (dlg), GTK_WIN_POS_MOUSE);
gtk_signal_connect (GTK_OBJECT (dlg), "destroy",
(GtkSignalFunc) mosaic_close_callback,
NULL);
/* Action area */
button = gtk_button_new_with_label ("OK");
button = gtk_button_new_with_label ( _("OK"));
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
gtk_signal_connect (GTK_OBJECT (button), "clicked",
(GtkSignalFunc) mosaic_ok_callback,
......@@ -564,7 +570,7 @@ mosaic_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,
......@@ -613,7 +619,7 @@ mosaic_dialog ()
gtk_container_border_width (GTK_CONTAINER (toggle_vbox), 5);
gtk_container_add (GTK_CONTAINER (frame), toggle_vbox);
toggle = gtk_check_button_new_with_label ("Antialiasing");
toggle = gtk_check_button_new_with_label ( _("Antialiasing"));
gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) mosaic_toggle_update,
......@@ -621,7 +627,7 @@ mosaic_dialog ()
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), mvals.antialiasing);
gtk_widget_show (toggle);
toggle = gtk_check_button_new_with_label ("Color Averaging");
toggle = gtk_check_button_new_with_label ( _("Color Averaging"));
gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) mosaic_toggle_update,
......@@ -629,7 +635,7 @@ mosaic_dialog ()
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), mvals.color_averaging);
gtk_widget_show (toggle);
toggle = gtk_check_button_new_with_label ("Pitted Surfaces");
toggle = gtk_check_button_new_with_label ( _("Pitted Surfaces"));
gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) mosaic_toggle_update,
......@@ -637,7 +643,7 @@ mosaic_dialog ()
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), (mvals.tile_surface == ROUGH));
gtk_widget_show (toggle);
toggle = gtk_check_button_new_with_label ("FG/BG Lighting");
toggle = gtk_check_button_new_with_label ( _("FG/BG Lighting"));
gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) mosaic_toggle_update,
......@@ -650,14 +656,14 @@ mosaic_dialog ()
gtk_widget_show (hbox);
/* tiling primitive */
frame = gtk_frame_new ("Tiling Primitives");
frame = gtk_frame_new ( _("Tiling Primitives"));
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, TRUE, 0);
toggle_vbox = gtk_vbox_new (FALSE, 5);
gtk_container_border_width (GTK_CONTAINER (toggle_vbox), 5);
gtk_container_add (GTK_CONTAINER (frame), toggle_vbox);
toggle = gtk_radio_button_new_with_label (group, "Squares");
toggle = gtk_radio_button_new_with_label (group, _("Squares"));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
......@@ -666,7 +672,7 @@ mosaic_dialog ()
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), use_squares);
gtk_widget_show (toggle);
toggle = gtk_radio_button_new_with_label (group, "Hexagons");
toggle = gtk_radio_button_new_with_label (group, _("Hexagons"));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
......@@ -675,7 +681,7 @@ mosaic_dialog ()
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), use_hexagons);
gtk_widget_show (toggle);
toggle = gtk_radio_button_new_with_label (group, "Octagons & Squares");
toggle = gtk_radio_button_new_with_label (group, _("Octagons & Squares"));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
gtk_box_pack_start (GTK_BOX (toggle_vbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
......@@ -689,14 +695,14 @@ mosaic_dialog ()
gtk_widget_show (vbox);
/* parameter settings */
frame = gtk_frame_new ("Parameter Settings");