Merge pull request #9715 from dotCooCoo/fix/placement-preserve-translations

Translate Preserve choices in Placement Options
This commit is contained in:
BFlat authored and GitHub committed 2026-11-28 11:20:33 +07:00
commit 783f541183
1 file changed
+1 -1
@@ -34,7 +34,7 @@ const CENTRE: usize = 4;
const FREE: [&str; 4] = ["transforms", "fileDimensions", "fit", "fill"];
fn params() -> Vec<Param> {
let options = PRESERVE.iter().map(|(value, label)| ((*value).to_owned(), Label::from(*label))).collect();
let options = PRESERVE.iter().map(|(value, label)| ((*value).to_owned(), Label::from(tl!(label).to_owned()))).collect();
vec![
Param::new("preserve", tl!("Preserve:"), ParamKind::choice(options, Some("transforms".into()))),
reference_param("align", tl!("Alignment:")).enabled_when_in("preserve", FREE),