From 9ab1cf582ae6612c7d8209bf9fbc8eb38da33250 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Fri, 6 Jul 2007 10:02:31 +0000 Subject: [PATCH] marked two error messages as translatable strings. 2007-07-06 Sven Neumann * 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 --- ChangeLog | 8 ++++++++ app/xcf/xcf-load.c | 12 ++++++------ libgimpbase/gimputils.c | 8 +++++--- 3 files changed, 19 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index a2812dc0df..393aaf2446 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-07-06 Sven Neumann + + * 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 * plug-ins/common/sunras.c: validate size values read from files diff --git a/app/xcf/xcf-load.c b/app/xcf/xcf-load.c index 0aa341d3b6..06feba46e0 100644 --- a/app/xcf/xcf-load.c +++ b/app/xcf/xcf-load.c @@ -271,8 +271,8 @@ xcf_load_image (Gimp *gimp, goto hard_error; gimp_message (gimp, G_OBJECT (info->progress), GIMP_MESSAGE_WARNING, - "XCF: This file is corrupt! I have loaded as much\n" - "of it as I can, but it is incomplete."); + _("This XCF file is corrupt! I have loaded as much " + "of it as I can, but it is incomplete.")); gimp_image_undo_enable (image); @@ -280,8 +280,8 @@ xcf_load_image (Gimp *gimp, hard_error: gimp_message (gimp, G_OBJECT (info->progress), GIMP_MESSAGE_ERROR, - "XCF: This file is corrupt! I could not even\n" - "salvage any partial image data from it."); + _("This XCF file is corrupt! I could not even " + "salvage any partial image data from it.")); g_object_unref (image); @@ -363,7 +363,7 @@ xcf_load_image_props (XcfInfo *info, { gimp_message (info->gimp, G_OBJECT (info->progress), GIMP_MESSAGE_ERROR, - "unknown compression type: %d", + "Unknown compression type: %d", (int) compression); return FALSE; } @@ -403,7 +403,7 @@ xcf_load_image_props (XcfInfo *info, default: gimp_message (info->gimp, G_OBJECT (info->progress), GIMP_MESSAGE_WARNING, - "guide orientation out of range in XCF file"); + "Guide orientation out of range in XCF file"); continue; } } diff --git a/libgimpbase/gimputils.c b/libgimpbase/gimputils.c index c37809d0ae..c076067220 100644 --- a/libgimpbase/gimputils.c +++ b/libgimpbase/gimputils.c @@ -167,7 +167,7 @@ gimp_any_to_utf8 (const gchar *str, gchar *tmp; 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); } else @@ -394,7 +394,8 @@ gimp_enum_get_desc (GEnumClass *enum_class, 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) { @@ -557,7 +558,8 @@ gimp_flags_get_first_desc (GFlagsClass *flags_class, 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) {