Bug 1295914, improve the title of the folder picker a bit, r=baku

This commit is contained in:
Olli Pettay
2016-08-24 02:06:08 +03:00
parent fa96006540
commit ebd3b63b09
2 changed files with 8 additions and 2 deletions

View File

@@ -938,8 +938,13 @@ HTMLInputElement::InitFilePicker(FilePickerType aType)
// Get Loc title
nsXPIDLString title;
nsContentUtils::GetLocalizedString(nsContentUtils::eFORMS_PROPERTIES,
"FileUpload", title);
if (aType == FILE_PICKER_DIRECTORY) {
nsContentUtils::GetLocalizedString(nsContentUtils::eFORMS_PROPERTIES,
"DirectoryUpload", title);
} else {
nsContentUtils::GetLocalizedString(nsContentUtils::eFORMS_PROPERTIES,
"FileUpload", title);
}
nsCOMPtr<nsIFilePicker> filePicker = do_CreateInstance("@mozilla.org/filepicker;1");
if (!filePicker)