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
@@ -183,8 +183,8 @@ impl CommandLine {
|
||||
pub fn new() -> Self {
|
||||
let mut cl = Self::default();
|
||||
cl.history_height = HISTORY_HEIGHT_DEFAULT;
|
||||
cl.push_info(&crate::tr!("command-line-ready"));
|
||||
cl.push_info(&crate::tr!("command-line-hint"));
|
||||
cl.push_info(&crate::tr!("command-line", "ready"));
|
||||
cl.push_info(&crate::tr!("command-line", "hint"));
|
||||
cl
|
||||
}
|
||||
|
||||
@@ -522,7 +522,7 @@ impl CommandLine {
|
||||
}
|
||||
});
|
||||
let prompt = container(
|
||||
text(crate::tr!("command-line-label")).size(11).style(|theme: &Theme| iced::widget::text::Style {
|
||||
text(crate::tr!("command-line", "label")).size(11).style(|theme: &Theme| iced::widget::text::Style {
|
||||
color: Some(theme.palette().success.base.color),
|
||||
}),
|
||||
)
|
||||
@@ -559,7 +559,7 @@ impl CommandLine {
|
||||
..Default::default()
|
||||
}
|
||||
});
|
||||
let literal_tip = container(text(crate::tr!("command-line-literal-spaces")).size(11))
|
||||
let literal_tip = container(text(crate::tr!("command-line", "literal-spaces")).size(11))
|
||||
.padding([3, 6])
|
||||
.style(container::bordered_box);
|
||||
let literal_btn = tooltip(literal_btn, literal_tip, tooltip::Position::Top).gap(4);
|
||||
|
||||
Reference in new issue
Block a user