Closed
Bug 219191
Opened 21 years ago
Closed 21 years ago
"My Downloads", "The selected Actions..." are not localizable
Categories
(Firefox :: Settings UI, defect)
Firefox
Settings UI
Tracking
()
RESOLVED
FIXED
Firebird0.8
People
(Reporter: u60234, Assigned: bugs)
References
Details
Attachments
(1 file, 2 obsolete files)
(deleted),
patch
|
Details | Diff | Splinter Review |
Comment 2•21 years ago
|
||
Comment 3•21 years ago
|
||
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)
Comment 4•21 years ago
|
||
as a note, this fixes both this bug and bug 219192 (not worth writing two
patches for essentially the same bug).
Status: NEW → ASSIGNED
Comment 5•21 years ago
|
||
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
Assignee | ||
Comment 6•21 years ago
|
||
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
Updated•21 years ago
|
Attachment #131772 -
Flags: review?(noririty)
Comment 7•21 years ago
|
||
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
Assignee | ||
Comment 8•21 years ago
|
||
Fixed, branch and trunk, 0.7
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Comment 9•21 years ago
|
||
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
Assignee | ||
Comment 10•21 years ago
|
||
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
Comment 11•21 years ago
|
||
I made this patch along Ben's lines. It fixes "My Downloads", "Remove Actions",
and the remove actions message.
Updated•21 years ago
|
Attachment #131979 -
Attachment is obsolete: true
Updated•21 years ago
|
Attachment #132033 -
Flags: review?(bugs)
Updated•21 years ago
|
Attachment #132033 -
Flags: review?(bugs)
Comment 12•21 years ago
|
||
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)
Comment 13•21 years ago
|
||
no, its not possible. Patch looks good though.
Assignee | ||
Comment 14•21 years ago
|
||
r=me, and checked in.
Status: ASSIGNED → RESOLVED
Closed: 21 years ago → 21 years ago
Resolution: --- → FIXED
Comment 15•21 years ago
|
||
Comment on attachment 132033 [details] [diff] [review]
patch for the remaining problems
Thanks Ben.
(removing review request).
Attachment #132033 -
Flags: review?(bugs)
Assignee | ||
Comment 16•21 years ago
|
||
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.
Comment 17•21 years ago
|
||
> 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.
Comment 18•18 years ago
|
||
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.
Description
•