Closed
Bug 372794
Opened 19 years ago
Closed 19 years ago
Unnecessary string errCode in ldapAutoCompErrs.properties
Categories
(MailNews Core :: LDAP Integration, defect)
MailNews Core
LDAP Integration
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: standard8, Assigned: standard8)
Details
(Keywords: memory-footprint)
Attachments
(1 file, 1 obsolete file)
|
5.10 KB,
patch
|
standard8
:
review+
Bienvenu
:
superreview+
|
Details | Diff | Splinter Review |
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.
| Assignee | ||
Comment 1•19 years ago
|
||
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 2•19 years ago
|
||
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-
| Assignee | ||
Comment 3•19 years ago
|
||
(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 4•19 years ago
|
||
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+
Comment 5•19 years ago
|
||
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?
Comment 6•19 years ago
|
||
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.
| Assignee | ||
Comment 7•19 years ago
|
||
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 8•19 years ago
|
||
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+
| Assignee | ||
Comment 9•19 years ago
|
||
Patch checked in.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Updated•17 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•