Closed Bug 1521279 Opened 5 years ago Closed 5 years ago

Update Fluent migration documentation

Categories

(Localization Infrastructure and Tools :: Fluent Migration, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: flod, Assigned: flod)

Details

Attachments

(1 file)

  1. TERM_REFERENCE() with syntax 0.8 doesn't require the - anymore. Not sure if it's worth updating the recipes in tree to avoid confusion (I'd say no).

  2. We should document

  • Bug 1317336. Normalize printf parameters in REPLACE() via normalize_printf=True

  • Bug 1493184 Trim translation, mentioning both cases

transforms_from(
"""
about-about-note = { COPY("toolkit/chrome/global/aboutAbout.dtd", "aboutAbout.note", trim:"True") }
""")
FTL.Message(
    id=FTL.Identifier("discover-description"),
    value=REPLACE(
        "toolkit/chrome/mozapps/extensions/extensions.dtd",
        "discover.description2",
        {
            "&brandShortName;": TERM_REFERENCE("-brand-short-name")
        },
        trim=True
    )
),
  1. Updated TERM_REFERENCE() example for Fluent syntax 0.8
  2. Documented print parameter normalization (bug 1317336)
  3. Documented whitespaces trimming (bug 1493184)
Pushed by francesco.lodolo@mozillaitalia.org:
https://hg.mozilla.org/integration/autoland/rev/f833d5220c82
Update Fluent migration documentation to include whitespaces trimming and parameter normalization r=Pike
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: