forked from 1b-agent/opencadstudio-upstream
feat(locale): localize full interface
This commit is contained in:
1 parent
b90b3e3ecf
commit
3e6693b93f
205 files changed
+32369
-3810
No files matched your search
@@ -6,6 +6,7 @@
|
||||
use crate::command::{CadCommand, CmdResult};
|
||||
use crate::scene::model::wire_model::WireModel;
|
||||
use glam::DVec3;
|
||||
use crate::t;
|
||||
|
||||
pub struct PlotWindowCommand {
|
||||
p1: Option<DVec3>,
|
||||
@@ -24,9 +25,9 @@ impl CadCommand for PlotWindowCommand {
|
||||
|
||||
fn prompt(&self) -> String {
|
||||
if self.p1.is_none() {
|
||||
"PLOTWINDOW Specify first corner of plot window:".into()
|
||||
t!("PLOTWINDOW Specify first corner of plot window:").into_owned()
|
||||
} else {
|
||||
"PLOTWINDOW Specify opposite corner:".into()
|
||||
t!("PLOTWINDOW Specify opposite corner:").into_owned()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user