Closed Bug 372794 Opened 19 years ago Closed 19 years ago

Unnecessary string errCode in ldapAutoCompErrs.properties

Categories

(MailNews Core :: LDAP Integration, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: standard8, Assigned: standard8)

Details

(Keywords: memory-footprint)

Attachments

(1 file, 1 obsolete file)

http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/mail/locales/en-US/chrome/messenger/addressbook/ldapAutoCompErrs.properties&rev=1.3&mark=65-78#65 The errCode string gets loaded in the autocomplete code and then formatted into alertFormat - always as the first item. errCode doesn't get used anywhere else, nor does alertFormat. I suggest we just combine these two strings into one and save the bloat.
Attached patch The fix (obsolete) — Splinter Review
I'm not altogether sure its possible to display this output currently. However, we may need it later, and this will at least reduce the really unnecessary code.
Attachment #257552 - Flags: superreview?(bienvenu)
Attachment #257552 - Flags: review?(neil)
Comment on attachment 257552 [details] [diff] [review] The fix thx for the patch, Mark. If you change a string like alertFormat, you need to add a new property name like alertFormat1, so that the localizers know they need to change the string. This apparently will cause the different localization tinderbox builds to break, so the localizers know they need to change the string... other than that, the patch looks ok.
Attachment #257552 - Flags: superreview?(bienvenu) → superreview-
(In reply to comment #2) > (From update of attachment 257552 [details] [diff] [review]) > thx for the patch, Mark. If you change a string like alertFormat, you need to > add a new property name like alertFormat1, so that the localizers know they > need to change the string. This apparently will cause the different > localization tinderbox builds to break, so the localizers know they need to > change the string... Is that any string that we change the text on, or just ones with replacements in? If its any strings, then that'll severely limit us where we map number codes to strings.... Where has this been specified?
Comment on attachment 257552 [details] [diff] [review] The fix I'll give r=me now because it will still apply once you've renamed the string to David's satisfaction :-)
Attachment #257552 - Flags: review?(neil) → review+
As I understand it, it's any string you significantly change the semantic meaning of. I'm not sure where these rules/guidelines are written down. I learned about it like you - through review comments :-) I've cc'ed Axel - he might have more info/input. Yes, that's unfortunate about mapping number codes to strings. Not sure what we can do about that - perhaps post to the l10n group?
It's written down at http://developer.mozilla.org/en/docs/Writing_localizable_code, which holds true for semantic key names. If error codes really satisfy that is a totally different question, on the other hand, their meaning shouldn't change. I'd much rather change the key name to errorAlertFormat, which is a good name for what it is, than number it. Just consider the key names to be variable names. You changed it from a general alert format to an error alert format, which you then camel case and yay, fine name. Apart from that, a 'yay' on cleaning this up, that looked like an odd nightmare to localize.
Attached patch The fix v2Splinter Review
Thanks, at least I know why I'm changing things now :-) Carrying forward Neil's r.
Attachment #257552 - Attachment is obsolete: true
Attachment #257832 - Flags: superreview?(bienvenu)
Attachment #257832 - Flags: review+
Comment on attachment 257832 [details] [diff] [review] The fix v2 thx, Mark. I'm sure our 40+ localizations thank you too :-)
Attachment #257832 - Flags: superreview?(bienvenu) → superreview+
Patch checked in.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: