Closed Bug 1681539 Opened 5 years ago Closed 4 years ago

Localize profiler presets

Categories

(DevTools :: Performance Tools (Profiler/Timeline), task, P3)

task

Tracking

(firefox95 fixed)

RESOLVED FIXED
95 Branch
Tracking Status
firefox95 --- fixed

People

(Reporter: gregtatum, Assigned: julienw)

References

Details

Attachments

(4 files, 4 obsolete files)

94.55 KB, image/png
Details
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
Attached image image.png

I ran into a few issues localizing the presets, and didn't take them on in the initial bit of work to localize the profiler recording UI. The presets strings need to be shared between the Firefox main UI, and the devtools/client/performance-new infrastructure. This means probably putting them in the appmenu.ftl file. I had trouble with the menuitem rendering correctly, and with the descriptionHeightWorkaround being the wrong size when I initially tried this localization.

Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Assignee: jdescottes → felash

The patch is nearly ready -- except I see some of the problems Greg saw. I don't see issues with the menu item rendering (I think) but the height workaround does have issue.

This also uses the translation for the Custom preset in these user
interfaces.

Depends on D126205

This uses a sentinel element as well as a MutationObserver to detect
when the extra FTL file is loaded.

Depends on D126206

Attachment #9242229 - Attachment description: WIP: Bug 1681539 - Add a profiler marker for descriptionHeightWorkaround r=mconley → Bug 1681539 - Add a profiler marker for descriptionHeightWorkaround r=mconley
Attachment #9242230 - Attachment description: WIP: Bug 1681539 - [devtools performance] Use a shortcut when using createElement r=jdescottes! → Bug 1681539 - [devtools performance] Use a shortcut when using createElement r=jdescottes!
Attachment #9242231 - Attachment description: WIP: Bug 1681539 - [devtools performance] Move all of the popup initialization to one function in popup.jsm.js r=jdescottes! → Bug 1681539 - [devtools performance] Move all of the popup initialization to one function in popup.jsm.js r=jdescottes!
Attachment #9242232 - Attachment description: WIP: Bug 1681539 - [devtools performance] Use a shared FTL file between all profiler user interfaces r=jdescottes! → Bug 1681539 - [devtools performance] Use a shared FTL file between all profiler user interfaces r=jdescottes!
Attachment #9242233 - Attachment description: WIP: Bug 1681539 - [devtools performance] Wait until the extra FTL file is loaded before opening the popup r=jdescottes! → Bug 1681539 - [devtools performance] Wait until the extra FTL file is loaded before opening the popup r=jdescottes!
Attachment #9242295 - Attachment description: WIP: Bug 1681539 - [devtools performance] Move the translation for the Custom preset to the new shared file, and use it in all panels r=jdescottes! → Bug 1681539 - [devtools performance] Move the translation for the Custom preset to the new shared file, and use it in all panels r=jdescottes!
Attachment #9240573 - Attachment description: WIP: Bug 1681539 - [devtools performance] Localize all presets r=jdescottes! → Bug 1681539 - [devtools performance] Localize all presets r=jdescottes!
Attachment #9242229 - Attachment description: Bug 1681539 - Add a profiler marker for descriptionHeightWorkaround r=mconley → WIP: Bug 1681539 - Add a profiler marker for descriptionHeightWorkaround r=mconley
Attachment #9240573 - Attachment description: Bug 1681539 - [devtools performance] Localize all presets r=jdescottes! → WIP: Bug 1681539 - [devtools performance] Localize all presets r=jdescottes!
Attachment #9242295 - Attachment is obsolete: true
Attachment #9242233 - Attachment is obsolete: true
Attachment #9242232 - Attachment is obsolete: true
Attachment #9242231 - Attachment description: Bug 1681539 - [devtools performance] Move all of the popup initialization to one function in popup.jsm.js r=jdescottes! → WIP: Bug 1681539 - [devtools performance] Move all of the popup initialization to one function in popup.jsm.js r=jdescottes!
Attachment #9242229 - Attachment description: WIP: Bug 1681539 - Add a profiler marker for descriptionHeightWorkaround r=mconley → Bug 1681539 - Add a profiler marker for descriptionHeightWorkaround r=mconley
Attachment #9242231 - Attachment description: WIP: Bug 1681539 - [devtools performance] Move all of the popup initialization to one function in popup.jsm.js r=jdescottes! → Bug 1681539 - [devtools performance] Move all of the popup initialization to one function in popup.jsm.js r=jdescottes!
Attachment #9240573 - Attachment description: WIP: Bug 1681539 - [devtools performance] Localize all presets r=jdescottes! → Bug 1681539 - [devtools performance] Localize all presets r=jdescottes!
Pushed by jwajsberg@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/556b5fffc96d Add a profiler marker for descriptionHeightWorkaround r=mconley https://hg.mozilla.org/integration/autoland/rev/4c640c8a94a6 [devtools performance] Move all of the popup initialization to one function in popup.jsm.js r=jdescottes https://hg.mozilla.org/integration/autoland/rev/5f8305eba055 [devtools performance] Localize all presets r=jdescottes,fluent-reviewers,flod
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 95 Branch
Attachment #9242230 - Attachment is obsolete: true
Blocks: 1599774
No longer depends on: 1599774
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: