@@ -86,10 +86,10 @@ excellent examples of translating messages into different locales and the
86
86
information that needs to be provided by the code to do so.
87
87
88
88
### 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` ] .
93
93
94
94
rustc's ` fluent_messages ` macro performs compile-time validation of Fluent
95
95
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
240
240
files are malformed, or a message is duplicated in multiple resources.
241
241
242
242
[ 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
244
245
[ `rustc_error_messages::DiagnosticMessage` ] : https://doc.rust-lang.org/nightly/nightly-rustc/rustc_error_messages/enum.DiagnosticMessage.html
0 commit comments