Skip to content

main: every page panics — error-title/error-back-home defined twice in 5 locales #578

Closed

Description

@LeMyst

Since 347e0e2 (#567), main fails its tests, and the web server panics on every page it renders:

Failed to add FTL resources to the bundle.: [Overriding { kind: Message, id: "error-title" }, Overriding { kind: Message, id: "error-back-home" }]

Cause

#563 (2c82f28) and #567 (347e0e2) each added the error page's two strings, under an identical # Errors block, to the same common.ftl files, and they merged 15 seconds apart. Each was green on its own. Together, de-DE, es-ES, eu-ES, fr-FR and nl-NL define error-title and error-back-home twice (lines 138–139 and 142–143). Fluent rejects a bundle that defines a message twice.

Effects

Fix

  • Delete the second copy in the five files. The texts are identical, so no translation is lost.
  • Add a test to tests/locales_test.rs that names any message a locale defines twice, instead of leaving dozens of unrelated tests to panic.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions