Merge pull request #1726 from turbuczn/hungarian-localization-v2

This commit is contained in:
Hakan Seven committed 2026-10-13 07:41:57 +03:00
commit 5d279d4e0c
25 files changed
+1542 -23

No files matched your search

+15 -7
View File
@@ -747,7 +747,7 @@ impl OpenCADStudio {
label: t!("Associative").into_owned(),
field: "associative",
value: crate::scene::model::object::PropValue::ReadOnly(
if associative { "Yes" } else { "No" }.to_string(),
if associative { t!("Yes") } else { t!("No") }.into_owned(),
),
});
}
@@ -793,7 +793,7 @@ impl OpenCADStudio {
label: t!("Associative").into_owned(),
field: "associative",
value: crate::scene::model::object::PropValue::ReadOnly(
if associative { "Yes" } else { "No" }.to_string(),
if associative { t!("Yes") } else { t!("No") }.into_owned(),
),
});
}
@@ -1250,7 +1250,7 @@ impl OpenCADStudio {
update_row_text(
&mut sections,
"tbl_flow_direction",
if flow_up { "Up" } else { "Down" }.to_string(),
if flow_up { t!("Up") } else { t!("Down") }.into_owned(),
);
update_row_text(
&mut sections,
@@ -1540,7 +1540,7 @@ impl OpenCADStudio {
set_row(
&mut sections,
"annotative",
if is_anno { "Yes" } else { "No" }.to_string(),
if is_anno { t!("Yes") } else { t!("No") }.into_owned(),
)
}
codec::EntityType::Leader(_)
@@ -1548,7 +1548,7 @@ impl OpenCADStudio {
doc, entity,
) =>
{
set_row(&mut sections, "annotative", "Yes".to_string())
set_row(&mut sections, "annotative", t!("Yes").into_owned())
}
codec::EntityType::Text(_)
| codec::EntityType::Insert(_)
@@ -1560,7 +1560,7 @@ impl OpenCADStudio {
_ => set_row(
&mut sections,
"annotative",
if is_anno { "Yes" } else { "No" }.to_string(),
if is_anno { t!("Yes") } else { t!("No") }.into_owned(),
),
}
}
@@ -3400,7 +3400,15 @@ pub(super) fn build_selection_groups(
for (kind, handles) in by_type {
groups.push(ui::properties::SelectionGroup {
label: format!("{}({})", t!(title_case_word(&kind)), handles.len()),
label: format!(
"{}({})",
if kind == "insert" {
t!("Block Reference").into_owned()
} else {
t!(title_case_word(&kind)).into_owned()
},
handles.len()
),
handles,
});
}
+7 -1
View File
@@ -1726,7 +1726,13 @@ fn qselect_content<'a>(
Space::new().height(5),
row![
label(t!("Object type:")),
iced::widget::pick_list(Some(type_sel), type_options, |value| t!(value).into_owned(),)
iced::widget::pick_list(Some(type_sel), type_options, |value| {
if value == "Insert" {
t!("Block Reference").into_owned()
} else {
t!(value).into_owned()
}
})
.on_select(|s: String| {
if s == QSELECT_ANY_TYPE {
Message::QSelectSetType(None)