Closed Bug 1760033 Opened 2 years ago Closed 2 years ago

Migrate aboutReader.properties to Fluent

Categories

(Toolkit :: Reader Mode, task, P3)

task

Tracking

()

RESOLVED FIXED
107 Branch
Tracking Status
firefox107 --- fixed

People

(Reporter: eemeli, Assigned: eemeli)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

During startup, two strings only used by AboutReaderParent from aboutReader.properties are formatted: readerView.enter and readerView.enter.accesskey.

A few of the strings are formatted using PluralForm, a legacy API we'd like to drop.

As the readerView.close strings are also only used by this file, migrating all of them to Fluent with the properties-to-ftl tool should be relatively simple.

Severity: -- → N/A
Priority: -- → P3
Assignee: nobody → earo
Blocks: 1790189
Status: NEW → ASSIGNED
Summary: Migrate AboutReaderParent to use Fluent rather than .properties strings → Migrate aboutReader.properties to Fluent

The data included in the Reader:AddButton message used by SaveToPocket.jsm is slightly modified, as it now includes localization identifiers rather than a preformatted label.

See Also: → 1637089
Pushed by earo@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7f69b83013e1
Convert aboutReader.html to Fluent. r=Gijs,fluent-reviewers,geckoview-reviewers,flod,m_kato
https://hg.mozilla.org/integration/autoland/rev/f26056c61dc2
Convert AboutReaderParent.jsm to Fluent. r=Gijs,fluent-reviewers,flod
https://hg.mozilla.org/integration/autoland/rev/e54df449fbad
Remove aboutReader.properties and its remaining strings as unused. r=Gijs,geckoview-reviewers,m_kato

Two messages were migrated to browser.ftl, while they're actually needed in menubar.ftl. For some reason, the error this causes is only logged in local tests as:

 0:06.26 GECKO(74081) JavaScript error: , line 0: uncaught exception: undefined
 0:06.26 GECKO(74081) JavaScript error: , line 0: uncaught exception: undefined

in the middle of Marionette setup log prints.

New try: https://treeherder.mozilla.org/jobs?repo=try&revision=392c1731e3c291800ad48cba6928571dee21ea2f

Flags: needinfo?(earo)
Pushed by earo@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/776689ac2b69
Convert aboutReader.html to Fluent. r=Gijs,fluent-reviewers,geckoview-reviewers,flod,m_kato
https://hg.mozilla.org/integration/autoland/rev/0edfc7ab9988
Convert AboutReaderParent.jsm to Fluent. r=Gijs,fluent-reviewers,flod
https://hg.mozilla.org/integration/autoland/rev/03a5ba4802be
Remove aboutReader.properties and its remaining strings as unused. r=Gijs,geckoview-reviewers,m_kato
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 107 Branch
Blocks: 1795317
Duplicate of this bug: 1760034
No longer regressions: 1849149
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: