rephrased error message for consistency and to avoid another plural form.

2005-11-02  Sven Neumann  <sven@gimp.org>

	* app/core/gimppattern.c: rephrased error message for consistency
	and to avoid another plural form.
This commit is contained in:
Sven Neumann 2005-11-02 15:10:41 +00:00 committed by Sven Neumann
parent e59d9cd898
commit 81de4303e8
3 changed files with 17 additions and 20 deletions

View File

@ -1,3 +1,8 @@
2005-11-02 Sven Neumann <sven@gimp.org>
* app/core/gimppattern.c: rephrased error message for consistency
and to avoid another plural form.
2005-11-02 Sven Neumann <sven@gimp.org>
* libgimpwidgets/gimppropwidgets.c: use g_utf8_strlen().

View File

@ -301,9 +301,8 @@ gimp_pattern_load (const gchar *filename,
{
g_set_error (error, GIMP_DATA_ERROR, GIMP_DATA_ERROR_READ,
_("Fatal parse error in pattern file '%s': "
"Could not read %d bytes: %s"),
gimp_filename_to_utf8 (filename),
(gint) sizeof (header), g_strerror (errno));
"File appears truncated."),
gimp_filename_to_utf8 (filename));
goto error;
}
@ -348,9 +347,8 @@ gimp_pattern_load (const gchar *filename,
{
g_set_error (error, GIMP_DATA_ERROR, GIMP_DATA_ERROR_READ,
_("Fatal parse error in pattern file '%s': "
"Could not read %d bytes: %s"),
gimp_filename_to_utf8 (filename), bn_size,
g_strerror (errno));
"File appears truncated."),
gimp_filename_to_utf8 (filename));
g_free (name);
goto error;
}
@ -380,10 +378,8 @@ gimp_pattern_load (const gchar *filename,
{
g_set_error (error, GIMP_DATA_ERROR, GIMP_DATA_ERROR_READ,
_("Fatal parse error in pattern file '%s': "
"Could not read %d bytes: %s"),
gimp_filename_to_utf8 (filename),
header.width * header.height * header.bytes,
g_strerror (errno));
"File appears truncated."),
gimp_filename_to_utf8 (filename));
goto error;
}

View File

@ -301,9 +301,8 @@ gimp_pattern_load (const gchar *filename,
{
g_set_error (error, GIMP_DATA_ERROR, GIMP_DATA_ERROR_READ,
_("Fatal parse error in pattern file '%s': "
"Could not read %d bytes: %s"),
gimp_filename_to_utf8 (filename),
(gint) sizeof (header), g_strerror (errno));
"File appears truncated."),
gimp_filename_to_utf8 (filename));
goto error;
}
@ -348,9 +347,8 @@ gimp_pattern_load (const gchar *filename,
{
g_set_error (error, GIMP_DATA_ERROR, GIMP_DATA_ERROR_READ,
_("Fatal parse error in pattern file '%s': "
"Could not read %d bytes: %s"),
gimp_filename_to_utf8 (filename), bn_size,
g_strerror (errno));
"File appears truncated."),
gimp_filename_to_utf8 (filename));
g_free (name);
goto error;
}
@ -380,10 +378,8 @@ gimp_pattern_load (const gchar *filename,
{
g_set_error (error, GIMP_DATA_ERROR, GIMP_DATA_ERROR_READ,
_("Fatal parse error in pattern file '%s': "
"Could not read %d bytes: %s"),
gimp_filename_to_utf8 (filename),
header.width * header.height * header.bytes,
g_strerror (errno));
"File appears truncated."),
gimp_filename_to_utf8 (filename));
goto error;
}