forked from 1b-agent/opencadstudio-upstream
refactor(i18n): group Fluent attributes
This commit is contained in:
1 parent
f3c2e061e0
commit
2f60dd0f59
26 files changed
+45139
-44415
No files matched your search
@@ -61,24 +61,24 @@ impl CadCommand for CopyCommand {
|
||||
|
||||
fn prompt(&self) -> String {
|
||||
if self.awaiting_count {
|
||||
return crate::tr!("command-copy-array-count");
|
||||
return crate::tr!("command-copy", "array-count");
|
||||
}
|
||||
match &self.step {
|
||||
Step::Base => crate::tr!(
|
||||
"command-copy-base",
|
||||
"command-copy", "base",
|
||||
count = (self.handles.len() as i64),
|
||||
),
|
||||
Step::Placing(base) => {
|
||||
if let Some(n) = self.array_count {
|
||||
crate::tr!(
|
||||
"command-copy-array-target",
|
||||
"command-copy", "array-target",
|
||||
count = (n as i64),
|
||||
x = format!("{:.3}", base.x),
|
||||
y = format!("{:.3}", base.y),
|
||||
)
|
||||
} else {
|
||||
crate::tr!(
|
||||
"command-copy-target",
|
||||
"command-copy", "target",
|
||||
count = (self.count as i64),
|
||||
x = format!("{:.3}", base.x),
|
||||
y = format!("{:.3}", base.y),
|
||||
|
||||
@@ -54,11 +54,11 @@ impl CadCommand for MoveCommand {
|
||||
fn prompt(&self) -> String {
|
||||
match &self.step {
|
||||
Step::Base => crate::tr!(
|
||||
"command-move-base",
|
||||
"command-move", "base",
|
||||
count = (self.handles.len() as i64),
|
||||
),
|
||||
Step::Target(base) => crate::tr!(
|
||||
"command-move-target",
|
||||
"command-move", "target",
|
||||
x = format!("{:.3}", base.x),
|
||||
y = format!("{:.3}", base.y),
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user