Closed Bug 1893022 Opened 7 months ago Closed 7 months ago

Move Select Translations Fluent Strings out of Preview

Categories

(Firefox :: Translations, task, P3)

Desktop
All
task

Tracking

()

VERIFIED FIXED
127 Branch
Tracking Status
firefox126 --- verified
firefox127 --- verified

People

(Reporter: nordzilla, Assigned: nordzilla)

References

Details

Attachments

(2 files)

Description

To prepare for release, we need to move the Select Translations Fluent strings out of locales preview and into the en-US locale to be marked for translation by localizers.


Steps to implement

  • Move the preview strings into en-US/browser/translations.ftl
  • Migrate any strings that need it.
  • Remove the preview file.
  • Ensure that anything that depended on the preview file has the real file as a dependency as well.

Tests to implement

  • Existing tests should provide sufficient coverage.
Assignee: nobody → enordin
Type: defect → enhancement
Priority: -- → P3
Type: enhancement → task

Moves the Fluent strings for Select Translations out of
locales preview and into the en-US locale to mark them
to be translated by localizers for release.

Attachment #9398202 - Attachment description: WIP: Bug 1893022 - Move Select Translations Fluent Strings out of Preview r=#translations-reviewers! → Bug 1893022 - Move Select Translations Fluent Strings out of Preview r=#fluent-reviewers!
Pushed by flodolo@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b9149d37cec8 Move Select Translations Fluent Strings out of Preview r=fluent-reviewers,flod
Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch
Regressed by: 1896864
No longer regressed by: 1896864
Regressions: 1896864

Moves the Fluent strings for Select Translations out of
locales preview and into the en-US locale to mark them
to be translated by localizers for release.

Original Revision: https://phabricator.services.mozilla.com/D208383

Attachment #9402003 - Flags: approval-mozilla-release?

release Uplift Approval Request

  • User impact if declined: Firefox 126 users who are not on the en-US locale will see console spam described in Bug 1896864
  • Code covered by automated testing: no
  • Fix verified in Nightly: yes
  • Needs manual QE test: yes
  • Steps to reproduce for manual QE testing: Verify that the console spam described in Bug 1896864 no longer shows up in Firefox 126 release.
  • Risk associated with taking this patch: Low Risk
  • Explanation of risk level: It always feels risky uploading something into release, however the only changes here are to Fluent files and the markup that references them. No string values are changed. Values were only moved from a now-deleted preview Fluent file into a pre-existing Fluent file within the en-US locale.
  • String changes made/needed: None
  • Is Android affected?: no
Flags: qe-verify+
QA Whiteboard: [qa-triaged]

I can reproduce this issue in beta v126.0b9 and 126.0RC. When opening a build with another language than en-US or when changing the language different than en-US (basically when a window of a build in a different language than en-US is painted) a spam of errors is displayed in the Browser Console:
Attempt to override an existing message: "main-context-menu-translate-selection". preview/select-translations.ftl
Attempt to override an existing message: "main-context-menu-translate-selection-to-language". preview/select-translations.ftl
Attempt to override an existing message: "main-context-menu-translate-link-text". preview/select-translations.ftl
Attempt to override an existing message: "main-context-menu-translate-link-text-to-language". preview/select-translations.ftl
Attempt to override an existing message: "select-translations-panel-header". preview/select-translations.ftl
Attempt to override an existing message: "select-translations-panel-from-label". preview/select-translations.ftl
Attempt to override an existing message: "select-translations-panel-to-label". preview/select-translations.ftl
Attempt to override an existing message: "select-translations-panel-copy-button". preview/select-translations.ftl
Attempt to override an existing message: "select-translations-panel-done-button". preview/select-translations.ftl
Attempt to override an existing message: "select-translations-panel-translate-full-page-button"
Windows 10, MacOS 11 and Ubuntu 22 have been tested along with the following languages: German, French, British English and Spanish.
(This issue only reproduces for languages supported by this feature, it would appear.)

These errors have stopped showing up in beta v127.0b3.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
Attachment #9402003 - Flags: approval-mozilla-release? → approval-mozilla-release+
Attachment #9402003 - Flags: approval-mozilla-release+ → approval-mozilla-release-

:nordzilla this patch failed to land due to conflicts with release in browser/locales-preview/select-translations.ftl
Could you please take a look?

Flags: needinfo?(enordin)
Attachment #9402003 - Attachment description: Bug 1893022 - Move Select Translations Fluent Strings out of Preview r=#fluent-reviewers! → Bug 1893022 - Move Select Translations Fluent Strings out of Preview r=eemeli
Flags: needinfo?(enordin)
Flags: qe-verify+

This issue still reproduces in the latest Release v126.0 (20240509170740) and it no longer occurs in Release v126.0.1 (20240526221752).
Tested in Windows 10, MacOS 11 and Ubuntu 22.

Flags: qe-verify+
OS: Unspecified → All
Hardware: Unspecified → Desktop
Regressions: 1899255
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: