Closed
Bug 207550
Opened 21 years ago
Closed 18 years ago
hardcoded ASCII strings in Junk logging / Filter logging code
Categories
(MailNews Core :: Internationalization, defect)
MailNews Core
Internationalization
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: yinglinxia, Assigned: smontagu)
References
(Blocks 1 open bug)
Details
(Keywords: fixed1.8.1, intl, l12y, Whiteboard: [adt2])
Attachments
(4 files, 4 obsolete files)
167.83 KB,
image/jpeg
|
Details | |
23.81 KB,
patch
|
Bienvenu
:
review+
Bienvenu
:
superreview+
|
Details | Diff | Splinter Review |
1.39 KB,
patch
|
Bienvenu
:
review+
Bienvenu
:
superreview+
|
Details | Diff | Splinter Review |
22.91 KB,
patch
|
mscott
:
approval-thunderbird2+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; ja-JP; rv:1.4b) Gecko/20030506 Netscape/7.02+ Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; ja-JP; rv:1.4b) Gecko/20030506 Netscape/7.02+ Please move this hardcoded string into en-US.jar, so l10n can translate it: http://lxr.mozilla.org/seamonkey/source/mailnews/base/src/nsSpamSettings.cpp#479 Reproducible: Always Steps to Reproduce: 1. 2. 3.
actually i wanted to nominate anothet bug for Junk folder
Keywords: nsbeta1
Reporter | ||
Comment 3•21 years ago
|
||
still, we need this to be fixed as well, nominating
Keywords: nsbeta1
Reporter | ||
Comment 4•21 years ago
|
||
this is copied from bugscape bug http://bugscape/show_bug.cgi?id=28361
Comment 7•21 years ago
|
||
adt: nsbeta1+/adt2 Seth, can you work with the 18n/l10n folks to get this change in? Thanks.
Comment 8•21 years ago
|
||
accepting, I'll fix this. I think I might have an old dup of this. something to note, we also have some old, hardcoded filter logging code. the fix for the logging issues will be to nsMsgFilter::LogRuleHit() and nsSpamSettings::LogJunkHit() bobj/robinf this will require moving some strings from C++ to .properties. does that have a= from i18n at this stage?
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.4final
Reporter | ||
Comment 10•21 years ago
|
||
when you fix, can you make the strings somthing like: # %1=author, %2=subject, %3=date messageID="Detected junk message from %1 - %2 at %3\n"; #%1=message, %2=folder messageID= "Move message id = %1 to %2\n"; this way, other languages can change the replacement symbol order in their needs. thanks
Comment 11•21 years ago
|
||
> bobj/robinf this will require moving some strings from C++ to .properties.
> does that have a= from i18n at this stage?
Yes, a=bobj for UI change. Thanks!
Updated•21 years ago
|
Summary: hardcoded string for Junk log → hardcoded ASCII strings in Junk logging / Filter logging code
Comment 12•21 years ago
|
||
Comment 13•21 years ago
|
||
Attachment #124878 -
Attachment is obsolete: true
Comment 14•21 years ago
|
||
in case anyone is watching that's not my final patch. (it's got some testing foo in junkLogDetectStr, and I still need to test.)
Comment 15•21 years ago
|
||
What happened with this path? Why is it not in the tree? It seems that you still forgot to fix the time notation format to the one used by OS. See bug #201248.
Updated•21 years ago
|
Flags: blocking1.7a? → blocking1.7a+
Comment 16•21 years ago
|
||
only drivers can set (+) blocking flags. you can request (?) them.
Flags: blocking1.7a+
Updated•21 years ago
|
Flags: blocking1.7a?
Comment 17•21 years ago
|
||
is this patch ready to request reviews on? lets get reviews and try for landing in 1.7b
Comment 18•21 years ago
|
||
*** Bug 174843 has been marked as a duplicate of this bug. ***
Updated•21 years ago
|
Flags: blocking1.7a? → blocking1.7a-
Updated•20 years ago
|
Flags: blocking1.7b?
Comment 19•20 years ago
|
||
still needs some testing. can anyone help to move the testing and patch along? think seth is swamped with other stuff... thanks if something shows before 1.7 final renominate
Flags: blocking1.7b? → blocking1.7b-
Updated•20 years ago
|
Flags: blocking-aviary1.0RC1?
Comment 20•20 years ago
|
||
out of time for the pre-view release. re-nominate if the testing happens
Flags: blocking-aviary1.0PR? → blocking-aviary1.0PR-
Updated•20 years ago
|
Product: MailNews → Core
Comment 22•18 years ago
|
||
This patch likely doesn't apply anymore. From a l12y point of view, it looks like the right thing to do, though. We'd like this for a2, due to the l10n impact.
Target Milestone: mozilla1.4final → ---
Assignee | ||
Updated•18 years ago
|
Assignee: sspitzer → smontagu
Status: ASSIGNED → NEW
Assignee | ||
Comment 23•18 years ago
|
||
Attachment #124918 -
Attachment is obsolete: true
Assignee | ||
Comment 24•18 years ago
|
||
The merged patch seems to cause problems with filter logging: the actions dropdowns don't appear in the Filter Rules dialog, and the log doesn't get written. Junk mail logging seems fine.
Comment 25•18 years ago
|
||
nit, please chane the LOCALIZATION NOTES to LOCALIZATION NOTE?
Assignee | ||
Comment 26•18 years ago
|
||
(In reply to comment #24) > The merged patch seems to cause problems with filter logging: the actions > dropdowns don't appear in the Filter Rules dialog This wasn't caused by the patch: it's bug 341010
Depends on: 341010
Comment 27•18 years ago
|
||
Seth, could you try to remember how the filterActionX stuff ended up to be used? I.e., do we need to support grammar for those, too? The patch just lost me a few times when trying to find that out.
Assignee | ||
Comment 28•18 years ago
|
||
This is a more intelligent merge allowing for new filter actions that have been added in the meantime. It also fixes the bug with the log not being written, and adds localization of the dates. I'll hold on review requests until I can test it after bug 341010 is fixed.
Attachment #225254 -
Attachment is obsolete: true
Assignee | ||
Comment 29•18 years ago
|
||
Comment on attachment 225322 [details] [diff] [review] slightly enhanced version It turns out that a patch was checked in some time ago for bug 341010, but it wasn't marked as fixed; I am no longer seeing the problem that I was seeing before.
Attachment #225322 -
Flags: superreview?(mscott)
Attachment #225322 -
Flags: review?(bienvenu)
Comment 30•18 years ago
|
||
Comment on attachment 225322 [details] [diff] [review] slightly enhanced version Thx very much for doing this! r=bienvenu, with some nits: + mDateFormatter = do_CreateInstance(NS_DATETIMEFORMAT_CONTRACTID); + if (!mDateFormatter) { + return NS_ERROR_FAILURE; won't do_CreateInstance return an rv as an out value when it fails? I'd prefer to return that rv instead of NS_ERROR_FAILURE. the other thing is that I'd prefer the braces style to be this: if (a) { ... } which should be pretty much the prevailing style in this file.
Assignee | ||
Comment 31•18 years ago
|
||
*** Bug 191183 has been marked as a duplicate of this bug. ***
Comment 32•18 years ago
|
||
Comment on attachment 225322 [details] [diff] [review] slightly enhanced version should these strings be in filter.properties instead of messenger.properties? We could use a space after the comma here: + NS_ENSURE_SUCCESS(rv,rv); rest of it looks good modulo the suggestions David already made.
Comment 33•18 years ago
|
||
I think Scott's right about using filter.properties. With those changes, I think we're good. If you can attach a new patch, I can slap an r/sr on it. Thx!
Assignee | ||
Comment 34•18 years ago
|
||
Attachment #225322 -
Attachment is obsolete: true
Attachment #233446 -
Flags: superreview?
Attachment #233446 -
Flags: review?
Attachment #225322 -
Flags: superreview?(mscott)
Attachment #225322 -
Flags: review?(bienvenu)
Assignee | ||
Updated•18 years ago
|
Attachment #233446 -
Flags: superreview?(bienvenu)
Attachment #233446 -
Flags: superreview?
Attachment #233446 -
Flags: review?(bienvenu)
Attachment #233446 -
Flags: review?
Comment 35•18 years ago
|
||
Comment on attachment 233446 [details] [diff] [review] Patch addressing comments looks good, thx a lot, Simon. One nit, which you can address or not, before you checkin, up to you: + if (actionType == nsMsgFilterAction::MoveToFolder) + rv = bundle->FormatStringFromName( + NS_LITERAL_STRING("logMoveStr").get(), + logMoveFormatStrings, 2, + getter_Copies(logMoveStr)); + else // CopyToFolder + rv = bundle->FormatStringFromName( + NS_LITERAL_STRING("logCopyStr").get(), + logMoveFormatStrings, 2, + getter_Copies(logMoveStr)); this can be something like: + rv = bundle->FormatStringFromName( + actionType == nsMsgFilterAction::MoveToFolder ? NS_LITERAL_STRING("logMoveStr").get() : NS_LITERAL_STRING("logCopyStr").get(), + logMoveFormatStrings, 2, + getter_Copies(logMoveStr));
Attachment #233446 -
Flags: superreview?(bienvenu)
Attachment #233446 -
Flags: superreview+
Attachment #233446 -
Flags: review?(bienvenu)
Attachment #233446 -
Flags: review+
Assignee | ||
Comment 36•18 years ago
|
||
Checked in with the change from comment 35
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Comment 37•18 years ago
|
||
Because of thunderbirds latest improvements: filterAction7 should be "starred" filterAction8 should be "tagged"
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 38•18 years ago
|
||
Am I right that the change from "labeled" to "tagged" should be made for both Seamonkey mail and Thunderbird, but the change from "flagged" to "starred" should only be made for Thunderbird?
Assignee | ||
Comment 39•18 years ago
|
||
Attachment #233952 -
Flags: superreview?(bienvenu)
Attachment #233952 -
Flags: review?(bienvenu)
Updated•18 years ago
|
Attachment #233952 -
Flags: superreview?(bienvenu)
Attachment #233952 -
Flags: superreview+
Attachment #233952 -
Flags: review?(bienvenu)
Attachment #233952 -
Flags: review+
Comment 40•18 years ago
|
||
Re TB vs SM for starred, I think that's up to the SM owners like Neil or Karsten
Assignee | ||
Comment 41•18 years ago
|
||
Checked in the correction.
> Re TB vs SM for starred, I think that's up to the SM owners like Neil or
> Karsten
The filter descriptions are now consistent with the menus in both versions so if they change they can all change together.
Status: REOPENED → RESOLVED
Closed: 18 years ago → 18 years ago
Resolution: --- → FIXED
Comment 42•18 years ago
|
||
not a stop ship bug but if Simon is interested in moving this to the branch we'd probably approve it.
Flags: blocking-thunderbird2? → blocking-thunderbird2-
Assignee | ||
Comment 43•18 years ago
|
||
Does l10n freeze not apply to thunderbird-2?
Comment 44•18 years ago
|
||
No, we haven't had our l10n freeze yet. We haven't even had our first beta yet :)
Assignee | ||
Comment 45•18 years ago
|
||
Attachment #237617 -
Flags: approval-thunderbird2?
Updated•18 years ago
|
Attachment #237617 -
Flags: approval-thunderbird2? → approval-thunderbird2+
Assignee | ||
Updated•18 years ago
|
Keywords: fixed1.8.1
Updated•16 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•