Migrate installer strings to Fluent
Categories
(Firefox :: Installer, task)
Tracking
()
| 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).
| Assignee | ||
Comment 1•1 month ago
|
||
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 | ||
Updated•1 month ago
|
Comment 2•1 month ago
|
||
: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?
Updated•1 month ago
|
| Assignee | ||
Comment 3•1 month ago
|
||
(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.
| Assignee | ||
Comment 4•1 month ago
|
||
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.
Updated•1 month ago
|
Comment 6•10 days ago
|
||
| bugherder | ||
Description
•