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
This commit is contained in:
Manish Singh 1999-09-26 05:16:19 +00:00
parent cd45f5d062
commit 0fac8034eb
46 changed files with 1085 additions and 835 deletions

View File

@ -1,3 +1,52 @@
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>

View File

@ -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 \

View File

@ -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

View File

@ -1,5 +1,5 @@
#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__ */

View File

@ -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);
}

View File

@ -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++)
{

View File

@ -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()

View File

@ -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");
frame = gtk_frame_new ( _("Parameter Settings"));
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
gtk_box_pack_start (GTK_BOX (main_hbox), frame, TRUE, TRUE, 0);
table = gtk_table_new (6, 2, FALSE);
gtk_container_border_width (GTK_CONTAINER (table), 5);
gtk_container_add (GTK_CONTAINER (frame), table);
label = gtk_label_new ("Tile Size");
label = gtk_label_new ( _("Tile Size"));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1, GTK_FILL, 0, 5, 0);
scale_data = gtk_adjustment_new (mvals.tile_size, 5.0, 100.0, 1.0, 1.0, 0.0);
@ -711,7 +717,7 @@ mosaic_dialog ()
gtk_widget_show (label);
gtk_widget_show (scale);
label = gtk_label_new ("Tile Height");
label = gtk_label_new ( _("Tile Height"));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2, GTK_FILL, 0, 5, 0);
scale_data = gtk_adjustment_new (mvals.tile_height, 1.0, 50.0, 1.0, 1.0, 0.0);
@ -726,7 +732,7 @@ mosaic_dialog ()
gtk_widget_show (label);
gtk_widget_show (scale);
label = gtk_label_new ("Tile Spacing");
label = gtk_label_new ( _("Tile Spacing"));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 2, 3, GTK_FILL, 0, 5, 0);
scale_data = gtk_adjustment_new (mvals.tile_spacing, 1.0, 50.0, 1.0, 1.0, 0.0);
@ -741,7 +747,7 @@ mosaic_dialog ()
gtk_widget_show (label);
gtk_widget_show (scale);
label = gtk_label_new ("Tile Neatness");
label = gtk_label_new ( _("Tile Neatness"));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 3, 4, GTK_FILL, 0, 5, 0);
scale_data = gtk_adjustment_new (mvals.tile_neatness, 0.0, 1.0, 0.01, 0.01, 0.0);
@ -757,7 +763,7 @@ mosaic_dialog ()
gtk_widget_show (label);
gtk_widget_show (scale);
label = gtk_label_new ("Light Direction");
label = gtk_label_new ( _("Light Direction"));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 4, 5, GTK_FILL, 0, 5, 0);
scale_data = gtk_adjustment_new (mvals.light_dir, 0.0, 360.0, 5.0, 5.0, 0.0);
@ -772,7 +778,7 @@ mosaic_dialog ()
gtk_widget_show (label);
gtk_widget_show (scale);
label = gtk_label_new ("Color Variation");
label = gtk_label_new ( _("Color Variation"));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 5, 6, GTK_FILL, 0, 5, 0);
scale_data = gtk_adjustment_new (mvals.color_variation, 0.0, 1.0, 0.01, 0.01, 0.0);
@ -2548,7 +2554,7 @@ polygon_add_point (Polygon *poly,
poly->npts++;
}
else
g_print ("Unable to add additional point.\n");
g_print ( _("Unable to add additional point.\n"));
}

View File

@ -71,10 +71,11 @@
#include <signal.h>
#include <time.h> /* time(NULL) for random # seed */
#include "gtk/gtk.h"
#include "config.h"
#include "libgimp/stdplugins-intl.h"
#include "libgimp/gimp.h"
#include "libgimp/gimpui.h"
/* Some useful macros */
#define ENTRY_WIDTH 75
@ -294,13 +295,15 @@ query ()
static gint nargs = sizeof (args) / sizeof (args[0]);
static gint nreturn_vals = 0;
INIT_I18N();
gimp_install_procedure ("plug_in_warp",
"Twist or smear an image. (only first six arguments are required)",
"Smears an image along vector paths calculated as the gradient of a separate control matrix. The effect can look like brushstrokes of acrylic or watercolor paint, in some cases.",
_("Twist or smear an image. (only first six arguments are required)"),
_("Smears an image along vector paths calculated as the gradient of a separate control matrix. The effect can look like brushstrokes of acrylic or watercolor paint, in some cases."),
"John P. Beale",
"John P. Beale",
"1997",
"<Image>/Filters/Artistic/Warp",
_("<Image>/Filters/Artistic/Warp"),
"RGB*, GRAY*",
PROC_PLUG_IN,
nargs, nreturn_vals,
@ -345,6 +348,7 @@ run (gchar *name,
switch (run_mode)
{
case RUN_INTERACTIVE:
INIT_I18N_UI();
/* Possibly retrieve data */
gimp_get_data ("plug_in_warp", &dvals);
@ -354,6 +358,7 @@ run (gchar *name,
break;
case RUN_NONINTERACTIVE:
INIT_I18N();
/* Make sure minimum args (mode, image, draw, amount, warp_map, iter) are there */
if (nparams < MIN_ARGS)
status = STATUS_CALLING_ERROR;
@ -468,7 +473,7 @@ warp_dialog (GDrawable *drawable)
gtk_init (&argc, &argv);
dlg = gtk_dialog_new ();
gtk_window_set_title (GTK_WINDOW (dlg), "Warp");
gtk_window_set_title (GTK_WINDOW (dlg), _("Warp"));
gtk_window_position (GTK_WINDOW (dlg), GTK_WIN_POS_MOUSE);
gtk_signal_connect (GTK_OBJECT (dlg), "destroy",
(GtkSignalFunc) warp_close_callback,
@ -500,7 +505,7 @@ warp_dialog (GDrawable *drawable)
/* 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) warp_ok_callback,
@ -509,7 +514,7 @@ warp_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,
@ -518,7 +523,7 @@ warp_dialog (GDrawable *drawable)
gtk_widget_show (button);
/* The main table */
frame = gtk_frame_new ("Main Options");
frame = gtk_frame_new ( _("Main Options"));
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
gtk_container_border_width (GTK_CONTAINER (frame), 1);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), frame, TRUE, TRUE, 0);
@ -532,11 +537,11 @@ warp_dialog (GDrawable *drawable)
gtk_table_set_col_spacings (GTK_TABLE (table), 1);
/* on_x, on_y */
label = gtk_label_new ("Step Size");
label = gtk_label_new ( _("Step Size"));
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1, GTK_FILL, GTK_FILL, 0, 0);
gtk_widget_show (label);
label = gtk_label_new ("Iterations");
label = gtk_label_new ( _("Iterations"));
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2, GTK_FILL, GTK_FILL, 0, 0);
gtk_widget_show (label);
@ -564,7 +569,7 @@ warp_dialog (GDrawable *drawable)
/* Displacement map menu */
label = gtk_label_new ("Displacement Map:");
label = gtk_label_new ( _("Displacement Map:"));
gtk_table_attach (GTK_TABLE (table), label, 2, 3, 0, 1, GTK_FILL, GTK_FILL, 0, 0);
gtk_widget_show (label);
@ -584,11 +589,11 @@ warp_dialog (GDrawable *drawable)
gtk_container_border_width (GTK_CONTAINER (toggle_hbox), 1);
gtk_table_attach (GTK_TABLE (table), toggle_hbox, 0, 3, 3, 4, GTK_FILL, GTK_FILL, 0, 0);
label = gtk_label_new ("On Edges: ");
label = gtk_label_new ( _("On Edges: "));
gtk_box_pack_start (GTK_BOX (toggle_hbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
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 (toggle_hbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
@ -597,7 +602,7 @@ warp_dialog (GDrawable *drawable)
gtk_toggle_button_set_state (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 (toggle_hbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
@ -606,7 +611,7 @@ warp_dialog (GDrawable *drawable)
gtk_toggle_button_set_state (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 (toggle_hbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
@ -615,7 +620,7 @@ warp_dialog (GDrawable *drawable)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), use_black);
gtk_widget_show (toggle);
toggle = gtk_radio_button_new_with_label (group, "FG Color");
toggle = gtk_radio_button_new_with_label (group, _("FG Color"));
group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
gtk_box_pack_start (GTK_BOX (toggle_hbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
@ -632,7 +637,7 @@ warp_dialog (GDrawable *drawable)
/* -------------------------------------------------------------------- */
/* --------- The secondary table -------------------------- */
frame = gtk_frame_new ("Secondary Options");
frame = gtk_frame_new ( _("Secondary Options"));
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
gtk_container_border_width (GTK_CONTAINER (frame), 1);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), frame, TRUE, TRUE, 0);
@ -645,7 +650,7 @@ warp_dialog (GDrawable *drawable)
gtk_table_set_row_spacings (GTK_TABLE (table), 1);
gtk_table_set_col_spacings (GTK_TABLE (table), 1);
label = gtk_label_new ("Dither Size");
label = gtk_label_new ( _("Dither Size"));
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1, GTK_FILL, GTK_FILL, 0, 0);
gtk_widget_show (label);
@ -659,7 +664,7 @@ warp_dialog (GDrawable *drawable)
&dvals.dither);
gtk_widget_show (entry);
label = gtk_label_new ("Substeps");
label = gtk_label_new ( _("Substeps"));
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 2, 3, GTK_FILL, GTK_FILL, 0, 0);
gtk_widget_show (label);
@ -674,7 +679,7 @@ warp_dialog (GDrawable *drawable)
gtk_widget_show (entry);
/* -------------------------------------------------------- */
label = gtk_label_new ("Rotation Angle");
label = gtk_label_new ( _("Rotation Angle"));
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2, GTK_FILL, GTK_FILL, 0, 0);
gtk_widget_show (label);
@ -691,7 +696,7 @@ warp_dialog (GDrawable *drawable)
/* Magnitude map menu */
label = gtk_label_new ("Magnitude Map:");
label = gtk_label_new ( _("Magnitude Map:"));
gtk_table_attach (GTK_TABLE (table), label, 2, 3, 0, 1, GTK_FILL, GTK_FILL, 0, 0);
gtk_widget_show (label);
@ -710,11 +715,11 @@ warp_dialog (GDrawable *drawable)
gtk_container_border_width (GTK_CONTAINER (toggle_hbox), 1);
gtk_table_attach (GTK_TABLE (table), toggle_hbox, 2, 3, 2, 3, GTK_FILL, GTK_FILL, 0, 0);
label = gtk_label_new ("Use Mag Map: ");
label = gtk_label_new ( _("Use Mag Map: "));
gtk_box_pack_start (GTK_BOX (toggle_hbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
toggle = gtk_radio_button_new_with_label (groupmag, "Yes");
toggle = gtk_radio_button_new_with_label (groupmag, _("Yes"));
groupmag = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
gtk_box_pack_start (GTK_BOX (toggle_hbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
@ -723,7 +728,7 @@ warp_dialog (GDrawable *drawable)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (toggle), mag_use_yes);
gtk_widget_show (toggle);
toggle = gtk_radio_button_new_with_label (groupmag, "No");
toggle = gtk_radio_button_new_with_label (groupmag, _("No"));
groupmag = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
gtk_box_pack_start (GTK_BOX (toggle_hbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
@ -740,7 +745,7 @@ warp_dialog (GDrawable *drawable)
/* -------------------------------------------------------------------- */
/* --------- The "other" table -------------------------- */
frame = gtk_frame_new ("Other Options");
frame = gtk_frame_new ( _("Other Options"));
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
gtk_container_border_width (GTK_CONTAINER (frame), 1);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), frame, TRUE, TRUE, 0);
@ -753,7 +758,7 @@ warp_dialog (GDrawable *drawable)
gtk_table_set_row_spacings (GTK_TABLE (otable), 1);
gtk_table_set_col_spacings (GTK_TABLE (otable), 1);
label = gtk_label_new ("Gradient Scale");
label = gtk_label_new ( _("Gradient Scale"));
gtk_table_attach (GTK_TABLE (otable), label, 0, 1, 0, 1, GTK_FILL, GTK_FILL, 0, 0);
gtk_widget_show (label);
@ -775,7 +780,7 @@ warp_dialog (GDrawable *drawable)
gradmenu = gimp_drawable_menu_new (warp_map_constrain, warp_map_grad_callback,
drawable, dvals.grad_map);
gtk_option_menu_set_menu (GTK_OPTION_MENU (option_menu_grad), gradmenu);
gtk_tooltips_set_tip (tooltips, option_menu_grad, "Gradient map selection menu", NULL);
gtk_tooltips_set_tip (tooltips, option_menu_grad, _("Gradient map selection menu"), NULL);
gtk_widget_show (option_menu_grad);
@ -784,7 +789,7 @@ warp_dialog (GDrawable *drawable)
/* ---------------------------------------------- */
label = gtk_label_new ("Vector Mag");
label = gtk_label_new ( _("Vector Mag"));
gtk_table_attach (GTK_TABLE (otable), label, 0, 1, 1, 2, GTK_FILL, GTK_FILL, 0, 0);
gtk_widget_show (label);
@ -799,7 +804,7 @@ warp_dialog (GDrawable *drawable)
gtk_widget_show (entry);
/* -------------------------------------------------------- */
label = gtk_label_new ("Angle");
label = gtk_label_new ( _("Angle"));
gtk_table_attach (GTK_TABLE (otable), label, 0, 1, 2, 3, GTK_FILL, GTK_FILL, 0, 0);
gtk_widget_show (label);
@ -820,7 +825,7 @@ warp_dialog (GDrawable *drawable)
vectormenu = gimp_drawable_menu_new (warp_map_constrain, warp_map_vector_callback,
drawable, dvals.vector_map);
gtk_option_menu_set_menu (GTK_OPTION_MENU (option_menu_vector), vectormenu);
gtk_tooltips_set_tip (tooltips, option_menu_vector, "Fixed-direction-vector map selection menu", NULL);
gtk_tooltips_set_tip (tooltips, option_menu_vector, _("Fixed-direction-vector map selection menu"), NULL);
gtk_widget_show (option_menu_vector);
@ -1110,7 +1115,7 @@ diff (GDrawable *drawable,
if ((desty==NULL) || (destx==NULL) || (cur_row_m==NULL) || (cur_row_v==NULL)
|| (next_row_g==NULL) || (cur_row_g==NULL) || (prev_row_g==NULL)
|| (next_row==NULL) || (cur_row==NULL) || (prev_row==NULL)) {
fprintf(stderr,"Warp diff: error allocating memory.\n");
fprintf(stderr, _("Warp diff: error allocating memory.\n"));
exit(1);
}
@ -1297,9 +1302,9 @@ diff (GDrawable *drawable,
gimp_displays_flush(); /* make sure layer is visible */
gimp_progress_init ("Smoothing X gradient...");
gimp_progress_init ( _("Smoothing X gradient..."));
blur16(draw_xd);
gimp_progress_init ("Smoothing Y gradient...");
gimp_progress_init ( _("Smoothing Y gradient..."));
blur16(draw_yd);
free (prev_row); /* row buffers allocated at top of fn. */
@ -1354,7 +1359,7 @@ warp (GDrawable *orig_draw,
/* calculate new X,Y Displacement image maps */
gimp_progress_init ("Finding XY gradient...");
gimp_progress_init ( _("Finding XY gradient..."));
diff(disp_map, &xdlayer, &ydlayer); /* generate x,y differential images (arrays) */
@ -1378,7 +1383,7 @@ warp (GDrawable *orig_draw,
for (warp_iter = 0; warp_iter < dvals.iter; warp_iter++)
{
if (run_mode != RUN_NONINTERACTIVE) {
sprintf(string,"Flow Step %d...",warp_iter+1);
sprintf(string, _("Flow Step %d..."),warp_iter+1);
gimp_progress_init (string);
progress = 0;
gimp_progress_update (0);

View File

@ -152,6 +152,8 @@ gap_filter_SOURCES = \
gap_pdb_calls.h \
gap_filter.h
AM_CPPFLAGS = \
-DLOCALEDIR=\""$(localedir)"\"
INCLUDES = \
-I$(top_srcdir) \

View File

@ -55,6 +55,8 @@
#include "gtk/gtk.h"
#include "libgimp/gimp.h"
#include "libgimp/gimpui.h"
#include "libgimp/stdplugins-intl.h"
#include "libgimp/gimp.h"
/* private includes */
#include "gap_arr_dialog.h"
@ -273,7 +275,7 @@ filesel_create_value(char *title, GtkTable *table, int row, t_arr_arg *arr_ptr)
arr_ptr->text_filesel = NULL;
/* Button to invoke filebrowser */
button = gtk_button_new_with_label ("File-Browser");
button = gtk_button_new_with_label ( _("File-Browser"));
gtk_signal_connect (GTK_OBJECT (button), "clicked",
(GtkSignalFunc) filesel_open_cb,
arr_ptr);
@ -661,7 +663,7 @@ pair_flt_create_value(t_pair *pair, char *title, GtkTable *table, int row, t_arr
if((*arr_ptr->flt_format != '%')
|| (arr_ptr->flt_format[strlen(arr_ptr->flt_format) -1] != 'f'))
{
printf("pair_flt_create_value: Bad FloatFormat ignored %s\n", arr_ptr->flt_format);
printf( _("pair_flt_create_value: Bad FloatFormat ignored %s\n"), arr_ptr->flt_format);
arr_ptr->flt_format = "%0.2f";
}
}
@ -805,7 +807,7 @@ pair_int_create_value(t_pair *pair, char *title, GtkTable *table, int row, t_arr
if((*arr_ptr->int_format != '%')
|| (arr_ptr->int_format[strlen(arr_ptr->int_format) -1] != 'd'))
{
printf("pair_int_create_value: Bad IntFormat ignored %s\n", arr_ptr->int_format);
printf( _("pair_int_create_value: Bad IntFormat ignored %s\n"), arr_ptr->int_format);
arr_ptr->int_format = "%d";
}
}
@ -942,7 +944,7 @@ gint p_array_std_dialog(char *title_txt,
for(l_idx = 0; l_idx < b_argc; l_idx++)
{
if(b_argv[l_idx].but_txt == NULL) button = gtk_button_new_with_label ("OK");
if(b_argv[l_idx].but_txt == NULL) button = gtk_button_new_with_label ( _("OK"));
else button = gtk_button_new_with_label (b_argv[l_idx].but_txt);
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
gtk_signal_connect (GTK_OBJECT (button), "clicked",
@ -957,7 +959,7 @@ gint p_array_std_dialog(char *title_txt,
if(b_argc < 1)
{
/* if no buttons are specified use one CLOSE button per default */
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 (GTK_OBJECT (button), "clicked",
(GtkSignalFunc) but_array_callback,
@ -968,7 +970,7 @@ gint p_array_std_dialog(char *title_txt,
}
/* parameter settings */
if (frame_txt == NULL) frame = gtk_frame_new ("Enter Values");
if (frame_txt == NULL) frame = gtk_frame_new ( _("Enter Values"));
else frame = gtk_frame_new (frame_txt);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
gtk_container_border_width (GTK_CONTAINER (frame), 10);
@ -985,7 +987,7 @@ gint p_array_std_dialog(char *title_txt,
{
arr_ptr = &argv[l_idx];
if(arr_ptr->label_txt == NULL) l_label_txt = "Value: ";
if(arr_ptr->label_txt == NULL) l_label_txt = _("Value: ");
else l_label_txt = arr_ptr->label_txt;
switch(arr_ptr->widget_type)
@ -1021,10 +1023,10 @@ gint p_array_std_dialog(char *title_txt,
label_create_value(l_label_txt, GTK_TABLE(table), (l_idx + 1), arr_ptr);
break;
case WGT_ACT_BUTTON:
printf("WGT_ACT_BUTTON not implemented yet, widget type ignored\n");
printf( _("WGT_ACT_BUTTON not implemented yet, widget type ignored\n"));
break;
default: /* undefined widget type */
printf("Unknown widget type %d ignored\n", arr_ptr->widget_type);
printf( _("Unknown widget type %d ignored\n"), arr_ptr->widget_type);
break;
} /* end switch */
@ -1045,7 +1047,7 @@ gint p_array_std_dialog(char *title_txt,
{
arr_ptr = &argv[l_idx];
if(arr_ptr->label_txt == NULL) l_label_txt = "Value: ";
if(arr_ptr->label_txt == NULL) l_label_txt = _("Value: ");
else l_label_txt = arr_ptr->label_txt;
arr_ptr = &argv[l_idx];
@ -1166,9 +1168,9 @@ gint p_array_dialog(char *title_txt,
{
static t_but_arg b_argv[2];
b_argv[0].but_txt = "OK";
b_argv[0].but_txt = _("OK");
b_argv[0].but_val = TRUE;
b_argv[1].but_txt = "Cancel";
b_argv[1].but_txt = _("Cancel");
b_argv[1].but_val = FALSE;
return( p_array_std_dialog(title_txt,
@ -1197,8 +1199,8 @@ gint p_buttons_dialog(char *title_txt,
static t_arr_arg argv[1];
char *frame_txt;
if(b_argc == 1) frame_txt = "Press Button";
else frame_txt = "Select";
if(b_argc == 1) frame_txt = _("Press Button");
else frame_txt = _("Select");
p_init_arr_arg(&argv[0], WGT_LABEL);
argv[0].label_txt = msg_txt;

View File

@ -34,6 +34,8 @@
0.08 26th sept 97 by Thomas NOEL <thomas@minet.net> )
*/
#include "config.h"
#include "libgimp/stdplugins-intl.h"
#include "gap_dbbrowser_utils.h"
extern int gap_debug;
@ -60,7 +62,7 @@ gap_db_browser_dialog(char *title_txt,
l_argsc = 1;
l_argsv = g_new (gchar *, 1);
l_argsv[0] = g_strdup ("GAP Animated Filter apply");
l_argsv[0] = g_strdup ( _("GAP Animated Filter apply"));
if (init_gtk_flag)
{
@ -81,7 +83,7 @@ gap_db_browser_dialog(char *title_txt,
dbbrowser->dlg = gtk_dialog_new ();
gtk_window_set_title (GTK_WINDOW (dbbrowser->dlg), "Animated Filter apply (init)");
gtk_window_set_title (GTK_WINDOW (dbbrowser->dlg), _("Animated Filter apply (init)"));
gtk_window_position (GTK_WINDOW (dbbrowser->dlg), GTK_WIN_POS_MOUSE);
gtk_signal_connect (GTK_OBJECT (dbbrowser->dlg), "destroy",
(GtkSignalFunc) dialog_close_callback,
@ -132,7 +134,7 @@ gap_db_browser_dialog(char *title_txt,
searchhbox, FALSE, TRUE, 0);
gtk_widget_show(searchhbox);
label = gtk_label_new("Search :");
label = gtk_label_new( _("Search :"));
gtk_misc_set_alignment( GTK_MISC(label), 0.0, 0.5);
gtk_box_pack_start (GTK_BOX (searchhbox),
label, TRUE, TRUE, 0);
@ -161,7 +163,7 @@ gap_db_browser_dialog(char *title_txt,
if (gap_debug) {
button = gtk_button_new_with_label ("Gen Code by name");
button = gtk_button_new_with_label ( _("Gen Code by name"));
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
gtk_signal_connect (GTK_OBJECT (button), "clicked",
(GtkSignalFunc) dialog_button_3_callback, dbbrowser );
@ -170,7 +172,7 @@ gap_db_browser_dialog(char *title_txt,
gtk_widget_show (button);
}
dbbrowser->name_button = gtk_button_new_with_label ("Search by name");
dbbrowser->name_button = gtk_button_new_with_label ( _("Search by name"));
GTK_WIDGET_SET_FLAGS (dbbrowser->name_button, GTK_CAN_DEFAULT);
gtk_signal_connect (GTK_OBJECT (dbbrowser->name_button), "clicked",
(GtkSignalFunc) dialog_search_callback, dbbrowser);
@ -178,7 +180,7 @@ gap_db_browser_dialog(char *title_txt,
dbbrowser->name_button , TRUE, TRUE, 0);
gtk_widget_show(dbbrowser->name_button);
dbbrowser->blurb_button = gtk_button_new_with_label ("Search by blurb");
dbbrowser->blurb_button = gtk_button_new_with_label ( _("Search by blurb"));
GTK_WIDGET_SET_FLAGS (dbbrowser->blurb_button, GTK_CAN_DEFAULT);
gtk_signal_connect (GTK_OBJECT (dbbrowser->blurb_button), "clicked",
(GtkSignalFunc) dialog_search_callback, dbbrowser);
@ -206,7 +208,7 @@ gap_db_browser_dialog(char *title_txt,
gtk_widget_show (dbbrowser->app_vary_button);
} else dbbrowser->app_vary_button = NULL;
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_close_callback, dbbrowser);
@ -320,7 +322,7 @@ dialog_select (dbbrowser_t *dbbrowser,
/* show the name */
label = gtk_label_new("Name :");
label = gtk_label_new( _("Name :"));
gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
gtk_table_attach (GTK_TABLE (dbbrowser->descr_table), label,
0, 1, row, row+1, GTK_FILL, GTK_FILL, 3, 6);
@ -337,7 +339,7 @@ dialog_select (dbbrowser_t *dbbrowser,
/* show the description */
label = gtk_label_new("Blurb :");
label = gtk_label_new( _("Blurb :"));
gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
gtk_table_attach (GTK_TABLE (dbbrowser->descr_table), label,
0, 1, row, row+1, GTK_FILL, GTK_FILL, 3, 0);
@ -359,7 +361,7 @@ dialog_select (dbbrowser_t *dbbrowser,
/* in parameters */
if (dbbrowser->selected_nparams)
{
label = gtk_label_new("In :");
label = gtk_label_new( _("In :"));
gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
gtk_table_attach (GTK_TABLE (dbbrowser->descr_table), label,
0, 1, row, row+(dbbrowser->selected_nparams),
@ -405,7 +407,7 @@ dialog_select (dbbrowser_t *dbbrowser,
/* out parameters */
if (dbbrowser->selected_nreturn_vals)
{
label = gtk_label_new("Out :");
label = gtk_label_new( _("Out :"));
gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
gtk_table_attach (GTK_TABLE (dbbrowser->descr_table), label,
0, 1, row, row+(dbbrowser->selected_nreturn_vals),
@ -454,7 +456,7 @@ dialog_select (dbbrowser_t *dbbrowser,
/* show the help */
if ((dbbrowser->selected_proc_help) && (strlen(dbbrowser->selected_proc_help) > 1))
{
label = gtk_label_new("Help :");
label = gtk_label_new( _("Help :"));
gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
gtk_table_attach (GTK_TABLE (dbbrowser->descr_table), label,
0, 1, row, row+1,
@ -492,7 +494,7 @@ dialog_select (dbbrowser_t *dbbrowser,
/* show the author & the copyright */
label = gtk_label_new("Author :");
label = gtk_label_new( _("Author :"));
gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
gtk_table_attach (GTK_TABLE (dbbrowser->descr_table), label,
0, 1, row, row+1,
@ -507,7 +509,7 @@ dialog_select (dbbrowser_t *dbbrowser,
gtk_widget_show(label);
row++;
label = gtk_label_new("Date :");
label = gtk_label_new( _("Date :"));
gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
gtk_table_attach (GTK_TABLE (dbbrowser->descr_table), label,
0, 1, row, row+1,
@ -522,7 +524,7 @@ dialog_select (dbbrowser_t *dbbrowser,
gtk_widget_show(label);
row++;
label = gtk_label_new("Copyright :");
label = gtk_label_new( _("Copyright :"));
gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
gtk_table_attach (GTK_TABLE (dbbrowser->descr_table), label,
0, 1, row, row+1,
@ -661,7 +663,7 @@ dialog_search_callback (GtkWidget *widget,
if ( widget == (dbbrowser->name_button) )
{
gtk_window_set_title (GTK_WINDOW (dbbrowser->dlg),
"Animated Filter apply (by name - please wait)");
_("Animated Filter apply (by name - please wait)"));
query = g_string_new ("");
query_text = gtk_entry_get_text(GTK_ENTRY(dbbrowser->search_entry));
@ -685,7 +687,7 @@ dialog_search_callback (GtkWidget *widget,
else if ( widget == (dbbrowser->blurb_button) )
{
gtk_window_set_title (GTK_WINDOW (dbbrowser->dlg),
"Animated Filter apply (by blurb - please wait)");
_("Animated Filter apply (by blurb - please wait)"));
gimp_query_database (".*",
gtk_entry_get_text( GTK_ENTRY(dbbrowser->search_entry) ),
".*", ".*", ".*", ".*", ".*",
@ -693,7 +695,7 @@ dialog_search_callback (GtkWidget *widget,
}
else {
gtk_window_set_title (GTK_WINDOW (dbbrowser->dlg),
"Animated Filter apply (please wait)");
_("Animated Filter apply (please wait)"));
gimp_query_database (".*", ".*", ".*", ".*", ".*", ".*", ".*",
&num_procs, &proc_list);
}
@ -740,7 +742,7 @@ dialog_search_callback (GtkWidget *widget,
g_free( proc_list );
gtk_window_set_title (GTK_WINDOW (dbbrowser->dlg),
"Animated Filter apply");
_("Animated Filter apply"));
gtk_clist_thaw(GTK_CLIST(dbbrowser->clist));

View File

@ -48,6 +48,8 @@
/* GIMP includes */
#include "gtk/gtk.h"
#include "config.h"
#include "libgimp/stdplugins-intl.h"
#include "libgimp/gimp.h"
/* GAP includes */
@ -114,15 +116,15 @@ static gint p_pitstop(GRunModeType run_mode, char *plugin_name, gint text_flag,
p_init_arr_arg(&l_argv[0], WGT_FILESEL);
l_argv[0].label_txt ="backup to file";
l_argv[0].label_txt = _("backup to file");
l_argv[0].entry_width = 140; /* pixel */
l_argv[0].help_txt = "Make backup of the image after each step";
l_argv[0].help_txt = _("Make backup of the image after each step");
l_argv[0].text_buf_len = len_step_backup_file;
l_argv[0].text_buf_ret = step_backup_file;
l_but_argv[0].but_txt = "Continue";
l_but_argv[0].but_txt = _("Continue");
l_but_argv[0].but_val = 0;
l_but_argv[1].but_txt = "Cancel";
l_but_argv[1].but_txt = _("Cancel");
l_but_argv[1].but_val = -1;
sprintf(l_skip_txt, "Skip %d", (int)layer_idx);
l_but_argv[2].but_txt = l_skip_txt;
@ -143,15 +145,15 @@ static gint p_pitstop(GRunModeType run_mode, char *plugin_name, gint text_flag,
}
if(text_flag == 0)
{
sprintf(l_msg, "2.nd call of %s\n(define end-settings)", plugin_name);
sprintf(l_msg, _("2.nd call of %s\n(define end-settings)"), plugin_name);
}
else
{
sprintf(l_msg, "Non-Interactive call of %s\n(for all layers inbetween)", plugin_name);
sprintf(l_msg, _("Non-Interactive call of %s\n(for all layers inbetween)"), plugin_name);
l_but_argc = 3;
l_argc = 1;
}
l_continue = p_array_std_dialog ("Animated Filter apply", l_msg,
l_continue = p_array_std_dialog (_("Animated Filter apply"), l_msg,
l_argc, l_argv,
l_but_argc, l_but_argv, 0);
if(l_continue < 0) return -1;
@ -181,7 +183,7 @@ static void p_visibilty_restore(gint32 image_id, gint nlayers, int *visible_tab,
}
else
{
printf("Error: Plugin %s has changed Nr. of layers from %d to %d\ncould not restore Layer visibilty.\n",
printf( _("Error: Plugin %s has changed Nr. of layers from %d to %d\ncould not restore Layer visibilty.\n"),
plugin_name, (int)nlayers, (int)l_nlayers2);
}
@ -197,12 +199,12 @@ static gint32 p_get_indexed_layerid(gint32 image_id, gint *nlayers, gint32 idx,
l_layers_list = gimp_image_get_layers(image_id, &l_nlayers2);
if(l_layers_list == NULL)
{
printf("Warning: cant get layers (maybe the image was closed)\n");
printf( _("Warning: cant get layers (maybe the image was closed)\n"));
return -1;
}
if((l_nlayers2 != *nlayers) && (*nlayers > 0))
{
printf("Error: Plugin %s has changed Nr. of layers from %d to %d\nAnim Filter apply stopped.\n",
printf( _("Error: Plugin %s has changed Nr. of layers from %d to %d\nAnim Filter apply stopped.\n"),
plugin_name, (int)*nlayers, (int)l_nlayers2);
return -1;
}
@ -253,7 +255,7 @@ int p_foreach_multilayer(GRunModeType run_mode, gint32 image_id,
l_rc = p_procedure_available(plugin_name, PTYP_CAN_OPERATE_ON_DRAWABLE);
if(l_rc < 0)
{
fprintf(stderr, "ERROR: Plugin not available or wrong type %s\n", plugin_name);
fprintf(stderr, _("ERROR: Plugin not available or wrong type %s\n"), plugin_name);
return -1;
}
@ -264,7 +266,7 @@ int p_foreach_multilayer(GRunModeType run_mode, gint32 image_id,
l_percentage = 0.0;
if(run_mode == RUN_INTERACTIVE)
{
gimp_progress_init("Applying Filter to all Layers ..");
gimp_progress_init( _("Applying Filter to all Layers .."));
}
l_layer_id = p_get_indexed_layerid(image_id, &l_nlayers, 0, plugin_name);
@ -272,7 +274,7 @@ int p_foreach_multilayer(GRunModeType run_mode, gint32 image_id,
{
if(l_nlayers < 1)
{
fprintf(stderr, "ERROR: need at 1 Layers to apply plugin !\n");
fprintf(stderr, _("ERROR: need at 1 Layers to apply plugin !\n"));
}
else
{
@ -302,7 +304,7 @@ int p_foreach_multilayer(GRunModeType run_mode, gint32 image_id,
l_child_pid = 0; /* fork(); */
if(l_child_pid < 0)
{
fprintf(stderr, "ERROR: fork failed !\n");
fprintf(stderr, _("ERROR: fork failed !\n"));
return -1;
}
@ -490,7 +492,7 @@ int p_foreach_multilayer(GRunModeType run_mode, gint32 image_id,
/* check if to save each step to backup file */
if((l_step_backup_file[0] != '\0') && (l_step_backup_file[0] != ' '))
{
printf("Saving image to backupfile:%s step = %d\n",
printf( _("Saving image to backupfile:%s step = %d\n"),
l_step_backup_file, (int)l_idx);
p_save_xcf(image_id, l_step_backup_file);
}
@ -538,9 +540,9 @@ gint gap_proc_anim_apply(GRunModeType run_mode, gint32 image_id, char *plugin_na
if(run_mode == RUN_INTERACTIVE)
{
if(gap_db_browser_dialog("Select Filter for Animated apply",
"Apply Constant",
"Apply Varying",
if(gap_db_browser_dialog( _("Select Filter for Animated apply"),
_("Apply Constant"),
_("Apply Varying"),
p_constraint_proc,
p_constraint_proc_sel1,
p_constraint_proc_sel2,

View File

@ -39,6 +39,8 @@
/* GIMP includes */
#include "gtk/gtk.h"
#include "config.h"
#include "libgimp/stdplugins-intl.h"
#include "libgimp/gimp.h"
/* GAP includes */
@ -92,13 +94,15 @@ query ()
static GParamDef *return_vals = NULL;
static int nreturn_vals = 0;
INIT_I18N();
gimp_install_procedure("plug_in_gap_layers_run_animfilter",
"This plugin calls another plugin for each layer of an image, varying its settings (to produce animated effects). The called plugin must work on a single drawable and must be able to RUN_WITH_LAST_VALS",
_("This plugin calls another plugin for each layer of an image, varying its settings (to produce animated effects). The called plugin must work on a single drawable and must be able to RUN_WITH_LAST_VALS"),
"",
"Wolfgang Hofer (hof@hotbot.com)",
"Wolfgang Hofer",
gap_filter_version,
"<Image>/Filters/Animation/Filter all Layers",
_("<Image>/Filters/Animation/Filter all Layers"),
"RGB*, INDEXED*, GRAY*",
PROC_PLUG_IN,
nargs_foreach, nreturn_vals,
@ -162,11 +166,14 @@ run (char *name,
strncpy(l_plugin_name, param[3].data.d_string, MAX_PLUGIN_NAME_LEN -1);
l_plugin_name[MAX_PLUGIN_NAME_LEN -1] = '\0';
}
INIT_I18N();
}
else if(run_mode == RUN_WITH_LAST_VALS)
{
/* probably get last values (name of last plugin) */
gimp_get_data("plug_in_gap_layers_run_animfilter", l_plugin_name);
} else {
INIT_I18N_UI();
}
if (status == STATUS_SUCCESS)

View File

@ -66,6 +66,8 @@
/* GIMP includes */
#include "gtk/gtk.h"
#include "config.h"
#include "libgimp/stdplugins-intl.h"
#include "libgimp/gimp.h"
/* GAP includes */
@ -837,8 +839,8 @@ char * p_gzip (char *orig_name, char *new_name, char *zip)
*/
int p_decide_save_as(gint32 image_id, char *sav_name)
{
static char *l_msg =
"You are using a fileformat != xcf\nSave Operations may result\nin loss of layerinformation";
static char *l_msg;
static char l_save_as_name[80];
@ -847,6 +849,7 @@ int p_decide_save_as(gint32 image_id, char *sav_name)
int l_save_as_mode;
GRunModeType l_run_mode;
l_msg = _("You are using a fileformat != xcf\nSave Operations may result\nin loss of layerinformation");
/* check if there are SAVE_AS_MODE settings (from privious calls within one gimp session) */
l_save_as_mode = -1;
/* sprintf(l_save_as_name, "plug_in_gap_plugins_SAVE_AS_MODE_%d", (int)image_id);*/
@ -858,15 +861,15 @@ int p_decide_save_as(gint32 image_id, char *sav_name)
/* no defined value found (this is the 1.st call for this image_id)
* ask what to do with a 3 Button dialog
*/
l_argv[0].but_txt = "CANCEL";
l_argv[0].but_txt = _("CANCEL");
l_argv[0].but_val = -1;
l_argv[1].but_txt = "SAVE Flattened";
l_argv[1].but_txt = _("SAVE Flattened");
l_argv[1].but_val = 1;
l_argv[2].but_txt = "SAVE As Is";
l_argv[2].but_txt = _("SAVE As Is");
l_argv[2].but_val = 0;
l_argc = 3;
l_save_as_mode = p_buttons_dialog ("GAP Question", l_msg, l_argc, l_argv, -1);
l_save_as_mode = p_buttons_dialog (_("GAP Question"), l_msg, l_argc, l_argv, -1);
if(gap_debug) fprintf(stderr, "DEBUG: decide SAVE_AS_MODE %d\n", (int)l_save_as_mode);
@ -1433,7 +1436,7 @@ int p_dup(t_anim_info *ainfo_ptr, long cnt, long range_from, long range_to)
l_percentage = 0.0;
if(ainfo_ptr->run_mode == RUN_INTERACTIVE)
{
gimp_progress_init("Duplicating frames ..");
gimp_progress_init( _("Duplicating frames .."));
}
/* rename (renumber) all frames with number greater than current
@ -1601,7 +1604,7 @@ p_shift(t_anim_info *ainfo_ptr, long cnt, long range_from, long range_to)
l_percentage = 0.0;
if(ainfo_ptr->run_mode == RUN_INTERACTIVE)
{
gimp_progress_init("Renumber Framesequence ..");
gimp_progress_init( _("Renumber Framesequence .."));
}
/* rename (renumber) all frames (using high numbers)
@ -1785,14 +1788,14 @@ int gap_goto(GRunModeType run_mode, gint32 image_id, int nr)
if(run_mode == RUN_INTERACTIVE)
{
sprintf(l_title, "Goto Frame (%ld/%ld)"
sprintf(l_title, _("Goto Frame (%ld/%ld)")
, ainfo_ptr->curr_frame_nr
, ainfo_ptr->frame_cnt);
sprintf(l_hline, "Destination Frame Number (%ld - %ld)"
sprintf(l_hline, _("Destination Frame Number (%ld - %ld)")
, ainfo_ptr->first_frame_nr
, ainfo_ptr->last_frame_nr);
l_dest = p_slider_dialog(l_title, l_hline, "Number :", NULL
l_dest = p_slider_dialog(l_title, l_hline, _("Number :"), NULL
, ainfo_ptr->first_frame_nr
, ainfo_ptr->last_frame_nr
, ainfo_ptr->curr_frame_nr
@ -1850,10 +1853,10 @@ int gap_del(GRunModeType run_mode, gint32 image_id, int nr)
if(run_mode == RUN_INTERACTIVE)
{
sprintf(l_title, "Delete Frames (%ld/%ld)"
sprintf(l_title, _("Delete Frames (%ld/%ld)")
, ainfo_ptr->curr_frame_nr
, ainfo_ptr->frame_cnt);
sprintf(l_hline, "Delete Frames from %ld to (Number)"
sprintf(l_hline, _("Delete Frames from %ld to (Number)")
, ainfo_ptr->curr_frame_nr);
l_max = ainfo_ptr->last_frame_nr;
@ -1866,7 +1869,7 @@ int gap_del(GRunModeType run_mode, gint32 image_id, int nr)
l_max++;
}
l_cnt = p_slider_dialog(l_title, l_hline, "Number :", NULL
l_cnt = p_slider_dialog(l_title, l_hline, _("Number :"), NULL
, ainfo_ptr->curr_frame_nr
, l_max
, ainfo_ptr->curr_frame_nr
@ -1913,35 +1916,35 @@ int p_dup_dialog(t_anim_info *ainfo_ptr, long *range_from, long *range_to)
static t_arr_arg argv[3];
char l_title[50];
sprintf(l_title, "Duplicate Frames (%ld/%ld)"
sprintf(l_title, _("Duplicate Frames (%ld/%ld)")
, ainfo_ptr->curr_frame_nr
, ainfo_ptr->frame_cnt);
p_init_arr_arg(&argv[0], WGT_INT_PAIR);
argv[0].label_txt = "From :";
argv[0].label_txt = _("From :");
argv[0].constraint = TRUE;
argv[0].int_min = (gint)ainfo_ptr->first_frame_nr;
argv[0].int_max = (gint)ainfo_ptr->last_frame_nr;
argv[0].int_ret = (gint)ainfo_ptr->curr_frame_nr;
argv[0].help_txt = "Source Range starts at this framenumber";
argv[0].help_txt = _("Source Range starts at this framenumber");
p_init_arr_arg(&argv[1], WGT_INT_PAIR);
argv[1].label_txt = "To :";
argv[1].label_txt = _("To :");
argv[1].constraint = TRUE;
argv[1].int_min = (gint)ainfo_ptr->first_frame_nr;
argv[1].int_max = (gint)ainfo_ptr->last_frame_nr;
argv[1].int_ret = (gint)ainfo_ptr->curr_frame_nr;
argv[1].help_txt = "Source Range ends at this framenumber";
argv[1].help_txt = _("Source Range ends at this framenumber");
p_init_arr_arg(&argv[2], WGT_INT_PAIR);
argv[2].label_txt = "N-Times :";
argv[2].label_txt = _("N-Times :");
argv[2].constraint = FALSE;
argv[2].int_min = 0;
argv[2].int_max = 99;
argv[2].int_ret = 1;
argv[2].help_txt = "Copy selected Range n-times \n(you may type in Values > 99)";
argv[2].help_txt = _("Copy selected Range n-times \n(you may type in Values > 99)");
if(TRUE == p_array_dialog(l_title, "Duplicate Framerange", 3, argv))
if(TRUE == p_array_dialog(l_title, _("Duplicate Framerange"), 3, argv))
{ *range_from = (long)(argv[0].int_ret);
*range_to = (long)(argv[1].int_ret);
return (int)(argv[2].int_ret);
@ -2042,11 +2045,11 @@ int gap_exchg(GRunModeType run_mode, gint32 image_id, int nr)
{
l_initial = ainfo_ptr->last_frame_nr;
}
sprintf(l_title, "Exchange current Frame (%ld)"
sprintf(l_title, _("Exchange current Frame (%ld)")
, ainfo_ptr->curr_frame_nr);
sprintf(l_hline, "With Frame (Number)");
sprintf(l_hline, _("With Frame (Number)"));
l_dest = p_slider_dialog(l_title, l_hline, "Number :", NULL
l_dest = p_slider_dialog(l_title, l_hline, _("Number :"), NULL
, ainfo_ptr->first_frame_nr
, ainfo_ptr->last_frame_nr
, l_initial
@ -2086,35 +2089,35 @@ int p_shift_dialog(t_anim_info *ainfo_ptr, long *range_from, long *range_to)
static t_arr_arg argv[3];
char l_title[50];
sprintf(l_title, "Framesequence Shift (%ld/%ld)"
sprintf(l_title, _("Framesequence Shift (%ld/%ld)")
, ainfo_ptr->curr_frame_nr
, ainfo_ptr->frame_cnt);
p_init_arr_arg(&argv[0], WGT_INT_PAIR);
argv[0].label_txt = "From :";
argv[0].label_txt = _("From :");
argv[0].constraint = TRUE;
argv[0].int_min = (gint)ainfo_ptr->first_frame_nr;
argv[0].int_max = (gint)ainfo_ptr->last_frame_nr;
argv[0].int_ret = (gint)ainfo_ptr->curr_frame_nr;
argv[0].help_txt = "Affected Range starts at this framenumber";
argv[0].help_txt = _("Affected Range starts at this framenumber");
p_init_arr_arg(&argv[1], WGT_INT_PAIR);
argv[1].label_txt = "To :";
argv[1].label_txt = _("To :");
argv[1].constraint = TRUE;
argv[1].int_min = (gint)ainfo_ptr->first_frame_nr;
argv[1].int_max = (gint)ainfo_ptr->last_frame_nr;
argv[1].int_ret = (gint)ainfo_ptr->last_frame_nr;
argv[1].help_txt = "Affected Range ends at this framenumber";
argv[1].help_txt = _("Affected Range ends at this framenumber");
p_init_arr_arg(&argv[2], WGT_INT_PAIR);
argv[2].label_txt = "N-Shift :";
argv[2].label_txt = _("N-Shift :");
argv[2].constraint = FALSE;
argv[2].int_min = -1 * (gint)ainfo_ptr->last_frame_nr;
argv[2].int_max = (gint)ainfo_ptr->last_frame_nr;
argv[2].int_ret = 1;
argv[2].help_txt = "Renumber the affected framesequence \n(numbers are shifted in circle by N)";
argv[2].help_txt = _("Renumber the affected framesequence \n(numbers are shifted in circle by N)");
if(TRUE == p_array_dialog(l_title, "Framesequence shift", 3, argv))
if(TRUE == p_array_dialog(l_title, _("Framesequence shift"), 3, argv))
{ *range_from = (long)(argv[0].int_ret);
*range_to = (long)(argv[1].int_ret);
return (int)(argv[2].int_ret);

View File

@ -71,6 +71,8 @@ static char *gap_main_version = "1.1.8a; 1999/08/31";
/* GIMP includes */
#include "gtk/gtk.h"
#include "config.h"
#include "libgimp/stdplugins-intl.h"
#include "libgimp/gimp.h"
/* GAP includes */
@ -315,217 +317,219 @@ query ()
};
static int nargs_modify = sizeof(args_modify) / sizeof(args_modify[0]);
INIT_I18N();
gimp_install_procedure("plug_in_gap_next",
"This plugin exchanges current image with (next nubered) image from disk.",
_("This plugin exchanges current image with (next nubered) image from disk."),
"",
"Wolfgang Hofer (hof@hotbot.com)",
"Wolfgang Hofer",
gap_main_version,
"<Image>/AnimFrames/Goto Next",
_("<Image>/AnimFrames/Goto Next"),
"RGB*, INDEXED*, GRAY*",
PROC_PLUG_IN,
nargs_std, nreturn_vals,
args_std, return_vals);
gimp_install_procedure("plug_in_gap_prev",
"This plugin exchanges current image with (previous nubered) image from disk.",
_("This plugin exchanges current image with (previous nubered) image from disk."),
"",
"Wolfgang Hofer (hof@hotbot.com)",
"Wolfgang Hofer",
gap_main_version,
"<Image>/AnimFrames/Goto Prev",
_("<Image>/AnimFrames/Goto Prev"),
"RGB*, INDEXED*, GRAY*",
PROC_PLUG_IN,
nargs_std, nreturn_vals,
args_std, return_vals);
gimp_install_procedure("plug_in_gap_first",
"This plugin exchanges current image with (lowest nubered) image from disk.",
_("This plugin exchanges current image with (lowest nubered) image from disk."),
"",
"Wolfgang Hofer (hof@hotbot.com)",
"Wolfgang Hofer",
gap_main_version,
"<Image>/AnimFrames/Goto First",
_("<Image>/AnimFrames/Goto First"),
"RGB*, INDEXED*, GRAY*",
PROC_PLUG_IN,
nargs_std, nreturn_vals,
args_std, return_vals);
gimp_install_procedure("plug_in_gap_last",
"This plugin exchanges current image with (highest nubered) image from disk.",
_("This plugin exchanges current image with (highest nubered) image from disk."),
"",
"Wolfgang Hofer (hof@hotbot.com)",
"Wolfgang Hofer",
gap_main_version,
"<Image>/AnimFrames/Goto Last",
_("<Image>/AnimFrames/Goto Last"),
"RGB*, INDEXED*, GRAY*",
PROC_PLUG_IN,
nargs_std, nreturn_vals,
args_std, return_vals);
gimp_install_procedure("plug_in_gap_goto",
"This plugin exchanges current image with requested image (nr) from disk.",
_("This plugin exchanges current image with requested image (nr) from disk."),
"",
"Wolfgang Hofer (hof@hotbot.com)",
"Wolfgang Hofer",
gap_main_version,
"<Image>/AnimFrames/Goto Any",
_("<Image>/AnimFrames/Goto Any"),
"RGB*, INDEXED*, GRAY*",
PROC_PLUG_IN,
nargs_goto, nreturn_vals,
args_goto, return_vals);
gimp_install_procedure("plug_in_gap_del",
"This plugin deletes the given number of frames from disk including the current frame.",
_("This plugin deletes the given number of frames from disk including the current frame."),
"",
"Wolfgang Hofer (hof@hotbot.com)",
"Wolfgang Hofer",
gap_main_version,
"<Image>/AnimFrames/Delete Frames",
_("<Image>/AnimFrames/Delete Frames"),
"RGB*, INDEXED*, GRAY*",
PROC_PLUG_IN,
nargs_del, nreturn_vals,
args_del, return_vals);
gimp_install_procedure("plug_in_gap_dup",
"This plugin duplicates the current frames on disk n-times.",
_("This plugin duplicates the current frames on disk n-times."),
"",
"Wolfgang Hofer (hof@hotbot.com)",
"Wolfgang Hofer",
gap_main_version,
"<Image>/AnimFrames/Duplicate Frames",
_("<Image>/AnimFrames/Duplicate Frames"),
"RGB*, INDEXED*, GRAY*",
PROC_PLUG_IN,
nargs_dup, nreturn_vals,
args_dup, return_vals);
gimp_install_procedure("plug_in_gap_exchg",
"This plugin exchanges content of the current with destination frame.",
_("This plugin exchanges content of the current with destination frame."),
"",
"Wolfgang Hofer (hof@hotbot.com)",
"Wolfgang Hofer",
gap_main_version,
"<Image>/AnimFrames/Exchange Frame",
_("<Image>/AnimFrames/Exchange Frame"),
"RGB*, INDEXED*, GRAY*",
PROC_PLUG_IN,
nargs_exchg, nreturn_vals,
args_exchg, return_vals);
gimp_install_procedure("plug_in_gap_move",
"This plugin copies layer(s) from one sourceimage to multiple frames on disk, varying position, size and opacity.",
_("This plugin copies layer(s) from one sourceimage to multiple frames on disk, varying position, size and opacity."),
"",
"Wolfgang Hofer (hof@hotbot.com)",
"Wolfgang Hofer",
gap_main_version,
"<Image>/AnimFrames/Move Path",
_("<Image>/AnimFrames/Move Path"),
"RGB*, INDEXED*, GRAY*",
PROC_PLUG_IN,
nargs_mov, nreturn_vals,
args_mov, return_vals);
gimp_install_procedure("plug_in_gap_range_to_multilayer",
"This plugin creates a new image from the given range of frame-images. Each frame is converted to one layer in the new image, according to flatten_mode. (the frames on disk are not changed).",
_("This plugin creates a new image from the given range of frame-images. Each frame is converted to one layer in the new image, according to flatten_mode. (the frames on disk are not changed)."),
"",
"Wolfgang Hofer (hof@hotbot.com)",
"Wolfgang Hofer",
gap_main_version,
"<Image>/AnimFrames/Frames to Image",
_("<Image>/AnimFrames/Frames to Image"),
"RGB*, INDEXED*, GRAY*",
PROC_PLUG_IN,
nargs_f2multi, nreturn_f2multi,
args_f2multi, return_f2multi);
gimp_install_procedure("plug_in_gap_range_flatten",
"This plugin flattens the given range of frame-images (on disk)",
_("This plugin flattens the given range of frame-images (on disk)"),
"",
"Wolfgang Hofer (hof@hotbot.com)",
"Wolfgang Hofer",
gap_main_version,
"<Image>/AnimFrames/Frames Flatten",
_("<Image>/AnimFrames/Frames Flatten"),
"RGB*, INDEXED*, GRAY*",
PROC_PLUG_IN,
nargs_rflatt, nreturn_vals,
args_rflatt, return_vals);
gimp_install_procedure("plug_in_gap_range_layer_del",
"This plugin deletes one layer in the given range of frame-images (on disk). exception: the last remaining layer of a frame is not deleted",
_("This plugin deletes one layer in the given range of frame-images (on disk). exception: the last remaining layer of a frame is not deleted"),
"",
"Wolfgang Hofer (hof@hotbot.com)",
"Wolfgang Hofer",
gap_main_version,
"<Image>/AnimFrames/Frames LayerDel",
_("<Image>/AnimFrames/Frames LayerDel"),
"RGB*, INDEXED*, GRAY*",
PROC_PLUG_IN,
nargs_rlayerdel, nreturn_vals,
args_rlayerdel, return_vals);
gimp_install_procedure("plug_in_gap_range_convert",
"This plugin converts the given range of frame-images to other fileformats (on disk) depending on extension",
_("This plugin converts the given range of frame-images to other fileformats (on disk) depending on extension"),
"",
"Wolfgang Hofer (hof@hotbot.com)",
"Wolfgang Hofer",
gap_main_version,
"<Image>/AnimFrames/Frames Convert",
_("<Image>/AnimFrames/Frames Convert"),
"RGB*, INDEXED*, GRAY*",
PROC_PLUG_IN,
nargs_rconv, nreturn_vals,
args_rconv, return_vals);
gimp_install_procedure("plug_in_gap_anim_resize",
"This plugin resizes all anim_frames (images on disk) to the given new_width/new_height",
_("This plugin resizes all anim_frames (images on disk) to the given new_width/new_height"),
"",
"Wolfgang Hofer (hof@hotbot.com)",
"Wolfgang Hofer",
gap_main_version,
"<Image>/AnimFrames/Frames Resize",
_("<Image>/AnimFrames/Frames Resize"),
"RGB*, INDEXED*, GRAY*",
PROC_PLUG_IN,
nargs_resize, nreturn_vals,
args_resize, return_vals);
gimp_install_procedure("plug_in_gap_anim_crop",
"This plugin crops all anim_frames (images on disk) to the given new_width/new_height",
_("This plugin crops all anim_frames (images on disk) to the given new_width/new_height"),
"",
"Wolfgang Hofer (hof@hotbot.com)",
"Wolfgang Hofer",
gap_main_version,
"<Image>/AnimFrames/Frames Crop",
_("<Image>/AnimFrames/Frames Crop"),
"RGB*, INDEXED*, GRAY*",
PROC_PLUG_IN,
nargs_resize, nreturn_vals,
args_resize, return_vals);
gimp_install_procedure("plug_in_gap_anim_scale",
"This plugin scales all anim_frames (images on disk) to the given new_width/new_height",
_("This plugin scales all anim_frames (images on disk) to the given new_width/new_height"),
"",
"Wolfgang Hofer (hof@hotbot.com)",
"Wolfgang Hofer",
gap_main_version,
"<Image>/AnimFrames/Frames Scale",
_("<Image>/AnimFrames/Frames Scale"),
"RGB*, INDEXED*, GRAY*",
PROC_PLUG_IN,
nargs_scale, nreturn_vals,
args_scale, return_vals);
gimp_install_procedure("plug_in_gap_split",
"This plugin splits the current image to anim frames (images on disk). Each layer is saved as one frame",
_("This plugin splits the current image to anim frames (images on disk). Each layer is saved as one frame"),
"",
"Wolfgang Hofer (hof@hotbot.com)",
"Wolfgang Hofer",
gap_main_version,
"<Image>/AnimFrames/Split Img to Frames",
_("<Image>/AnimFrames/Split Img to Frames"),
"RGB*, INDEXED*, GRAY*",
PROC_PLUG_IN,
nargs_split, nreturn_split,
args_split, return_split);
gimp_install_procedure("plug_in_gap_mpeg_encode",
"This plugin calls mpeg_encode to convert anim frames to MPEG1, or just generates a param file for mpeg_encode. (mpeg_encode must be installed on your system)",
_("This plugin calls mpeg_encode to convert anim frames to MPEG1, or just generates a param file for mpeg_encode. (mpeg_encode must be installed on your system)"),
"",
"Wolfgang Hofer (hof@hotbot.com)",
"Wolfgang Hofer",
gap_main_version,
"<Image>/AnimFrames/Frames MPEG1 encode",
_("<Image>/AnimFrames/Frames MPEG1 encode"),
"RGB*, INDEXED*, GRAY*",
PROC_PLUG_IN,
nargs_mpege, nreturn_vals,
@ -533,12 +537,12 @@ query ()
gimp_install_procedure("plug_in_gap_mpeg2encode",
"This plugin calls mpeg2encode to convert anim frames to MPEG1 or MPEG2, or just generates a param file for mpeg2encode. (mpeg2encode must be installed on your system)",
_("This plugin calls mpeg2encode to convert anim frames to MPEG1 or MPEG2, or just generates a param file for mpeg2encode. (mpeg2encode must be installed on your system)"),
"",
"Wolfgang Hofer (hof@hotbot.com)",
"Wolfgang Hofer",
gap_main_version,
"<Image>/AnimFrames/Frames MPEG2 encode",
_("<Image>/AnimFrames/Frames MPEG2 encode"),
"RGB*, INDEXED*, GRAY*",
PROC_PLUG_IN,
nargs_mpege, nreturn_vals,
@ -546,24 +550,24 @@ query ()
gimp_install_procedure("plug_in_gap_shift",
"This plugin exchanges frame numbers in the given range. (discfile frame_0001.xcf is renamed to frame_0002.xcf, 2->3, 3->4 ... n->1)",
_("This plugin exchanges frame numbers in the given range. (discfile frame_0001.xcf is renamed to frame_0002.xcf, 2->3, 3->4 ... n->1)"),
"",
"Wolfgang Hofer (hof@hotbot.com)",
"Wolfgang Hofer",
gap_main_version,
"<Image>/AnimFrames/Framesequence Shift",
_("<Image>/AnimFrames/Framesequence Shift"),
"RGB*, INDEXED*, GRAY*",
PROC_PLUG_IN,
nargs_shift, nreturn_vals,
args_shift, return_vals);
gimp_install_procedure("plug_in_gap_modify",
"This plugin performs a modifying action on each selected layer in each selected framerange",
_("This plugin performs a modifying action on each selected layer in each selected framerange"),
"",
"Wolfgang Hofer (hof@hotbot.com)",
"Wolfgang Hofer",
gap_main_version,
"<Image>/AnimFrames/Frames Modify",
_("<Image>/AnimFrames/Frames Modify"),
"RGB*, INDEXED*, GRAY*",
PROC_PLUG_IN,
nargs_modify, nreturn_vals,
@ -657,6 +661,11 @@ run (char *name,
l_lock.image_id = image_id;
gimp_set_data (l_lockname, &l_lock, sizeof(l_lock));
if (run_mode == RUN_NONINTERACTIVE) {
INIT_I18N();
} else {
INIT_I18N_UI();
}
if (strcmp (name, "plug_in_gap_next") == 0)
{

View File

@ -42,6 +42,8 @@
/* GIMP includes */
#include "gtk/gtk.h"
#include "config.h"
#include "libgimp/stdplugins-intl.h"
#include "libgimp/gimp.h"
/* GAP includes */
@ -79,37 +81,37 @@ int p_layer_modify_dialog(t_anim_info *ainfo_ptr,
static char l_buf[MAX_LAYERNAME];
/* Layer select modes */
static char *sel_args[7] = {"Pattern is equal to LayerName",
"Pattern is Start of LayerName",
"Pattern is End of Layername",
"Pattern is a Part of LayerName",
"Pattern is LayerstackNumber List",
"Pattern is REVERSE-stack List",
"All Visible (ignore Pattern)"
static char *sel_args[7] = { N_("Pattern is equal to LayerName"),
N_("Pattern is Start of LayerName"),
N_("Pattern is End of Layername"),
N_("Pattern is a Part of LayerName"),
N_("Pattern is LayerstackNumber List"),
N_("Pattern is REVERSE-stack List"),
N_("All Visible (ignore Pattern)")
};
static char *sel_help[7] = {"select all Layers where Layername is equal to Pattern",
"select all Layers where Layername starts with Pattern",
"select all Layers where Layername ends up with Pattern",
"select all Layers where Layername contains Pattern",
"select Layerstack positions.\n0, 4-5, 8\nwhere 0 == Top-layer",
"select Layerstack positions.\n0, 4-5, 8\nwhere 0 == BG-layer",
"select all visible Layers"
static char *sel_help[7] = { N_("select all Layers where Layername is equal to Pattern"),
N_("select all Layers where Layername starts with Pattern"),
N_("select all Layers where Layername ends up with Pattern"),
N_("select all Layers where Layername contains Pattern"),
N_("select Layerstack positions.\n0, 4-5, 8\nwhere 0 == Top-layer"),
N_("select Layerstack positions.\n0, 4-5, 8\nwhere 0 == BG-layer"),
N_("select all visible Layers")
};
/* action items what to do with the selected layer(s) */
static char *action_args[13] = {"set Layer(s) visible",
"set Layer(s) invisible",
"set Layer(s) linked",
"set Layer(s) unlinked",
"raise Layer(s)",
"lower Layer(s)",
"merge Layer(s) expand as necessary",
"merge Layer(s) clipped to image",
"merge Layer(s) clipped to bg-layer",
"apply filter on Layer(s)",
"duplicate Layer(s)",
"delete Layer(s)",
"rename Layer(s)"
static char *action_args[13] = { N_("set Layer(s) visible"),
N_("set Layer(s) invisible"),
N_("set Layer(s) linked"),
N_("set Layer(s) unlinked"),
N_("raise Layer(s)"),
N_("lower Layer(s)"),
N_("merge Layer(s) expand as necessary"),
N_("merge Layer(s) clipped to image"),
N_("merge Layer(s) clipped to bg-layer"),
N_("apply filter on Layer(s)"),
N_("duplicate Layer(s)"),
N_("delete Layer(s)"),
N_("rename Layer(s)")
};
@ -130,14 +132,23 @@ int p_layer_modify_dialog(t_anim_info *ainfo_ptr,
};
*/
int get_textize_loop;
for (get_textize_loop = 0; get_textize_loop < 7; get_textize_loop++) {
sel_args[get_textize_loop] = gettext(sel_args[get_textize_loop]);
sel_help[get_textize_loop] = gettext(sel_help[get_textize_loop]);
}
for (get_textize_loop = 0; get_textize_loop < 13; get_textize_loop++)
action_args[get_textize_loop] = gettext(action_args[get_textize_loop]);
l_rc = -1;
sprintf(l_buf, "Perform function on one or more Layer(s)\nin all frames of the selected framerange\n");
sprintf(l_buf, _("Perform function on one or more Layer(s)\nin all frames of the selected framerange\n"));
/* the 3 Action Buttons */
b_argv[0].but_txt = "OK";
b_argv[0].but_txt = _("OK");
b_argv[0].but_val = 0;
b_argv[1].but_txt = "Cancel";
b_argv[1].but_txt = _("Cancel");
b_argv[1].but_val = -1;
p_init_arr_arg(&argv[0], WGT_LABEL);
@ -145,16 +156,16 @@ int p_layer_modify_dialog(t_anim_info *ainfo_ptr,
p_init_arr_arg(&argv[1], WGT_INT_PAIR);
argv[1].constraint = TRUE;
argv[1].label_txt = "From Frame:";
argv[1].help_txt = "first handled frame";
argv[1].label_txt = _("From Frame:");
argv[1].help_txt = _("first handled frame");
argv[1].int_min = (gint)ainfo_ptr->first_frame_nr;
argv[1].int_max = (gint)ainfo_ptr->last_frame_nr;
argv[1].int_ret = (gint)ainfo_ptr->curr_frame_nr;
p_init_arr_arg(&argv[2], WGT_INT_PAIR);
argv[2].constraint = TRUE;
argv[2].label_txt = "To Frame:";
argv[2].help_txt = "last handled frame";
argv[2].label_txt = _("To Frame:");
argv[2].help_txt = _("last handled frame");
argv[2].int_min = (gint)ainfo_ptr->first_frame_nr;
argv[2].int_max = (gint)ainfo_ptr->last_frame_nr;
argv[2].int_ret = (gint)ainfo_ptr->last_frame_nr;
@ -162,7 +173,7 @@ int p_layer_modify_dialog(t_anim_info *ainfo_ptr,
/* Layer select mode RADIO buttons */
p_init_arr_arg(&argv[3], WGT_RADIO);
argv[3].label_txt = "Select Layer(s):";
argv[3].label_txt = _("Select Layer(s):");
argv[3].radio_argc = 7;
argv[3].radio_argv = sel_args;
argv[3].radio_help_argv = sel_help;
@ -171,45 +182,45 @@ int p_layer_modify_dialog(t_anim_info *ainfo_ptr,
/* Layer select pattern string */
sprintf (sel_pattern, "0");
p_init_arr_arg(&argv[4], WGT_TEXT);
argv[4].label_txt ="Select Pattern:";
argv[4].label_txt = _("Select Pattern:");
argv[4].entry_width = 140; /* pixel */
argv[4].help_txt ="String to identify layer names \nor layerstack position numbers\n0,3-5";
argv[4].help_txt = _("String to identify layer names \nor layerstack position numbers\n0,3-5");
argv[4].text_buf_len = MAX_LAYERNAME;
argv[4].text_buf_ret = sel_pattern;
/* case sensitive checkbutton */
p_init_arr_arg(&argv[5], WGT_TOGGLE);
argv[5].label_txt = "Case sensitive";
argv[5].help_txt = "Lowercase and UPPERCASE letters are considered as different";
argv[5].label_txt = _("Case sensitive");
argv[5].help_txt = _("Lowercase and UPPERCASE letters are considered as different");
argv[5].int_ret = 1;
/* invert selection checkbutton */
p_init_arr_arg(&argv[6], WGT_TOGGLE);
argv[6].label_txt = "Invert Selection";
argv[6].help_txt = "Perform actions on all unselected Layers";
argv[6].label_txt = _("Invert Selection");
argv[6].help_txt = _("Perform actions on all unselected Layers");
argv[6].int_ret = 0;
/* desired action to perform OPTIONMENU */
p_init_arr_arg(&argv[7], WGT_OPTIONMENU);
argv[7].label_txt = "Function :";
argv[7].label_txt = _("Function :");
argv[7].radio_argc = 13;
argv[7].radio_argv = action_args;
/* argv[7].radio_help_argv = action_help */
argv[7].help_txt = "Function to be performed on all selected layers";
argv[7].help_txt = _("Function to be performed on all selected layers");
argv[7].radio_ret = 0;
/* a new name for the handled Layer(s) */
*new_layername = '\0';
p_init_arr_arg(&argv[8], WGT_TEXT);
argv[8].label_txt ="New Layername:";
argv[8].label_txt = _("New Layername:");
argv[8].entry_width = 140; /* pixel */
argv[8].help_txt ="New Layername for all handled layers \n[####] is replaced by frame number\n(is used on function rename only)";
argv[8].help_txt = _("New Layername for all handled layers \n[####] is replaced by frame number\n(is used on function rename only)");
argv[8].text_buf_len = MAX_LAYERNAME;
argv[8].text_buf_ret = new_layername;
l_rc = p_array_std_dialog("Frames Modify",
"Settings",
l_rc = p_array_std_dialog( _("Frames Modify"),
_("Settings"),
9, argv, /* widget array */
2, b_argv, /* button array */
0);
@ -249,9 +260,9 @@ p_pitstop_dialog(gint text_flag, char *filter_procname)
l_but_argv[0].but_txt = "Continue";
l_but_argv[0].but_txt = _("Continue");
l_but_argv[0].but_val = 0;
l_but_argv[1].but_txt = "Cancel";
l_but_argv[1].but_txt = _("Cancel");
l_but_argv[1].but_val = -1;
l_but_argc = 2;
@ -268,13 +279,13 @@ p_pitstop_dialog(gint text_flag, char *filter_procname)
}
if(text_flag == 0)
{
sprintf(l_msg, "2.nd call of %s\n(define end-settings)", filter_procname);
sprintf(l_msg, _("2.nd call of %s\n(define end-settings)"), filter_procname);
}
else
{
sprintf(l_msg, "Non-Interactive call of %s\n(for all selected layers)", filter_procname);
sprintf(l_msg, _("Non-Interactive call of %s\n(for all selected layers)"), filter_procname);
}
l_continue = p_array_std_dialog ("Animated Filter apply", l_msg,
l_continue = p_array_std_dialog ( _("Animated Filter apply"), l_msg,
l_argc, l_argv,
l_but_argc, l_but_argv, 0);
@ -649,9 +660,9 @@ p_do_filter_dialogs(t_anim_info *ainfo_ptr,
/* GAP-PDB-Browser Dialog */
/* ---------------------- */
if(gap_db_browser_dialog("Select Filter for Animated frames-apply",
"Apply Constant",
"Apply Varying",
if(gap_db_browser_dialog( _("Select Filter for Animated frames-apply"),
_("Apply Constant"),
_("Apply Varying"),
p_constraint_proc,
p_constraint_proc_sel1,
p_constraint_proc_sel2,
@ -791,7 +802,7 @@ p_do_2nd_filter_dialogs(char *filter_procname,
l_idx = p_get_1st_selected(l_layli_ptr, l_nlayers);
if(l_idx < 0)
{
p_msg_win (RUN_INTERACTIVE, "GAP Modify: No layer selected in last handled frame\n");
p_msg_win (RUN_INTERACTIVE, _("GAP Modify: No layer selected in last handled frame\n"));
goto cleanup;
}
l_layer_id = l_layli_ptr[l_idx].layer_id;
@ -877,7 +888,7 @@ p_frames_modify(t_anim_info *ainfo_ptr,
l_percentage = 0.0;
if(ainfo_ptr->run_mode == RUN_INTERACTIVE)
{
gimp_progress_init("Modifying Frames/Layer(s) ..");
gimp_progress_init( _("Modifying Frames/Layer(s) .."));
}
@ -958,7 +969,7 @@ p_frames_modify(t_anim_info *ainfo_ptr,
if(l_sel_cnt < 1)
{
p_msg_win(RUN_INTERACTIVE, "No selected Layer in start frame\n");
p_msg_win(RUN_INTERACTIVE, _("No selected Layer in start frame\n"));
goto error;
}

View File

@ -54,6 +54,8 @@
/* GIMP includes */
#include "gtk/gtk.h"
#include "config.h"
#include "libgimp/stdplugins-intl.h"
#include "libgimp/gimp.h"
#include "libgimp/gimpui.h"
@ -238,31 +240,31 @@ static void mov_clip_to_img_callback (GtkWidget *, gpointer);
/* the option menu items -- the paint modes */
static MenuItem option_paint_items[] =
{
{ "Normal", 0, 0, mov_paintmode_menu_callback, (gpointer) NORMAL_MODE, NULL, NULL },
{ "Dissolve", 0, 0, mov_paintmode_menu_callback, (gpointer) DISSOLVE_MODE, NULL, NULL },
{ "Multiply", 0, 0, mov_paintmode_menu_callback, (gpointer) MULTIPLY_MODE, NULL, NULL },
{ "Screen", 0, 0, mov_paintmode_menu_callback, (gpointer) SCREEN_MODE, NULL, NULL },
{ "Overlay", 0, 0, mov_paintmode_menu_callback, (gpointer) OVERLAY_MODE, NULL, NULL },
{ "Difference", 0, 0, mov_paintmode_menu_callback, (gpointer) DIFFERENCE_MODE, NULL, NULL },
{ "Addition", 0, 0, mov_paintmode_menu_callback, (gpointer) ADDITION_MODE, NULL, NULL },
{ "Subtract", 0, 0, mov_paintmode_menu_callback, (gpointer) SUBTRACT_MODE, NULL, NULL },
{ "Darken Only", 0, 0, mov_paintmode_menu_callback, (gpointer) DARKEN_ONLY_MODE, NULL, NULL },
{ "Lighten Only", 0, 0, mov_paintmode_menu_callback, (gpointer) LIGHTEN_ONLY_MODE, NULL, NULL },
{ "Hue", 0, 0, mov_paintmode_menu_callback, (gpointer) HUE_MODE, NULL, NULL },
{ "Saturation", 0, 0, mov_paintmode_menu_callback, (gpointer) SATURATION_MODE, NULL, NULL },
{ "Color", 0, 0, mov_paintmode_menu_callback, (gpointer) COLOR_MODE, NULL, NULL },
{ "Value", 0, 0, mov_paintmode_menu_callback, (gpointer) VALUE_MODE, NULL, NULL },
{ N_("Normal"), 0, 0, mov_paintmode_menu_callback, (gpointer) NORMAL_MODE, NULL, NULL },
{ N_("Dissolve"), 0, 0, mov_paintmode_menu_callback, (gpointer) DISSOLVE_MODE, NULL, NULL },
{ N_("Multiply"), 0, 0, mov_paintmode_menu_callback, (gpointer) MULTIPLY_MODE, NULL, NULL },
{ N_("Screen"), 0, 0, mov_paintmode_menu_callback, (gpointer) SCREEN_MODE, NULL, NULL },
{ N_("Overlay"), 0, 0, mov_paintmode_menu_callback, (gpointer) OVERLAY_MODE, NULL, NULL },
{ N_("Difference"), 0, 0, mov_paintmode_menu_callback, (gpointer) DIFFERENCE_MODE, NULL, NULL },
{ N_("Addition"), 0, 0, mov_paintmode_menu_callback, (gpointer) ADDITION_MODE, NULL, NULL },
{ N_("Subtract"), 0, 0, mov_paintmode_menu_callback, (gpointer) SUBTRACT_MODE, NULL, NULL },
{ N_("Darken Only"), 0, 0, mov_paintmode_menu_callback, (gpointer) DARKEN_ONLY_MODE, NULL, NULL },
{ N_("Lighten Only"), 0, 0, mov_paintmode_menu_callback, (gpointer) LIGHTEN_ONLY_MODE, NULL, NULL },
{ N_("Hue"), 0, 0, mov_paintmode_menu_callback, (gpointer) HUE_MODE, NULL, NULL },
{ N_("Saturation"), 0, 0, mov_paintmode_menu_callback, (gpointer) SATURATION_MODE, NULL, NULL },
{ N_("Color"), 0, 0, mov_paintmode_menu_callback, (gpointer) COLOR_MODE, NULL, NULL },
{ N_("Value"), 0, 0, mov_paintmode_menu_callback, (gpointer) VALUE_MODE, NULL, NULL },
{ NULL, 0, 0, NULL, NULL, NULL, NULL }
};
/* the option menu items -- the handle modes */
static MenuItem option_handle_items[] =
{
{ "Left Top", 0, 0, mov_handmode_menu_callback, (gpointer) GAP_HANDLE_LEFT_TOP, NULL, NULL },
{ "Left Bottom", 0, 0, mov_handmode_menu_callback, (gpointer) GAP_HANDLE_LEFT_BOT, NULL, NULL },
{ "Right Top", 0, 0, mov_handmode_menu_callback, (gpointer) GAP_HANDLE_RIGHT_TOP, NULL, NULL },
{ "Right Bottom", 0, 0, mov_handmode_menu_callback, (gpointer) GAP_HANDLE_RIGHT_BOT, NULL, NULL },
{ "Center", 0, 0, mov_handmode_menu_callback, (gpointer) GAP_HANDLE_CENTER, NULL, NULL },
{ N_("Left Top"), 0, 0, mov_handmode_menu_callback, (gpointer) GAP_HANDLE_LEFT_TOP, NULL, NULL },
{ N_("Left Bottom"), 0, 0, mov_handmode_menu_callback, (gpointer) GAP_HANDLE_LEFT_BOT, NULL, NULL },
{ N_("Right Top"), 0, 0, mov_handmode_menu_callback, (gpointer) GAP_HANDLE_RIGHT_TOP, NULL, NULL },
{ N_("Right Bottom"), 0, 0, mov_handmode_menu_callback, (gpointer) GAP_HANDLE_RIGHT_BOT, NULL, NULL },
{ N_("Center"), 0, 0, mov_handmode_menu_callback, (gpointer) GAP_HANDLE_CENTER, NULL, NULL },
{ NULL, 0, 0, NULL, NULL, NULL, NULL }
};
@ -270,12 +272,12 @@ static MenuItem option_handle_items[] =
/* the option menu items -- the loop step modes */
static MenuItem option_step_items[] =
{
{ "Loop", 0, 0, mov_stepmode_menu_callback, (gpointer) GAP_STEP_LOOP, NULL, NULL },
{ "Loop Reverse", 0, 0, mov_stepmode_menu_callback, (gpointer) GAP_STEP_LOOP_REV, NULL, NULL },
{ "Once", 0, 0, mov_stepmode_menu_callback, (gpointer) GAP_STEP_ONCE, NULL, NULL },
{ "OnceReverse", 0, 0, mov_stepmode_menu_callback, (gpointer) GAP_STEP_ONCE_REV, NULL, NULL },
{ "PingPong", 0, 0, mov_stepmode_menu_callback, (gpointer) GAP_STEP_PING_PONG, NULL, NULL },
{ "None", 0, 0, mov_stepmode_menu_callback, (gpointer) GAP_STEP_NONE, NULL, NULL },
{ N_("Loop"), 0, 0, mov_stepmode_menu_callback, (gpointer) GAP_STEP_LOOP, NULL, NULL },
{ N_("Loop Reverse"), 0, 0, mov_stepmode_menu_callback, (gpointer) GAP_STEP_LOOP_REV, NULL, NULL },
{ N_("Once"), 0, 0, mov_stepmode_menu_callback, (gpointer) GAP_STEP_ONCE, NULL, NULL },
{ N_("OnceReverse"), 0, 0, mov_stepmode_menu_callback, (gpointer) GAP_STEP_ONCE_REV, NULL, NULL },
{ N_("PingPong"), 0, 0, mov_stepmode_menu_callback, (gpointer) GAP_STEP_PING_PONG, NULL, NULL },
{ N_("None"), 0, 0, mov_stepmode_menu_callback, (gpointer) GAP_STEP_NONE, NULL, NULL },
{ NULL, 0, 0, NULL, NULL, NULL, NULL }
};
@ -435,7 +437,7 @@ mov_dialog ( GDrawable *drawable, t_mov_path_preview *path_ptr,
dlg = gtk_dialog_new ();
ok_data.dlg = dlg;
ok_data.path_ptr = path_ptr;
gtk_window_set_title (GTK_WINDOW (dlg), "Move Path");
gtk_window_set_title (GTK_WINDOW (dlg), _("Move Path"));
gtk_window_position (GTK_WINDOW (dlg), GTK_WIN_POS_MOUSE);
gtk_signal_connect (GTK_OBJECT (dlg), "destroy",
(GtkSignalFunc) mov_close_callback,
@ -456,7 +458,7 @@ mov_dialog ( GDrawable *drawable, t_mov_path_preview *path_ptr,
gtk_tooltips_set_colors(g_tooltips, &tips_bg, &tips_fg);
/* 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) mov_ok_callback,
@ -465,7 +467,7 @@ mov_dialog ( GDrawable *drawable, t_mov_path_preview *path_ptr,
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,
@ -473,20 +475,20 @@ mov_dialog ( GDrawable *drawable, t_mov_path_preview *path_ptr,
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->action_area), button, TRUE, TRUE, 0);
gtk_widget_show (button);
button = gtk_button_new_with_label ("UpdPreview");
button = gtk_button_new_with_label ( _("UpdPreview"));
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
gtk_signal_connect (GTK_OBJECT (button), "clicked",
(GtkSignalFunc) mov_upvw_callback,
path_ptr);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->action_area), button, TRUE, TRUE, 0);
gtk_tooltips_set_tip(g_tooltips, button,
"Show PreviewFame with Selected \nSrcLayer at current Controlpoint"
_("Show PreviewFame with Selected \nSrcLayer at current Controlpoint")
, NULL);
gtk_widget_grab_default (button);
gtk_widget_show (button);
/* parameter settings */
frame = gtk_frame_new ("Copy moving source-layer(s) into frames");
frame = gtk_frame_new ( _("Copy moving source-layer(s) into frames"));
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
gtk_container_border_width (GTK_CONTAINER (frame), 6);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), frame, TRUE, TRUE, 0);
@ -509,7 +511,7 @@ mov_dialog ( GDrawable *drawable, t_mov_path_preview *path_ptr,
button_table = gtk_table_new (1, 6, FALSE);
/* Point Buttons */
button = gtk_button_new_with_label ("Load Points");
button = gtk_button_new_with_label ( _("Load Points"));
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
gtk_signal_connect (GTK_OBJECT (button), "clicked",
(GtkSignalFunc) mov_pload_callback,
@ -517,11 +519,11 @@ mov_dialog ( GDrawable *drawable, t_mov_path_preview *path_ptr,
gtk_table_attach( GTK_TABLE(button_table), button, 0, 1, 0, 1,
0, 0, 0, 0 );
gtk_tooltips_set_tip(g_tooltips, button,
"Load Controlpoints from file"
_("Load Controlpoints from file")
, NULL);
gtk_widget_show (button);
button = gtk_button_new_with_label ("Save Points");
button = gtk_button_new_with_label ( _("Save Points"));
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
gtk_signal_connect (GTK_OBJECT (button), "clicked",
(GtkSignalFunc) mov_psave_callback,
@ -529,11 +531,11 @@ mov_dialog ( GDrawable *drawable, t_mov_path_preview *path_ptr,
gtk_table_attach( GTK_TABLE(button_table), button, 1, 2, 0, 1,
0, 0, 0, 0 );
gtk_tooltips_set_tip(g_tooltips, button,
"Save Controlpoints to file"
_("Save Controlpoints to file")
, NULL);
gtk_widget_show (button);
button = gtk_button_new_with_label ("Reset Points");
button = gtk_button_new_with_label ( _("Reset Points"));
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
gtk_signal_connect (GTK_OBJECT (button), "clicked",
(GtkSignalFunc) mov_pres_callback,
@ -541,11 +543,11 @@ mov_dialog ( GDrawable *drawable, t_mov_path_preview *path_ptr,
gtk_table_attach( GTK_TABLE(button_table), button, 2, 3, 0, 1,
0, 0, 0, 0 );
gtk_tooltips_set_tip(g_tooltips, button,
"Reset Controlpoints \nto one Defaultpoint"
_("Reset Controlpoints \nto one Defaultpoint")
, NULL);
gtk_widget_show (button);
button = gtk_button_new_with_label ("Add Point");
button = gtk_button_new_with_label ( _("Add Point"));
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
gtk_signal_connect (GTK_OBJECT (button), "clicked",
(GtkSignalFunc) mov_padd_callback,
@ -553,11 +555,11 @@ mov_dialog ( GDrawable *drawable, t_mov_path_preview *path_ptr,
gtk_table_attach( GTK_TABLE(button_table), button, 3, 4, 0, 1,
0, 0, 0, 0 );
gtk_tooltips_set_tip(g_tooltips, button,
"Add Controlpoint at end \n(the last Point is duplicated)"
_("Add Controlpoint at end \n(the last Point is duplicated)")
, NULL);
gtk_widget_show (button);
button = gtk_button_new_with_label ("Prev Point");
button = gtk_button_new_with_label ( _("Prev Point"));
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
gtk_signal_connect (GTK_OBJECT (button), "clicked",
(GtkSignalFunc) mov_pprev_callback,
@ -565,11 +567,11 @@ mov_dialog ( GDrawable *drawable, t_mov_path_preview *path_ptr,
gtk_table_attach( GTK_TABLE(button_table), button, 4, 5, 0, 1,
0, 0, 0, 0 );
gtk_tooltips_set_tip(g_tooltips, button,
"Show Previous Controlpoint"
_("Show Previous Controlpoint")
, NULL);
gtk_widget_show (button);
button = gtk_button_new_with_label ("Next Point");
button = gtk_button_new_with_label ( _("Next Point"));
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
gtk_signal_connect (GTK_OBJECT (button), "clicked",
(GtkSignalFunc) mov_pnext_callback,
@ -577,7 +579,7 @@ mov_dialog ( GDrawable *drawable, t_mov_path_preview *path_ptr,
gtk_table_attach( GTK_TABLE(button_table), button, 5, 6, 0, 1,
0, 0, 0, 0 );
gtk_tooltips_set_tip(g_tooltips, button,
"Show Next Controlpoint"
_("Show Next Controlpoint")
, NULL);
gtk_widget_show (button);
@ -587,31 +589,31 @@ mov_dialog ( GDrawable *drawable, t_mov_path_preview *path_ptr,
0, 0, 0, 0 );
mov_int_entryscale_new( GTK_TABLE (table), 0, 3,
"Start Frame:", &pvals->dst_range_start,
_("Start Frame:"), &pvals->dst_range_start,
first_nr, last_nr, TRUE, NULL, NULL,
"first handled frame" );
_("first handled frame") );
mov_int_entryscale_new( GTK_TABLE (table), 0, 4,
"End Frame:", &pvals->dst_range_end,
_("End Frame:"), &pvals->dst_range_end,
first_nr, last_nr, TRUE, NULL, NULL,
"last handled frame" );
_("last handled frame") );
mov_int_entryscale_new( GTK_TABLE (table), 0, 5,
"Preview Frame:", &path_ptr->preview_frame_nr,
_("Preview Frame:"), &path_ptr->preview_frame_nr,
first_nr, last_nr, TRUE, NULL, NULL,
"frame to show when UpdPreview\nbutton is pressed" );
_("frame to show when UpdPreview\nbutton is pressed") );
mov_int_entryscale_new( GTK_TABLE (table), 0, 6,
"Layerstack:", &pvals->dst_layerstack,
_("Layerstack:"), &pvals->dst_layerstack,
0, 99, FALSE, NULL, NULL,
"How to insert SrcLayer into the\nDst.Frame's Layerstack\n0 means on top i.e in front" );
_("How to insert SrcLayer into the\nDst.Frame's Layerstack\n0 means on top i.e in front") );
/* toggle clip_to_image */
check_button = gtk_check_button_new_with_label ("Clip To Frame");
check_button = gtk_check_button_new_with_label ( _("Clip To Frame"));
gtk_table_attach ( GTK_TABLE (table), check_button, 0, 2, 7, 7+1, GTK_FILL, 0, 0, 0);
gtk_signal_connect (GTK_OBJECT (check_button), "toggled",
(GtkSignalFunc) mov_clip_to_img_callback,
path_ptr);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (check_button), pvals->clip_to_img);
gtk_tooltips_set_tip(g_tooltips, check_button,
"Clip all copied Src-Layers\nat Frame Boundaries"
_("Clip all copied Src-Layers\nat Frame Boundaries")
, NULL);
gtk_widget_show (check_button);
@ -655,7 +657,7 @@ mov_ok_callback (GtkWidget *widget,
{
p_msg_win(RUN_INTERACTIVE,
"No Source Image was selected\n(Please open a 2nd Image of the same type before opening Move Path)\n");
_("No Source Image was selected\n(Please open a 2nd Image of the same type before opening Move Path)\n"));
return;
}
}
@ -819,7 +821,7 @@ mov_pload_callback (GtkWidget *widget,
if(path_ptr->filesel != NULL) return; /* filesel is already open */
filesel = gtk_file_selection_new ("Load Path Points from file");
filesel = gtk_file_selection_new ( _("Load Path Points from file"));
path_ptr->filesel = filesel;
gtk_window_position (GTK_WINDOW (filesel), GTK_WIN_POS_MOUSE);
@ -855,7 +857,7 @@ mov_psave_callback (GtkWidget *widget,
if(path_ptr->filesel != NULL) return; /* filesel is already open */
filesel = gtk_file_selection_new ("Save Path Points to file");
filesel = gtk_file_selection_new ( _("Save Path Points to file"));
path_ptr->filesel = filesel;
gtk_window_position (GTK_WINDOW (filesel), GTK_WIN_POS_MOUSE);
@ -1066,12 +1068,12 @@ p_points_to_tab(t_mov_path_preview *path_ptr)
void p_update_point_labels(t_mov_path_preview *path_ptr)
{
sprintf(&path_ptr->X_Label[0], "X [%d]: ", pvals->point_idx + 1);
sprintf(&path_ptr->Y_Label[0], "Y [%d]: ", pvals->point_idx + 1);
sprintf(&path_ptr->Opacity_Label[0], "Opacity [%d]: ", pvals->point_idx + 1);
sprintf(&path_ptr->Wresize_Label[0], "Width [%d]: ", pvals->point_idx + 1);
sprintf(&path_ptr->Hresize_Label[0], "Height [%d]: ", pvals->point_idx + 1);
sprintf(&path_ptr->Rotation_Label[0], "Rotate deg[%d]: ", pvals->point_idx + 1);
sprintf(&path_ptr->X_Label[0], _("X [%d]: "), pvals->point_idx + 1);
sprintf(&path_ptr->Y_Label[0], _("Y [%d]: "), pvals->point_idx + 1);
sprintf(&path_ptr->Opacity_Label[0], _("Opacity [%d]: "), pvals->point_idx + 1);
sprintf(&path_ptr->Wresize_Label[0], _("Width [%d]: "), pvals->point_idx + 1);
sprintf(&path_ptr->Hresize_Label[0], _("Height [%d]: "), pvals->point_idx + 1);
sprintf(&path_ptr->Rotation_Label[0], _("Rotate deg[%d]: "), pvals->point_idx + 1);
if(NULL != path_ptr->X_LabelPtr)
@ -1247,9 +1249,10 @@ mov_src_sel_create()
GtkWidget *option_menu;
GtkWidget *menu;
GtkWidget *label;
int gettextize_loop;
frame = gtk_frame_new ( "Source Select" );
frame = gtk_frame_new ( _("Source Select") );
/*
gtk_signal_connect( GTK_OBJECT( frame ), "destroy",
(GtkSignalFunc) mov_src_sel_destroy,
@ -1266,7 +1269,7 @@ mov_src_sel_create()
gtk_table_set_col_spacings (GTK_TABLE (table), 10);
/* Source Layer menu */
label = gtk_label_new("SourceImage/Layer:");
label = gtk_label_new( _("SourceImage/Layer:"));
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
gtk_table_attach(GTK_TABLE(table), label, 0, 1, 0, 1, GTK_FILL, GTK_FILL, 4, 0);
gtk_widget_show(label);
@ -1276,7 +1279,7 @@ mov_src_sel_create()
GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0);
gtk_tooltips_set_tip(g_tooltips, option_menu,
"Source Object to insert into Framerange"
_("Source Object to insert into Framerange")
, NULL);
gtk_widget_show(option_menu);
@ -1291,7 +1294,7 @@ mov_src_sel_create()
/* Paintmode menu */
label = gtk_label_new("Mode:");
label = gtk_label_new( _("Mode:"));
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
gtk_table_attach(GTK_TABLE(table), label, 2, 3, 0, 1, GTK_FILL, GTK_FILL, 4, 0);
gtk_widget_show(label);
@ -1300,17 +1303,22 @@ mov_src_sel_create()
gtk_table_attach(GTK_TABLE(table), option_menu, 3, 4, 0, 1,
GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0);
gtk_tooltips_set_tip(g_tooltips, option_menu,
"Paintmode"
_("Paintmode")
, NULL);
gtk_widget_show(option_menu);
for (gettextize_loop = 0; option_paint_items[gettextize_loop].label != NULL;
gettextize_loop++)
option_paint_items[gettextize_loop].label =
gettext(option_paint_items[gettextize_loop].label);
menu = p_buildmenu (option_paint_items);
gtk_option_menu_set_menu(GTK_OPTION_MENU(option_menu), menu);
gtk_widget_show(option_menu);
/* Loop Stepmode menu */
label = gtk_label_new("Stepmode:");
label = gtk_label_new( _("Stepmode:"));
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
gtk_table_attach(GTK_TABLE(table), label, 0, 1, 1, 2, GTK_FILL, GTK_FILL, 4, 0);
gtk_widget_show(label);
@ -1320,16 +1328,21 @@ mov_src_sel_create()
GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0);
gtk_widget_show(option_menu);
for (gettextize_loop = 0; option_step_items[gettextize_loop].label != NULL;
gettextize_loop++)
option_step_items[gettextize_loop].label =
gettext(option_step_items[gettextize_loop].label);
menu = p_buildmenu (option_step_items);
gtk_option_menu_set_menu(GTK_OPTION_MENU(option_menu), menu);
gtk_tooltips_set_tip(g_tooltips, option_menu,
"How to fetch te next SrcLayer \nat the next handled frame"
_("How to fetch te next SrcLayer \nat the next handled frame")
, NULL);
gtk_widget_show(option_menu);
/* Source Image Handle menu */
label = gtk_label_new("Handle:");
label = gtk_label_new( _("Handle:"));
gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5);
gtk_table_attach(GTK_TABLE(table), label, 2, 3, 1, 2, GTK_FILL, GTK_FILL, 4, 0);
gtk_widget_show(label);
@ -1339,10 +1352,15 @@ mov_src_sel_create()
GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0);
gtk_widget_show(option_menu);
for (gettextize_loop = 0; option_handle_items[gettextize_loop].label != NULL;
gettextize_loop++)
option_handle_items[gettextize_loop].label =
gettext(option_handle_items[gettextize_loop].label);
menu = p_buildmenu (option_handle_items);
gtk_option_menu_set_menu(GTK_OPTION_MENU(option_menu), menu);
gtk_tooltips_set_tip(g_tooltips, option_menu,
"How to place the SrcLayer at \nControlpoint Koordinates"
_("How to place the SrcLayer at \nControlpoint Koordinates")
, NULL);
gtk_widget_show(option_menu);
@ -1388,7 +1406,7 @@ mov_path_prevw_create ( GDrawable *drawable, t_mov_path_preview *path_ptr)
path_ptr->oldy = 0;
path_ptr->in_call = TRUE; /* to avoid side effects while initialization */
frame = gtk_frame_new ( "Move Path Preview" );
frame = gtk_frame_new ( _("Move Path Preview") );
gtk_signal_connect( GTK_OBJECT( frame ), "destroy",
(GtkSignalFunc) mov_path_prevw_destroy,
path_ptr );
@ -1438,19 +1456,19 @@ mov_path_prevw_create ( GDrawable *drawable, t_mov_path_preview *path_ptr)
mov_int_entryscale_new( GTK_TABLE (table), 0, 1,
&path_ptr->Wresize_Label[0], &path_ptr->w_resize,
5, 200, FALSE, &path_ptr->wres_ent, &path_ptr->wres_adj,
"Scale SrcLayer's Width\nin percent");
_("Scale SrcLayer's Width\nin percent"));
path_ptr->Hresize_LabelPtr =
mov_int_entryscale_new( GTK_TABLE (table), 2, 1,
&path_ptr->Hresize_Label[0], &path_ptr->h_resize,
5, 200, FALSE, &path_ptr->hres_ent, &path_ptr->hres_adj,
"Scale SrcLayer's Height\nin percent" );
_("Scale SrcLayer's Height\nin percent") );
path_ptr->Opacity_LabelPtr =
mov_int_entryscale_new( GTK_TABLE (table), 0, 2,
&path_ptr->Opacity_Label[0], &path_ptr->opacity,
0, 100, TRUE, &path_ptr->opacity_ent, &path_ptr->opacity_adj,
"SrcLayer's Opacity\nin percent");
_("SrcLayer's Opacity\nin percent"));
/* Rotation */
@ -1459,7 +1477,7 @@ mov_path_prevw_create ( GDrawable *drawable, t_mov_path_preview *path_ptr)
mov_int_entryscale_new( GTK_TABLE (table), 2, 2,
&path_ptr->Rotation_Label[0], &path_ptr->rotation,
-360, 360, FALSE, &path_ptr->rotation_ent, &path_ptr->rotation_adj,
"Rotate SrcLayer (in degree)");
_("Rotate SrcLayer (in degree)"));

View File

@ -40,6 +40,8 @@
/* GIMP includes */
#include "gtk/gtk.h"
#include "config.h"
#include "libgimp/stdplugins-intl.h"
#include "libgimp/gimp.h"
/* GAP includes */
@ -212,7 +214,7 @@ long p_mov_execute(t_mov_data *mov_ptr)
if(mov_ptr->val_ptr->src_image_id < 0)
{
p_msg_win(mov_ptr->dst_ainfo_ptr->run_mode,
"No Source Image was selected\n(Please open a 2nd Image of the same type before opening Move Path)");
_("No Source Image was selected\n(Please open a 2nd Image of the same type before opening Move Path)"));
return -1;
}
@ -220,7 +222,7 @@ long p_mov_execute(t_mov_data *mov_ptr)
l_percentage = 0.0;
if(mov_ptr->dst_ainfo_ptr->run_mode == RUN_INTERACTIVE)
{
gimp_progress_init("Copying Layers into Frames ..");
gimp_progress_init( _("Copying Layers into Frames .."));
}
if(gap_debug)

View File

@ -49,6 +49,8 @@
/* GIMP includes */
#include "gtk/gtk.h"
#include "config.h"
#include "libgimp/stdplugins-intl.h"
#include "libgimp/gimp.h"
/* GAP includes */
@ -105,10 +107,10 @@ int p_mpege_info(t_anim_info *ainfo_ptr, char *errlist, t_gap_mpeg_encoder encod
l_idx = 0;
p_init_arr_arg(&argv[l_idx], WGT_LABEL);
argv[l_idx].label_txt = "Conditions to run mpeg_encode 1.5:";
argv[l_idx].label_txt = _("Conditions to run mpeg_encode 1.5:");
if(encoder == MPEG2ENCODE)
{
argv[l_idx].label_txt = "Conditions to run mpeg2encode 1.2:";
argv[l_idx].label_txt = _("Conditions to run mpeg2encode 1.2:");
}
@ -118,62 +120,62 @@ int p_mpege_info(t_anim_info *ainfo_ptr, char *errlist, t_gap_mpeg_encoder encod
l_idx++;
p_init_arr_arg(&argv[l_idx], WGT_LABEL);
argv[l_idx].label_txt = "1.) mpeg_encode 1.5 must be installed";
argv[l_idx].label_txt = _("1.) mpeg_encode 1.5 must be installed");
if(encoder == MPEG2ENCODE)
{
argv[l_idx].label_txt = "1.) mpeg2encode 1.2 must be installed";
argv[l_idx].label_txt = _("1.) mpeg2encode 1.2 must be installed");
}
l_idx++;
p_init_arr_arg(&argv[l_idx], WGT_LABEL);
argv[l_idx].label_txt = " you can get mpeg_encode at";
argv[l_idx].label_txt = _(" you can get mpeg_encode at");
if(encoder == MPEG2ENCODE)
{
argv[l_idx].label_txt = " you can get mpeg2encode at http://www.mpeg.org/MSSG";
argv[l_idx].label_txt = _(" you can get mpeg2encode at http://www.mpeg.org/MSSG");
}
l_idx++;
p_init_arr_arg(&argv[l_idx], WGT_LABEL);
argv[l_idx].label_txt = " ftp://mm-ftp.cs.berkeley.edu/pub/multimedia/mpeg/bmt1r1.tar.gz";
argv[l_idx].label_txt = _(" ftp://mm-ftp.cs.berkeley.edu/pub/multimedia/mpeg/bmt1r1.tar.gz");
if(encoder == MPEG2ENCODE)
{
argv[l_idx].label_txt = " or at ftp://ftp.mpeg.org/pub/mpeg/mssg ";
argv[l_idx].label_txt = _(" or at ftp://ftp.mpeg.org/pub/mpeg/mssg ");
}
l_idx++;
p_init_arr_arg(&argv[l_idx], WGT_LABEL);
argv[l_idx].label_txt = "2.) You need a series of single Images on disk (AnimFrames)";
argv[l_idx].label_txt = _("2.) You need a series of single Images on disk (AnimFrames)");
l_idx++;
p_init_arr_arg(&argv[l_idx], WGT_LABEL);
argv[l_idx].label_txt = " all with fileformat JPEG (or YUV or PNM or PPM)";
argv[l_idx].label_txt = _(" all with fileformat JPEG (or YUV or PNM or PPM)");
if(encoder == MPEG2ENCODE)
{
argv[l_idx].label_txt = " all with fileformat PPM (or YUV)";
argv[l_idx].label_txt = _(" all with fileformat PPM (or YUV)");
}
l_idx++;
p_init_arr_arg(&argv[l_idx], WGT_LABEL);
argv[l_idx].label_txt = " (use 'Frames Convert' from the AnimFrames Menu";
argv[l_idx].label_txt = _(" (use 'Frames Convert' from the AnimFrames Menu");
l_idx++;
p_init_arr_arg(&argv[l_idx], WGT_LABEL);
argv[l_idx].label_txt = " or 'Split Img to Frames' from the AnimFrames Menu)";
argv[l_idx].label_txt = _(" or 'Split Img to Frames' from the AnimFrames Menu)");
l_idx++;
p_init_arr_arg(&argv[l_idx], WGT_LABEL);
argv[l_idx].label_txt = "3.) All Images must have the same size,";
argv[l_idx].label_txt = _("3.) All Images must have the same size,");
if(encoder == MPEG_ENCODE)
{
l_idx++;
p_init_arr_arg(&argv[l_idx], WGT_LABEL);
argv[l_idx].label_txt = " width and height must be a multiple of 16";
argv[l_idx].label_txt = _(" width and height must be a multiple of 16");
l_idx++;
p_init_arr_arg(&argv[l_idx], WGT_LABEL);
argv[l_idx].label_txt = " (use Scale or Crop from the AnimFrames Menu)";
argv[l_idx].label_txt = _(" (use Scale or Crop from the AnimFrames Menu)");
}
l_idx++;
@ -183,12 +185,12 @@ int p_mpege_info(t_anim_info *ainfo_ptr, char *errlist, t_gap_mpeg_encoder encod
l_idx++;
/* the Action Button */
b_argv[0].but_txt = "CANCEL";
b_argv[0].but_txt = _("CANCEL");
b_argv[0].but_val = -1;
b_argv[1].but_txt = "OK";
b_argv[1].but_txt = _("OK");
b_argv[1].but_val = 0;
l_rc = p_array_std_dialog("MPEG_ENCODE Information",
l_rc = p_array_std_dialog(_("MPEG_ENCODE Information"),
"",
l_idx, argv, /* widget array */
2, b_argv, /* button array */
@ -213,6 +215,7 @@ int p_mpege_dialog(t_anim_info *ainfo_ptr, t_mpg_par *mp_ptr, t_gap_mpeg_encoder
gint l_rc;
gint l_idx;
char *l_str;
static int gettextize_loop = 0;
static char l_buf[MBUF_SIZE];
static char l_startscript[MBUF_SIZE];
@ -225,15 +228,18 @@ int p_mpege_dialog(t_anim_info *ainfo_ptr, t_mpg_par *mp_ptr, t_gap_mpeg_encoder
static char *bsearch_args[3] = {"SIMPLE", "CROSS2", "EXHAUSTIVE" };
static char *video_args[5] = {"Comp", "PAL", "NTSC", "SECAM", "MAC" };
static char *mpeg_args[2] = {"MPEG1", "MPEG2" };
static char *mpeg_help[2] = {"generate MPEG1 (ISO/IEC 11172-2) stream",
"generate MPEG2 (ISO/IEC DIS 13818-2) stream" };
static char *mpeg_help[2] = { N_("generate MPEG1 (ISO/IEC 11172-2) stream"),
N_("generate MPEG2 (ISO/IEC DIS 13818-2) stream") };
for (;gettextize_loop < 2; gettextize_loop++)
mpeg_help[gettextize_loop] = gettext(mpeg_help[gettextize_loop]);
l_rc = -1;
/* the 3 Action Buttons */
b_argv[0].but_txt = "Cancel";
b_argv[0].but_txt = _("Cancel");
b_argv[0].but_val = -1;
b_argv[1].but_txt = "GenParams";
b_argv[1].but_txt = _("GenParams");
b_argv[1].but_val = 0;
b_argv[2].but_txt = "Gen + Encode";
b_argv[2].but_val = 1;
@ -249,31 +255,31 @@ int p_mpege_dialog(t_anim_info *ainfo_ptr, t_mpg_par *mp_ptr, t_gap_mpeg_encoder
p_init_arr_arg(&argv[1], WGT_INT_PAIR);
argv[1].constraint = TRUE;
argv[1].label_txt = "From Frame:";
argv[1].help_txt = "first handled frame";
argv[1].label_txt = _("From Frame:");
argv[1].help_txt = _("first handled frame");
argv[1].int_min = (gint)ainfo_ptr->first_frame_nr;
argv[1].int_max = (gint)ainfo_ptr->last_frame_nr;
argv[1].int_ret = (gint)ainfo_ptr->curr_frame_nr;
p_init_arr_arg(&argv[2], WGT_INT_PAIR);
argv[2].constraint = TRUE;
argv[2].label_txt = "To Frame:";
argv[2].help_txt = "last handled frame";
argv[2].label_txt = _("To Frame:");
argv[2].help_txt = _("last handled frame");
argv[2].int_min = (gint)ainfo_ptr->first_frame_nr;
argv[2].int_max = (gint)ainfo_ptr->last_frame_nr;
argv[2].int_ret = (gint)ainfo_ptr->last_frame_nr;
p_init_arr_arg(&argv[3], WGT_OPTIONMENU);
argv[3].label_txt = "Framerate :";
argv[3].help_txt = "framerate in frames/second";
argv[3].label_txt = _("Framerate :");
argv[3].help_txt = _("framerate in frames/second");
argv[3].radio_argc = 8;
argv[3].radio_argv = frate_args;
argv[3].radio_ret = 4;
p_init_arr_arg(&argv[4], WGT_INT_PAIR);
argv[4].constraint = FALSE;
argv[4].label_txt = "Bitrate:";
argv[4].help_txt = "used for constant bitrates (bit/sec) \n(low rate gives good compression + bad quality)";
argv[4].label_txt = _("Bitrate:");
argv[4].help_txt = _("used for constant bitrates (bit/sec) \n(low rate gives good compression + bad quality)");
argv[4].int_min = 500000;
argv[4].int_step = 100000;
argv[4].int_max = 9000000;
@ -284,88 +290,88 @@ int p_mpege_dialog(t_anim_info *ainfo_ptr, t_mpg_par *mp_ptr, t_gap_mpeg_encoder
p_init_arr_arg(&argv[l_idx], WGT_FILESEL);
argv[l_idx].label_txt ="Outputfile:";
argv[l_idx].label_txt = _("Outputfile:");
argv[l_idx].entry_width = 140; /* pixel */
argv[l_idx].help_txt ="Name of the resulting MPEG outputfile";
argv[l_idx].help_txt = _("Name of the resulting MPEG outputfile");
argv[l_idx].text_buf_len = sizeof(l_outfile);
argv[l_idx].text_buf_ret = &l_outfile[0];
l_idx++;
p_init_arr_arg(&argv[l_idx], WGT_FILESEL);
argv[l_idx].label_txt ="Paramfile:";
argv[l_idx].label_txt = _("Paramfile:");
argv[l_idx].entry_width = 140; /* pixel */
argv[l_idx].help_txt ="Name of the Encoder-Parameterfile\n(is generated)";
argv[l_idx].help_txt = _("Name of the Encoder-Parameterfile\n(is generated)");
argv[l_idx].text_buf_len = sizeof(l_parfile);
argv[l_idx].text_buf_ret = &l_parfile[0];
l_idx++;
p_init_arr_arg(&argv[l_idx], WGT_FILESEL);
argv[l_idx].label_txt ="Startscript:";
argv[l_idx].label_txt = _("Startscript:");
argv[l_idx].entry_width = 140; /* pixel */
argv[l_idx].help_txt ="Name of the Startscript \n(is generated/executed)";
argv[l_idx].help_txt = _("Name of the Startscript \n(is generated/executed)");
argv[l_idx].text_buf_len = sizeof(l_startscript);
argv[l_idx].text_buf_ret = &l_startscript[0];
if(encoder == MPEG_ENCODE)
{
sprintf(l_buf,
"Generate parameterfile for mpeg_encode 1.5\n(the freely distributed Berkeley MPEG-1 Video Encoder.)\n");
_("Generate parameterfile for mpeg_encode 1.5\n(the freely distributed Berkeley MPEG-1 Video Encoder.)\n"));
p_init_arr_arg(&argv[5], WGT_TOGGLE);
argv[5].label_txt = "Constant Bitrate :";
argv[5].help_txt ="Iqnore I/P/QSCALE values and use constant bit-rate)";
argv[5].label_txt = _("Constant Bitrate :");
argv[5].help_txt = _("Iqnore I/P/QSCALE values and use constant bit-rate)");
argv[5].int_ret = 1;
sprintf (l_pattern, "IBBPBBPBBPBBPBBP");
p_init_arr_arg(&argv[6], WGT_TEXT);
argv[6].label_txt ="Pattern:";
argv[6].label_txt = _("Pattern:");
argv[6].entry_width = 140; /* pixel */
argv[6].help_txt ="How to encode MPEG framesequence (I/P/B frames)";
argv[6].help_txt = _("How to encode MPEG framesequence (I/P/B frames)");
argv[6].text_buf_len = sizeof(l_pattern);
argv[6].text_buf_ret = &l_pattern[0];
p_init_arr_arg(&argv[7], WGT_INT_PAIR);
argv[7].constraint = TRUE;
argv[7].label_txt = "IQSCALE:";
argv[7].help_txt = "Quality scale for I-Frames \n(1 = best quality, 31 = best comression)";
argv[7].label_txt = _("IQSCALE:");
argv[7].help_txt = _("Quality scale for I-Frames \n(1 = best quality, 31 = best comression)");
argv[7].int_min = 1;
argv[7].int_max = 31;
argv[7].int_ret = 2;
p_init_arr_arg(&argv[8], WGT_INT_PAIR);
argv[8].constraint = TRUE;
argv[8].label_txt = "PQSCALE:";
argv[8].help_txt = "Quality scale for P-Frames \n(1 = best quality, 31 = best comression)";
argv[8].label_txt = _("PQSCALE:");
argv[8].help_txt = _("Quality scale for P-Frames \n(1 = best quality, 31 = best comression)");
argv[8].int_min = 1;
argv[8].int_max = 31;
argv[8].int_ret = 5;
p_init_arr_arg(&argv[9], WGT_INT_PAIR);
argv[9].constraint = TRUE;
argv[9].label_txt = "BQSCALE:";
argv[9].help_txt = "Quality scale for B-Frames \n(1 = best quality, 31 = best comression)";
argv[9].label_txt = _("BQSCALE:");
argv[9].help_txt = _("Quality scale for B-Frames \n(1 = best quality, 31 = best comression)");
argv[9].int_min = 1;
argv[9].int_max = 31;
argv[9].int_ret = 9;
p_init_arr_arg(&argv[10], WGT_OPTIONMENU);
argv[10].label_txt = "P-Search :";
argv[10].help_txt = "Search Algorithmus used for P-frames";
argv[10].label_txt = _("P-Search :");
argv[10].help_txt = _("Search Algorithmus used for P-frames");
argv[10].radio_argc = 3;
argv[10].radio_argv = psearch_args;
argv[10].radio_ret = 1;
p_init_arr_arg(&argv[11], WGT_OPTIONMENU);
argv[11].label_txt = "B-Search :";
argv[11].help_txt = "Search Algorithmus used for B-frames";
argv[11].label_txt = _("B-Search :");
argv[11].help_txt = _("Search Algorithmus used for B-frames");
argv[11].radio_argc = 3;
argv[11].radio_argv = bsearch_args;
argv[11].radio_ret = 1;
l_rc = p_array_std_dialog("Gen MPEG_ENCODE Parameters",
"Encode Values",
l_rc = p_array_std_dialog( _("Gen MPEG_ENCODE Parameters"),
_("Encode Values"),
15, argv, /* widget array */
3, b_argv, /* button array */
0);
@ -382,10 +388,10 @@ int p_mpege_dialog(t_anim_info *ainfo_ptr, t_mpg_par *mp_ptr, t_gap_mpeg_encoder
if(encoder == MPEG2ENCODE)
{
sprintf(l_buf,
"Generate parameterfile for mpeg2encode 1.2\n(MPEG-2 Video Encoder.)\n");
_("Generate parameterfile for mpeg2encode 1.2\n(MPEG-2 Video Encoder.)\n"));
p_init_arr_arg(&argv[5], WGT_RADIO);
argv[5].label_txt = "MPEG-type :";
argv[5].label_txt = _("MPEG-type :");
argv[5].radio_argc = 2;
argv[5].radio_argv = mpeg_args;
argv[5].radio_help_argv = mpeg_help;
@ -394,8 +400,8 @@ int p_mpege_dialog(t_anim_info *ainfo_ptr, t_mpg_par *mp_ptr, t_gap_mpeg_encoder
p_init_arr_arg(&argv[6], WGT_OPTIONMENU);
argv[6].label_txt = "Videoformat :";
argv[6].help_txt = "Videoformat";
argv[6].label_txt = _("Videoformat :");
argv[6].help_txt = _("Videoformat");
argv[6].radio_argc = 5;
argv[6].radio_argv = video_args;
argv[6].radio_ret = 1;
@ -403,8 +409,8 @@ int p_mpege_dialog(t_anim_info *ainfo_ptr, t_mpg_par *mp_ptr, t_gap_mpeg_encoder
argv[3].radio_argc = 5; /* framerates above 30 ar not allowed in mpeg2encode */
l_rc = p_array_std_dialog("Gen MPEG2ENCODE Parameters",
"Encode Values",
l_rc = p_array_std_dialog( _("Gen MPEG2ENCODE Parameters"),
_("Encode Values"),
10, argv, /* widget array */
3, b_argv, /* button array */
0);
@ -508,7 +514,7 @@ int p_mpeg2encode_gen_parfile(t_anim_info *ainfo_ptr, t_mpg_par *mp_ptr)
l_fp = fopen(mp_ptr->parfile, "w");
if(l_fp == NULL)
{
fprintf(stderr, "cant open MPEG Paramfile %s for write\n", mp_ptr->parfile);
fprintf(stderr, _("cant open MPEG Paramfile %s for write\n"), mp_ptr->parfile);
return -1;
}
@ -967,22 +973,22 @@ int gap_mpeg_encode(GRunModeType run_mode,
{
if(*l_base_file_format == '\0')
{
strcat(l_errlist, "\nWARNING: mpeg_encode does not support Fileformat ");
strcat(l_errlist, _("\nWARNING: mpeg_encode does not support Fileformat "));
strcat(l_errlist, mp_par.ext);
}
if((l_width % 16) != 0) { strcat(l_errlist, "\nERROR: width not a multiple of 16"); }
if((l_height % 16) != 0) { strcat(l_errlist, "\nERROR: height not a multiple of 16"); }
if((l_width % 16) != 0) { strcat(l_errlist, _("\nERROR: width not a multiple of 16")); }
if((l_height % 16) != 0) { strcat(l_errlist, _("\nERROR: height not a multiple of 16")); }
}
if(encoder == MPEG2ENCODE)
{
if(l_base_ffidx < 0)
{
strcat(l_errlist, "\nWARNING: mpeg2encode does not support Fileformat ");
strcat(l_errlist, _("\nWARNING: mpeg2encode does not support Fileformat "));
strcat(l_errlist, mp_par.ext);
}
}
if(ainfo_ptr->frame_cnt == 0) { strcat(l_errlist, "\nERROR: invoked from a single image, animframe required"); }
if(ainfo_ptr->frame_cnt == 0) { strcat(l_errlist, _("\nERROR: invoked from a single image, animframe required")); }
if((l_rc == 0) && (l_errlist[0] != '\0'))
{
@ -1000,7 +1006,7 @@ int gap_mpeg_encode(GRunModeType run_mode,
}
else
{
printf ("sorry folks, NON_INTERACTIVE call .. not implemented yet\n");
printf ( _("sorry folks, NON_INTERACTIVE call .. not implemented yet\n"));
l_rc = -1;
}

View File

@ -61,6 +61,8 @@
/* GIMP includes */
#include "gtk/gtk.h"
#include "config.h"
#include "libgimp/stdplugins-intl.h"
#include "libgimp/gimp.h"
/* GAP includes */
@ -103,28 +105,28 @@ p_anim_sizechange_dialog(t_anim_info *ainfo_ptr, t_gap_asiz asiz_mode,
l_height = gimp_image_height(ainfo_ptr->image_id);
p_init_arr_arg(&argv[0], WGT_INT_PAIR);
argv[0].label_txt = "New Width :";
argv[0].label_txt = _("New Width :");
argv[0].constraint = FALSE;
argv[0].int_min = 1;
argv[0].int_max = 1024;
argv[0].int_ret = l_width;
p_init_arr_arg(&argv[1], WGT_INT_PAIR);
argv[1].label_txt = "New Height :";
argv[1].label_txt = _("New Height :");
argv[1].constraint = FALSE;
argv[1].int_min = 1;
argv[1].int_max = 1024;
argv[1].int_ret = l_height;
p_init_arr_arg(&argv[2], WGT_INT_PAIR);
argv[2].label_txt = "Offest X :";
argv[2].label_txt = _("Offest X :");
argv[2].constraint = FALSE;
argv[2].int_min = 0;
argv[2].int_max = l_width;
argv[2].int_ret = 0;
p_init_arr_arg(&argv[3], WGT_INT_PAIR);
argv[3].label_txt = "Offest Y :";
argv[3].label_txt = _("Offest Y :");
argv[3].constraint = FALSE;
argv[3].int_min = 0;
argv[3].int_max = l_height;
@ -133,8 +135,8 @@ p_anim_sizechange_dialog(t_anim_info *ainfo_ptr, t_gap_asiz asiz_mode,
switch(asiz_mode)
{
case ASIZ_CROP:
title = "Crop AnimFrames (all)";
sprintf(hline, "Crop (original %dx%d)", l_width, l_height);
title = _("Crop AnimFrames (all)");
sprintf(hline, _("Crop (original %dx%d)"), l_width, l_height);
argv[0].int_max = l_width;
argv[0].constraint = TRUE;
argv[1].int_max = l_height;
@ -144,15 +146,15 @@ p_anim_sizechange_dialog(t_anim_info *ainfo_ptr, t_gap_asiz asiz_mode,
cnt = 4;
break;
case ASIZ_RESIZE:
title = "Resize AnimFrames (all)";
sprintf(hline, "Resize (original %dx%d)", l_width, l_height);
title = _("Resize AnimFrames (all)");
sprintf(hline, _("Resize (original %dx%d)"), l_width, l_height);
argv[2].int_min = -l_width;
argv[3].int_min = -l_height;
cnt = 4;
break;
default:
title = "Scale AnimFrames (all)";
sprintf(hline, "Scale (original %dx%d)", l_width, l_height);
title = _("Scale AnimFrames (all)");
sprintf(hline, _("Scale (original %dx%d)"), l_width, l_height);
cnt = 2;
break;
}
@ -227,21 +229,21 @@ p_range_dialog(t_anim_info *ainfo_ptr,
if(cnt != 3) cnt = 2;
p_init_arr_arg(&argv[0], WGT_INT_PAIR);
argv[0].label_txt = "From :";
argv[0].label_txt = _("From :");
argv[0].constraint = TRUE;
argv[0].int_min = (gint)ainfo_ptr->first_frame_nr;
argv[0].int_max = (gint)ainfo_ptr->last_frame_nr;
argv[0].int_ret = (gint)ainfo_ptr->curr_frame_nr;
p_init_arr_arg(&argv[1], WGT_INT_PAIR);
argv[1].label_txt = "To :";
argv[1].label_txt = _("To :");
argv[1].constraint = TRUE;
argv[1].int_min = (gint)ainfo_ptr->first_frame_nr;
argv[1].int_max = (gint)ainfo_ptr->last_frame_nr;
argv[1].int_ret = (gint)ainfo_ptr->last_frame_nr;
p_init_arr_arg(&argv[2], WGT_INT_PAIR);
argv[2].label_txt = "Layerstack :";
argv[2].label_txt = _("Layerstack :");
argv[2].constraint = FALSE;
argv[2].int_min = 0;
argv[2].int_max = 99;
@ -280,69 +282,73 @@ p_convert_dialog(t_anim_info *ainfo_ptr,
char *extension, gint len_ext)
{
static t_arr_arg argv[9];
static char *radio_args[4] = {"KEEP_TYPE", "Conv to RGB", "Conv to GRAY", "Conv to INDEXED" };
static char *radio_args[4] = { N_("KEEP_TYPE"), N_("Conv to RGB"), N_("Conv to GRAY"), N_("Conv to INDEXED") };
static int gettextize_loop = 0;
for (;gettextize_loop < 4; gettextize_loop++)
radio_args[gettextize_loop] = gettext(radio_args[gettextize_loop]);
p_init_arr_arg(&argv[0], WGT_INT_PAIR);
argv[0].constraint = TRUE;
argv[0].label_txt = "From Frame:";
argv[0].help_txt = "first handled frame";
argv[0].label_txt = _("From Frame:");
argv[0].help_txt = _("first handled frame");
argv[0].int_min = (gint)ainfo_ptr->first_frame_nr;
argv[0].int_max = (gint)ainfo_ptr->last_frame_nr;
argv[0].int_ret = (gint)ainfo_ptr->curr_frame_nr;
p_init_arr_arg(&argv[1], WGT_INT_PAIR);
argv[1].constraint = TRUE;
argv[1].label_txt = "To Frame:";
argv[1].help_txt = "last handled frame";
argv[1].label_txt = _("To Frame:");
argv[1].help_txt = _("last handled frame");
argv[1].int_min = (gint)ainfo_ptr->first_frame_nr;
argv[1].int_max = (gint)ainfo_ptr->last_frame_nr;
argv[1].int_ret = (gint)ainfo_ptr->last_frame_nr;
p_init_arr_arg(&argv[2], WGT_LABEL);
argv[2].label_txt ="\nSelect destination fileformat by extension\noptionally convert imagetype\n";
argv[2].label_txt = _("\nSelect destination fileformat by extension\noptionally convert imagetype\n");
p_init_arr_arg(&argv[3], WGT_FILESEL);
argv[3].label_txt ="Basename:";
argv[3].help_txt ="basename of the resulting frames \n(0001.ext is added)";
argv[3].label_txt = _("Basename:");
argv[3].help_txt = _("basename of the resulting frames \n(0001.ext is added)");
argv[3].text_buf_len = len_base;
argv[3].text_buf_ret = basename;
p_init_arr_arg(&argv[4], WGT_TEXT);
argv[4].label_txt ="Extension:";
argv[4].help_txt ="extension of resulting frames \n(is also used to define Fileformat)";
argv[4].label_txt = _("Extension:");
argv[4].help_txt = _("extension of resulting frames \n(is also used to define Fileformat)");
argv[4].text_buf_len = len_ext;
argv[4].text_buf_ret = extension;
p_init_arr_arg(&argv[5], WGT_OPTIONMENU);
argv[5].label_txt ="Imagetype :";
argv[5].help_txt ="Convert to, or keep imagetype \n(most fileformats cant handle all types)";
argv[5].label_txt = _("Imagetype :");
argv[5].help_txt = _("Convert to, or keep imagetype \n(most fileformats cant handle all types)");
argv[5].radio_argc = 4;
argv[5].radio_argv = radio_args;
argv[5].radio_ret = 0;
p_init_arr_arg(&argv[6], WGT_TOGGLE);
argv[6].label_txt = "Flatten :";
argv[6].help_txt ="Flatten all resulting frames \n(most fileformats need flattened frames)";
argv[6].label_txt = _("Flatten :");
argv[6].help_txt = _("Flatten all resulting frames \n(most fileformats need flattened frames)");
argv[6].int_ret = 1;
p_init_arr_arg(&argv[7], WGT_INT_PAIR);
argv[7].constraint = TRUE;
argv[7].label_txt = "Colors :";
argv[7].help_txt = "Number of resulting Colors \n(ignored if not converted to indexed)";
argv[7].label_txt = _("Colors :");
argv[7].help_txt = _("Number of resulting Colors \n(ignored if not converted to indexed)");
argv[7].int_min = 2;
argv[7].int_max = 256;
argv[7].int_ret = 255;
p_init_arr_arg(&argv[8], WGT_TOGGLE);
argv[8].label_txt = "Dither :";
argv[8].help_txt = "Enable Floyd-Steinberg dithering \n(ignored if not converted to indexed)";
argv[8].label_txt = _("Dither :");
argv[8].help_txt = _("Enable Floyd-Steinberg dithering \n(ignored if not converted to indexed)");
argv[8].int_ret = 1;
if(0 != p_chk_framerange(ainfo_ptr)) return -1;
if(TRUE == p_array_dialog("Convert Frames to other Formats",
"Convert Settings :",
if(TRUE == p_array_dialog( _("Convert Frames to other Formats"),
_("Convert Settings :"),
9, argv))
{
*range_from = (long)(argv[0].int_ret);
@ -399,52 +405,60 @@ p_range_to_multilayer_dialog(t_anim_info *ainfo_ptr,
{
static t_arr_arg argv[10];
static char *radio_args[4] = {"Expand as necessary",
"Clipped to image",
"Clipped to bottom layer",
"Flattened image" };
static char *radio_help[4] = {"Resulting Layer Size is made of the outline-rectangle \nof all visible layers (may differ from frame to frame)",
"Resulting Layer Size is the frame size",
"Resulting Layer Size is the size of the bottom layer\n(may differ from frame to frame)",
"Resulting Layer Size is the frame size \ntransparent parts are filled with BG color" };
static char *radio_args[4] = { N_("Expand as necessary"),
N_("Clipped to image"),
N_("Clipped to bottom layer"),
N_("Flattened image") };
static char *radio_help[4] = { N_("Resulting Layer Size is made of the outline-rectangle \nof all visible layers (may differ from frame to frame)"),
N_("Resulting Layer Size is the frame size"),
N_("Resulting Layer Size is the size of the bottom layer\n(may differ from frame to frame)"),
N_("Resulting Layer Size is the frame size \ntransparent parts are filled with BG color") };
/* Layer select modes */
static char *sel_args[7] = {"Pattern is equal to LayerName",
"Pattern is Start of LayerName",
"Pattern is End of Layername",
"Pattern is a Part of LayerName",
"Pattern is LayerstackNumber List",
"Pattern is REVERSE-stack List",
"All Visible (ignore Pattern)"
static char *sel_args[7] = { N_("Pattern is equal to LayerName"),
N_("Pattern is Start of LayerName"),
N_("Pattern is End of Layername"),
N_("Pattern is a Part of LayerName"),
N_("Pattern is LayerstackNumber List"),
N_("Pattern is REVERSE-stack List"),
N_("All Visible (ignore Pattern)")
};
static char *sel_help[7] = {"select all Layers where Layername is equal to Pattern",
"select all Layers where Layername starts with Pattern",
"select all Layers where Layername ends up with Pattern",
"select all Layers where Layername contains Pattern",
"select Layerstack positions.\n0, 4-5, 8\nwhere 0 == Top-layer",
"select Layerstack positions.\n0, 4-5, 8\nwhere 0 == BG-layer",
"select all visible Layers"
static char *sel_help[7] = { N_("select all Layers where Layername is equal to Pattern"),
N_("select all Layers where Layername starts with Pattern"),
N_("select all Layers where Layername ends up with Pattern"),
N_("select all Layers where Layername contains Pattern"),
N_("select Layerstack positions.\n0, 4-5, 8\nwhere 0 == Top-layer"),
N_("select Layerstack positions.\n0, 4-5, 8\nwhere 0 == BG-layer"),
N_("select all visible Layers")
};
static int gettextize_radio = 0, gettextize_sel = 0;
for (;gettextize_radio < 4; gettextize_radio++) {
radio_args[gettextize_radio] = gettext(radio_args[gettextize_radio]);
radio_help[gettextize_radio] = gettext(radio_help[gettextize_radio]);
}
for (;gettextize_sel < 4; gettextize_sel++) {
sel_args[gettextize_sel] = gettext(sel_args[gettextize_sel]);
sel_help[gettextize_sel] = gettext(sel_help[gettextize_sel]);
}
p_init_arr_arg(&argv[0], WGT_INT_PAIR);
argv[0].constraint = TRUE;
argv[0].label_txt = "From :";
argv[0].help_txt = "first handled frame";
argv[0].label_txt = _("From :");
argv[0].help_txt = _("first handled frame");
argv[0].int_min = (gint)ainfo_ptr->first_frame_nr;
argv[0].int_max = (gint)ainfo_ptr->last_frame_nr;
argv[0].int_ret = (gint)ainfo_ptr->curr_frame_nr;
p_init_arr_arg(&argv[1], WGT_INT_PAIR);
argv[1].constraint = TRUE;
argv[1].label_txt = "To :";
argv[1].help_txt = "last handled frame";
argv[1].label_txt = _("To :");
argv[1].help_txt = _("last handled frame");
argv[1].int_min = (gint)ainfo_ptr->first_frame_nr;
argv[1].int_max = (gint)ainfo_ptr->last_frame_nr;
argv[1].int_ret = (gint)ainfo_ptr->last_frame_nr;
p_init_arr_arg(&argv[2], WGT_TEXT);
argv[2].label_txt ="Layer Basename:";
argv[2].help_txt ="Basename for all Layers \n[####] is replaced by frame number";
argv[2].label_txt = _("Layer Basename:");
argv[2].help_txt = _("Basename for all Layers \n[####] is replaced by frame number");
argv[2].text_buf_len = len_frame_basename;
argv[2].text_buf_ret = frame_basename;
@ -462,21 +476,21 @@ p_range_to_multilayer_dialog(t_anim_info *ainfo_ptr,
argv[3].label_txt = " ";
p_init_arr_arg(&argv[4], WGT_RADIO);
argv[4].label_txt = "Layer Mergemode :";
argv[4].label_txt = _("Layer Mergemode :");
argv[4].radio_argc = 4;
argv[4].radio_argv = radio_args;
argv[4].radio_help_argv = radio_help;
argv[4].radio_ret = 1;
p_init_arr_arg(&argv[5], WGT_TOGGLE);
argv[5].label_txt = "Exclude BG-Layer";
argv[5].help_txt = "Exclude the BG-Layers \nin all handled frames\nregardless to selection";
argv[5].label_txt = _("Exclude BG-Layer");
argv[5].help_txt = _("Exclude the BG-Layers \nin all handled frames\nregardless to selection");
argv[5].int_ret = 0; /* 1: exclude BG Layer from all selections */
/* Layer select mode RADIO buttons */
p_init_arr_arg(&argv[6], WGT_RADIO);
argv[6].label_txt = "Select Layer(s):";
argv[6].label_txt = _("Select Layer(s):");
argv[6].radio_argc = 7;
argv[6].radio_argv = sel_args;
argv[6].radio_help_argv = sel_help;
@ -485,22 +499,22 @@ p_range_to_multilayer_dialog(t_anim_info *ainfo_ptr,
/* Layer select pattern string */
sprintf (sel_pattern, "0");
p_init_arr_arg(&argv[7], WGT_TEXT);
argv[7].label_txt ="Select Pattern:";
argv[7].label_txt = _("Select Pattern:");
argv[7].entry_width = 140; /* pixel */
argv[7].help_txt ="String to identify layer names \nor layerstack position numbers\n0,3-5";
argv[7].help_txt = _("String to identify layer names \nor layerstack position numbers\n0,3-5");
argv[7].text_buf_len = MAX_LAYERNAME;
argv[7].text_buf_ret = sel_pattern;
/* case sensitive checkbutton */
p_init_arr_arg(&argv[8], WGT_TOGGLE);
argv[8].label_txt = "Case sensitive";
argv[8].help_txt = "Lowercase and UPPERCASE letters are considered as different";
argv[8].label_txt = _("Case sensitive");
argv[8].help_txt = _("Lowercase and UPPERCASE letters are considered as different");
argv[8].int_ret = 1;
/* invert selection checkbutton */
p_init_arr_arg(&argv[9], WGT_TOGGLE);
argv[9].label_txt = "Invert Selection";
argv[9].help_txt = "Use all unselected Layers";
argv[9].label_txt = _("Invert Selection");
argv[9].help_txt = _("Use all unselected Layers");
argv[9].int_ret = 0;
@ -574,7 +588,7 @@ p_frames_to_multilayer(t_anim_info *ainfo_ptr,
l_nlayers_result = 0;
if(ainfo_ptr->run_mode == RUN_INTERACTIVE)
{
gimp_progress_init("Creating Layer-Animated Image ..");
gimp_progress_init( _("Creating Layer-Animated Image .."));
}
l_tmp_layer_id = -1;
@ -788,8 +802,8 @@ gint32 gap_range_to_multilayer(GRunModeType run_mode, gint32 image_id,
l_rc = p_range_to_multilayer_dialog (ainfo_ptr, &l_from, &l_to,
&flatten_mode, &bg_visible,
&framerate, frame_basename, frame_basename_len,
"Frames to Image",
"Create Multilayer-Image from Frames",
_("Frames to Image"),
_("Create Multilayer-Image from Frames"),
&l_sel_mode, &sel_case,
&sel_invert, &l_sel_pattern[0]
);
@ -918,8 +932,8 @@ p_frames_convert(t_anim_info *ainfo_ptr,
l_run_mode = ainfo_ptr->run_mode;
if(ainfo_ptr->run_mode == RUN_INTERACTIVE)
{
if(save_proc_name == NULL) gimp_progress_init("Flattening Frames ..");
else gimp_progress_init("Converting Frames ..");
if(save_proc_name == NULL) gimp_progress_init( _("Flattening Frames .."));
else gimp_progress_init( _("Converting Frames .."));
}
@ -1008,14 +1022,14 @@ p_frames_convert(t_anim_info *ainfo_ptr,
{
if (l_overwrite_mode < 1)
{
l_argv[0].but_txt = "OVERWRITE frame";
l_argv[0].but_txt = _("OVERWRITE frame");
l_argv[0].but_val = 0;
l_argv[1].but_txt = "OVERWRITE all";
l_argv[1].but_txt = _("OVERWRITE all");
l_argv[1].but_val = 1;
l_argv[2].but_txt = "CANCEL";
l_argv[2].but_txt = _("CANCEL");
l_argv[2].but_val = -1;
l_overwrite_mode = p_buttons_dialog ("GAP Question", l_sav_name, 3, l_argv, -1);
l_overwrite_mode = p_buttons_dialog ( _("GAP Question"), l_sav_name, 3, l_argv, -1);
}
}
@ -1029,7 +1043,7 @@ p_frames_convert(t_anim_info *ainfo_ptr,
l_rc = p_save_named_image(l_tmp_image_id, l_sav_name, l_run_mode);
if(l_rc < 0)
{
p_msg_win(ainfo_ptr->run_mode, "Convert Frames: SAVE operation FAILED\n- desired save plugin cant handle type\n- or desired save plugin not available\n");
p_msg_win(ainfo_ptr->run_mode, _("Convert Frames: SAVE operation FAILED\n- desired save plugin cant handle type\n- or desired save plugin not available\n"));
}
}
if(l_run_mode == RUN_INTERACTIVE)
@ -1135,13 +1149,13 @@ gint32 p_anim_sizechange(t_anim_info *ainfo_ptr,
switch(asiz_mode)
{
case ASIZ_CROP:
gimp_progress_init("Cropping all Animation Frames ..");
gimp_progress_init( _("Cropping all Animation Frames .."));
break;
case ASIZ_RESIZE:
gimp_progress_init("Resizing all Animation Frames ..");
gimp_progress_init( _("Resizing all Animation Frames .."));
break;
default:
gimp_progress_init("Scaling all Animation Frames ..");
gimp_progress_init( _("Scaling all Animation Frames .."));
break;
}
}
@ -1227,8 +1241,8 @@ int gap_range_flatten(GRunModeType run_mode, gint32 image_id,
if(run_mode == RUN_INTERACTIVE)
{
l_rc = p_range_dialog (ainfo_ptr, &l_from, &l_to,
"Flatten Frames",
"Select Frame Range", 2);
_("Flatten Frames"),
_("Select Frame Range"), 2);
}
else
@ -1283,7 +1297,7 @@ p_frames_layer_del(t_anim_info *ainfo_ptr,
l_percentage = 0.0;
if(ainfo_ptr->run_mode == RUN_INTERACTIVE)
{
sprintf(l_buff, "Removing Layer (pos:%ld) from Frames ..", position);
sprintf(l_buff, _("Removing Layer (pos:%ld) from Frames .."), position);
gimp_progress_init(l_buff);
}
@ -1406,8 +1420,8 @@ int gap_range_layer_del(GRunModeType run_mode, gint32 image_id,
if(run_mode == RUN_INTERACTIVE)
{
l_rc = p_range_dialog (ainfo_ptr, &l_from, &l_to,
"Delete Layers in Frames",
"Select Frame Range & Position", 3);
_("Delete Layers in Frames"),
_("Select Frame Range & Position"), 3);
l_position = l_rc;
}

View File

@ -34,6 +34,8 @@
/* GIMP includes */
#include "gtk/gtk.h"
#include "config.h"
#include "libgimp/stdplugins-intl.h"
#include "libgimp/gimp.h"
#include "libgimp/gimpui.h"
#include "resize.h"
@ -131,7 +133,7 @@ p_resi_dialog (gint32 image_id, t_gap_asiz asiz_mode, char *title_text,
gtk_box_pack_start (GTK_BOX (vbox), image_resize->resize->resize_widget, FALSE, FALSE, 0);
/* 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) res_ok_callback,
@ -140,7 +142,7 @@ p_resi_dialog (gint32 image_id, t_gap_asiz asiz_mode, char *title_text,
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) res_cancel_callback,

View File

@ -48,6 +48,8 @@
/* GIMP includes */
#include "gtk/gtk.h"
#include "config.h"
#include "libgimp/stdplugins-intl.h"
#include "libgimp/gimp.h"
/* GAP includes */
@ -92,7 +94,7 @@ p_split_image(t_anim_info *ainfo_ptr,
l_run_mode = ainfo_ptr->run_mode;
if(ainfo_ptr->run_mode == RUN_INTERACTIVE)
{
gimp_progress_init("Splitting into Frames ..");
gimp_progress_init( _("Splitting into Frames .."));
}
l_new_image_id = -1;
@ -167,7 +169,7 @@ p_split_image(t_anim_info *ainfo_ptr,
l_rc = p_save_named_image(l_new_image_id, l_sav_name, l_run_mode);
if(l_rc < 0)
{
p_msg_win(ainfo_ptr->run_mode, "Split Frames: SAVE operation FAILED\n- desired save plugin cant handle type\n- or desired save plugin not available\n");
p_msg_win(ainfo_ptr->run_mode, _("Split Frames: SAVE operation FAILED\n- desired save plugin cant handle type\n- or desired save plugin not available\n"));
break;
}
@ -215,32 +217,32 @@ p_split_dialog(t_anim_info *ainfo_ptr, gint *inverse_order, gint *no_alpha, char
static t_arr_arg argv[4];
char buf[128];
sprintf(buf, "%s\n%s\n(%s_0001.%s)\n",
"Make a frame (diskfile) from each Layer",
"frames are named: base_nr.extension",
sprintf(buf, _("%s\n%s\n(%s_0001.%s)\n"),
_("Make a frame (diskfile) from each Layer"),
_("frames are named: base_nr.extension"),
ainfo_ptr->basename, extension);
p_init_arr_arg(&argv[0], WGT_LABEL);
argv[0].label_txt = &buf[0];
p_init_arr_arg(&argv[1], WGT_TEXT);
argv[1].label_txt ="Extension:";
argv[1].help_txt ="extension of resulting frames \n(is also used to define Fileformat)";
argv[1].label_txt = _("Extension:");
argv[1].help_txt = _("extension of resulting frames \n(is also used to define Fileformat)");
argv[1].text_buf_len = len_ext;
argv[1].text_buf_ret = extension;
p_init_arr_arg(&argv[2], WGT_TOGGLE);
argv[2].label_txt = "Inverse Order :";
argv[2].help_txt = "Start frame 0001 at Top Layer";
argv[2].label_txt = _("Inverse Order :");
argv[2].help_txt = _("Start frame 0001 at Top Layer");
argv[2].int_ret = 0;
p_init_arr_arg(&argv[3], WGT_TOGGLE);
argv[3].label_txt = "Flatten :";
argv[3].help_txt = "Remove Alpha Channel in resulting Frames, \ntransparent parts are filled with BG color";
argv[3].label_txt = _("Flatten :");
argv[3].help_txt = _("Remove Alpha Channel in resulting Frames, \ntransparent parts are filled with BG color");
argv[3].int_ret = 0;
if(TRUE == p_array_dialog("Split Image into Frames",
"Split Settings :",
if(TRUE == p_array_dialog( _("Split Image into Frames"),
_("Split Settings :"),
4, argv))
{
*inverse_order = argv[2].int_ret;
@ -285,7 +287,7 @@ int gap_split_image(GRunModeType run_mode,
if(ainfo_ptr->frame_cnt != 0)
{
p_msg_win(run_mode,
"OPERATION CANCELLED\nThis image is already an AnimFrame\nTry again on a Duplicate\n(image/channel ops/duplicate)");
_("OPERATION CANCELLED\nThis image is already an AnimFrame\nTry again on a Duplicate\n(image/channel ops/duplicate)"));
return -1;
}
else

View File

@ -19,6 +19,8 @@
#include <stdio.h>
#include <stdlib.h>
#include <gtk/gtk.h>
#include "config.h"
#include "libgimp/stdplugins-intl.h"
#include "resize.h"
#define EVENT_MASK GDK_EXPOSURE_MASK | GDK_BUTTON_PRESS_MASK
@ -102,11 +104,11 @@ resize_widget_new (ResizeType type,
switch (type)
{
case ScaleWidget:
resize->resize_widget = gtk_frame_new ("Scale");
resize->resize_widget = gtk_frame_new ( _("Scale"));
table = gtk_table_new (4, 2, TRUE);
break;
case ResizeWidget:
resize->resize_widget = gtk_frame_new ("Resize");
resize->resize_widget = gtk_frame_new ( _("Resize"));
table = gtk_table_new (6, 2, TRUE);
break;
}
@ -122,7 +124,7 @@ resize_widget_new (ResizeType type,
/* the width label and entry */
sprintf (size, "%d", width);
label = gtk_label_new ("New width:");
label = gtk_label_new ( _("New width:"));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1,
GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2);
@ -139,7 +141,7 @@ resize_widget_new (ResizeType type,
/* the height label and entry */
sprintf (size, "%d", height);
label = gtk_label_new ("New height:");
label = gtk_label_new ( _("New height:"));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2,
GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2);
@ -156,7 +158,7 @@ resize_widget_new (ResizeType type,
/* the x scale ratio label and entry */
sprintf (ratio_text, "%0.4f", resize->ratio_x);
label = gtk_label_new ("X ratio:");
label = gtk_label_new ( _("X ratio:"));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 2, 3,
GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2);
@ -173,7 +175,7 @@ resize_widget_new (ResizeType type,
/* the y scale ratio label and entry */
sprintf (ratio_text, "%0.4f", resize->ratio_y);
label = gtk_label_new ("Y ratio:");
label = gtk_label_new ( _("Y ratio:"));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 3, 4,
GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2);
@ -192,7 +194,7 @@ resize_widget_new (ResizeType type,
{
/* the off_x label and entry */
sprintf (size, "%d", 0);
label = gtk_label_new ("X Offset:");
label = gtk_label_new ( _("X Offset:"));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 4, 5,
GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2);
@ -209,7 +211,7 @@ resize_widget_new (ResizeType type,
/* the off_y label and entry */
sprintf (size, "%d", 0);
label = gtk_label_new ("Y Offset:");
label = gtk_label_new ( _("Y Offset:"));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 5, 6,
GTK_SHRINK | GTK_FILL, GTK_SHRINK, 2, 2);
@ -226,7 +228,7 @@ resize_widget_new (ResizeType type,
}
/* the constrain toggle button */
constrain = gtk_check_button_new_with_label ("Constrain Ratio");
constrain = gtk_check_button_new_with_label ( _("Constrain Ratio"));
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (constrain), private->constrain);
gtk_box_pack_start (GTK_BOX (vbox), constrain, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (constrain), "toggled",

View File

@ -30,7 +30,9 @@ gimpressionist_SOURCES = \
color.c
AM_CPPFLAGS = \
-DDEFAULTPATH=\""~/$(gimpdir)/gimpressionist:$(gimpdatadir)/gimpressionist"\"
-DDEFAULTPATH=\""~/$(gimpdir)/gimpressionist:$(gimpdatadir)/gimpressionist"\" \
-DLOCALEDIR=\""$(localedir)"\"
INCLUDES = \
-I$(top_srcdir) \

View File

@ -13,6 +13,7 @@
#endif
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
#include <libgimp/stdplugins-intl.h>
#include <math.h>
#include "gimpressionist.h"
#include "ppmtool.h"
@ -179,13 +180,13 @@ void savebrush(GtkWidget *wg, gpointer data)
char path[200];
if(!brushppm.col) {
g_message("GIMPressionist: Can only save drawables!\n");
g_message( _("GIMPressionist: Can only save drawables!\n"));
return;
}
sprintf(path, "%s/Brushes/", (char *)thispath->data);
window = gtk_file_selection_new("Save brush");
window = gtk_file_selection_new( _("Save brush"));
gtk_window_position (GTK_WINDOW (window), GTK_WIN_POS_MOUSE);
gtk_file_selection_set_filename(GTK_FILE_SELECTION(window), path);
@ -391,7 +392,7 @@ void create_brushpage(GtkNotebook *notebook)
gtk_widget_show (box2);
gtk_container_border_width (GTK_CONTAINER (box2), 5);
tmpw = gtk_label_new("Brush Preview:");
tmpw = gtk_label_new( _("Brush Preview:"));
gtk_box_pack_start(GTK_BOX(box2), tmpw,FALSE,FALSE,0);
gtk_widget_show (tmpw);
@ -400,7 +401,7 @@ void create_brushpage(GtkNotebook *notebook)
gtk_box_pack_start(GTK_BOX (box2), tmpw, FALSE, FALSE, 5);
gtk_widget_show(tmpw);
tmpw = gtk_label_new("Gamma:");
tmpw = gtk_label_new( _("Gamma:"));
gtk_box_pack_start(GTK_BOX(box2), tmpw,FALSE,FALSE,0);
gtk_widget_show (tmpw);
@ -413,7 +414,7 @@ void create_brushpage(GtkNotebook *notebook)
gtk_widget_show (tmpw);
gtk_signal_connect(GTK_OBJECT(brushgammaadjust), "value_changed",
(GtkSignalFunc)selectbrush, list);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Changes the gamma (brightness) of the selected brush", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Changes the gamma (brightness) of the selected brush"), NULL);
box1 = gtk_hbox_new (FALSE, 0);
gtk_box_pack_start(GTK_BOX(thispage), box1,FALSE,FALSE,5);
@ -425,16 +426,16 @@ void create_brushpage(GtkNotebook *notebook)
gtk_widget_show (box2);
if(!standalone) {
tmpw = gtk_label_new("Select:");
tmpw = gtk_label_new( _("Select:"));
gtk_box_pack_start(GTK_BOX(box2), tmpw,FALSE,FALSE,0);
gtk_widget_show (tmpw);
}
tmpw = gtk_label_new("Aspect ratio:");
tmpw = gtk_label_new( _("Aspect ratio:"));
gtk_box_pack_start(GTK_BOX(box2), tmpw,FALSE,FALSE,0);
gtk_widget_show (tmpw);
tmpw = gtk_label_new("Relief:");
tmpw = gtk_label_new( _("Relief:"));
gtk_box_pack_start(GTK_BOX(box2), tmpw,FALSE,FALSE,0);
gtk_widget_show (tmpw);
@ -449,7 +450,7 @@ void create_brushpage(GtkNotebook *notebook)
gtk_box_pack_start(GTK_BOX(box2),box3, FALSE, FALSE, 0);
gtk_widget_show(box3);
brushemptyitem = emptyitem = gtk_menu_item_new_with_label("(None)");
brushemptyitem = emptyitem = gtk_menu_item_new_with_label( _("(None)"));
gtk_signal_connect (GTK_OBJECT(emptyitem), "activate",
(GtkSignalFunc)dummybrushdmenuselect, NULL);
gtk_widget_show(emptyitem);
@ -462,7 +463,7 @@ void create_brushpage(GtkNotebook *notebook)
gtk_menu_prepend(GTK_MENU(dmenu), emptyitem);
gtk_option_menu_set_menu(GTK_OPTION_MENU(tmpw), dmenu);
tmpw = gtk_button_new_with_label("Save...");
tmpw = gtk_button_new_with_label( _("Save..."));
gtk_box_pack_start(GTK_BOX(box3),tmpw, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT(tmpw), "clicked",
GTK_SIGNAL_FUNC(savebrush), NULL);
@ -476,7 +477,7 @@ void create_brushpage(GtkNotebook *notebook)
gtk_scale_set_digits(GTK_SCALE (tmpw), 2);
gtk_box_pack_start (GTK_BOX (box2), tmpw, FALSE, FALSE, 0);
gtk_widget_show (tmpw);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Specifies the aspect ratio of the brush", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Specifies the aspect ratio of the brush"), NULL);
gtk_signal_connect(GTK_OBJECT(brushaspectadjust), "value_changed",
(GtkSignalFunc)selectbrush, list);
@ -487,7 +488,7 @@ void create_brushpage(GtkNotebook *notebook)
gtk_scale_set_digits(GTK_SCALE (tmpw), 2);
gtk_box_pack_start (GTK_BOX (box2), tmpw, FALSE, FALSE, 0);
gtk_widget_show (tmpw);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Specifies the amount of embossing to apply to each brush stroke", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Specifies the amount of embossing to apply to each brush stroke"), NULL);
gtk_signal_connect (GTK_OBJECT(list), "selection_changed",
GTK_SIGNAL_FUNC(selectbrushfile),

View File

@ -12,6 +12,7 @@
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <libgimp/stdplugins-intl.h>
#include "gimpressionist.h"
#include "ppmtool.h"
@ -47,7 +48,7 @@ void create_colorpage(GtkNotebook *notebook)
char title[100];
int i;
sprintf(title, "Color");
sprintf(title, _("Color"));
labelbox = gtk_hbox_new (FALSE, 0);
tmpw = gtk_label_new(title);
@ -75,7 +76,7 @@ void create_colorpage(GtkNotebook *notebook)
gtk_box_pack_start(GTK_BOX(box1), box2,FALSE,FALSE,0);
gtk_widget_show (box2);
tmpw = gtk_label_new("Color:");
tmpw = gtk_label_new( _("Color:"));
gtk_box_pack_start(GTK_BOX(box2), tmpw,FALSE,FALSE,0);
gtk_widget_show (tmpw);
@ -85,23 +86,23 @@ void create_colorpage(GtkNotebook *notebook)
i = pcvals.colortype;
colorradio[0] = tmpw = gtk_radio_button_new_with_label(NULL, "Average under brush");
colorradio[0] = tmpw = gtk_radio_button_new_with_label(NULL, _("Average under brush"));
gtk_box_pack_start(GTK_BOX(box3), tmpw, FALSE, FALSE, 0);
gtk_widget_show(tmpw);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), FALSE);
gtk_signal_connect(GTK_OBJECT(tmpw), "clicked",
(GtkSignalFunc)colorchange, (void *)0);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Color is computed from the average of all pixels under the brush", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Color is computed from the average of all pixels under the brush"), NULL);
if(i == 0)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), TRUE);
colorradio[1] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), "Center of brush");
colorradio[1] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), _("Center of brush"));
gtk_box_pack_start(GTK_BOX(box3), tmpw, FALSE, FALSE, 0);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), FALSE);
gtk_widget_show(tmpw);
gtk_signal_connect(GTK_OBJECT(tmpw), "clicked",
(GtkSignalFunc)colorchange, (void *)1);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Samples the color from the pixel in the center of the brush", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Samples the color from the pixel in the center of the brush"), NULL);
if(i == 1)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), TRUE);
@ -110,7 +111,7 @@ void create_colorpage(GtkNotebook *notebook)
gtk_box_pack_start(GTK_BOX(box0), box1,FALSE,FALSE,0);
gtk_widget_show (box1);
tmpw = gtk_label_new("Color noise:");
tmpw = gtk_label_new( _("Color noise:"));
gtk_box_pack_start(GTK_BOX(box1), tmpw,FALSE,FALSE,0);
gtk_widget_show (tmpw);
@ -121,7 +122,7 @@ void create_colorpage(GtkNotebook *notebook)
gtk_scale_set_digits(GTK_SCALE (tmpw), 1);
gtk_box_pack_start (GTK_BOX (box1), tmpw, FALSE, FALSE, 10);
gtk_widget_show (tmpw);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Adds random noise to the color", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Adds random noise to the color"), NULL);
gtk_notebook_append_page_menu (notebook, thispage, labelbox, menubox);
}

View File

@ -12,6 +12,7 @@
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <libgimp/stdplugins-intl.h>
#include "gimpressionist.h"
#include "ppmtool.h"
@ -95,7 +96,7 @@ void selectcolor(void)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON(generalbgradio[0]), TRUE);
window = gtk_color_selection_dialog_new("Color Selection Dialog");
window = gtk_color_selection_dialog_new( _("Color Selection Dialog"));
gtk_signal_connect (GTK_OBJECT (window), "destroy",
GTK_SIGNAL_FUNC(gtk_widget_destroyed),
&window);
@ -130,7 +131,7 @@ void create_generalpage(GtkNotebook *notebook)
GtkWidget *tmpw, *colbutton;
char title[100];
sprintf(title, "General");
sprintf(title, _("General"));
labelbox = gtk_hbox_new (FALSE, 0);
tmpw = gtk_label_new(title);
@ -155,7 +156,7 @@ void create_generalpage(GtkNotebook *notebook)
gtk_box_pack_start(GTK_BOX(box1), box2,FALSE,FALSE,0);
gtk_widget_show (box2);
tmpw = gtk_label_new("Edge darken:");
tmpw = gtk_label_new( _("Edge darken:"));
gtk_box_pack_start(GTK_BOX(box2), tmpw,FALSE,FALSE,0);
gtk_widget_show (tmpw);
@ -172,14 +173,14 @@ void create_generalpage(GtkNotebook *notebook)
gtk_scale_set_digits(GTK_SCALE (tmpw), 2);
gtk_box_pack_start (GTK_BOX (box2), tmpw, FALSE, FALSE, 0);
gtk_widget_show (tmpw);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "How much to \"darken\" the edges of each brush stroke", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("How much to \"darken\" the edges of each brush stroke"), NULL);
box2 = gtk_hbox_new (FALSE, 0);
gtk_box_pack_start(GTK_BOX(thispage), box2,FALSE,FALSE,0);
gtk_widget_show (box2);
tmpw = gtk_label_new("Background:");
tmpw = gtk_label_new( _("Background:"));
gtk_box_pack_start(GTK_BOX(box2), tmpw,FALSE,FALSE,0);
gtk_widget_show (tmpw);
@ -187,23 +188,23 @@ void create_generalpage(GtkNotebook *notebook)
gtk_box_pack_start(GTK_BOX(box2), box3,FALSE,FALSE, 10);
gtk_widget_show(box3);
generalbgradio[1] = tmpw = gtk_radio_button_new_with_label(NULL, "Keep original");
generalbgradio[1] = tmpw = gtk_radio_button_new_with_label(NULL, _("Keep original"));
gtk_widget_show(tmpw);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), FALSE);
gtk_box_pack_start(GTK_BOX(box3), tmpw, FALSE, FALSE, 0);
gtk_signal_connect(GTK_OBJECT(tmpw), "clicked",
(GtkSignalFunc)generalbgchange, (void *)1);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Preserve the original image as a background", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Preserve the original image as a background"), NULL);
if(pcvals.generalbgtype == 1)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), TRUE);
generalbgradio[2] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), "From paper");
generalbgradio[2] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), _("From paper"));
gtk_box_pack_start(GTK_BOX(box3), tmpw, FALSE, FALSE, 0);
gtk_widget_show(tmpw);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), FALSE);
gtk_signal_connect(GTK_OBJECT(tmpw), "clicked",
(GtkSignalFunc)generalbgchange, (void *)2);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Copy the texture of the selected paper as a background", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Copy the texture of the selected paper as a background"), NULL);
if(pcvals.generalbgtype == 2)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), TRUE);
@ -216,13 +217,13 @@ void create_generalpage(GtkNotebook *notebook)
gtk_box_pack_start(GTK_BOX(box3), box4, FALSE, FALSE, 0);
gtk_widget_show(box4);
generalbgradio[0] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), "Solid");
generalbgradio[0] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), _("Solid"));
gtk_box_pack_start(GTK_BOX(box4), tmpw, FALSE, FALSE, 0);
gtk_widget_show(tmpw);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), FALSE);
gtk_signal_connect(GTK_OBJECT(tmpw), "clicked",
(GtkSignalFunc)generalbgchange, (void *)0);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Solid colored background", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Solid colored background"), NULL);
if(pcvals.generalbgtype == 0)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), TRUE);
@ -239,13 +240,13 @@ void create_generalpage(GtkNotebook *notebook)
gtk_widget_show(tmpw);
drawcolor(tmpw);
generalbgradio[3] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(generalbgradio[0])), "Transparent");
generalbgradio[3] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(generalbgradio[0])), _("Transparent"));
gtk_box_pack_start(GTK_BOX(box3), tmpw, FALSE, FALSE, 0);
gtk_widget_show(tmpw);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), FALSE);
gtk_signal_connect(GTK_OBJECT(tmpw), "clicked",
(GtkSignalFunc)generalbgchange, (void *)3);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Use a transparent background; Only the strokes painted will be visible", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Use a transparent background; Only the strokes painted will be visible"), NULL);
if(!img_has_alpha)
gtk_widget_set_sensitive (tmpw, FALSE);
if(pcvals.generalbgtype == 3)
@ -260,7 +261,7 @@ void create_generalpage(GtkNotebook *notebook)
gtk_box_pack_start(GTK_BOX(box1), box2,FALSE,FALSE,0);
gtk_widget_show (box2);
generalpaintedges = tmpw = gtk_check_button_new_with_label("Paint edges");
generalpaintedges = tmpw = gtk_check_button_new_with_label( _("Paint edges"));
gtk_box_pack_start (GTK_BOX (box2), tmpw, FALSE, FALSE, 0);
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(tmpw), FALSE);
gtk_widget_show (tmpw);
@ -268,11 +269,11 @@ void create_generalpage(GtkNotebook *notebook)
if(pcvals.generalpaintedges)
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(tmpw), TRUE);
generaltileable = tmpw = gtk_check_button_new_with_label("Tileable");
generaltileable = tmpw = gtk_check_button_new_with_label( _("Tileable"));
gtk_box_pack_start (GTK_BOX (box2), tmpw, FALSE, FALSE, 0);
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(tmpw), FALSE);
gtk_widget_show (tmpw);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Selects if the resulting image should be seamlessly tileable", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Selects if the resulting image should be seamlessly tileable"), NULL);
if(pcvals.generaltileable)
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(tmpw), TRUE);
@ -280,11 +281,11 @@ void create_generalpage(GtkNotebook *notebook)
gtk_box_pack_start(GTK_BOX(box1), box2,FALSE,FALSE,0);
gtk_widget_show (box2);
generaldropshadow = tmpw = gtk_check_button_new_with_label("Drop Shadow");
generaldropshadow = tmpw = gtk_check_button_new_with_label( _("Drop Shadow"));
gtk_box_pack_start (GTK_BOX (box2), tmpw, FALSE, FALSE, 0);
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(tmpw), FALSE);
gtk_widget_show (tmpw);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Adds a shadow effect to each brush stroke", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Adds a shadow effect to each brush stroke"), NULL);
if(pcvals.generaldropshadow)
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(tmpw), TRUE);
@ -295,13 +296,13 @@ void create_generalpage(GtkNotebook *notebook)
gtk_scale_set_digits(GTK_SCALE (tmpw), 2);
gtk_box_pack_start (GTK_BOX (box2), tmpw, FALSE, FALSE, 0);
gtk_widget_show (tmpw);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "How much to \"darken\" the drop shadow", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("How much to \"darken\" the drop shadow"), NULL);
box2 = gtk_hbox_new (TRUE, 0);
gtk_box_pack_start(GTK_BOX(box1), box2,FALSE,FALSE,0);
gtk_widget_show (box2);
tmpw = gtk_label_new("Shadow depth:");
tmpw = gtk_label_new( _("Shadow depth:"));
gtk_box_pack_start(GTK_BOX(box2), tmpw,FALSE,FALSE,0);
gtk_widget_show (tmpw);
@ -312,13 +313,13 @@ void create_generalpage(GtkNotebook *notebook)
gtk_scale_set_digits(GTK_SCALE (tmpw), 0);
gtk_box_pack_start (GTK_BOX (box2), tmpw, FALSE, FALSE, 0);
gtk_widget_show (tmpw);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "The depth of the drop shadow, i.e. how far apart from the object it should be", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("The depth of the drop shadow, i.e. how far apart from the object it should be"), NULL);
box2 = gtk_hbox_new (TRUE, 0);
gtk_box_pack_start(GTK_BOX(box1), box2,FALSE,FALSE,0);
gtk_widget_show (box2);
tmpw = gtk_label_new("Shadow blur:");
tmpw = gtk_label_new( _("Shadow blur:"));
gtk_box_pack_start(GTK_BOX(box2), tmpw,FALSE,FALSE,0);
gtk_widget_show (tmpw);
@ -329,13 +330,13 @@ void create_generalpage(GtkNotebook *notebook)
gtk_scale_set_digits(GTK_SCALE (tmpw), 0);
gtk_box_pack_start (GTK_BOX (box2), tmpw, FALSE, FALSE, 0);
gtk_widget_show (tmpw);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "How much to blur the drop shadow", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("How much to blur the drop shadow"), NULL);
box2 = gtk_hbox_new (TRUE, 0);
gtk_box_pack_start(GTK_BOX(box1), box2,FALSE,FALSE,0);
gtk_widget_show (box2);
tmpw = gtk_label_new("Deviation threshold:");
tmpw = gtk_label_new( _("Deviation threshold:"));
gtk_box_pack_start(GTK_BOX(box2), tmpw,FALSE,FALSE,0);
gtk_widget_show (tmpw);
@ -346,7 +347,7 @@ void create_generalpage(GtkNotebook *notebook)
gtk_scale_set_digits(GTK_SCALE (tmpw), 2);
gtk_box_pack_start (GTK_BOX (box2), tmpw, FALSE, FALSE, 0);
gtk_widget_show (tmpw);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "A bailout-value for adaptive selections", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("A bailout-value for adaptive selections"), NULL);
gtk_notebook_append_page_menu (notebook, thispage, labelbox, menubox);
}

View File

@ -7,6 +7,8 @@
#include "gimpressionist.h"
#include "gtk/gtk.h"
#include "libgimp/gimp.h"
#include "config.h"
#include "libgimp/stdplugins-intl.h"
static void query(void);
static void gimpressionist_main(void);
@ -92,13 +94,15 @@ query(void)
static int nargs = sizeof(args) / sizeof(args[0]);
static int nreturn_vals = 0;
INIT_I18N();
gimp_install_procedure(PLUG_IN_NAME,
"Performs various artistic operations on an image",
"Performs various artistic operations on an image",
_("Performs various artistic operations on an image"),
_("Performs various artistic operations on an image"),
"Vidar Madsen <vidar@prosalg.no>",
"Vidar Madsen",
PLUG_IN_VERSION,
"<Image>/Filters/Artistic/GIMPressionist",
_("<Image>/Filters/Artistic/GIMPressionist"),
"RGB*, GRAY*",
PROC_PLUG_IN,
nargs,
@ -145,15 +149,18 @@ run(char *name, int nparams, GParam *param, int *nreturn_vals, GParam **return_v
switch (run_mode) {
case RUN_INTERACTIVE:
INIT_I18N_UI();
gimpressionist_get_data(PLUG_IN_NAME, &pcvals);
if(!create_gimpressionist())
return;
break;
case RUN_NONINTERACTIVE:
INIT_I18N();
g_message("GIMPressionist: RUN_NONINTERACTIVE not implemented yet!\n");
status = STATUS_EXECUTION_ERROR;
break;
case RUN_WITH_LAST_VALS:
INIT_I18N_UI();
gimpressionist_get_data(PLUG_IN_NAME, &pcvals);
break;
default:
@ -284,7 +291,7 @@ void gimpressionist_main(void)
dest_row = (guchar *)safemalloc((x2 - x1) * bpp);
gimp_progress_init("Painting...");
gimp_progress_init( _("Painting..."));
if(!infile.col) {
grabarea();

View File

@ -20,6 +20,7 @@
#include "gimpressionist.h"
#include "ppmtool.h"
#include <libgimp/gimp.h>
#include <libgimp/stdplugins-intl.h>
/* #include <libgimp/gimpenv.h> */
#ifndef GIMP_CHECK_VERSION
@ -72,14 +73,14 @@ GList *parsepath(void)
|| !S_ISDIR(st.st_mode)) {
/* No gimpressionist-path parameter, and the default doesn't exist */
#if GIMP_CHECK_VERSION(1, 1, 0)
g_message("*** Warning ***\n"
"It is highly recommended to add\n"
g_message( "*** Warning ***\n"
"It is highly recommended to add\n"
" (gimpressionist-path \"${gimp_dir}" G_DIR_SEPARATOR_S "gimpressionist"
G_SEARCHPATH_SEPARATOR_S
"${gimp_data_dir}" G_DIR_SEPARATOR_S "gimpressionist\")\n"
"(or similar) to your gimprc file.\n");
#else
g_message("*** Warning ***\nIt is highly recommended to add\n (gimpressionist-path \"%s\")\n(or similar) to your gimprc file.\n", defaultpath);
g_message( _("*** Warning ***\nIt is highly recommended to add\n (gimpressionist-path \"%s\")\n(or similar) to your gimprc file.\n"), defaultpath);
#endif
}
tmps = g_strdup(defaultpath);
@ -96,7 +97,7 @@ GList *parsepath(void)
char *tmps2, *home;
home = g_get_home_dir ();
if(!home) {
g_message("*** Warning ***\nNo home directory!\n");
g_message( _("*** Warning ***\nNo home directory!\n"));
home = "";
}
tmps2 = g_strconcat(home, tmps + 1, NULL);
@ -347,7 +348,7 @@ void showabout(void)
return;
}
window = gtk_dialog_new();
gtk_window_set_title(GTK_WINDOW(window), "The GIMPressionist!");
gtk_window_set_title(GTK_WINDOW(window), _("The GIMPressionist!"));
gtk_window_position(GTK_WINDOW(window), GTK_WIN_POS_MOUSE);
gtk_signal_connect(GTK_OBJECT(window), "destroy",
GTK_SIGNAL_FUNC (gtk_widget_destroyed),
@ -357,7 +358,7 @@ void showabout(void)
GTK_SIGNAL_FUNC (gtk_widget_hide_on_delete),
&window);
tmpw = gtk_button_new_with_label("OK");
tmpw = gtk_button_new_with_label( _("OK"));
GTK_WIDGET_SET_FLAGS(tmpw, GTK_CAN_DEFAULT);
gtk_signal_connect_object (GTK_OBJECT(tmpw), "clicked",
GTK_SIGNAL_FUNC (gtk_widget_hide),
@ -444,7 +445,7 @@ int create_dialog(void)
(GtkSignalFunc)dialog_close_callback,
NULL);
gtk_window_set_title (GTK_WINDOW (window), "The GIMPressionist!");
gtk_window_set_title (GTK_WINDOW (window), _("The GIMPressionist!"));
gtk_container_border_width (GTK_CONTAINER (window), 5);
box1 = gtk_hbox_new (FALSE, 0);
@ -479,28 +480,28 @@ int create_dialog(void)
gtk_box_pack_end (GTK_BOX (box2), box3, FALSE, FALSE, 0);
gtk_widget_show (box3);
tmpw = gtk_button_new_with_label(" OK ");
tmpw = gtk_button_new_with_label( _(" OK "));
gtk_signal_connect(GTK_OBJECT(tmpw), "clicked",
(GtkSignalFunc)dialog_ok_callback, window);
gtk_box_pack_start (GTK_BOX (box3), tmpw, TRUE, TRUE, 0);
GTK_WIDGET_SET_FLAGS (tmpw, GTK_CAN_DEFAULT);
gtk_widget_grab_default (tmpw);
gtk_widget_show(tmpw);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Run with the selected settings", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Run with the selected settings"), NULL);
tmpw = gtk_button_new_with_label(" Cancel ");
tmpw = gtk_button_new_with_label( _(" Cancel "));
gtk_signal_connect(GTK_OBJECT(tmpw), "clicked",
(GtkSignalFunc)dialog_cancel_callback, window);
gtk_box_pack_start (GTK_BOX (box3), tmpw, TRUE, TRUE, 0);
gtk_widget_show(tmpw);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Quit the program", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Quit the program"), NULL);
tmpw = gtk_button_new_with_label(" About... ");
tmpw = gtk_button_new_with_label( _(" About... "));
gtk_signal_connect(GTK_OBJECT(tmpw), "clicked",
(GtkSignalFunc)showabout, window);
gtk_box_pack_start (GTK_BOX (box3), tmpw, TRUE, TRUE, 0);
gtk_widget_show(tmpw);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Show some information about program", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Show some information about program"), NULL);
gtk_widget_show(window);

View File

@ -14,6 +14,7 @@
#endif
#include "gimpressionist.h"
#include "ppmtool.h"
#include <libgimp/stdplugins-intl.h>
GtkObject *orientnumadjust = NULL;
@ -48,7 +49,7 @@ void create_orientationpage(GtkNotebook *notebook)
char title[100];
int i;
sprintf(title, "Orientation");
sprintf(title, _("Orientation"));
labelbox = gtk_hbox_new (FALSE, 0);
tmpw = gtk_label_new(title);
@ -72,15 +73,15 @@ void create_orientationpage(GtkNotebook *notebook)
gtk_box_pack_start(GTK_BOX(box1), box2,FALSE,FALSE,0);
gtk_widget_show (box2);
tmpw = gtk_label_new("Directions:");
tmpw = gtk_label_new( _("Directions:"));
gtk_box_pack_start(GTK_BOX(box2), tmpw,FALSE,FALSE,0);
gtk_widget_show (tmpw);
tmpw = gtk_label_new("Start angle:");
tmpw = gtk_label_new( _("Start angle:"));
gtk_box_pack_start(GTK_BOX(box2), tmpw,FALSE,FALSE,0);
gtk_widget_show (tmpw);
tmpw = gtk_label_new("Angle span:");
tmpw = gtk_label_new( _("Angle span:"));
gtk_box_pack_start(GTK_BOX(box2), tmpw,FALSE,FALSE,0);
gtk_widget_show (tmpw);
@ -95,7 +96,7 @@ void create_orientationpage(GtkNotebook *notebook)
gtk_scale_set_draw_value (GTK_SCALE (tmpw), TRUE);
gtk_scale_set_digits(GTK_SCALE (tmpw), 0);
gtk_box_pack_start (GTK_BOX (box2), tmpw, FALSE, FALSE, 0);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "The number of directions (i.e. brushes) to use", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("The number of directions (i.e. brushes) to use"), NULL);
gtk_widget_show (tmpw);
orientfirstadjust = gtk_adjustment_new(pcvals.orientfirst, 0.0, 361.0, 1.0, 1.0, 1.0);
@ -104,7 +105,7 @@ void create_orientationpage(GtkNotebook *notebook)
gtk_scale_set_draw_value (GTK_SCALE (tmpw), TRUE);
gtk_scale_set_digits(GTK_SCALE (tmpw), 2);
gtk_box_pack_start (GTK_BOX (box2), tmpw, FALSE, FALSE, 0);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "The angle of the first brush to create", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("The angle of the first brush to create"), NULL);
gtk_widget_show (tmpw);
orientlastadjust = gtk_adjustment_new(pcvals.orientlast, 0.0, 361.0, 1.0, 1.0, 1.0);
@ -113,14 +114,14 @@ void create_orientationpage(GtkNotebook *notebook)
gtk_scale_set_draw_value (GTK_SCALE (tmpw), TRUE);
gtk_scale_set_digits(GTK_SCALE (tmpw), 2);
gtk_box_pack_start (GTK_BOX (box2), tmpw, FALSE, FALSE, 0);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "How large an angle-span to use (360 = full circle)", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("How large an angle-span to use (360 = full circle)"), NULL);
gtk_widget_show (tmpw);
box2 = gtk_hbox_new (FALSE, 0);
gtk_box_pack_start(GTK_BOX(thispage), box2,FALSE,FALSE,0);
gtk_widget_show (box2);
tmpw = gtk_label_new("Orientation:");
tmpw = gtk_label_new( _("Orientation:"));
gtk_box_pack_start(GTK_BOX(box2), tmpw,FALSE,FALSE,0);
gtk_widget_show (tmpw);
@ -130,43 +131,43 @@ void create_orientationpage(GtkNotebook *notebook)
i = pcvals.orienttype;
orientradio[0] = tmpw = gtk_radio_button_new_with_label(NULL, "Value");
orientradio[0] = tmpw = gtk_radio_button_new_with_label(NULL, _("Value"));
gtk_box_pack_start(GTK_BOX(box3), tmpw, FALSE, FALSE, 0);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), FALSE);
gtk_widget_show(tmpw);
gtk_signal_connect(GTK_OBJECT(tmpw), "clicked",
(GtkSignalFunc)orientchange, (void *)0);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Let the value (brightness) of the region determine the direction of the stroke", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Let the value (brightness) of the region determine the direction of the stroke"), NULL);
if(i == 0)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), TRUE);
orientradio[1] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), "Radius");
orientradio[1] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), _("Radius"));
gtk_box_pack_start(GTK_BOX(box3), tmpw, FALSE, FALSE, 0);
gtk_widget_show(tmpw);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), FALSE);
gtk_signal_connect(GTK_OBJECT(tmpw), "clicked",
(GtkSignalFunc)orientchange, (void *)1);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "The distance from the center of the image determines the direction of the stroke", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("The distance from the center of the image determines the direction of the stroke"), NULL);
if(i == 1)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), TRUE);
orientradio[2] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), "Random");
orientradio[2] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), _("Random"));
gtk_box_pack_start(GTK_BOX(box3), tmpw, FALSE, FALSE, 0);
gtk_widget_show(tmpw);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), FALSE);
gtk_signal_connect(GTK_OBJECT(tmpw), "clicked",
(GtkSignalFunc)orientchange, (void *)2);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Selects a random direction of each stroke", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Selects a random direction of each stroke"), NULL);
if(i == 2)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), TRUE);
orientradio[3] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), "Radial");
orientradio[3] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), _("Radial"));
gtk_box_pack_start(GTK_BOX(box3), tmpw, FALSE, FALSE, 0);
gtk_widget_show(tmpw);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), FALSE);
gtk_signal_connect(GTK_OBJECT(tmpw), "clicked",
(GtkSignalFunc)orientchange, (void *)3);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Let the direction from the center determine the direction of the stroke", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Let the direction from the center determine the direction of the stroke"), NULL);
if(i == 3)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), TRUE);
@ -175,35 +176,35 @@ void create_orientationpage(GtkNotebook *notebook)
gtk_widget_show(box3);
orientradio[4] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), "Flowing");
orientradio[4] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), _("Flowing"));
gtk_box_pack_start(GTK_BOX(box3), tmpw, FALSE, FALSE, 0);
gtk_widget_show(tmpw);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), FALSE);
gtk_signal_connect(GTK_OBJECT(tmpw), "clicked",
(GtkSignalFunc)orientchange, (void *)4);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "The strokes follow a \"flowing\" pattern", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("The strokes follow a \"flowing\" pattern"), NULL);
if(i == 4)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), TRUE);
orientradio[5] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), "Hue");
orientradio[5] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), _("Hue"));
gtk_box_pack_start(GTK_BOX(box3), tmpw, FALSE, FALSE, 0);
gtk_widget_show(tmpw);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), FALSE);
gtk_signal_connect(GTK_OBJECT(tmpw), "clicked",
(GtkSignalFunc)orientchange, (void *)5);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "The hue of the region determines the direction of the stroke", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("The hue of the region determines the direction of the stroke"), NULL);
if(i == 5)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), TRUE);
orientradio[6] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), "Adaptive");
orientradio[6] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), _("Adaptive"));
gtk_box_pack_start(GTK_BOX(box3), tmpw, FALSE, FALSE, 0);
gtk_widget_show(tmpw);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), FALSE);
gtk_signal_connect(GTK_OBJECT(tmpw), "clicked",
(GtkSignalFunc)orientchange, (void *)6);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "The direction that matches the original image the closest is selected", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("The direction that matches the original image the closest is selected"), NULL);
if(i == 6)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), TRUE);
@ -212,22 +213,22 @@ void create_orientationpage(GtkNotebook *notebook)
gtk_box_pack_start(GTK_BOX(box3), box4, FALSE, FALSE, 0);
gtk_widget_show(box4);
orientradio[7] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), "Manual");
orientradio[7] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), _("Manual"));
gtk_box_pack_start(GTK_BOX(box4), tmpw, FALSE, FALSE, 0);
gtk_widget_show(tmpw);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), FALSE);
gtk_signal_connect(GTK_OBJECT(tmpw), "clicked",
(GtkSignalFunc)orientchange, (void *)7);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Manually specify the stroke orientation", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Manually specify the stroke orientation"), NULL);
if(i == 7)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), TRUE);
tmpw = gtk_button_new_with_label("Edit...");
tmpw = gtk_button_new_with_label( _("Edit..."));
gtk_box_pack_start(GTK_BOX(box4), tmpw, FALSE, FALSE, 0);
gtk_widget_show(tmpw);
gtk_signal_connect(GTK_OBJECT(tmpw), "clicked",
(GtkSignalFunc)create_orientmap_dialog, NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Opens up the Orientation Map Editor", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Opens up the Orientation Map Editor"), NULL);
gtk_notebook_append_page_menu (notebook, thispage, labelbox, menubox);
}

View File

@ -5,6 +5,9 @@
#include <gtk/gtk.h>
#include "gimpressionist.h"
#include "ppmtool.h"
#include "config.h"
#include <libgimp/stdplugins-intl.h>
#define MAPFILE "data.out"
@ -455,7 +458,7 @@ void create_orientmap_dialog(void)
GTK_SIGNAL_FUNC(gtk_widget_hide_on_delete),
&omwindow);
gtk_window_set_title(GTK_WINDOW(omwindow), "Orientation Map Editor");
gtk_window_set_title(GTK_WINDOW(omwindow), _("Orientation Map Editor"));
gtk_container_border_width (GTK_CONTAINER(omwindow), 5);
@ -463,7 +466,7 @@ void create_orientmap_dialog(void)
gtk_widget_show(tmpw);
gtk_container_add(GTK_CONTAINER(omwindow), tmpw);
tmpw2 = tmpw = gtk_frame_new("Vectors");
tmpw2 = tmpw = gtk_frame_new( _("Vectors"));
gtk_container_border_width (GTK_CONTAINER (tmpw), 2);
gtk_table_attach(GTK_TABLE(table1), tmpw, 0,1,0,1,GTK_EXPAND,GTK_EXPAND,0,0);
gtk_widget_show(tmpw);
@ -473,7 +476,7 @@ void create_orientmap_dialog(void)
gtk_widget_show(tmpw);
tmpw = gtk_event_box_new();
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "The vector-field. Left-click to move selected vector, Right-click to point it towards mouse, Middle-click to add a new vector.", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("The vector-field. Left-click to move selected vector, Right-click to point it towards mouse, Middle-click to add a new vector."), NULL);
gtk_box_pack_start(GTK_BOX(hbox), tmpw, FALSE, FALSE, 0);
tmpw2 = tmpw;
@ -494,9 +497,9 @@ void create_orientmap_dialog(void)
gtk_widget_show(tmpw);
gtk_signal_connect(GTK_OBJECT(vectprevbrightadjust), "value_changed",
(GtkSignalFunc)updatevectorprev, NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Adjust the preview's brightness", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Adjust the preview's brightness"), NULL);
tmpw2 = tmpw = gtk_frame_new("Preview");
tmpw2 = tmpw = gtk_frame_new( _("Preview"));
gtk_container_border_width (GTK_CONTAINER (tmpw), 2);
gtk_table_attach(GTK_TABLE(table1), tmpw, 1,2,0,1,GTK_EXPAND,GTK_EXPAND,0,0);
gtk_widget_show(tmpw);
@ -516,28 +519,28 @@ void create_orientmap_dialog(void)
gtk_widget_show(tmpw);
gtk_signal_connect (GTK_OBJECT(tmpw), "clicked",
GTK_SIGNAL_FUNC(prevclick), NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Select previous vector", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Select previous vector"), NULL);
tmpw = gtk_button_new_with_label(">>");
gtk_box_pack_start(GTK_BOX(hbox),tmpw,FALSE,TRUE,0);
gtk_widget_show(tmpw);
gtk_signal_connect (GTK_OBJECT(tmpw), "clicked",
GTK_SIGNAL_FUNC(nextclick), NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Select next vector", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Select next vector"), NULL);
tmpw = gtk_button_new_with_label("Add");
tmpw = gtk_button_new_with_label( _("Add"));
gtk_box_pack_start(GTK_BOX(hbox),tmpw,FALSE,TRUE,0);
gtk_widget_show(tmpw);
gtk_signal_connect (GTK_OBJECT(tmpw), "clicked",
GTK_SIGNAL_FUNC(addclick), NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Add new vector", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Add new vector"), NULL);
tmpw = gtk_button_new_with_label("Kill");
tmpw = gtk_button_new_with_label( _("Kill"));
gtk_box_pack_start(GTK_BOX(hbox),tmpw,FALSE,TRUE,0);
gtk_widget_show(tmpw);
gtk_signal_connect (GTK_OBJECT(tmpw), "clicked",
GTK_SIGNAL_FUNC(deleteclick), NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Delete selected vector", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Delete selected vector"), NULL);
tmpw = table2 = gtk_table_new(2,2,FALSE);
@ -545,7 +548,7 @@ void create_orientmap_dialog(void)
gtk_table_attach_defaults(GTK_TABLE(table1), tmpw, 0,1,2,3);
gtk_widget_show(tmpw);
tmpw = gtk_label_new("Angle:");
tmpw = gtk_label_new( _("Angle:"));
gtk_widget_show(tmpw);
gtk_table_attach_defaults(GTK_TABLE(table2), tmpw, 0,1,0,1);
@ -557,9 +560,9 @@ void create_orientmap_dialog(void)
gtk_widget_show(tmpw);
gtk_signal_connect(GTK_OBJECT(angadjust), "value_changed",
(GtkSignalFunc)angadjmove, NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Change the angle of the selected vector", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Change the angle of the selected vector"), NULL);
tmpw = gtk_label_new("Strength:");
tmpw = gtk_label_new( _("Strength:"));
gtk_widget_show(tmpw);
gtk_table_attach_defaults(GTK_TABLE(table2), tmpw, 0,1,1,2);
@ -571,10 +574,10 @@ void create_orientmap_dialog(void)
gtk_widget_show(tmpw);
gtk_signal_connect(GTK_OBJECT(stradjust), "value_changed",
(GtkSignalFunc)stradjmove, NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Change the strength of the selected vector", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Change the strength of the selected vector"), NULL);
tmpw = gtk_label_new("Type:");
tmpw = gtk_label_new( _("Type:"));
gtk_widget_show(tmpw);
gtk_table_attach_defaults(GTK_TABLE(table2), tmpw, 0,1,2,3);
@ -584,13 +587,13 @@ void create_orientmap_dialog(void)
gtk_container_border_width (GTK_CONTAINER (tmpw), 2);
gtk_widget_show(tmpw);
vectypes[0] = tmpw = gtk_radio_button_new_with_label(NULL, "Normal");
vectypes[0] = tmpw = gtk_radio_button_new_with_label(NULL, _("Normal"));
gtk_box_pack_start(GTK_BOX(hbox),tmpw,FALSE,TRUE,0);
gtk_signal_connect (GTK_OBJECT(tmpw), "clicked",
GTK_SIGNAL_FUNC(vectypeclick), NULL);
gtk_widget_show(tmpw);
vectypes[1] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(vectypes[0])), "Vortex");
vectypes[1] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(vectypes[0])), _("Vortex"));
gtk_box_pack_start(GTK_BOX(hbox),tmpw,FALSE,TRUE,0);
gtk_signal_connect (GTK_OBJECT(tmpw), "clicked",
GTK_SIGNAL_FUNC(vectypeclick), NULL);
@ -602,13 +605,13 @@ void create_orientmap_dialog(void)
gtk_container_border_width (GTK_CONTAINER (tmpw), 2);
gtk_widget_show(tmpw);
vectypes[2] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(vectypes[0])), "Vortex2");
vectypes[2] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(vectypes[0])), _("Vortex2"));
gtk_box_pack_start(GTK_BOX(hbox),tmpw,FALSE,TRUE,0);
gtk_signal_connect (GTK_OBJECT(tmpw), "clicked",
GTK_SIGNAL_FUNC(vectypeclick), NULL);
gtk_widget_show(tmpw);
vectypes[3] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(vectypes[0])), "Vortex3");
vectypes[3] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(vectypes[0])), _("Vortex3"));
gtk_box_pack_start(GTK_BOX(hbox),tmpw,FALSE,TRUE,0);
gtk_signal_connect (GTK_OBJECT(tmpw), "clicked",
GTK_SIGNAL_FUNC(vectypeclick), NULL);
@ -620,26 +623,26 @@ void create_orientmap_dialog(void)
gtk_container_border_width (GTK_CONTAINER (tmpw), 2);
gtk_widget_show(tmpw);
tmpw = gtk_button_new_with_label("OK");
tmpw = gtk_button_new_with_label( _("OK"));
gtk_box_pack_start(GTK_BOX(hbox),tmpw,FALSE,TRUE,0);
gtk_widget_show(tmpw);
gtk_signal_connect (GTK_OBJECT(tmpw), "clicked",
GTK_SIGNAL_FUNC(omokclick), omwindow);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Apply and exit the editor", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Apply and exit the editor"), NULL);
tmpw = gtk_button_new_with_label("Apply");
tmpw = gtk_button_new_with_label( _("Apply"));
gtk_box_pack_start(GTK_BOX(hbox),tmpw,FALSE,TRUE,0);
gtk_widget_show(tmpw);
gtk_signal_connect (GTK_OBJECT(tmpw), "clicked",
GTK_SIGNAL_FUNC(omokclick), NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Apply, but stay inside the editor", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Apply, but stay inside the editor"), NULL);
tmpw = gtk_button_new_with_label("Cancel");
tmpw = gtk_button_new_with_label( _("Cancel"));
gtk_box_pack_start(GTK_BOX(hbox),tmpw,FALSE,TRUE,0);
gtk_widget_show(tmpw);
gtk_signal_connect (GTK_OBJECT(tmpw), "clicked",
GTK_SIGNAL_FUNC(omcancelclick), omwindow);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Cancel all changes and exit", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Cancel all changes and exit"), NULL);
tmpw = table2 = gtk_table_new(2,2,FALSE);
@ -647,7 +650,7 @@ void create_orientmap_dialog(void)
gtk_table_attach_defaults(GTK_TABLE(table1), tmpw, 1,2,2,3);
gtk_widget_show(tmpw);
tmpw = gtk_label_new("Strength exp.:");
tmpw = gtk_label_new( _("Strength exp.:"));
gtk_widget_show(tmpw);
gtk_table_attach_defaults(GTK_TABLE(table2), tmpw, 0,1,0,1);
@ -659,9 +662,9 @@ void create_orientmap_dialog(void)
gtk_widget_show(tmpw);
gtk_signal_connect(GTK_OBJECT(strexpadjust), "value_changed",
(GtkSignalFunc)strexpadjmove, NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Change the exponent of the strength", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Change the exponent of the strength"), NULL);
tmpw = gtk_label_new("Angle offset:");
tmpw = gtk_label_new( _("Angle offset:"));
gtk_widget_show(tmpw);
gtk_table_attach_defaults(GTK_TABLE(table2), tmpw, 0,1,1,2);
@ -673,9 +676,9 @@ void create_orientmap_dialog(void)
gtk_widget_show(tmpw);
gtk_signal_connect(GTK_OBJECT(angoffadjust), "value_changed",
(GtkSignalFunc)angoffadjmove, NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Offset all vectors with a given angle", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Offset all vectors with a given angle"), NULL);
orientvoronoi = tmpw = gtk_check_button_new_with_label("Voronoi");
orientvoronoi = tmpw = gtk_check_button_new_with_label( _("Voronoi"));
gtk_table_attach_defaults(GTK_TABLE(table2), tmpw, 0,1,2,3);
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(tmpw), FALSE);
gtk_widget_show (tmpw);
@ -683,7 +686,7 @@ void create_orientmap_dialog(void)
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(tmpw), TRUE);
gtk_signal_connect(GTK_OBJECT(tmpw), "clicked",
(GtkSignalFunc)angoffadjmove, NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Voronoi-mode makes only the vector closest to the given point have any influence", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Voronoi-mode makes only the vector closest to the given point have any influence"), NULL);
gtk_widget_show(omwindow);

View File

@ -13,6 +13,7 @@
#endif
#include "gimpressionist.h"
#include "ppmtool.h"
#include <libgimp/stdplugins-intl.h>
GtkWidget *paperlist = NULL;
@ -70,7 +71,7 @@ void selectpaper(GtkWidget *wg, GtkWidget *p)
gtk_label_get(GTK_LABEL(GTK_BIN(tmpw)->child), &l);
sprintf(fname, "Paper/%s", l);
sprintf(fname, _("Paper/%s"), l);
strcpy(pcvals.selectedpaper, fname);
updatepaperprev(fname);
}
@ -85,7 +86,7 @@ void create_paperpage(GtkNotebook *notebook)
GtkWidget *tmpw;
char title[100];
sprintf(title, "Paper");
sprintf(title, _("Paper"));
labelbox = gtk_hbox_new (FALSE, 0);
tmpw = gtk_label_new(title);
@ -129,7 +130,7 @@ void create_paperpage(GtkNotebook *notebook)
gtk_widget_show (box2);
gtk_container_border_width (GTK_CONTAINER (box2), 5);
tmpw = gtk_label_new("Paper Preview:");
tmpw = gtk_label_new( _("Paper Preview:"));
gtk_box_pack_start(GTK_BOX(box2), tmpw,FALSE,FALSE,0);
gtk_widget_show (tmpw);
@ -140,22 +141,22 @@ void create_paperpage(GtkNotebook *notebook)
/* updatepaperprev(NULL); */
paperinvert = tmpw = gtk_check_button_new_with_label("Invert");
paperinvert = tmpw = gtk_check_button_new_with_label( _("Invert"));
gtk_box_pack_start (GTK_BOX (box2), tmpw, FALSE, FALSE, 0);
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(tmpw), FALSE);
gtk_widget_show (tmpw);
gtk_signal_connect (GTK_OBJECT(tmpw), "clicked",
GTK_SIGNAL_FUNC(selectpaper),
list);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Inverts the Papers texture", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Inverts the Papers texture"), NULL);
if(pcvals.paperinvert)
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(tmpw), TRUE);
paperoverlay = tmpw = gtk_check_button_new_with_label("Overlay");
paperoverlay = tmpw = gtk_check_button_new_with_label( _("Overlay"));
gtk_box_pack_start (GTK_BOX (box2), tmpw, FALSE, FALSE, 0);
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(tmpw), FALSE);
gtk_widget_show (tmpw);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Applies the paper as it is (without embossing it)", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Applies the paper as it is (without embossing it)"), NULL);
if(pcvals.paperoverlay)
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(tmpw), TRUE);
@ -168,11 +169,11 @@ void create_paperpage(GtkNotebook *notebook)
gtk_box_pack_start(GTK_BOX(box1), box2,FALSE,FALSE,0);
gtk_widget_show (box2);
tmpw = gtk_label_new("Scale:");
tmpw = gtk_label_new( _("Scale:"));
gtk_box_pack_start(GTK_BOX(box2), tmpw,FALSE,FALSE,0);
gtk_widget_show (tmpw);
tmpw = gtk_label_new("Relief:");
tmpw = gtk_label_new( _("Relief:"));
gtk_box_pack_start(GTK_BOX(box2), tmpw,FALSE,FALSE,0);
gtk_widget_show (tmpw);
@ -187,7 +188,7 @@ void create_paperpage(GtkNotebook *notebook)
gtk_scale_set_digits(GTK_SCALE (tmpw), 2);
gtk_box_pack_start (GTK_BOX (box2), tmpw, FALSE, FALSE, 0);
gtk_widget_show (tmpw);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Specifies the scale of the texture (in percent of original file)", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Specifies the scale of the texture (in percent of original file)"), NULL);
paperreliefadjust = gtk_adjustment_new(pcvals.paperrelief, 0.0, 101.0, 1.0, 1.0, 1.0);
tmpw = gtk_hscale_new(GTK_ADJUSTMENT(paperreliefadjust));
@ -196,7 +197,7 @@ void create_paperpage(GtkNotebook *notebook)
gtk_scale_set_digits(GTK_SCALE (tmpw), 2);
gtk_box_pack_start (GTK_BOX (box2), tmpw, FALSE, FALSE, 0);
gtk_widget_show (tmpw);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Specifies the amount of embossing to apply to the image (in percent)", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Specifies the amount of embossing to apply to the image (in percent)"), NULL);
gtk_signal_connect (GTK_OBJECT(list), "selection_changed",

View File

@ -14,6 +14,7 @@
#endif
#include "gimpressionist.h"
#include "ppmtool.h"
#include <libgimp/stdplugins-intl.h>
#define NUMPLACERADIO 2
@ -48,7 +49,7 @@ void create_placementpage(GtkNotebook *notebook)
char title[100];
int i;
sprintf(title, "Placement");
sprintf(title, _("Placement"));
labelbox = gtk_hbox_new (FALSE, 0);
tmpw = gtk_label_new(title);
@ -76,7 +77,7 @@ void create_placementpage(GtkNotebook *notebook)
gtk_box_pack_start(GTK_BOX(box1), box2,FALSE,FALSE,0);
gtk_widget_show (box2);
tmpw = gtk_label_new("Placement:");
tmpw = gtk_label_new( _("Placement:"));
gtk_box_pack_start(GTK_BOX(box2), tmpw,FALSE,FALSE,0);
gtk_widget_show (tmpw);
@ -86,23 +87,23 @@ void create_placementpage(GtkNotebook *notebook)
i = pcvals.placetype;
placeradio[0] = tmpw = gtk_radio_button_new_with_label(NULL, "Randomly");
placeradio[0] = tmpw = gtk_radio_button_new_with_label(NULL, _("Randomly"));
gtk_box_pack_start(GTK_BOX(box3), tmpw, FALSE, FALSE, 0);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), FALSE);
gtk_widget_show(tmpw);
gtk_signal_connect(GTK_OBJECT(tmpw), "clicked",
(GtkSignalFunc)placechange, (void *)0);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Place strokes randomly around the image", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Place strokes randomly around the image"), NULL);
if(i == 0)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), TRUE);
placeradio[1] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), "Evenly distributed");
placeradio[1] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), _("Evenly distributed"));
gtk_box_pack_start(GTK_BOX(box3), tmpw, FALSE, FALSE, 0);
gtk_widget_show(tmpw);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), FALSE);
gtk_signal_connect(GTK_OBJECT(tmpw), "clicked",
(GtkSignalFunc)placechange, (void *)1);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "The strokes are evenly distributed across the image", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("The strokes are evenly distributed across the image"), NULL);
if(i == 1)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), TRUE);
@ -111,7 +112,7 @@ void create_placementpage(GtkNotebook *notebook)
gtk_box_pack_start(GTK_BOX(box0), box1,FALSE,FALSE,0);
gtk_widget_show (box1);
tmpw = gtk_label_new("Stroke density:");
tmpw = gtk_label_new( _("Stroke density:"));
gtk_box_pack_start(GTK_BOX(box1), tmpw,FALSE,FALSE,0);
gtk_widget_show (tmpw);
@ -122,13 +123,13 @@ void create_placementpage(GtkNotebook *notebook)
gtk_scale_set_digits(GTK_SCALE (tmpw), 2);
gtk_box_pack_start (GTK_BOX (box1), tmpw, FALSE, FALSE, 10);
gtk_widget_show (tmpw);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "The relative density of the brush strokes", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("The relative density of the brush strokes"), NULL);
placecenter = tmpw = gtk_check_button_new_with_label("Centerize");
placecenter = tmpw = gtk_check_button_new_with_label( _("Centerize"));
gtk_box_pack_start(GTK_BOX(box0), tmpw, FALSE, FALSE, 0);
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(tmpw), FALSE);
gtk_widget_show (tmpw);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Focus the brush strokes around the center of the image", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Focus the brush strokes around the center of the image"), NULL);
if(pcvals.placecenter)
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(tmpw), TRUE);

View File

@ -13,6 +13,7 @@
#include <math.h>
#include "ppmtool.h"
#include "gimpressionist.h"
#include <libgimp/stdplugins-intl.h>
int readline(FILE *f, char *buffer, int len)
{
@ -37,8 +38,8 @@ void *safemalloc(int len)
{
void *p = g_malloc(len);
if(!p) {
fprintf(stderr, "(When allocating %u bytes.)\n", len);
fatal("Out of memory!\n");
fprintf(stderr, _("(When allocating %u bytes.)\n"), len);
fatal( _("Out of memory!\n"));
}
return p;
}
@ -211,7 +212,7 @@ void loadgbr(char *fn, struct ppm *p)
if(p->col) killppm(p);
if(!f) {
fprintf(stderr, "loadgbr: Unable to open file \"%s\"!\n", fn);
fprintf(stderr, _("loadgbr: Unable to open file \"%s\"!\n"), fn);
newppm(p, 10,10);
return;
}
@ -253,7 +254,7 @@ void loadppm(char *fn, struct ppm *p)
if(p->col) killppm(p);
if(!f) {
fprintf(stderr, "loadppm: Unable to open file \"%s\"!\n", fn);
fprintf(stderr, _("loadppm: Unable to open file \"%s\"!\n"), fn);
newppm(p, 10,10);
return;
/* fatal("Aborting!"); */
@ -263,7 +264,7 @@ void loadppm(char *fn, struct ppm *p)
if(strcmp(line, "P6")) {
if(strcmp(line, "P5")) {
fclose(f);
printf("loadppm: File \"%s\" not PPM/PGM? (line=\"%s\")%c\n", fn, line, 7);
printf( _("loadppm: File \"%s\" not PPM/PGM? (line=\"%s\")%c\n"), fn, line, 7);
newppm(p, 10,10);
return;
/* fatal("Aborting!"); */
@ -275,7 +276,7 @@ void loadppm(char *fn, struct ppm *p)
p->height = atoi(strchr(line, ' ')+1);
readline(f, line, 200);
if(strcmp(line, "255")) {
printf("loadppm: File \"%s\" not valid PPM/PGM? (line=\"%s\")%c\n", fn, line, 7);
printf( _("loadppm: File \"%s\" not valid PPM/PGM? (line=\"%s\")%c\n"), fn, line, 7);
newppm(p, 10,10);
return;
/* fatal("Aborting!"); */

View File

@ -14,6 +14,7 @@
#include <ctype.h>
#include "gimpressionist.h"
#include "ppmtool.h"
#include <libgimp/stdplugins-intl.h>
GtkWidget *presetnameentry = NULL;
GtkWidget *presetsavebutton = NULL;
@ -49,7 +50,7 @@ int loadoldpreset(char *fname)
f = fopen(fname, "rb");
if(!f) {
fprintf(stderr, "Error opening file \"%s\" for reading!%c\n", fname, 7);
fprintf(stderr, _("Error opening file \"%s\" for reading!%c\n"), fname, 7);
return -1;
}
len = fread(&pcvals, 1, sizeof(pcvals), f);
@ -259,7 +260,7 @@ int loadpreset(char *fn)
f = fopen(fn, "rt");
if(!f) {
fprintf(stderr, "Error opening file \"%s\" for reading!\n", fn);
fprintf(stderr, _("Error opening file \"%s\" for reading!\n"), fn);
return -1;
}
fgets(line,10,f);
@ -369,7 +370,7 @@ void create_savepreset(void)
box = gtk_vbox_new(FALSE,5);
label = gtk_label_new("Description:");
label = gtk_label_new( _("Description:"));
gtk_box_pack_start(GTK_BOX(box),label,FALSE,FALSE,0);
gtk_widget_show (label);
@ -388,7 +389,7 @@ void create_savepreset(void)
(GtkSignalFunc) presetdesccallback,
NULL);
button = gtk_button_new_with_label ("OK");
button = gtk_button_new_with_label ( _("OK"));
gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
GTK_SIGNAL_FUNC (oksavepreset),
GTK_OBJECT(window));
@ -396,7 +397,7 @@ void create_savepreset(void)
gtk_widget_show (button);
button = gtk_button_new_with_label ("Cancel");
button = gtk_button_new_with_label ( _("Cancel"));
gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
GTK_SIGNAL_FUNC (gtk_widget_destroy),
GTK_OBJECT(window));
@ -424,7 +425,7 @@ void savepreset(GtkWidget *wg, GtkWidget *p)
storevals();
if(!thispath) {
fprintf(stderr, "Internal error: (savepreset) thispath == NULL");
fprintf(stderr, _("Internal error: (savepreset) thispath == NULL"));
return;
}
@ -432,7 +433,7 @@ void savepreset(GtkWidget *wg, GtkWidget *p)
f = fopen(fname, "wt");
if(!f) {
fprintf(stderr, "Error opening file \"%s\" for writing!%c\n", fname, 7);
fprintf(stderr, _("Error opening file \"%s\" for writing!%c\n"), fname, 7);
return;
}
fprintf(f, "%s\n", PRESETMAGIC);
@ -568,7 +569,7 @@ void create_presetpage(GtkNotebook *notebook)
GtkWidget *tmpw;
char title[100];
sprintf(title, "Presets");
sprintf(title, _("Presets"));
labelbox = gtk_hbox_new (FALSE, 0);
tmpw = gtk_label_new(title);
@ -596,13 +597,13 @@ void create_presetpage(GtkNotebook *notebook)
gtk_widget_set_usize(tmpw, 150, -1);
gtk_widget_show(tmpw);
presetsavebutton = tmpw = gtk_button_new_with_label(" Save current ");
presetsavebutton = tmpw = gtk_button_new_with_label( _(" Save current "));
gtk_box_pack_start(GTK_BOX(box1), tmpw,FALSE,FALSE,5);
gtk_widget_show (tmpw);
gtk_signal_connect (GTK_OBJECT(tmpw), "clicked",
GTK_SIGNAL_FUNC(create_savepreset),
NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Save the current settings to the specified file", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Save the current settings to the specified file"), NULL);
box1 = gtk_hbox_new (FALSE, 0);
gtk_box_pack_start(GTK_BOX(thispage), box1, TRUE, TRUE, 0);
@ -640,39 +641,39 @@ void create_presetpage(GtkNotebook *notebook)
gtk_widget_show (box2);
/* gtk_container_border_width (GTK_CONTAINER (box2), 5); */
tmpw = gtk_button_new_with_label(" Apply ");
tmpw = gtk_button_new_with_label( _(" Apply "));
gtk_box_pack_start(GTK_BOX(box2), tmpw,FALSE,FALSE,0);
gtk_widget_show (tmpw);
gtk_signal_connect (GTK_OBJECT(tmpw), "clicked",
GTK_SIGNAL_FUNC(applypreset),
NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Reads the selected Preset into memory", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Reads the selected Preset into memory"), NULL);
tmpw = gtk_button_new_with_label(" Delete ");
tmpw = gtk_button_new_with_label( _(" Delete "));
gtk_box_pack_start(GTK_BOX(box2), tmpw, FALSE, FALSE,0);
gtk_widget_show (tmpw);
gtk_signal_connect (GTK_OBJECT(tmpw), "clicked",
GTK_SIGNAL_FUNC(deletepreset),
NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Deletes the selected Preset", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Deletes the selected Preset"), NULL);
tmpw = gtk_button_new_with_label(" Refresh ");
tmpw = gtk_button_new_with_label( _(" Refresh "));
gtk_box_pack_start(GTK_BOX(box2), tmpw, FALSE, FALSE,0);
gtk_widget_show (tmpw);
gtk_signal_connect (GTK_OBJECT(tmpw), "clicked",
GTK_SIGNAL_FUNC(presetsrefresh),
NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Reread the directory of Presets", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Reread the directory of Presets"), NULL);
presetdesclabel = tmpw = gtk_label_new("(Desc)");
presetdesclabel = tmpw = gtk_label_new( _("(Desc)"));
gtk_box_pack_start(GTK_BOX(box2), tmpw, FALSE, FALSE,0);
gtk_widget_show(tmpw);
tmpw = gtk_label_new("\nIf you come up with some nice Presets,\n\
tmpw = gtk_label_new( _("\nIf you come up with some nice Presets,\n\
(or Brushes and Papers for that matter)\n\
feel free to send them to me <vidar@prosalg.no>\n\
for inclusion into the next release!\n");
for inclusion into the next release!\n"));
gtk_box_pack_start(GTK_BOX(thispage), tmpw, FALSE, FALSE, 0);
gtk_widget_show(tmpw);

View File

@ -11,6 +11,7 @@
#endif
#include "gimpressionist.h"
#include "ppmtool.h"
#include <libgimp/stdplugins-intl.h>
GtkWidget *previewprev = NULL;
GtkWidget *previewbutton = NULL;
@ -102,7 +103,7 @@ GtkWidget* create_preview()
box1 = gtk_vbox_new(FALSE, 0);
gtk_container_border_width (GTK_CONTAINER (box1), 5);
tmpw = gtk_label_new("Preview");
tmpw = gtk_label_new( _("Preview"));
gtk_box_pack_start(GTK_BOX(box1), tmpw, FALSE, FALSE, 0);
gtk_widget_show(tmpw);
@ -113,19 +114,19 @@ GtkWidget* create_preview()
box2 = gtk_hbox_new(TRUE, 0);
previewbutton = tmpw = gtk_button_new_with_label(" Update ");
previewbutton = tmpw = gtk_button_new_with_label( _(" Update "));
gtk_signal_connect(GTK_OBJECT(tmpw), "clicked",
(GtkSignalFunc)updatepreviewprev, (void *)1);
gtk_box_pack_start (GTK_BOX (box2), tmpw, TRUE, TRUE, 0);
gtk_widget_show(tmpw);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Refresh the Preview window", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Refresh the Preview window"), NULL);
resetpreviewbutton = tmpw = gtk_button_new_with_label(" Reset ");
resetpreviewbutton = tmpw = gtk_button_new_with_label( _(" Reset "));
gtk_signal_connect(GTK_OBJECT(tmpw), "clicked",
(GtkSignalFunc)updatepreviewprev, (void *)2);
gtk_box_pack_start (GTK_BOX (box2), tmpw, TRUE, TRUE, 0);
gtk_widget_show(tmpw);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Revert to the original image", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Revert to the original image"), NULL);
gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, FALSE, 0);
gtk_widget_show(box2);

View File

@ -16,6 +16,7 @@
#include "ppmtool.h"
#include <gtk/gtk.h>
#include <libgimp/gimp.h>
#include <libgimp/stdplugins-intl.h>
gimpressionist_vals_t runningvals;
@ -138,7 +139,7 @@ int bestbrush(struct ppm *p, struct ppm *a, int tx, int ty,
}
if(!brlist) {
fprintf(stderr, "What!? No brushes?!\n");
fprintf(stderr, _("What!? No brushes?!\n"));
return 0;
}
@ -278,7 +279,7 @@ void repaint(struct ppm *p, struct ppm *a)
/* Shouldn't be necessary, but... */
if(img_has_alpha)
if((p->width != a->width) || (p->height != a->height)) {
fprintf(stderr, "Huh? Image size != alpha size?\n");
fprintf(stderr, _("Huh? Image size != alpha size?\n"));
return;
}
@ -663,7 +664,7 @@ void repaint(struct ppm *p, struct ppm *a)
case 6: /* Adaptive */
break; /* Handled below */
default:
fprintf(stderr, "Internal error; Unknown orientationtype\n");
fprintf(stderr, _("Internal error; Unknown orientationtype\n"));
on = 0;
break;
}
@ -683,7 +684,7 @@ void repaint(struct ppm *p, struct ppm *a)
case 6: /* Adaptive */
break; /* Handled below */
default:
fprintf(stderr, "Internal error; Unknown sizetype\n");
fprintf(stderr, _("Internal error; Unknown sizetype\n"));
sn = 0;
break;
}
@ -859,9 +860,9 @@ void repaint(struct ppm *p, struct ppm *a)
}
} else {
#if GTK_MINOR_VERSION == 0
gtk_label_set(GTK_LABEL(GTK_BUTTON(previewbutton)->child), " Update ");
gtk_label_set(GTK_LABEL(GTK_BUTTON(previewbutton)->child), _(" Update "));
#else
gtk_label_set_text(GTK_LABEL(GTK_BUTTON(previewbutton)->child), " Update ");
gtk_label_set_text(GTK_LABEL(GTK_BUTTON(previewbutton)->child), _(" Update "));
#endif
}
running = 0;

View File

@ -14,7 +14,7 @@
#endif
#include "gimpressionist.h"
#include "ppmtool.h"
#include <libgimp/stdplugins-intl.h>
GtkObject *sizenumadjust = NULL;
GtkObject *sizefirstadjust = NULL;
@ -48,7 +48,7 @@ void create_sizepage(GtkNotebook *notebook)
char title[100];
int i;
sprintf(title, "Size");
sprintf(title, _("Size"));
labelbox = gtk_hbox_new (FALSE, 0);
tmpw = gtk_label_new(title);
@ -72,15 +72,15 @@ void create_sizepage(GtkNotebook *notebook)
gtk_box_pack_start(GTK_BOX(box1), box2,FALSE,FALSE,0);
gtk_widget_show (box2);
tmpw = gtk_label_new("Sizes:");
tmpw = gtk_label_new( _("Sizes:"));
gtk_box_pack_start(GTK_BOX(box2), tmpw,FALSE,FALSE,0);
gtk_widget_show (tmpw);
tmpw = gtk_label_new("Min size:");
tmpw = gtk_label_new( _("Min size:"));
gtk_box_pack_start(GTK_BOX(box2), tmpw,FALSE,FALSE,0);
gtk_widget_show (tmpw);
tmpw = gtk_label_new("Max size:");
tmpw = gtk_label_new( _("Max size:"));
gtk_box_pack_start(GTK_BOX(box2), tmpw,FALSE,FALSE,0);
gtk_widget_show (tmpw);
@ -95,7 +95,7 @@ void create_sizepage(GtkNotebook *notebook)
gtk_scale_set_draw_value (GTK_SCALE (tmpw), TRUE);
gtk_scale_set_digits(GTK_SCALE (tmpw), 0);
gtk_box_pack_start (GTK_BOX (box2), tmpw, FALSE, FALSE, 0);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "The number of directions (i.e. brushes) to use", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("The number of directions (i.e. brushes) to use"), NULL);
gtk_widget_show (tmpw);
sizefirstadjust = gtk_adjustment_new(pcvals.sizefirst, 0.0, 361.0, 1.0, 1.0, 1.0);
@ -104,7 +104,7 @@ void create_sizepage(GtkNotebook *notebook)
gtk_scale_set_draw_value (GTK_SCALE (tmpw), TRUE);
gtk_scale_set_digits(GTK_SCALE (tmpw), 2);
gtk_box_pack_start (GTK_BOX (box2), tmpw, FALSE, FALSE, 0);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "The smallest brush to create", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("The smallest brush to create"), NULL);
gtk_widget_show (tmpw);
sizelastadjust = gtk_adjustment_new(pcvals.sizelast, 0.0, 361.0, 1.0, 1.0, 1.0);
@ -113,14 +113,14 @@ void create_sizepage(GtkNotebook *notebook)
gtk_scale_set_draw_value (GTK_SCALE (tmpw), TRUE);
gtk_scale_set_digits(GTK_SCALE (tmpw), 2);
gtk_box_pack_start (GTK_BOX (box2), tmpw, FALSE, FALSE, 0);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "The largest brush to create", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("The largest brush to create"), NULL);
gtk_widget_show (tmpw);
box2 = gtk_hbox_new (FALSE, 0);
gtk_box_pack_start(GTK_BOX(thispage), box2,FALSE,FALSE,0);
gtk_widget_show (box2);
tmpw = gtk_label_new("Size:");
tmpw = gtk_label_new( _("Size:"));
gtk_box_pack_start(GTK_BOX(box2), tmpw,FALSE,FALSE,0);
gtk_widget_show (tmpw);
@ -130,43 +130,43 @@ void create_sizepage(GtkNotebook *notebook)
i = pcvals.sizetype;
sizeradio[0] = tmpw = gtk_radio_button_new_with_label(NULL, "Value");
sizeradio[0] = tmpw = gtk_radio_button_new_with_label(NULL, _("Value"));
gtk_box_pack_start(GTK_BOX(box3), tmpw, FALSE, FALSE, 0);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), FALSE);
gtk_widget_show(tmpw);
gtk_signal_connect(GTK_OBJECT(tmpw), "clicked",
(GtkSignalFunc)sizechange, (void *)0);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Let the value (brightness) of the region determine the size of the stroke", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Let the value (brightness) of the region determine the size of the stroke"), NULL);
if(i == 0)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), TRUE);
sizeradio[1] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), "Radius");
sizeradio[1] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), _("Radius"));
gtk_box_pack_start(GTK_BOX(box3), tmpw, FALSE, FALSE, 0);
gtk_widget_show(tmpw);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), FALSE);
gtk_signal_connect(GTK_OBJECT(tmpw), "clicked",
(GtkSignalFunc)sizechange, (void *)1);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "The distance from the center of the image determines the size of the stroke", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("The distance from the center of the image determines the size of the stroke"), NULL);
if(i == 1)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), TRUE);
sizeradio[2] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), "Random");
sizeradio[2] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), _("Random"));
gtk_box_pack_start(GTK_BOX(box3), tmpw, FALSE, FALSE, 0);
gtk_widget_show(tmpw);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), FALSE);
gtk_signal_connect(GTK_OBJECT(tmpw), "clicked",
(GtkSignalFunc)sizechange, (void *)2);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Selects a random size for each stroke", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Selects a random size for each stroke"), NULL);
if(i == 2)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), TRUE);
sizeradio[3] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), "Radial");
sizeradio[3] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), _("Radial"));
gtk_box_pack_start(GTK_BOX(box3), tmpw, FALSE, FALSE, 0);
gtk_widget_show(tmpw);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), FALSE);
gtk_signal_connect(GTK_OBJECT(tmpw), "clicked",
(GtkSignalFunc)sizechange, (void *)3);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Let the direction from the center determine the size of the stroke", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Let the direction from the center determine the size of the stroke"), NULL);
if(i == 3)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), TRUE);
@ -175,34 +175,34 @@ void create_sizepage(GtkNotebook *notebook)
gtk_widget_show(box3);
sizeradio[4] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), "Flowing");
sizeradio[4] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), _("Flowing"));
gtk_box_pack_start(GTK_BOX(box3), tmpw, FALSE, FALSE, 0);
gtk_widget_show(tmpw);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), FALSE);
gtk_signal_connect(GTK_OBJECT(tmpw), "clicked",
(GtkSignalFunc)sizechange, (void *)4);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "The strokes follow a \"flowing\" pattern", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("The strokes follow a \"flowing\" pattern"), NULL);
if(i == 4)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), TRUE);
sizeradio[5] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), "Hue");
sizeradio[5] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), _("Hue"));
gtk_box_pack_start(GTK_BOX(box3), tmpw, FALSE, FALSE, 0);
gtk_widget_show(tmpw);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), FALSE);
gtk_signal_connect(GTK_OBJECT(tmpw), "clicked",
(GtkSignalFunc)sizechange, (void *)5);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "The hue of the region determines the size of the stroke", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("The hue of the region determines the size of the stroke"), NULL);
if(i == 5)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), TRUE);
sizeradio[6] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), "Adaptive");
sizeradio[6] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), _("Adaptive"));
gtk_box_pack_start(GTK_BOX(box3), tmpw, FALSE, FALSE, 0);
gtk_widget_show(tmpw);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), FALSE);
gtk_signal_connect(GTK_OBJECT(tmpw), "clicked",
(GtkSignalFunc)sizechange, (void *)6);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "The brush-size that matches the original image the closest is selected", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("The brush-size that matches the original image the closest is selected"), NULL);
if(i == 6)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), TRUE);
@ -210,22 +210,22 @@ void create_sizepage(GtkNotebook *notebook)
gtk_box_pack_start(GTK_BOX(box3), box4, FALSE, FALSE, 0);
gtk_widget_show(box4);
sizeradio[7] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), "Manual");
sizeradio[7] = tmpw = gtk_radio_button_new_with_label(gtk_radio_button_group(GTK_RADIO_BUTTON(tmpw)), _("Manual"));
gtk_box_pack_start(GTK_BOX(box4), tmpw, FALSE, FALSE, 0);
gtk_widget_show(tmpw);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), FALSE);
gtk_signal_connect(GTK_OBJECT(tmpw), "clicked",
(GtkSignalFunc)sizechange, (void *)7);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Manually specify the stroke size", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Manually specify the stroke size"), NULL);
if(i == 7)
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (tmpw), TRUE);
tmpw = gtk_button_new_with_label("Edit...");
tmpw = gtk_button_new_with_label( _("Edit..."));
gtk_box_pack_start(GTK_BOX(box4), tmpw, FALSE, FALSE, 0);
gtk_widget_show(tmpw);
gtk_signal_connect(GTK_OBJECT(tmpw), "clicked",
(GtkSignalFunc)create_sizemap_dialog, NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Opens up the Size Map Editor", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Opens up the Size Map Editor"), NULL);
gtk_notebook_append_page_menu (notebook, thispage, labelbox, menubox);
}

View File

@ -5,6 +5,8 @@
#include <gtk/gtk.h>
#include "gimpressionist.h"
#include "ppmtool.h"
#include "config.h"
#include <libgimp/stdplugins-intl.h>
#define MAPFILE "data.out"
@ -356,7 +358,7 @@ void create_sizemap_dialog(void)
GTK_SIGNAL_FUNC(gtk_widget_hide_on_delete),
&smwindow);
gtk_window_set_title(GTK_WINDOW(smwindow), "Size Map Editor");
gtk_window_set_title(GTK_WINDOW(smwindow), _("Size Map Editor"));
gtk_container_border_width (GTK_CONTAINER(smwindow), 5);
@ -364,7 +366,7 @@ void create_sizemap_dialog(void)
gtk_widget_show(tmpw);
gtk_container_add(GTK_CONTAINER(smwindow), tmpw);
tmpw2 = tmpw = gtk_frame_new("Smvectors");
tmpw2 = tmpw = gtk_frame_new( _("Smvectors"));
gtk_container_border_width (GTK_CONTAINER (tmpw), 2);
gtk_table_attach(GTK_TABLE(table1), tmpw, 0,1,0,1,GTK_EXPAND,GTK_EXPAND,0,0);
gtk_widget_show(tmpw);
@ -374,7 +376,7 @@ void create_sizemap_dialog(void)
gtk_widget_show(tmpw);
tmpw = gtk_event_box_new();
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "The smvector-field. Left-click to move selected smvector, Right-click to point it towards mouse, Middle-click to add a new smvector.", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("The smvector-field. Left-click to move selected smvector, Right-click to point it towards mouse, Middle-click to add a new smvector."), NULL);
gtk_box_pack_start(GTK_BOX(hbox), tmpw, FALSE, FALSE, 0);
tmpw2 = tmpw;
@ -395,9 +397,9 @@ void create_sizemap_dialog(void)
gtk_widget_show(tmpw);
gtk_signal_connect(GTK_OBJECT(smvectprevbrightadjust), "value_changed",
(GtkSignalFunc)updatesmvectorprev, NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Adjust the preview's brightness", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Adjust the preview's brightness"), NULL);
tmpw2 = tmpw = gtk_frame_new("Preview");
tmpw2 = tmpw = gtk_frame_new( _("Preview"));
gtk_container_border_width (GTK_CONTAINER (tmpw), 2);
gtk_table_attach(GTK_TABLE(table1), tmpw, 1,2,0,1,GTK_EXPAND,GTK_EXPAND,0,0);
gtk_widget_show(tmpw);
@ -417,28 +419,28 @@ void create_sizemap_dialog(void)
gtk_widget_show(tmpw);
gtk_signal_connect (GTK_OBJECT(tmpw), "clicked",
GTK_SIGNAL_FUNC(smprevclick), NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Select previous smvector", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Select previous smvector"), NULL);
tmpw = gtk_button_new_with_label(">>");
gtk_box_pack_start(GTK_BOX(hbox),tmpw,FALSE,TRUE,0);
gtk_widget_show(tmpw);
gtk_signal_connect (GTK_OBJECT(tmpw), "clicked",
GTK_SIGNAL_FUNC(smnextclick), NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Select next smvector", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Select next smvector"), NULL);
tmpw = gtk_button_new_with_label("Add");
tmpw = gtk_button_new_with_label( _("Add"));
gtk_box_pack_start(GTK_BOX(hbox),tmpw,FALSE,TRUE,0);
gtk_widget_show(tmpw);
gtk_signal_connect (GTK_OBJECT(tmpw), "clicked",
GTK_SIGNAL_FUNC(smaddclick), NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Add new smvector", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Add new smvector"), NULL);
tmpw = gtk_button_new_with_label("Kill");
tmpw = gtk_button_new_with_label( _("Kill"));
gtk_box_pack_start(GTK_BOX(hbox),tmpw,FALSE,TRUE,0);
gtk_widget_show(tmpw);
gtk_signal_connect (GTK_OBJECT(tmpw), "clicked",
GTK_SIGNAL_FUNC(smdeleteclick), NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Delete selected smvector", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Delete selected smvector"), NULL);
tmpw = table2 = gtk_table_new(2,2,FALSE);
@ -446,7 +448,7 @@ void create_sizemap_dialog(void)
gtk_table_attach_defaults(GTK_TABLE(table1), tmpw, 0,1,2,3);
gtk_widget_show(tmpw);
tmpw = gtk_label_new("Size:");
tmpw = gtk_label_new( _("Size:"));
gtk_widget_show(tmpw);
gtk_table_attach_defaults(GTK_TABLE(table2), tmpw, 0,1,0,1);
@ -458,9 +460,9 @@ void create_sizemap_dialog(void)
gtk_widget_show(tmpw);
gtk_signal_connect(GTK_OBJECT(sizadjust), "value_changed",
(GtkSignalFunc)angsmadjmove, NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Change the angle of the selected smvector", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Change the angle of the selected smvector"), NULL);
tmpw = gtk_label_new("Strength:");
tmpw = gtk_label_new( _("Strength:"));
gtk_widget_show(tmpw);
gtk_table_attach_defaults(GTK_TABLE(table2), tmpw, 0,1,1,2);
@ -472,7 +474,7 @@ void create_sizemap_dialog(void)
gtk_widget_show(tmpw);
gtk_signal_connect(GTK_OBJECT(smstradjust), "value_changed",
(GtkSignalFunc)strsmadjmove, NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Change the strength of the selected smvector", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Change the strength of the selected smvector"), NULL);
tmpw = hbox = gtk_hbox_new(TRUE,0);
@ -480,26 +482,26 @@ void create_sizemap_dialog(void)
gtk_container_border_width (GTK_CONTAINER (tmpw), 2);
gtk_widget_show(tmpw);
tmpw = gtk_button_new_with_label("OK");
tmpw = gtk_button_new_with_label( _("OK"));
gtk_box_pack_start(GTK_BOX(hbox),tmpw,FALSE,TRUE,0);
gtk_widget_show(tmpw);
gtk_signal_connect (GTK_OBJECT(tmpw), "clicked",
GTK_SIGNAL_FUNC(smokclick), smwindow);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Apply and exit the editor", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Apply and exit the editor"), NULL);
tmpw = gtk_button_new_with_label("Apply");
tmpw = gtk_button_new_with_label( _("Apply"));
gtk_box_pack_start(GTK_BOX(hbox),tmpw,FALSE,TRUE,0);
gtk_widget_show(tmpw);
gtk_signal_connect (GTK_OBJECT(tmpw), "clicked",
GTK_SIGNAL_FUNC(smokclick), NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Apply, but stay inside the editor", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Apply, but stay inside the editor"), NULL);
tmpw = gtk_button_new_with_label("Cancel");
tmpw = gtk_button_new_with_label( _("Cancel"));
gtk_box_pack_start(GTK_BOX(hbox),tmpw,FALSE,TRUE,0);
gtk_widget_show(tmpw);
gtk_signal_connect (GTK_OBJECT(tmpw), "clicked",
GTK_SIGNAL_FUNC(smcancelclick), smwindow);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Cancel all changes and exit", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Cancel all changes and exit"), NULL);
tmpw = table2 = gtk_table_new(2,2,FALSE);
@ -507,7 +509,7 @@ void create_sizemap_dialog(void)
gtk_table_attach_defaults(GTK_TABLE(table1), tmpw, 1,2,2,3);
gtk_widget_show(tmpw);
tmpw = gtk_label_new("Strength exp.:");
tmpw = gtk_label_new( _("Strength exp.:"));
gtk_widget_show(tmpw);
gtk_table_attach_defaults(GTK_TABLE(table2), tmpw, 0,1,0,1);
@ -519,10 +521,10 @@ void create_sizemap_dialog(void)
gtk_widget_show(tmpw);
gtk_signal_connect(GTK_OBJECT(smstrexpadjust), "value_changed",
(GtkSignalFunc)smstrexpsmadjmove, NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Change the exponent of the strength", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Change the exponent of the strength"), NULL);
sizevoronoi = tmpw = gtk_check_button_new_with_label("Voronoi");
sizevoronoi = tmpw = gtk_check_button_new_with_label( _("Voronoi"));
gtk_table_attach_defaults(GTK_TABLE(table2), tmpw, 0,1,2,3);
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(tmpw), FALSE);
gtk_widget_show (tmpw);
@ -530,7 +532,7 @@ void create_sizemap_dialog(void)
gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(tmpw), TRUE);
gtk_signal_connect(GTK_OBJECT(tmpw), "clicked",
(GtkSignalFunc)smstrexpsmadjmove, NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, "Voronoi-mode makes only the smvector closest to the given point have any influence", NULL);
gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), tmpw, _("Voronoi-mode makes only the smvector closest to the given point have any influence"), NULL);
gtk_widget_show(smwindow);

View File

@ -8,6 +8,9 @@ mosaic_SOURCES = \
mosaic.c \
mosaic_logo.h
AM_CPPFLAGS = \
-DLOCALEDIR=\""$(localedir)"\"
INCLUDES = \
-I$(top_srcdir) \
$(GTK_CFLAGS) \

View File

@ -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");
frame = gtk_frame_new ( _("Parameter Settings"));
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
gtk_box_pack_start (GTK_BOX (main_hbox), frame, TRUE, TRUE, 0);
table = gtk_table_new (6, 2, FALSE);
gtk_container_border_width (GTK_CONTAINER (table), 5);
gtk_container_add (GTK_CONTAINER (frame), table);
label = gtk_label_new ("Tile Size");
label = gtk_label_new ( _("Tile Size"));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1, GTK_FILL, 0, 5, 0);
scale_data = gtk_adjustment_new (mvals.tile_size, 5.0, 100.0, 1.0, 1.0, 0.0);
@ -711,7 +717,7 @@ mosaic_dialog ()
gtk_widget_show (label);
gtk_widget_show (scale);
label = gtk_label_new ("Tile Height");
label = gtk_label_new ( _("Tile Height"));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2, GTK_FILL, 0, 5, 0);
scale_data = gtk_adjustment_new (mvals.tile_height, 1.0, 50.0, 1.0, 1.0, 0.0);
@ -726,7 +732,7 @@ mosaic_dialog ()
gtk_widget_show (label);
gtk_widget_show (scale);
label = gtk_label_new ("Tile Spacing");
label = gtk_label_new ( _("Tile Spacing"));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 2, 3, GTK_FILL, 0, 5, 0);
scale_data = gtk_adjustment_new (mvals.tile_spacing, 1.0, 50.0, 1.0, 1.0, 0.0);
@ -741,7 +747,7 @@ mosaic_dialog ()
gtk_widget_show (label);
gtk_widget_show (scale);
label = gtk_label_new ("Tile Neatness");
label = gtk_label_new ( _("Tile Neatness"));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 3, 4, GTK_FILL, 0, 5, 0);
scale_data = gtk_adjustment_new (mvals.tile_neatness, 0.0, 1.0, 0.01, 0.01, 0.0);
@ -757,7 +763,7 @@ mosaic_dialog ()
gtk_widget_show (label);
gtk_widget_show (scale);
label = gtk_label_new ("Light Direction");
label = gtk_label_new ( _("Light Direction"));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 4, 5, GTK_FILL, 0, 5, 0);
scale_data = gtk_adjustment_new (mvals.light_dir, 0.0, 360.0, 5.0, 5.0, 0.0);
@ -772,7 +778,7 @@ mosaic_dialog ()
gtk_widget_show (label);
gtk_widget_show (scale);
label = gtk_label_new ("Color Variation");
label = gtk_label_new ( _("Color Variation"));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 5, 6, GTK_FILL, 0, 5, 0);
scale_data = gtk_adjustment_new (mvals.color_variation, 0.0, 1.0, 0.01, 0.01, 0.0);
@ -2548,7 +2554,7 @@ polygon_add_point (Polygon *poly,
poly->npts++;
}
else
g_print ("Unable to add additional point.\n");
g_print ( _("Unable to add additional point.\n"));
}

View File

@ -8,6 +8,9 @@ struc_SOURCES = \
struc.c \
struc.h
AM_CPPFLAGS = \
-DLOCALEDIR=\""$(localedir)"\"
INCLUDES = \
-I$(top_srcdir) \
$(GTK_CFLAGS) \

View File

@ -36,7 +36,9 @@
#include <stdio.h>
#include "struc.h"
#include "gtk/gtk.h"
#include "config.h"
#include "libgimp/gimp.h"
#include "libgimp/stdplugins-intl.h"
/* --- Typedefs --- */
typedef struct {
@ -99,13 +101,15 @@ static void query ()
static int nargs = sizeof (args) / sizeof (args[0]);
static int nreturn_vals = 0;
INIT_I18N();
gimp_install_procedure ("plug_in_apply_canvas",
"Adds a canvas texture map to the picture",
"This function applies a canvas texture map to the drawable.",
_("Adds a canvas texture map to the picture"),
_("This function applies a canvas texture map to the drawable."),
"Karl-Johan Andersson", /* Author */
"Karl-Johan Andersson", /* Copyright */
"1997",
"<Image>/Filters/Artistic/Apply Canvas",
_("<Image>/Filters/Artistic/Apply Canvas"),
"RGB*, GRAY*",
PROC_PLUG_IN,
nargs, nreturn_vals,
@ -131,6 +135,12 @@ static void run (gchar *name,
values[0].type = PARAM_STATUS;
values[0].data.d_status = status;
if (run_mode == RUN_INTERACTIVE) {
INIT_I18N_UI();
} else {
INIT_I18N();
}
/* Get the specified drawable */
drawable = gimp_drawable_get (param[2].data.d_drawable);
@ -219,14 +229,14 @@ static gint struc_dialog(void)
gtk_rc_parse (gimp_gtkrc ());
dlg = gtk_dialog_new ();
gtk_window_set_title (GTK_WINDOW (dlg), "Struc");
gtk_window_set_title (GTK_WINDOW (dlg), _("Struc"));
gtk_window_position (GTK_WINDOW (dlg), GTK_WIN_POS_MOUSE);
gtk_container_border_width (GTK_CONTAINER (dlg), 0);
gtk_signal_connect (GTK_OBJECT(dlg), "destroy",
(GtkSignalFunc) struc_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) struc_ok_callback,
@ -235,7 +245,7 @@ static gint struc_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_object (GTK_OBJECT (button), "clicked",
(GtkSignalFunc) gtk_widget_destroy,
@ -249,7 +259,7 @@ static gint struc_dialog(void)
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox),
abox, FALSE, FALSE, 0);
oframe = gtk_frame_new ("Filter options");
oframe = gtk_frame_new ( _("Filter options"));
gtk_frame_set_shadow_type (GTK_FRAME (oframe), GTK_SHADOW_ETCHED_IN);
gtk_box_pack_start (GTK_BOX (abox),
oframe, TRUE, TRUE, 0);
@ -259,7 +269,7 @@ static gint struc_dialog(void)
gtk_container_add (GTK_CONTAINER (oframe), bbox);
/* Radio buttons */
iframe = gtk_frame_new ("Direction");
iframe = gtk_frame_new ( _("Direction"));
gtk_frame_set_shadow_type (GTK_FRAME (iframe), GTK_SHADOW_ETCHED_IN);
gtk_box_pack_start (GTK_BOX (bbox),
iframe, FALSE, FALSE, 0);
@ -270,14 +280,14 @@ static gint struc_dialog(void)
{
int i;
char * name[4]= {"Top-right", "Top-left", "Bottom-left", "Bottom-right"};
char * name[4]= { N_("Top-right"), N_("Top-left"), N_("Bottom-left"), N_("Bottom-right")};
button = NULL;
for (i=0; i < 4; i++)
{
button = gtk_radio_button_new_with_label (
(button==NULL) ? NULL :
gtk_radio_button_group (GTK_RADIO_BUTTON (button)), name[i]);
gtk_radio_button_group (GTK_RADIO_BUTTON (button)), gettext(name[i]));
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button),
(svals.direction==i));
@ -294,7 +304,7 @@ static gint struc_dialog(void)
gtk_widget_show(iframe);
/* Horizontal scale */
label=gtk_label_new ("Depth");
label=gtk_label_new ( _("Depth"));
gtk_misc_set_alignment (GTK_MISC(label), 0.0, 0.5);
gtk_box_pack_start (GTK_BOX(bbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);

View File

@ -5,6 +5,8 @@ plug-ins/common/CEL.c
plug-ins/common/CML_explorer.c
plug-ins/Lighting/lighting_main.c
plug-ins/Lighting/lighting_ui.c
plug-ins/common/animationplay.c
plug-ins/common/animoptimize.c
plug-ins/common/apply_lens.c
plug-ins/common/autocrop.c
plug-ins/common/autostretch_hsv.c
@ -25,11 +27,42 @@ plug-ins/common/cubism.c
plug-ins/common/decompose.c
plug-ins/common/depthmerge.c
plug-ins/common/destripe.c
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/common/gif.c
plug-ins/common/gifload.c
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/common/guillotine.c
plug-ins/common/jpeg.c
plug-ins/common/lic.c
plug-ins/common/mail.c
plug-ins/mosaic/mosaic.c
plug-ins/common/normalize.c
plug-ins/common/oilify.c
plug-ins/common/png.c
@ -41,7 +74,9 @@ plug-ins/common/ps.c
plug-ins/common/rotate.c
plug-ins/common/rotators.c
plug-ins/sel2path/sel2path.c
plug-ins/struc/struc.c
plug-ins/common/threshold_alpha.c
plug-ins/common/warp.c
plug-ins/common/xbm.c
plug-ins/common/xpm.c
plug-ins/common/xwd.c

View File

@ -3,3 +3,4 @@ Makefile.in
stamp-enums
stamp-groups
stamp-app
stamp-enum-code