Closed
Bug 1303027
Opened 8 years ago
Closed 8 years ago
Clean up seamonkey l10n configurations
Categories
(SeaMonkey :: Build Config, defect)
SeaMonkey
Build Config
Tracking
(Not tracked)
RESOLVED
FIXED
seamonkey2.48
People
(Reporter: Pike, Assigned: Pike)
References
Details
Attachments
(1 file)
There are a ton of old and unused l10n config files in suite/locales, we should remove them, and clean up the remaining files. This is in preparation to some more extensive changes on how compare-locales works internally, and how it's configured in-tree.
Comment hidden (mozreview-request) |
Assignee | ||
Updated•8 years ago
|
Attachment #8791748 -
Flags: review?(iann_bugzilla)
Assignee | ||
Updated•8 years ago
|
Attachment #8791748 -
Flags: review?(iann_bugzilla)
Assignee | ||
Comment 2•8 years ago
|
||
Comment on attachment 8791748 [details] bug 1303027, clean up seamonkey l10n configurations, sorry for the noise, trying to get mozreview to do what I hope it to do.
Attachment #8791748 -
Flags: review?(iann_bugzilla)
Comment on attachment 8791748 [details] bug 1303027, clean up seamonkey l10n configurations, https://reviewboard.mozilla.org/r/79044/#review77692 ::: suite/locales/filter.py:25 (Diff revision 1) > if entity is None: > # missing and obsolete files > - return not (re.match(r"searchplugins\/.+\.xml", path) or > + return ("ignore" if (re.match(r"searchplugins\/.+\.xml", path) or > - re.match(r"chrome\/common\/help\/images\/[A-Za-z-_]+\.[a-z]+", path)) > + re.match(r"chrome\/common\/help\/images\/[A-Za-z-_]+\.[a-z]+", path)) > - if path == "defines.inc": > - return entity != "MOZ_LANGPACK_CONTRIBUTORS" > + else "error") > + if path == "defines.inc" and entity == "MOZ_LANGPACK_CONTRIBUTORS": Shouldn't this be something like: if path == "defines.inc": return ("ignore" if (entity == "MOZ_LANGPACK_CONTRIBUTORS") else "error") ? ::: suite/locales/l10n.ini:21 (Diff revision 1) > +# not working on a local check-out > toolkit = mozilla/toolkit/locales/l10n.ini > services_sync = mozilla/services/sync/locales/l10n.ini > > [extras] > -dirs = mozilla/extensions/inspector > +dirs = mozilla/extensions/spellcheck Why is inspector being removed?
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 6•8 years ago
|
||
(In reply to Ian Neal from comment #3) > Comment on attachment 8791748 [details] > bug 1303027, clean up seamonkey l10n configurations, > > https://reviewboard.mozilla.org/r/79044/#review77692 > > ::: suite/locales/filter.py:25 > (Diff revision 1) > > if entity is None: > > # missing and obsolete files > > - return not (re.match(r"searchplugins\/.+\.xml", path) or > > + return ("ignore" if (re.match(r"searchplugins\/.+\.xml", path) or > > - re.match(r"chrome\/common\/help\/images\/[A-Za-z-_]+\.[a-z]+", path)) > > + re.match(r"chrome\/common\/help\/images\/[A-Za-z-_]+\.[a-z]+", path)) > > - if path == "defines.inc": > > - return entity != "MOZ_LANGPACK_CONTRIBUTORS" > > + else "error") > > + if path == "defines.inc" and entity == "MOZ_LANGPACK_CONTRIBUTORS": > > Shouldn't this be something like: > if path == "defines.inc": > return ("ignore" if (entity == "MOZ_LANGPACK_CONTRIBUTORS") > else "error") > ? Yes, fixed that 'cause it's more consistent. > ::: suite/locales/l10n.ini:21 > (Diff revision 1) > > +# not working on a local check-out > > toolkit = mozilla/toolkit/locales/l10n.ini > > services_sync = mozilla/services/sync/locales/l10n.ini > > > > [extras] > > -dirs = mozilla/extensions/inspector > > +dirs = mozilla/extensions/spellcheck > > Why is inspector being removed? Good question, made me remove more across the board. [extra] is only used in the dashboard automation code, to trigger compare runs. It's not used by compare-locales internally at all. Not sure if it ever was. Now, the paths coming in to the code never include the 'mozilla' prefix, so this is essentially a no-op. Thus I removed both entries, and did so consistently across all ini files.
Assignee | ||
Updated•8 years ago
|
Attachment #8791748 -
Flags: review?(iann_bugzilla)
Comment on attachment 8791748 [details] bug 1303027, clean up seamonkey l10n configurations, https://reviewboard.mozilla.org/r/79046/#review77924 Looks good to me
Attachment #8791748 -
Flags: review?(iann_bugzilla) → review+
Assignee | ||
Comment 8•8 years ago
|
||
Landed with a=ewong from irc, https://hg.mozilla.org/comm-central/rev/f8b0b5f8d2ec.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Comment 9•8 years ago
|
||
Is the devtools line intentionally being removed from l10n.ini?
Assignee | ||
Comment 10•8 years ago
|
||
Yes, I'd like to fix that in bug 1301940. TBH, I don't think this ever worked at all. I wonder how that didn't break people in real life yet.
You need to log in
before you can comment on or make changes to this bug.
Description
•