Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c242e57

Browse files
ehusstshepang
authored andcommitted
Reword messages.ftl example.
1 parent 1b6f939 commit c242e57

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

‎src/diagnostics/translation.md‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ excellent examples of translating messages into different locales and the
8686
information that needs to be provided by the code to do so.
8787

8888
### Compile-time validation and typed identifiers
89-
rustc's Fluent resources for the default locale (`en-US`) are in the
90-
[`compiler/rustc_error_messages/messages.ftl`] file. Currently, each crate
91-
which defines translatable diagnostics has its own Fluent resource in
92-
a file named `messages.ftl`.
89+
Currently, each crate which defines translatable diagnostics has its own
90+
Fluent resource in a file named `messages.ftl`, such as
91+
[`compiler/rustc_borrowck/messages.ftl`] and
92+
[`compiler/rustc_parse/messages.ftl`].
9393

9494
rustc's `fluent_messages` macro performs compile-time validation of Fluent
9595
resources and generates code to make it easier to refer to Fluent messages in
@@ -240,5 +240,6 @@ won't fail. Bundle loading can fail if a requested locale is missing, Fluent
240240
files are malformed, or a message is duplicated in multiple resources.
241241

242242
[Fluent]: https://projectfluent.org
243-
[`compiler/rustc_error_messages/messages.ftl`]: https://github.com/rust-lang/rust/blob/HEAD/compiler/rustc_error_messages/messages.ftl
243+
[`compiler/rustc_borrowck/messages.ftl`]: https://github.com/rust-lang/rust/blob/HEAD/compiler/rustc_borrowck/messages.ftl
244+
[`compiler/rustc_parse/messages.ftl`]: https://github.com/rust-lang/rust/blob/HEAD/compiler/rustc_parse/messages.ftl
244245
[`rustc_error_messages::DiagnosticMessage`]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_error_messages/enum.DiagnosticMessage.html

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /