mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-05-17 16:12:39 +02:00
cargo fmt
This commit is contained in:
parent
d1ca434023
commit
f0b59d0818
@ -21,7 +21,7 @@
|
|||||||
//! is found under `po` directory based on the `book.language`.
|
//! is found under `po` directory based on the `book.language`.
|
||||||
//! For example, `book.langauge` is set to `ko`, then `po/ko.po` is used.
|
//! For example, `book.langauge` is set to `ko`, then `po/ko.po` is used.
|
||||||
//! You can set `preprocessor.gettext.po-dir` to specify where to find PO
|
//! You can set `preprocessor.gettext.po-dir` to specify where to find PO
|
||||||
//! files. If the PO file is not found, you'll get the untranslated book.
|
//! files. If the PO file is not found, you'll get the untranslated book.
|
||||||
//!
|
//!
|
||||||
//! See `TRANSLATIONS.md` in the repository root for more information.
|
//! See `TRANSLATIONS.md` in the repository root for more information.
|
||||||
|
|
||||||
|
@ -91,8 +91,7 @@ fn create_catalog(ctx: &RenderContext) -> anyhow::Result<Catalog> {
|
|||||||
Some(path) => ctx.config.book.src.join(path),
|
Some(path) => ctx.config.book.src.join(path),
|
||||||
None => continue,
|
None => continue,
|
||||||
};
|
};
|
||||||
for msg in i18n_helpers::extract_msgs(&chapter.content)
|
for msg in i18n_helpers::extract_msgs(&chapter.content) {
|
||||||
{
|
|
||||||
let source = format!("{}:{}", path.display(), msg.line_number());
|
let source = format!("{}:{}", path.display(), msg.line_number());
|
||||||
add_message(&mut catalog, msg.text(&chapter.content), &source);
|
add_message(&mut catalog, msg.text(&chapter.content), &source);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user