Commit c4a22120 authored by SHIRASAKI Yasuhiro's avatar SHIRASAKI Yasuhiro
Browse files

plug-ins/common/tga.c plug-ins/common/tiff.c plug-ins/common/tile.c

        * plug-ins/common/tga.c
        * plug-ins/common/tiff.c
        * plug-ins/common/tile.c
        * plug-ins/common/tileit.c
        * plug-ins/common/tiler.c
        * plug-ins/common/url.c
        * plug-ins/common/video.c
        * plug-ins/common/vinvert.c
        * plug-ins/common/vpropagate.c
        * po-plug-ins/POTFILES.in: added gettext support.

        * plug-ins/common/threshold_alpha.c: fixed typo.

-- yasuhiro
parent dc36f59d
2000-01-09 Shirasaki Yasuhiro <yasuhiro@gnome.gr.jp>
* plug-ins/common/tga.c
* plug-ins/common/tiff.c
* plug-ins/common/tile.c
* plug-ins/common/tileit.c
* plug-ins/common/tiler.c
* plug-ins/common/url.c
* plug-ins/common/video.c
* plug-ins/common/vinvert.c
* plug-ins/common/vpropagate.c
* po-plug-ins/POTFILES.in: added gettext support.
* plug-ins/common/threshold_alpha.c: fixed typo.
2000-01-08 Michael Natterer <mitch@gimp.org>
 
* plug-ins/common/plugin-defs.pl
......
......@@ -85,6 +85,7 @@
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
#include "libgimp/stdplugins-intl.h"
/* Round up a division to the nearest integer. */
#define ROUNDUP_DIVIDE(n,d) (((n) + (d - 1)) / (d))
......@@ -226,21 +227,23 @@ query ()
} ;
static int nsave_args = sizeof (save_args) / sizeof (save_args[0]);
INIT_I18N();
gimp_install_procedure ("file_tga_load",
"Loads files of Targa file format",
_("Loads files of Targa file format"),
"FIXME: write help for tga_load",
"Raphael FRANCOIS, Gordon Matzigkeit",
"Raphael FRANCOIS, Gordon Matzigkeit",
"1997",
"<Load>/TGA",
NULL,
NULL,
PROC_PLUG_IN,
nload_args, nload_return_vals,
load_args, load_return_vals);
gimp_install_procedure ("file_tga_save",
"saves files in the Targa file format",
_("saves files in the Targa file format"),
"FIXME: write help for tga_save",
"Raphael FRANCOIS, Gordon Matzigkeit",
"Raphael FRANCOIS, Gordon Matzigkeit",
......@@ -289,6 +292,7 @@ run (char *name,
if (strcmp (name, "file_tga_load") == 0)
{
INIT_I18N();
#ifdef PROFILE
times (&tbuf1);
#endif
......@@ -308,6 +312,7 @@ run (char *name,
}
else if (strcmp (name, "file_tga_save") == 0)
{
INIT_I18N_UI();
init_gtk ();
image_ID = param[1].data.d_int32;
......@@ -406,8 +411,7 @@ load_image (char *filename)
return -1;
}
name_buf = g_malloc (strlen (filename) + 11);
sprintf (name_buf, "Loading %s:", filename);
name_buf = g_strdup_printf( _("Loading %s:"), filename);
gimp_progress_init (name_buf);
g_free (name_buf);
......@@ -991,7 +995,7 @@ ReadImage (FILE *fp,
/* Continue initializing. */
layer_ID = gimp_layer_new (image_ID,
"Background",
_("Background"),
width, height,
dtype,
100,
......@@ -1173,8 +1177,7 @@ save_image (char *filename,
width = drawable->width;
height = drawable->height;
name_buf = (guchar *) g_malloc(strlen(filename) + 11);
sprintf((char *)name_buf, "Saving %s:", filename);
name_buf = g_strdup_printf( _("Saving %s:"), filename);
gimp_progress_init((char *)name_buf);
g_free(name_buf);
......@@ -1434,14 +1437,14 @@ save_dialog (void)
GtkWidget *frame;
GtkWidget *vbox;
dlg = gimp_dialog_new ("Save as TGA", "tga",
dlg = gimp_dialog_new (_("Save as TGA"), "tga",
gimp_plugin_help_func, "filters/tga.html",
GTK_WIN_POS_MOUSE,
FALSE, TRUE, FALSE,
"OK", save_ok_callback,
_("OK"), save_ok_callback,
NULL, NULL, NULL, TRUE, FALSE,
"Cancel", gtk_widget_destroy,
_("Cancel"), gtk_widget_destroy,
NULL, 1, NULL, FALSE, TRUE,
NULL);
......@@ -1451,7 +1454,7 @@ save_dialog (void)
NULL);
/* regular tga parameter settings */
frame = gtk_frame_new ("Targa Options");
frame = gtk_frame_new ( _("Targa Options"));
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);
......@@ -1460,7 +1463,7 @@ save_dialog (void)
gtk_container_add (GTK_CONTAINER (frame), vbox);
/* rle */
toggle = gtk_check_button_new_with_label ("RLE compression");
toggle = gtk_check_button_new_with_label ( _("RLE compression"));
gtk_box_pack_start (GTK_BOX (vbox), toggle, FALSE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) save_toggle_update,
......
/* threshold_alpha.c -- This is a plug-in for the GIMP (1.0's API)
* Author: Shuji Narazaki <narazaki@InetQ.or.jp>
* Time-stamp: <1999-09-05 04:24:02 yasuhiro>
* Time-stamp: <2000-01-09 13:25:30 yasuhiro>
* Version: 0.13A (the 'A' is for Adam who hacked in greyscale
* support - don't know if there's a more recent official
* version)
......@@ -387,7 +387,7 @@ ERROR_DIALOG (gint gtk_was_not_initialized, gchar *message)
gtk_rc_parse (gimp_gtkrc ());
}
dlg = gimp_dialog_new (_("Threshold Aplha"), "threshold_alpha",
dlg = gimp_dialog_new (_("Threshold Alpha"), "threshold_alpha",
gimp_plugin_help_func, "filters/threshold_alpha.html",
GTK_WIN_POS_MOUSE,
FALSE, TRUE, FALSE,
......
......@@ -35,8 +35,10 @@
#include <string.h>
#include <tiffio.h>
#include "config.h"
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
#include "libgimp/stdplugins-intl.h"
typedef struct
{
......@@ -158,8 +160,10 @@ query ()
};
static int nsave_args = sizeof (save_args) / sizeof (save_args[0]);
INIT_I18N();
gimp_install_procedure ("file_tiff_load",
"loads files of the tiff file format",
_("loads files of the tiff file format"),
"FIXME: write help for tiff_load",
"Spencer Kimball, Peter Mattis & Nick Lamb",
"Nick Lamb <njl195@zepler.org.uk>",
......@@ -171,7 +175,7 @@ query ()
load_args, load_return_vals);
gimp_install_procedure ("file_tiff_save",
"saves files in the tiff file format",
_("saves files in the tiff file format"),
"FIXME: write help for tiff_save",
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
......@@ -217,6 +221,7 @@ run (char *name,
if (strcmp (name, "file_tiff_load") == 0)
{
INIT_I18N();
image = load_image (param[1].data.d_string);
if (image != -1)
......@@ -244,6 +249,7 @@ run (char *name,
{
case RUN_INTERACTIVE:
case RUN_WITH_LAST_VALS:
INIT_I18N_UI();
init_gtk ();
export = gimp_export_image (&image, &drawable, "TIFF",
(CAN_HANDLE_RGB | CAN_HANDLE_GRAY | CAN_HANDLE_INDEXED |
......@@ -291,6 +297,7 @@ run (char *name,
break;
case RUN_NONINTERACTIVE:
INIT_I18N();
/* Make sure all the arguments are there! */
if (nparams != 6)
status = STATUS_CALLING_ERROR;
......@@ -369,8 +376,7 @@ load_image (char *filename)
gimp_quit ();
}
name = g_malloc (strlen (filename) + 12);
sprintf (name, "Loading %s:", filename);
name = g_strdup_printf( _("Loading %s:"), filename);
gimp_progress_init (name);
g_free (name);
......@@ -579,7 +585,7 @@ load_image (char *filename)
/* Allocate channel_data for all channels, even the background layer */
channel = g_new (channel_data, extra + 1);
layer = gimp_layer_new (image, "Background", cols, rows, layer_type,
layer = gimp_layer_new (image, _("Background"), cols, rows, layer_type,
100, NORMAL_MODE);
channel[0].ID= layer;
gimp_image_add_layer (image, layer, 0);
......@@ -588,7 +594,7 @@ load_image (char *filename)
if (extra > 0 && !worst_case) {
/* Add alpha channels as appropriate */
for (i= 1; i <= extra; ++i) {
channel[i].ID= gimp_channel_new(image, "TIFF Channel", cols, rows,
channel[i].ID= gimp_channel_new(image, _("TIFF Channel"), cols, rows,
100.0, colors);
gimp_image_add_channel(image, channel[i].ID, 0);
channel[i].drawable= gimp_drawable_get (channel[i].ID);
......@@ -1151,8 +1157,7 @@ static gint save_image (char *filename,
return 0;
}
name = malloc (strlen (filename) + 11);
sprintf (name, "Saving %s:", filename);
name = g_strdup_printf( _("Saving %s:"), filename);
gimp_progress_init (name);
free (name);
......@@ -1396,14 +1401,14 @@ save_dialog (void)
gint use_lzw = (tsvals.compression == COMPRESSION_LZW);
gint use_packbits = (tsvals.compression == COMPRESSION_PACKBITS);
dlg = gimp_dialog_new ("Save as TIFF", "tiff",
dlg = gimp_dialog_new ( _("Save as TIFF"), "tiff",
gimp_plugin_help_func, "filters/tiff.html",
GTK_WIN_POS_MOUSE,
FALSE, TRUE, FALSE,
"OK", save_ok_callback,
_("OK"), save_ok_callback,
NULL, NULL, NULL, TRUE, FALSE,
"Cancel", gtk_widget_destroy,
_("Cancel"), gtk_widget_destroy,
NULL, 1, NULL, FALSE, TRUE,
NULL);
......@@ -1416,7 +1421,7 @@ save_dialog (void)
hbox = gtk_hbox_new (FALSE, 6);
/* compression */
frame = gtk_frame_new ("Compression");
frame = gtk_frame_new ( _("Compression"));
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
gtk_container_set_border_width (GTK_CONTAINER (frame), 6);
gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, FALSE, 0);
......@@ -1426,7 +1431,7 @@ save_dialog (void)
gtk_container_add (GTK_CONTAINER (frame), toggle_vbox);
group = NULL;
toggle = gtk_radio_button_new_with_label (group, "None");
toggle = gtk_radio_button_new_with_label (group, _("None"));
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",
......@@ -1435,7 +1440,7 @@ save_dialog (void)
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), use_none);
gtk_widget_show (toggle);
toggle = gtk_radio_button_new_with_label (group, "LZW");
toggle = gtk_radio_button_new_with_label (group, _("LZW"));
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",
......@@ -1444,7 +1449,7 @@ save_dialog (void)
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), use_lzw);
gtk_widget_show (toggle);
toggle = gtk_radio_button_new_with_label (group, "Pack Bits");
toggle = gtk_radio_button_new_with_label (group, _("Pack Bits"));
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",
......@@ -1469,7 +1474,7 @@ save_dialog (void)
gtk_container_add (GTK_CONTAINER (frame), hbox);
gtk_widget_show (hbox);
label = gtk_label_new ("Comment:");
label = gtk_label_new ( _("Comment:"));
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
......
......@@ -23,10 +23,12 @@
#include <stdlib.h>
#include <string.h>
#include "config.h"
#include <gtk/gtk.h>
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
#include "libgimp/stdplugins-intl.h"
#define ENTRY_WIDTH 60
#define ENTRY_HEIGHT 25
......@@ -119,13 +121,15 @@ query ()
static int nargs = sizeof (args) / sizeof (args[0]);
static int nreturn_vals = sizeof (return_vals) / sizeof (return_vals[0]);
INIT_I18N();
gimp_install_procedure ("plug_in_tile",
"Create a new image which is a tiled version of the input drawable",
"This function creates a new image with a single layer sized to the specified 'new_width' and 'new_height' parameters. The specified drawable is tiled into this layer. The new layer will have the same type as the specified drawable and the new image will have a corresponding base type",
_("Create a new image which is a tiled version of the input drawable"),
_("This function creates a new image with a single layer sized to the specified 'new_width' and 'new_height' parameters. The specified drawable is tiled into this layer. The new layer will have the same type as the specified drawable and the new image will have a corresponding base type"),
"Spencer Kimball & Peter Mattis",
"Spencer Kimball & Peter Mattis",
"1996-1997",
"<Image>/Filters/Map/Tile...",
N_("<Image>/Filters/Map/Tile..."),
"RGB*, GRAY*, INDEXED*",
PROC_PLUG_IN,
nargs, nreturn_vals,
......@@ -161,6 +165,7 @@ run (char *name,
switch (run_mode)
{
case RUN_INTERACTIVE:
INIT_I18N_UI();
/* Possibly retrieve data */
gimp_get_data ("plug_in_tile", &tvals);
......@@ -170,6 +175,7 @@ run (char *name,
break;
case RUN_NONINTERACTIVE:
INIT_I18N();
/* Make sure all the arguments are there! */
if (nparams != 6)
status = STATUS_CALLING_ERROR;
......@@ -184,6 +190,7 @@ run (char *name,
break;
case RUN_WITH_LAST_VALS:
INIT_I18N();
/* Possibly retrieve data */
gimp_get_data ("plug_in_tile", &tvals);
break;
......@@ -195,7 +202,7 @@ run (char *name,
/* Make sure that the drawable is gray or RGB color */
if (status == STATUS_SUCCESS)
{
gimp_progress_init ("Tiling...");
gimp_progress_init ( _("Tiling..."));
gimp_tile_cache_ntiles (2 * (width + 1) / gimp_tile_width ());
values[1].data.d_image = tile (param[1].data.d_image, param[2].data.d_drawable, &new_layer);
......@@ -258,7 +265,7 @@ tile (gint32 image_id,
}
new_image_id = gimp_image_new (tvals.new_width, tvals.new_height, image_type);
*layer_id = gimp_layer_new (new_image_id, "Background",
*layer_id = gimp_layer_new (new_image_id, _("Background"),
tvals.new_width, tvals.new_height,
gimp_drawable_type (drawable_id),
100, NORMAL_MODE);
......@@ -381,14 +388,14 @@ tile_dialog (gint width, gint height)
tvals.new_width = width;
tvals.new_height = height;
dlg = gimp_dialog_new ("Tile", "tile",
dlg = gimp_dialog_new ( _("Tile"), "tile",
gimp_plugin_help_func, "filters/tile.html",
GTK_WIN_POS_MOUSE,
FALSE, TRUE, FALSE,
"OK", tile_ok_callback,
_("OK"), tile_ok_callback,
NULL, NULL, NULL, TRUE, FALSE,
"Cancel", gtk_widget_destroy,
_("Cancel"), gtk_widget_destroy,
NULL, 1, NULL, FALSE, TRUE,
NULL);
......@@ -398,7 +405,7 @@ tile_dialog (gint width, gint height)
NULL);
/* parameter settings */
frame = gtk_frame_new ("Tile to New Size");
frame = gtk_frame_new ( _("Tile to New Size"));
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
gtk_container_set_border_width (GTK_CONTAINER (frame), 6);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), frame, TRUE, TRUE, 0);
......@@ -409,7 +416,7 @@ tile_dialog (gint width, gint height)
gtk_table_set_row_spacings (GTK_TABLE (table), 2);
gtk_table_set_col_spacings (GTK_TABLE (table), 4);
label = gtk_label_new ("Width:");
label = gtk_label_new ( _("Width:"));
gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 0, 1,
GTK_FILL, GTK_FILL, 0, 0);
......@@ -426,7 +433,7 @@ tile_dialog (gint width, gint height)
&tvals.new_width);
gtk_widget_show (tint.width_entry);
label = gtk_label_new ("Height:");
label = gtk_label_new ( _("Height:"));
gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 1, 2,
GTK_FILL, GTK_FILL, 0, 0);
......@@ -443,7 +450,7 @@ tile_dialog (gint width, gint height)
&tvals.new_height);
gtk_widget_show (tint.height_entry);
toggle = gtk_check_button_new_with_label ("Constrain Ratio");
toggle = gtk_check_button_new_with_label ( _("Constrain Ratio"));
gtk_table_attach (GTK_TABLE (table), toggle, 0, 2, 2, 3,
GTK_EXPAND | GTK_FILL, GTK_FILL, 0, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
......@@ -452,7 +459,7 @@ tile_dialog (gint width, gint height)
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle), tvals.constrain);
gtk_widget_show (toggle);
toggle = gtk_check_button_new_with_label ("New Image");
toggle = gtk_check_button_new_with_label ( _("New Image"));
gtk_table_attach (GTK_TABLE (table), toggle, 0, 2, 3, 4,
GTK_EXPAND | GTK_FILL, GTK_FILL, 0, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
......
......@@ -41,12 +41,12 @@
#include <string.h>
#include <signal.h>
#include "config.h"
#include <gtk/gtk.h>
#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
#include "libgimp/stdplugins-intl.h"
/***** Magic numbers *****/
......@@ -211,13 +211,15 @@ query ()
static int nargs = sizeof (args) / sizeof (args[0]);
static int nreturn_vals = 0;
INIT_I18N();
gimp_install_procedure ("plug_in_small_tiles",
"Tiles image into smaller versions of the orginal",
_("Tiles image into smaller versions of the orginal"),
"More here later",
"Andy Thomas",
"Andy Thomas",
"1997",
"<Image>/Filters/Map/Small Tiles...",
N_("<Image>/Filters/Map/Small Tiles..."),
"RGB*, GRAY*",
PROC_PLUG_IN,
nargs, nreturn_vals,
......@@ -275,6 +277,7 @@ run (gchar *name,
switch (run_mode)
{
case RUN_INTERACTIVE:
INIT_I18N_UI();
gimp_get_data ("plug_in_tileit", &itvals);
if (! tileit_dialog())
{
......@@ -290,9 +293,11 @@ run (gchar *name,
{
itvals.numtiles = param[3].data.d_int32;
}
INIT_I18N();
break;
case RUN_WITH_LAST_VALS:
INIT_I18N();
gimp_get_data ("plug_in_tileit", &itvals);
break;
......@@ -306,7 +311,7 @@ run (gchar *name,
gimp_tile_cache_ntiles((drawable->width + gimp_tile_width() - 1) / gimp_tile_width());
gimp_progress_init ("Tiling ...");
gimp_progress_init ( _("Tiling..."));
do_tiles();
......@@ -371,14 +376,14 @@ tileit_dialog (void)
cache_preview (); /* Get the preview image and store it also set has_alpha */
/* Start buildng the dialog up */
dlg = gimp_dialog_new ("TileIt", "tileit",
dlg = gimp_dialog_new ( _("TileIt"), "tileit",
gimp_plugin_help_func, "filters/tileit.html",
GTK_WIN_POS_MOUSE,
FALSE, TRUE, FALSE,
"OK", tileit_ok_callback,
_("OK"), tileit_ok_callback,
NULL, NULL, NULL, TRUE, FALSE,
"Cancel", gtk_widget_destroy,
_("Cancel"), gtk_widget_destroy,
NULL, 1, NULL, FALSE, TRUE,
NULL);
......@@ -397,7 +402,7 @@ tileit_dialog (void)
gtk_box_pack_start (GTK_BOX (main_vbox), hbox, FALSE, FALSE, 0);
gtk_widget_show (hbox);
frame = gtk_frame_new ("Preview");
frame = gtk_frame_new ( _("Preview"));
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
gtk_box_pack_start (GTK_BOX (hbox), frame, FALSE, FALSE, 0);
gtk_widget_show (frame);
......@@ -427,7 +432,7 @@ tileit_dialog (void)
/* Area for buttons etc */
frame = gtk_frame_new ("Flipping");
frame = gtk_frame_new ( _("Flipping"));
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
gtk_box_pack_start (GTK_BOX (hbox), frame, TRUE, TRUE, 0);
gtk_widget_show (frame);
......@@ -441,7 +446,7 @@ tileit_dialog (void)
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
gtk_widget_show (hbox);
toggle = gtk_check_button_new_with_label ("Horizontal");
toggle = gtk_check_button_new_with_label ( _("Horizontal"));
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) tileit_hvtoggle_update,
......@@ -449,7 +454,7 @@ tileit_dialog (void)
gtk_widget_show (toggle);
res_call.htoggle = toggle;
toggle = gtk_check_button_new_with_label ("Vertical");
toggle = gtk_check_button_new_with_label ( _("Vertical"));
gtk_box_pack_start (GTK_BOX (hbox), toggle, TRUE, FALSE, 0);
gtk_signal_connect (GTK_OBJECT (toggle), "toggled",
(GtkSignalFunc) tileit_hvtoggle_update,
......@@ -457,7 +462,7 @@ tileit_dialog (void)
gtk_widget_show (toggle);
res_call.vtoggle = toggle;
xframe = gtk_frame_new("Applied to Tile");
xframe = gtk_frame_new( _("Applied to Tile"));
gtk_frame_set_shadow_type (GTK_FRAME (xframe), GTK_SHADOW_ETCHED_IN);
gtk_box_pack_start (GTK_BOX (vbox), xframe, FALSE, FALSE, 0);
gtk_widget_show(xframe);
......@@ -470,7 +475,7 @@ tileit_dialog (void)
gtk_container_add (GTK_CONTAINER (xframe), table);
gtk_widget_show (table);
toggle = gtk_radio_button_new_with_label (orientation_group, "All Tiles");
toggle = gtk_radio_button_new_with_label (orientation_group, _("All Tiles"));
orientation_group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
gtk_table_attach (GTK_TABLE (table), toggle, 0, 4, 0, 1,
GTK_FILL | GTK_EXPAND, GTK_FILL, 0, 0);
......@@ -480,7 +485,7 @@ tileit_dialog (void)
gtk_widget_show (toggle);
toggle = gtk_radio_button_new_with_label (orientation_group,
"Alternate Tiles");
_("Alternate Tiles"));
orientation_group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
gtk_table_attach (GTK_TABLE (table), toggle, 0, 4, 1, 2,
GTK_FILL | GTK_EXPAND, GTK_FILL, 0, 0);
......@@ -489,13 +494,14 @@ tileit_dialog (void)
(gpointer)ALT);
gtk_widget_show (toggle);
toggle = gtk_radio_button_new_with_label (orientation_group, "Explict Tile");
toggle = gtk_radio_button_new_with_label (orientation_group,
_("Explicit Tile"));
orientation_group = gtk_radio_button_group (GTK_RADIO_BUTTON (toggle));
gtk_table_attach (GTK_TABLE (table), toggle, 0, 1, 2, 4,
GTK_FILL | GTK_SHRINK, GTK_FILL, 0, 0);
gtk_widget_show (toggle);
label = gtk_label_new ("Row:");
label = gtk_label_new (_("Row:"));
gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
gtk_table_attach (GTK_TABLE (table), label, 1, 2, 2, 3,
GTK_FILL | GTK_SHRINK , GTK_FILL, 0, 0);
......@@ -516,7 +522,7 @@ tileit_dialog (void)
&exp_call);
exp_call.r_entry = entry;
label = gtk_label_new ("Column:");
label = gtk_label_new ( _("Column:"));
gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
gtk_widget_show (label);
gtk_table_attach (GTK_TABLE (table), label, 1, 2, 3, 4,
......@@ -541,7 +547,7 @@ tileit_dialog (void)
(GtkSignalFunc) tileit_toggle_update,
(gpointer)EXPLICT);
button = gtk_button_new_with_label ("Apply");
button = gtk_button_new_with_label ( _("Apply"));
gtk_widget_set_sensitive (button, FALSE);
gtk_table_attach (GTK_TABLE (table), button, 3, 4, 2, 4, 0, 0, 0, 0);
gtk_widget_show (button);
......@@ -551,7 +557,7 @@ tileit_dialog (void)
exp_call.applybut = button;
/* Widget for selecting the Opacity */
label = gtk_label_new ("Opacity:");
label = gtk_label_new ( _("Opacity:"));
gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
gtk_table_attach (GTK_TABLE (table), label, 0, 1, 4, 5,
GTK_FILL | GTK_SHRINK, GTK_FILL, 0, 0);
......@@ -588,7 +594,7 @@ tileit_dialog (void)
gtk_widget_set_sensitive (entry,FALSE);
gtk_widget_show (entry);
button = gtk_button_new_with_label ("Reset");
button = gtk_button_new_with_label ( _("Reset"));
gtk_box_pack_start (GTK_BOX (vbox), button, FALSE, FALSE, 0);
gtk_widget_show (button);
gtk_signal_connect(GTK_OBJECT(button), "clicked",
......@@ -599,7 +605,7 @@ tileit_dialog (void)
/* Lower frame saying howmany segments */
frame = gtk_frame_new ("Segment Setting");
frame = gtk_frame_new ( _("Segment Setting"));
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_IN);
gtk_box_pack_start (GTK_BOX (main_vbox), frame, FALSE, FALSE, 0);
gtk_widget_show (frame);
......