Closed Bug 219191 Opened 21 years ago Closed 21 years ago

"My Downloads", "The selected Actions..." are not localizable

Categories

(Firefox :: Settings UI, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firebird0.8

People

(Reporter: u60234, Assigned: bugs)

References

Details

Attachments

(1 file, 2 obsolete files)

-> me, 0.7
Assignee: bugs → mpconnor
Target Milestone: --- → Firebird0.7
Attached patch localization patch (obsolete) (deleted) — Splinter Review
Comment on attachment 131772 [details] [diff] [review] localization patch I think this is a blocker for 0.7. 0.6 and 0.6.1 both shipped with localization bugs, I'd like 0.7 to not share that
Attachment #131772 - Flags: review?(noririty)
as a note, this fixes both this bug and bug 219192 (not worth writing two patches for essentially the same bug).
Status: NEW → ASSIGNED
Blocks: 219192
Mike, there's some more in pref-downloads.js: targetFolder.append("My Downloads"); // XXXben localize http://lxr.mozilla.org/mozilla/source/browser/components/prefwindow/content/pref-downloads.js#205 dir.append("My Downloads"); // XXXben localize http://lxr.mozilla.org/mozilla/source/browser/components/prefwindow/content/pref-downloads.js#300 // XXXben LOCALIZE! var title = "Remove Actions"; var msg = "The selected Actions will no longer be performed when files of the affected types are downloaded. Are you sure you want to remove these Actions?"; http://lxr.mozilla.org/mozilla/source/browser/components/prefwindow/content/pref-downloads.js#341
Attached patch better patch (obsolete) (deleted) — Splinter Review
I adapted your patch - it wasn't quite "localizable" in the strict sense - strings shouldn't be appended, substitution values should be used instead. I'm going to check this into the trunk and the .7 br shortly.
Attachment #131772 - Attachment is obsolete: true
Attachment #131772 - Flags: review?(noririty)
Ben, thanks, I knew this patch wasn't quite right, haven't had time to come back to it in the last few days. Your patch (and mine) doesn't address the strings mentioned in comment 5 though, which includes the confirmation dialog when removing a file type.
Assignee: mpconnor → bugs
Status: ASSIGNED → NEW
Fixed, branch and trunk, 0.7
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Thanks for fixing "Select Download Folder". However, the strings mentioned in comment 5 are still not fixed. -> reopening; changing summary.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Summary: "Select Download Directory" is not localizable → "My Downloads", "The selected Actions..." are not localizable
oops. those weren't addressed by the attached patch. This is not going to make the cut for tomorrow so -> .8
Status: REOPENED → ASSIGNED
Target Milestone: Firebird0.7 → Firebird0.8
I made this patch along Ben's lines. It fixes "My Downloads", "Remove Actions", and the remove actions message.
Attachment #131979 - Attachment is obsolete: true
Attachment #132033 - Flags: review?(bugs)
Attachment #132033 - Flags: review?(bugs)
Comment on attachment 132033 [details] [diff] [review] patch for the remaining problems >+ var bundle = document.getElementById("strings"); >+ var description = bundle.getString("myDownloads"); >... >+ targetFolder.append(description); >Index: mozilla/toolkit/mozapps/downloads/locale/unknownContentType.properties >=================================================================== >+myDownloads=My Downloads Is there a way to access the downloads.label entity in the pref-downloads.dtd from javascript? Because it's the same: <!ENTITY downloads.label "My Downloads">
Attachment #132033 - Flags: review?(bugs)
no, its not possible. Patch looks good though.
r=me, and checked in.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago21 years ago
Resolution: --- → FIXED
Comment on attachment 132033 [details] [diff] [review] patch for the remaining problems Thanks Ben. (removing review request).
Attachment #132033 - Flags: review?(bugs)
Egg on my face for review+'ing this one. Steffen, your last patch caused the Options dialog to break... if you visit Downloads, then change panels and then click OK, the dialog won't dismiss. I've checked in a fix for it already, but the reason is as follows: - you referenced the 'document' object in the OK callback function. If the user visits the page and then changes away from it, the OK callback is registered, but the document it was created into has disappeared. So you need to create the string bundle manually using the API. That's what I checked in.
> Steffen, your last patch caused the Options dialog to break... if you visit > Downloads, then change panels and then click OK, the dialog won't dismiss. ??? Wfm with yesterday's build. But thanks a lot for the nice explanation.
sorry for bugspam, long-overdue mass reassign of ancient QA contact bugs, filter on "beltznerLovesGoats" to get rid of this mass change
QA Contact: mconnor → preferences
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: