Pass the translation domain to the runtime

For rust, it uses the crate name, for others, it needs to be passed in
the comment line
This commit is contained in:
Olivier Goffart 2023-04-27 13:07:43 +02:00 committed by Olivier Goffart
parent b997d1e8b5
commit ce25fb65a6
9 changed files with 34 additions and 3 deletions

View file

@ -298,6 +298,8 @@ pub fn compile_with_config(
}
let mut compiler_config = config.config;
compiler_config.translation_domain = std::env::var("CARGO_PKG_NAME").ok();
let mut rerun_if_changed = String::new();
if std::env::var_os("SLINT_STYLE").is_none() && compiler_config.style.is_none() {