mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-21 20:12:30 +00:00
app: improved internationalisation, added translator comment
This commit is contained in:
parent
9cf6214c74
commit
d603b391c8
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue