[gtk+/native-layout] Don't use string concatentation in translated strings



commit 37e71e4e289423004d24657128f3b1d630a6df94
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Jan 2 20:11:50 2010 -0500

    Don't use string concatentation in translated strings
    
    gettext can't handle it, and there is no real need to use G_GSIZE_FORMAT
    here anyway.

 gdk-pixbuf/io-png.c  |    4 ++--
 gdk-pixbuf/io-tiff.c |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gdk-pixbuf/io-png.c b/gdk-pixbuf/io-png.c
index da9c619..c0374ca 100644
--- a/gdk-pixbuf/io-png.c
+++ b/gdk-pixbuf/io-png.c
@@ -883,8 +883,8 @@ static gboolean real_save_png (GdkPixbuf        *pixbuf,
                                        g_set_error (error,
                                                     GDK_PIXBUF_ERROR,
                                                     GDK_PIXBUF_ERROR_BAD_OPTION,
-                                                    _("Color profile has invalid length '%" G_GSIZE_FORMAT "'."),
-                                                    icc_profile_size);
+                                                    _("Color profile has invalid length %d."),
+                                                    (gint)icc_profile_size);
                                        success = FALSE;
                                        goto cleanup;
                                }
diff --git a/gdk-pixbuf/io-tiff.c b/gdk-pixbuf/io-tiff.c
index 221bcac..7128a5c 100644
--- a/gdk-pixbuf/io-tiff.c
+++ b/gdk-pixbuf/io-tiff.c
@@ -735,8 +735,8 @@ gdk_pixbuf__tiff_image_save_to_callback (GdkPixbufSaveFunc   save_func,
                             g_set_error (error,
                                          GDK_PIXBUF_ERROR,
                                          GDK_PIXBUF_ERROR_BAD_OPTION,
-                                         _("Color profile has invalid length '%d'."),
-                                         icc_profile_size);
+                                         _("Color profile has invalid length %d."),
+                                         (gint)icc_profile_size);
                             retval = FALSE;
                             goto cleanup;
                         }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]