Skip to content

Remove the translation -Z options #967

@JonathanBrouwer

Description

@JonathanBrouwer

Proposal

This MCP proposes to remove the compiler options for translation, that is the following 3 unstable commandline options used to translate diagnostics messages:

    -Z                      translate-additional-ftl=val -- additional fluent translation to preferentially use (for testing translation)
    -Z              translate-directionality-markers=val -- emit directionality isolation markers in translated diagnostics
    -Z                                translate-lang=val -- language identifier for diagnostic output

This MCP explicitly does not propose changing anything about the way diagnostics are currently represented, that is, struct diagnostics will still be represented by fluent messages.

Why?

  • Nobody is currently working on translation, and it seems like things will stay this way
  • Not all messages in the compiler are currently translatable, and it seems like it will stay this way
  • It is unclear whether fluent (which is what these options explicitly refer to) is even powerful enough to properly translate diagnostic messages to other languages
  • Even though these options are not in the way that much, I see no good reason to keep them

Mentors or Reviewers

I (@JonathanBrouwer) am willing to do the work necessary to make this change.

Process

The main points of the Major Change Process are as follows:

  • File an issue describing the proposal.
  • A compiler team member who is knowledgeable in the area can second by writing @rustbot second or kickoff a team FCP with @rfcbot fcp $RESOLUTION.
  • Once an MCP is seconded, the Final Comment Period begins.
    • Final Comment Period lasts for 10 days after all outstanding concerns are solved.
    • Outstanding concerns will block the Final Comment Period from finishing. Once all concerns are resolved, the 10 day countdown is restarted.
    • If no concerns are raised after 10 days since the resolution of the last outstanding concern, the MCP is considered approved.

You can read more about Major Change Proposals on forge.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-compilerAdd this label so rfcbot knows to poll the compiler teammajor-changeA proposal to make a major change to rustcmajor-change-acceptedA major change proposal that was acceptedto-announceAnnounce this issue on triage meeting

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions