mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-06 16:51:46 +00:00
Don't use "(null)" for the image filename if there is no filename in the
url. Bug 121504, r=doron, sr=blake
This commit is contained in:
parent
ee39ebed49
commit
967b747f73
@ -118,7 +118,12 @@ nsContextMenu.prototype = {
|
||||
var saveImageMenuItem = document.getElementById( 'context-saveimage' );
|
||||
var imageName = extractFileNameFromUrl(this.imageURL);
|
||||
var bundle = srGetStrBundle("chrome://communicator/locale/contentAreaCommands.properties");
|
||||
var caption = bundle.formatStringFromName("saveImageAs",[imageName],1);
|
||||
var caption;
|
||||
if (imageName) {
|
||||
caption = bundle.formatStringFromName("saveImageAs", [imageName], 1);
|
||||
} else {
|
||||
caption = bundle.GetStringFromName("saveImageAsNoFilename");
|
||||
}
|
||||
|
||||
saveImageMenuItem.setAttribute( "label", caption );
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
# context menu strings
|
||||
|
||||
saveImageAs=Save Image (%S)...
|
||||
saveImageAsNoFilename=Save Image...
|
||||
searchText=Search %S for "%S"
|
||||
|
||||
SavePageTitle=Save Web Page
|
||||
|
Loading…
x
Reference in New Issue
Block a user