From 89f3a6563c6e27046ef4fe765fb81ab59141e6e3 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Sat, 30 Sep 2023 12:02:45 +0200 Subject: [PATCH] Added script to re-build gettext catalogs on cargo build. --- build.rs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 build.rs diff --git a/build.rs b/build.rs new file mode 100644 index 0000000..26d6f02 --- /dev/null +++ b/build.rs @@ -0,0 +1,7 @@ +use std::process::Command; + +fn main() { + println!("cargo:rerun-if-changed=po/it.po"); + + Command::new("msgfmt").args(&["po/it.po", "-o", "po/it.mo"]).status().unwrap(); +} -- 2.49.0