@@ -86,10 +86,10 @@ excellent examples of translating messages into different locales and the
8686information 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
9494rustc's ` fluent_messages ` macro performs compile-time validation of Fluent
9595resources 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
240240files 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