Closed
Bug 451360
Opened 17 years ago
Closed 7 years ago
The internal format() function should be exposed to JavaScript
Categories
(Core :: XPConnect, enhancement)
Core
XPConnect
Tracking
()
RESOLVED
INACTIVE
People
(Reporter: jwkbugzilla, Unassigned)
References
Details
Currently, the only way to get to the internal format() function is this:
var sb = createStringBundle("data:text/plain,format=" + encodeURIComponent("%02S-%04S"));
var data = [1,2];
sb.formatStringFromName("format", data, data.length);
This hack shouldn't be necessary, the format() function should be exposed directly - maybe as Components.utils.format().
Comment 1•16 years ago
|
||
One use case is an app that uses a localization strategy other than string bundles, e.g. because it's remote XUL.
Comment 2•7 years ago
|
||
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INACTIVE
You need to log in
before you can comment on or make changes to this bug.
Description
•