Closed Bug 2084050 Opened 1 month ago Closed 10 days ago

Migrate installer strings to Fluent

Categories

(Firefox :: Installer, task)

task

Tracking

()

RESOLVED FIXED
163 Branch
Tracking Status
firefox163 --- fixed

People

(Reporter: flod, Assigned: flod)

References

Details

Attachments

(1 external file)

We currently use .properties to store installer strings, but they're not real properties:

  • They use custom placeholders that are not linted
  • Custom tricks for trailing spaces (quoted strings, e.g. paceRequired="Space required: ").
  • & to pick an accesskey.

These are not used as is, they're converted to the native NSIS format via Python.

I plan to convert these to Fluent, using accesskey attributes for accesskeys, and Fluent variables. I don't think I can use terms, since it would require resolving them when converting, but I'll give it a try.

I also assume this needs to be coordinate with Thunderbird folks, and I will need some help to confirm the installer still works (I can easily compare the output of preprocess-locales.py before and after).

Actually, Fluent terms for brands are not an option. We need the variable in the output, since the text is not used as is. Even if that was the case, some locales are doing some changes that would make the migration a nightmare.

Example for Finnish: $BrandShortName &Options  becomes $BrandShortNamein &asetukset, adding in.

Assignee: nobody → francesco.lodolo

:flod The installer doesn't link xul.dll or other "normal" libraries that are used in the browser. Would using fluent require adding new libraries to the installer build? Or would fluent be used only at build time for file generation?

Flags: needinfo?(francesco.lodolo)

(In reply to Chris DuPuis from comment #2)

Or would fluent be used only at build time for file generation?

The changes are only in the Python file linked in the first comment. We don't use .properties currently, we won't use .ftl with the patch.

The way I'm testing my changes so far is by comparing the output before and after the changes.

Flags: needinfo?(francesco.lodolo)

The installer .properties files were only a container for NSIS strings: they
relied on NSIS placeholders, quotes to preserve trailing spaces, and inline &
accesskeys, none of which could be linted or handled by l10n tooling.

preprocess-locale.py now converts the Fluent files to NSIS language files,
falling back to en-US per message and inlining .accesskey attributes in labels.

Severity: -- → N/A
Pushed by flodolo@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/20168101634d https://hg.mozilla.org/integration/autoland/rev/c0bae68898ce Migrate Windows installer strings to Fluent. r=eemeli,browser-installer-reviewers,firefox-build-system-reviewers,fluent-reviewers,ahochheiden,spohl
Status: NEW → RESOLVED
Closed: 10 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: