diff --git a/ChangeLog b/ChangeLog index df13af144d..df58503aa8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,24 @@ +1999-12-29 Shirasaki Yasuhiro + + * 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 * plug-ins/fp/fp.c diff --git a/plug-ins/common/compressor.c b/plug-ins/common/compressor.c index d22495a734..9367ecf0e1 100644 --- a/plug-ins/common/compressor.c +++ b/plug-ins/common/compressor.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); } diff --git a/plug-ins/common/gauss_iir.c b/plug-ins/common/gauss_iir.c index 7f8dd0735a..2600065532 100644 --- a/plug-ins/common/gauss_iir.c +++ b/plug-ins/common/gauss_iir.c @@ -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; } diff --git a/plug-ins/common/gauss_rle.c b/plug-ins/common/gauss_rle.c index 9dbdfba07a..1529c765b3 100644 --- a/plug-ins/common/gauss_rle.c +++ b/plug-ins/common/gauss_rle.c @@ -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; } diff --git a/plug-ins/common/gicon.c b/plug-ins/common/gicon.c index d3da29e931..dd112cb194 100644 --- a/plug-ins/common/gicon.c +++ b/plug-ins/common/gicon.c @@ -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; } diff --git a/plug-ins/common/gif.c b/plug-ins/common/gif.c index 049e090d8c..28f6332e46 100644 --- a/plug-ins/common/gif.c +++ b/plug-ins/common/gif.c @@ -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; } diff --git a/plug-ins/common/gifload.c b/plug-ins/common/gifload.c index 3dee6dc045..224114a5fd 100644 --- a/plug-ins/common/gifload.c +++ b/plug-ins/common/gifload.c @@ -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); diff --git a/plug-ins/common/gpb.c b/plug-ins/common/gpb.c index 10d2632d91..f280ba64dc 100644 --- a/plug-ins/common/gpb.c +++ b/plug-ins/common/gpb.c @@ -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; } diff --git a/plug-ins/common/gqbist.c b/plug-ins/common/gqbist.c index b176c136ca..0a72b27cd6 100644 --- a/plug-ins/common/gqbist.c +++ b/plug-ins/common/gqbist.c @@ -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); diff --git a/plug-ins/common/guillotine.c b/plug-ins/common/guillotine.c index 9b46260fd4..84064157ea 100644 --- a/plug-ins/common/guillotine.c +++ b/plug-ins/common/guillotine.c @@ -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; } diff --git a/plug-ins/common/gz.c b/plug-ins/common/gz.c index d22495a734..9367ecf0e1 100644 --- a/plug-ins/common/gz.c +++ b/plug-ins/common/gz.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); } diff --git a/plug-ins/common/hrz.c b/plug-ins/common/hrz.c index 6a25f96227..e7110a54d1 100644 --- a/plug-ins/common/hrz.c +++ b/plug-ins/common/hrz.c @@ -63,7 +63,7 @@ #include "gtk/gtk.h" #include "libgimp/gimp.h" #include "libgimp/gimpui.h" - +#include "libgimp/stdplugins-intl.h" /* Declare local data types */ @@ -150,9 +150,11 @@ query () }; static int nsave_args = sizeof (save_args) / sizeof (save_args[0]); + INIT_I18N(); + gimp_install_procedure ("file_hrz_load", - "loads files of the hrz file format", - "FIXME: write help for hrz_load", + _("loads files of the hrz file format"), + _("FIXME: write help for hrz_load"), "Albert Cahalan", "Albert Cahalan", "1997", @@ -163,8 +165,8 @@ query () load_args, load_return_vals); gimp_install_procedure ("file_hrz_save", - "saves files in the hrz file format", - "HRZ saving handles all image types except those with alpha channels.", + _("saves files in the hrz file format"), + _("HRZ saving handles all image types except those with alpha channels."), "Albert Cahalan", "Albert Cahalan", "1997", @@ -201,6 +203,7 @@ run (char *name, if (strcmp (name, "file_hrz_load") == 0) { + INIT_I18N(); image_ID = load_image (param[1].data.d_string); if (image_ID != -1) @@ -225,6 +228,7 @@ run (char *name, { case RUN_INTERACTIVE: case RUN_WITH_LAST_VALS: + INIT_I18N_UI(); init_gtk (); export = gimp_export_image (&image_ID, &drawable_ID, "HRZ", (CAN_HANDLE_RGB | CAN_HANDLE_GRAY)); @@ -235,6 +239,7 @@ run (char *name, } break; default: + INIT_I18N(); break; } @@ -317,7 +322,7 @@ load_image (char *filename) struct stat statbuf; /* must check file size */ temp = g_malloc (strlen (filename) + 11); - sprintf (temp, "Loading %s:", filename); + sprintf (temp, _("Loading %s:"), filename); gimp_progress_init (temp); g_free (temp); @@ -358,7 +363,7 @@ load_image (char *filename) image_ID = gimp_image_new (256, 240, RGB); gimp_image_set_filename (image_ID, filename); - layer_ID = gimp_layer_new (image_ID, "Background", + layer_ID = gimp_layer_new (image_ID, _("Background"), 256, 240, RGB_IMAGE, 100, NORMAL_MODE); gimp_image_add_layer (image_ID, layer_ID, 0); @@ -455,7 +460,7 @@ save_image (char *filename, } temp = g_malloc (strlen (filename) + 11); - sprintf (temp, "Saving %s:", filename); + sprintf (temp, _("Saving %s:"), filename); gimp_progress_init (temp); g_free (temp); @@ -518,7 +523,7 @@ save_dialog () GtkWidget *button; dlg = gtk_dialog_new (); - gtk_window_set_title (GTK_WINDOW (dlg), "Save as HRZ"); + gtk_window_set_title (GTK_WINDOW (dlg), _("Save as HRZ")); gtk_window_position (GTK_WINDOW (dlg), GTK_WIN_POS_MOUSE); gtk_signal_connect (GTK_OBJECT (dlg), "destroy", (GtkSignalFunc) save_close_callback, @@ -532,7 +537,7 @@ save_dialog () gtk_box_pack_end (GTK_BOX (GTK_DIALOG (dlg)->action_area), hbbox, FALSE, FALSE, 0); gtk_widget_show (hbbox); - 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) save_ok_callback, @@ -541,7 +546,7 @@ save_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, diff --git a/plug-ins/common/illusion.c b/plug-ins/common/illusion.c index 66a0586956..8f411a40d2 100644 --- a/plug-ins/common/illusion.c +++ b/plug-ins/common/illusion.c @@ -21,17 +21,17 @@ *******************************************************************************/ +#include "config.h" #include #include #include #include #include "libgimp/gimp.h" +#include "libgimp/stdplugins-intl.h" #define PLUG_IN_NAME "plug_in_illusion" #define PLUG_IN_VERSION "v0.7 (Dec. 25 1997)" -#define DIALOG_CAPTION "Illusion" - #ifndef PI #define PI 3.141592653589793238462643383279 #endif @@ -96,14 +96,16 @@ static void query( void ) static int nreturn_vals = 0; static GParamDef *return_vals = NULL; + INIT_I18N(); + gimp_install_procedure( PLUG_IN_NAME, - "produce illusion", - "produce illusion", + _("produce illusion"), + _("produce illusion"), "Hirotsuna Mizuno ", "Hirotsuna Mizuno", PLUG_IN_VERSION, - "/Filters/Map/Illusion...", + N_("/Filters/Map/Illusion..."), "RGB*, GRAY*", PROC_PLUG_IN, nargs, @@ -147,6 +149,7 @@ static void run( char *name, switch( run_mode ){ case RUN_INTERACTIVE: + INIT_I18N_UI(); gimp_get_data( PLUG_IN_NAME, ¶meters ); if( ! dialog() ) return; gimp_set_data( PLUG_IN_NAME, ¶meters, sizeof( parameter_t ) ); @@ -299,7 +302,7 @@ static int dialog( void ) { gint argc = 1; gchar **argv = g_new( gchar *, 1 ); - argv[0] = g_strdup( DIALOG_CAPTION ); + argv[0] = g_strdup( _("Illusion") ); gtk_init( &argc, &argv ); gtk_rc_parse( gimp_gtkrc () ); } @@ -316,7 +319,7 @@ static int dialog( void ) GtkWidget *button; /* ok button */ - button = gtk_button_new_with_label( "OK" ); + button = gtk_button_new_with_label( _("OK") ); gtk_signal_connect( GTK_OBJECT( button ), "clicked", GTK_SIGNAL_FUNC( dialog_ok_handler ), GTK_OBJECT( window ) ); @@ -327,7 +330,7 @@ static int dialog( void ) gtk_widget_show( button ); /* cancel button */ - button = gtk_button_new_with_label( "Cancel" ); + button = gtk_button_new_with_label( _("Cancel") ); gtk_signal_connect( GTK_OBJECT( button ), "clicked", GTK_SIGNAL_FUNC( dialog_cancel_handler ), GTK_OBJECT( window )) ; @@ -351,7 +354,7 @@ static int dialog( void ) gtk_widget_show( table ); /* tile width */ - label = gtk_label_new( "division: " ); + label = gtk_label_new( _("division: ") ); entry_division = gtk_entry_new(); sprintf( buffer, "%d", parameters.division ); gtk_entry_set_text( GTK_ENTRY( entry_division ), buffer ); diff --git a/plug-ins/common/iwarp.c b/plug-ins/common/iwarp.c index d6b299dcfd..118d5aa641 100644 --- a/plug-ins/common/iwarp.c +++ b/plug-ins/common/iwarp.c @@ -45,6 +45,7 @@ #include "gtk/gtk.h" #include "libgimp/gimp.h" +#include "libgimp/stdplugins-intl.h" #define MAX_PREVIEW_WIDTH 256 #define MAX_PREVIEW_HEIGHT 256 @@ -232,13 +233,15 @@ query () static int nargs = sizeof (args) / sizeof (args[0]); static int nreturn_vals = 0; + INIT_I18N(); + gimp_install_procedure ("plug_in_iwarp", - "Interactive warping of the specified drawable", - "Interactive warping of the specified drawable ", + _("Interactive warping of the specified drawable"), + _("Interactive warping of the specified drawable"), "Norbert Schmitz", "Norbert Schmitz", "1997", - "/Filters/Distorts/IWarp...", + N_("/Filters/Distorts/IWarp..."), "RGB*, GRAY*", PROC_PLUG_IN, nargs, nreturn_vals, @@ -265,6 +268,7 @@ run (char *name, if (gimp_drawable_is_rgb (drawable->id) || gimp_drawable_is_gray (drawable->id)) { switch ( run_mode) { case RUN_INTERACTIVE : + INIT_I18N_UI(); gimp_get_data("plug_in_iwarp",&iwarp_vals); gimp_tile_cache_ntiles(2*(drawable->width +gimp_tile_width()-1) / gimp_tile_width()); if (iwarp_dialog()) iwarp(); @@ -529,7 +533,7 @@ iwarp_frame() max_progress = (yh-yl)*(xh-xl); gimp_pixel_rgn_init (&dest_rgn, destdrawable, xl, yl, xh-xl, yh-yl, TRUE, TRUE); - if (!do_animate) gimp_progress_init("Warping ..."); + if (!do_animate) gimp_progress_init( _("Warping ...")); for (pr = gimp_pixel_rgns_register(1, &dest_rgn); pr != NULL; pr = gimp_pixel_rgns_process(pr)) { dest_row = dest_rgn.data; @@ -621,7 +625,7 @@ static void iwarp() animlayers[i] = iwarp_layer_copy(layerID); gimp_layer_set_name(animlayers[i],st); destdrawable = gimp_drawable_get(animlayers[i]); - sprintf(st,"Warping Frame Nr %d ...",frame_number); + sprintf(st, _("Warping Frame Nr %d ..."),frame_number); gimp_progress_init(st); if (animate_deform_value >0.0) iwarp_frame(); gimp_image_add_layer(imageID,animlayers[i],0); @@ -629,8 +633,8 @@ static void iwarp() frame_number++; } if (do_animate_ping_pong) { - sprintf(st,"Warping Frame Nr %d ...",frame_number); - gimp_progress_init("Ping Pong"); + sprintf(st, _("Warping Frame Nr %d ..."),frame_number); + gimp_progress_init( _("Ping Pong")); for (i=0; i < animate_num_frames; i++) { gimp_progress_update((double)i / (animate_num_frames-1)); layerID = iwarp_layer_copy(animlayers[animate_num_frames-i-1]); @@ -762,7 +766,7 @@ iwarp_animate_dialog(GtkWidget* dlg, GtkWidget* notebook) gtk_table_set_row_spacings(GTK_TABLE(table), 10); gtk_table_set_col_spacings(GTK_TABLE(table), 3); - button = gtk_check_button_new_with_label ("Animate"); + button = gtk_check_button_new_with_label ( _("Animate")); gtk_table_attach (GTK_TABLE (table), button, 0, 1, 0, 1, GTK_FILL , GTK_FILL , 0, 0); gtk_signal_connect (GTK_OBJECT (button), "clicked", (GtkSignalFunc) iwarp_animate_toggle, @@ -780,7 +784,7 @@ iwarp_animate_dialog(GtkWidget* dlg, GtkWidget* notebook) gtk_container_add (GTK_CONTAINER (animate_frame), animate_table); - label = gtk_label_new ("Number of Frames"); + label = gtk_label_new ( _("Number of Frames")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (animate_table), label, 0, 1, 0, 1, GTK_FILL, 0, 5, 0); scale_data = gtk_adjustment_new (animate_num_frames, 2, MAX_NUM_FRAMES, 1.0, 1.0, 0.0); @@ -797,14 +801,14 @@ iwarp_animate_dialog(GtkWidget* dlg, GtkWidget* notebook) gtk_widget_show (scale); - button = gtk_check_button_new_with_label ("Reverse"); + button = gtk_check_button_new_with_label ( _("Reverse")); gtk_table_attach (GTK_TABLE (animate_table), button, 0, 1, 1, 2, GTK_FILL | GTK_EXPAND, GTK_FILL | GTK_EXPAND, 0, 0); gtk_signal_connect (GTK_OBJECT (button), "clicked", (GtkSignalFunc) iwarp_toggle_update, &do_animate_reverse); gtk_widget_show(button); - button = gtk_check_button_new_with_label ("Ping Pong"); + button = gtk_check_button_new_with_label ( _("Ping Pong")); gtk_table_attach (GTK_TABLE (animate_table), button, 0, 1, 2, 3, GTK_FILL | GTK_EXPAND, GTK_FILL | GTK_EXPAND, 0, 0); gtk_signal_connect (GTK_OBJECT (button), "clicked", (GtkSignalFunc) iwarp_toggle_update, @@ -820,7 +824,7 @@ iwarp_animate_dialog(GtkWidget* dlg, GtkWidget* notebook) gtk_widget_set_sensitive(animate_frame,do_animate); gtk_table_attach (GTK_TABLE (table), animate_frame, 0, 2, 1, 2, GTK_FILL, 0, 0, 0); - label = gtk_label_new("Animate"); + label = gtk_label_new( _("Animate")); gtk_misc_set_alignment(GTK_MISC(label),0.5,0.5); gtk_notebook_append_page(GTK_NOTEBOOK(notebook),table,label); gtk_widget_show(label); @@ -848,7 +852,7 @@ iwarp_settings_dialog(GtkWidget* dlg, GtkWidget* notebook) gtk_table_set_col_spacings(GTK_TABLE(table), 3); - label = gtk_label_new ("Deform Radius"); + label = gtk_label_new ( _("Deform Radius")); 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 (iwarp_vals.deform_area_radius, 5.0, MAX_DEFORM_AREA_RADIUS, 1.0, 1.0, 0.0); @@ -864,7 +868,7 @@ iwarp_settings_dialog(GtkWidget* dlg, GtkWidget* notebook) gtk_widget_show (label); gtk_widget_show (scale); - label = gtk_label_new ("Deform Amount"); + label = gtk_label_new ( _("Deform Amount")); 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 (iwarp_vals.deform_amount, 0.0, 1.0, 0.01,0.01, 0.0); @@ -884,7 +888,7 @@ iwarp_settings_dialog(GtkWidget* dlg, GtkWidget* notebook) gtk_table_attach (GTK_TABLE(table), separator, 0, 2 ,2,3,GTK_FILL,0,0,0); gtk_widget_show(separator); - toggle = gtk_radio_button_new_with_label(group,"Move"); + toggle = gtk_radio_button_new_with_label(group, _("Move")); group = gtk_radio_button_group(GTK_RADIO_BUTTON(toggle)); gtk_table_attach (GTK_TABLE (table), toggle, 0, 1, 3, 4, GTK_FILL, 0, 0, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -893,7 +897,7 @@ iwarp_settings_dialog(GtkWidget* dlg, GtkWidget* notebook) gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toggle), iwarp_vals.do_move); gtk_widget_show(toggle); - toggle = gtk_radio_button_new_with_label(group,"Shrink"); + toggle = gtk_radio_button_new_with_label(group, _("Shrink")); group = gtk_radio_button_group(GTK_RADIO_BUTTON(toggle)); gtk_table_attach (GTK_TABLE (table), toggle, 1, 2, 4, 5, GTK_FILL, 0, 0, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -902,7 +906,7 @@ iwarp_settings_dialog(GtkWidget* dlg, GtkWidget* notebook) gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toggle), iwarp_vals.do_shrink); gtk_widget_show(toggle); - toggle = gtk_radio_button_new_with_label(group,"Grow"); + toggle = gtk_radio_button_new_with_label(group, _("Grow")); group = gtk_radio_button_group(GTK_RADIO_BUTTON(toggle)); gtk_table_attach (GTK_TABLE (table), toggle, 0, 1, 4, 5, GTK_FILL, 0, 0, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -911,7 +915,7 @@ iwarp_settings_dialog(GtkWidget* dlg, GtkWidget* notebook) gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toggle), iwarp_vals.do_grow); gtk_widget_show(toggle); - toggle = gtk_radio_button_new_with_label(group,"Remove"); + toggle = gtk_radio_button_new_with_label(group, _("Remove")); group = gtk_radio_button_group(GTK_RADIO_BUTTON(toggle)); gtk_table_attach (GTK_TABLE (table), toggle, 1, 2, 3, 4, GTK_FILL, 0, 0, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -920,7 +924,7 @@ iwarp_settings_dialog(GtkWidget* dlg, GtkWidget* notebook) gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toggle), iwarp_vals.do_remove); gtk_widget_show(toggle); - toggle = gtk_radio_button_new_with_label(group,"Swirl CW"); + toggle = gtk_radio_button_new_with_label(group, _("Swirl CW")); group = gtk_radio_button_group(GTK_RADIO_BUTTON(toggle)); gtk_table_attach (GTK_TABLE (table), toggle, 1, 2, 5, 6, GTK_FILL, 0, 0, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -929,7 +933,7 @@ iwarp_settings_dialog(GtkWidget* dlg, GtkWidget* notebook) gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(toggle), iwarp_vals.do_swirl_cw); gtk_widget_show(toggle); - toggle = gtk_radio_button_new_with_label(group,"Swirl CCW"); + toggle = gtk_radio_button_new_with_label(group, _("Swirl CCW")); group = gtk_radio_button_group(GTK_RADIO_BUTTON(toggle)); gtk_table_attach (GTK_TABLE (table), toggle, 0, 1, 5, 6, GTK_FILL, 0, 0, 0); gtk_signal_connect (GTK_OBJECT (toggle), "toggled", @@ -944,7 +948,7 @@ iwarp_settings_dialog(GtkWidget* dlg, GtkWidget* notebook) gtk_widget_show(separator); - button = gtk_check_button_new_with_label ("Bilinear"); + button = gtk_check_button_new_with_label ( _("Bilinear")); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), iwarp_vals.do_bilinear); gtk_table_attach (GTK_TABLE (table), button, 1, 2, 7, 8, GTK_FILL | GTK_EXPAND, GTK_FILL | GTK_EXPAND, 0, 0); gtk_signal_connect (GTK_OBJECT (button), "clicked", @@ -953,7 +957,7 @@ iwarp_settings_dialog(GtkWidget* dlg, GtkWidget* notebook) gtk_widget_show(button); - button = gtk_button_new_with_label ("Reset"); + button = gtk_button_new_with_label ( _("Reset")); gtk_table_attach (GTK_TABLE (table), button, 0, 1, 7, 8, GTK_FILL | GTK_EXPAND, GTK_FILL | GTK_EXPAND, 0, 0); gtk_signal_connect (GTK_OBJECT (button), "clicked", (GtkSignalFunc) iwarp_reset_callback, @@ -965,7 +969,7 @@ iwarp_settings_dialog(GtkWidget* dlg, GtkWidget* notebook) gtk_widget_show(separator); - button = gtk_check_button_new_with_label ("Adaptive Supersample"); + button = gtk_check_button_new_with_label ( _("Adaptive Supersample")); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), iwarp_vals.do_supersample); gtk_table_attach (GTK_TABLE (table), button, 0, 1, 9, 10, GTK_FILL | GTK_EXPAND, GTK_FILL | GTK_EXPAND, 0, 0); gtk_signal_connect (GTK_OBJECT (button), "clicked", @@ -982,7 +986,7 @@ iwarp_settings_dialog(GtkWidget* dlg, GtkWidget* notebook) gtk_container_add (GTK_CONTAINER (supersample_frame), supersample_table); - label = gtk_label_new ("Max Depth"); + label = gtk_label_new ( _("Max Depth")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (supersample_table), label, 0, 1, 0, 1, GTK_FILL, 0, 5, 0); scale_data = gtk_adjustment_new (iwarp_vals.max_supersample_depth, 1.0, 5.0, 1.0, 1.0, 0.0); @@ -998,7 +1002,7 @@ iwarp_settings_dialog(GtkWidget* dlg, GtkWidget* notebook) gtk_widget_show (label); gtk_widget_show (scale); - label = gtk_label_new ("Threshold"); + label = gtk_label_new ( _("Threshold")); gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5); gtk_table_attach (GTK_TABLE (supersample_table), label, 0, 1, 1, 2, GTK_FILL, 0, 5, 0); scale_data = gtk_adjustment_new (iwarp_vals.supersample_threshold, 1.0, 10.0, 0.01,0.01, 0.0); @@ -1025,7 +1029,7 @@ iwarp_settings_dialog(GtkWidget* dlg, GtkWidget* notebook) gtk_widget_show (table); - label = gtk_label_new("Settings"); + label = gtk_label_new( _("Settings")); gtk_misc_set_alignment(GTK_MISC(label),0.5,0.5); gtk_notebook_append_page(GTK_NOTEBOOK(notebook),table,label); gtk_widget_show(label); @@ -1065,7 +1069,7 @@ iwarp_dialog() iwarp_init(); dlg = gtk_dialog_new (); - gtk_window_set_title (GTK_WINDOW (dlg), "IWarp"); + gtk_window_set_title (GTK_WINDOW (dlg), _("IWarp")); gtk_window_position (GTK_WINDOW (dlg), GTK_WIN_POS_MOUSE); gtk_signal_connect (GTK_OBJECT (dlg), "destroy", (GtkSignalFunc) iwarp_close_callback, @@ -1079,7 +1083,7 @@ iwarp_dialog() gtk_box_pack_end (GTK_BOX (GTK_DIALOG (dlg)->action_area), hbbox, FALSE, FALSE, 0); gtk_widget_show (hbbox); - 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) iwarp_ok_callback, @@ -1088,7 +1092,7 @@ iwarp_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, diff --git a/plug-ins/common/jigsaw.c b/plug-ins/common/jigsaw.c index aeee849340..0a62b10262 100644 --- a/plug-ins/common/jigsaw.c +++ b/plug-ins/common/jigsaw.c @@ -25,8 +25,10 @@ #include #include +#include "config.h" #include #include "libgimp/gimp.h" +#include "libgimp/stdplugins-intl.h" typedef enum {BEZIER_1, BEZIER_2} style_t; typedef enum {LEFT, RIGHT, UP, DOWN} bump_t; @@ -186,14 +188,6 @@ static void check_config(gint width, gint height); #define SCALE_WIDTH 200 #define ENTRY_WIDTH 40 -#define XTILES_TEXT "Number of pieces going across" -#define YTILES_TEXT "Number of pieces going down" -#define BLEND_LINES_TEXT "Degree of slope of each piece's edge" -#define BLEND_AMOUNT_TEXT "The amount of highlighting on the edges of each piece" -#define SQUARE_TEXT "Each piece has straight sides" -#define CURVE_TEXT "Each piece has curved sides" -#define DISABLE_TEXT "Toggle Tooltips on/off" - #define DRAW_POINT(buffer, index) \ do { \ buffer[index] = BLACK_R; \ @@ -329,13 +323,15 @@ query(void) static gint nargs = sizeof(args) / sizeof(args[0]); static gint nreturn_vals = 0; + INIT_I18N(); + gimp_install_procedure("plug_in_jigsaw", - "Renders a jigsaw puzzle look", - "Jigsaw puzzle look", + _("Renders a jigsaw puzzle look"), + _("Jigsaw puzzle look"), "Nigel Wetten", "Nigel Wetten", "1998", - "/Filters/Render/Jigsaw...", + N_("/Filters/Render/Jigsaw..."), "RGB*", PROC_PLUG_IN, nargs, nreturn_vals, @@ -362,6 +358,7 @@ run(gchar *name, gint nparams, GParam *param, gint *nreturn_vals, switch (run_mode) { case RUN_NONINTERACTIVE: + INIT_I18N(); if (nparams == 8) { config.x = param[3].data.d_int32; @@ -381,6 +378,7 @@ run(gchar *name, gint nparams, GParam *param, gint *nreturn_vals, break; case RUN_INTERACTIVE: + INIT_I18N_UI(); gimp_get_data("plug_in_jigsaw", &config); gimp_get_data(PLUG_IN_STORAGE, &globals.tooltips); dialog_box(); @@ -389,7 +387,7 @@ run(gchar *name, gint nparams, GParam *param, gint *nreturn_vals, status = STATUS_EXECUTION_ERROR; break; } - gimp_progress_init("Assembling Jigsaw"); + gimp_progress_init( _("Assembling Jigsaw")); if (jigsaw() == -1) { status = STATUS_CALLING_ERROR; @@ -402,6 +400,7 @@ run(gchar *name, gint nparams, GParam *param, gint *nreturn_vals, break; case RUN_WITH_LAST_VALS: + INIT_I18N(); gimp_get_data("plug_in_jigsaw", &config); if (jigsaw() == -1) { @@ -2294,7 +2293,7 @@ dialog_box(void) /* Create the dialog box */ dlg = gtk_dialog_new(); - gtk_window_set_title(GTK_WINDOW(dlg), PLUG_IN_NAME); + gtk_window_set_title(GTK_WINDOW(dlg), _("jigsaw")); gtk_window_position(GTK_WINDOW(dlg), GTK_WIN_POS_MOUSE); gtk_signal_connect(GTK_OBJECT(dlg), "destroy", (GtkSignalFunc) dialog_close_callback, NULL); @@ -2307,7 +2306,7 @@ dialog_box(void) gtk_box_pack_end (GTK_BOX (GTK_DIALOG (dlg)->action_area), hbbox, FALSE, FALSE, 0); gtk_widget_show (hbbox); - 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) run_callback, @@ -2316,7 +2315,7 @@ dialog_box(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, @@ -2340,7 +2339,7 @@ dialog_box(void) gtk_tooltips_disable(tooltips); } /* paramters frame */ - frame = gtk_frame_new("Number of Tiles"); + frame = gtk_frame_new( _("Number of Tiles")); gtk_frame_set_shadow_type(GTK_FRAME(frame), GTK_SHADOW_ETCHED_IN); gtk_container_border_width(GTK_CONTAINER(frame), 10); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dlg)->vbox), frame, TRUE, TRUE, 0); @@ -2350,7 +2349,7 @@ dialog_box(void) gtk_container_add(GTK_CONTAINER(frame), table); /* xtiles */ - label = gtk_label_new("Horizontal:"); + label = gtk_label_new( _("Horizontal:")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 0, 1, GTK_FILL, 0, 5, 0); gtk_widget_show(label); @@ -2366,7 +2365,7 @@ dialog_box(void) gtk_scale_set_draw_value(GTK_SCALE(scale), FALSE); gtk_range_set_update_policy(GTK_RANGE(scale), GTK_UPDATE_CONTINUOUS); gtk_widget_show(scale); - gtk_tooltips_set_tip(tooltips, scale, XTILES_TEXT, NULL); + gtk_tooltips_set_tip(tooltips, scale, _("Number of pieces going across"), NULL); entry = gtk_entry_new(); gtk_object_set_user_data(GTK_OBJECT(entry), adjustment); @@ -2379,10 +2378,10 @@ dialog_box(void) (gpointer) &config.x); gtk_table_attach(GTK_TABLE(table), entry, 2, 3, 0, 1, GTK_FILL, 0, 0, 0); gtk_widget_show(entry); - gtk_tooltips_set_tip(tooltips, entry, XTILES_TEXT, NULL); + gtk_tooltips_set_tip(tooltips, entry, _("Number of pieces going across"), NULL); /* ytiles */ - label = gtk_label_new("Vertical:"); + label = gtk_label_new( _("Vertical:")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 1, 2, GTK_FILL, 0, 5, 0); gtk_widget_show(label); @@ -2398,7 +2397,7 @@ dialog_box(void) gtk_scale_set_draw_value(GTK_SCALE(scale), FALSE); gtk_range_set_update_policy(GTK_RANGE(scale), GTK_UPDATE_CONTINUOUS); gtk_widget_show(scale); - gtk_tooltips_set_tip(tooltips, scale, YTILES_TEXT, NULL); + gtk_tooltips_set_tip(tooltips, scale, _("Number of pieces going down"), NULL); entry = gtk_entry_new(); gtk_object_set_user_data(GTK_OBJECT(entry), adjustment); @@ -2411,14 +2410,14 @@ dialog_box(void) (gpointer) &config.y); gtk_table_attach(GTK_TABLE(table), entry, 2, 3, 1, 2, GTK_FILL, 0, 0, 0); gtk_widget_show(entry); - gtk_tooltips_set_tip(tooltips, entry, YTILES_TEXT, NULL); + gtk_tooltips_set_tip(tooltips, entry, _("Number of pieces going down"), NULL); gtk_widget_show(table); gtk_widget_show(frame); /* frame for bevel blending */ - frame = gtk_frame_new("Bevel Edges"); + frame = gtk_frame_new( _("Bevel Edges")); gtk_frame_set_shadow_type(GTK_FRAME(frame), GTK_SHADOW_ETCHED_IN); gtk_container_border_width(GTK_CONTAINER(frame), 10); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dlg)->vbox), frame, TRUE, TRUE, 0); @@ -2428,7 +2427,7 @@ dialog_box(void) gtk_container_add(GTK_CONTAINER(frame), table); /* number of blending lines */ - label = gtk_label_new("Bevel width:"); + label = gtk_label_new( _("Bevel width:")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 0, 1, GTK_FILL, 0, 5, 0); gtk_widget_show(label); @@ -2444,7 +2443,7 @@ dialog_box(void) gtk_scale_set_draw_value(GTK_SCALE(scale), FALSE); gtk_range_set_update_policy(GTK_RANGE(scale), GTK_UPDATE_CONTINUOUS); gtk_widget_show(scale); - gtk_tooltips_set_tip(tooltips, scale, BLEND_LINES_TEXT, NULL); + gtk_tooltips_set_tip(tooltips, scale, _("Degree of slope of each piece's edge"), NULL); entry = gtk_entry_new(); gtk_object_set_user_data(GTK_OBJECT(entry), adjustment); @@ -2457,10 +2456,10 @@ dialog_box(void) (gpointer) &config.blend_lines); gtk_table_attach(GTK_TABLE(table), entry, 2, 3, 0, 1, GTK_FILL, 0, 0, 0); gtk_widget_show(entry); - gtk_tooltips_set_tip(tooltips, entry, BLEND_LINES_TEXT, NULL); + gtk_tooltips_set_tip(tooltips, entry, _("Degree of slope of each piece's edge"), NULL); /* blending amount */ - label = gtk_label_new("Highlight:"); + label = gtk_label_new( _("Highlight:")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 1, 2, GTK_FILL, 0, 5, 0); gtk_widget_show(label); @@ -2476,7 +2475,7 @@ dialog_box(void) gtk_scale_set_draw_value(GTK_SCALE(scale), FALSE); gtk_range_set_update_policy(GTK_RANGE(scale), GTK_UPDATE_CONTINUOUS); gtk_widget_show(scale); - gtk_tooltips_set_tip(tooltips, scale, BLEND_AMOUNT_TEXT, NULL); + gtk_tooltips_set_tip(tooltips, scale, _("The amount of highlighting on the edges of each piece"), NULL); entry = gtk_entry_new(); gtk_object_set_user_data(GTK_OBJECT(entry), adjustment); @@ -2489,7 +2488,7 @@ dialog_box(void) (gpointer) &config.blend_amount); gtk_table_attach(GTK_TABLE(table), entry, 2, 3, 1, 2, GTK_FILL, 0, 0, 0); gtk_widget_show(entry); - gtk_tooltips_set_tip(tooltips, entry, BLEND_AMOUNT_TEXT, NULL); + gtk_tooltips_set_tip(tooltips, entry, _("The amount of highlighting on the edges of each piece"), NULL); gtk_widget_show(table); gtk_widget_show(frame); @@ -2499,7 +2498,7 @@ dialog_box(void) hbox = gtk_hbox_new(FALSE, 5); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dlg)->vbox), hbox, FALSE, FALSE, 0); - frame = gtk_frame_new("Jigsaw Style"); + frame = gtk_frame_new( _("Jigsaw Style")); gtk_frame_set_shadow_type(GTK_FRAME(frame), GTK_SHADOW_ETCHED_IN); gtk_container_border_width(GTK_CONTAINER(frame), 10); gtk_box_pack_start(GTK_BOX(hbox), frame, TRUE, TRUE, 0); @@ -2508,7 +2507,7 @@ dialog_box(void) gtk_container_border_width(GTK_CONTAINER(table), 5); gtk_container_add(GTK_CONTAINER(frame), table); - rbutton = gtk_radio_button_new_with_label(NULL, "Square"); + rbutton = gtk_radio_button_new_with_label(NULL, _("Square")); list = gtk_radio_button_group((GtkRadioButton *) rbutton); gtk_toggle_button_set_active((GtkToggleButton *) rbutton, config.style == BEZIER_1 ? TRUE : FALSE); @@ -2517,9 +2516,9 @@ dialog_box(void) (gpointer) BEZIER_1); gtk_table_attach(GTK_TABLE(table), rbutton, 0, 1, 0, 1, GTK_FILL, 0, 10, 0); gtk_widget_show(rbutton); - gtk_tooltips_set_tip(tooltips, rbutton, SQUARE_TEXT, NULL); + gtk_tooltips_set_tip(tooltips, rbutton, _("Each piece has straight sides"), NULL); - rbutton = gtk_radio_button_new_with_label(list, "Curved"); + rbutton = gtk_radio_button_new_with_label(list, _("Curved")); list = gtk_radio_button_group((GtkRadioButton *) rbutton); gtk_toggle_button_set_active((GtkToggleButton *) rbutton, config.style == BEZIER_2 ? TRUE : FALSE); @@ -2528,7 +2527,7 @@ dialog_box(void) (gpointer) BEZIER_2); gtk_table_attach(GTK_TABLE(table), rbutton, 1, 2, 0, 1, GTK_FILL, 0, 10, 0); gtk_widget_show(rbutton); - gtk_tooltips_set_tip(tooltips, rbutton, CURVE_TEXT, NULL); + gtk_tooltips_set_tip(tooltips, rbutton, _("Each piece has curved sides"), NULL); gtk_widget_show(table); gtk_widget_show(frame); @@ -2537,7 +2536,7 @@ dialog_box(void) gtk_container_border_width(GTK_CONTAINER(table), 3); gtk_box_pack_start(GTK_BOX(hbox), table, TRUE, TRUE, 0); - cbutton = gtk_check_button_new_with_label("Disable Tooltips"); + cbutton = gtk_check_button_new_with_label( _("Disable Tooltips")); gtk_toggle_button_set_active((GtkToggleButton *) cbutton, globals.tooltips ? FALSE : TRUE); gtk_signal_connect(GTK_OBJECT(cbutton), "toggled", @@ -2545,7 +2544,7 @@ dialog_box(void) (gpointer) tooltips); gtk_table_attach(GTK_TABLE(table), cbutton, 0, 1, 1, 2, 0, 0, 0, 20); gtk_widget_show(cbutton); - gtk_tooltips_set_tip(tooltips, cbutton, DISABLE_TEXT, NULL); + gtk_tooltips_set_tip(tooltips, cbutton, _("Toggle Tooltips on/off"), NULL); gtk_widget_show(table); gtk_widget_show(hbox); diff --git a/plug-ins/common/jpeg.c b/plug-ins/common/jpeg.c index f32fd38b83..8124d7e1bf 100644 --- a/plug-ins/common/jpeg.c +++ b/plug-ins/common/jpeg.c @@ -852,7 +852,7 @@ load_image (char *filename, layer_type = preview ? RGBA_IMAGE : RGB_IMAGE; break; default: - g_message (_("don't know how to load JPEGs\nwith %d color channels"), + g_message ("don't know how to load JPEGs\nwith %d color channels", cinfo.output_components); gimp_quit (); } @@ -914,7 +914,7 @@ load_image (char *filename, break; default: - g_message (_("unknown density unit %d\nassuming dots per inch"), + g_message ("unknown density unit %d\nassuming dots per inch", cinfo.density_unit); break; } @@ -1718,9 +1718,9 @@ save_dialog () /* build option menu (code taken from app/buildmenu.c) */ menu = gtk_menu_new (); - add_menu_item(menu, _("2x2,1x1,1x1"), 0, subsmp_callback); - add_menu_item(menu, _("2x1,1x1,1x1 (4:2:2)"), 1, subsmp_callback); - add_menu_item(menu, _("1x1,1x1,1x1"), 2, subsmp_callback); + add_menu_item(menu, "2x2,1x1,1x1", 0, subsmp_callback); + add_menu_item(menu, "2x1,1x1,1x1 (4:2:2)", 1, subsmp_callback); + add_menu_item(menu, "1x1,1x1,1x1", 2, subsmp_callback); subsmp_menu = gtk_option_menu_new (); diff --git a/plug-ins/common/laplace.c b/plug-ins/common/laplace.c index 111b969b8d..b03fda9907 100644 --- a/plug-ins/common/laplace.c +++ b/plug-ins/common/laplace.c @@ -29,9 +29,11 @@ #ifdef MAX and MIN */ #include -#include "libgimp/gimp.h" #include #include +#include "config.h" +#include "libgimp/gimp.h" +#include "libgimp/stdplugins-intl.h" /* Declare local functions. */ @@ -74,13 +76,15 @@ query () static int nargs = sizeof (args) / sizeof (args[0]); static int nreturn_vals = 0; + INIT_I18N(); + gimp_install_procedure ("plug_in_laplace", - "Edge Detection with Laplace Operation", - "This plugin creates one-pixel wide edges from the image, with the value proportional to the gradient. It uses the Laplace operator (a 3x3 kernel with -8 in the middle)The image has to be laplacered to get usefull results, a gauss_iir with 1.5 - 5.0 depending on the noise in the image is best", + _("Edge Detection with Laplace Operation"), + _("This plugin creates one-pixel wide edges from the image, with the value proportional to the gradient. It uses the Laplace operator (a 3x3 kernel with -8 in the middle)The image has to be laplacered to get usefull results, a gauss_iir with 1.5 - 5.0 depending on the noise in the image is best"), "Thorsten Schnier", "Thorsten Schnier", "1997", - "/Filters/Edge-Detect/Laplace", + N_("/Filters/Edge-Detect/Laplace"), "RGB*, GRAY*", PROC_PLUG_IN, nargs, nreturn_vals, @@ -101,6 +105,8 @@ run (char *name, run_mode = param[0].data.d_int32; + INIT_I18N(); + /* Get the specified drawable */ drawable = gimp_drawable_get (param[2].data.d_drawable); @@ -208,7 +214,7 @@ laplace (GDrawable *drawable) */ gimp_drawable_mask_bounds (drawable->id, &x1, &y1, &x2, &y2); - gimp_progress_init ("Laplace"); + gimp_progress_init ( _("Laplace...")); /* Get the size of the input image. (This will/must be the same * as the size of the output image. @@ -282,7 +288,7 @@ laplace (GDrawable *drawable) laplace_prepare_row (&srcPR, pr, x1, y1 - 1, (x2 - x1)); laplace_prepare_row (&srcPR, cr, x1, y1, (x2 - x1)); - gimp_progress_init ("Cleanup"); + gimp_progress_init ( _("Cleanup...")); scale = (255.0 / (float) max_gradient); counter =0; diff --git a/plug-ins/common/lic.c b/plug-ins/common/lic.c index 47e6f741a7..b0929bc38f 100644 --- a/plug-ins/common/lic.c +++ b/plug-ins/common/lic.c @@ -882,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; } @@ -1438,7 +1438,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() diff --git a/plug-ins/jpeg/jpeg-load.c b/plug-ins/jpeg/jpeg-load.c index f32fd38b83..8124d7e1bf 100644 --- a/plug-ins/jpeg/jpeg-load.c +++ b/plug-ins/jpeg/jpeg-load.c @@ -852,7 +852,7 @@ load_image (char *filename, layer_type = preview ? RGBA_IMAGE : RGB_IMAGE; break; default: - g_message (_("don't know how to load JPEGs\nwith %d color channels"), + g_message ("don't know how to load JPEGs\nwith %d color channels", cinfo.output_components); gimp_quit (); } @@ -914,7 +914,7 @@ load_image (char *filename, break; default: - g_message (_("unknown density unit %d\nassuming dots per inch"), + g_message ("unknown density unit %d\nassuming dots per inch", cinfo.density_unit); break; } @@ -1718,9 +1718,9 @@ save_dialog () /* build option menu (code taken from app/buildmenu.c) */ menu = gtk_menu_new (); - add_menu_item(menu, _("2x2,1x1,1x1"), 0, subsmp_callback); - add_menu_item(menu, _("2x1,1x1,1x1 (4:2:2)"), 1, subsmp_callback); - add_menu_item(menu, _("1x1,1x1,1x1"), 2, subsmp_callback); + add_menu_item(menu, "2x2,1x1,1x1", 0, subsmp_callback); + add_menu_item(menu, "2x1,1x1,1x1 (4:2:2)", 1, subsmp_callback); + add_menu_item(menu, "1x1,1x1,1x1", 2, subsmp_callback); subsmp_menu = gtk_option_menu_new (); diff --git a/plug-ins/jpeg/jpeg-load.h b/plug-ins/jpeg/jpeg-load.h index f32fd38b83..8124d7e1bf 100644 --- a/plug-ins/jpeg/jpeg-load.h +++ b/plug-ins/jpeg/jpeg-load.h @@ -852,7 +852,7 @@ load_image (char *filename, layer_type = preview ? RGBA_IMAGE : RGB_IMAGE; break; default: - g_message (_("don't know how to load JPEGs\nwith %d color channels"), + g_message ("don't know how to load JPEGs\nwith %d color channels", cinfo.output_components); gimp_quit (); } @@ -914,7 +914,7 @@ load_image (char *filename, break; default: - g_message (_("unknown density unit %d\nassuming dots per inch"), + g_message ("unknown density unit %d\nassuming dots per inch", cinfo.density_unit); break; } @@ -1718,9 +1718,9 @@ save_dialog () /* build option menu (code taken from app/buildmenu.c) */ menu = gtk_menu_new (); - add_menu_item(menu, _("2x2,1x1,1x1"), 0, subsmp_callback); - add_menu_item(menu, _("2x1,1x1,1x1 (4:2:2)"), 1, subsmp_callback); - add_menu_item(menu, _("1x1,1x1,1x1"), 2, subsmp_callback); + add_menu_item(menu, "2x2,1x1,1x1", 0, subsmp_callback); + add_menu_item(menu, "2x1,1x1,1x1 (4:2:2)", 1, subsmp_callback); + add_menu_item(menu, "1x1,1x1,1x1", 2, subsmp_callback); subsmp_menu = gtk_option_menu_new (); diff --git a/plug-ins/jpeg/jpeg-save.c b/plug-ins/jpeg/jpeg-save.c index f32fd38b83..8124d7e1bf 100644 --- a/plug-ins/jpeg/jpeg-save.c +++ b/plug-ins/jpeg/jpeg-save.c @@ -852,7 +852,7 @@ load_image (char *filename, layer_type = preview ? RGBA_IMAGE : RGB_IMAGE; break; default: - g_message (_("don't know how to load JPEGs\nwith %d color channels"), + g_message ("don't know how to load JPEGs\nwith %d color channels", cinfo.output_components); gimp_quit (); } @@ -914,7 +914,7 @@ load_image (char *filename, break; default: - g_message (_("unknown density unit %d\nassuming dots per inch"), + g_message ("unknown density unit %d\nassuming dots per inch", cinfo.density_unit); break; } @@ -1718,9 +1718,9 @@ save_dialog () /* build option menu (code taken from app/buildmenu.c) */ menu = gtk_menu_new (); - add_menu_item(menu, _("2x2,1x1,1x1"), 0, subsmp_callback); - add_menu_item(menu, _("2x1,1x1,1x1 (4:2:2)"), 1, subsmp_callback); - add_menu_item(menu, _("1x1,1x1,1x1"), 2, subsmp_callback); + add_menu_item(menu, "2x2,1x1,1x1", 0, subsmp_callback); + add_menu_item(menu, "2x1,1x1,1x1 (4:2:2)", 1, subsmp_callback); + add_menu_item(menu, "1x1,1x1,1x1", 2, subsmp_callback); subsmp_menu = gtk_option_menu_new (); diff --git a/plug-ins/jpeg/jpeg-save.h b/plug-ins/jpeg/jpeg-save.h index f32fd38b83..8124d7e1bf 100644 --- a/plug-ins/jpeg/jpeg-save.h +++ b/plug-ins/jpeg/jpeg-save.h @@ -852,7 +852,7 @@ load_image (char *filename, layer_type = preview ? RGBA_IMAGE : RGB_IMAGE; break; default: - g_message (_("don't know how to load JPEGs\nwith %d color channels"), + g_message ("don't know how to load JPEGs\nwith %d color channels", cinfo.output_components); gimp_quit (); } @@ -914,7 +914,7 @@ load_image (char *filename, break; default: - g_message (_("unknown density unit %d\nassuming dots per inch"), + g_message ("unknown density unit %d\nassuming dots per inch", cinfo.density_unit); break; } @@ -1718,9 +1718,9 @@ save_dialog () /* build option menu (code taken from app/buildmenu.c) */ menu = gtk_menu_new (); - add_menu_item(menu, _("2x2,1x1,1x1"), 0, subsmp_callback); - add_menu_item(menu, _("2x1,1x1,1x1 (4:2:2)"), 1, subsmp_callback); - add_menu_item(menu, _("1x1,1x1,1x1"), 2, subsmp_callback); + add_menu_item(menu, "2x2,1x1,1x1", 0, subsmp_callback); + add_menu_item(menu, "2x1,1x1,1x1 (4:2:2)", 1, subsmp_callback); + add_menu_item(menu, "1x1,1x1,1x1", 2, subsmp_callback); subsmp_menu = gtk_option_menu_new (); diff --git a/plug-ins/jpeg/jpeg.c b/plug-ins/jpeg/jpeg.c index f32fd38b83..8124d7e1bf 100644 --- a/plug-ins/jpeg/jpeg.c +++ b/plug-ins/jpeg/jpeg.c @@ -852,7 +852,7 @@ load_image (char *filename, layer_type = preview ? RGBA_IMAGE : RGB_IMAGE; break; default: - g_message (_("don't know how to load JPEGs\nwith %d color channels"), + g_message ("don't know how to load JPEGs\nwith %d color channels", cinfo.output_components); gimp_quit (); } @@ -914,7 +914,7 @@ load_image (char *filename, break; default: - g_message (_("unknown density unit %d\nassuming dots per inch"), + g_message ("unknown density unit %d\nassuming dots per inch", cinfo.density_unit); break; } @@ -1718,9 +1718,9 @@ save_dialog () /* build option menu (code taken from app/buildmenu.c) */ menu = gtk_menu_new (); - add_menu_item(menu, _("2x2,1x1,1x1"), 0, subsmp_callback); - add_menu_item(menu, _("2x1,1x1,1x1 (4:2:2)"), 1, subsmp_callback); - add_menu_item(menu, _("1x1,1x1,1x1"), 2, subsmp_callback); + add_menu_item(menu, "2x2,1x1,1x1", 0, subsmp_callback); + add_menu_item(menu, "2x1,1x1,1x1 (4:2:2)", 1, subsmp_callback); + add_menu_item(menu, "1x1,1x1,1x1", 2, subsmp_callback); subsmp_menu = gtk_option_menu_new (); diff --git a/plug-ins/jpeg/jpeg.h b/plug-ins/jpeg/jpeg.h index f32fd38b83..8124d7e1bf 100644 --- a/plug-ins/jpeg/jpeg.h +++ b/plug-ins/jpeg/jpeg.h @@ -852,7 +852,7 @@ load_image (char *filename, layer_type = preview ? RGBA_IMAGE : RGB_IMAGE; break; default: - g_message (_("don't know how to load JPEGs\nwith %d color channels"), + g_message ("don't know how to load JPEGs\nwith %d color channels", cinfo.output_components); gimp_quit (); } @@ -914,7 +914,7 @@ load_image (char *filename, break; default: - g_message (_("unknown density unit %d\nassuming dots per inch"), + g_message ("unknown density unit %d\nassuming dots per inch", cinfo.density_unit); break; } @@ -1718,9 +1718,9 @@ save_dialog () /* build option menu (code taken from app/buildmenu.c) */ menu = gtk_menu_new (); - add_menu_item(menu, _("2x2,1x1,1x1"), 0, subsmp_callback); - add_menu_item(menu, _("2x1,1x1,1x1 (4:2:2)"), 1, subsmp_callback); - add_menu_item(menu, _("1x1,1x1,1x1"), 2, subsmp_callback); + add_menu_item(menu, "2x2,1x1,1x1", 0, subsmp_callback); + add_menu_item(menu, "2x1,1x1,1x1 (4:2:2)", 1, subsmp_callback); + add_menu_item(menu, "1x1,1x1,1x1", 2, subsmp_callback); subsmp_menu = gtk_option_menu_new (); diff --git a/po-plug-ins/POTFILES.in b/po-plug-ins/POTFILES.in index a66892979a..54a01e9cc0 100644 --- a/po-plug-ins/POTFILES.in +++ b/po-plug-ins/POTFILES.in @@ -61,7 +61,12 @@ plug-ins/common/gtm.c plug-ins/common/guillotine.c plug-ins/common/gz.c plug-ins/common/hot.c +plug-ins/common/hrz.c +plug-ins/common/illusion.c +plug-ins/common/iwarp.c +plug-ins/common/jigsaw.c plug-ins/common/jpeg.c +plug-ins/common/laplace.c plug-ins/common/lic.c plug-ins/common/mail.c plug-ins/common/mapcolor.c