errors: add links to fluent documentation
Add some links to the Fluent documentation to `DiagnosticMessage::FluentIdentifier` which explain what a Fluent message and attribute are. Signed-off-by: David Wood <david.wood@huawei.com>
This commit is contained in:
parent
c6a3349bd7
commit
e27389b068
@ -193,7 +193,11 @@ pub enum DiagnosticMessage {
|
|||||||
/// Non-translatable diagnostic message.
|
/// Non-translatable diagnostic message.
|
||||||
// FIXME(davidtwco): can a `Cow<'static, str>` be used here?
|
// FIXME(davidtwco): can a `Cow<'static, str>` be used here?
|
||||||
Str(String),
|
Str(String),
|
||||||
/// Identifier for a Fluent message corresponding to the diagnostic message.
|
/// Identifier for a Fluent message (with optional attribute) corresponding to the diagnostic
|
||||||
|
/// message.
|
||||||
|
///
|
||||||
|
/// <https://projectfluent.org/fluent/guide/hello.html>
|
||||||
|
/// <https://projectfluent.org/fluent/guide/attributes.html>
|
||||||
FluentIdentifier(FluentId, Option<FluentId>),
|
FluentIdentifier(FluentId, Option<FluentId>),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user