Migrate pageActionContextMenu in browser.xhtml to Fluent
Categories
(Firefox :: General, task, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox71 | --- | fixed |
People
(Reporter: zbraniecki, Assigned: zbraniecki)
References
Details
Attachments
(2 files)
As the next step, we want to validate the findings from https://bugzilla.mozilla.org/show_bug.cgi?id=1580978#c4 by migrating https://searchfox.org/mozilla-central/source/browser/base/content/browser.xhtml#568-586
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
Depends on D45880
Updated•5 years ago
|
Assignee | ||
Comment 3•5 years ago
|
||
This was much easier than https://bugzilla.mozilla.org/show_bug.cgi?id=1580978#c4
I updated the script to fix two issues listed there:
- Remove leading "./" from the paths in migration script
- Append to FTL file if one already exists instead of creating a new one
My steps were:
-
Extract the piece to a new file "./browser_pageAction.xhtml"
-
Launch
python python/l10n/convert_xul_to_fluent/convert.py 1581185 ./browser_pageAction.xhtml ./browser/locales/en-US/browser/browser.ftl ./ ./browser/locales/en-US/chrome/browser/browser.dtd "Migrate the pageActionContextMenu to FTL."
-
Paste the resulting
./browser_pageAction.xhtml
intobrowser.xhtml
in place of the old chunk -
Manually remove the strings from DTD
Comment 4•5 years ago
|
||
(In reply to Zibi Braniecki [:zbraniecki][:gandalf] from comment #3)
This was much easier than https://bugzilla.mozilla.org/show_bug.cgi?id=1580978#c4
I updated the script to fix two issues listed there:
- Remove leading "./" from the paths in migration script
- Append to FTL file if one already exists instead of creating a new one
My steps were:
Extract the piece to a new file "./browser_pageAction.xhtml"
Launch
python python/l10n/convert_xul_to_fluent/convert.py 1581185 ./browser_pageAction.xhtml ./browser/locales/en-US/browser/browser.ftl ./ ./browser/locales/en-US/chrome/browser/browser.dtd "Migrate the pageActionContextMenu to FTL."
Paste the resulting
./browser_pageAction.xhtml
intobrowser.xhtml
in place of the old chunkManually remove the strings from DTD
Thanks, that's much better!
One thing I did in the previous patch was to manually fix up the markup. For instance here we went from:
<menuitem class="pageActionContextMenuItem extensionPinned"
label="&pageAction.removeFromUrlbar.label;"
oncommand="BrowserPageActions.togglePinningForContextAction();"/>
To:
<menuitem class="pageActionContextMenuItem extensionPinned"
oncommand="BrowserPageActions.togglePinningForContextAction();" data-l10n-id="page-action-remove-from-urlbar"/>
In some cases the new form is probably fine (if the attributes preceeding it were short enough), but in general we try to put each one on a new line, aligned with the previous one. Does that seem fixable within the current script? Removing the extra manual step that would be great.
Assignee | ||
Comment 5•5 years ago
|
||
Does that seem fixable within the current script? Removing the extra manual step that would be great.
Yep! Fixed!
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Pushed by zbraniecki@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5bb71874a9f3 Fix relative paths in migration script generation. r=bgrins https://hg.mozilla.org/integration/autoland/rev/86f77b5cc705 Migrate pageActionContextMenu in browser.xhtml to Fluent. r=fluent-reviewers,bgrins,flod
Comment 7•5 years ago
|
||
Backed out for linting failure at xul.py
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=267276232&repo=autoland&lineNumber=289
Backout: https://hg.mozilla.org/integration/autoland/rev/00e37dda872ba72c8f8b9509690fb071f264df5e
Pushed by zbraniecki@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d336ff588e4b Fix relative paths in migration script generation. r=bgrins https://hg.mozilla.org/integration/autoland/rev/f8223f3c02b0 Migrate pageActionContextMenu in browser.xhtml to Fluent. r=fluent-reviewers,bgrins,flod
Assignee | ||
Updated•5 years ago
|
Comment 9•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/d336ff588e4b
https://hg.mozilla.org/mozilla-central/rev/f8223f3c02b0
Description
•