forked from 1b-agent/opencadstudio-upstream
Merge pull request #1726 from turbuczn/hungarian-localization-v2
This commit is contained in:
commit
5d279d4e0c
25 files changed
+1542
-23
No files matched your search
+15
-7
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -3,6 +3,65 @@
|
||||
|
||||
pub(super) fn message_attribute(source: &str) -> Option<(&'static str, &'static str)> {
|
||||
match source {
|
||||
"Operational Symbols" => Some(("property-patch", "patch-07")),
|
||||
"Decimal Separator" => Some(("property-patch", "patch-06")),
|
||||
"Open 3Dconnexion settings..." => Some(("property-patch", "patch-05")),
|
||||
"Open 3Dconnexion settings…" => Some(("property-patch", "patch-04")),
|
||||
"Pan and zoom on paper sheets; full navigation in model views." => Some(("property-patch", "patch-03")),
|
||||
"Follow context" => Some(("property-patch", "patch-02")),
|
||||
"3DxWare unavailable" => Some(("property-patch", "patch-01")),
|
||||
"Downloading..." => Some(("modal", "missing-fonts-downloading")),
|
||||
"Download available" => Some(("modal", "missing-fonts-download-available")),
|
||||
"Skip" => Some(("modal", "missing-fonts-skip")),
|
||||
"Missing fonts" => Some(("modal", "missing-fonts-title")),
|
||||
"This drawing uses fonts that are not installed on this machine. OpenCADStudio can download any redistributable fonts that exist in the selected repository; unavailable fonts will keep using a substitute." => Some(("modal", "missing-fonts-description")),
|
||||
"Font source — leave empty for the community repository, or point at any folder (e.g. your company's font server):" => Some(("modal", "missing-fonts-source")),
|
||||
"https://server/fonts or a GitHub raw folder" => Some(("modal", "missing-fonts-source-placeholder")),
|
||||
"Coincident" => Some(("common", "parametric-coincident")),
|
||||
"Colinear" => Some(("common", "parametric-colinear")),
|
||||
"Concentric" => Some(("common", "parametric-concentric")),
|
||||
"Symmetric" => Some(("common", "parametric-symmetric")),
|
||||
"Equal" => Some(("common", "parametric-equal")),
|
||||
"Fix" => Some(("common", "parametric-fix")),
|
||||
"GPU (backend)" => Some(("ui", "window-gpu-backend")),
|
||||
"Click + Add alias, type the alias and command, accept the row, then Apply. Esc cancels the pending row." => Some(("ui", "window-click-add-alias-type-the-alias-and-command-accep")),
|
||||
"Number of aliases" => Some(("ui", "window-number-of-aliases")),
|
||||
"Are you sure you want to reset? You will lose all your current aliases!" => Some(("ui", "window-are-you-sure-you-want-to-reset-you-will-lose-all")),
|
||||
"Alias already used for command: {} → {}" => Some(("ui", "window-alias-already-used-for-command")),
|
||||
"Origin planes" => Some(("ui", "window-origin-planes")),
|
||||
"No sketch open" => Some(("ui", "window-no-sketch-open")),
|
||||
"Bodies ({})" => Some(("ui", "window-bodies")),
|
||||
"No solids yet" => Some(("ui", "window-no-solids-yet")),
|
||||
"Saved immediately. Changes take effect the next time Open CAD Studio starts." => Some(("ui", "window-saved-immediately-changes-take-effect-the-next-t")),
|
||||
"This session" => Some(("ui", "window-this-session")),
|
||||
"Driver" => Some(("ui", "window-driver")),
|
||||
"Backend" => Some(("ui", "window-backend")),
|
||||
"Selected by" => Some(("ui", "window-selected-by")),
|
||||
"Next launch" => Some(("ui", "window-next-launch")),
|
||||
"Graphics backend" => Some(("ui", "window-graphics-backend")),
|
||||
"Use the compatibility renderer (for GPUs without shader storage buffers)" => Some(("ui", "window-use-the-compatibility-renderer-for-gpus-without")),
|
||||
"Prefer OpenGL on older GPUs (automatic backend only)" => Some(("ui", "window-prefer-opengl-on-older-gpus-automatic-backend-on")),
|
||||
"If a pinned backend fails to start, the next launch falls back to automatic selection. The --backend option and the WGPU_BACKEND variable override this page." => Some(("ui", "window-if-a-pinned-backend-fails-to-start-the-next-laun")),
|
||||
"Paused" => Some(("ui", "window-paused")),
|
||||
"Enable SpaceMouse" => Some(("ui", "window-enable-spacemouse")),
|
||||
"Navigation" => Some(("ui", "window-navigation")),
|
||||
"Reverse pan direction" => Some(("ui", "window-reverse-pan-direction")),
|
||||
"Pan speed" => Some(("ui", "window-pan-speed")),
|
||||
"Resume SpaceMouse" => Some(("ui", "window-resume-spacemouse")),
|
||||
"Configure 3D navigation, buttons, and radial menus in 3Dconnexion settings. Pan only and Pan and zoom share the push/tilt mapping and pan settings shown here." => Some(("ui", "window-configure-3d-navigation-buttons-and-radial-menus")),
|
||||
"Connection details" => Some(("ui", "window-connection-details")),
|
||||
"{:.1}% a notch" => Some(("ui", "window-1-a-notch")),
|
||||
"The slider covers the system variable's {} to {}; the field takes up to {} for a faster wheel." => Some(("ui", "window-the-slider-covers-the-system-variable-s-to-the-f")),
|
||||
"Bundled with Open CAD Studio" => Some(("ui", "window-bundled-with-open-cad-studio")),
|
||||
"How the Reference Manager works on web" => Some(("ui", "window-how-the-reference-manager-works-on-web")),
|
||||
"This panel lists the drawing's references read-only: status, type, size, date and saved path, plus the Details pane. Select rows to inspect them; List and Tree switch the presentation." => Some(("ui", "window-this-panel-lists-the-drawing-s-references-read-o")),
|
||||
"Attach, Refresh and Change Path stay disabled here: the web build has no filesystem access and no native file pickers, so references can be neither added, reloaded nor repathed — and previews stay unavailable. Nested references are read-only on every platform, and relative paths need the drawing saved first." => Some(("ui", "window-attach-refresh-and-change-path-stay-disabled-her")),
|
||||
"Hit something broken or missing? Report it on the GitHub issues page so it can be fixed." => Some(("ui", "window-hit-something-broken-or-missing-report-it-on-the")),
|
||||
"Report an issue" => Some(("ui", "window-report-an-issue")),
|
||||
"Reference Manager — Web" => Some(("ui", "window-reference-manager-web")),
|
||||
"EXTERNALREFERENCES on the web build" => Some(("ui", "window-externalreferences-on-the-web-build")),
|
||||
"Embed Image (in drawing)" => Some(("ui", "window-embed-image-in-drawing")),
|
||||
|
||||
"Create Sheet Set" => Some(("view", "ss-create-sheet-set")),
|
||||
"Requires an integer between {min} and {max}." => Some(("view", "ss-requires-integer-between")),
|
||||
"New Sheet" => Some(("view", "ss-new-sheet")),
|
||||
|
||||
Reference in new issue
Block a user