marked two error messages as translatable strings.

2007-07-06  Sven Neumann  <sven@gimp.org>

	* app/xcf/xcf-load.c (xcf_load_image): marked two error messages
	as translatable strings.

	* libgimpbase/gimputils.c (gimp_any_to_utf8): insert a blank
	before the text that marks the string as invalid.

svn path=/trunk/; revision=22887
This commit is contained in:
Sven Neumann 2007-07-06 10:02:31 +00:00 committed by Sven Neumann
parent 2d6662cc95
commit 9ab1cf582a
3 changed files with 19 additions and 9 deletions

View File

@ -1,3 +1,11 @@
2007-07-06 Sven Neumann <sven@gimp.org>
* app/xcf/xcf-load.c (xcf_load_image): marked two error messages
as translatable strings.
* libgimpbase/gimputils.c (gimp_any_to_utf8): insert a blank
before the text that marks the string as invalid.
2007-07-06 Mukund Sivaraman <muks@mukund.org> 2007-07-06 Mukund Sivaraman <muks@mukund.org>
* plug-ins/common/sunras.c: validate size values read from files * plug-ins/common/sunras.c: validate size values read from files

View File

@ -271,8 +271,8 @@ xcf_load_image (Gimp *gimp,
goto hard_error; goto hard_error;
gimp_message (gimp, G_OBJECT (info->progress), GIMP_MESSAGE_WARNING, gimp_message (gimp, G_OBJECT (info->progress), GIMP_MESSAGE_WARNING,
"XCF: This file is corrupt! I have loaded as much\n" _("This XCF file is corrupt! I have loaded as much "
"of it as I can, but it is incomplete."); "of it as I can, but it is incomplete."));
gimp_image_undo_enable (image); gimp_image_undo_enable (image);
@ -280,8 +280,8 @@ xcf_load_image (Gimp *gimp,
hard_error: hard_error:
gimp_message (gimp, G_OBJECT (info->progress), GIMP_MESSAGE_ERROR, gimp_message (gimp, G_OBJECT (info->progress), GIMP_MESSAGE_ERROR,
"XCF: This file is corrupt! I could not even\n" _("This XCF file is corrupt! I could not even "
"salvage any partial image data from it."); "salvage any partial image data from it."));
g_object_unref (image); g_object_unref (image);
@ -363,7 +363,7 @@ xcf_load_image_props (XcfInfo *info,
{ {
gimp_message (info->gimp, G_OBJECT (info->progress), gimp_message (info->gimp, G_OBJECT (info->progress),
GIMP_MESSAGE_ERROR, GIMP_MESSAGE_ERROR,
"unknown compression type: %d", "Unknown compression type: %d",
(int) compression); (int) compression);
return FALSE; return FALSE;
} }
@ -403,7 +403,7 @@ xcf_load_image_props (XcfInfo *info,
default: default:
gimp_message (info->gimp, G_OBJECT (info->progress), gimp_message (info->gimp, G_OBJECT (info->progress),
GIMP_MESSAGE_WARNING, GIMP_MESSAGE_WARNING,
"guide orientation out of range in XCF file"); "Guide orientation out of range in XCF file");
continue; continue;
} }
} }

View File

@ -167,7 +167,7 @@ gimp_any_to_utf8 (const gchar *str,
gchar *tmp; gchar *tmp;
tmp = g_strndup (str, start_invalid - str); tmp = g_strndup (str, start_invalid - str);
utf8 = g_strconcat (tmp, _("(invalid UTF-8 string)"), NULL); utf8 = g_strconcat (tmp, " ", _("(invalid UTF-8 string)"), NULL);
g_free (tmp); g_free (tmp);
} }
else else
@ -394,7 +394,8 @@ gimp_enum_get_desc (GEnumClass *enum_class,
g_return_val_if_fail (G_IS_ENUM_CLASS (enum_class), NULL); g_return_val_if_fail (G_IS_ENUM_CLASS (enum_class), NULL);
value_desc = gimp_enum_get_value_descriptions (G_TYPE_FROM_CLASS (enum_class)); value_desc =
gimp_enum_get_value_descriptions (G_TYPE_FROM_CLASS (enum_class));
if (value_desc) if (value_desc)
{ {
@ -557,7 +558,8 @@ gimp_flags_get_first_desc (GFlagsClass *flags_class,
g_return_val_if_fail (G_IS_FLAGS_CLASS (flags_class), NULL); g_return_val_if_fail (G_IS_FLAGS_CLASS (flags_class), NULL);
value_desc = gimp_flags_get_value_descriptions (G_TYPE_FROM_CLASS (flags_class)); value_desc =
gimp_flags_get_value_descriptions (G_TYPE_FROM_CLASS (flags_class));
if (value_desc) if (value_desc)
{ {