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

NEW
Unassigned

Status

()

Toolkit
Downloads API
9 years ago
9 years ago

People

(Reporter: Paolo, Unassigned)

Tracking

(Blocks: 1 bug)

Trunk
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

9 years ago
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.
(Reporter)

Updated

9 years ago
Blocks: 537256

Comment 1

9 years ago
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
You need to log in before you can comment on or make changes to this bug.