[gnome-screenshot] filename-builder: reintroduce spaces in file names



commit 2ea76dc34195ce23329394595fbf513918d08118
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Jan 28 12:40:34 2015 +0000

    filename-builder: reintroduce spaces in file names
    
    In commit 51485cf6bf8a8794150be0b8dff61fd573ae1512 we removed colons and
    spaces from the screenshot default filenames, but removing spaces is
    not really needed for the purpose of the patch (compatibility with FAT
    filesystems) and it looks bad. Bring spaces back.

 src/screenshot-filename-builder.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/screenshot-filename-builder.c b/src/screenshot-filename-builder.c
index 2f0f30d..06706d6 100644
--- a/src/screenshot-filename-builder.c
+++ b/src/screenshot-filename-builder.c
@@ -130,7 +130,7 @@ build_path (AsyncExistenceJob *job)
       GDateTime *d;
 
       d = g_date_time_new_now_local ();
-      origin = g_date_time_format (d, "%Y-%m-%d-%H%M%S");
+      origin = g_date_time_format (d, "%Y-%m-%d %H%M%S");
       g_date_time_unref (d);
     }
   else
@@ -140,14 +140,14 @@ build_path (AsyncExistenceJob *job)
     {
       /* translators: this is the name of the file that gets made up
        * with the screenshot if the entire screen is taken */
-      file_name = g_strdup_printf (_("Screenshot-from-%s.%s"), origin, file_type);
+      file_name = g_strdup_printf (_("Screenshot from %s.%s"), origin, file_type);
     }
   else
     {
       /* translators: this is the name of the file that gets
        * made up with the screenshot if the entire screen is
        * taken */
-      file_name = g_strdup_printf (_("Screenshot-from-%s-%d.%s"), origin, job->iteration, file_type);
+      file_name = g_strdup_printf (_("Screenshot from %s - %d.%s"), origin, job->iteration, file_type);
     }
 
   retval = g_build_filename (base_path, file_name, NULL);


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