Closed
Bug 1425280
Opened 7 years ago
Closed 7 years ago
Fix localization note mismatch in devtools
Categories
(DevTools :: General, enhancement, P3)
Tracking
(firefox59 fixed)
RESOLVED
FIXED
Firefox 59
Tracking | Status | |
---|---|---|
firefox59 | --- | fixed |
People
(Reporter: jdescottes, Assigned: jdescottes)
References
Details
Attachments
(1 file, 2 obsolete files)
No description provided.
Assignee | ||
Comment 1•7 years ago
|
||
Try to catch localization note mistakes early (e.g. https://bugzilla.mozilla.org/show_bug.cgi?id=1423687#c18). This can be done using a mochitest similar to https://searchfox.org/mozilla-central/source/browser/base/content/test/static/browser_misused_characters_in_strings.js
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 5•7 years ago
|
||
Comment on attachment 8936967 [details]
Bug 1425280 - add a test to catch localization note mismatch
I would like to have a test similar to browser_misused_characters_in_strings.js but focused on catching localization note issues. Initially I thought I would only add it for devtools, but that might be interesting for m-c so let me know what you think.
The test itself is not very strict. It only checks that when there _is_ a localization note:
- it matches a definition in the dtd/properties file
- it is not duplicated with another localization note (which is usually what happens when you copy paste another string)
Attachment #8936967 -
Flags: feedback?(francesco.lodolo)
Attachment #8936967 -
Flags: feedback?(florian)
Comment 6•7 years ago
|
||
Comment on attachment 8936967 [details]
Bug 1425280 - add a test to catch localization note mismatch
The idea sounds good (gosh, so many errors), but I'd like to hear Pike's thoughts on the actual implementation, where I can't really be that useful.
Attachment #8936967 -
Flags: feedback?(francesco.lodolo) → feedback?(l10n)
Comment 7•7 years ago
|
||
mozreview-review |
Comment on attachment 8936967 [details]
Bug 1425280 - add a test to catch localization note mismatch
https://reviewboard.mozilla.org/r/207704/#review213620
In bug 1353680, I'm adding a linter for l10n, based on existing parsers. I'm actually rebasing that patch these days, so it's not that that bug is as stale as it looks.
This test should be part of that infrastructure, and I really don't want us to have more variants of trying to parse our l10n files.
Thus I'm giving this an r-, as much as this obviously helped you to find bugs.
Attachment #8936967 -
Flags: review-
Updated•7 years ago
|
Attachment #8936967 -
Flags: feedback?(l10n)
Assignee | ||
Comment 8•7 years ago
|
||
I will block this on your linter bug and will revisit once the linter infrastructure is ready.
Depends on: 1353680
Assignee | ||
Updated•7 years ago
|
Assignee: jdescottes → nobody
Status: ASSIGNED → NEW
Assignee | ||
Updated•7 years ago
|
Attachment #8936967 -
Attachment is obsolete: true
Attachment #8936967 -
Flags: feedback?(florian)
Assignee | ||
Comment 9•7 years ago
|
||
Repurposing to land the devtools-only fixes.
Summary: Add test to catch localization note mismatch → Fix localization note mismatch in devtools
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Attachment #8936969 -
Attachment is obsolete: true
Comment 11•7 years ago
|
||
mozreview-review |
Comment on attachment 8936968 [details]
Bug 1425280 - Fix localization note mismatch in devtools files;
https://reviewboard.mozilla.org/r/207706/#review215400
Thank you for catching and fixing all of these inconsistencies Julian.
Attachment #8936968 -
Flags: review?(pbrosset) → review+
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Assignee | ||
Comment 12•7 years ago
|
||
Thanks for the review! I'll keep monitoring bug 1353680, hopefully we can have a linter in the future to avoid reintroducing this kind of issues.
Comment 13•7 years ago
|
||
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/889f51eea06e
Fix localization note mismatch in devtools files;r=pbro
Comment 14•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox59:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 59
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•