Closed
Bug 484838
Opened 16 years ago
Closed 16 years ago
global/history/history.properties is unused and should be removed
Categories
(Toolkit :: Places, defect)
Toolkit
Places
Tracking
()
RESOLVED
FIXED
mozilla1.9.2a1
People
(Reporter: unghost, Assigned: unghost)
References
()
Details
Attachments
(2 files)
2.37 KB,
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
63.14 KB,
image/jpeg
|
Details |
from https://bugzilla.mozilla.org/show_bug.cgi?id=484252#c3:
> FWIW, some of these strings also present in
> http://mxr.mozilla.org/mozilla-central/source/toolkit/locales/en-US/chrome/global/history/history.properties
mxr teels me that file is completely unused, in such a case it should be
removed
Updated•16 years ago
|
Whiteboard: [good first bug]
Assignee | ||
Comment 1•16 years ago
|
||
Updated•16 years ago
|
Attachment #368938 -
Flags: review?(gavin.sharp) → review+
Assignee | ||
Updated•16 years ago
|
Keywords: checkin-needed
Whiteboard: [good first bug]
Comment 2•16 years ago
|
||
Comment on attachment 368938 [details] [diff] [review]
Patch
[Checkin: Comment 2]
http://hg.mozilla.org/mozilla-central/rev/f3bfeb5de776
Attachment #368938 -
Attachment description: Patch → Patch
[Checkin: Comment 2]
Updated•16 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Flags: in-testsuite-
Keywords: checkin-needed
Resolution: --- → FIXED
Whiteboard: [needs 1.9.1 landing]
Target Milestone: --- → mozilla1.9.2a1
Version: unspecified → Trunk
Updated•16 years ago
|
Attachment #368938 -
Flags: approval1.9.1?
Comment 3•16 years ago
|
||
Comment on attachment 368938 [details] [diff] [review]
Patch
[Checkin: Comment 2]
Axel can correct me if I'm wrong, but I don't think the reduced-workload benefits of landing this on the branch outweigh the coordination difficulties.
Attachment #368938 -
Flags: approval1.9.1?
Comment 4•16 years ago
|
||
(I thought Axel was interested in string removals.)
Whiteboard: [needs 1.9.1 landing]
Comment 5•16 years ago
|
||
Axel said me we could probably do this after b4 release, so please ask him directly.
Comment 6•16 years ago
|
||
After B4, it might be a good idea.
Which means that it's probably a bad idea to request approval now. We'll need to revisit this once B4 is out of the door.
Whiteboard: [needs-pike]
Comment 7•16 years ago
|
||
Could this patch have broken the history submenus extension?
Comment 8•16 years ago
|
||
Probably... the extension author will have to work around this in his extension, though. It's not too hard for him to include the strings himself, or change to use chrome://browser/locale/places/places.properties .
Comment 9•16 years ago
|
||
Gavin: bug 485685
Comment 10•16 years ago
|
||
So I guess we shouldn't take this fix on 1.9.1, just for extension compat reasons?
Whiteboard: [needs-pike]
Comment 11•16 years ago
|
||
Yeah, seems like we should just leave this in on trunk and forget about it for branch.
Comment 12•16 years ago
|
||
Hi. I'm the maintainer of history submenus. I was hoping you could help a bit with generating new code. I'd rather not just put strings in the extension for English. Using the strings in firefox lets me internationalize the extension rather easily.
I changed the xul override file to have a different stringbundle as suggested above:
<stringbundle id="daynames" src="chrome://browser/locale/places/places.properties"/>
but that doesn't fix anything (at least not with ffx 3.0.6).
The code that's using these strings is:
var daynames=document.getElementById("daynames");
daystring[0]=daynames.getString("finduri-AgeInDays-is-0");
daystring[1]=daynames.getString("finduri-AgeInDays-is-1");
daystring[i]=daynames.getFormattedString("finduri-AgeInDays-is",[i]);
I unzipped some jar files from Firefox 3.1b2 and found that these strings are only in locale/en-US/places (in the English version of the browser).
Any suggestions as to what I'm doing wrong and how to re-code?
Thanks in advance for any help
Comment 13•16 years ago
|
||
Those strings are also found in chrome://places/locale/places.properties , which hasn't been removed. You always use MXR to find what you need:
http://mxr.mozilla.org/mozilla-central/search?string=finduri-AgeInDays-is-0
to find the bundle, and then:
http://mxr.mozilla.org/mozilla-central/search?string=places.properties
to find its chrome URL.
Comment 14•16 years ago
|
||
Thanks for the help, Gavin
You need to log in
before you can comment on or make changes to this bug.
Description
•