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

@ -77,6 +77,9 @@ pub struct CompilerConfiguration {
/// expose the accessible role and properties
pub accessibility: bool,
/// The domain used as one of the parameter to the translate function
pub translation_domain: Option<String>,
}
impl CompilerConfiguration {
@ -128,6 +131,7 @@ impl CompilerConfiguration {
inline_all_elements,
scale_factor,
accessibility: true,
translation_domain: None,
}
}
}