[gnome-sound-recorder] record.js: make entire filename one translatable string



commit dddb4b2baadc71511cc80d850f7485e7419432c4
Author: Meg Ford <meg387 gmail com>
Date:   Mon Dec 16 19:08:03 2013 -0600

    record.js: make entire filename one translatable string

 src/record.js |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/src/record.js b/src/record.js
index 3c4b14a..7a3b92b 100644
--- a/src/record.js
+++ b/src/record.js
@@ -267,7 +267,7 @@ const BuildFileName = new Lang.Class({
     buildPath: function() {
         let initialFileName = [];
         initialFileName.push(GLib.get_home_dir());
-        // Translators: "Recordings" here refers to the name of the directory where the application places 
files
+        /* Translators: "Recordings" here refers to the name of the directory where the application places 
files */
         initialFileName.push(_("Recordings"));
         
         return initialFileName;
@@ -282,12 +282,11 @@ const BuildFileName = new Lang.Class({
     buildInitialFilename: function() {
         let fileExtensionName = MainWindow.audioProfile.fileExtensionReturner();
         let dir = this.buildPath();
-        /* Translators: "Audio from" is the beginning of the default name assigned to a file created
-            by the application (for example, "Audio from 2013-10-05 13:25:21.ogg").*/
-        let prefix = _("Audio from"); 
         this.dateTime = GLib.DateTime.new_now_local();
-        let dateTimeString = this.dateTime.format(" %Y-%m-%d %H:%M:%S");                   
-        dir.push(prefix + dateTimeString + fileExtensionName);
+        /* Translators: "Audio from %Y-%m-%d %H:%M:%S" is the default name assigned to a file created
+            by the application (for example, "Audio from 2013-10-05 13:25:21.ogg"). */
+        let dateTimeString = this.dateTime.format(_("Audio from %Y-%m-%d %H:%M:%S"));  
+         dir.push(dateTimeString + fileExtensionName);
         // Use GLib.build_filenamev to work around missing vararg functions.
         let title = GLib.build_filenamev(dir);
         let file = Gio.file_new_for_path(title);


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