allow localisation of messages from nsIMsgFilter::LogRuleHitFail()
Categories
(MailNews Core :: Filters, defect)
Tracking
(Not tracked)
People
(Reporter: aceman, Assigned: aceman)
References
Details
Attachments
(2 files, 1 obsolete file)
14.61 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
1.77 KB,
patch
|
iannbugzilla
:
review+
|
Details | Diff | Splinter Review |
Comment 3•8 years ago
|
||
Updated•8 years ago
|
Comment 5•6 years ago
|
||
My last use of custom filters in an add-on was with the Forward add-on and I added custom filter actions to it in 2012. As far as I understood it, the process is somewhat crude, since you can't just overlay some xul or call an API, but have to add the actions yourself using JavaScript. This means for instance that it's hard (or impossible?) to add the custom filter action on a specific position in the list. The custom filters added by the Forward add-on would fit better directly under the original Forward filter action, much like the Forward As menu is directly under the Forward menu item, but then I didn't see a way to accomplish this.
That being said, I haven't used LogRuleHitFail, but from the looks of it, it should be fairly straightforward for add-on developer's to pass their own localized error message in the call.
OK, then we should keep the possibility to send the string that is to be output.
What about this version? For out internal actions, the passed string can be a stringID to look up in filter.properties (to not have to instantiate filter.properties bundle at all callers, only inside logRuleHitGeneric() where it already is). Still, if the stringID is not found, it will be output verbatim.
If an addon calls this function with a localized string for a custom action, it will be output verbatim.
Comment 7•6 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/a0a1515e9098
localize messages from nsIMsgFolder.logRuleHitFail(). r=mkmelin
Updated•6 years ago
|
Assignee | ||
Comment 10•6 years ago
|
||
Sorry, I forgot the Seamonkey strings here.
While the logging should not outright fail due to this, it should log the stringIDs instead of the (translated) strings.
Comment 11•6 years ago
|
||
Comment 12•6 years ago
|
||
Description
•