Open Bug 537231 Opened 15 years ago Updated 2 years ago

In save functions of contentAreaUtils.js, either allow callers to specify a localized string for the file picker title, or add the SaveAttachmentTitle key

Categories

(Toolkit :: Downloads API, defect)

defect

Tracking

()

People

(Reporter: Paolo, Unassigned)

References

(Blocks 1 open bug)

Details

Some of the save functions have a parameter named aFilePickerTitleKey, which contains the ID of the string from "contentAreaCommands.properties" that should be used for the file picker's title. SeaMonkey wants to display a file picker titled "Save Attachment", but there is no key associated with this string in Toolkit's bundle. Possible solutions: 1. Add the SaveAttachmentTitle key to contentAreaCommands.properties 2. Allow callers to specify also a localized string for the file picker title (more convoluted, but would allow SM to read the localized string from messenger.properties, see bug 296597 comment 8) At present the only function requiring this functionality is internalSave, called from here: http://mxr.mozilla.org/comm-central/source/suite/mailnews/msgHdrViewOverlay.js#1145 Waiting for comments.
Blocks: 537256
One alternative would be rather than hardcoding its location that the string bundle could be found via a XUL <stringbundle> element with a hardcoded ID, but therefore allowing clients to specify a different properties file.
Version: unspecified → Trunk
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.