Closed Bug 2043911 Opened 6 months ago Closed 6 months ago

Improve output of fluent-migration-test

Categories

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

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: flod, Assigned: flod)

References

Details

Attachments

(1 external file)

While looking into bug 1891657, I realized that it might not be too hard to improve the current output of mach fluent-migration-test (the code is self-contained in python/l10n/test_fluent_migrations/fmt.py.

Things I'm interested in:

  • Highlighting difference for strings that are part of the recipe.
  • Highlight failures (strings part of the recipe but not showing up in the migrated content).

Produce errors for

  • Migrated strings that have differences beyond capitalization changes.
  • Strings that are included in the recipe but don't appear in the migrated content.
  • Attempts to migrate a string to the same ID in the same file.

Produce warnings/info for

  • Strings missing from the migrated file, but not declared in the migration.
  • Capitalization only differences.
Pushed by flodolo@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/cf7ef37d6561 https://hg.mozilla.org/integration/autoland/rev/840fb00aa087 Provide summary of warnings/errors when testing fluent migrations, r=eemeli,bolsson
Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Regressions: 2047573
Blocks: 2057610
Duplicate of this bug: 1625472
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: