Closed Bug 1778792 Opened 2 years ago Closed 2 years ago

Update language mismatch screen in MR onboarding

Categories

(Firefox :: Messaging System, enhancement, P1)

enhancement

Tracking

()

VERIFIED FIXED
105 Branch
Iteration:
105.2 - Aug 8 - Aug 19
Tracking Status
firefox105 --- verified
firefox106 --- verified

People

(Reporter: asafko, Assigned: hanna_a)

References

(Blocks 2 open bugs)

Details

Attachments

(4 files)

User Story
As a new user whose system and downloading browser languages do not match, I would like to be offered a choice to pick the language I’m most comfortable with in Firefox during the onboarding.

Figma File

Acceptance Criteria

  1. New users can select the language option they’re most comfortable with between their system and downloading browser language, so they experience all subsequent onboarding screens and Firefox at large in their chosen language.

  2. The choice is presented to new users experiencing the mismatch only once. If the language choice is unavailable because of the network being too slow and language options not loading, we will not display it in the future.

  3. If the network request to get and download langpacks didn’t return a response or returned an error when a user transitions from the previous Onboarding screen, the language mismatch screen is not presented to a user at all.

  4. If user has made a choice of language in this screen, we store a variable or a user property that signifies their preferred language. This will allow us to avoid showing this screen twice to existing users who have already made a choice in the past.

  5. The prompt to switch to the system language is displayed in the system language, as is the text (Firefox speaks your language) on the left hand side.

No longer depends on: 1774066
Blocks: 1778796
No longer blocks: 1778796
Assignee: nobody → halemu
Status: NEW → ASSIGNED
Iteration: --- → 105.1 - July 25 - Aug 5
Priority: P2 → P1
Iteration: 105.1 - July 25 - Aug 5 → 105.2 - Aug 8 - Aug 19
Attachment #9288161 - Attachment description: WIP: Bug 1778792 - Update language mismatch screen in MR onboarding → Bug 1778792 - Update language mismatch screen in MR onboarding

Bug 1479013 shows both the incoming locale and current locale when switching languages from about:preferences with a custom bundle instead of relying on the usual document.l10n or fluent-dom behavior. It makes explicit calls to formatValue that we haven't used for about:welcome, so it would be a bit more work to start supporting that.

https://searchfox.org/mozilla-central/rev/4f2984be127d2e7c788cf1848d63dca63022beec/browser/components/preferences/main.js#1062-1072

See Also: → 1479013
Attachment #9288161 - Attachment description: Bug 1778792 - Update language mismatch screen in MR onboarding → WIP: Bug 1778792 - Update language mismatch screen in MR onboarding
Attachment #9288161 - Attachment description: WIP: Bug 1778792 - Update language mismatch screen in MR onboarding → Bug 1778792 - Update language mismatch screen in MR onboarding
Blocks: 1784901
Blocks: 1785097
Attachment #9288161 - Attachment description: Bug 1778792 - Update language mismatch screen in MR onboarding → WIP: Bug 1778792 - Update language mismatch screen in MR onboarding
Attachment #9288161 - Attachment description: WIP: Bug 1778792 - Update language mismatch screen in MR onboarding → Bug 1778792 - Update language mismatch screen in MR onboarding
Attachment #9288161 - Attachment description: Bug 1778792 - Update language mismatch screen in MR onboarding → WIP: Bug 1778792 - Update language mismatch screen in MR onboarding
Attachment #9288161 - Attachment description: WIP: Bug 1778792 - Update language mismatch screen in MR onboarding → Bug 1778792 - Update language mismatch screen in MR onboarding
Pushed by halemu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/144868fa5739 Update language mismatch screen in MR onboarding r=fluent-reviewers,flod,Mardak
Attachment #9288161 - Attachment description: Bug 1778792 - Update language mismatch screen in MR onboarding → Bug 1778792 - Update language mismatch screen in MR onboarding r=flod,Mardak
Pushed by elee@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/483dbc4691da Update language mismatch screen in MR onboarding r=fluent-reviewers,flod,Mardak
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 105 Branch
Flags: needinfo?(halemu)

I‘ve verified this enhancement using the latest Firefox Nightly 106.0a1 (Build ID: 20220823214727) and Firefox Beta 105.0b2 (Build ID: 20220823185840) on Windows 10 x64, macOS 12.5.1, and Linux Mint 20.2 x64.

  • The "Choose Language" screen is only displayed for new users if the OS and browser languages do not match.
  • The screen is correctly displayed after the intro screen of the “about:welcome” page.
  • The title from the right part of the screen, the body text, and the “Continue in <Browser Language>” button are displayed in browser language.
  • The body text correctly mentions the system and browser languages that are used.
  • The OS language is applied to the browser if the “Switch to <OS Language>” button is accessed.
  • The OS language is not applied to the browser if the “Continue in <Browser Language>” button is accessed.
  • Also, the "Choose Language" screen is not displayed if there is no language mismatch between the OS and browser.

During verifying this enhancement, I’ve noticed that the title from the left part of the screen and the first button are not displayed in the OS language in some circumstances. I filled a new issue (Bug 1786784) for this behavior.

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

Attachment

General

Creator:
Created:
Updated:
Size: