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

plug-ins/common/hrz.c plug-ins/common/illusion.c plug-ins/common/iwarp.c

	* plug-ins/common/hrz.c
	* plug-ins/common/illusion.c
	* plug-ins/common/iwarp.c
	* plug-ins/common/jigsaw.c
	* plug-ins/common/laplace.c
	* po-plug-ins/POTFILES.in: added gettext support.

	* plug-ins/common/gauss_iir.c
	* plug-ins/common/gauss_rle.c
	* plug-ins/common/gicon.c
	* plug-ins/common/gif.c
	* plug-ins/common/gifload.c
	* plug-ins/common/gpb.c
	* plug-ins/common/gqbist.c
	* plug-ins/common/guillotine.c
 	* plug-ins/common/gz.c
	* plug-ins/common/jpeg.c
	* plug-ins/common/lic.c: unmarked unnecessary translation tag.

-- yasuhiro
parent 233e1915
1999-12-29 Shirasaki Yasuhiro <yasuhiro@gnome.gr.jp>
* plug-ins/common/hrz.c
* plug-ins/common/illusion.c
* plug-ins/common/iwarp.c
* plug-ins/common/jigsaw.c
* plug-ins/common/laplace.c
* po-plug-ins/POTFILES.in: added gettext support.
* plug-ins/common/gauss_iir.c
* plug-ins/common/gauss_rle.c
* plug-ins/common/gicon.c
* plug-ins/common/gif.c
* plug-ins/common/gifload.c
* plug-ins/common/gpb.c
* plug-ins/common/gqbist.c
* plug-ins/common/guillotine.c
* plug-ins/common/gz.c
* plug-ins/common/jpeg.c
* plug-ins/common/lic.c: unmarked unnecessary translation tag.
Tue Dec 28 20:26:34 CET 1999 Sven Neumann <sven@gimp.org>
 
* plug-ins/fp/fp.c
......
......@@ -264,7 +264,7 @@ static int spawn_gzip(char *filename, char* tmpname, char *parms, int *pid)
int tfd;
if (!(f = fopen(filename,"w"))){
g_message( _("gz: fopen failed: %s\n"), g_strerror(errno));
g_message("gz: fopen failed: %s\n", g_strerror(errno));
return -1;
}
......@@ -273,7 +273,7 @@ static int spawn_gzip(char *filename, char* tmpname, char *parms, int *pid)
/* make stdout for this process be the output file */
if (dup2(fileno(f),fileno(stdout)) == -1)
{
g_message ( _("gz: dup2 failed: %s\n"), g_strerror(errno));
g_message ("gz: dup2 failed: %s\n", g_strerror(errno));
close(tfd);
return -1;
}
......@@ -285,7 +285,7 @@ static int spawn_gzip(char *filename, char* tmpname, char *parms, int *pid)
close(tfd);
if (*pid == -1)
{
g_message ( _("gz: spawn failed: %s\n"), g_strerror(errno));
g_message ("gz: spawn failed: %s\n", g_strerror(errno));
return -1;
}
return 0;
......@@ -356,7 +356,7 @@ save_image (char *filename,
/* fork off a gzip process */
if ((pid = fork()) < 0)
{
g_message ( _("gz: fork failed: %s\n"), g_strerror(errno));
g_message ("gz: fork failed: %s\n", g_strerror(errno));
g_free (tmpname);
return -1;
}
......@@ -364,18 +364,18 @@ save_image (char *filename,
{
if (!(f = fopen(filename,"w"))) {
g_message( _("gz: fopen failed: %s\n"), g_strerror(errno));
g_message("gz: fopen failed: %s\n", g_strerror(errno));
g_free (tmpname);
_exit(127);
}
/* make stdout for this process be the output file */
if (-1 == dup2(fileno(f),fileno(stdout)))
g_message ( _("gz: dup2 failed: %s\n"), g_strerror(errno));
g_message ("gz: dup2 failed: %s\n", g_strerror(errno));
/* and gzip into it */
execlp ("gzip", "gzip", "-cf", tmpname, NULL);
g_message ( _("gz: exec failed: gzip: %s\n"), g_strerror(errno));
g_message ("gz: exec failed: gzip: %s\n", g_strerror(errno));
g_free (tmpname);
_exit(127);
}
......@@ -393,7 +393,7 @@ save_image (char *filename,
if (!WIFEXITED(status) ||
WEXITSTATUS(status) != 0)
{
g_message ( _("gz: gzip exited abnormally on file %s\n"), tmpname);
g_message ("gz: gzip exited abnormally on file %s\n", tmpname);
g_free (tmpname);
return 0;
}
......@@ -407,7 +407,7 @@ save_image (char *filename,
&secattr, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL))
== INVALID_HANDLE_VALUE)
{
g_message ( _("gz: CreateFile failed\n"));
g_message ("gz: CreateFile failed\n");
g_free (tmpname);
_exit (127);
}
......@@ -431,7 +431,7 @@ save_image (char *filename,
TRUE, NORMAL_PRIORITY_CLASS, NULL, NULL,
&startupinfo, &processinfo))
{
g_message ( _("gz: CreateProcess failed\n"));
g_message ("gz: CreateProcess failed\n");
g_free (tmpname);
_exit (127);
}
......@@ -486,7 +486,7 @@ load_image (char *filename, gint32 run_mode)
/* fork off a g(un)zip and wait for it */
if ((pid = fork()) < 0)
{
g_message ( _("gz: fork failed: %s\n"), g_strerror(errno));
g_message ("gz: fork failed: %s\n", g_strerror(errno));
g_free (tmpname);
return -1;
}
......@@ -494,7 +494,7 @@ load_image (char *filename, gint32 run_mode)
{
FILE* f;
if (!(f = fopen(tmpname,"w"))){
g_message( _("gz: fopen failed: %s\n"), g_strerror(errno));
g_message("gz: fopen failed: %s\n", g_strerror(errno));
g_free (tmpname);
_exit(127);
}
......@@ -503,12 +503,12 @@ load_image (char *filename, gint32 run_mode)
if (-1 == dup2(fileno(f),fileno(stdout)))
{
g_free (tmpname);
g_message ( _("gz: dup2 failed: %s\n"), g_strerror(errno));
g_message ("gz: dup2 failed: %s\n", g_strerror(errno));
}
/* and unzip into it */
execlp ("gzip", "gzip", "-cfd", filename, NULL);
g_message ( _("gz: exec failed: gunzip: %s\n"), g_strerror(errno));
g_message ("gz: exec failed: gunzip: %s\n", g_strerror(errno));
g_free (tmpname);
_exit(127);
}
......@@ -526,7 +526,7 @@ load_image (char *filename, gint32 run_mode)
if (!WIFEXITED(status) ||
WEXITSTATUS(status) != 0)
{
g_message ( _("gz: gzip exited abnormally on file %s\n"), filename);
g_message ("gz: gzip exited abnormally on file %s\n", filename);
g_free (tmpname);
return -1;
}
......@@ -540,7 +540,7 @@ load_image (char *filename, gint32 run_mode)
&secattr, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL))
== INVALID_HANDLE_VALUE)
{
g_message ( _("gz: CreateFile failed\n"));
g_message ("gz: CreateFile failed\n");
g_free (tmpname);
_exit (127);
}
......@@ -564,7 +564,7 @@ load_image (char *filename, gint32 run_mode)
TRUE, NORMAL_PRIORITY_CLASS, NULL, NULL,
&startupinfo, &processinfo))
{
g_message ( _("gz: CreateProcess failed: %d\n"), GetLastError ());
g_message ("gz: CreateProcess failed: %d\n", GetLastError ());
g_free (tmpname);
_exit (127);
}
......
......@@ -231,7 +231,7 @@ run (gchar *name,
}
else
{
gimp_message ( _("gauss_iir: cannot operate on indexed color images"));
gimp_message ( "gauss_iir: cannot operate on indexed color images");
status = STATUS_EXECUTION_ERROR;
}
......
......@@ -225,7 +225,7 @@ run (gchar *name,
}
else
{
gimp_message ( _("gauss_rle: cannot operate on indexed color images"));
gimp_message ( "gauss_rle: cannot operate on indexed color images");
status = STATUS_EXECUTION_ERROR;
}
......
......@@ -272,7 +272,7 @@ load_image (char *filename)
/* Open the requested file */
if (! (fp = fopen (filename, "r")))
{
fprintf (stderr, _("gicon: can't open \"%s\"\n"), filename);
fprintf (stderr, "gicon: can't open \"%s\"\n", filename);
return -1;
}
......@@ -280,7 +280,7 @@ load_image (char *filename)
fscanf (fp, "/* %s icon image format -- S. Kimball, P. Mattis */\n", name_buf);
if (strcmp ("GIMP", name_buf))
{
fprintf (stderr, _("Not a GIcon file: %s!\n"), filename);
fprintf (stderr, "Not a GIcon file: %s!\n", filename);
return -1;
}
......
......@@ -963,7 +963,7 @@ save_image (char *filename,
outfile = fopen (filename, "wb");
if (!outfile)
{
g_message (_("GIF: can't open %s\n"), filename);
g_message ("GIF: can't open %s\n", filename);
return FALSE;
}
......@@ -1518,7 +1518,7 @@ colorstobpp (int colors)
bpp = 8;
else
{
g_warning (_("GIF: colorstobpp - Eep! too many colours: %d\n"), colors);
g_warning ("GIF: colorstobpp - Eep! too many colours: %d\n", colors);
return 8;
}
......@@ -1534,7 +1534,7 @@ bpptocolors (int bpp)
if (bpp>8)
{
g_warning (_("GIF: bpptocolors - Eep! bpp==%d !\n"), bpp);
g_warning ("GIF: bpptocolors - Eep! bpp==%d !\n", bpp);
return 256;
}
......
......@@ -288,7 +288,7 @@ load_image (char *filename)
fd = fopen (filename, "rb");
if (!fd)
{
g_message (_("GIF: can't open \"%s\"\n"), filename);
g_message ("GIF: can't open \"%s\"\n", filename);
return -1;
}
......@@ -303,13 +303,13 @@ load_image (char *filename)
if (!ReadOK (fd, buf, 6))
{
g_message (_("GIF: error reading magic number\n"));
g_message ("GIF: error reading magic number\n");
return -1;
}
if (strncmp ((char *) buf, "GIF", 3) != 0)
{
g_message (_("GIF: not a GIF file\n"));
g_message ("GIF: not a GIF file\n");
return -1;
}
......@@ -318,13 +318,13 @@ load_image (char *filename)
if ((strcmp (version, "87a") != 0) && (strcmp (version, "89a") != 0))
{
g_message (_("GIF: bad version number, not '87a' or '89a'\n"));
g_message ("GIF: bad version number, not '87a' or '89a'\n");
return -1;
}
if (!ReadOK (fd, buf, 7))
{
g_message (_("GIF: failed to read screen descriptor\n"));
g_message ("GIF: failed to read screen descriptor\n");
return -1;
}
......@@ -340,14 +340,14 @@ load_image (char *filename)
/* Global Colormap */
if (ReadColorMap (fd, GifScreen.BitPixel, GifScreen.ColorMap, &GifScreen.GrayScale))
{
g_message (_("GIF: error reading global colormap\n"));
g_message ("GIF: error reading global colormap\n");
return -1;
}
}
if (GifScreen.AspectRatio != 0 && GifScreen.AspectRatio != 49)
{
g_message (_("GIF: warning - non-square pixels\n"));
g_message ("GIF: warning - non-square pixels\n");
}
......@@ -358,7 +358,7 @@ load_image (char *filename)
{
if (!ReadOK (fd, &c, 1))
{
g_message (_("GIF: EOF / read error on image data\n"));
g_message ("GIF: EOF / read error on image data\n");
return image_ID; /* will be -1 if failed on first image! */
}
......@@ -373,7 +373,7 @@ load_image (char *filename)
/* Extension */
if (!ReadOK (fd, &c, 1))
{
g_message (_("GIF: EOF / read error on extension function code\n"));
g_message ("GIF: EOF / read error on extension function code\n");
return image_ID; /* will be -1 if failed on first image! */
}
DoExtension (fd, c);
......@@ -383,7 +383,7 @@ load_image (char *filename)
if (c != ',')
{
/* Not a valid start character */
g_warning (_("GIF: bogus character 0x%02x, ignoring\n"), (int) c);
g_warning ("GIF: bogus character 0x%02x, ignoring\n", (int) c);
continue;
}
......@@ -391,7 +391,7 @@ load_image (char *filename)
if (!ReadOK (fd, buf, 9))
{
g_message (_("GIF: couldn't read left/top/width/height\n"));
g_message ("GIF: couldn't read left/top/width/height\n");
return image_ID; /* will be -1 if failed on first image! */
}
......@@ -403,7 +403,7 @@ load_image (char *filename)
{
if (ReadColorMap (fd, bitPixel, localColorMap, &grayScale))
{
g_message (_("GIF: error reading local colormap\n"));
g_message ("GIF: error reading local colormap\n");
return image_ID; /* will be -1 if failed on first image! */
}
image_ID = ReadImage (fd, filename, LM_to_uint (buf[4], buf[5]),
......@@ -461,7 +461,7 @@ ReadColorMap (FILE *fd,
{
if (!ReadOK (fd, rgb, sizeof (rgb)))
{
g_message (_("GIF: bad colormap\n"));
g_message ("GIF: bad colormap\n");
return TRUE;
}
......@@ -577,7 +577,7 @@ GetDataBlock (FILE *fd,
if (!ReadOK (fd, &count, 1))
{
g_message (_("GIF: error in getting DataBlock size\n"));
g_message ("GIF: error in getting DataBlock size\n");
return -1;
}
......@@ -585,7 +585,7 @@ GetDataBlock (FILE *fd,
if ((count != 0) && (!ReadOK (fd, buf, count)))
{
g_message (_("GIF: error in reading DataBlock\n"));
g_message ("GIF: error in reading DataBlock\n");
return -1;
}
......@@ -617,7 +617,7 @@ GetCode (FILE *fd,
{
if (curbit >= lastbit)
{
g_message (_("GIF: ran off the end of my bits\n"));
g_message ("GIF: ran off the end of my bits\n");
gimp_quit ();
}
return -1;
......@@ -729,7 +729,7 @@ LZWReadByte (FILE *fd,
;
if (count != 0)
g_print (_("GIF: missing EOD in data stream (common occurence)"));
g_print ("GIF: missing EOD in data stream (common occurence)");
return -2;
}
......@@ -746,7 +746,7 @@ LZWReadByte (FILE *fd,
*sp++ = table[1][code];
if (code == table[0][code])
{
g_message (_("GIF: circular table entry BIG ERROR\n"));
g_message ("GIF: circular table entry BIG ERROR\n");
gimp_quit ();
}
code = table[0][code];
......@@ -814,13 +814,13 @@ ReadImage (FILE *fd,
*/
if (!ReadOK (fd, &c, 1))
{
g_message (_("GIF: EOF / read error on image data\n"));
g_message ("GIF: EOF / read error on image data\n");
return -1;
}
if (LZWReadByte (fd, TRUE, c) < 0)
{
g_message (_("GIF: error while reading\n"));
g_message ("GIF: error while reading\n");
return -1;
}
......@@ -904,10 +904,10 @@ ReadImage (FILE *fd,
case 0x06:
case 0x07:
strcat(framename,_(" (unknown disposal)"));
g_message (_("GIF: Hmm... please forward this GIF to the "
"GIF plugin author!\n (adam@foxbox.org)\n"));
g_message ("GIF: Hmm... please forward this GIF to the "
"GIF plugin author!\n (adam@foxbox.org)\n");
break;
default: g_message (_("GIF: Something got corrupted.\n")); break;
default: g_message ("GIF: Something got corrupted.\n"); break;
}
previous_disposal = Gif89.disposal;
......@@ -936,12 +936,12 @@ ReadImage (FILE *fd,
dest = (guchar *) g_malloc (len * height);
if (verbose)
g_print (_("GIF: reading %d by %d%s GIF image, ncols=%d\n"),
len, height, interlace ? _(" interlaced") : "", ncols);
g_print ("GIF: reading %d by %d%s GIF image, ncols=%d\n",
len, height, interlace ? " interlaced" : "", ncols);
if (!alpha_frame && promote_to_rgb)
{
g_message (_("GIF: Ouchie! Can't handle non-alpha RGB frames.\n Please mail the plugin author. (adam@gimp.org)\n"));
g_message ("GIF: Ouchie! Can't handle non-alpha RGB frames.\n Please mail the plugin author. (adam@gimp.org)\n");
gimp_quit();
}
......@@ -1033,7 +1033,7 @@ ReadImage (FILE *fd,
fini:
if (LZWReadByte (fd, FALSE, c) >= 0)
g_print (_("GIF: too much input data, ignoring extra...\n"));
g_print ("GIF: too much input data, ignoring extra...\n");
gimp_pixel_rgn_init (&pixel_rgn, drawable, 0, 0, drawable->width, drawable->height, TRUE, FALSE);
gimp_pixel_rgn_set_rect (&pixel_rgn, dest, 0, 0, drawable->width, drawable->height);
......
......@@ -747,7 +747,7 @@ try_fwrite (gpointer buffer,
{
if (fwrite (buffer, size, nitems, file) < nitems)
{
g_message ( _("GPB: write error"));
g_message ("GPB: write error");
fclose (file);
return FALSE;
}
......@@ -904,7 +904,7 @@ gpb_save_image (char *filename,
if (!(gimp_drawable_has_alpha (drawable_ID)))
{
g_warning ( _("drawable has no alpha channel -- aborting!\n"));
g_warning ("drawable has no alpha channel -- aborting!\n");
return (FALSE);
}
......@@ -921,7 +921,7 @@ gpb_save_image (char *filename,
if (file == NULL)
{
g_message ( _("GPB: can't open \"%s\""), filename);
g_message ("GPB: can't open \"%s\"", filename);
return FALSE;
}
......@@ -961,7 +961,7 @@ gih_save_image (char *filename,
if (file == NULL)
{
g_message ( _("GPB: can't open \"%s\""), filename);
g_message ("GPB: can't open \"%s\"", filename);
return FALSE;
}
......
......@@ -566,7 +566,7 @@ int dialog_create()
gtk_widget_set_default_colormap (gtk_preview_get_cmap ());
dialog=gtk_dialog_new ();
gtk_window_set_title (GTK_WINDOW(dialog), _("G-Qbist 1.10"));
gtk_window_set_title (GTK_WINDOW(dialog), "G-Qbist 1.10");
gtk_signal_connect (GTK_OBJECT (dialog), "destroy",
(GtkSignalFunc) dialog_close,
NULL);
......
......@@ -158,7 +158,7 @@ guillotine(gint32 image_ID)
case ORIENTATION_HORIZONTAL:
num_hguides++; break;
default:
printf(_("Aie! Aie! Aie!\n"));
printf("Aie! Aie! Aie!\n");
gimp_quit();
}
guide_num = gimp_image_find_next_guide(image_ID, guide_num);
......@@ -168,12 +168,12 @@ guillotine(gint32 image_ID)
if (num_vguides+num_hguides)
{
printf(_("Yay... found %d horizontal guides and %d vertical guides.\n"),
printf("Yay... found %d horizontal guides and %d vertical guides.\n",
num_hguides, num_vguides);
}
else
{
printf(_("Poopy, no guides.\n"));
printf("Poopy, no guides.\n");
return;
}
......
......@@ -264,7 +264,7 @@ static int spawn_gzip(char *filename, char* tmpname, char *parms, int *pid)
int tfd;
if (!(f = fopen(filename,"w"))){
g_message( _("gz: fopen failed: %s\n"), g_strerror(errno));
g_message("gz: fopen failed: %s\n", g_strerror(errno));
return -1;
}
......@@ -273,7 +273,7 @@ static int spawn_gzip(char *filename, char* tmpname, char *parms, int *pid)
/* make stdout for this process be the output file */
if (dup2(fileno(f),fileno(stdout)) == -1)
{
g_message ( _("gz: dup2 failed: %s\n"), g_strerror(errno));
g_message ("gz: dup2 failed: %s\n", g_strerror(errno));
close(tfd);
return -1;
}
......@@ -285,7 +285,7 @@ static int spawn_gzip(char *filename, char* tmpname, char *parms, int *pid)
close(tfd);
if (*pid == -1)
{
g_message ( _("gz: spawn failed: %s\n"), g_strerror(errno));
g_message ("gz: spawn failed: %s\n", g_strerror(errno));
return -1;
}
return 0;
......@@ -356,7 +356,7 @@ save_image (char *filename,
/* fork off a gzip process */
if ((pid = fork()) < 0)
{
g_message ( _("gz: fork failed: %s\n"), g_strerror(errno));
g_message ("gz: fork failed: %s\n", g_strerror(errno));
g_free (tmpname);
return -1;
}
......@@ -364,18 +364,18 @@ save_image (char *filename,
{
if (!(f = fopen(filename,"w"))) {
g_message( _("gz: fopen failed: %s\n"), g_strerror(errno));
g_message("gz: fopen failed: %s\n", g_strerror(errno));
g_free (tmpname);
_exit(127);
}
/* make stdout for this process be the output file */
if (-1 == dup2(fileno(f),fileno(stdout)))
g_message ( _("gz: dup2 failed: %s\n"), g_strerror(errno));
g_message ("gz: dup2 failed: %s\n", g_strerror(errno));
/* and gzip into it */
execlp ("gzip", "gzip", "-cf", tmpname, NULL);
g_message ( _("gz: exec failed: gzip: %s\n"), g_strerror(errno));
g_message ("gz: exec failed: gzip: %s\n", g_strerror(errno));
g_free (tmpname);
_exit(127);
}
......@@ -393,7 +393,7 @@ save_image (char *filename,
if (!WIFEXITED(status) ||
WEXITSTATUS(status) != 0)
{
g_message ( _("gz: gzip exited abnormally on file %s\n"), tmpname);
g_message ("gz: gzip exited abnormally on file %s\n", tmpname);
g_free (tmpname);
return 0;
}
......@@ -407,7 +407,7 @@ save_image (char *filename,
&secattr, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL))
== INVALID_HANDLE_VALUE)
{
g_message ( _("gz: CreateFile failed\n"));
g_message ("gz: CreateFile failed\n");
g_free (tmpname);
_exit (127);
}
......@@ -431,7 +431,7 @@ save_image (char *filename,
TRUE, NORMAL_PRIORITY_CLASS, NULL, NULL,
&startupinfo, &processinfo))
{
g_message ( _("gz: CreateProcess failed\n"));
g_message ("gz: CreateProcess failed\n");
g_free (tmpname);
_exit (127);
}
......@@ -486,7 +486,7 @@ load_image (char *filename, gint32 run_mode)
/* fork off a g(un)zip and wait for it */
if ((pid = fork()) < 0)
{
g_message ( _("gz: fork failed: %s\n"), g_strerror(errno));
g_message ("gz: fork failed: %s\n", g_strerror(errno));
g_free (tmpname);
return -1;
}
......@@ -494,7 +494,7 @@ load_image (char *filename, gint32 run_mode)
{
FILE* f;
if (!(f = fopen(tmpname,"w"))){
g_message( _("gz: fopen failed: %s\n"), g_strerror(errno));
g_message("gz: fopen failed: %s\n", g_strerror(errno));
g_free (tmpname);
_exit(127);
}
......@@ -503,12 +503,12 @@ load_image (char *filename, gint32 run_mode)
if (-1 == dup2(fileno(f),fileno(stdout)))
{
g_free (tmpname);
g_message ( _("gz: dup2 failed: %s\n"), g_strerror(errno));
g_message ("gz: dup2 failed: %s\n", g_strerror(errno));
}
/* and unzip into it */
execlp ("gzip", "gzip", "-cfd", filename, NULL);
g_message ( _("gz: exec failed: gunzip: %s\n"), g_strerror(errno));
g_message ("gz: exec failed: gunzip: %s\n", g_strerror(errno));
g_free (tmpname);
_exit(127);
}
......@@ -526,7 +526,7 @@ load_image (char *filename, gint32 run_mode)
if (!WIFEXITED(status) ||
WEXITSTATUS(status) != 0)
{
g_message ( _("gz: gzip exited abnormally on file %s\n"), filename);
g_message ("gz: gzip exited abnormally on file %s\n", filename);
g_free (tmpname);