Bug 907211 - Fix localized string access for download size. r=ally

This commit is contained in:
Sam Foster 2013-08-20 18:16:30 -07:00
parent 4abd90b5b5
commit 612206ede1

View File

@ -41,8 +41,10 @@ HelperAppLauncherDialog.prototype = {
let displaySize = DownloadUtils.convertByteUnits(aSize);
if (displaySize[0] > 0) // [0] is size, [1] is units
return displaySize.join("");
else
return Strings.browser.GetStringFromName("downloadsUnknownSize");
else {
let browserBundle = Services.strings.createBundle("chrome://browser/locale/browser.properties");
return browserBundle.GetStringFromName("downloadsUnknownSize");
}
},
_getChromeWindow: function (aWindow) {