Closed Bug 1564188 Opened 6 years ago Closed 6 years ago

Use remote Fluent files for CFR messages

Categories

(Firefox :: Messaging System, enhancement, P1)

enhancement

Tracking

()

VERIFIED FIXED
Firefox 71
Iteration:
71.1 - Sept 2 - 15
Tracking Status
firefox71 --- verified

People

(Reporter: nanj, Assigned: nanj)

References

Details

(Keywords: github-merged)

Attachments

(1 file)

No description provided.
Assignee: nobody → najiang
Blocks: 1564187
Iteration: --- → 70.1 - Jul 8 - 21
Priority: -- → P1

Adding bug 1564268 to the dependencies here, to have an actual loader class from Remote Settings.

Depends on: 1564268
Iteration: 70.1 - Jul 8 - 21 → 70.2 - Jul 22 - Aug 4
Iteration: 70.2 - Jul 22 - Aug 4 → 70.3 - Aug 5 - 18
Priority: P1 → P2
Iteration: 70.3 - Aug 5 - 18 → 70.4 - Aug 19 - Sep 1
Iteration: 70.4 - Aug 19 - Sep 1 → ---
Iteration: --- → 71.1 - Sept 2 - 15
Priority: P2 → P1
Keywords: github-merged
Blocks: 1581195
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 71

Notes for QA:

This makes CFR use the remote Fluent file (hosted by Remote Settings) for l10n so that we can deliver CFR messages off the Firefox release train.

Steps to test:

  • Open Firefox Nightly
  • Flip the pref browser.newtabpage.activity-stream.asrouter.devtoolsEnabled to turn on ASRouter devtools
  • Open the ASRouter devtools page by clicking the wrench icon on the top right corner of the newtab page
  • On the devtools admin page, there is a Messages section, open the dropdown list of Show messages from, and select cfr
  • Scroll down until you find the PIN_TAB message, click on the Show button, a blue button called Recommendation should be popped out in the awesome bar
  • Click on the Recommendation button, verify all the texts are localized with the current locale on the recommendation panel. For instance, its title should be "Try This: Pin Tab", followed by its body "Get easy access to your most-used sites. ...". Also, at the bottom, there should be two buttons labelled as "Not Now" and "Pin This Tab"
  • Next, let's make sure those texts were localized by the remote Fluent file. This could be done by checking the existence of the file, which should be located in ${localProfileDir}/settings/main/ms-language-packs/, and its name is asrouter.ftl. You can find ${localProfileDir} in about:profiles from the "local directory" entry

We can test the same with another locale, such as de, fr, es, etc. Anyone should be sufficient, there is no need to test all of them.

Thanks Nan for all the help provided.
I have verified this issue with the steps provided in Comment 4 on Latest Firefox Nightly 71.0a1 IT, DE and FR locales (ID build:20190916155843) on Windows 10 x64, Mac 10.14.5 and Arch Linux 4.16.6 x64.
The Recommendation button is localized according to the locale, and the asrouter.ftl file is displayed in the ${localProfileDir}/settings/main/ms-language-packs/ folder.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: