Commit e6619b51 authored by Sven Neumann's avatar Sven Neumann
Browse files

unmarked a few strings for translation


--Sven
parent 7f56c32e
Tue Dec 28 11:25:46 CET 1999 Sven Neumann <sven@gimp.org>
* app/gimpunit.c
* app/gradient.c
* app/temp_buf.c
* app/text_tool.c
* app/tile_swap.c
* app/xcf.c: unmarked a few strings for translation. These strings
were console output and will only be used if something goes wrong.
It will help translators and developers (think about bugreports!) if
we don't mark everything for translation.
Mon Dec 27 19:40:19 CET 1999 Sven Neumann <sven@gimp.org>
 
* plug-ins/common/align_layers.c
......
......@@ -215,7 +215,7 @@ temp_buf_copy (TempBuf *src,
else if (src->bytes == 2) /* grayscale */
temp_buf_to_color (src, new);
else
g_message (_("Cannot convert from indexed color."));
g_message ("Cannot convert from indexed color.");
return new;
}
}
......@@ -465,8 +465,7 @@ temp_buf_swap (TempBuf *buf)
{
if (stat_buf.st_mode & S_IFDIR)
{
g_message (_("Error in temp buf caching: \"%s\" is a directory (cannot overwrite)"),
filename);
g_message ("Error in temp buf caching: \"%s\" is a directory (cannot overwrite)", filename);
g_free (filename);
return;
}
......@@ -482,7 +481,7 @@ temp_buf_swap (TempBuf *buf)
{
(void) unlink (filename);
perror ("Write error on temp buf");
g_message (_("Cannot write \"%s\""), filename);
g_message ("Cannot write \"%s\"", filename);
g_free (filename);
return;
}
......@@ -491,7 +490,7 @@ temp_buf_swap (TempBuf *buf)
{
(void) unlink (filename);
perror ("Error in temp buf caching");
g_message (_("Cannot write \"%s\""), filename);
g_message ("Cannot write \"%s\"", filename);
g_free (filename);
return;
}
......@@ -547,7 +546,7 @@ temp_buf_unswap (TempBuf *buf)
unlink (buf->filename);
}
if (!succ)
g_message (_("Error in temp buf caching: information swapped to disk was lost!"));
g_message ("Error in temp buf caching: information swapped to disk was lost!");
g_free (buf->filename); /* free filename */
buf->filename = NULL;
......
......@@ -391,7 +391,7 @@ tile_swap_open (SwapFile *swap_file)
if (swap_file->fd == -1)
{
g_message (_("unable to open swap file...BAD THINGS WILL HAPPEN SOON"));
g_message ("unable to open swap file...BAD THINGS WILL HAPPEN SOON");
return;
}
......@@ -511,7 +511,7 @@ tile_swap_default_in (DefSwapFile *def_swap_file,
if (offset == -1)
{
if (seek_err_msg)
g_message (_("unable to seek to tile location on disk: %d"), err);
g_message ("unable to seek to tile location on disk: %d", err);
seek_err_msg = FALSE;
return;
}
......@@ -530,7 +530,7 @@ tile_swap_default_in (DefSwapFile *def_swap_file,
if (err <= 0)
{
if (read_err_msg)
g_message (_("unable to read tile data from disk: %d/%d ( %d ) bytes read"), err, errno, nleft);
g_message ("unable to read tile data from disk: %d/%d ( %d ) bytes read", err, errno, nleft);
read_err_msg = FALSE;
return;
}
......@@ -574,7 +574,7 @@ tile_swap_default_out (DefSwapFile *def_swap_file,
if (offset == -1)
{
if (seek_err_msg)
g_message (_("unable to seek to tile location on disk: %d"), errno);
g_message ("unable to seek to tile location on disk: %d", errno);
seek_err_msg = FALSE;
return;
}
......@@ -588,7 +588,7 @@ tile_swap_default_out (DefSwapFile *def_swap_file,
if (err <= 0)
{
if (write_err_msg)
g_message (_("unable to write tile data to disk: %d ( %d ) bytes written"), err, nleft);
g_message ("unable to write tile data to disk: %d ( %d ) bytes written", err, nleft);
write_err_msg = FALSE;
return;
}
......
......@@ -296,12 +296,12 @@ void save_unitrc (void)
if (!fp)
return;
fprintf (fp, _("# GIMP unitrc\n"
"# This file contains your user unit database. You can\n"
"# modify this list with the unit editor. You are not\n"
"# supposed to edit it manually, but of course you can do.\n"
"# This file will be entirely rewritten every time you\n"
"# quit the gimp.\n\n"));
fprintf (fp, "# GIMP unitrc\n"
"# This file contains your user unit database. You can\n"
"# modify this list with the unit editor. You are not\n"
"# supposed to edit it manually, but of course you can do.\n"
"# This file will be entirely rewritten every time you\n"
"# quit the gimp.\n\n");
/* save user defined units */
for (i = gimp_unit_get_number_of_built_in_units();
......@@ -320,3 +320,9 @@ void save_unitrc (void)
fclose (fp);
}
......@@ -296,12 +296,12 @@ void save_unitrc (void)
if (!fp)
return;
fprintf (fp, _("# GIMP unitrc\n"
"# This file contains your user unit database. You can\n"
"# modify this list with the unit editor. You are not\n"
"# supposed to edit it manually, but of course you can do.\n"
"# This file will be entirely rewritten every time you\n"
"# quit the gimp.\n\n"));
fprintf (fp, "# GIMP unitrc\n"
"# This file contains your user unit database. You can\n"
"# modify this list with the unit editor. You are not\n"
"# supposed to edit it manually, but of course you can do.\n"
"# This file will be entirely rewritten every time you\n"
"# quit the gimp.\n\n");
/* save user defined units */
for (i = gimp_unit_get_number_of_built_in_units();
......@@ -320,3 +320,9 @@ void save_unitrc (void)
fclose (fp);
}
......@@ -2029,7 +2029,7 @@ ed_do_save_pov_callback (GtkWidget *widget,
file = fopen (filename, "wb");
if (!file)
g_message (_("Could not open \"%s\""), filename);
g_message ("Could not open \"%s\"", filename);
else
{
fprintf (file, "/* color_map file created by the GIMP */\n");
......@@ -5900,8 +5900,8 @@ grad_load_gradient (char *filename)
if (num_segments < 1)
{
g_message (_("grad_load_gradient(): "
"invalid number of segments in \"%s\""), filename);
g_message ("grad_load_gradient(): "
"invalid number of segments in \"%s\"", filename);
g_free (grad);
return;
}
......@@ -5926,9 +5926,9 @@ grad_load_gradient (char *filename)
&(seg->r1), &(seg->g1), &(seg->b1), &(seg->a1),
&type, &color) != 13)
{
g_message (_("grad_load_gradient(): badly formatted "
"gradient segment %d in \"%s\" --- bad things may "
"happen soon"), i, filename);
g_message ("grad_load_gradient(): badly formatted "
"gradient segment %d in \"%s\" --- bad things may "
"happen soon", i, filename);
}
else
{
......@@ -5958,15 +5958,15 @@ grad_save_gradient (gradient_t *grad,
if (!filename)
{
g_message (_("grad_save_gradient(): "
"can not save gradient with NULL filename"));
g_message ("grad_save_gradient(): "
"can not save gradient with NULL filename");
return;
}
file = fopen (filename, "wb");
if (!file)
{
g_message (_("grad_save_gradient(): can't open \"%s\""), filename);
g_message ("grad_save_gradient(): can't open \"%s\"", filename);
return;
}
......@@ -6176,8 +6176,8 @@ seg_get_segment_at (gradient_t *grad,
/* Oops: we should have found a segment, but we didn't */
grad_dump_gradient (curr_gradient, stderr);
gimp_fatal_error (_("seg_get_segment_at(): "
"No matching segment for position %0.15f"), pos);
gimp_fatal_error ("seg_get_segment_at(): "
"No matching segment for position %0.15f", pos);
return NULL; /* To shut up -Wall */
}
......
......@@ -2029,7 +2029,7 @@ ed_do_save_pov_callback (GtkWidget *widget,
file = fopen (filename, "wb");
if (!file)
g_message (_("Could not open \"%s\""), filename);
g_message ("Could not open \"%s\"", filename);
else
{
fprintf (file, "/* color_map file created by the GIMP */\n");
......@@ -5900,8 +5900,8 @@ grad_load_gradient (char *filename)
if (num_segments < 1)
{
g_message (_("grad_load_gradient(): "
"invalid number of segments in \"%s\""), filename);
g_message ("grad_load_gradient(): "
"invalid number of segments in \"%s\"", filename);
g_free (grad);
return;
}
......@@ -5926,9 +5926,9 @@ grad_load_gradient (char *filename)
&(seg->r1), &(seg->g1), &(seg->b1), &(seg->a1),
&type, &color) != 13)
{
g_message (_("grad_load_gradient(): badly formatted "
"gradient segment %d in \"%s\" --- bad things may "
"happen soon"), i, filename);
g_message ("grad_load_gradient(): badly formatted "
"gradient segment %d in \"%s\" --- bad things may "
"happen soon", i, filename);
}
else
{
......@@ -5958,15 +5958,15 @@ grad_save_gradient (gradient_t *grad,
if (!filename)
{
g_message (_("grad_save_gradient(): "
"can not save gradient with NULL filename"));
g_message ("grad_save_gradient(): "
"can not save gradient with NULL filename");
return;
}
file = fopen (filename, "wb");
if (!file)
{
g_message (_("grad_save_gradient(): can't open \"%s\""), filename);
g_message ("grad_save_gradient(): can't open \"%s\"", filename);
return;
}
......@@ -6176,8 +6176,8 @@ seg_get_segment_at (gradient_t *grad,
/* Oops: we should have found a segment, but we didn't */
grad_dump_gradient (curr_gradient, stderr);
gimp_fatal_error (_("seg_get_segment_at(): "
"No matching segment for position %0.15f"), pos);
gimp_fatal_error ("seg_get_segment_at(): "
"No matching segment for position %0.15f", pos);
return NULL; /* To shut up -Wall */
}
......
......@@ -2029,7 +2029,7 @@ ed_do_save_pov_callback (GtkWidget *widget,
file = fopen (filename, "wb");
if (!file)
g_message (_("Could not open \"%s\""), filename);
g_message ("Could not open \"%s\"", filename);
else
{
fprintf (file, "/* color_map file created by the GIMP */\n");
......@@ -5900,8 +5900,8 @@ grad_load_gradient (char *filename)
if (num_segments < 1)
{
g_message (_("grad_load_gradient(): "
"invalid number of segments in \"%s\""), filename);
g_message ("grad_load_gradient(): "
"invalid number of segments in \"%s\"", filename);
g_free (grad);
return;
}
......@@ -5926,9 +5926,9 @@ grad_load_gradient (char *filename)
&(seg->r1), &(seg->g1), &(seg->b1), &(seg->a1),
&type, &color) != 13)
{
g_message (_("grad_load_gradient(): badly formatted "
"gradient segment %d in \"%s\" --- bad things may "
"happen soon"), i, filename);
g_message ("grad_load_gradient(): badly formatted "
"gradient segment %d in \"%s\" --- bad things may "
"happen soon", i, filename);
}
else
{
......@@ -5958,15 +5958,15 @@ grad_save_gradient (gradient_t *grad,
if (!filename)
{
g_message (_("grad_save_gradient(): "
"can not save gradient with NULL filename"));
g_message ("grad_save_gradient(): "
"can not save gradient with NULL filename");
return;
}
file = fopen (filename, "wb");
if (!file)
{
g_message (_("grad_save_gradient(): can't open \"%s\""), filename);
g_message ("grad_save_gradient(): can't open \"%s\"", filename);
return;
}
......@@ -6176,8 +6176,8 @@ seg_get_segment_at (gradient_t *grad,
/* Oops: we should have found a segment, but we didn't */
grad_dump_gradient (curr_gradient, stderr);
gimp_fatal_error (_("seg_get_segment_at(): "
"No matching segment for position %0.15f"), pos);
gimp_fatal_error ("seg_get_segment_at(): "
"No matching segment for position %0.15f", pos);
return NULL; /* To shut up -Wall */
}
......
......@@ -215,7 +215,7 @@ temp_buf_copy (TempBuf *src,
else if (src->bytes == 2) /* grayscale */
temp_buf_to_color (src, new);
else
g_message (_("Cannot convert from indexed color."));
g_message ("Cannot convert from indexed color.");
return new;
}
}
......@@ -465,8 +465,7 @@ temp_buf_swap (TempBuf *buf)
{
if (stat_buf.st_mode & S_IFDIR)
{
g_message (_("Error in temp buf caching: \"%s\" is a directory (cannot overwrite)"),
filename);
g_message ("Error in temp buf caching: \"%s\" is a directory (cannot overwrite)", filename);
g_free (filename);
return;
}
......@@ -482,7 +481,7 @@ temp_buf_swap (TempBuf *buf)
{
(void) unlink (filename);
perror ("Write error on temp buf");
g_message (_("Cannot write \"%s\""), filename);
g_message ("Cannot write \"%s\"", filename);
g_free (filename);
return;
}
......@@ -491,7 +490,7 @@ temp_buf_swap (TempBuf *buf)
{
(void) unlink (filename);
perror ("Error in temp buf caching");
g_message (_("Cannot write \"%s\""), filename);
g_message ("Cannot write \"%s\"", filename);
g_free (filename);
return;
}
......@@ -547,7 +546,7 @@ temp_buf_unswap (TempBuf *buf)
unlink (buf->filename);
}
if (!succ)
g_message (_("Error in temp buf caching: information swapped to disk was lost!"));
g_message ("Error in temp buf caching: information swapped to disk was lost!");
g_free (buf->filename); /* free filename */
buf->filename = NULL;
......
......@@ -763,7 +763,7 @@ text_render (GimpImage *gimage,
{
if (newmask)
{
g_message (_("text_render: could not allocate image"));
g_message ("text_render: could not allocate image");
tile_manager_destroy (newmask);
}
layer = NULL;
......
......@@ -391,7 +391,7 @@ tile_swap_open (SwapFile *swap_file)
if (swap_file->fd == -1)
{
g_message (_("unable to open swap file...BAD THINGS WILL HAPPEN SOON"));
g_message ("unable to open swap file...BAD THINGS WILL HAPPEN SOON");
return;
}
......@@ -511,7 +511,7 @@ tile_swap_default_in (DefSwapFile *def_swap_file,
if (offset == -1)
{
if (seek_err_msg)
g_message (_("unable to seek to tile location on disk: %d"), err);
g_message ("unable to seek to tile location on disk: %d", err);
seek_err_msg = FALSE;
return;
}
......@@ -530,7 +530,7 @@ tile_swap_default_in (DefSwapFile *def_swap_file,
if (err <= 0)
{
if (read_err_msg)
g_message (_("unable to read tile data from disk: %d/%d ( %d ) bytes read"), err, errno, nleft);
g_message ("unable to read tile data from disk: %d/%d ( %d ) bytes read", err, errno, nleft);
read_err_msg = FALSE;
return;
}
......@@ -574,7 +574,7 @@ tile_swap_default_out (DefSwapFile *def_swap_file,
if (offset == -1)
{
if (seek_err_msg)
g_message (_("unable to seek to tile location on disk: %d"), errno);
g_message ("unable to seek to tile location on disk: %d", errno);
seek_err_msg = FALSE;
return;
}
......@@ -588,7 +588,7 @@ tile_swap_default_out (DefSwapFile *def_swap_file,
if (err <= 0)
{
if (write_err_msg)
g_message (_("unable to write tile data to disk: %d ( %d ) bytes written"), err, nleft);
g_message ("unable to write tile data to disk: %d ( %d ) bytes written", err, nleft);
write_err_msg = FALSE;
return;
}
......
......@@ -763,7 +763,7 @@ text_render (GimpImage *gimage,
{
if (newmask)
{
g_message (_("text_render: could not allocate image"));
g_message ("text_render: could not allocate image");
tile_manager_destroy (newmask);
}
layer = NULL;
......
......@@ -763,7 +763,7 @@ text_render (GimpImage *gimage,
{
if (newmask)
{
g_message (_("text_render: could not allocate image"));
g_message ("text_render: could not allocate image");
tile_manager_destroy (newmask);
}
layer = NULL;
......
......@@ -2029,7 +2029,7 @@ ed_do_save_pov_callback (GtkWidget *widget,
file = fopen (filename, "wb");
if (!file)
g_message (_("Could not open \"%s\""), filename);
g_message ("Could not open \"%s\"", filename);
else
{
fprintf (file, "/* color_map file created by the GIMP */\n");
......@@ -5900,8 +5900,8 @@ grad_load_gradient (char *filename)
if (num_segments < 1)
{
g_message (_("grad_load_gradient(): "
"invalid number of segments in \"%s\""), filename);
g_message ("grad_load_gradient(): "
"invalid number of segments in \"%s\"", filename);
g_free (grad);
return;
}
......@@ -5926,9 +5926,9 @@ grad_load_gradient (char *filename)
&(seg->r1), &(seg->g1), &(seg->b1), &(seg->a1),
&type, &color) != 13)
{
g_message (_("grad_load_gradient(): badly formatted "
"gradient segment %d in \"%s\" --- bad things may "
"happen soon"), i, filename);
g_message ("grad_load_gradient(): badly formatted "
"gradient segment %d in \"%s\" --- bad things may "
"happen soon", i, filename);
}
else
{
......@@ -5958,15 +5958,15 @@ grad_save_gradient (gradient_t *grad,
if (!filename)
{
g_message (_("grad_save_gradient(): "
"can not save gradient with NULL filename"));
g_message ("grad_save_gradient(): "
"can not save gradient with NULL filename");
return;
}
file = fopen (filename, "wb");
if (!file)
{
g_message (_("grad_save_gradient(): can't open \"%s\""), filename);
g_message ("grad_save_gradient(): can't open \"%s\"", filename);
return;
}
......@@ -6176,8 +6176,8 @@ seg_get_segment_at (gradient_t *grad,
/* Oops: we should have found a segment, but we didn't */
grad_dump_gradient (curr_gradient, stderr);
gimp_fatal_error (_("seg_get_segment_at(): "
"No matching segment for position %0.15f"), pos);
gimp_fatal_error ("seg_get_segment_at(): "
"No matching segment for position %0.15f", pos);
return NULL; /* To shut up -Wall */
}
......
......@@ -1474,10 +1474,10 @@ xcf_save_level (XcfInfo *info,
xcf_save_tile_rle (info, level->tiles[i], rlebuf);
break;
case COMPRESS_ZLIB:
g_error (_("xcf: zlib compression unimplemented"));
g_error ("xcf: zlib compression unimplemented");
break;
case COMPRESS_FRACTAL:
g_error (_("xcf: fractal compression unimplemented"));
g_error ("xcf: fractal compression unimplemented");
break;
}
......@@ -1623,7 +1623,7 @@ xcf_save_tile_rle (XcfInfo *info,
}
if (count != (tile_ewidth (tile) * tile_eheight (tile)))
g_message (_("xcf: uh oh! xcf rle tile saving error: %d"), count);
g_message ("xcf: uh oh! xcf rle tile saving error: %d", count);
}
info->cp += xcf_write_int8(info->fp, rlebuf, len);
tile_release (tile, FALSE);
......@@ -1804,7 +1804,7 @@ xcf_load_image_props (XcfInfo *info,
(compression != COMPRESS_ZLIB) &&
(compression != COMPRESS_FRACTAL))
{
g_message (_("unknown compression type: %d"), (int) compression);
g_message ("unknown compression type: %d", (int) compression);
return FALSE;
}
......@@ -1845,7 +1845,7 @@ xcf_load_image_props (XcfInfo *info,
if (xres < GIMP_MIN_RESOLUTION || xres > GIMP_MAX_RESOLUTION ||
yres < GIMP_MIN_RESOLUTION || yres > GIMP_MAX_RESOLUTION)
{
g_message(_("Warning, resolution out of range in XCF file"));
g_message ("Warning, resolution out of range in XCF file");
xres = yres = 72.0;
}
gimage->xresolution = xres;
......@@ -1868,7 +1868,7 @@ xcf_load_image_props (XcfInfo *info,
parasite_free(p);
}
if (info->cp - base != prop_size)
g_message(_("Error detected while loading an image's parasites"));
g_message ("Error detected while loading an image's parasites");
}
break;
case PROP_UNIT:
......@@ -1879,7 +1879,7 @@ xcf_load_image_props (XcfInfo *info,
if ((unit >= gimp_unit_get_number_of_units()) )
{
g_message(_("Warning, unit out of range in XCF file, falling back to inches"));
g_message ("Warning, unit out of range in XCF file, falling back to inches");
unit = UNIT_INCH;
}
......@@ -1943,7 +1943,7 @@ xcf_load_image_props (XcfInfo *info,
}
break;
default:
g_message (_("unexpected/unknown image property: %d (skipping)"), prop_type);
g_message ("unexpected/unknown image property: %d (skipping)", prop_type);
{
guint8 buf[16];
......@@ -2031,11 +2031,11 @@ xcf_load_layer_props (XcfInfo *info,
parasite_free(p);
}
if (info->cp - base != prop_size)
g_message("Error detected while loading a layer's parasites");
g_message ("Error detected while loading a layer's parasites");
}
break;
default:
g_message (_("unexpected/unknown layer property: %d (skipping)"), prop_type);
g_message ("unexpected/unknown layer property: %d (skipping)", prop_type);
{
guint8 buf[16];
......@@ -2112,7 +2112,7 @@ xcf_load_channel_props (XcfInfo *info,
}
break;
default:
g_message (_("unexpected/unknown channel property: %d (skipping)"), prop_type);
g_message ("unexpected/unknown channel property: %d (skipping)", prop_type);
{
guint8 buf[16];
......@@ -2443,7 +2443,7 @@ xcf_load_level (XcfInfo *info,
if (offset == 0)
{
g_message (_("not enough tiles found in level"));
g_message ("not enough tiles found in level");
return FALSE;
}
......@@ -2480,11 +2480,11 @@ xcf_load_level (XcfInfo *info,
fail = TRUE;
break;
case COMPRESS_ZLIB:
g_error (_("xcf: zlib compression unimplemented"));
g_error ("xcf: zlib compression unimplemented");
fail = TRUE;
break;
case COMPRESS_FRACTAL:
g_error (_("xcf: fractal compres