diff --git a/internal/compiler/Cargo.toml b/internal/compiler/Cargo.toml index 70b05e5d789..50fe0bd32b1 100644 --- a/internal/compiler/Cargo.toml +++ b/internal/compiler/Cargo.toml @@ -70,7 +70,7 @@ fdsm-ttf-parser = { version = "0.2", optional = true } nalgebra = { version = "0.34.0", optional = true } rayon = { workspace = true, optional = true } # translations -polib = { version = "0.2", optional = true } +polib = { version = "0.3", optional = true } pathdiff = { version = "0.2.3", optional = true } diff --git a/tools/tr-extractor/Cargo.toml b/tools/tr-extractor/Cargo.toml index 2d73c270cb3..00aadef0e0e 100644 --- a/tools/tr-extractor/Cargo.toml +++ b/tools/tr-extractor/Cargo.toml @@ -18,7 +18,7 @@ categories = ["gui", "command-line-utilities", "development-tools"] i-slint-compiler = { workspace = true, features = ["default", "display-diagnostics"] } chrono = { version = "0.4.24", default-features = false, features = ["clock"] } clap = { workspace = true } -polib = "0.2" +polib = "0.3" smol_str = { workspace = true } [dev-dependencies] diff --git a/tools/tr-extractor/main.rs b/tools/tr-extractor/main.rs index 287e729a20a..236b5b247c3 100644 --- a/tools/tr-extractor/main.rs +++ b/tools/tr-extractor/main.rs @@ -88,7 +88,7 @@ fn main() -> std::io::Result<()> { process_file(path, &mut messages, &args)? } - polib::po_file::write(&messages, &output)?; + polib::po_file::write_to_file(&messages, &output)?; Ok(()) } @@ -147,7 +147,7 @@ fn visit_node( } } - let comment = msg.comments_mut(); + let comment = msg.extracted_comments_mut(); if comment.is_empty() { if let Some(c) = tr .child_token(SyntaxKind::StringLiteral)