mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-01 02:35:37 +01:00
Translate Placement Options Preserve choices
This commit is contained in:
1 parent
5958a5e95c
commit
a2bea0e7ab
1 file changed
+1
-1
@@ -33,7 +33,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),
|
||||
|
||||
Reference in new issue
Block a user