[gimp] app: improved internationalisation, added translator comment



commit d603b391c8956b03cc0e74023583c33f5641da88
Author: Sven Neumann <sven gimp org>
Date:   Sat May 16 14:53:57 2009 +0200

    app: improved internationalisation, added translator comment
---
 app/display/gimpdisplayshell-title.c |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/app/display/gimpdisplayshell-title.c b/app/display/gimpdisplayshell-title.c
index abee94e..ab2da0a 100644
--- a/app/display/gimpdisplayshell-title.c
+++ b/app/display/gimpdisplayshell-title.c
@@ -441,20 +441,22 @@ gimp_display_shell_format_filename (gchar       *buf,
                                     GimpImage   *image,
                                     const gchar *filename)
 {
-  gint         incr   = 0;
   const gchar *source = g_object_get_data (G_OBJECT (image),
                                            GIMP_FILE_IMPORT_SOURCE_URI_KEY);
-  if (! source)
-    {
-      incr = print (buf, len, start, "%s", filename);
-    }
-  else
+  if (source)
     {
       gchar *source_basename = file_utils_uri_display_basename (source);
+      gint   incr;
+
       incr = print (buf, len, start,
-                    "%s (%s %s)", filename,  _("imported from"), source_basename);
+                    /*  image name and source as shown in the title of
+                        the image window */
+                    _("%s (imported from %s)"), filename, source_basename);
+
       g_free (source_basename);
+
+      return incr;
     }
 
-  return incr;
+  return print (buf, len, start, "%s", filename);
 }



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