Skip to content

More direct link to translated Rust By Example (french version in my case) #2257

@luidnel-maignan

Description

@luidnel-maignan

Summary

On the non-english version of the "Learn" page, there is sometime a link under "READ THE BOOK!" button to a translated version of the book.
Looking at https://github.com/rust-lang/rust-by-example for existing translations , one can see that many translations already exist.

Motivation

The motivation is the same as for "READ THE BOOK!" button: allow people to stay within their preferred language if they have strong difficulties with English (students for instance).
This also makes the content of the Learn page more consistent in those languages, by having the same feature on more button links.

Drawbacks

This is an additional thing to maintain.

Rationale and alternatives

The design should be exactly the same as for "READ THE BOOK!" button and its associated link: an additional html code with internationalization support, and a translated message in each of the languages interested in this feature.
See PR #1370.

Maintenance

This should be maintained by the maintainers of the associated languages maybe ?
The maintainers of Rust By Example might also be part of the process.

Unresolved Questions

I don't know if this counts as an "unresolved question" but there is an open issue for the current design of non-english link under the "READ THE BOOK!", see #2256.
A similar feature might be requested for other buttons, but I wrote this issue as I discovered the translation for Rust By Example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions