forked from 1b-agent/opencadstudio-upstream
Annotative choice: use the crate translation macro
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
bdcd24179b
commit
64c020293a
1 file changed
+2
-1
@@ -2196,7 +2196,8 @@ pub(super) fn on_tab_close(&mut self, idx: usize) -> Task<Message> {
|
|||||||
// The Annotative Yes/No list drives the per-object annotative toggle
|
// The Annotative Yes/No list drives the per-object annotative toggle
|
||||||
// (MTEXT's own flag, the annotation context for the rest).
|
// (MTEXT's own flag, the annotation context for the rest).
|
||||||
if field == "annotative" {
|
if field == "annotative" {
|
||||||
let wanted = value == t!("Yes").as_ref() || value.eq_ignore_ascii_case("yes");
|
let wanted =
|
||||||
|
value == crate::t!("Yes").as_ref() || value.eq_ignore_ascii_case("yes");
|
||||||
let Some(handle) = handles.first().copied() else {
|
let Some(handle) = handles.first().copied() else {
|
||||||
return Task::none();
|
return Task::none();
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user