Bug 680812 - Excessive space between "280" and "KB" in download dialog; r=dolske
authorKailas <patilkr24@gmail.com>
Mon, 12 Sep 2011 10:24:02 -0400
changeset 76889 b3eb728a2d54120c77bec8b3bdba9579aaa916f1
parent 76888 01a9f0ee22348ecf195f50d74a6edfcbd18b1c67
child 76890 90e4d207f5dd1b8abad50ec47468a702ecb33431
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
reviewersdolske
bugs680812
milestone9.0a1
Bug 680812 - Excessive space between "280" and "KB" in download dialog; r=dolske
toolkit/locales/en-US/chrome/mozapps/downloads/unknownContentType.properties
toolkit/mozapps/downloads/nsHelperAppDlg.js
--- a/toolkit/locales/en-US/chrome/mozapps/downloads/unknownContentType.properties
+++ b/toolkit/locales/en-US/chrome/mozapps/downloads/unknownContentType.properties
@@ -45,18 +45,18 @@ chooseAppFilePickerTitle=Choose Helper A
 badApp=The application you chose ("%S") could not be found.  Check the file name or choose another application.
 badApp.title=Application not found
 badPermissions=The file could not be saved because you do not have the proper permissions.  Choose another save directory.
 badPermissions.title=Invalid Save Permissions
 selectDownloadDir=Select Download Folder
 unknownAccept.label=Save File
 unknownCancel.label=Cancel
 fileType=%S file
-# LOCALIZATION NOTE (fileSizeWithType): first %S is type, second %S is size, and third %S is unit  
-fileSizeWithType=%1S (%2S %3S)
+# LOCALIZATION NOTE (orderedFileSizeWithType): first %S is type, second %S is size, and third %S is unit  
+orderedFileSizeWithType=%1$S (%2$S %3$S)
 
 # LOCALIZATION NOTE (wpsDefaultOS2): OS/2 only, WPS refers to the Workplace Shell and should probably not be translated
 wpsDefaultOS2=WPS Default
 # LOCALIZATION NOTE (classViewerOS2): OS/2 only
 classViewerOS2=Viewer for Class %S
 # LOCALIZATION NOTE (mmImageViewerOS2): OS/2 only, default operation of image files with OS/2 multimedia support installed
 mmImageViewerOS2=Image Viewer
 # LOCALIZATION NOTE (mmAudioPlayerOS2): OS/2 only, default operation of audio files with OS/2 multimedia support installed
--- a/toolkit/mozapps/downloads/nsHelperAppDlg.js
+++ b/toolkit/mozapps/downloads/nsHelperAppDlg.js
@@ -611,17 +611,17 @@ nsUnknownContentTypeDialog.prototype = {
       else
         typeString = mimeInfo.MIMEType;
     }
     // When the length is unknown, contentLength would be -1
     if (this.mLauncher.contentLength >= 0) {
       let [size, unit] = DownloadUtils.
                          convertByteUnits(this.mLauncher.contentLength);
       type.value = this.dialogElement("strings")
-                       .getFormattedString("fileSizeWithType", 
+                       .getFormattedString("orderedFileSizeWithType", 
                                            [typeString, size, unit]);
     }
     else {
       type.value = typeString;
     }
   },
 
   _blurred: false,