Closed Bug 484838 Opened 15 years ago Closed 15 years ago

global/history/history.properties is unused and should be removed

Categories

(Toolkit :: Places, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED
mozilla1.9.2a1

People

(Reporter: unghost, Assigned: unghost)

References

()

Details

Attachments

(2 files)

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
Whiteboard: [good first bug]
Assignee: nobody → unghost
Status: NEW → ASSIGNED
Attachment #368938 - Flags: review?(gavin.sharp)
Attachment #368938 - Flags: review?(gavin.sharp) → review+
Keywords: checkin-needed
Whiteboard: [good first bug]
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]
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Flags: in-testsuite-
Keywords: checkin-needed
Resolution: --- → FIXED
Whiteboard: [needs 1.9.1 landing]
Target Milestone: --- → mozilla1.9.2a1
Version: unspecified → Trunk
Attachment #368938 - Flags: approval1.9.1?
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?
(I thought Axel was interested in string removals.)
Whiteboard: [needs 1.9.1 landing]
Axel said me we could probably do this after b4 release, so please ask him directly.
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]
Could this patch have broken the history submenus extension?
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 .
So I guess we shouldn't take this fix on 1.9.1, just for extension compat reasons?
Whiteboard: [needs-pike]
Yeah, seems like we should just leave this in on trunk and forget about it for branch.
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
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.
Thanks for the help, Gavin
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: