diff --git a/ATTRIBUTION.md b/ATTRIBUTION.md index d109bb129..7c58ea581 100644 --- a/ATTRIBUTION.md +++ b/ATTRIBUTION.md @@ -52,6 +52,8 @@ Editable drawing code, native projects and shipped exports are collected under ` | docs/book/src/generated/enclosure.png | SolidCraft contributors | rendered by `cargo xtask book` (`solidcraft-cli snapshot docs/book/scripts/enclosure.json`; gitignored) | MIT OR Apache-2.0 | | docs/book/src/generated/revolve.png | SolidCraft contributors | rendered by `cargo xtask book` (`solidcraft-cli snapshot docs/book/scripts/revolve.json`; gitignored) | MIT OR Apache-2.0 | | docs/book/src/generated/sheet-metal.png | SolidCraft contributors | rendered by `cargo xtask book` (`solidcraft-cli snapshot docs/book/scripts/sheet-metal.json`; gitignored) | MIT OR Apache-2.0 | +| assets/fonts/ibm-plex-mono/IBMPlexMono-Regular.ttf | IBM Corp. (IBM Plex Mono) | https://github.com/IBM/plex (via google/fonts), unmodified; licence text in assets/fonts/ibm-plex-mono/OFL.txt; the interface monospace font | SIL OFL 1.1 | +| assets/fonts/ibm-plex-sans/IBMPlexSans-Variable.ttf | IBM Corp. (IBM Plex Sans, variable wdth and wght) | https://github.com/IBM/plex (via google/fonts), unmodified; licence text in assets/fonts/ibm-plex-sans/OFL.txt; the default interface font | SIL OFL 1.1 | | docs/book/src/generated/tool-preview.png | SolidCraft contributors | rendered by `cargo xtask book` (`solidcraft-cli snapshot docs/book/scripts/tool-preview.json`; gitignored) | MIT OR Apache-2.0 | | assets/fonts/liberation-sans/LiberationSans-Regular.ttf | Red Hat, Inc. (Liberation Fonts 2.x; digitized data Google) | https://github.com/liberationfonts (Debian fonts-liberation), unmodified; licence text in assets/fonts/liberation-sans/OFL.txt; used for sketch Text outlines | SIL OFL 1.1 | | assets/fonts/biz-udp-gothic/BIZUDPGothic-Regular.ttf | The BIZ UDGothic Project Authors | https://github.com/googlefonts/morisawa-biz-ud-gothic (Google Fonts), unmodified; licence text in assets/fonts/biz-udp-gothic/OFL.txt; used for web UI Japanese font | SIL OFL 1.1 | @@ -78,6 +80,8 @@ Editable drawing code, native projects and shipped exports are collected under ` | assets/appearances/library.rs | SolidCraft contributors | Original SolidCraft resource data or drawing code, collected without redesign | MIT OR Apache-2.0 | | assets/fonts/biz-udp-gothic/OFL.txt | The BIZ UDGothic Project Authors | Unmodified accompanying font licence | SIL OFL 1.1 | +| assets/fonts/ibm-plex-mono/OFL.txt | IBM Corp. | Unmodified accompanying font licence | SIL OFL 1.1 | +| assets/fonts/ibm-plex-sans/OFL.txt | IBM Corp. | Unmodified accompanying font licence | SIL OFL 1.1 | | assets/fonts/liberation-sans/OFL.txt | Red Hat, Inc.; Liberation Fonts contributors | Unmodified accompanying font licence | SIL OFL 1.1 | | assets/icons/app/linux/exports/hicolor/128x128/apps/ai.storyteller.solidcraft.png | SolidCraft contributors | Generated from assets/icons/app/shared/source/app_icon.rs with the original CLI/ICO encoders | MIT OR Apache-2.0 | | assets/icons/app/linux/exports/hicolor/16x16/apps/ai.storyteller.solidcraft.png | SolidCraft contributors | Generated from assets/icons/app/shared/source/app_icon.rs with the original CLI/ICO encoders | MIT OR Apache-2.0 | @@ -137,6 +141,10 @@ Editable drawing code, native projects and shipped exports are collected under ` | assets/icons/ui/design/palette.toml | SolidCraft contributors | icon colour roles (light and dark) and accents, original SolidCraft data | MIT OR Apache-2.0 | | assets/icons/ui/design/svg/flat/bug_report.svg | SolidCraft contributors | single-colour application/navigation icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | | assets/icons/ui/design/svg/flat/chevron.svg | SolidCraft contributors | single-colour application/navigation icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | +| assets/icons/ui/design/svg/flat/chevron_right.svg | SolidCraft contributors | single-colour application/navigation icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | +| assets/icons/ui/design/svg/flat/close.svg | SolidCraft contributors | single-colour application/navigation icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | +| assets/icons/ui/design/svg/flat/disclosure_closed.svg | SolidCraft contributors | single-colour application/navigation icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | +| assets/icons/ui/design/svg/flat/disclosure_open.svg | SolidCraft contributors | single-colour application/navigation icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | | assets/icons/ui/design/svg/flat/fit.svg | SolidCraft contributors | single-colour application/navigation icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | | assets/icons/ui/design/svg/flat/folder.svg | SolidCraft contributors | single-colour application/navigation icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | | assets/icons/ui/design/svg/flat/help.svg | SolidCraft contributors | single-colour application/navigation icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | @@ -145,6 +153,7 @@ Editable drawing code, native projects and shipped exports are collected under ` | assets/icons/ui/design/svg/flat/moon.svg | SolidCraft contributors | single-colour application/navigation icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | | assets/icons/ui/design/svg/flat/nav_settings.svg | SolidCraft contributors | single-colour application/navigation icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | | assets/icons/ui/design/svg/flat/orbit.svg | SolidCraft contributors | single-colour application/navigation icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | +| assets/icons/ui/design/svg/flat/plus.svg | SolidCraft contributors | single-colour application/navigation icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | | assets/icons/ui/design/svg/flat/pan.svg | SolidCraft contributors | single-colour application/navigation icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | | assets/icons/ui/design/svg/flat/perspective.svg | SolidCraft contributors | single-colour application/navigation icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | | assets/icons/ui/design/svg/flat/redo.svg | SolidCraft contributors | single-colour application/navigation icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | @@ -230,7 +239,7 @@ Editable drawing code, native projects and shipped exports are collected under ` | assets/icons/ui/design/svg/model/export.svg | SolidCraft contributors | two-tone modelling icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | | assets/icons/ui/design/svg/model/extend.svg | SolidCraft contributors | two-tone modelling icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | | assets/icons/ui/design/svg/model/extrude.svg | SolidCraft contributors | two-tone modelling icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | -| assets/icons/ui/design/svg/model/eye.svg | SolidCraft contributors | two-tone modelling icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | +| assets/icons/ui/design/svg/flat/eye.svg | SolidCraft contributors | single-colour application/navigation icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | | assets/icons/ui/design/svg/model/fastener.svg | SolidCraft contributors | two-tone modelling icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | | assets/icons/ui/design/svg/model/fillet.svg | SolidCraft contributors | two-tone modelling icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | | assets/icons/ui/design/svg/model/filter.svg | SolidCraft contributors | two-tone modelling icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | @@ -281,6 +290,12 @@ Editable drawing code, native projects and shipped exports are collected under ` | assets/icons/ui/design/svg/model/perforate.svg | SolidCraft contributors | two-tone modelling icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | | assets/icons/ui/design/svg/model/pipe.svg | SolidCraft contributors | two-tone modelling icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | | assets/icons/ui/design/svg/model/silhouette.svg | SolidCraft contributors | original icon master (64 grid) | MIT OR Apache-2.0 | +| assets/icons/ui/design/svg/flat/assistant.svg | SolidCraft contributors | original icon master (64 grid) | MIT OR Apache-2.0 | +| assets/icons/ui/design/svg/flat/agent_link.svg | SolidCraft contributors | original icon master (64 grid) | MIT OR Apache-2.0 | +| assets/icons/ui/design/svg/model/offset_two_sides.svg | SolidCraft contributors | original icon master (64 grid) | MIT OR Apache-2.0 | +| assets/icons/ui/design/svg/model/offset_symmetric.svg | SolidCraft contributors | original icon master (64 grid) | MIT OR Apache-2.0 | +| assets/icons/ui/design/svg/flat/import_tray.svg | SolidCraft contributors | original icon master (64 grid) | MIT OR Apache-2.0 | +| assets/icons/ui/design/svg/flat/export_tray.svg | SolidCraft contributors | original icon master (64 grid) | MIT OR Apache-2.0 | | assets/icons/ui/design/svg/model/placeholder.svg | SolidCraft contributors | two-tone modelling icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | | assets/icons/ui/design/svg/model/plane.svg | SolidCraft contributors | two-tone modelling icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | | assets/icons/ui/design/svg/model/plane_angle.svg | SolidCraft contributors | two-tone modelling icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | @@ -332,7 +347,7 @@ Editable drawing code, native projects and shipped exports are collected under ` | assets/icons/ui/design/svg/model/status_error.svg | SolidCraft contributors | two-tone modelling icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | | assets/icons/ui/design/svg/model/status_warning.svg | SolidCraft contributors | two-tone modelling icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | | assets/icons/ui/design/svg/model/stitch.svg | SolidCraft contributors | two-tone modelling icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | -| assets/icons/ui/design/svg/model/suppress.svg | SolidCraft contributors | two-tone modelling icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | +| assets/icons/ui/design/svg/flat/suppress.svg | SolidCraft contributors | single-colour application/navigation icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | | assets/icons/ui/design/svg/model/surface.svg | SolidCraft contributors | two-tone modelling icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | | assets/icons/ui/design/svg/model/svg.svg | SolidCraft contributors | two-tone modelling icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | | assets/icons/ui/design/svg/model/sweep.svg | SolidCraft contributors | two-tone modelling icon master (64 grid), original SolidCraft artwork | MIT OR Apache-2.0 | @@ -416,6 +431,7 @@ Editable drawing code, native projects and shipped exports are collected under ` | assets/icons/ui/design/tools/lint_icons.py | SolidCraft contributors | icon lint, status page or preview tool (standard-library Python), original SolidCraft code | MIT OR Apache-2.0 | | assets/icons/ui/design/tools/preview.py | SolidCraft contributors | icon lint, status page or preview tool (standard-library Python), original SolidCraft code | MIT OR Apache-2.0 | | assets/icons/ui/design/tools/review_state.py | SolidCraft contributors | icon review state helper (standard-library Python), original SolidCraft code | MIT OR Apache-2.0 | +| assets/icons/ui/design/requested_icons.txt | SolidCraft contributors | Runtime icon requests collected by the headless menu audit, original SolidCraft data | MIT OR Apache-2.0 | | assets/icons/ui/design/review.json | SolidCraft contributors | icon review state (accepted icons and notes), original SolidCraft data | MIT OR Apache-2.0 | | assets/icons/ui/design/tools/author/lib.py | SolidCraft contributors | icon authoring script (standard-library Python), original SolidCraft code | MIT OR Apache-2.0 | diff --git a/Cargo.lock b/Cargo.lock index f3891452c..a5dc3a0e5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4162,7 +4162,7 @@ dependencies = [ [[package]] name = "solidcraft" -version = "0.17.0" +version = "0.18.0" dependencies = [ "block2 0.6.2", "eframe", @@ -4193,11 +4193,11 @@ dependencies = [ [[package]] name = "solidcraft-3dx-client" -version = "0.17.0" +version = "0.18.0" [[package]] name = "solidcraft-cli" -version = "0.17.0" +version = "0.18.0" dependencies = [ "image", "serde_json", @@ -4208,7 +4208,7 @@ dependencies = [ [[package]] name = "solidcraft-derive" -version = "0.17.0" +version = "0.18.0" dependencies = [ "proc-macro2", "quote", @@ -4217,7 +4217,7 @@ dependencies = [ [[package]] name = "solidcraft-doc" -version = "0.17.0" +version = "0.18.0" dependencies = [ "log", "serde", @@ -4234,7 +4234,7 @@ dependencies = [ [[package]] name = "solidcraft-engine" -version = "0.17.0" +version = "0.18.0" dependencies = [ "log", "schemars", @@ -4253,7 +4253,7 @@ dependencies = [ [[package]] name = "solidcraft-geom" -version = "0.17.0" +version = "0.18.0" dependencies = [ "serde", "serde_json", @@ -4262,7 +4262,7 @@ dependencies = [ [[package]] name = "solidcraft-gpu" -version = "0.17.0" +version = "0.18.0" dependencies = [ "log", "naga", @@ -4279,7 +4279,7 @@ dependencies = [ [[package]] name = "solidcraft-io" -version = "0.17.0" +version = "0.18.0" dependencies = [ "cadmpeg-core", "cadmpeg-ir", @@ -4302,7 +4302,7 @@ dependencies = [ [[package]] name = "solidcraft-kernel" -version = "0.17.0" +version = "0.18.0" dependencies = [ "log", "proptest", @@ -4322,7 +4322,7 @@ dependencies = [ [[package]] name = "solidcraft-mcp" -version = "0.17.0" +version = "0.18.0" dependencies = [ "serde_json", "solidcraft-engine", @@ -4331,7 +4331,7 @@ dependencies = [ [[package]] name = "solidcraft-render" -version = "0.17.0" +version = "0.18.0" dependencies = [ "image", "moxcms", @@ -4345,7 +4345,7 @@ dependencies = [ [[package]] name = "solidcraft-sketch" -version = "0.17.0" +version = "0.18.0" dependencies = [ "serde", "serde_json", @@ -4356,14 +4356,14 @@ dependencies = [ [[package]] name = "solidcraft-space-mouse" -version = "0.17.0" +version = "0.18.0" dependencies = [ "serde", ] [[package]] name = "solidcraft-ui-egui" -version = "0.17.0" +version = "0.18.0" dependencies = [ "arboard", "egui", @@ -4379,6 +4379,7 @@ dependencies = [ "solidcraft-engine", "solidcraft-gpu", "solidcraft-space-mouse", + "syn 2.0.119", "tiny-skia", "toml", "ttf-parser", @@ -4389,7 +4390,7 @@ dependencies = [ [[package]] name = "solidcraft-web" -version = "0.17.0" +version = "0.18.0" dependencies = [ "eframe", "egui", @@ -5919,7 +5920,7 @@ checksum = "e450f9b2ed1dff33c94c12589a87338689467b9c4f5d8a5710bd09a847d2c8a7" [[package]] name = "xtask" -version = "0.17.0" +version = "0.18.0" dependencies = [ "serde_json", "sha2 0.10.9", diff --git a/Cargo.toml b/Cargo.toml index 19c6fb4eb..835746696 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ members = ["crates/*", "apps/*", "xtask"] exclude = ["vendor"] [workspace.package] -version = "0.17.0" +version = "0.18.0" edition = "2024" license = "MIT OR Apache-2.0" rust-version = "1.95" diff --git a/README.md b/README.md index 4dcc5562e..1aecd1768 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,11 @@ Stars

+

+ tangency-labs%2Fsolidcraft | Trendshift + tangency-labs%2Fsolidcraft | Trendshift (Rust) +

+ ![SolidCraft 0.8: model a Raspberry Pi 4 case from an empty design: a sketch dimensioned with parameters, extrude, fillets and shell, a rim rounded in one pick, standoffs patterned on the board's mounting holes, port cut-outs, vent slots, "Pi 4" engraved in a font, a PETG material with its mass in Properties, and a height change in Parameters](docs/screenshots/demo-0.8.gif) *A Raspberry Pi 4 case from an empty design: a sketch dimensioned with the board's parameters, extrude, fillet, shell, the rim rounded in one pick, an M2.5 standoff patterned on the 58 × 49 mm hole rectangle, port cut-outs, vent slots, "Pi 4" engraved in DejaVu Sans Bold and a PETG material defined in the design, with its mass in Properties, then height 24 → 32 mm in Parameters and it all rebuilds. 9× playback. [Full video](https://github.com/tangency-labs/solidcraft/raw/refs/heads/main/docs/screenshots/demo-0.8.mp4), recorded with the [demo script](examples/demo/record_ui.sh).* diff --git a/ROADMAP.md b/ROADMAP.md index c7b5de281..c269a33ec 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -50,7 +50,7 @@ PCB / Package, Render, Animation, Simulation, Manufacture/CAM, Drawings. | # | Milestone | Status | Hours left | |---|---|---|---| | M0 | Vertical slice | done | — | -| M1 | Sketch depth: command coverage implemented — projection/intersect/include as linked geometry (auto-project on faces, lost-reference warnings, break link), full SKETCH create/modify set (slots, polygons, tangent arcs/circles, ellipse, fit/control splines, conic, text, trim/extend/break, fillet/chamfer, offset, mirror, patterns, move/scale, blend curve, centerline), constraints incl. curvature and polygon with over-constraint refusal, driven/arc-length/linear-diameter dimensions, AutoConstrain, DXF/SVG insert, 3D sketch curves (Project To Surface, Intersection Curve, Isoparametric Curve, Spun Profile), exact free-form profiles (B-spline/NURBS edges, any spline degree, curves cut by crossings), sweeps and pipes along 3D sketch curves, canvases and decals, curvature combs. Exact free-form Extend and certified associative offsets now preserve geometry and IDs through edits, deletion and reopen. Occurrence-frame 3D wires now store explicit coordinate spaces and retain points and analytic fits through moves, refresh, undo and reopen. Constructive sketch solving (Owen 1991, Fudos & Hoffmann 1997) ahead of the numerical solver: points and rigid clusters are placed on the branch the sketch had, so dimension edits and drags keep their solution; edits that would turn a sketch over are refused; drags re-solve only the sketch per frame. Remaining workflow repairs: mixed offset junctions, legacy natural-spline seams, and damaged legacy wire links lacking frame provenance | in progress | 4 | +| M1 | Sketch depth: command coverage implemented — projection/intersect/include as linked geometry (auto-project on faces, lost-reference warnings, break link), full SKETCH create/modify set (slots, polygons, tangent arcs/circles, ellipse, fit/control splines, conic, text, trim/extend/break, fillet/chamfer, offset, mirror, patterns, move/scale, blend curve, centerline), constraints incl. curvature and polygon with over-constraint refusal, Shift-picked line midpoints in Horizontal/Vertical using persisted points and ordinary constraints (#2087), driven/arc-length/linear-diameter dimensions, AutoConstrain, DXF/SVG insert, 3D sketch curves (Project To Surface, Intersection Curve, Isoparametric Curve, Spun Profile), exact free-form profiles (B-spline/NURBS edges, any spline degree, curves cut by crossings), sweeps and pipes along 3D sketch curves, canvases and decals, curvature combs. Exact free-form Extend and certified associative offsets now preserve geometry and IDs through edits, deletion and reopen. Occurrence-frame 3D wires now store explicit coordinate spaces and retain points and analytic fits through moves, refresh, undo and reopen. Constructive sketch solving (Owen 1991, Fudos & Hoffmann 1997) ahead of the numerical solver: points and rigid clusters are placed on the branch the sketch had, so dimension edits and drags keep their solution; edits that would turn a sketch over are refused; drags re-solve only the sketch per frame. Remaining workflow repairs: mixed offset junctions, legacy natural-spline seams, and damaged legacy wire links lacking frame provenance | in progress | 4 | | M2 | Robust modelling: coplanar booleans in the kernel, holes (placed on faces and on sketch points), threads (cosmetic, then modelled), patterns, mirror, shell, draft, split, construction geometry | in progress | 16 | | M3 | General fillets and chamfers (curved edges, chains, vertex blends); saddle rolling-ball surfaces now use continuous seam sections and arc-length fitting with shared contact boundaries and bounded accuracy checks; tiny rim edges remain selected instead of nearby wall seams when filleting (#2498) | in progress | 30 | | M4 | Files: STEP import (done — [docs/step-import.md](docs/step-import.md)), FreeCAD/Rhino solids through cadmpeg (done, desktop and CLI), 3MF export and 3MF/STL import as mesh bodies (done), 3MF with B-rep face tags ([docs/formats/3mf-face-tags.md](docs/formats/3mf-face-tags.md), done), constant-section parametric mesh reconstruction, DXF sketches, OBJ import | in progress | 6 | diff --git a/THIRD-PARTY-LICENSES.txt b/THIRD-PARTY-LICENSES.txt index 8791710f1..1a5c608b2 100644 --- a/THIRD-PARTY-LICENSES.txt +++ b/THIRD-PARTY-LICENSES.txt @@ -16144,6 +16144,14 @@ Bundled fonts (SIL Open Font License, Version 1.1) Copyright 2022 The BIZ UDGothic Project Authors (https://github.com/googlefonts/morisawa-biz-ud-mincho) Source: https://github.com/googlefonts/morisawa-biz-ud-gothic +- IBMPlexSans-Variable.ttf (assets/fonts/ibm-plex-sans/IBMPlexSans-Variable.ttf) + Copyright 2017 IBM Corp. with Reserved Font Name "Plex" + Source: https://github.com/IBM/plex + +- IBMPlexMono-Regular.ttf (assets/fonts/ibm-plex-mono/IBMPlexMono-Regular.ttf) + Copyright 2017 IBM Corp. with Reserved Font Name "Plex" + Source: https://github.com/IBM/plex + ================================================================================ SIL OPEN FONT LICENSE Version 1.1 ================================================================================ diff --git a/apps/solidcraft-cli/src/main.rs b/apps/solidcraft-cli/src/main.rs index 9030066b9..04bc9766c 100644 --- a/apps/solidcraft-cli/src/main.rs +++ b/apps/solidcraft-cli/src/main.rs @@ -4,7 +4,7 @@ //! solidcraft-cli run [--in design|part.step|mesh.3mf] [--out FILE]... [--save FILE] [--quiet] [--results] [--timings] [--profile] [--json-out FILE] [--allow-errors] //! solidcraft-cli eval [--json-out FILE] (alias: inspect) measurements as JSON //! solidcraft-cli script [--out script.json] the design's history as a command script -//! solidcraft-cli bench-open [--parse-only] [--save OUT.solidcraft] [--display LEVEL [--edit NAME EXPR]] loading timings as JSON lines +//! solidcraft-cli bench-open [--parse-only] [--save OUT.solidcraft] [--display LEVEL [--edit NAME EXPR]] [--ops script.json] loading timings as JSON lines //! solidcraft-cli bench-agent [--scale F] [--save F] [--script-out F] a ~1,300-body design built command by command, timed //! solidcraft-cli snapshot [--in design|part.step] --out shot.png [--width W] [--height H] [--view iso|front|top|…|NAME | --camera JSON] [--no-grid] [--no-axes] //! [--body NAME:opacity=0.3,color=#rrggbb]... [--tool NAME]... [--section z=27] @@ -50,7 +50,9 @@ const USAGE: &str = "usage: as plain UTF-8: a shell's > can re-encode it, e.g. Windows PowerShell adds a byte-order mark) solidcraft-cli script [--out script.json] (the design's history as a command script that eval and run replay) - solidcraft-cli bench-open [--parse-only] [--save OUT.solidcraft] [--display LEVEL [--edit NAME EXPR]] + solidcraft-cli bench-open [--parse-only] [--save OUT.solidcraft] [--display LEVEL [--edit NAME EXPR]] [--ops script.json] + (--ops: after opening, run each command of the script and undo it, timing the command, the + evaluations it caused and the view it leaves: placing and meshing what changed) solidcraft-cli bench-agent [--scale F] [--save design.solidcraft] [--script-out script.json] solidcraft-cli snapshot [--in design.solidcraft|part.step] --out shot.png [--width W] [--height H] [--view NAME | --camera JSON] [--no-grid] [--no-axes] [--body NAME:opacity=0.3,color=#rrggbb]... [--tool NAME]... [--section z=27] @@ -642,6 +644,36 @@ fn cmd_bench_edit(args: &[String]) -> Result<(), String> { Ok(()) } +/// `bench-open --ops`: each command of `script` (a JSON array of `{command, params}`), then its +/// undo, each timed as the command and the view it leaves (the placed model, its meshes warmed +/// as the desktop does after a change). +fn bench_ops(mut s: Session, script: &str) -> Result { + let text = std::fs::read_to_string(script).map_err(|e| format!("{script}: {e}"))?; + let ops: Value = serde_json::from_str(&text).map_err(|e| format!("{script}: {e}"))?; + let ops = ops.as_array().ok_or("--ops: a JSON array of {command, params}")?; + let time = |s: &mut Session, id: &str, p: &Value| -> Result { + let t = std::time::Instant::now(); + let r = s.execute(id, p).map_err(|e| format!("{id}: {e}"))?; + let ms = t.elapsed().as_secs_f64() * 1000.0; + let t = std::time::Instant::now(); + s.world_state().warm_meshes(|| true); + let view_ms = t.elapsed().as_secs_f64() * 1000.0; + println!("{}", json!({"step": "op", "command": id, "ms": ms, "view_ms": view_ms})); + Ok(r) + }; + for op in ops { + let id = op.get("command").and_then(Value::as_str).ok_or("--ops: each step needs a `command`")?; + let p = op.get("params").cloned().unwrap_or(Value::Null); + let steps = s.undo.len(); + time(&mut s, id, &p)?; + // Commands that are no undo step (showing and hiding) have nothing to undo. + if op.get("undo").and_then(Value::as_bool) != Some(false) && s.undo.len() > steps { + time(&mut s, "edit.undo", &json!({}))?; + } + } + Ok(s) +} + /// Separate file reading, JSON decoding/repair, timeline evaluation and display meshing. pub(crate) fn cmd_bench_open(args: &[String]) -> Result<(), String> { let path = args.first().ok_or("usage: solidcraft-cli bench-open [--parse-only]")?; @@ -727,6 +759,10 @@ pub(crate) fn cmd_bench_open(args: &[String]) -> Result<(), String> { // `--display LEVEL`: the display plans the viewport draws at that display quality, made as // the GPU viewport makes them; `--edit NAME EXPR` then changes a parameter and times the // evaluation and the plans of the bodies it changed. + let s = match flag("--ops").and_then(|i| args.get(i + 1)) { + Some(ops) => bench_ops(s, ops)?, + None => s, + }; let Some(level) = flag("--display").and_then(|i| args.get(i + 1)) else { return Ok(()) }; let q = solidcraft_engine::doc::display_quality::DisplayQuality::parse(level).ok_or("--display: coarse, normal, fine or ultra")?; let plans = |st: &solidcraft_engine::doc::ModelState| { diff --git a/apps/solidcraft-web/Cargo.toml b/apps/solidcraft-web/Cargo.toml index 668fe0860..6bfebbb56 100644 --- a/apps/solidcraft-web/Cargo.toml +++ b/apps/solidcraft-web/Cargo.toml @@ -29,5 +29,6 @@ web-sys = { version = "0.3", features = [ "Window", "Document", "Element", "HtmlElement", "HtmlCanvasElement", "Location", "Navigator", "StorageManager", "FileSystemHandle", "FileSystemDirectoryHandle", "FileSystemFileHandle", "FileSystemGetFileOptions", "FileSystemWritableFileStream", "WritableStream", "File", "FileList", "Blob", "BlobPropertyBag", "Url", "HtmlAnchorElement", "HtmlInputElement", "Storage", + "IdbFactory", "IdbDatabase", "IdbObjectStore", "IdbOpenDbRequest", "IdbRequest", "IdbTransaction", "IdbTransactionMode", "BeforeUnloadEvent", "Event", "EventTarget", "Response", "MediaQueryList", "Gamepad", "Performance", ] } diff --git a/apps/solidcraft-web/src/disk.rs b/apps/solidcraft-web/src/disk.rs new file mode 100644 index 000000000..dc3396903 --- /dev/null +++ b/apps/solidcraft-web/src/disk.rs @@ -0,0 +1,497 @@ +//! Designs on the computer's own disk, through the File System Access API (Chrome, Edge, Opera): +//! Save As and Open show the browser's file dialogs, and the chosen file's handle is kept (in +//! memory, and in IndexedDB so Save still reaches the file after a reload) so Save writes back to +//! it. To the engine such a design is the file `/disk//`: it saves there like anywhere, +//! and [`flush`](crate::files::flush) forwards what it wrote to the handle. Browsers without the +//! API (Firefox, Safari) keep designs in the origin private file system (`files.rs`). +//! +//! The path logic is plain Rust and tested natively; the browser calls are wasm-only. +#![cfg_attr(not(target_arch = "wasm32"), allow(dead_code))] + +/// Where a design on the computer's disk appears to the engine. +pub const PREFIX: &str = "/disk/"; + +/// Where designs kept in the browser's private storage (OPFS) appear to the engine. +pub const OPFS_PREFIX: &str = "/opfs/"; +/// Paths written here are handed to the user as downloads. +pub const DOWNLOADS_PREFIX: &str = "/downloads/"; + +/// Where what a command wrote to an engine path goes. +#[derive(Clone, Copy, Debug, PartialEq, Eq)] +pub enum WriteTo { + /// The browser's private storage: the design (or recovery file) keeps its name there. + Opfs, + /// A file on the computer, through its handle. + Disk, + /// A download. + Download, + /// Kept only in memory (uploads). + Memory, +} + +/// Route a write by its path. OPFS paths always go to OPFS, whatever the browser can do: a design +/// opened from the browser's storage keeps saving there until the user picks Save As. +pub fn route(path: &str) -> WriteTo { + if path.starts_with(OPFS_PREFIX) { + WriteTo::Opfs + } else if parse(path).is_some() { + WriteTo::Disk + } else if path.starts_with(DOWNLOADS_PREFIX) { + WriteTo::Download + } else { + WriteTo::Memory + } +} + +/// The engine path of the design `name` kept under handle `id`. +pub fn path(id: &str, name: &str) -> String { + format!("{PREFIX}{id}/{name}") +} + +/// The handle id and file name of an engine path made by [`path`]. +pub fn parse(path: &str) -> Option<(&str, &str)> { + let (id, name) = path.strip_prefix(PREFIX)?.split_once('/')?; + (!id.is_empty() && !name.is_empty() && !name.contains('/')).then_some((id, name)) +} + +/// A handle id from the time and a random number. +pub fn make_id(ms: u64, random: u64) -> String { + format!("{ms:x}-{random:x}") +} + +/// Where a design saved with Save As goes. +#[derive(Clone, Copy, Debug, PartialEq, Eq)] +pub enum SaveTarget { + /// A file the user picks on their computer. + Disk, + /// The browser's private storage (OPFS): what browsers without the API have always done. + Browser, + /// Not a design (an export): handed over as a download. + Download, +} + +/// Choose where a Save As goes: designs to the disk when the browser can pick a file, else into +/// the browser's storage; anything else is a download. +pub fn save_target(api: bool, design: bool) -> SaveTarget { + match (design, api) { + (false, _) => SaveTarget::Download, + (true, true) => SaveTarget::Disk, + (true, false) => SaveTarget::Browser, + } +} + +/// Does a picker for `extensions` (what the command reads; `&[]`: anything) belong to a design? +/// Only those go through the disk dialog; inserting a STEP or mesh keeps using the file window. +pub fn opens_design(extensions: &[&str]) -> bool { + extensions.is_empty() || extensions.iter().any(|e| solidcraft_engine::io::DESIGN_EXTS.contains(e)) +} + +/// The file type a Save As dialog offers for `name`: (description, MIME type, extension). +pub fn save_type(name: &str) -> (&'static str, &'static str, &'static str) { + let json = std::path::Path::new(name).extension().is_some_and(|e| e.eq_ignore_ascii_case("json")); + if json { ("Plain JSON design", "application/json", ".json") } else { ("SolidCraft design", "application/octet-stream", ".solidcraft") } +} + +/// Is this a cancelled dialog (the browser's `AbortError`)? Not an error to show. +pub fn is_abort(error_name: &str) -> bool { + error_name == "AbortError" +} + +#[cfg(target_arch = "wasm32")] +pub use web::*; + +#[cfg(target_arch = "wasm32")] +mod web { + use std::cell::{Cell, RefCell}; + use std::collections::{HashMap, VecDeque}; + use std::rc::Rc; + + use js_sys::{Array, Function, Object, Promise, Reflect}; + use solidcraft_engine::io::vfs; + use wasm_bindgen::{JsCast as _, JsValue, closure::Closure}; + use wasm_bindgen_futures::{JsFuture, spawn_local}; + use web_sys::{FileSystemFileHandle, IdbDatabase, IdbObjectStore, IdbOpenDbRequest, IdbRequest, IdbTransactionMode}; + + use super::{is_abort, make_id, opens_design, parse, path, save_type}; + use crate::files::{Files, err, read_handle}; + + const DB: &str = "solidcraft-disk-handles"; + const STORE: &str = "handles"; + + thread_local! { + /// Handles picked or looked up in this session, by id. + static HANDLES: RefCell> = RefCell::new(HashMap::new()); + /// Writes waiting for their turn (a file takes one writer at a time), latest per id. + static QUEUE: RefCell)>> = const { RefCell::new(VecDeque::new()) }; + static BUSY: Cell = const { Cell::new(false) }; + } + + /// Why a dialog gave no file. + enum Pick { + Cancelled, + Failed(String), + } + + fn failed(e: JsValue) -> Pick { + let name = Reflect::get(&e, &"name".into()).ok().and_then(|n| n.as_string()).unwrap_or_default(); + if is_abort(&name) { Pick::Cancelled } else { Pick::Failed(err(e)) } + } + + /// Can this page show the browser's file dialogs and write to the files they pick? + pub fn supported() -> bool { + let Some(window) = web_sys::window() else { return false }; + let has = |name: &str| Reflect::get(&window, &name.into()).is_ok_and(|f| f.is_function()); + window.is_secure_context() && has("showSaveFilePicker") && has("showOpenFilePicker") + } + + fn types(description: &str, mime: &str, extension: &str) -> Array { + let accept = Object::new(); + let _ = Reflect::set(&accept, &mime.into(), &Array::of1(&extension.into())); + let entry = Object::new(); + let _ = Reflect::set(&entry, &"description".into(), &description.into()); + let _ = Reflect::set(&entry, &"accept".into(), &accept); + Array::of1(&entry) + } + + /// Start a dialog. This must run in the click that asked for it (the browser wants a user + /// gesture), so it is called before anything is awaited. + fn start_picker(function: &str, options: &Object) -> Result { + let window = web_sys::window().ok_or_else(|| Pick::Failed("no window".into()))?; + let f: Function = Reflect::get(&window, &function.into()) + .map_err(failed)? + .dyn_into() + .map_err(|_| Pick::Failed("this browser can't open file dialogs".into()))?; + f.call1(&window, options).map_err(failed)?.dyn_into().map_err(|_| Pick::Failed("no answer from the file dialog".into())) + } + + /// Remember a picked file: in memory now, in IndexedDB for the next session. + fn register(handle: &FileSystemFileHandle) -> String { + let id = make_id(js_sys::Date::now() as u64, (js_sys::Math::random() * 1e15) as u64); + HANDLES.with(|h| h.borrow_mut().insert(id.clone(), handle.clone())); + let (key, kept, name) = (id.clone(), handle.clone(), handle.name()); + spawn_local(async move { + if let Err(e) = remember(&key, &kept).await { + log::warn!("the file's handle isn't kept for the next session: {e}"); + } + }); + path(&id, &name) + } + + fn save_options(name: &str) -> Object { + let options = Object::new(); + let _ = Reflect::set(&options, &"suggestedName".into(), &name.into()); + let (description, mime, extension) = save_type(name); + let _ = Reflect::set(&options, &"types".into(), &types(description, mime, extension)); + options + } + + /// "Save to computer…" for a design kept in the browser: write a copy of `bytes` to a file the + /// user picks (call in the click), or download it where the browser can't pick one. The design + /// itself stays where it is. + pub fn save_copy(files: &Rc, name: &str, bytes: Vec) { + if !supported() { + if let Err(e) = crate::files::download(name, &bytes) { + files.say(format!("{name}: {e}"), true); + } + return; + } + let promise = start_picker("showSaveFilePicker", &save_options(name)); + let files = files.clone(); + spawn_local(async move { + let r = async { + let h: FileSystemFileHandle = + JsFuture::from(promise?).await.map_err(failed)?.dyn_into().map_err(|_| Pick::Failed("not a file".into()))?; + write_handle(&h, &bytes).await.map_err(Pick::Failed)?; + Ok::(h.name()) + }; + match r.await { + Ok(saved) => files.say(format!("Saved a copy to {saved}"), false), + Err(Pick::Cancelled) => {} + Err(Pick::Failed(e)) => files.say(format!("save to computer: {e}"), true), + } + }); + } + + /// Save As, step one: show the browser's save dialog (call in the click). The answer is the + /// engine path the design is saved to, `None` when the dialog was closed. + pub fn pick_save(files: &Rc, name: &str) -> impl std::future::Future> + use<> { + let promise = start_picker("showSaveFilePicker", &save_options(name)); + let files = files.clone(); + async move { + let handle = match promise { + Ok(p) => JsFuture::from(p) + .await + .map_err(failed) + .and_then(|h| h.dyn_into::().map_err(|_| Pick::Failed("not a file".into()))), + Err(e) => Err(e), + }; + match handle { + Ok(h) => Some(register(&h)), + Err(Pick::Cancelled) => None, + Err(Pick::Failed(e)) => { + files.say(format!("save: {e}"), true); + None + } + } + } + } + + /// Open, step one: show the browser's open dialog for a design (call in the click). The + /// answer is the engine path of the file, read into the engine's files; a design keeps its + /// handle, so Save writes back to the file. `None`: closed, or it could not be read. + pub fn pick_open(files: &Rc) -> impl std::future::Future> + use<> { + let promise = start_picker("showOpenFilePicker", &open_options()); + let files = files.clone(); + async move { + let r = async { + let p = promise?; + let handles: Array = JsFuture::from(p).await.map_err(failed)?.dyn_into().map_err(|_| Pick::Failed("no file".into()))?; + let h: FileSystemFileHandle = handles.get(0).dyn_into().map_err(|_| Pick::Cancelled)?; + let bytes = read_handle(&h).await.map_err(Pick::Failed)?; + Ok((h, bytes)) + }; + match r.await { + Ok((h, bytes)) => Some(arrive(&h, bytes)), + Err(Pick::Cancelled) => None, + Err(Pick::Failed(e)) => { + files.say(format!("open: {e}"), true); + None + } + } + } + } + + /// The options of the open dialog: a single file, designs and CAD files listed first. + pub fn open_options() -> Object { + let options = Object::new(); + let _ = Reflect::set(&options, &"multiple".into(), &JsValue::FALSE); + let extensions = Array::new(); + for e in [".solidcraft", ".solvecraft", ".json", ".step", ".stp", ".3mf", ".stl", ".obj", ".glb", ".gltf"] { + extensions.push(&e.into()); + } + let accept = Object::new(); + let _ = Reflect::set(&accept, &"application/octet-stream".into(), &extensions); + let entry = Object::new(); + let _ = Reflect::set(&entry, &"description".into(), &"Designs and CAD files".into()); + let _ = Reflect::set(&entry, &"accept".into(), &accept); + let _ = Reflect::set(&options, &"types".into(), &Array::of1(&entry)); + options + } + + /// A file read from a dialog's handle: a design lives at its disk path from now on (and + /// keeps the handle); anything else is an upload to open or insert. + pub fn arrive(handle: &FileSystemFileHandle, bytes: Vec) -> String { + let name = handle.name(); + let p = if solidcraft_engine::io::is_design_path(&name) { register(handle) } else { format!("{}{name}", crate::files::UPLOAD) }; + vfs::insert(&p, bytes); + p + } + + /// Does an Open for `extensions` use the browser's open dialog? + pub fn handles_open(extensions: &[&str]) -> bool { + supported() && opens_design(extensions) + } + + // ---- writing ------------------------------------------------------------------------ + + /// Queue what a command wrote to a disk path. Writes go one at a time; a newer write of the + /// same file replaces one still waiting. + pub fn enqueue(files: &Rc, path: &str, bytes: Vec) { + QUEUE.with(|q| { + let mut q = q.borrow_mut(); + q.retain(|(p, _)| p != path); + q.push_back((path.to_string(), bytes)); + }); + if BUSY.with(|b| b.replace(true)) { + return; + } + let files = files.clone(); + spawn_local(async move { + while let Some((path, bytes)) = QUEUE.with(|q| q.borrow_mut().pop_front()) { + if let Err(e) = write(&path, &bytes).await { + files.failed_disk(&path, &e); + } + } + BUSY.with(|b| b.set(false)); + }); + } + + async fn write(path: &str, bytes: &[u8]) -> Result<(), String> { + let (id, name) = parse(path).ok_or("not a file on the computer")?; + let handle = handle_for(id).await.map_err(|e| format!("{name}: {e}"))?; + write_handle(&handle, bytes).await.map_err(|e| format!("{name}: {e}")) + } + + async fn write_handle(handle: &FileSystemFileHandle, bytes: &[u8]) -> Result<(), String> { + ensure_readwrite(handle).await?; + let w: web_sys::FileSystemWritableFileStream = + JsFuture::from(handle.create_writable()).await.map_err(err)?.dyn_into().map_err(|_| "no writable stream".to_string())?; + JsFuture::from(w.write_with_u8_array(bytes).map_err(err)?).await.map_err(err)?; + JsFuture::from(w.close()).await.map_err(err)?; + Ok(()) + } + + async fn handle_for(id: &str) -> Result { + if let Some(h) = HANDLES.with(|h| h.borrow().get(id).cloned()) { + return Ok(h); + } + let h: FileSystemFileHandle = recall(id) + .await? + .and_then(|v| v.dyn_into().ok()) + .ok_or("the browser no longer remembers where this design was saved: use Save As to choose the file again")?; + HANDLES.with(|m| m.borrow_mut().insert(id.to_string(), h.clone())); + Ok(h) + } + + /// Ask for write access if the browser doesn't hold it any more (after a reload): one prompt, + /// from the click that asked for the save. + async fn ensure_readwrite(handle: &FileSystemFileHandle) -> Result<(), String> { + let options = Object::new(); + let _ = Reflect::set(&options, &"mode".into(), &"readwrite".into()); + for method in ["queryPermission", "requestPermission"] { + let Some(f) = Reflect::get(handle, &method.into()).ok().and_then(|f| f.dyn_into::().ok()) else { + // A browser without the permission calls hands out writable handles as they are. + return Ok(()); + }; + let answer = f.call1(handle, &options).map_err(err)?; + let state = JsFuture::from(Promise::resolve(&answer)).await.map_err(err)?; + if state.as_string().as_deref() == Some("granted") { + return Ok(()); + } + } + Err("the browser wasn't given permission to write the file: use Save As to choose it again".into()) + } + + // ---- IndexedDB: the handles, by id -------------------------------------------------- + + /// The result of an IndexedDB request. + async fn result(req: &IdbRequest) -> Result { + let promise = Promise::new(&mut |resolve, reject| { + let r = req.clone(); + let ok = Closure::once_into_js(move || { + let _ = resolve.call1(&JsValue::NULL, &r.result().unwrap_or(JsValue::UNDEFINED)); + }); + let bad = Closure::once_into_js(move || { + let _ = reject.call1(&JsValue::NULL, &"IndexedDB failed".into()); + }); + req.set_onsuccess(Some(ok.unchecked_ref())); + req.set_onerror(Some(bad.unchecked_ref())); + }); + JsFuture::from(promise).await.map_err(err) + } + + async fn open_db() -> Result { + let factory = web_sys::window().ok_or("no window")?.indexed_db().map_err(err)?.ok_or("this browser has no IndexedDB")?; + let request: IdbOpenDbRequest = factory.open_with_u32(DB, 1).map_err(err)?; + let target = request.clone(); + let upgrade = Closure::once_into_js(move || { + if let Ok(db) = target.result().and_then(|r| r.dyn_into::()) { + let _ = db.create_object_store(STORE); + } + }); + request.set_onupgradeneeded(Some(upgrade.unchecked_ref())); + result(&request).await?.dyn_into().map_err(|_| "no database".to_string()) + } + + fn store(db: &IdbDatabase, mode: IdbTransactionMode) -> Result { + db.transaction_with_str_and_mode(STORE, mode).map_err(err)?.object_store(STORE).map_err(err) + } + + async fn remember(id: &str, handle: &FileSystemFileHandle) -> Result<(), String> { + let db = open_db().await?; + let req = store(&db, IdbTransactionMode::Readwrite)?.put_with_key(handle, &id.into()).map_err(err)?; + result(&req).await.map(|_| ()) + } + + async fn recall(id: &str) -> Result, String> { + let db = open_db().await?; + let req = store(&db, IdbTransactionMode::Readonly)?.get(&id.into()).map_err(err)?; + Ok(Some(result(&req).await?).filter(|v| !v.is_undefined())) + } +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn a_disk_path_round_trips_its_handle_id_and_name() { + let p = path("18f-2a", "Bracket v2.solidcraft"); + assert_eq!(p, "/disk/18f-2a/Bracket v2.solidcraft"); + assert_eq!(parse(&p), Some(("18f-2a", "Bracket v2.solidcraft"))); + } + + #[test] + fn only_disk_paths_parse() { + for not in [ + "/opfs/a.solidcraft", + "/downloads/a.step", + "/upload/a.step", + "/disk/", + "/disk/id", + "/disk/id/", + "/disk//a", + "/disk/id/x/y", + "a.solidcraft", + ] { + assert_eq!(parse(not), None, "{not}"); + } + } + + /// Designs already stored in OPFS (and the recovery files) keep saving to OPFS under their own + /// names, whether or not the browser can write to the disk. + #[test] + fn writes_to_opfs_paths_still_go_to_opfs() { + for p in + ["/opfs/Bracket.solidcraft", "/opfs/Bracket (2).solidcraft", "/opfs/recovery.solidcraft", "/opfs/recovery.json", "/opfs/old.solvecraft"] + { + assert_eq!(route(p), WriteTo::Opfs, "{p}"); + } + // A design opened from OPFS saves to its own path; only a Save As can pick the disk. + assert_eq!(save_target(false, true), SaveTarget::Browser); + assert_eq!(route(&format!("{OPFS_PREFIX}Bracket.solidcraft")), WriteTo::Opfs); + assert_eq!(route("/disk/18f-2a/Bracket.solidcraft"), WriteTo::Disk); + assert_eq!(route("/downloads/part.step"), WriteTo::Download); + assert_eq!(route("/upload/part.step"), WriteTo::Memory); + } + + #[test] + fn handle_ids_differ_by_time_and_by_chance() { + assert_ne!(make_id(1, 5), make_id(2, 5)); + assert_ne!(make_id(1, 5), make_id(1, 6)); + assert!(!make_id(0, 0).contains('/')); + } + + /// Save As: a design goes to the disk where the browser can pick files and to the browser's + /// storage where it cannot (today's behaviour); an export is a download either way. + #[test] + fn save_as_chooses_between_the_disk_the_browsers_storage_and_a_download() { + assert_eq!(save_target(true, true), SaveTarget::Disk); + assert_eq!(save_target(false, true), SaveTarget::Browser); + assert_eq!(save_target(true, false), SaveTarget::Download); + assert_eq!(save_target(false, false), SaveTarget::Download); + } + + #[test] + fn only_design_opens_use_the_disk_dialog() { + assert!(opens_design(&[])); + assert!(opens_design(&["solidcraft"])); + assert!(opens_design(&["solvecraft"])); + assert!(!opens_design(&["step", "stp"])); + assert!(!opens_design(&["json"])); + } + + #[test] + fn the_save_dialog_offers_the_type_of_the_name() { + assert_eq!(save_type("Plate.solidcraft").2, ".solidcraft"); + assert_eq!(save_type("Plate.JSON").2, ".json"); + assert_eq!(save_type("Plate").2, ".solidcraft"); + } + + #[test] + fn closing_a_dialog_is_not_an_error() { + assert!(is_abort("AbortError")); + assert!(!is_abort("NotAllowedError")); + assert!(!is_abort("SecurityError")); + } +} diff --git a/apps/solidcraft-web/src/files.rs b/apps/solidcraft-web/src/files.rs index 126bede0c..79341a976 100644 --- a/apps/solidcraft-web/src/files.rs +++ b/apps/solidcraft-web/src/files.rs @@ -2,22 +2,26 @@ //! the engine's in-memory files (`solidcraft_engine::io::vfs`) at start, written back whenever a //! command writes one. Files come in from the computer through a file picker (the File System //! Access API where the browser has it, an `` otherwise) or a drop on the page, -//! and go out as downloads (exports, and "Download design"). An autosave of unsaved work is kept -//! in OPFS too and offered again after a reload or a crash. +//! and go out as downloads (exports, and "Download design"). Where the File System Access API +//! exists a design also lives on the computer's disk, saved and opened through the browser's file +//! dialogs (`disk.rs`). An autosave of unsaved work is kept in OPFS and offered again after a +//! reload or a crash. use std::cell::{Cell, RefCell}; use std::rc::Rc; use js_sys::{Array, Function, Object, Reflect, Uint8Array}; use solidcraft_engine::io::vfs; + +use crate::disk; use wasm_bindgen::{JsCast as _, JsValue, closure::Closure}; use wasm_bindgen_futures::{JsFuture, spawn_local}; use web_sys::{FileSystemDirectoryHandle, FileSystemFileHandle, FileSystemGetFileOptions, FileSystemWritableFileStream}; /// Where OPFS files appear to the engine. -pub const OPFS: &str = "/opfs/"; +pub const OPFS: &str = disk::OPFS_PREFIX; /// Paths written here are handed to the user as downloads. -pub const DOWNLOADS: &str = "/downloads/"; +pub const DOWNLOADS: &str = disk::DOWNLOADS_PREFIX; /// Files brought in from the computer. pub const UPLOAD: &str = "/upload/"; /// The autosave of unsaved work (in OPFS: `recovery.solidcraft` and `recovery.json`). @@ -51,6 +55,10 @@ pub struct Files { pub entries: RefCell>, /// Files read from the computer: (name, bytes, what to do). pub incoming: RefCell, Intent)>>, + /// Designs opened from the computer's disk: their paths in the engine's files. + pub opened: RefCell>, + /// Disk designs whose last write failed: they are not saved. + pub unsaved: RefCell>, /// Messages for the status line (errors and confirmations). pub messages: RefCell>, /// The stored designs are loaded (the app may open them). @@ -64,11 +72,17 @@ pub struct Files { } impl Files { - fn say(&self, text: impl Into, error: bool) { + pub fn say(&self, text: impl Into, error: bool) { self.messages.borrow_mut().push((text.into(), error)); self.wake(); } + /// Writing the design at disk `path` failed: say so, and take its "saved" back. + pub fn failed_disk(&self, path: &str, error: &str) { + self.unsaved.borrow_mut().push(path.to_string()); + self.say(format!("Not saved to your computer: {error}"), true); + } + /// A file arrived from the computer. fn arrive(&self, name: String, bytes: Vec, intent: Intent) { self.incoming.borrow_mut().push((name, bytes, intent)); @@ -127,7 +141,7 @@ pub fn local_only() -> bool { LOCAL.with(Cell::get) } -fn err(e: JsValue) -> String { +pub(crate) fn err(e: JsValue) -> String { e.as_string().or_else(|| Reflect::get(&e, &"message".into()).ok().and_then(|m| m.as_string())).unwrap_or_else(|| format!("{e:?}")) } @@ -150,7 +164,7 @@ async fn root() -> Result { dir.dyn_into::().map_err(|_| "this browser has no private file storage (OPFS)".to_string()) } -async fn read_handle(h: &FileSystemFileHandle) -> Result, String> { +pub(crate) async fn read_handle(h: &FileSystemFileHandle) -> Result, String> { let file: web_sys::File = JsFuture::from(h.get_file()).await.map_err(err)?.dyn_into().map_err(|_| "not a file".to_string())?; blob_bytes(&file).await } @@ -295,26 +309,32 @@ pub fn start(files: &Rc) { /// Store what commands wrote: OPFS paths into OPFS, download paths as downloads. pub fn flush(files: &Rc) { for (path, bytes) in vfs::take_writes() { - if let Some(name) = path.strip_prefix(OPFS) { - let name = name.to_string(); - { - let mut e = files.entries.borrow_mut(); - e.retain(|x| x.name != name); - if name != RECOVERY && name != RECOVERY_META { - e.push(Entry { name: name.clone(), size: bytes.len() as u64, modified: js_sys::Date::now() }); - e.sort_by_key(|a| a.name.to_lowercase()); + match disk::route(&path) { + disk::WriteTo::Opfs => { + let name = path.strip_prefix(OPFS).unwrap_or(&path).to_string(); + { + let mut e = files.entries.borrow_mut(); + e.retain(|x| x.name != name); + if name != RECOVERY && name != RECOVERY_META { + e.push(Entry { name: name.clone(), size: bytes.len() as u64, modified: js_sys::Date::now() }); + e.sort_by_key(|a| a.name.to_lowercase()); + } } + let files = files.clone(); + spawn_local(async move { + if let Err(e) = write_file(&name, &bytes).await { + files.say(format!("{name}: {e}"), true); + } + }); } - let files = files.clone(); - spawn_local(async move { - if let Err(e) = write_file(&name, &bytes).await { + disk::WriteTo::Disk => disk::enqueue(files, &path, bytes), + disk::WriteTo::Download => { + let name = path.strip_prefix(DOWNLOADS).unwrap_or(&path); + if let Err(e) = download(name, &bytes) { files.say(format!("{name}: {e}"), true); } - }); - } else if let Some(name) = path.strip_prefix(DOWNLOADS) - && let Err(e) = download(name, &bytes) - { - files.say(format!("{name}: {e}"), true); + } + disk::WriteTo::Memory => {} } } } @@ -427,8 +447,15 @@ pub fn pick_from_disk(files: &Rc, intent: Intent) { let picker = Reflect::get(&window, &"showOpenFilePicker".into()).ok().and_then(|f| f.dyn_into::().ok()); match picker { Some(f) => { - let opts = Object::new(); - let _ = Reflect::set(&opts, &"multiple".into(), &JsValue::FALSE); + // A design from the computer's disk keeps its file, so Save writes back to it. + let on_disk = intent == Intent::Open && disk::supported(); + let opts = if on_disk { + disk::open_options() + } else { + let opts = Object::new(); + let _ = Reflect::set(&opts, &"multiple".into(), &JsValue::FALSE); + opts + }; let promise = f.call1(&window, &opts); let files = files.clone(); spawn_local(async move { @@ -438,7 +465,13 @@ pub fn pick_from_disk(files: &Rc, intent: Intent) { for h in handles.iter() { let h: FileSystemFileHandle = h.dyn_into().map_err(|_| "not a file".to_string())?; let bytes = read_handle(&h).await?; - files.arrive(h.name(), bytes, intent); + if on_disk && solidcraft_engine::io::is_design_path(&h.name()) { + let path = disk::arrive(&h, bytes); + files.opened.borrow_mut().push(path); + files.wake(); + } else { + files.arrive(h.name(), bytes, intent); + } } Ok::<(), String>(()) }; diff --git a/apps/solidcraft-web/src/main.rs b/apps/solidcraft-web/src/main.rs index 4b4819f65..feb74f40a 100644 --- a/apps/solidcraft-web/src/main.rs +++ b/apps/solidcraft-web/src/main.rs @@ -8,6 +8,8 @@ #[cfg(target_arch = "wasm32")] mod api; +#[cfg(any(target_arch = "wasm32", test))] +mod disk; #[cfg(target_arch = "wasm32")] mod files; #[cfg(target_arch = "wasm32")] @@ -25,6 +27,7 @@ mod web { use wasm_bindgen::JsCast as _; use crate::api::Api; + use crate::disk::{self, SaveTarget}; use crate::files::{self, Files, Intent}; use crate::space_mouse::SpaceMouse; @@ -121,6 +124,18 @@ mod web { return; } files::flush(&self.files); + // A write to the computer's disk that failed: the design is not saved after all. + for path in self.files.unsaved.borrow_mut().drain(..) { + if self.app.session.path.as_deref() == Some(path.as_str()) { + self.app.session.mark_unsaved(); + } + } + // Designs opened from the computer's disk (the files window): open them. + let opened: Vec<_> = self.files.opened.borrow_mut().drain(..).collect(); + for path in opened { + self.app.open_path(&path); + self.files.panel.set(false); + } for (text, error) in self.files.messages.borrow_mut().drain(..) { self.app.set_status(text, error); } @@ -224,6 +239,9 @@ mod web { act = Some(("download_open", String::new())); } }); + if !disk::supported() { + ui.weak("This browser can't save to a folder: designs stay in this browser. Download design saves a file."); + } ui.separator(); if !self.files.ready.get() { ui.horizontal(|ui| { @@ -270,6 +288,13 @@ mod web { self.renaming = Some((e.name.clone(), e.name.clone())); self.rename_focus = true; } + if ui + .small_button("Save to computer…") + .on_hover_text("A copy in a file you choose; the stored design stays here") + .clicked() + { + act = Some(("save_copy", e.name.clone())); + } if ui.small_button("Download").clicked() { act = Some(("download", e.name.clone())); } @@ -305,6 +330,10 @@ mod web { } Err(e) => self.app.set_status(e.to_string(), true), }, + "save_copy" => match vfs::read(&path, solidcraft_engine::io::MAX_DESIGN_BYTES) { + Ok(b) => disk::save_copy(&self.files, &name, b), + Err(e) => self.app.set_status(e.to_string(), true), + }, "download_open" => { let d = &self.app.session.doc; let result = self @@ -533,18 +562,33 @@ mod web { solidcraft_ui_egui::fonts::setup_fonts(&cc.egui_ctx); let files = Rc::new(Files::default()); files::start(&files); - let panel = files.clone(); + let (panel, opener, saver, shown) = (files.clone(), files.clone(), files.clone(), files.clone()); let services = Services { - // Open shows the browser's files (and the computer's, from there). - pick_open: Some(Box::new(move |_: &[&str]| { + // Open shows the browser's open dialog for a design where it has one + // (the file keeps its handle, so Save writes back to it); otherwise, + // and for inserting STEP or meshes, the browser's files window. + pick_open: Some(Box::new(move |exts: &[&str]| { + if disk::handles_open(exts) { + return Box::pin(disk::pick_open(&opener)); + } panel.panel.set(true); Box::pin(std::future::ready(None)) })), - // Designs are kept in the browser; everything else is downloaded. - pick_save: Some(Box::new(|name: &str, exts: &[&str]| { + // A design is saved to a file the user picks, or kept in the browser + // where the browser can't pick one; everything else is downloaded. + pick_save: Some(Box::new(move |name: &str, exts: &[&str]| { let design = exts.contains(&solidcraft_engine::io::DESIGN_EXT); - Box::pin(std::future::ready(Some(format!("{}{name}", if design { files::OPFS } else { files::DOWNLOADS })))) + match disk::save_target(disk::supported(), design) { + SaveTarget::Disk => Box::pin(disk::pick_save(&saver, name)), + SaveTarget::Browser => { + saver.say("This browser can't save to a folder: the design is kept in this browser. File > Download design saves a file.", false); + Box::pin(std::future::ready(Some(format!("{}{name}", files::OPFS)))) + } + SaveTarget::Download => Box::pin(std::future::ready(Some(format!("{}{name}", files::DOWNLOADS)))), + } })), + download_design: Some(Box::new(files::download)), + browser_files: Some(Box::new(move || shown.panel.set(true))), install_app: Some(crate::install::service(&cc.egui_ctx)), ..Default::default() }; diff --git a/apps/solidcraft/src/main.rs b/apps/solidcraft/src/main.rs index c4489c6fb..d80917d73 100644 --- a/apps/solidcraft/src/main.rs +++ b/apps/solidcraft/src/main.rs @@ -210,6 +210,8 @@ fn services(cc: &eframe::CreationContext<'_>) -> Services { http_download: Some(std::sync::Arc::new(http_download)), // Already an installed app: only the browser build offers to install. install_app: None, + download_design: None, + browser_files: None, agent_http: Some(std::sync::Arc::new(agent_http)), secrets: Some(std::sync::Arc::new(Keychain)), show_in_folder: Some(Box::new(|path| { diff --git a/assets/fonts/ibm-plex-mono/IBMPlexMono-Regular.ttf b/assets/fonts/ibm-plex-mono/IBMPlexMono-Regular.ttf new file mode 100644 index 000000000..0c9770d51 Binary files /dev/null and b/assets/fonts/ibm-plex-mono/IBMPlexMono-Regular.ttf differ diff --git a/assets/fonts/ibm-plex-mono/OFL.txt b/assets/fonts/ibm-plex-mono/OFL.txt new file mode 100644 index 000000000..c35c4c618 --- /dev/null +++ b/assets/fonts/ibm-plex-mono/OFL.txt @@ -0,0 +1,93 @@ +Copyright © 2017 IBM Corp. with Reserved Font Name "Plex" + +This Font Software is licensed under the SIL Open Font License, Version 1.1. + +This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/assets/fonts/ibm-plex-sans/IBMPlexSans-Variable.ttf b/assets/fonts/ibm-plex-sans/IBMPlexSans-Variable.ttf new file mode 100644 index 000000000..30f837e8b Binary files /dev/null and b/assets/fonts/ibm-plex-sans/IBMPlexSans-Variable.ttf differ diff --git a/assets/fonts/ibm-plex-sans/OFL.txt b/assets/fonts/ibm-plex-sans/OFL.txt new file mode 100644 index 000000000..c35c4c618 --- /dev/null +++ b/assets/fonts/ibm-plex-sans/OFL.txt @@ -0,0 +1,93 @@ +Copyright © 2017 IBM Corp. with Reserved Font Name "Plex" + +This Font Software is licensed under the SIL Open Font License, Version 1.1. + +This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/assets/icons/ui/AGENTS.md b/assets/icons/ui/AGENTS.md index 29f0973f7..e88a8d7df 100644 --- a/assets/icons/ui/AGENTS.md +++ b/assets/icons/ui/AGENTS.md @@ -29,3 +29,9 @@ request files under target, and do not retry them. The server never invokes a mo Canonical paths, launch command and export schema: [README.md](README.md). There are no numbered bulk authoring scripts or generated inventory files to maintain. + +Runtime discovery is also checked by `crates/ui-egui/tests/icon_audit.rs`. New menu +surfaces must extend that Harness traversal. Regenerate the committed +`design/requested_icons.txt` with `UPDATE_ICON_MANIFEST=1 cargo test -p +solidcraft-ui-egui --test icon_audit`; review the sorted id/placeholder diff. The +review tool reads this fixture in addition to source scans, masters and aliases. diff --git a/assets/icons/ui/README.md b/assets/icons/ui/README.md index 28cb8c830..8e4aede02 100644 --- a/assets/icons/ui/README.md +++ b/assets/icons/ui/README.md @@ -18,8 +18,8 @@ artwork changes trigger the live revision check. The server binds only to loopba Every opening scans SVG masters, aliases and source references. New, unused, missing and changed icons are discoverable. **All discovered icons without a valid -acceptance are Open, including those with notes.** No inventory file or allowlist -is needed. Rescan sees additions immediately; a running page also polls revisions. +acceptance are Open, including those with notes.** Discovery also reads `design/requested_icons.txt`, the sorted runtime audit +manifest; it supplements source scans and never restricts discovery. Rescan sees additions immediately; a running page also polls revisions. The internal placeholder glyph is the only excluded card. Shared masters are shown separately even when an accepted alias already uses them; reopen that alias before requesting a redraw of its protected artwork. Unassigned commands @@ -82,6 +82,7 @@ Palette changes preserve accepted artwork and never update review hashes. | `design/palette.toml`, `aliases.toml` | Shared theme roles, weights and semantic aliases | | `design/review.json` | Owner acceptance hashes and current notes | | `design/references.toml` | Curated style references; does not control discovery | +| `design/requested_icons.txt` | Sorted runtime requests and placeholder flags, checked by the Harness audit | | `design/tools/author/{lib,bases}.py` | Reusable geometry and canonical cube/slab/arrow bases | | `design/tools/author/new_icon.py` | Safe new-master scaffold, never overwrites an id | | `design/tools/icon_status.py`, `review_state.py` | Discovery, review backend and state | @@ -104,5 +105,25 @@ python3 -B assets/icons/ui/design/tools/icon_status.py --csv ``` Reports, screenshots, requests, generated contact sheets and previews stay under -ignored `target/`. Do not commit generated inventories or historical authoring -batches. Every non-Markdown resource has an exact row in `ATTRIBUTION.md`. +ignored `target/`. The runtime request manifest is a committed regression fixture; other generated +inventories and historical authoring batches do not belong in the repository. Every non-Markdown resource has an exact row in `ATTRIBUTION.md`. + +## Runtime menu audit + +`cargo test -p solidcraft-ui-egui --test icon_audit` drives the real UI through the +headless scenario Harness and rejects placeholder requests and unexpected blank +context-menu icons. It compares sorted requested ids with +`design/requested_icons.txt` (`idplaceholder`, one per line). After deliberately +changing menu coverage or assignments, regenerate and review its diff: + +```sh +UPDATE_ICON_MANIFEST=1 cargo test -p solidcraft-ui-egui --test icon_audit +``` + +The review page includes every manifest id, even ids used only in tables or helper +arguments. A true placeholder flag, missing master or broken alias is reported as +missing; runtime collection never changes acceptance hashes. The live control +method `ui.icon_audit` can diagnose requests in a running UI (see +[control protocol](../../../docs/control-protocol.md)). Keep the Harness traversal +current when adding menus. A successful traversal covers only the contexts it +actually opens; document unreachable or untested contexts in the audit report. diff --git a/assets/icons/ui/STYLE_GUIDE.md b/assets/icons/ui/STYLE_GUIDE.md index 00fa94798..33c91585a 100644 --- a/assets/icons/ui/STYLE_GUIDE.md +++ b/assets/icons/ui/STYLE_GUIDE.md @@ -207,3 +207,9 @@ All artwork must be original SolidCraft work or an explicitly licensed resource with provenance. Commercial CAD artwork, screenshots and extracted assets are forbidden even as hidden references. This guide and the local finished set provide all required visual context for future agents. + +Runtime discovery is also checked by `crates/ui-egui/tests/icon_audit.rs`. New menu +surfaces must extend that Harness traversal. Regenerate the committed +`design/requested_icons.txt` with `UPDATE_ICON_MANIFEST=1 cargo test -p +solidcraft-ui-egui --test icon_audit`; review the sorted id/placeholder diff. The +review tool reads this fixture in addition to source scans, masters and aliases. diff --git a/assets/icons/ui/design/aliases.toml b/assets/icons/ui/design/aliases.toml index f3443077c..adb998138 100644 --- a/assets/icons/ui/design/aliases.toml +++ b/assets/icons/ui/design/aliases.toml @@ -35,4 +35,12 @@ sketch_scale = { master = "scale", accent = "sketch" } sketch_text = { master = "text", accent = "sketch" } surface_fair = { master = "spline_cv", accent = "surface" } mesh_export = { master = "export", accent = "mesh" } + +# Legacy feature-history id for the same Split Body operation. +split = "split_body" + +# Sketch dialog choices share the corresponding finished tool artwork. +sketch_chamfer_equal = { master = "sketch_chamfer", accent = "sketch" } +sketch_chamfer_two = { master = "sketch_chamfer_two_distances", accent = "sketch" } +offset_one_side = { master = "offset", accent = "sketch" } bom = "list" diff --git a/assets/icons/ui/design/palette.toml b/assets/icons/ui/design/palette.toml index e648a8128..aaed95b24 100644 --- a/assets/icons/ui/design/palette.toml +++ b/assets/icons/ui/design/palette.toml @@ -10,7 +10,7 @@ [roles.ink] # outlines and details drawn over a face source = "#34465b" light = "#34465b" -dark = "#d8dfeb" +dark = "#1f2021" [roles.line] # line art that sits directly on the UI background (SVG: currentColor) source = "#34465b" light = "#34465b" @@ -66,13 +66,13 @@ parameters = 4.2 [accents.surface.active-1] light = "#f1d2af" -dark = "#ba8f6a" +dark = "#cc9362" [accents.surface.active-2] light = "#c06f00" -dark = "#b86f04" +dark = "#bd750d" [accents.surface.active-3] light = "#a45000" -dark = "#95682d" +dark = "#955a0e" [accents.form.active-1] light = "#decff8" @@ -85,41 +85,41 @@ light = "#7349cd" dark = "#7b63a6" [accents.mesh.active-1] -light = "#e5d99b" -dark = "#a9985f" +light = "#ffec8e" +dark = "#ffe282" [accents.mesh.active-2] -light = "#a28200" -dark = "#9a8100" +light = "#bb9600" +dark = "#ab8f00" [accents.mesh.active-3] -light = "#826700" -dark = "#857100" +light = "#e0b200" +dark = "#c6a800" [accents.sketch.active-1] light = "#bfe2cc" -dark = "#81a28e" +dark = "#7ab792" [accents.sketch.active-2] light = "#439a65" -dark = "#459665" +dark = "#3a965e" [accents.sketch.active-3] light = "#057f45" -dark = "#27864e" +dark = "#128d45" [accents.constraint.active-1] light = "#f0cfca" dark = "#b98c88" [accents.constraint.active-2] light = "#c1685f" -dark = "#b66b61" +dark = "#c27267" [accents.constraint.active-3] -light = "#af4038" -dark = "#a05c54" +light = "#ca473d" +dark = "#c16358" [accents.construction.active-1] light = "#ecd3b6" -dark = "#b19373" +dark = "#b99a78" [accents.construction.active-2] light = "#b8741f" -dark = "#b4711c" +dark = "#ad7023" [accents.construction.active-3] light = "#9c5600" dark = "#a75d00" @@ -134,12 +134,16 @@ dark = "#1d7f89" [variants.red-green.construction.active-3] light = "#b97300" dark = "#a75d00" +# The constraint red stays darker than the sketch green for a weak red sense. +[variants.red-green.constraint.active-3] +light = "#af4038" +dark = "#c16358" [variants.blue-yellow.construction.active-3] light = "#b97300" dark = "#c37d00" [variants.blue-yellow.constraint.active-3] light = "#af4038" -dark = "#986255" +dark = "#85554a" # Default accent by requested icon id. Explicit alias accents in aliases.toml win. # Deliberately not inherited from a master: ground reuses c_fix but is not a constraint. @@ -153,9 +157,9 @@ sketch = [ "arc3", "arc_center", "arc_slot", "arc_slot_center", "arc_tangent", "blend", "circle", "circle2", "circle3", "circle_tt", "circle_ttt", "conic", "constrainer", "dimension", "ellipse", - "extend", "finish", "fit_section", "include", "infinite", + "extend", "finish", "fit_section", "include", "intersect", "intersection_curve", "iso_curve", "line", "line_mid", - "offset", "point", "polygon", "polygon_circumscribed", "polygon_edge", + "offset", "offset_two_sides", "offset_symmetric", "point", "polygon", "polygon_circumscribed", "polygon_edge", "project", "project_surface", "rect", "rect3", "rect_center", "rect_rounded", "sketch", "sketch_chamfer", "sketch_chamfer_angle", "sketch_chamfer_two_distances", "sketch_fillet", "sketch_mirror", "slot", "slot_center", "slot_overall", @@ -168,5 +172,5 @@ constraint = [ "c_polygon", "c_smooth", "c_symmetry", "c_tangent", ] construction = [ - "centerline", "construction", + "centerline", "construction", "infinite", ] diff --git a/assets/icons/ui/design/requested_icons.txt b/assets/icons/ui/design/requested_icons.txt new file mode 100644 index 000000000..b50b03259 --- /dev/null +++ b/assets/icons/ui/design/requested_icons.txt @@ -0,0 +1,282 @@ +accessibility false +activate false +align false +appearance false +arc3 false +arc_center false +arc_slot false +arc_slot_center false +arc_tangent false +as_built false +assistant false +auto_constrain false +axis false +axis_edge false +axis_normal_to_face false +axis_through_cylinder false +axis_two_planes false +axis_two_points false +bendtable false +blend false +body false +bom false +boss false +boundary_fill false +bounding_solid false +box false +break false +bug_report false +c_coincident false +c_collinear false +c_concentric false +c_equal false +c_fix false +c_hv false +c_midpoint false +c_parallel false +c_perpendicular false +c_polygon false +c_smooth false +c_symmetry false +c_tangent false +cam false +camera false +canvas false +capture false +center_of_mass false +centerline false +chain false +chamfer false +checkpoint false +chevron false +chevron_right false +circle false +circle2 false +circle3 false +circle_tt false +circle_ttt false +close false +coil false +combine false +compare false +component false +compute false +configuration_table false +conic false +constrainer false +construction false +contact_all false +contact_new false +contact_off false +contact_sets false +continuity false +convert_sheet false +copy false +curvature_comb false +curvature_map false +cut false +cylinder false +decal false +delete false +delete_face false +dimension false +draft false +draft_analysis false +drive false +dxf false +edit false +ellipse false +emboss false +environment_map false +error false +explode false +export false +export_tray false +extend false +extrude false +eye false +fastener false +fillet false +finish false +fit false +fit_section false +flange false +flat false +fold false +folder false +gear false +graph false +ground false +help false +hem false +hole false +home false +import false +import_tray false +include false +infinite false +inspect false +interference false +intersect false +intersection_curve false +iso_analysis false +iso_curve false +joint false +joint_origin false +library false +line false +line_mid false +lip false +list false +loft false +lookat false +material false +measure false +mesh_export false +min_radius false +mirror false +motion_link false +move false +new false +normal false +offset false +offset_face false +offset_one_side false +offset_symmetric false +offset_two_sides false +open false +orbit false +origin false +pan false +params false +paste false +pattern_center false +pattern_circ false +pattern_flip false +pattern_path false +pattern_rect false +perforate false +perspective false +pipe false +plane false +plane_along_path false +plane_angle false +plane_midplane false +plane_perpendicular false +plane_tangent false +plane_three_points false +plane_two_edges false +plastic_assign false +plastic_rule false +play false +plus false +point false +point_along_path false +point_center false +point_edge_plane false +point_three_planes false +point_two_edges false +point_vertex false +polygon false +polygon_circumscribed false +polygon_edge false +presspull false +project false +project_surface false +rack_pinion false +reach false +rect false +rect3 false +rect_center false +rect_rounded false +redo false +refold false +rename false +render_image false +render_scene false +reorder false +replace_face false +rest false +restore false +revert false +revolve false +rib false +rigid_group false +rollback false +save false +scale false +screw false +section false +select false +settings false +sheet_rules false +shell false +silhouette false +sketch false +sketch_break false +sketch_chamfer false +sketch_chamfer_angle false +sketch_chamfer_equal false +sketch_chamfer_two false +sketch_chamfer_two_distances false +sketch_circ_pattern false +sketch_dxf false +sketch_fillet false +sketch_mirror false +sketch_move false +sketch_rect_pattern false +sketch_scale false +sketch_text false +slot false +slot_center false +slot_overall false +snap false +snap_fit false +sphere false +spin false +spline false +spline_cv false +split false +split_body false +split_face false +spun false +star false +status_error false +style false +suppress false +surface_blend false +surface_boundary false +surface_extend false +surface_extrude false +surface_fair false +surface_fillet false +surface_loft false +surface_offset false +surface_patch false +surface_reverse_normal false +surface_revolve false +surface_ruled false +surface_stitch false +surface_sweep false +surface_thicken false +surface_trim false +surface_unstitch false +surface_untrim false +svg false +sweep false +text false +thread false +torus false +trace false +trim false +undo false +unfold false +update false +warning false +web false +ws_animate false +ws_design false +ws_drawing false +ws_render false +zebra false +zoom false diff --git a/assets/icons/ui/design/review.json b/assets/icons/ui/design/review.json index e8381d42c..eb886ca08 100644 --- a/assets/icons/ui/design/review.json +++ b/assets/icons/ui/design/review.json @@ -4,6 +4,7 @@ "accessibility": "012aa26ece9ffa8bd6a850b7a19279c3675164b12438f5fbfe560e575c8fe2eb", "activate": "9d28c47dcb0b733095eadc840a30fa898a19f9cf9eee203496386546666cb1f8", "agent_chat": "4a9ae0e7e2c360b4858b3175674c93d096705c92318fecd481e849f3ae650bf4", + "agent_link": "2f20d89a0e3e9b28744910dddf7f282a1099ccd91aa160c9841c5b1d9ea9ed0f", "align": "05615db7dd9e4be56ae898e59a68c548b8a8447794442a9a394940651204bc4f", "appearance": "b3162edd92291a5ef402e8499cd52be05beb2fa7eda641163c3f6e98325de2bf", "arc3": "fdca3d501fd557ac989376a12e9c4fa8231fde2b455c20724d1079a466153e9c", @@ -12,10 +13,11 @@ "arc_slot_center": "ba93e773e06e948fcf3c6dab28df341c07d35c6a3afa33a840b261bb82bcf32b", "arc_tangent": "d6910c8d42878cc34617b96e26c3018f4a6e4e793443ac81f2c294f88d70fa28", "as_built": "0f481932deca5586a8a8ea3d707efca0747f5c59559d53830b694d3458531013", + "assistant": "8fac392b16b4f13c6a399c59962b97c1912282e0ec909976496959472f1d642d", "auto_constrain": "012e5da4ff83449f6a3a92ee2d9924998cbeea545281bdf97873710b7436183d", - "axis": "66ebabe43a7b1b73b59a3a03b7bd92ab54d899947d0cc2d93ad6e6aac4d76501", + "axis": "acdab0eb7b99b1579d64ae190082df48b65174e7b8ad3104967bcc59f6154206", "axis_edge": "5a65898bc38bdaaaf5b04f2c2f7556915b5b7b1fdc4de9708fcc30f64aa1ab18", - "axis_normal_to_face": "0824bb37e80928e9ac880af5ca5fdb3b52084af9e73db73a5a5a7bc8f1f899f7", + "axis_normal_to_face": "597b5b96ce787b70791133267108c5196aca09d5e3f94e7dc92199a63fe49ca6", "axis_through_cylinder": "804eb75631f4ee71ac8db51209237bb19d82bafd326abdc81b124b875c0874b4", "axis_two_planes": "80162aa79ca7baf6d60490414a4fb53d87e6f2b85e901c452875a5f3ed86d35a", "axis_two_points": "5064f7544ce41ae7c1f05a90c958222bbcee03723df67d34cd3e209d25a1f71f", @@ -28,36 +30,38 @@ "boundary_fill": "17ccb419a46c04a44ec864af968a32984dc81f6b3196a821bfff7f54141dfdd1", "bounding_solid": "e2deb6fff292f0f295022583ba7ddb86896eb79d9dd7268e653713b9c62f0580", "box": "72cd44c3c4fc5ae71242fca8c60af47371930201276df5b7db9d2f16a2739c31", - "break": "430582243311f304dbab397ce58c8c9aef9c78ed88d3e921a57e584ddb95d94c", + "break": "67a5fab332616e6d6a9aeae3bedc04ee0768179143ba34b795bdd98cea04bb24", "bug_report": "8cf7afbe0d3c34988fd2748de148f56a7e939fd8273ba01a79a976f879c74831", - "c_coincident": "32fb535b3dd7631dc2e9ea284f445ad54ea0e5c8b0e1bb27a9984c849746917d", + "c_coincident": "a93cc58acc5090c24c973cb558920bff4e35c8f99071135f16a115256d41bf98", "c_collinear": "3bcf1dc6b221a1fa9a4445ee8afc7d858dc28a5270d22d10fef86fa4997f1bdf", "c_concentric": "90e9b35b6186ea4fcb3debc24808f302c0bf7354b7afae86e339574ef8e5103a", "c_equal": "c0f50c02db7d15a6392d2178e28df5c100e67fab7732f8e8474b888d218d0673", - "c_fix": "b91c6af7ea9740efb8cf196409b11d16fad52c51b732a356e5f844bd4e2f08e0", + "c_fix": "23e2471a9d6872e83028e0e219e330cef1930a4d89456a0fefa1bda8a7e3eb81", "c_hv": "b5c44d60a4b03b9942fbcf3c706f797ce4dbddf9a67eb1c98d6aaf3234e9bc18", - "c_midpoint": "fd4efc26da1336f811a9016b02d7675af2a7c95cd1ffa2f091507b22434f5435", + "c_midpoint": "aaea530b8a04aa80efc99ed2cf42347a91c65b160286bae3e2882f5a0bd09a51", "c_parallel": "aaa80258502af091b596511662aca392546dd0d7bf69cec4db98b6e0ae7591f0", - "c_perpendicular": "692ba7a77cd77108c33c101386b60b7c957ce7d2202937d9696d18dcf3d4cf8e", - "c_polygon": "defac40b4c6ef323494f49acbb94b896502f78f6a99e750975693c602164a44b", - "c_smooth": "dccf5effdb8977ac04e6c437c280c83ed0f117d81b64c57fae03f5f7f7f2b9c0", + "c_perpendicular": "0ccf0383176ace2d4ab30c2efe853815ca1df20f2537020f369f496d8bf124b5", + "c_polygon": "02c76b288b42d6be8eb77f502af95bb840557f43fed3def2b1a381f6ac920375", + "c_smooth": "87aeb504aa330a191a8680d9eab3e86844f6d7be0a9caa10fdf0a657e76f45ee", "c_symmetry": "8646a7deb7447514bcc455562d8639f8b4c482df8c971fd2870c05965ce71f78", - "c_tangent": "a011f5d43d5e09f68de332c60c5acee737a3ebc94d107f521871225c3841a064", + "c_tangent": "ef8b1e502c2a939958b5e8de9ef2716442e32b2a394555eb7b51101c415b966e", "cam": "a35342e36ca4deae55e98c54df630b5c2da591c06d979eb2b8ce6a13f6db66d0", "camera": "fcd867877ea4984318dbff36a166b48682f26bb9d44e70383dde63d9a7ab87c8", "canvas": "512d7721f0b8b14a46f22b9588b437b0cd8c2c425330d31b3b156c0d1334bcef", "capture": "23ef84e50b45c06532b3e842b72f6da5498d0e6b8391e1bff55e84afa8359f37", "center_of_mass": "24401b1a19cb45ddb028de0acf3c9815b47abecbde9e133f473adac3d27ae346", - "centerline": "a1889b9092ef5a7aa9592df994b6541b53ea9afb03b2c56c7678a61df335f4d7", + "centerline": "850283497bad77e233f934e8effc0d0d7b01ccde83fa66f6abb539a33a8a2c80", "chain": "9cdc78486b5c4b5b2a378e09bbd41733eb167513f9f2bc4b1aad629dd6c4c753", "chamfer": "487c90ae65e87b74d7ddee7d9ce9f088b63e9b5b85c2a390364855a2649f17e8", "checkpoint": "a3bc0700a40b791b5f3bf176d820bdabd2cf94a526908609d50136c8d0918d6a", "chevron": "61887736af4b1e6bef857c4d2e3846657824e84f1c8026a56525ddba2d2a8083", + "chevron_right": "d28a52dcc51fd9eb988f8f83e89d74370a31100049c910a886732a48ec1342ca", "circle": "145544ff1cd133971f537dd247092126ef8d91a88fe31b795222e76840d0c4d0", "circle2": "f1b6e8e2157279cfe1e608f913b377e44a70f7555f5010298138de8a887bf586", "circle3": "aaf6b914e630688675abf4dcbf7d43096317881ced0e22520a4ef229013e0de2", "circle_tt": "94996320b671c8c48f239b8c48f1b2f1cd5cc33a7d8ea1daaa61aa9203803cae", "circle_ttt": "ac3c211a6fe17c3625060f695ecd93937730e2bc2dd57921bcbbcaa984b9badf", + "close": "5833954dfba3d70a9a3a7519f2796a7213899548b0345bd8fe8ea9a321d82be2", "coil": "4c549fd63506457165f53a7940cc0f3dcacdbe075e935ea299edbf4985104411", "combine": "f9d4211f0153779369c9da68b266c2c9a857d11bc033ff4a96ede794e470e38e", "compare": "c24b6c18f18413ae6f3344aaa6e04b42fae8b63e7cd1552a81398462eb68eb96", @@ -66,7 +70,7 @@ "configuration_table": "1a142e76b9e4cd47412a307cc0ad9b8c589bb97c8930fc445dd5bb8d74ecf707", "conic": "808445fd697ff76f9074e7bbf877146e634995c295dce045604991fa4cec26a0", "constrainer": "774cb158897eb91767541b5b1a25a46f3a731cbea0661006ce5472634ab6b0e3", - "construction": "ad962cbcd0aaef9167744abfd0bfe1d7ef55e48b4ff42f2b4b05f66204b58acb", + "construction": "f13e3851cdf7b30a7118802a1c17e8852fcb9893fd1d65c7098a5c3fc35c8396", "contact_all": "6ad4d245592815a3e38e70ae324ad3971ab614daba7ca3cf8fcb64cb8e2be077", "contact_new": "603410785fff408cc12dc72bef2f09885b694c5ddb2571c7819ae1301fb89dc6", "contact_off": "54dc3bd2267ebb084d8dc7efee85e9f21d8c59a57ad37b96d78095bc75e73fa0", @@ -81,8 +85,10 @@ "decal": "acc258e40b29ffb6b6007057f0b70f487995f573704c7ef4e4f08f209d52bddd", "delete": "d14203f06b8b1b87328e7f198c7aa41595e9a66b5d8a7fbd2a3ec2e35cd99afd", "delete_face": "dcbf8ab59bd37bd5a0cdd7a528b29c2d19daa5f3fc130ef5cff0c20034f061a4", - "dimension": "8246dde8b0a140d1f533c1e45f2e8b5af35c05d3504dccf50bd7e7726a93389e", - "dots": "aa38423c547594462f49cc355f3c9f5b41e28a7515f466a6a8cffda487ba1715", + "dimension": "a926b7c64bc8ca99d8d6dcbb81b95235bd3fc34fbed049aca8b01b4d1147c15d", + "disclosure_closed": "49a350c6f2efae78de0be96c524ebee1fd1291ea449a84224b88d37164a4e807", + "disclosure_open": "d13ce3f97e3e362a9904fa2bf3412f3f00e4136bc23538b92d41483961d280de", + "dots": "600f7ff209d93145fc938bc4f6a1e34473e6b9ee22a5b4718f133bc7da5ee58d", "draft": "9c0fc361cacd0ad95ccd54794f4825dfc9901a83a3de752a588faec365d0ee09", "draft_analysis": "eb39c0f90e9cf226da6307365a76015e900dd692dc3f0fdc8f02fe717226261f", "drive": "cf9e924acb2531efd5a1b90915d59f0cb532c844b754fd3a0e376ef6f706c47d", @@ -97,7 +103,7 @@ "export": "c8c2abf007e43e896479d78798e3976ba9eda809507c820bb38538f77db696ac", "extend": "28c63df352c77d02feffe44cf09fb0fc1d48f7905aaabbfa6dba601dbb70f8e8", "extrude": "9cc1538971c5d25467aaed23f739899d9d102fd07f86472ac3197c54ca2e1144", - "eye": "5d90a25f5d07e6e36a2a8faf5e2ed1425b2a787834ab2291b1b1c521057ec1c2", + "eye": "2449167c8410826dc1106b687c12a309d5bea8f7817b897943e80f182a163c2d", "fastener": "fcff4e4be50907f712e527b373771afafd92e50096fc7a4b8aba5d86448e1e42", "fillet": "11ec232dc111597211e3a4fe61b69616b5d28b4b1b2732052ddcd486cdfc6129", "filter": "4d456a56416089574bd3732fa44c0c1b27fd2478b369448808a27f0144d15d8a", @@ -109,15 +115,15 @@ "fold": "90344fb5e5799378117fbd79ef28a84f27fba5723af5414c4ea30a2ac3a4f21e", "folder": "c19f5230df45a1bda1e92e89de38bba21c91e6eca0517eb15847a7712012d1e5", "gear": "25a1ca48a587850da1104a46005a330873ed196246e3d04e12cf61f26ad2b0d5", - "graph": "25646bdf4d1a534c51e1897a8ae641a21f871ed70b24ff25652e1fe957c9fa00", - "ground": "b91c6af7ea9740efb8cf196409b11d16fad52c51b732a356e5f844bd4e2f08e0", + "graph": "7156caedd2dbfa2ae53da18b7a2204b8db66c45126859d36caf049a3fd4335a4", + "ground": "23e2471a9d6872e83028e0e219e330cef1930a4d89456a0fefa1bda8a7e3eb81", "help": "8ce4060577483dbdb510be147d2827de50ac20029354008fca55abc0c7edf05d", "hem": "f9b1aafbedcf3dc90c26be308814638e0095fbe31b0647092507343fa60af011", "hole": "f82d47751f826e08682db847a270897474661bfe9f35b6d3678f49a203172563", "home": "ab5f1c41d377687e4c5a808dfdccf2757b33dd43f934d44df43d6e9118176853", "import": "e343540eb49fdb1e53c4d54b9e60ae513b3103df6c9133048bed878e58067455", "include": "f5b80ad3e06e3b863fcfbe415ec912e4e09653dd519f9ac207819339fe34730f", - "infinite": "bff57a1c56d9b47131d7c8ff85f008a53c612c63706052e7e19d7aaea93cf5b1", + "infinite": "53fb781131078d2f8e71be23aa610d9f9d9c8bb79ba5f97fa397475e9ff8c3bd", "inspect": "d2b4644b2d5f1aa50cb576b9265e275fa91201e296c2bc79865f810067d538e9", "interference": "b3d729d0e822e8d95485c8ef50649847572def10d4c713fff0e073b8031c5f5d", "intersect": "9ab4f6551848a2be546f55502a77075bed2d3994f89d91b721eab92bcee61d61", @@ -125,7 +131,7 @@ "iso_analysis": "dacd34ac254ec4fbb6932350f62d4d92626d922a2bfc62d2caecdeb17303e896", "iso_curve": "015ff2e26346ccaf149f75cf6a0652d9201c1b23a14e6bb62625acfa599dc002", "joint": "72b71a608e713f6cf51a1cb84edb011d4ccbd8bfe41d917fa2a1d13345dc0b2b", - "joint_origin": "5b0761122eb4295ea220314e8db1efd1251e3482653d6cdcc47252d0268864a8", + "joint_origin": "e12529af1fce8c5ffdf746e71ce2f5db5eb170e53778469cea8fd30344291574", "library": "ac0b1798e4c94340f9c854daa3829371c1a9f3ffea7679d955e6cfa139cafdc8", "line": "cd1177ea659548f03d43c7fa7dcc209a0542b1ba4bd0153c5113576cb7a96a81", "line_mid": "edb8ebc463479ae9878e54b930c124153ca880270b7cf6c0e4edba6336ba2854", @@ -139,17 +145,20 @@ "min_radius": "92bd79b7d557aba6ddfccc76a4c6d0cfb579061b3c57172f9171d28af675711c", "mirror": "56637068a319dc2972c5552b25e4f43151aa9bd5055c2fef08204dd7cc0829cf", "moon": "3ba5adb92bf0f49e92d46682dbf6905e555aa6eebc8e2b3c5288f949cda29322", - "motion_link": "19698bbe15b7c2d2601208bbcdc26627d1aa7724aee017b7da8874ad87fb9d1f", + "motion_link": "27832f827146446557609336a9b9e48e649ed84e58c45bd9032a93abbd454104", "move": "4132e270ada8d0c79b477095c84d656d6d354e200c1748ce7fc425f36d0b7031", "nav_settings": "b93dd46d3a3d074e0d8834167f977dab417fbc1a721bc4db5e840732304e4193", "new": "c64c78fd8445bc7b2aa8765d0507b9adf23e35cbf52828d3f1987edccce0389f", - "normal": "1148cef2d60a858b69406a2e2527d4ea126f45846de7cc2fb3a96640e9ee226f", + "normal": "3c000d707837d4e9c865aefa43c1e610bfce5a06a38510f82e4db11fc13ab31f", "offset": "094607afcfdcb9c1410114d9f8d22ca367f8e32ab4c61f71affe44ad5d09adbe", "offset_face": "83d39308ec9f3ead78329c62841c8899bbc76ce08e17d539016d18c91d9d4ea7", + "offset_one_side": "094607afcfdcb9c1410114d9f8d22ca367f8e32ab4c61f71affe44ad5d09adbe", "offset_surface": "b501cfb56b8404cdb2275935d780ce7dbb67e87e29ade3782f0859c59070a2b1", + "offset_symmetric": "67f3489402af3afa055181bbdb2a32b9fe2e0d96dccbe0f28df087577978ac9c", + "offset_two_sides": "ef69f955c5bef15471e9d77a4498e9337bf938ad75dcbc1e95af2515b6fd13da", "open": "f1880d25489753f7e40390902037bbd3195fbd099a5e9dd175797d832abff727", "orbit": "4adcd400cdde909139386e78579433354f65f5a77a0594447bf6dda663b3b1b4", - "origin": "9b9360edc16ef9f059bff7d863f1bc0e3abac6acf559d76c4ea39dc374ab2844", + "origin": "636f9f41654a6da7a5a708bcddef85672f2d77bfec2267b0134e8c5a59768b40", "pan": "2465eda7a39d4458d7818f2eb2b033992a68f80d9505bff538b41eb4511bb632", "params": "d0d9d0b3e786880e59b985dc2e3a7d593cf3771484a8fd2924d69155195c230f", "paste": "e1b3c089adafacb6f7b78b86ec7aba0876b189c81d01031045dfee2c47ae8edc", @@ -164,22 +173,23 @@ "perspective": "5fa45ba9b75dbe9fdad9eae331ca7ff35c6ad018b8a1fc4c8ae7bcfc13ed0c3f", "pipe": "b9ecf1ae9f6790e2ae6c677f290446f70eba1773a10247fe33d5283b360b0403", "plane": "3e7fa0a9d57891f3c1ec03d7422bdb29353d3487deed12e8ec5737aeb33c2f3a", - "plane_along_path": "020e25969a7f4e7e3358003addee7df8b1991cde8401df0b4df8295b19497994", + "plane_along_path": "db4686ea02c3c3b8ad0d9eac203cc050c395cff6358358922a79c00e955e6852", "plane_angle": "2f0914955663b393a377fda080bc03dc5a2133d42c506c1908c53b2fd609b156", "plane_midplane": "66bd880821e7b122f130824313b7070d72d79168a52df6a126106b6eb5816474", - "plane_perpendicular": "90e1d9b8e75743821aa1082596d9c3f288ab3baddf087fbae3f2025481e58a6e", + "plane_perpendicular": "0055fb18ee39044bfc9f2ac53ba55fe73d8fe59e8f4cf225ee2c723a883d3085", "plane_tangent": "c3872b9f1d0f0b2493a5488dfdad50049c3422c29023250088eeda9bbcc6e795", "plane_three_points": "08e2dbaf606d165ef4f788869fc794a4fbbbb2ee86a60017b76e467af6da338a", - "plane_two_edges": "1588b8d4741382d9e8fec38212419ac1c05b1bc6036f276d3b5c62db66f8ebdb", + "plane_two_edges": "21de401ec5bab8ae37510da6fa0a6910325f858c17460da0041fd26897338d30", "plastic_assign": "bbfdb2d2c07629c047e8e671c7c032654668a67b4b8a934f74cbb3d7a00cc5fe", "plastic_rule": "51b8591d92907a3ffb76a47a0503d7ba86706d129dd990515a364dbf1ab8cb48", "play": "d1c17ebc16e9a4ee5ae2a8cc37b515ffcc8c53a2ab17117959e9b21278df8def", + "plus": "4f324157bb2348ac9f09346b669b08d66ed96cb1c694f33db6f21134f18904b5", "point": "fd19dbcd26e2a898267bab54b9d89779d97894209c1771317d7debef5a6f8f5d", - "point_along_path": "1fd58d45285fb5cabeddbd35bc8485af1b6d7f1414e302202b4e73de593d1b7a", + "point_along_path": "17abd16dec5f70e9f8449c927aa995cfed10fca552ec7cd8f51b209c52012595", "point_center": "0ad755896f7d0154a854bda16d3059da78d1fae57962e13a3bb1b31e284b7e79", - "point_edge_plane": "548a6c1c944caabe44ab0318e85ae82f39c11f74fbedda35f57bc6615755f249", + "point_edge_plane": "a277bc0b87f2dd39eb613835d0f961b3372483e22053e6a522a06c535ad530c4", "point_three_planes": "b33c7508ffa67b66a57b72c6ea7900e93ff16362a29d0b2688e0b1db9bfad041", - "point_two_edges": "35dcb67b36c8e41041cc836b01056731ab6f14c5e3b4bdd836fbee2a1dd897e3", + "point_two_edges": "da329241706e405b877cec20639dc0a78505ca7212c7c47ad1f1f34aa26f4666", "point_vertex": "649bb63caf65a3fbc00a1222cc642294832b5e5d8c4d33f812e09a70684c4abe", "polygon": "4919268cca7d21ce98dbf4ca01ee832350e793afe4213e257d3c46e94ea88ad1", "polygon_circumscribed": "7e4ad16cc1f42c599287b186f26f4ff3c108736877a571a5513bfc72d0cbb23f", @@ -213,17 +223,19 @@ "scale": "a66f69d9a1d46c8be30da0a15827bc7e38cba72d6271537763b888c2c7e2b3fa", "screw": "5e30570785360d6a591ea22862a82f1cf62228385c1e96382536db8a453ac791", "section": "cdd13f99f15f6d59bfa21c747810608d6afd00cb8207faf0337928c8521e7eae", - "select": "a0c716234ef1d599be9a7654d6b2911ebe4b2de479383ba33aeab14992443a2f", + "select": "fdf6431270006ca7409c60c37cfed59572de04229f104ec723e6010ffa2b7163", "settings": "9193dd3a1007c43660d0d47b6499cb2571338b67949e1a99df112057b9bf2b8a", "sheet": "774e30923ef6f37dd9c0b2bc3e45705e83b3a76700bf071cd41155a365d0daa4", - "sheet_rules": "b8c3a67c82be20fc00c109decc566e8755d70167e04e0a9fb92941f7b27aa993", + "sheet_rules": "5d3a2f37d3b4a4262b3ddbdae53d61f29e0f8e284dd54006da25a7acebfa1114", "shell": "a1959ea0d0441a479bf654b6e549e2e44a0bfdc9cda4eb46fe1fbfd884de7e38", "silhouette": "2a848aed2f247b1c0439f830a34a513c93bc5493c40044c821d493d863ad996e", "sketch": "b52e5862b1709a9a7e3ca00d7436d126fbfc01b38080006fa4e17dc581dfa103", - "sketch_break": "430582243311f304dbab397ce58c8c9aef9c78ed88d3e921a57e584ddb95d94c", + "sketch_break": "67a5fab332616e6d6a9aeae3bedc04ee0768179143ba34b795bdd98cea04bb24", "sketch_chamfer": "80ab27a9929f9cf0ab2f827757e007173d74ddca6c19af238931c40d4cd874b4", - "sketch_chamfer_angle": "b853f5e7c3b008c0d56ac445a9a28f713987c919ea284945113ad35e7665e2a7", - "sketch_chamfer_two_distances": "2b70d658e341f4388838f3c8c579ec5f4f3a7fddcfa2ce7a3f89fc3db6422d6e", + "sketch_chamfer_angle": "6750268d05e0b0fd74c2d0368bf4703b09da825def668dc3dfd05deef3ba9adb", + "sketch_chamfer_equal": "80ab27a9929f9cf0ab2f827757e007173d74ddca6c19af238931c40d4cd874b4", + "sketch_chamfer_two": "1f5ecf1283e2b021e067ed2e4e2e97aa4e1ad3c7c98d8609bb81c5f811988f78", + "sketch_chamfer_two_distances": "1f5ecf1283e2b021e067ed2e4e2e97aa4e1ad3c7c98d8609bb81c5f811988f78", "sketch_circ_pattern": "c5ff904237a3072f858f66c2777febc4facd2fee630bbf979047c5685d9a05ce", "sketch_dxf": "dddce44d4dd10f75a221208fcf431b36b3f0cafce6611fc695ac73afb4bf5789", "sketch_fillet": "e8fa170e5f6899abf75788b9384d49f2b9d77ba9b644f79309284a9e65629fe1", @@ -241,6 +253,7 @@ "spin": "a5bebeff8276dd12ab7e42ddf0051370b9063fb602607298acf22e77044434d1", "spline": "a0dcb25614e5fe1a8f17bc3bddbb11b61cf82b461dd46443ab28cddd6e4e32e3", "spline_cv": "353f6e411c0ce611f660cef2e4fc4f8f55edc2c82288de91948dc638cd2b5f15", + "split": "eb9619e74c6ee1b1989d35a2e31d2d33a7adac210c4cd424e5382902945ac68b", "split_body": "eb9619e74c6ee1b1989d35a2e31d2d33a7adac210c4cd424e5382902945ac68b", "split_face": "c8b89072118bb7a28b243d38e26b81a796781a631f30b3b1fc296ba23e4d908d", "spun": "b4cfa093ffb43611ee124f4a39fb44c609deb9cde5e05e4dfbaf893fe197c27b", @@ -249,7 +262,7 @@ "status_warning": "1ac4f0ccfac2c01f6f66cb42188f9ae053c4aef9c5bbd249f1fb09611eb4d825", "stitch": "6c3205d64007b771ed78d6f8055867578439fb25d591563b32dbd3343c98732d", "style": "6c2b04234b82ea4858c80190cc7208c60f549358253005afc35ab4e29506b578", - "suppress": "6c033a6672a3b6ca926e3d7a75a758c9db7e1144210cd360be043a9fdf999ede", + "suppress": "c54fbc01c12c0175d78cd63f692e8aaf73fc2cac79752b2a3ad821ac32734343", "surface": "ba0e839ce0ee03e7ff95a2389a5ecb20bd80c713064d9b1bd5f461f4a80d1921", "surface_blend": "0642f3b4af7d22f379a3c74f54c7b1c9eef0bdda19372ce4df73c0e56bdd7bbc", "surface_boundary": "fb8501bae192e2416118cc2e88f544e0e29197f6720bccc541c967ca0848d8d3", @@ -265,14 +278,14 @@ "surface_ruled": "c3f0202d3beaacef0368765ce771eb9e3b0e3e157f86564c72d81f0fad9a3cab", "surface_stitch": "6c3205d64007b771ed78d6f8055867578439fb25d591563b32dbd3343c98732d", "surface_sweep": "6d7f18c12b2e4c1dbe3632fe08239687f6f027b29b6dddbf8c8e2d9151c7baf3", - "surface_thicken": "676eb73a99d708214e8951ebe2c4d88d60de2d752c725d8106d12fbd812e461a", + "surface_thicken": "35aaa8e4fdbcd220a3a05165d5230a7ce576fbf5a6a5772d27162ab61bb71538", "surface_trim": "ae269721b386bd1264184b9838df3240b5b6ba02b99c9993384ef21200fb7398", "surface_unstitch": "bd8302fe95a89eb6f9bbf35ef0ee98c8a2186e160cff3d091f8cf2a0a75d4473", "surface_untrim": "24de5d558519e0629280d11919ba5661c92ccdccdce03f8f3d83f2d7867c2173", "svg": "7da77d53c84db18ce95737ad633c105d1009444b3192a5e0aae76873cfc9cc12", "sweep": "6d7f18c12b2e4c1dbe3632fe08239687f6f027b29b6dddbf8c8e2d9151c7baf3", "text": "9d31b72b16644681c8a86ac257511847ad69ce4351cf6960442222e94b168c4a", - "thicken": "676eb73a99d708214e8951ebe2c4d88d60de2d752c725d8106d12fbd812e461a", + "thicken": "35aaa8e4fdbcd220a3a05165d5230a7ce576fbf5a6a5772d27162ab61bb71538", "thread": "158728c3dcf6623bb1584d162398bb12c28d18770e0d47f5e6328355ce31b37c", "torus": "5ae13fc213582e0844118b910a3a26efd9e4b177d21500363fbae230803cb4fd", "trace": "5f2ecc61d4591d3c3b0ecccd35296b8613fce7beb2ae214fb906160c31d89187", @@ -284,7 +297,7 @@ "update": "c675e16df4c78589a00be4a34f98627500681672ee8a668e929aec50982da3cc", "warning": "1ac4f0ccfac2c01f6f66cb42188f9ae053c4aef9c5bbd249f1fb09611eb4d825", "web": "be5cd95bebcd0ebe257f9eb862112124429b381ef4a2f0849938fac7c9ccc619", - "ws_animate": "d36a0834ad989a6e16e2b0db493ad8867c590caedf0442c51eff19e934c887f8", + "ws_animate": "f34f187850789cc4f141b1ace114082be04edec8e7771d6730fec1cef19c7f64", "ws_design": "7b1dd678a2d018892b965a78932c047bbfff6b4439d7bd9fe85c09a995f97581", "ws_drawing": "61e99c7179f3448a31b8c76392334352ec3d5e39b0b92fe5244940146d0986cb", "ws_render": "1bfe474d1742623ad2142129e4d6a40015e674813eb1db401d2e88e55b1f2a03", @@ -292,6 +305,9 @@ "zoom": "89c121fa85df034d70bd9f06e20cbd54d163691d4df03b13a9ac5372e951aeda" }, "notes": { - "pattern_flip": "This feels sparse. Improve the composition" + "construction": "Fix the bottom dot's position", + "infinite": "Make the infinity symbol use the 'Line art' colour", + "pattern_flip": "This feels sparse. Improve the composition", + "sheet_rules": "Make the top line also blue" } } diff --git a/assets/icons/ui/design/svg/flat/agent_link.svg b/assets/icons/ui/design/svg/flat/agent_link.svg new file mode 100644 index 000000000..ff496e985 --- /dev/null +++ b/assets/icons/ui/design/svg/flat/agent_link.svg @@ -0,0 +1,6 @@ + + Connected agent + + + + diff --git a/assets/icons/ui/design/svg/flat/assistant.svg b/assets/icons/ui/design/svg/flat/assistant.svg new file mode 100644 index 000000000..ccbfcd03f --- /dev/null +++ b/assets/icons/ui/design/svg/flat/assistant.svg @@ -0,0 +1,11 @@ + + Assistant + + + + + + + + + diff --git a/assets/icons/ui/design/svg/flat/chevron_right.svg b/assets/icons/ui/design/svg/flat/chevron_right.svg new file mode 100644 index 000000000..e07c0d022 --- /dev/null +++ b/assets/icons/ui/design/svg/flat/chevron_right.svg @@ -0,0 +1,4 @@ + + Chevron right + + diff --git a/assets/icons/ui/design/svg/flat/close.svg b/assets/icons/ui/design/svg/flat/close.svg new file mode 100644 index 000000000..b2278302f --- /dev/null +++ b/assets/icons/ui/design/svg/flat/close.svg @@ -0,0 +1,4 @@ + + Close + + diff --git a/assets/icons/ui/design/svg/flat/disclosure_closed.svg b/assets/icons/ui/design/svg/flat/disclosure_closed.svg new file mode 100644 index 000000000..33f723348 --- /dev/null +++ b/assets/icons/ui/design/svg/flat/disclosure_closed.svg @@ -0,0 +1,4 @@ + + Disclosure closed + + diff --git a/assets/icons/ui/design/svg/flat/disclosure_open.svg b/assets/icons/ui/design/svg/flat/disclosure_open.svg new file mode 100644 index 000000000..ce48c1db7 --- /dev/null +++ b/assets/icons/ui/design/svg/flat/disclosure_open.svg @@ -0,0 +1,4 @@ + + Disclosure open + + diff --git a/assets/icons/ui/design/svg/flat/export_tray.svg b/assets/icons/ui/design/svg/flat/export_tray.svg new file mode 100644 index 000000000..f37257fc5 --- /dev/null +++ b/assets/icons/ui/design/svg/flat/export_tray.svg @@ -0,0 +1,4 @@ + + Export Tray + + diff --git a/assets/icons/ui/design/svg/flat/eye.svg b/assets/icons/ui/design/svg/flat/eye.svg new file mode 100644 index 000000000..4f6920ad4 --- /dev/null +++ b/assets/icons/ui/design/svg/flat/eye.svg @@ -0,0 +1,5 @@ + + Eye + + + diff --git a/assets/icons/ui/design/svg/flat/import_tray.svg b/assets/icons/ui/design/svg/flat/import_tray.svg new file mode 100644 index 000000000..474cab3ff --- /dev/null +++ b/assets/icons/ui/design/svg/flat/import_tray.svg @@ -0,0 +1,4 @@ + + Import Tray + + diff --git a/assets/icons/ui/design/svg/flat/plus.svg b/assets/icons/ui/design/svg/flat/plus.svg new file mode 100644 index 000000000..ff70459a2 --- /dev/null +++ b/assets/icons/ui/design/svg/flat/plus.svg @@ -0,0 +1,4 @@ + + Plus + + diff --git a/assets/icons/ui/design/svg/flat/suppress.svg b/assets/icons/ui/design/svg/flat/suppress.svg new file mode 100644 index 000000000..3a7b16857 --- /dev/null +++ b/assets/icons/ui/design/svg/flat/suppress.svg @@ -0,0 +1,12 @@ + + Suppress + + + + + + + + + + diff --git a/assets/icons/ui/design/svg/model/axis.svg b/assets/icons/ui/design/svg/model/axis.svg index 79434aeb9..6090eb91f 100644 --- a/assets/icons/ui/design/svg/model/axis.svg +++ b/assets/icons/ui/design/svg/model/axis.svg @@ -4,5 +4,5 @@ - + diff --git a/assets/icons/ui/design/svg/model/axis_normal_to_face.svg b/assets/icons/ui/design/svg/model/axis_normal_to_face.svg index efddcd567..aa60b7a8d 100644 --- a/assets/icons/ui/design/svg/model/axis_normal_to_face.svg +++ b/assets/icons/ui/design/svg/model/axis_normal_to_face.svg @@ -6,5 +6,5 @@ - + diff --git a/assets/icons/ui/design/svg/model/break.svg b/assets/icons/ui/design/svg/model/break.svg index 614bed30d..43d5f0a88 100644 --- a/assets/icons/ui/design/svg/model/break.svg +++ b/assets/icons/ui/design/svg/model/break.svg @@ -3,5 +3,5 @@ - + diff --git a/assets/icons/ui/design/svg/model/c_coincident.svg b/assets/icons/ui/design/svg/model/c_coincident.svg index 01bc385e4..23712c129 100644 --- a/assets/icons/ui/design/svg/model/c_coincident.svg +++ b/assets/icons/ui/design/svg/model/c_coincident.svg @@ -1,6 +1,6 @@ Coincident - - + + diff --git a/assets/icons/ui/design/svg/model/c_fix.svg b/assets/icons/ui/design/svg/model/c_fix.svg index 7de87c238..fce9b3ce3 100644 --- a/assets/icons/ui/design/svg/model/c_fix.svg +++ b/assets/icons/ui/design/svg/model/c_fix.svg @@ -2,5 +2,5 @@ Fixed - + diff --git a/assets/icons/ui/design/svg/model/c_midpoint.svg b/assets/icons/ui/design/svg/model/c_midpoint.svg index e2a504a6e..37e098982 100644 --- a/assets/icons/ui/design/svg/model/c_midpoint.svg +++ b/assets/icons/ui/design/svg/model/c_midpoint.svg @@ -1,6 +1,6 @@ Midpoint - + diff --git a/assets/icons/ui/design/svg/model/c_perpendicular.svg b/assets/icons/ui/design/svg/model/c_perpendicular.svg index 56bfc50ce..8b7280e04 100644 --- a/assets/icons/ui/design/svg/model/c_perpendicular.svg +++ b/assets/icons/ui/design/svg/model/c_perpendicular.svg @@ -2,5 +2,5 @@ Perpendicular - + diff --git a/assets/icons/ui/design/svg/model/c_polygon.svg b/assets/icons/ui/design/svg/model/c_polygon.svg index 918d59de2..fa36be406 100644 --- a/assets/icons/ui/design/svg/model/c_polygon.svg +++ b/assets/icons/ui/design/svg/model/c_polygon.svg @@ -1,6 +1,6 @@ Regular polygon - - + + diff --git a/assets/icons/ui/design/svg/model/c_smooth.svg b/assets/icons/ui/design/svg/model/c_smooth.svg index 972a625e2..999f01d21 100644 --- a/assets/icons/ui/design/svg/model/c_smooth.svg +++ b/assets/icons/ui/design/svg/model/c_smooth.svg @@ -1,6 +1,6 @@ Curvature - + - + diff --git a/assets/icons/ui/design/svg/model/c_tangent.svg b/assets/icons/ui/design/svg/model/c_tangent.svg index 896566029..5bd8392e8 100644 --- a/assets/icons/ui/design/svg/model/c_tangent.svg +++ b/assets/icons/ui/design/svg/model/c_tangent.svg @@ -1,5 +1,5 @@ Tangent - + diff --git a/assets/icons/ui/design/svg/model/centerline.svg b/assets/icons/ui/design/svg/model/centerline.svg index d839cff64..bd1b7b06d 100644 --- a/assets/icons/ui/design/svg/model/centerline.svg +++ b/assets/icons/ui/design/svg/model/centerline.svg @@ -1,9 +1,9 @@ Centerline - + - - - - + + + + diff --git a/assets/icons/ui/design/svg/model/construction.svg b/assets/icons/ui/design/svg/model/construction.svg index 76d509885..bae8ebc36 100644 --- a/assets/icons/ui/design/svg/model/construction.svg +++ b/assets/icons/ui/design/svg/model/construction.svg @@ -1,7 +1,6 @@ Construction - - - - + + + diff --git a/assets/icons/ui/design/svg/model/dimension.svg b/assets/icons/ui/design/svg/model/dimension.svg index fb51381db..a54f43b82 100644 --- a/assets/icons/ui/design/svg/model/dimension.svg +++ b/assets/icons/ui/design/svg/model/dimension.svg @@ -1,6 +1,6 @@ Dimension - + diff --git a/assets/icons/ui/design/svg/model/dots.svg b/assets/icons/ui/design/svg/model/dots.svg index 0aa05f310..3e8f0a136 100644 --- a/assets/icons/ui/design/svg/model/dots.svg +++ b/assets/icons/ui/design/svg/model/dots.svg @@ -1,6 +1,6 @@ More - - - + + + diff --git a/assets/icons/ui/design/svg/model/eye.svg b/assets/icons/ui/design/svg/model/eye.svg deleted file mode 100644 index a7cc82f28..000000000 --- a/assets/icons/ui/design/svg/model/eye.svg +++ /dev/null @@ -1,8 +0,0 @@ - - Eye - - - - - - diff --git a/assets/icons/ui/design/svg/model/graph.svg b/assets/icons/ui/design/svg/model/graph.svg index 215ce7553..2de6c208f 100644 --- a/assets/icons/ui/design/svg/model/graph.svg +++ b/assets/icons/ui/design/svg/model/graph.svg @@ -1,6 +1,6 @@ Dependency graph - + diff --git a/assets/icons/ui/design/svg/model/infinite.svg b/assets/icons/ui/design/svg/model/infinite.svg index 55bca1e95..20619d8d7 100644 --- a/assets/icons/ui/design/svg/model/infinite.svg +++ b/assets/icons/ui/design/svg/model/infinite.svg @@ -1,9 +1,9 @@ Infinite line - - - - + + + + - + diff --git a/assets/icons/ui/design/svg/model/joint_origin.svg b/assets/icons/ui/design/svg/model/joint_origin.svg index aa8114d0c..24799a9ef 100644 --- a/assets/icons/ui/design/svg/model/joint_origin.svg +++ b/assets/icons/ui/design/svg/model/joint_origin.svg @@ -13,5 +13,5 @@ - + diff --git a/assets/icons/ui/design/svg/model/motion_link.svg b/assets/icons/ui/design/svg/model/motion_link.svg index 5fa9c6266..e48e5eaa0 100644 --- a/assets/icons/ui/design/svg/model/motion_link.svg +++ b/assets/icons/ui/design/svg/model/motion_link.svg @@ -14,6 +14,6 @@ - - + + diff --git a/assets/icons/ui/design/svg/model/normal.svg b/assets/icons/ui/design/svg/model/normal.svg index 97f3d7fb1..84d15407e 100644 --- a/assets/icons/ui/design/svg/model/normal.svg +++ b/assets/icons/ui/design/svg/model/normal.svg @@ -1,4 +1,4 @@ Normal line - + diff --git a/assets/icons/ui/design/svg/model/offset_symmetric.svg b/assets/icons/ui/design/svg/model/offset_symmetric.svg new file mode 100644 index 000000000..e767ce99d --- /dev/null +++ b/assets/icons/ui/design/svg/model/offset_symmetric.svg @@ -0,0 +1,6 @@ + + Symmetric offset + + + + diff --git a/assets/icons/ui/design/svg/model/offset_two_sides.svg b/assets/icons/ui/design/svg/model/offset_two_sides.svg new file mode 100644 index 000000000..75f9555ee --- /dev/null +++ b/assets/icons/ui/design/svg/model/offset_two_sides.svg @@ -0,0 +1,6 @@ + + Two independent offset sides + + + + diff --git a/assets/icons/ui/design/svg/model/origin.svg b/assets/icons/ui/design/svg/model/origin.svg index 1379189ce..23af9e99f 100644 --- a/assets/icons/ui/design/svg/model/origin.svg +++ b/assets/icons/ui/design/svg/model/origin.svg @@ -2,10 +2,10 @@ Origin - - - - + + + + diff --git a/assets/icons/ui/design/svg/model/plane_along_path.svg b/assets/icons/ui/design/svg/model/plane_along_path.svg index 193935e43..36ea58973 100644 --- a/assets/icons/ui/design/svg/model/plane_along_path.svg +++ b/assets/icons/ui/design/svg/model/plane_along_path.svg @@ -1,6 +1,6 @@ Plane along path - + - + diff --git a/assets/icons/ui/design/svg/model/plane_perpendicular.svg b/assets/icons/ui/design/svg/model/plane_perpendicular.svg index d205e87da..1e9abb9f6 100644 --- a/assets/icons/ui/design/svg/model/plane_perpendicular.svg +++ b/assets/icons/ui/design/svg/model/plane_perpendicular.svg @@ -3,5 +3,5 @@ - + diff --git a/assets/icons/ui/design/svg/model/plane_two_edges.svg b/assets/icons/ui/design/svg/model/plane_two_edges.svg index 89e80fe6d..cd6c34b9d 100644 --- a/assets/icons/ui/design/svg/model/plane_two_edges.svg +++ b/assets/icons/ui/design/svg/model/plane_two_edges.svg @@ -1,6 +1,6 @@ Plane through two edges - - + + diff --git a/assets/icons/ui/design/svg/model/point_along_path.svg b/assets/icons/ui/design/svg/model/point_along_path.svg index 37b4bd66a..53acd98e4 100644 --- a/assets/icons/ui/design/svg/model/point_along_path.svg +++ b/assets/icons/ui/design/svg/model/point_along_path.svg @@ -1,6 +1,6 @@ Point along path - + diff --git a/assets/icons/ui/design/svg/model/point_edge_plane.svg b/assets/icons/ui/design/svg/model/point_edge_plane.svg index 8b8b93035..ec94d02ec 100644 --- a/assets/icons/ui/design/svg/model/point_edge_plane.svg +++ b/assets/icons/ui/design/svg/model/point_edge_plane.svg @@ -1,9 +1,9 @@ Point at edge and plane - + - + diff --git a/assets/icons/ui/design/svg/model/point_two_edges.svg b/assets/icons/ui/design/svg/model/point_two_edges.svg index b4844e884..9f81d196f 100644 --- a/assets/icons/ui/design/svg/model/point_two_edges.svg +++ b/assets/icons/ui/design/svg/model/point_two_edges.svg @@ -1,6 +1,6 @@ Point through two edges - + diff --git a/assets/icons/ui/design/svg/model/select.svg b/assets/icons/ui/design/svg/model/select.svg index 461b436e7..b9528a63d 100644 --- a/assets/icons/ui/design/svg/model/select.svg +++ b/assets/icons/ui/design/svg/model/select.svg @@ -1,4 +1,4 @@ Select - + diff --git a/assets/icons/ui/design/svg/model/sheet_rules.svg b/assets/icons/ui/design/svg/model/sheet_rules.svg index bc7391993..b72d7bce3 100644 --- a/assets/icons/ui/design/svg/model/sheet_rules.svg +++ b/assets/icons/ui/design/svg/model/sheet_rules.svg @@ -6,7 +6,7 @@ - + diff --git a/assets/icons/ui/design/svg/model/sketch_chamfer_angle.svg b/assets/icons/ui/design/svg/model/sketch_chamfer_angle.svg index bcebd81af..b38ccb1df 100644 --- a/assets/icons/ui/design/svg/model/sketch_chamfer_angle.svg +++ b/assets/icons/ui/design/svg/model/sketch_chamfer_angle.svg @@ -2,7 +2,7 @@ Distance and angle sketch chamfer - + diff --git a/assets/icons/ui/design/svg/model/sketch_chamfer_two_distances.svg b/assets/icons/ui/design/svg/model/sketch_chamfer_two_distances.svg index 323fbd9ea..76d5f717c 100644 --- a/assets/icons/ui/design/svg/model/sketch_chamfer_two_distances.svg +++ b/assets/icons/ui/design/svg/model/sketch_chamfer_two_distances.svg @@ -2,7 +2,7 @@ Two distance sketch chamfer - + diff --git a/assets/icons/ui/design/svg/model/suppress.svg b/assets/icons/ui/design/svg/model/suppress.svg deleted file mode 100644 index 9d369a54c..000000000 --- a/assets/icons/ui/design/svg/model/suppress.svg +++ /dev/null @@ -1,8 +0,0 @@ - - Suppress - - - - - - diff --git a/assets/icons/ui/design/svg/model/thicken.svg b/assets/icons/ui/design/svg/model/thicken.svg index e72ea9e49..089485534 100644 --- a/assets/icons/ui/design/svg/model/thicken.svg +++ b/assets/icons/ui/design/svg/model/thicken.svg @@ -2,8 +2,8 @@ Thicken - - + + @@ -11,9 +11,9 @@ - + - - + + diff --git a/assets/icons/ui/design/svg/workspace/ws_animate.svg b/assets/icons/ui/design/svg/workspace/ws_animate.svg index d53cfbb81..048485c9c 100644 --- a/assets/icons/ui/design/svg/workspace/ws_animate.svg +++ b/assets/icons/ui/design/svg/workspace/ws_animate.svg @@ -1,9 +1,9 @@ Animate workspace - + - + diff --git a/assets/icons/ui/design/tools/icon_status.py b/assets/icons/ui/design/tools/icon_status.py index f0c9fbaab..74a3ad658 100644 --- a/assets/icons/ui/design/tools/icon_status.py +++ b/assets/icons/ui/design/tools/icon_status.py @@ -9,7 +9,7 @@ --out FILE Self-contained static review page (default target/icon-status.html) Read assets/icons/ui/STYLE_GUIDE.md before editing artwork. SVGs are authoritative. -Every discovered non-final icon is Open; no inventory file controls discovery. +Every discovered non-final icon is Open; artwork, source and runtime requests are discovery sources. """ import sys, os, re, glob, html, json, hashlib, collections, tomllib, uuid, datetime @@ -36,6 +36,7 @@ def art_rev(): paths += glob.glob(ROOT + '/crates/ui-egui/src/**/*.rs', recursive=True) paths += glob.glob(HERE + '/*.py') paths += [D + '/palette.toml', D + '/aliases.toml', __file__] + paths += glob.glob(D + '/requested_icons.txt') for path in sorted(paths): # Equal-length edits can share an mtime. Only the content identifies what # the reviewer saw; file metadata must never authorize stale acceptance. @@ -56,8 +57,31 @@ def ui_icon_names(source): if icon: names.add(icon.group(1)) for table in re.finditer(r'for\s*\(i,\s*\(label,\s*icon,\s*tip\)\)\s*in\s*\[(.*?)\]\s*\.iter\(', source, re.S): names.update(re.findall(r'\("[^"]*",\s*"([a-z][a-z0-9_]*)",\s*"[^"]*"\)', table.group(1))) + # System-window wrappers and declarative page lists own their icon arguments. + for call in re.finditer(r'\b(?:Window|Confirm)::new\([^;]*?,\s*"([a-z][a-z0-9_]*)"\s*,', source, re.S): + names.add(call.group(1)) + for page in re.finditer(r'\bWindowPage\s*\{[^}]*?\bicon:\s*"([a-z][a-z0-9_]*)"', source, re.S): + names.add(page.group(1)) return names +def requested_icons(): + """Runtime ids recorded by the Harness audit; flags describe its last actual render.""" + path = os.path.join(D, 'requested_icons.txt') + if not os.path.exists(path): + return {} + requested = {} + with open(path, encoding='utf-8') as manifest: + for number, line in enumerate(manifest, 1): + if not line.strip() or line.startswith('#'): + continue + fields = line.strip().split('\t') + if len(fields) != 2 or not re.fullmatch(r'[a-z][a-z0-9_]*', fields[0]) or fields[1] not in ('true', 'false'): + raise ValueError(f'{path}:{number}: expected icon_idtrue|false') + if fields[0] in requested: + raise ValueError(f'{path}:{number}: duplicate requested icon {fields[0]}') + requested[fields[0]] = fields[1] == 'true' + return requested + def scan(): """Everything derived from the repo: rows, summary.""" pal = tomllib.load(open(D + '/palette.toml', 'rb')) @@ -86,6 +110,9 @@ def scan(): t = open(f, encoding='utf-8').read() for name in ui_icon_names(t): uses[name].append('ui:' + os.path.relpath(f, ROOT + '/crates/ui-egui/src').replace(os.sep, '/')) + runtime = requested_icons() + for name in runtime: + uses[name].append('ui:runtime audit') mk = ROOT + '/assets/icons/ui/source/markers.rs' if os.path.exists(mk): for name in re.findall(r'=> "(c_[a-z_]+)"', open(mk, encoding='utf-8').read()): uses[name].append('ui:sketch constraint glyph') @@ -95,7 +122,7 @@ def scan(): rows = [] for n in sorted(set(uses) | set(masters) | set(alias_raw)): m, acc = alias_of(n) - if m in masters and n != 'placeholder': status = 'done' + if m in masters and n != 'placeholder' and not runtime.get(n, False): status = 'done' else: status, m = 'placeholder', 'placeholder' cmds = [u for u in uses.get(n, []) if not u.startswith('ui:')] rows.append(dict(id=n, status=status, master=m, accent=acc, commands=len(cmds), example=cmds[0] if cmds else '', diff --git a/assets/icons/ui/design/tools/lint_icons.py b/assets/icons/ui/design/tools/lint_icons.py index 6c7fe532c..fd95ad704 100644 --- a/assets/icons/ui/design/tools/lint_icons.py +++ b/assets/icons/ui/design/tools/lint_icons.py @@ -15,7 +15,7 @@ files = sorted(glob.glob(d + '/svg/*/*.svg')) for path in Path(d).rglob('*'): if not path.is_file(): continue rel = path.relative_to(d).as_posix() - allowed = (rel in {'palette.toml', 'aliases.toml', 'review.json', 'references.toml'} + allowed = (rel in {'palette.toml', 'aliases.toml', 'review.json', 'references.toml', 'requested_icons.txt'} or path.suffix == '.md' or (rel.startswith('svg/') and path.suffix == '.svg') or (path.parent in {Path(d) / 'tools', Path(d) / 'tools/author'} and path.suffix == '.py') @@ -79,6 +79,36 @@ if os.path.exists(references): if name not in names and name not in al: err(references, name + ': reference artwork is missing') for message in icon_palette.validation_errors(pal, names | set(al)): err(d + '/palette.toml', message) +# the review page lies its icons on the real app surfaces: its colours must be the app's tokens +def app_tokens(): + src = open(os.path.join(d, '..', '..', '..', 'styles', 'ui', 'palettes.rs'), encoding='utf-8').read() + lo, hi = src.index('pub const fn light'), src.index('pub const fn dark') + light_src, dark_src = src[lo:hi], src[hi:] + def pick(block, name, dark): + pat = (r'\bt\.%s = Color32::from_rgb\((\d+), (\d+), (\d+)\)' if dark else r'\b%s: Color32::from_rgb\((\d+), (\d+), (\d+)\)') % name + m = re.search(pat, block) + return None if not m else '#%02x%02x%02x' % tuple(int(x) for x in m.groups()) + out = {} + for name in ('toolbar', 'panel', 'border', 'text', 'text_dim', 'viewport_top'): + out[name] = (pick(light_src, name, False), pick(dark_src, name, True) or pick(light_src, name, False)) + return out +css_path = os.path.join(d, 'tools', 'review', 'review.css') +if os.path.exists(css_path): + try: + tok = app_tokens() + css = open(css_path, encoding='utf-8').read() + want = { + ':root{': {'--bg': tok['panel'][0], '--fg': tok['text'][0], '--card': tok['toolbar'][0], '--line': tok['border'][0], '--mut': tok['text_dim'][0]}, + 'body.dark{': {'--bg': tok['viewport_top'][1], '--fg': tok['text'][1], '--card': tok['toolbar'][1], '--line': tok['border'][1], '--mut': tok['text_dim'][1]}, + } + for block, values in want.items(): + line = next((l for l in css.split('\n') if l.startswith(block)), '') + for var, hexv in values.items(): + m = re.search(re.escape(var) + r':(#[0-9a-fA-F]{6})', line) + if not m or m.group(1).lower() != hexv: + err(css_path, '%s%s is %s, the app token is %s (palettes.rs)' % (block, var, m.group(1) if m else 'missing', hexv)) + except (OSError, ValueError) as e: + err(css_path, 'cannot compare with palettes.rs: %s' % e) # an icon accepted as final on the review page must not change (un-accept it there to work on it again) import json, review_state rp = d + '/review.json' diff --git a/assets/icons/ui/design/tools/preview.py b/assets/icons/ui/design/tools/preview.py index 400fe8df1..82da8936f 100644 --- a/assets/icons/ui/design/tools/preview.py +++ b/assets/icons/ui/design/tools/preview.py @@ -9,7 +9,7 @@ aliases = tomllib.load(open(d + '/aliases.toml', 'rb')).get('alias', {}) def themed(svg, theme, icon, family, size): _, accent = icon_palette.resolve(palette, aliases, icon) return icon_palette.themed(svg, palette, theme, accent, namespace='preview-' + family + '-' + icon + '-' + theme + '-' + str(size)) -h = '' +h = '' for theme in ('light', 'dark'): for fam in sorted(os.listdir(d + '/svg')): h += '

%s - %s

' % (theme, fam, theme) diff --git a/assets/icons/ui/design/tools/review/guide.html b/assets/icons/ui/design/tools/review/guide.html index 062199381..7719b42f4 100644 --- a/assets/icons/ui/design/tools/review/guide.html +++ b/assets/icons/ui/design/tools/review/guide.html @@ -1,6 +1,6 @@ SolidCraft icon style references - +

Icon style references

Return to review. The binding specification is assets/icons/ui/STYLE_GUIDE.md. Read it before editing. These are original SolidCraft bases and finished visual references, shown directly from the current SVG masters.

64-unit grid · 2.55 outlines · 4.25 action strokes · round caps and joins · standard 30° isometric axes · top light, left medium, right dark.

diff --git a/assets/icons/ui/design/tools/review/review.css b/assets/icons/ui/design/tools/review/review.css index f6aa119e9..6c3fe0317 100644 --- a/assets/icons/ui/design/tools/review/review.css +++ b/assets/icons/ui/design/tools/review/review.css @@ -1,5 +1,6 @@ -:root{--bg:#f4f6f9;--fg:#1d2733;--card:#fff;--line:#d5dbe3;--mut:#6b7a8a;--sz:48px} -body.dark{--bg:#1e2530;--fg:#dbe4ee;--card:#262f3c;--line:#3a4657;--mut:#8a9db0} +/* App surfaces (keep in sync with assets/styles/ui/palettes.rs; lint_icons.py checks): --card is the ribbon surface `toolbar` the icons lie on, --bg the page (`panel` in light, `viewport_top` in dark), --line `border`, --fg `text`, --mut `text_dim`. */ +:root{--bg:#fafbfc;--fg:#262a32;--card:#f6f7f9;--line:#d0d4dc;--mut:#6e7480;--sz:48px} +body.dark{--bg:#2e3440;--fg:#dee2e8;--card:#272b34;--line:#3f4552;--mut:#949ba8} body{font:12px system-ui,sans-serif;margin:0;background:var(--bg);color:var(--fg)} header{position:sticky;top:0;background:var(--card);border-bottom:1px solid var(--line);padding:6px 12px;z-index:5;display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center} h1{font-size:14px;margin:0}.sum{color:var(--mut)} diff --git a/assets/icons/ui/source/glyphs.rs b/assets/icons/ui/source/glyphs.rs index 75edc8fe1..241bd18cb 100644 --- a/assets/icons/ui/source/glyphs.rs +++ b/assets/icons/ui/source/glyphs.rs @@ -98,10 +98,6 @@ pub(crate) fn breadcrumb(p: &egui::Painter, c: egui::Pos2, col: Color32) { p.line_segment([pos2(c.x + 1.5, c.y), pos2(c.x - 1.5, c.y + 3.0)], s); } -pub(crate) fn caret(p: &egui::Painter, c: egui::Pos2, col: Color32) { - p.add(egui::Shape::convex_polygon(vec![pos2(c.x - 3.5, c.y - 2.0), pos2(c.x + 3.5, c.y - 2.0), pos2(c.x, c.y + 2.5)], col, Stroke::NONE)); -} - pub(crate) fn brand_mark(p: &egui::Painter, c: Pos2) { let s = 20.0 / 412.217; let m = |pts: &[(f32, f32)]| -> Vec { pts.iter().map(|&(x, y)| pos2(c.x + (x - 178.5) * s, c.y + (y - 206.1) * s)).collect() }; @@ -109,7 +105,9 @@ pub(crate) fn brand_mark(p: &egui::Painter, c: Pos2) { let face = |col: Color32, pts: &[(f32, f32)]| { p.add(egui::Shape::convex_polygon(m(pts), col, Stroke::NONE)); }; - let [light, mid, dark, edge_col] = crate::theme::Tokens::get().logo; + // The faces are separated by gaps that show the application bar, not by white lines. + let [light, mid, dark, _] = crate::theme::Tokens::get().logo; + let edge_col = crate::theme::Tokens::get().app_bar; face(light, &[(3.5, 105.9), (177.0, 5.8), (263.4, 55.6), (263.8, 156.0), (177.0, 406.4)]); face(light, &[(177.0, 206.1), (263.8, 156.0), (350.5, 206.2), (350.5, 306.3), (177.0, 406.4)]); face(mid, &[(3.5, 105.9), (177.0, 206.1), (177.0, 406.4)]); @@ -148,20 +146,3 @@ pub(crate) fn cross(p: &egui::Painter, r: Rect, s: Stroke) { p.line_segment([r.left_top(), r.right_bottom()], s); p.line_segment([r.right_top(), r.left_bottom()], s); } -pub(crate) fn radial_centre(p: &egui::Painter, c: Pos2, direction: Option<(egui::Vec2, bool)>, t: crate::theme::Tokens) { - p.circle(c, 15.0, t.panel.gamma_multiply(0.92), Stroke::new(1.0, t.border)); - if let Some((d, enabled)) = direction { - p.line_segment([c + d * 6.0, c + d * 15.0], Stroke::new(3.0, if enabled { t.accent } else { t.border })); - } else { - p.circle_filled(c, 3.0, t.text_dim); - } -} - -pub(crate) fn disclosure(p: &egui::Painter, ar: Rect, open: bool, ink: Color32) { - let pts = if open { - vec![pos2(ar.left() + 2.0, ar.top() + 4.0), pos2(ar.right() - 2.0, ar.top() + 4.0), pos2(ar.center().x, ar.bottom() - 3.0)] - } else { - vec![pos2(ar.left() + 4.0, ar.top() + 2.0), pos2(ar.right() - 3.0, ar.center().y), pos2(ar.left() + 4.0, ar.bottom() - 2.0)] - }; - p.add(egui::Shape::convex_polygon(pts, ink, Stroke::NONE)); -} diff --git a/assets/icons/ui/source/markers.rs b/assets/icons/ui/source/markers.rs index 1cf8ec843..3560a3135 100644 --- a/assets/icons/ui/source/markers.rs +++ b/assets/icons/ui/source/markers.rs @@ -49,7 +49,7 @@ pub(crate) fn snap(painter: &egui::Painter, c: Pos2, tip: Option, kind: Sn // What it snaps to (hovered), or which component it is (picked): a small label. if let Some(tag) = tag { let t = Tokens::get(); - let font = egui::FontId::proportional(11.5); + let font = egui::FontId::proportional(crate::theme::Tokens::get().font_caption); let g = painter.layout_no_wrap(tag.to_string(), font, t.text); let at = c + vec2(12.0, 10.0); let r = egui::Rect::from_min_size(at, g.size()).expand2(vec2(5.0, 2.0)); diff --git a/assets/icons/ui/source/navigation.rs b/assets/icons/ui/source/navigation.rs index 54e6ca980..611c3f558 100644 --- a/assets/icons/ui/source/navigation.rs +++ b/assets/icons/ui/source/navigation.rs @@ -1,6 +1,6 @@ //! Navigation drawing definitions. Camera projection and picking remain in the UI widgets. use crate::theme::Tokens; -use egui::{Align2, Color32, FontId, Pos2, Rect, Shape, Stroke, pos2, vec2}; +use egui::{Color32, FontId, Pos2, Rect, Shape, Stroke, pos2, vec2}; use solidcraft_engine::geom::{Ring, Vec3}; pub(crate) struct Facet { pub(crate) direction: Vec3, @@ -120,7 +120,7 @@ pub(crate) fn paint_cube(painter: &egui::Painter, faces: &[Facet], hovered: Opti } if labels { for face in faces { - face_text(painter, face, t.cube_text, 14.0 * scale); + face_text(painter, face, t.cube_text, t.font_heading * scale); } } } @@ -148,7 +148,8 @@ pub(crate) fn curved_arrow(painter: &egui::Painter, at: Pos2, clockwise: bool, h arrow(painter, *tip, vec2(-end.sin(), end.cos()) * (sign * scale), hover, t); } } -pub(crate) const AXIS_RADIUS: f32 = 11.0; +/// The pointer target around a compass end: larger than the drawn disc, so it is easy to hit. +pub(crate) const AXIS_RADIUS: f32 = 15.0; pub(crate) fn axis_tip(painter: &egui::Painter, c: Pos2, name: &str, d: &Vec3, at: Pos2, depth: f64, hovered: bool, t: Tokens) { let col = if d.x != 0.0 { t.triad[0] @@ -158,9 +159,57 @@ pub(crate) fn axis_tip(painter: &egui::Painter, c: Pos2, name: &str, d: &Vec3, a t.triad[2] }; let positive = !name.starts_with('-'); - let ink = if depth < -0.01 { col.gamma_multiply(0.55) } else { col }; - painter.line_segment([c, at], Stroke::new(if positive { 2.0 } else { 1.0 }, ink)); - painter.circle_filled(at, AXIS_RADIUS, if hovered { t.accent_soft } else { t.overlay }); - painter.circle_stroke(at, AXIS_RADIUS, Stroke::new(if hovered { 2.0 } else { 1.0 }, if hovered { t.accent } else { ink })); - painter.text(at, Align2::CENTER_CENTER, name.to_uppercase(), FontId::proportional(11.0), ink); + let light = t.panel.r() > 128; + // Positive shafts are the full axis colour; negative ones are a dimmed tint (and any end + // pointing away from the viewer dims further). + let ink = if !positive || depth < -0.01 { col.gamma_multiply(0.55) } else { col }; + let radius = if positive { 11.0 } else { 4.8 }; + let direction = (at - c).normalized(); + let width = 3.6; + // A negative shaft stops at the outer edge of its ring; a positive one runs under its disc. + let end = if positive { at - direction * radius } else { at - direction * (radius + 1.2) }; + painter.line_segment([c, end], Stroke::new(width, ink)); + // The round cap sits at the origin; the other end is covered by the disc or ring. + painter.circle_filled(c, width / 2.0, ink); + if positive { + painter.circle_filled(at, radius, col); + } + // Negative tips are hollow: neither the axis shaft nor a fill covers their + // centres, so the translucent compass background shows through. A hovered tip of either + // kind turns fully white. + if hovered { + // Same outer size as the resting tip: a ring's outline is half its stroke outside. + painter.circle_filled(at, if positive { radius } else { radius + 1.2 }, t.on_accent); + // On the light theme a white disc vanishes into the compass, so it carries an outline in + // the axis colour, drawn inside the disc so it does not grow. + if light && positive { + painter.circle_stroke(at, radius - 1.0, Stroke::new(2.0, col)); + } + } + if positive { + // On a hovered (white) disc the letter takes the axis colour. + let letter = if hovered { col } else { t.on_accent }; + let label = name.to_uppercase(); + let galley = painter.layout_no_wrap(label, crate::fonts::bold(crate::theme::Tokens::get().font_compass), letter); + let origin = at - galley.size() / 2.0; + let ppp = painter.ctx().pixels_per_point().max(0.5); + let origin = pos2((origin.x * ppp).round() / ppp, (origin.y * ppp).round() / ppp); + painter.galley(origin, galley, letter); + } + if !positive { + painter.circle_stroke( + at, + radius, + Stroke::new( + 2.4, + if !hovered { + ink + } else if light { + col + } else { + t.on_accent + }, + ), + ); + } } diff --git a/assets/icons/ui/source/pointer.rs b/assets/icons/ui/source/pointer.rs index b637f7534..dd16e2d4d 100644 --- a/assets/icons/ui/source/pointer.rs +++ b/assets/icons/ui/source/pointer.rs @@ -11,7 +11,7 @@ pub(crate) fn paint(painter: &egui::Painter, p: Pos2) { [(0.0, 0.0), (0.0, 17.0), (4.5, 13.0), (7.5, 20.0), (10.5, 18.8), (7.5, 12.0), (13.0, 12.0)].iter().map(|(x, y)| p + vec2(*x, *y)).collect(); painter.add(Shape::convex_polygon(pts.clone(), ic.agent, Stroke::NONE)); painter.add(Shape::closed_line(pts, Stroke::new(1.5, ic.highlight))); - let label = painter.layout_no_wrap("Agent".into(), FontId::proportional(11.0), ic.highlight); + let label = painter.layout_no_wrap("Agent".into(), FontId::proportional(crate::theme::Tokens::get().font_small), ic.highlight); let r = egui::Rect::from_min_size(p + vec2(15.0, 18.0), label.size() + vec2(10.0, 4.0)); painter.rect_filled(r, 4.0, ic.agent); painter.galley(r.min + vec2(5.0, 2.0), label, ic.highlight); diff --git a/assets/locales/cs.json b/assets/locales/cs.json index 8c4d47f64..74e7addac 100644 --- a/assets/locales/cs.json +++ b/assets/locales/cs.json @@ -3,10 +3,14 @@ "1. Open GitHub draft below, then paste the report copied to your clipboard.": "1. Otevřete níže koncept na GitHubu a vložte hlášení zkopírované do schránky.", "1. Open GitHub draft below. Your title and report will be filled in.": "1. Otevřete níže koncept na GitHubu. Název a hlášení se vyplní automaticky.", "2. Attach your screenshot: copy and paste it, or save and upload the PNG.": "2. Přiložte snímek obrazovky: zkopírujte a vložte jej, nebo uložte a nahrajte PNG.", + "2D": "2D", "3. Click Submit new issue on GitHub to send your report.": "3. Hlášení odešlete na GitHubu tlačítkem Submit new issue.", "A new configuration, a copy of the active one": "Nová konfigurace, kopie aktivní", - "AI": "AI", + "ARRANGE": "USPOŘÁDAT", "About SolidCraft": "O aplikaci SolidCraft", + "Acceleration": "Zrychlení", + "Access": "Přístup", + "Actions": "Akce", "Active": "Aktivní", "Active rule": "Aktivní pravidlo", "Add": "Přidat", @@ -14,8 +18,11 @@ "Add Mid Radius": "Přidat střední poloměr", "Add Row": "Přidat řádek", "Add condition": "Přidat podmínku", + "Add or edit rule": "Přidat nebo upravit pravidlo", + "Against": "Proti", "Alignment": "Zarovnání", "All Sketch Points": "Všechny body náčrtu", + "All components": "Všechny komponenty", "All open designs": "Všechny otevřené návrhy", "Allowed expressions, separated by semicolons": "Povolené výrazy oddělené středníkem", "Also deletes": "Smaže také", @@ -25,19 +32,33 @@ "Applied Radius": "Použitý poloměr", "Apply To": "Použít na", "Apply to selection": "Použít na výběr", + "Apply your appearance first. Exports assigned appearances and materials created in this design.": "Nejprve použijte vzhled. Exportuje přiřazené vzhledy a materiály vytvořené v tomto návrhu.", "Arc length": "Délka oblouku", "Area": "Plocha", + "As-Built": "Skutečný stav", + "Assign Rule": "Přiřadit pravidlo", "Attachment": "Připojení", + "BLEND SURFACE": "PŘECHODOVÁ PLOCHA", + "BOUNDARY SURFACE": "PLOCHA Z HRANIC", "BROWSER": "PROHLÍŽEČ", "Bend Line Position": "Poloha ohybové čáry", "Bend Position": "Poloha ohybu", "Bend Radius": "Poloměr ohybu", + "Bend Table": "Tabulka ohybů", "Bends": "Ohyby", + "Bodies": "Tělesa", "Body": "Těleso", "Boundary": "Hranice", "Bounding box": "Ohraničující kvádr", + "CHECK": "KONTROLA", + "COMPONENTS": "KOMPONENTY", + "CONFIGURATIONS": "KONFIGURACE", + "CONSTRAIN": "VAZBY", + "CONTACT": "KONTAKT", + "CONVERT": "PŘEVÉST", "CSV or JSON: updates existing parameters, adds new ones": "CSV nebo JSON: aktualizuje existující parametry, přidá nové", "Capture All Positions": "Zachytit všechny polohy", + "Capture Pos.": "Zachytit polohu", "Catch Direction": "Směr záchytu", "Cells": "Buňky", "Center X": "Střed X", @@ -48,15 +69,20 @@ "Check collisions": "Kontrolovat kolize", "Checked": "Zaškrtnuto", "Choose a new plane. Sketch geometry and dimensions stay unchanged in its two-dimensional coordinates.": "Zvolte novou rovinu. Geometrie a kóty náčrtu zůstanou ve svých dvourozměrných souřadnicích beze změny.", + "Choose…": "Vybrat…", + "Circular": "Kruhově", "Circumference": "Obvod", "Close draft": "Zavřít koncept", "Collisions": "Kolize", "Colour": "Barva", + "Comment": "Komentář", "Component1": "Komponenta1", + "Config Table": "Tabulka konfigurací", "Configuration": "Konfigurace", "Configuration rules": "Pravidla konfigurace", - "Construction": "Konstrukční", "Contact": "Kontakt", + "Contact Sets": "Sady kontaktů", + "Contact sets": "Sady kontaktů", "Continuity": "Spojitost", "Copy Error Message": "Kopírovat chybovou zprávu", "Copy Warning Message": "Kopírovat varování", @@ -69,69 +95,98 @@ "Counterbore depth": "Hloubka zahloubení", "Countersink angle": "Úhel kuželového zahloubení", "Create Issue — review draft": "Vytvořit hlášení — kontrola konceptu", + "Cross curves": "Příčné křivky", "Cube": "Krychle", "Current orthographic view (1:1 mm)": "Aktuální pravoúhlý pohled (1:1 mm)", "Current perspective view": "Aktuální perspektivní pohled", + "Curv. Comb": "Hřeben křivosti", "Curvature (G2)": "Křivost (G2)", "Curvature change (G3)": "Změna křivosti (G3)", "Customize Toolbar": "Přizpůsobit panel nástrojů", + "Delete": "Odstranit", "Delete all": "Smazat vše", "Delete rule": "Smazat pravidlo", "Delete the row": "Smazat řádek", "Delete the set": "Smazat sadu", - "Delete this parameter": "Smazat tento parametr", "Density": "Hustota", + "Dependents": "Závislé prvky", "Designs you open or save appear here.": "Zde se zobrazí návrhy, které otevřete nebo uložíte.", "Determined by To Object. Choose Angle to edit the angular extent.": "Určeno volbou K objektu. Pro úpravu úhlového rozsahu zvolte Úhel.", "Direction": "Směr", "Discard": "Zahodit", "Do not export hidden edges": "Neexportovat skryté hrany", + "Don't ask again": "Příště se neptat", "Double-click to rename": "Dvojklikem přejmenujete", "Double-clicking the middle button in the view: Home (the home view, framing what is shown), Fit (frame what is shown, keeping the orientation) or nothing": "Dvojklik prostředním tlačítkem v pohledu: Domů (výchozí pohled se zobrazením všeho), Přizpůsobit (zobrazí vše při zachování natočení) nebo nic", "Drive Joint": "Pohánět kloub", + "Duration": "Doba trvání", "Edges": "Hrany", + "Edit": "Upravit", "Edit Profile Sketch": "Upravit náčrt profilu", "Enable rule": "Povolit pravidlo", "Enabled": "Povoleno", + "End bulge": "Vypouklost konce", + "End continuity": "Návaznost konce", "Explode": "Rozložit", + "Explode Text": "Rozložit text", "Export Animation…": "Exportovat animaci…", + "Export CSV…": "Exportovat CSV…", "Export Current View as DXF": "Exportovat aktuální pohled do DXF", "Export Current View as DXF…": "Exportovat aktuální pohled do DXF…", + "Export DXF": "Exportovat DXF", "Export DXF…": "Exportovat DXF…", + "Export JSON…": "Exportovat JSON…", "Export hidden edges as dashed lines": "Exportovat skryté hrany čárkovaně", + "Expression": "Výraz", "Extend to meet": "Prodloužit k protnutí", "Extents": "Rozsahy", + "FILES": "SOUBORY", + "FLAT": "ROZVIN", "Face": "Plocha", "Face attachment lost": "Připojení k ploše ztraceno", "Faces": "Plochy", "Faces / edges / vertices": "Plochy / hrany / vrcholy", + "Fastener": "Spojovací prvek", + "Favorites": "Oblíbené", "Favourite": "Oblíbené", + "Feature": "Prvek", "Files from many CAD programs have Y up, so they open lying on their back here (Z up).": "Soubory z mnoha CAD programů mají osu Y nahoru, proto se zde otevřou ležící na zádech (Z nahoru).", "Filter": "Filtr", "Find in Browser": "Najít v prohlížeči", - "Flat": "Plochý", + "Finish": "Dokončit", + "Flat Pattern": "Rozvin", "Flat size": "Rozměr rozvinu", "Follow camera (Look At sketches)": "Sledovat kameru (náčrty natočené k pohledu)", "Follow the camera (Look At sketches)": "Sledovat kameru (náčrty natočené k pohledu)", "Font": "Písmo", + "From Bodies": "Z těles", "From edges": "Výchozí hrany", "Full Length": "Celá délka", + "Gap": "Mezera", "Grid": "Mřížka", + "HISTORY": "HISTORIE", "Height": "Výška", "Hidden edges": "Skryté hrany", "Holes": "Otvory", "Holes (edges on them)": "Otvory (jejich hrany)", "Home view": "Výchozí pohled", + "Horiz./Vert.": "Vodor./Svisle", + "IMAGES": "OBRÁZKY", + "Import…": "Importovat…", "In This Design": "V tomto návrhu", "In place (surfaces)": "Na místě (plochy)", "In plane": "V rovině", "Inside": "Uvnitř", "Interferes": "Koliduje", + "Isocurve": "Izokřivka", "Issue title": "Název hlášení", + "JOINTS": "SPOJE", "Joint Origin1": "Počátek kloubu1", "Keep (points on it)": "Ponechat (body na ní)", "Keep Tools": "Ponechat nástroje", "Keep of the other surface": "Ponechat z druhé plochy", + "LIBRARY": "KNIHOVNA", + "LINKS": "ODKAZY", "Later": "Později", "Leave it": "Nechat být", "Legacy face attachment. Rebinding to a certified face creates an exact attachment.": "Starší typ připojení k ploše. Novým navázáním na ověřenou plochu vznikne přesné připojení.", @@ -139,55 +194,85 @@ "Length units": "Jednotky délky", "Letter Spacing": "Mezery mezi písmeny", "Library": "Knihovna", + "Library file": "Soubor knihovny", "Line Spacing": "Řádkování", + "Local library": "Místní knihovna", "Loop": "Smyčka", + "MANAGE": "SPRÁVA", + "MATERIALS": "MATERIÁLY", + "MODEL": "MODEL", + "MOTION": "POHYB", "Margin": "Okraj", "Mass": "Hmotnost", + "Mass Center": "Těžiště", + "Matched restrictions check the final values.": "Odpovídající omezení kontrolují konečné hodnoty.", "Material": "Materiál", "Max": "Max", "Mid Radius": "Střední poloměr", "Middle double-click": "Dvojklik prostředním tlačítkem", "Min": "Min", "Mitre": "Pokos", + "Model Parameters": "Parametry modelu", "Modeled": "Modelovaný", "More toolbar panels": "Další panely nástrojů", "Motion": "Pohyb", + "Move / Copy": "Přesunout / kopírovat", "Move Type": "Typ posunu", + "Move down": "Posunout dolů", "Move earlier": "Posunout dříve", "Move later": "Posunout později", + "Move up": "Posunout nahoru", "Name": "Název", + "Nearest": "Nejbližší", + "New": "Nový", + "New Comp.": "Nová komp.", + "New Sketch": "Nový náčrt", + "New rule…": "Nové pravidlo…", + "New study": "Nová studie", "No crash reports.": "Žádná hlášení o pádech.", + "No matching appearance presets.": "Žádné odpovídající předvolby vzhledu.", "No matching appearances": "Žádné odpovídající vzhledy", "No visible bodies to export.": "Žádná viditelná tělesa k exportu.", "None": "Žádné", - "Normal to sketch": "Kolmo ke skice", "Not available yet": "Zatím není k dispozici", "Notch": "Zářez", + "OUTPUT": "VÝSTUP", "Opacity": "Neprůhlednost", "Open GitHub draft": "Otevřít koncept na GitHubu", + "Open local libraries in the desktop app. You can export this design's library here.": "Místní knihovny otevřete v desktopové aplikaci. Zde můžete exportovat knihovnu tohoto návrhu.", "Open-source parametric 3D CAD in Rust. Licensed MIT OR Apache-2.0.": "Open-source parametrický 3D CAD v jazyce Rust. Licence MIT OR Apache-2.0.", + "Operator": "Operátor", "Other side": "Druhá strana", "Other surface (mutual trim)": "Druhá plocha (vzájemné oříznutí)", "Outside": "Vně", "Overall length": "Celková délka", - "Parameter values": "Hodnoty parametrů", + "Param. Graph": "Graf param.", + "Parameter": "Parametr", + "Parts": "Díly", "Pass through": "Procházet skrz", "Path": "Cesta", + "Pattern": "Pole", "Per Edge": "Pro každou hranu", "Pick the tool bodies": "Vyberte nástrojová tělesa", "Picked": "Vybráno", + "Picked point": "Vybraný bod", "Place at the origin instead": "Místo toho umístit do počátku", + "Plastic Rules": "Pravidla pro plasty", "Playback": "Přehrávání", + "Plot": "Graf", "Position": "Poloha", "Position (0 to 1)": "Poloha (0 až 1)", "Position (G0)": "Poloha (G0)", "Position along the edge, 0 at the start end, 1 at the other": "Poloha podél hrany, 0 na počátečním konci, 1 na druhém", + "Preferences › Design turns the offer back on": "Nabídku znovu zapnete v Předvolby › Návrh", "Preview Row": "Náhled řádku", "Preview leaves the current design unchanged.": "Náhled aktuální návrh nemění.", "Profiles/Curves": "Profily/křivky", - "Projection": "Promítání", + "Quantity": "Množství", "RECENT": "NEDÁVNÉ", + "REFERENCE": "REFERENCE", "RULED SURFACE": "PŘÍMKOVÁ PLOCHA", + "RULES": "PRAVIDLA", "Radius Fit": "Proložení poloměrem", "Ratio": "Poměr", "Reattach selected face": "Znovu připojit k vybrané ploše", @@ -205,6 +290,8 @@ "Remove this point": "Odebrat tento bod", "Report a bug — review a screenshot and open a GitHub draft": "Nahlásit chybu — zkontrolovat snímek a otevřít koncept na GitHubu", "Reset Toolbar": "Obnovit panel nástrojů", + "Resize Part": "Změnit velikost dílu", + "Restore View": "Obnovit pohled", "Restore outer boundary": "Obnovit vnější hranici", "Restore the inherited component or physical material appearance": "Obnovit zděděný vzhled komponenty nebo fyzického materiálu", "Result": "Výsledek", @@ -213,18 +300,27 @@ "Reverse Direction": "Obrátit směr", "Revert": "Vrátit", "Revert All Positions": "Vrátit všechny polohy", + "Revert Pos.": "Vrátit polohu", "Revert Position": "Vrátit polohu", "Review the report and screenshot before opening GitHub.": "Před otevřením GitHubu zkontrolujte hlášení a snímek.", "Rim Edge": "Okrajová hrana", "Roll History Marker Here": "Přesunout značku historie sem", "Round": "Zaoblený", "Rule": "Pravidlo", + "Rule name": "Název pravidla", + "Rules run from top to bottom. Matched drives change effective values.": "Pravidla se spouštějí shora dolů. Odpovídající řídicí pravidla mění účinné hodnoty.", + "SECTION": "ŘEZ", + "SURFACE QUALITY": "KVALITA POVRCHU", "Save Rule": "Uložit pravidlo", + "Save View": "Uložit pohled", "Save the study as an animated GIF, seen as the viewport shows it": "Uložit studii jako animovaný GIF tak, jak ji zobrazuje pohled", "Saved preview. Geometry is being checked before editing.": "Uložený náhled. Geometrie se před úpravou kontroluje.", "Scale factor": "Měřítko", + "Scene": "Scéna", "Search": "Hledat", "Search commands": "Hledat příkazy", + "Search this library": "Prohledat tuto knihovnu", + "Section": "Řez", "Select Other: hold the left button still on the model (or right-click › Select Other…) to list everything under the cursor; click again on the same spot to select the next thing there. Double-click the middle button to go Home (Preferences › Navigation).": "Vybrat jiné: podržte levé tlačítko na modelu (nebo pravé tlačítko › Vybrat jiné…) a zobrazí se vše pod kurzorem; dalším kliknutím na stejné místo vyberete další prvek. Dvojklikem prostředním tlačítkem přejdete na výchozí pohled (Předvolby › Navigace).", "Select bodies (a face picks its body)": "Vyberte tělesa (plocha vybere své těleso)", "Select bodies or faces instead": "Vyberte místo toho tělesa nebo plochy", @@ -232,6 +328,7 @@ "Semantic faces share their appearance across instances.": "Sémantické plochy sdílejí vzhled napříč instancemi.", "Send your report on GitHub": "Odeslat hlášení na GitHub", "Shape": "Tvar", + "Sheet Rules": "Pravidla pro plech", "Show Agent Cursor": "Zobrazit kurzor agenta", "Show in folder": "Zobrazit ve složce", "Show the pointer an AI agent moves (#35)": "Zobrazit ukazatel, kterým pohybuje AI agent (#35)", @@ -245,14 +342,18 @@ "Sketch points": "Body náčrtu", "Slot width": "Šířka drážky", "SolidCraft closed before these designs were saved. Their last autosave can be opened.": "SolidCraft se zavřel dříve, než se tyto návrhy uložily. Lze otevřít jejich poslední automatické uložení.", + "Specialise": "Specializovat", "Speed": "Rychlost", "Stand it up": "Postavit", "Stand it up: a quarter turn about X, as one Move feature you can undo.": "Postavit: otočení o čtvrt otáčky kolem osy X jako jeden prvek Posunutí, který lze vrátit.", "Stand this part up?": "Postavit tento díl?", + "Start bulge": "Vypouklost začátku", + "Start continuity": "Návaznost začátku", "Step": "Krok", "Steps": "Kroky", "Stitch the kept pieces": "Sešít ponechané části", "Stitch to both bodies": "Sešít s oběma tělesy", + "Study": "Studie", "Style": "Styl", "Suppressed": "Potlačeno", "Surface": "Plocha", @@ -275,20 +376,24 @@ "To Offset": "Odsazení k objektu", "To edges": "Cílové hrany", "Tolerance": "Tolerance", + "Too close": "Příliš blízko", "Trimming tool (plane, face or curves)": "Ořezávací nástroj (rovina, plocha nebo křivky)", "Turn off section analysis before exporting the view.": "Před exportem pohledu vypněte analýzu řezu.", "Type": "Typ", "UNTRIM": "ZRUŠIT OŘEZ", + "Unit": "Jednotka", "Updating the preview": "Aktualizace náhledu", "Use active author placement": "Použít aktivní umístění autora", "Use fixed plane": "Použít pevnou rovinu", "Use saved fixed plane": "Použít uloženou pevnou rovinu", "Use selected face as fixed plane": "Použít vybranou plochu jako pevnou rovinu", + "User Parameters": "Uživatelské parametry", "VIEW": "POHLED", + "VIEWS": "POHLEDY", "Value": "Hodnota", + "Velocity": "Rychlost", "Vertices": "Vrcholy", "View navigator": "Navigátor pohledu", - "Visible bodies only. Curves use line segments (0.01 mm tolerance).": "Pouze viditelná tělesa. Křivky jsou nahrazeny úsečkami (tolerance 0,01 mm).", "Volume": "Objem", "Wall": "Stěna", "Wall Location": "Umístění stěny", @@ -296,6 +401,13 @@ "When": "Když", "Width": "Šířka", "Will fail": "Selže", + "X angle": "Úhel X", + "X distance": "Vzdálenost X", + "Y angle": "Úhel Y", + "Y distance": "Vzdálenost Y", + "Z angle": "Úhel Z", + "Z distance": "Vzdálenost Z", + "Zebra": "Zebra", "angle, height": "úhel, výška", "appearance.dielectric_ior": "Index lomu dielektrika", "appearance.metallic": "Kovovost", @@ -304,7 +416,13 @@ "appearance.roughness": "Drsnost", "appearance.surface_response": "Odezva povrchu", "browser.body_name": "Těleso{number}", + "browser.calibrate_title": "Kalibrovat: {name}", + "browser.capture_many": "Byly přesunuty komponenty ({count}), ale jejich polohy nejsou zachyceny.", + "browser.capture_note": "Zachycení polohy ponechá novou polohu; vrácení obnoví původní.", + "browser.capture_one": "Komponenta byla přesunuta, ale její poloha není zachycena.", "browser.component_name": "Komponenta{number}", + "browser.edit_canvas_title": "Upravit plátno: {name}", + "browser.move_title": "Přesunout: {name}", "browser.parameters": "Parametry ({count})", "browser.precision": "Přesnost: {precision}", "browser.sketch_name": "Náčrt{number}", @@ -319,6 +437,7 @@ "cmd.appearance_assign": "Vzhled", "cmd.appearance_library": "Knihovna vzhledů", "cmd.appearance_list": "Seznam vzhledů", + "cmd.assembly_bom": "Kusovník", "cmd.body_rename": "Přejmenovat těleso", "cmd.browser_group": "Nová skupina", "cmd.browser_move": "Přesunout položky prohlížeče", @@ -340,10 +459,13 @@ "cmd.component_insert_design": "Vložit návrh", "cmd.component_links": "Seznam odkazů", "cmd.component_list": "Seznam komponent", + "cmd.component_metadata": "Vlastnosti dílu", + "cmd.component_metadata_set": "Změnit vlastnosti dílu", "cmd.component_move_bodies": "Přesunout tělesa do komponenty", "cmd.component_move_sketches": "Přesunout náčrty do komponenty", "cmd.component_paste_new": "Vložit jako nové", "cmd.component_properties": "Fyzikální vlastnosti komponenty", + "cmd.component_relink": "Znovu propojit zdroj", "cmd.component_rename": "Přejmenovat komponentu", "cmd.component_revert_position": "Vrátit polohu", "cmd.component_unlock": "Odemknout obsah", @@ -395,6 +517,7 @@ "cmd.edit_checkpoint": "Kontrolní bod", "cmd.edit_restore_checkpoint": "Obnovit kontrolní bod", "cmd.engine_commands": "Seznam příkazů", + "cmd.engine_describe": "Popsat příkaz", "cmd.explode_create": "Rozložený pohled", "cmd.explode_delete": "Smazat rozložený pohled", "cmd.explode_list": "Seznam rozložených pohledů", @@ -408,6 +531,7 @@ "cmd.file_slicers": "Nainstalované slicery", "cmd.inspect_accessibility": "Analýza přístupnosti", "cmd.inspect_center_of_mass": "Těžiště", + "cmd.inspect_clearance": "Vůle", "cmd.inspect_compare": "Porovnat tělesa", "cmd.inspect_continuity": "Analýza spojitosti", "cmd.inspect_curvature_comb": "Analýza hřebenu křivosti", @@ -417,6 +541,7 @@ "cmd.inspect_interference": "Kolize", "cmd.inspect_isocurve": "Analýza izokřivek", "cmd.inspect_minimum_radius": "Analýza minimálního poloměru", + "cmd.inspect_silhouette": "Silueta", "cmd.inspect_zebra": "Zebra analýza", "cmd.joint_as_built": "Kloub podle stavu", "cmd.joint_cam": "Vačka", @@ -425,6 +550,7 @@ "cmd.joint_drive": "Pohánět klouby", "cmd.joint_edit": "Upravit kloub", "cmd.joint_gear": "Ozubený převod", + "cmd.joint_inspect": "Prozkoumat kloub", "cmd.joint_limits": "Limity kloubu", "cmd.joint_list": "Seznam kloubů", "cmd.joint_motion_link": "Vazba pohybu", @@ -434,6 +560,7 @@ "cmd.joint_rigid_group": "Pevná skupina", "cmd.joint_screw": "Šroubový pohyb", "cmd.joint_solve": "Vyřešit klouby", + "cmd.joint_sweep": "Pohyb kloubu", "cmd.library_apply": "Použít položku místní knihovny", "cmd.library_export": "Exportovat knihovnu návrhu", "cmd.library_inspect": "Prozkoumat místní knihovnu", @@ -451,8 +578,10 @@ "cmd.motion_delete": "Smazat studii pohybu", "cmd.motion_export": "Exportovat studii pohybu", "cmd.motion_export_animation": "Exportovat animaci pohybu", + "cmd.motion_interference": "Kolize při pohybu", "cmd.motion_list": "Seznam studií pohybu", "cmd.motion_play": "Přehrát studii pohybu", + "cmd.motion_plot": "Graf studie pohybu", "cmd.motion_study": "Studie pohybu", "cmd.motion_trace": "Stopa pohybu", "cmd.motion_trace_keep": "Ponechat stopu pohybu", @@ -549,6 +678,8 @@ "cmd.sketch_isoparametric_curve": "Izoparametrická křivka", "cmd.sketch_line3d": "3D úsečka", "cmd.sketch_line_midpoint": "Úsečka od středu", + "cmd.sketch_loose_ends": "Volné konce", + "cmd.sketch_loose_ends_tie": "Spojit volné konce", "cmd.sketch_move": "Přesunout/kopírovat prvky náčrtu", "cmd.sketch_move3d": "Přesunout 3D bod", "cmd.sketch_move_point": "Táhnout bod náčrtu", @@ -578,6 +709,7 @@ "cmd.sketch_spline_fit_point": "Splajn procházející body", "cmd.sketch_spun_profile": "Rotační obrys", "cmd.sketch_toggle_driven": "Přepnout řízenou kótu", + "cmd.sketch_trim_path": "Oříznout podél cesty", "cmd.solid_align": "Zarovnat", "cmd.solid_boundary_fill": "Vyplnění hranicemi", "cmd.solid_bounding_solid": "Obalové těleso", @@ -620,13 +752,23 @@ "cmd.timeline_roll_to": "Přesunout značku historie", "cmd.timeline_rollback": "Přesunout značku časové osy", "cmd.timeline_suppress": "Potlačit prvek", + "cmd.view_ambient_occlusion": "Okolní zastínění", "cmd.view_apply": "Obnovit pojmenovaný pohled", "cmd.view_delete": "Smazat pojmenovaný pohled", + "cmd.view_graphics_preset": "Předvolba grafiky", "cmd.view_list": "Seznam pojmenovaných pohledů", "cmd.view_navigate": "Navigovat pohled", "cmd.view_rename": "Přejmenovat pojmenovaný pohled", "cmd.view_save": "Nový pojmenovaný pohled", - "command name": "název příkazu", + "color.copy": "Kliknutím zkopírujete hodnoty barvy", + "color.edit": "Kliknutím upravíte barvu", + "color.gamma": "Hodnoty barvy v gama prostoru 0–255", + "color.hue": "Odstín", + "color.linear": "Hodnoty barvy v lineárním prostoru 0–1", + "color.saturation_value": "Sytost a jas", + "color.selected": "Vybraná barva", + "contact.components_count": "Počet komponent: {count}", + "contact.enabled_label": "povoleno", "coupling.gear_1": "Kolo 1", "coupling.gear_1_pick": "Kolo 1 (volitelné)", "coupling.gear_2": "Kolo 2", @@ -643,8 +785,30 @@ "coupling.rack": "Hřeben", "coupling.radius_1": "Poloměr 1", "coupling.radius_2": "Poloměr 2", + "crash.announce": "SolidCraft se minule neočekávaně zavřel nebo narazil na vnitřní chybu. Zpráva o selhání byla uložena (Nápověda > Zprávy o selhání…).", + "crash.copy_folder": "Kopírovat cestu ke složce", + "crash.copy_path": "Kopírovat cestu", + "crash.deleted": "Smazáno zpráv: {count}.", + "crash.detected_time": "Zjištěno {time} UTC", + "crash.intro": "Zprávy o selhání zůstávají v tomto počítači a nikam se neodesílají. Příkaz Nahlásit… otevře koncept, který před sdílením zkontrolujete.", + "crash.kind_command": "Vnitřní chyba v příkazu", + "crash.kind_internal": "Vnitřní chyba", + "crash.kind_kernel": "Chyba jádra (obnoveno)", + "crash.kind_unclean": "Neočekávaně zavřeno", + "crash.previous_session": "Předchozí relace SolidCraftu skončila neočekávaně nebo narazila na vnitřní chybu. Zprávy o nekorektním ukončení se zjišťují při spuštění. Podrobnosti viz Nápověda > Zprávy o selhání…", + "crash.replayable": "lze přehrát", + "crash.report": "Nahlásit…", + "crash.unclean_explanation": "Zjištěno při pozdějším spuštění; přesný čas ukončení nebyl zaznamenán. Nekorektní ukončení může způsobit i vypnutí systému nebo vynucené zastavení.", + "delete.and_more": "… a další ({count})", + "dialog.bodies_count": "Počet těles: {count}", + "dialog.clearance_invalid": "vůle musí být délka 0 nebo větší", + "dialog.compute": "Vypočítat", + "dialog.compute_again": "Vypočítat znovu", "dialog.computing": "Výpočet… {seconds} s", + "dialog.could_not_be_checked": "nelze zkontrolovat", "dialog.custom_axis": "↖ Vlastní osa", + "dialog.dimension_insert_hint": "Dvojklikem na jiný řídicí kótu vložíte jeho název", + "dialog.dimension_name": "Kóta: {name}", "dialog.edit_title": "UPRAVIT {title}", "dialog.select": "↖ Vybrat", "dialog.selected_count": "↖ Vybráno: {count}", @@ -668,9 +832,30 @@ "dxf.progress.write": "Zápis DXF (5/5)", "dxf.tolerance": "Tolerance křivek", "dxf.tolerance_help": "Pouze viditelná tělesa. Křivky jsou nahrazeny úsečkami. Menší tolerance dává jemnější křivky, ale zabere více času a paměti.", - "expression, e.g. 25 mm": "výraz, např. 25 mm", + "file_load.built": "Dosud sestaveno: {built} z {total} prvků.", + "file_load.converting": "Převod tělesa {done} z {total}", + "file_load.inserting": "Vkládání geometrie", + "file_load.opening": "Otevírání návrhu", + "file_load.preparing_thumbnail": "Příprava náhledu...", + "file_load.preparing_view": "Příprava pohledu...", + "file_load.preview_note": "Uložený náhled. Před úpravami se kontroluje geometrie.", + "file_load.reading": "Čtení souboru...", + "file_load.reading_percent": "Čtení souboru... {percent} %", + "file_load.rebuilding": "Přestavba prvku {done} z {total}", + "file_load.recovering": "Obnova návrhu", + "file_load.stopping": "Čekání na zastavení předchozí operace...", + "file_load.waiting": "Čekání na operaci se souborem", "fits the face, e.g. M8": "odpovídá ploše, např. M8", "from the rule": "z pravidla", + "help.apache": "Licence Apache 2.0", + "help.attributions": "Uvedení autorství (ATTRIBUTION.md)", + "help.build": "Verze {version} · commit {commit} · sestaveno {date}", + "help.font_details": "Rozhraní používá vestavěná písma egui (Ubuntu Light a Hack pod licencemi Ubuntu Font Licence a MIT/Bitstream Vera; Noto Emoji a písmo ikon emoji pod licencemi OFL a MIT). Text náčrtu používá Liberation Sans (SIL OFL 1.1). Volitelný balíček písem craft-fonts od The Crafting Apps (BIZ UDPGothic, Shippori Mincho, BIZ UDMincho, Noto Sans CJK SC, Noto Sans Arabic; SIL OFL 1.1) není součástí sestavení SolidCraft.", + "help.fonts": "Písma", + "help.licences": "Licence", + "help.mit": "Licence MIT", + "help.notice": "NOTICE", + "help.third_party": "Licence třetích stran", "home.documentation": "Dokumentace", "home.in_this_browser": "v tomto prohlížeči", "home.missing": "chybí", @@ -696,9 +881,30 @@ "install.menu": "Nainstalovat aplikaci…", "install.steps_intro": "Safari instaluje webové aplikace z vlastních nabídek:", "install.title": "Instalace SolidCraftu", + "issue.body_label": "Text hlášení", + "issue.note_image_copied": "Vložte obrázek do konceptu na GitHubu, nebo uložte PNG, pokud kopírování obrázku není dostupné.", + "issue.note_opened": "Zkontrolujte koncept na GitHubu a připojte snímek obrazovky. Hlášení zveřejníte tlačítkem Submit new issue na GitHubu.", + "issue.note_opened_copied": "Hlášení bylo zkopírováno. Vložte je do konceptu na GitHubu, připojte snímek obrazovky a klikněte na Submit new issue na GitHubu.", + "issue.note_removed": "Snímek obrazovky byl z konceptu odebrán.", + "issue.note_report_copied": "Hlášení bylo zkopírováno. V případě potřeby je vložte do konceptu na GitHubu.", + "issue.note_save_failed": "Snímek obrazovky se nepodařilo uložit: {error}", + "issue.note_saved": "Snímek obrazovky byl uložen. Připojte PNG v konceptu na GitHubu.", + "issue.save_screenshot": "Uložit snímek obrazovky…", "joint.from_bodies_hint": "Každé vybrané těleso se přesune do vlastní nové komponenty a zůstane na místě.", "joint.one_body": "Oba výběry jsou na {body}. Druhý vyberte na jiném dílu.", "joint.one_component": "Tyto díly jsou tělesy jedné komponenty: {bodies}. Kloub pohybuje jednou komponentou vůči druhé, takže každý díl potřebuje vlastní komponentu.", + "keymap.command_id": "ID příkazu", + "keymap.empty": "Žádné odpovídající příkazy", + "keymap.use_anyway": "Přesto zde použít {key}", + "manage.appearance_hint": "Vyberte vzhled pro výběr nebo přetáhněte vzorek na těleso či plochu.", + "manage.assign_hint": "Vyberte tělesa a zvolte jejich pravidlo návrhu plastových dílů.", + "manage.config_hint": "Upravte řádky, sloupce a pravidla konfigurace a poté řádek aktivujte nebo zobrazte jeho náhled.", + "manage.empty": "Žádné odpovídající řádky.", + "manage.material_hint": "Vyberte tělesa a zvolte jejich fyzikální materiál.", + "manage.parameters_hint": "Upravte výrazy a jednotky. Změny se použijí po stisknutí Enter nebo opuštění pole.", + "manage.rules_hint": "Vyberte pravidlo k úpravě nebo vytvořte nové. Potvrzením pravidlo uložíte.", + "measure.at": "V bodě", + "measure.item": "Položka {number}", "messages.ago_h": "před {n} h", "messages.ago_min": "před {n} min", "messages.ago_s": "před {n} s", @@ -708,6 +914,18 @@ "messages.menu": "Zprávy…", "messages.none": "Zatím žádné zprávy.", "messages.title": "Zprávy", + "motion.checked_to": "Zkontrolováno pouze do kroku {step}: kontrole došel výpočetní rozpočet", + "motion.collision": "{a} · {b}: kroky {steps}", + "motion.delete_key": "Odstranit klíčový snímek", + "motion.duration_hint": "sekundy (prázdné: na krok)", + "motion.key_here": "Vložit klíčový snímek sem", + "motion.key_here_hint": "Přidat v tomto kroku klíčový snímek s aktuální hodnotou kloubu", + "motion.no_collisions": "Během studie nedochází ke kolizím", + "motion.step_back": "Krok zpět", + "motion.step_forward": "Krok vpřed", + "motion.to_end": "Na konec", + "motion.to_start": "Na začátek", + "motion.track_name": "Stopa {number}", "nav.touchpad.help": "Podržením Shift a pohybem ukazatele posouváte; podržením Alt/Option a pohybem otáčíte. Tlačítko myši není potřeba. Svislé posouvání přibližuje.", "nav.touchpad.label": "Touchpad", "nav.touchpad.orbit": "Otáčení (podržte Alt/Option a pohybujte; bez tlačítka myši)", @@ -716,11 +934,13 @@ "nav.touchpad.zoom": "Přiblížení (svislé posouvání nebo sevření prstů)", "needs two joints": "vyžaduje dva klouby", "new configuration": "nová konfigurace", - "new name": "nový název", "new parameter": "nový parametr", + "no hole": "bez otvoru", "no interference": "bez kolize", "no joint that moves yet": "zatím žádný pohyblivý kloub", "no picture": "bez obrázku", + "none": "žádné", + "parts.automatic_name": "automaticky", "pattern.alignment_2": "Zarovnání 2", "pattern.alignment_hint": "Počty zahrnují originál. Na střed rozloží kopie rovnoměrně; Převrátit volí stranu navíc u sudých počtů.", "pattern.direction_1": "Směr 1", @@ -728,12 +948,19 @@ "pattern.flip_direction": "Převrátit směr", "pick a hole to seat it, or OK places it at the origin": "vyberte otvor pro usazení, nebo OK umístí do počátku", "pick one or two vertices, edges or faces": "vyberte jeden nebo dva vrcholy, hrany či plochy", + "prefs.cpu": "CPU (softwarově)", + "prefs.minutes_suffix": " min", + "properties.title": "Vlastnosti: {name}", + "recovery.days_ago": "před {count} dny", + "recovery.detail": "{file} · prvků: {features} · automaticky uloženo {when}", + "recovery.hours_ago": "před {count} h", + "recovery.just_now": "právě teď", + "recovery.min_ago": "před {count} min", + "recovery.never_saved": "nikdy neuloženo", "render.background": "Pozadí scény", "render.fit": "Přizpůsobit produktu", - "render.image_cancel": "Zrušit render", "render.image_cancelled": "Render zrušen", "render.image_cancelling": "Rušení", - "render.image_check": "Zkontrolovat požadavek na render", "render.image_completed": "Obrázek připraven k exportu", "render.image_encoding": "Kódování PNG", "render.image_export": "Exportovat PNG", @@ -780,6 +1007,19 @@ "sample.plate.name": "Ukázková deska", "sample.vents.about": "Drážky v obdélníkovém poli: řádky, sloupce a rozteč jsou parametry", "sample.vents.name": "Větrací deska", + "search.command_keys": "Enter spustit Shift+Enter spustit a ponechat otevřené Esc zavřít", + "search.commands": "Příkazy", + "search.design": "V tomto návrhu", + "search.feature": "Prvek", + "search.invalid": "Neplatné", + "search.keys": "↑ ↓ vybrat Enter spustit Tab doplnit název Esc zavřít", + "search.no_match": "Žádný příkaz neodpovídá '{query}'", + "search.parameter": "Parametr", + "search.recent": "Nedávné", + "search.run": "Spustit příkaz", + "search.suggest": "Měli jste na mysli {label}?", + "search.try": "Zadejte název příkazu, prvek v tomto návrhu nebo parametr. Chcete-li spustit příkaz s hodnotami, zadejte jeho id a objekt JSON: {example}", + "search.valid": "Platné", "settings.display_quality_note": "Jemnější úrovně kreslí zakřivené plochy a hrany hladčeji, ale síťování trvá déle. Mění se jen zobrazení, nikdy návrh ani exporty.", "settings.frame_rate_note": "Zobrazuje snímky za sekundu v pravém dolním rohu pohledu. Dokud je zapnuto, pohled se překresluje nepřetržitě.", "settings.measure_axis_distances": "Zobrazit vzdálenosti X/Y/Z", @@ -790,29 +1030,51 @@ "settings.reset_intro": "Tato nastavení na tomto počítači nefungují a bránila by spuštění SolidCraftu, proto byla změněna:", "settings.reset_title": "Nastavení byla změněna", "settings.supersampling_note": "Vykresluje pohled ve vyšším rozlišení a poté jej zmenšuje: hladší hrany, čáry a mřížka na obrazovkách pod 4K. Stojí výkon GPU: asi 2,25× více pixelů při 1,5× a 4× při 2×.", + "shortcut.json_error": "parametry musí být ve formátu JSON: {error}", + "shortcut.no_command": "příkaz `{id}` neexistuje; text před JSON musí být ID příkazu", + "shortcut.pin": "Připnout nahoru do pole S", + "shortcut.unpin": "Odepnout", "sketch.degrees_of_freedom": "Stupně volnosti: {count}", + "sketch.dof_left": "Zbývající stupně volnosti: {count}", + "sketch.dof_left_one": "Zbývá {count} stupeň volnosti", "sketch.draw_curves": "Kreslit jako {linetype}", "sketch.make_selection": "Převést výběr na {linetype}", + "sketch.open_ends": "Otevřené {count}", + "sketch.untied_ends": "Nespojené {count}", + "sketch_panel.attached": "Připojeno k {body} / {path}", + "sketch_panel.author": "Umístění autora: {path}", + "sketch_panel.dimension_hint": "Zadejte hodnotu nebo výraz a poté stiskněte OK.", + "sketch_panel.move_hint": "Zadejte vzdálenosti a úhel a poté stiskněte OK.", + "sketch_panel.redefine_title": "{command}: {name}", + "sketch_panel.sheet_attachment": "Připojeno k rovinné ploše plechového tělesa; při změně plechu sleduje tento panel.", + "sketch_panel.text_hint": "Upravte text a jeho umístění a poté stiskněte OK.", + "sketch_panel.use_plane": "Použít rovinu {plane}", "sketch_text.align_center": "Na střed", "sketch_text.align_left": "Vlevo", "sketch_text.align_right": "Vpravo", "sketch_text.bold": "Tučné", "sketch_text.builtin_font": "{family} (vestavěné)", - "sketch_text.font_search": "Hledat písma", "sketch_text.italic": "Kurzíva", "sketch_text.loading_fonts": "Hledání nainstalovaných písem…", "sketch_text.on_path": "Text sleduje svou cestu: umístění určuje křivka", "sketch_text.path_clear": "Odpojit text od křivky", "sketch_text.path_hint": "Křivka náčrtu, kterou text sleduje: klikněte sem a poté na křivku", "sketch_text.use_font_file": "Použít soubor písma {path}", + "solid": "těleso", "the parts library is not available": "knihovna dílů není k dispozici", + "thread.automatic_size": "Automatická velikost", + "thread.designation": "Označení", + "thread.iso_metric": "Metrický ISO", + "thread.select_size": "Vybrat velikost", "timeline.group": "Nová složka prvků", "timeline.move_many": "Přesunout položky časové osy", "timeline.move_to_group": "Přesunout prvky do složky", "timeline.rename_group": "Přejmenovat složku prvků", "timeline.reorder_many": "Změnit pořadí prvků", "timeline.ungroup": "Odebrat složky prvků", + "to the face": "k ploše", "to the next face": "k další ploše", + "toolbar.customize_note": "Karta {tab}. Zaškrtnutím příkazu přidáte jeho tlačítko na panel nástrojů. Můžete také přetáhnout řádek z rozbalovací nabídky panelu na panel nástrojů, odstranit tlačítko přetažením mimo panel nástrojů nebo použít připínáček na řádku rozbalovací nabídky.", "toolbar.image": "OBRÁZEK", "toolbar.render": "RENDER", "toolbar.render_scene": "SCÉNA", @@ -821,18 +1083,21 @@ "trace.stopped_by_loop": "Končí ve vzorku {sample}: smyčku přes {joint} už nelze dále uzavřít", "ui.1_degree_of_freedom": "1 stupeň volnosti", "ui.3d_mouse_speed": "Rychlost 3D myši", - "ui.3d_mouse_windows": "3D myš", "ui.3d_sketch": "3D náčrt", - "ui.about": "O aplikaci", "ui.activate": "Aktivovat", "ui.active_component": "Aktivní komponenta", + "ui.add_configuration": "Přidat konfiguraci", + "ui.add_parameter": "Přidat parametr", "ui.agent_chat": "Chat s agentem", + "ui.agent_chat_add": "Připojit soubory", + "ui.agent_chat_add_file": "Vybrat soubor…", "ui.agent_chat_allow": "Povolit", "ui.agent_chat_allowed": "Povoleno", "ui.agent_chat_answered": "Odpověď: {option}", "ui.agent_chat_approval": "Povolit agentovi tuto akci?", "ui.agent_chat_attach_view": "Přiložit pohled", "ui.agent_chat_attach_view_tip": "Odeslat se zprávou obrázek aktuálního pohledu", + "ui.agent_chat_attachable": "Obrázky, PDF, text a soubory CAD", "ui.agent_chat_auth_agent": "Přihlásit se přes {name}", "ui.agent_chat_auth_env": "Nastavte {vars} v proměnných prostředí a restartujte SolidCraft.", "ui.agent_chat_auth_needed": "Agent žádá o přihlášení. Přihlašujete se přímo u agenta; SolidCraft vaše heslo ani klíče nikdy nevidí.", @@ -852,11 +1117,33 @@ "ui.agent_chat_deny": "Zamítnout", "ui.agent_chat_desktop_only": "Chat s agentem vyžaduje desktopovou aplikaci.", "ui.agent_chat_detecting": "Hledání agentů…", + "ui.agent_chat_dock": "Ukotvit do bočního panelu", "ui.agent_chat_dock_left": "Ukotvit vlevo", "ui.agent_chat_dock_right": "Ukotvit vpravo", + "ui.agent_chat_drop_hint": "Pustěte pro připojení k další zprávě", "ui.agent_chat_edit": "Upravit", "ui.agent_chat_exited": "Agent se zastavil.", "ui.agent_chat_failed_start": "Agenta se nepodařilo spustit: {error}", + "ui.agent_chat_file_cad_not_read": "{name}: soubor CAD se importuje do návrhu, nečte se", + "ui.agent_chat_file_empty_picture": "{name}: prázdný obrázek", + "ui.agent_chat_file_error": "{name}: {error}", + "ui.agent_chat_file_heic": "{name}: obrázky HEIC zde nelze číst; nejprve je exportujte jako JPEG nebo PNG", + "ui.agent_chat_file_importing": "Import do návrhu…", + "ui.agent_chat_file_kinds": "{name}: lze připojit obrázky (PNG, JPEG, GIF, WebP, BMP, TIFF), textové soubory (i SVG) a soubory CAD (STEP, IGES, FreeCAD, Rhino, STL, 3MF, OBJ, glTF)", + "ui.agent_chat_file_loading": "Čtení souboru…", + "ui.agent_chat_file_not_a_file": "{name}: není soubor", + "ui.agent_chat_file_not_a_picture": "{name}: není obrázek", + "ui.agent_chat_file_not_utf8": "{name}: není text UTF-8", + "ui.agent_chat_file_picture_too_big": "{name}: obrázek může mít nejvýše {max} MB", + "ui.agent_chat_file_text_too_big": "{name}: textový soubor může mít nejvýše {max} KB", + "ui.agent_chat_file_too_large": "{name}: příliš velký", + "ui.agent_chat_file_too_large_to_send": "{name}: příliš velký k odeslání, i po zmenšení", + "ui.agent_chat_file_unreadable_picture": "{name}: obrázek, který nelze přečíst", + "ui.agent_chat_files": "Soubory: {files}", + "ui.agent_chat_files_left_out": "K jedné zprávě lze připojit nejvýše {max} souborů; vynecháno: {files}", + "ui.agent_chat_files_loading": "Čekání na přečtení souborů", + "ui.agent_chat_files_max": "K jedné zprávě nejvýše {max} souborů", + "ui.agent_chat_import_failed": "{name}: import selhal: {error}", "ui.agent_chat_intro": "Chatujte s kódovacím agentem, kterého již používáte, nebo s modelem na zvoleném endpointu. Pracuje na otevřeném návrhu pomocí nástrojů SolidCraftu: jeho změny vidíte průběžně a každou zprávu lze vrátit jedním krokem. Co smí dělat bez ptaní, nastavíte v Předvolby > AI.", "ui.agent_chat_key_in_env": "klíč nastaven", "ui.agent_chat_left": "Vlevo", @@ -865,18 +1152,23 @@ "ui.agent_chat_model_tip": "Model, který agent používá. Vaše volba se pro tohoto agenta zapamatuje.", "ui.agent_chat_new": "Nový chat", "ui.agent_chat_new_confirm": "Začít nový chat? Aktuální bude vymazán.", - "ui.agent_chat_new_yes": "Nový chat", + "ui.agent_chat_next_picture": "Další obrázek", "ui.agent_chat_no_cli": "Vedle aplikace nebyl nalezen solidcraft-cli, takže agent nemá přístup k návrhu.", "ui.agent_chat_no_control": "Endpoint chatu s agentem se nespustil, takže agent nemá přístup k návrhu.", "ui.agent_chat_no_images": "Tento agent nepřijímá obrázky", + "ui.agent_chat_no_picture": "Ve schránce není žádný obrázek", "ui.agent_chat_none_found": "Nebyl nalezen žádný kódovací agent. Nainstalujte některého z těchto a stiskněte Obnovit:", "ui.agent_chat_none_found_short": "Agent nenalezen", "ui.agent_chat_not_installed": "Není nainstalován", "ui.agent_chat_not_signed_in": "nepřihlášen", + "ui.agent_chat_own_window": "Vlastní okno", + "ui.agent_chat_paste_picture": "Vložit obrázek", "ui.agent_chat_permission": "Agent žádá o spuštění: {title}", "ui.agent_chat_pick": "Agent", "ui.agent_chat_placeholder": "Požádejte agenta o změnu návrhu…", "ui.agent_chat_placeholder_busy": "Zařadit zprávu, až agent skončí (Ctrl+Enter: odeslat hned)", + "ui.agent_chat_pop_out": "Otevřít ve vlastním okně, které lze přesunout na jinou obrazovku", + "ui.agent_chat_previous_picture": "Předchozí obrázek", "ui.agent_chat_privacy": "Nic se nikam neodesílá, jen agentovi, kterého spouštíte pod vlastním účtem.", "ui.agent_chat_privacy_note": "SolidCraft nic nikam neodesílá: agent, kterého spouštíte, komunikuje se svou službou pod vaším účtem. SolidCraft nikdy nevidí ani neukládá klíč či heslo.", "ui.agent_chat_queue": "Zařadit", @@ -886,6 +1178,8 @@ "ui.agent_chat_refresh": "Obnovit", "ui.agent_chat_refused": "Pro agenta nepovoleno: {reason}", "ui.agent_chat_remove": "Odebrat z fronty", + "ui.agent_chat_remove_file": "Odebrat z této zprávy", + "ui.agent_chat_remove_imported": "Odebrat z této zprávy; díl zůstane v návrhu (Zpět jej odstraní)", "ui.agent_chat_right": "Vpravo", "ui.agent_chat_save": "Uložit", "ui.agent_chat_send": "Odeslat", @@ -930,6 +1224,7 @@ "ui.ai_bad_url": "Zadejte URL začínající http:// nebo https://", "ui.ai_base_url": "Základní URL", "ui.ai_button": "AI", + "ui.ai_command_hint": "my-agent --acp", "ui.ai_copy_suffix": "kopie", "ui.ai_custom_url": "Vlastní URL", "ui.ai_default": "Výchozí", @@ -950,8 +1245,10 @@ "ui.ai_mode_edits_note": "Modelovací příkazy běží bez ptaní; ukládání, otevírání, export a další souborové či destruktivní akce se stále ptají.", "ui.ai_mode_global": "Podle nastavení výše", "ui.ai_model": "Model", + "ui.ai_model_hint": "qwen3:14b", "ui.ai_modes_scope": "Tato nastavení se týkají nástrojů SolidCraftu. Vlastní nástroje agenta (jeho shell, úpravy souborů) se řídí jeho vlastním režimem, který zvolíte v záhlaví panelu chatu, pokud agent režimy má.", "ui.ai_name": "Název", + "ui.ai_name_hint": "Můj agent", "ui.ai_need_command": "Zadejte příkaz, který spouští agenta", "ui.ai_need_model": "Zadejte název modelu", "ui.ai_no_answer": "Agent neodpověděl včas", @@ -982,7 +1279,10 @@ "ui.ai_toolbar_button": "Zobrazit tlačítko na panelu nástrojů", "ui.ai_toolbar_button_note": "Tlačítko AI na pravém konci panelu nástrojů. Ctrl+Shift+A a nabídka Zobrazit panel otevřou i tak.", "ui.ai_undo_tip": "Vrátit jedním krokem vše, co agent u této zprávy změnil", + "ui.ai_url_hint": "https://example.com/v1", "ui.all": "Vše", + "ui.ambient_occlusion": "Okolní zastínění", + "ui.ambient_occlusion_help": "Měkké stínování v místech, kde se stýkají neprůhledné povrchy. Vyžaduje pohled s akcelerací GPU.", "ui.analysis": "Analýza", "ui.angle": "Úhel", "ui.angle_decimals": "Desetinná místa úhlu", @@ -993,7 +1293,8 @@ "ui.anti_aliasing": "Vyhlazování hran", "ui.apply": "Použít", "ui.arc": "Oblouk", - "ui.assemble": "Sestavit", + "ui.assistant": "Asistent", + "ui.assistant_waiting": "Čeká schválení: {count}", "ui.autosave_every": "Automaticky ukládat každých", "ui.axes": "Osy", "ui.axis": "Osa", @@ -1001,8 +1302,14 @@ "ui.base_point": "Základní bod", "ui.blocked": "Blokováno", "ui.bodies": "Tělesa", + "ui.bodies_all_if_none": "Tělesa (všechna, pokud žádné)", "ui.box": "Kvádr", "ui.break": "Přerušit", + "ui.browser_bodies_one": "{count} těleso", + "ui.browser_bodies_other": "{count} těles", + "ui.browser_collapse": "Sbalit prohlížeč", + "ui.browser_expand": "Rozbalit prohlížeč", + "ui.browser_title": "Prohlížeč", "ui.calibrate": "Kalibrovat", "ui.cancel": "Zrušit", "ui.canvases": "Plátna", @@ -1012,7 +1319,6 @@ "ui.chamfer": "Sražení", "ui.chamfer_type": "Typ sražení", "ui.change_workspace": "Změnit pracovní prostředí", - "ui.chord_length": "Délka tětivy", "ui.circle": "Kružnice", "ui.circular_pattern": "Kruhové pole", "ui.clear": "Vymazat", @@ -1045,13 +1351,14 @@ "ui.command_done": "{command} hotovo", "ui.command_palette_hint": "Zadejte příkaz, např. {example} — nebo stiskněte S pro hledání", "ui.concentric": "Soustřednost", - "ui.configurations": "Konfigurace", "ui.conic_curve": "Kuželosečka", "ui.constant": "Konstantní", "ui.constraints_conflict": "Konflikt vazeb", - "ui.construct": "Konstrukce", "ui.construction": "Konstrukční", "ui.context_menu": "Místní nabídka", + "ui.continuity_g0": "G0 hrana", + "ui.continuity_g1": "G1 tečně", + "ui.continuity_g2": "G2 křivost", "ui.continuity_gap": "Mezera", "ui.copy": "Kopírovat", "ui.corner": "Roh", @@ -1072,7 +1379,6 @@ "ui.cylinder": "Válec", "ui.dark": "Tmavý", "ui.default_modelling_orientation": "Výchozí orientace modelování", - "ui.degrees_of_freedom": "stupňů volnosti", "ui.delete": "Smazat", "ui.depth": "Hloubka", "ui.design": "Návrh", @@ -1114,7 +1420,6 @@ "ui.equivalent_radius": "Ekvivalentní poloměr", "ui.expand": "Rozbalit", "ui.exportDxf": "Exportovat DXF…", - "ui.export_ellipsis": "Exportovat...", "ui.export_ellipsis_keymap": "Exportovat…", "ui.export_keymap_tip": "Klávesy, oblíbené z vyhledávání S a panel nástrojů jako soubor", "ui.extend": "Prodloužit", @@ -1138,8 +1443,16 @@ "ui.frame_rate": "Snímková frekvence", "ui.front": "Zepředu", "ui.fully_constrained": "Plně zavazbeno", + "ui.function": "Funkce", "ui.general": "Obecné", "ui.graphics": "Grafika", + "ui.graphics_custom": "Vlastní", + "ui.graphics_performance": "Výkon", + "ui.graphics_preset": "Předvolba grafiky", + "ui.graphics_preset_help": "Kvalita: okolní zastínění, jemná kvalita zobrazení a adaptivní supersampling 2×. Výkon: bez okolního zastínění, normální kvalita zobrazení a supersampling vypnut. Ruční změny zobrazí Vlastní. MSAA zůstává beze změny.", + "ui.graphics_quality": "Kvalita", + "ui.grid_follows_view": "Mřížka sleduje pohled", + "ui.grid_follows_view_hint": "Boční pohledy zobrazí mřížku na svislé rovině, která je k nim přivrácená, místo na zemi", "ui.ground_shadow": "Stín na podložce", "ui.groupSelected": "Seskupit vybrané", "ui.heading_add_ins": "DOPLŇKY", @@ -1166,6 +1479,7 @@ "ui.heading_home": "DOMŮ", "ui.heading_insert": "VLOŽIT", "ui.heading_inspect": "ANALÝZA", + "ui.heading_interference": "KOLIZE", "ui.heading_loft": "SPOJENÍ PROFILŮ", "ui.heading_make": "VÝROBA", "ui.heading_measure": "MĚŘENÍ", @@ -1196,7 +1510,6 @@ "ui.heading_sheet_metal": "PLECH", "ui.heading_shell": "SKOŘEPINA", "ui.heading_sketch": "NÁČRT", - "ui.heading_sketch_palette": "PALETA NÁČRTU", "ui.heading_sketch_scale": "MĚŘÍTKO NÁČRTU", "ui.heading_solid": "TĚLESO", "ui.heading_sphere": "KOULE", @@ -1215,6 +1528,7 @@ "ui.hideOrigin": "Skrýt počátek", "ui.hidePlanes": "Skrýt roviny", "ui.hideProfile": "Skrýt profil", + "ui.history_title": "Historie", "ui.hole": "Otvor", "ui.hole_tap_type": "Typ závitu otvoru", "ui.hole_type": "Typ otvoru", @@ -1234,11 +1548,12 @@ "ui.length_decimals": "Desetinná místa délky", "ui.light": "Světlý", "ui.line": "Úsečka", - "ui.linetype": "Typ čáry", "ui.lock": "Zamknout", "ui.loft": "Spojení profilů", "ui.look_at": "Pohled kolmo", "ui.look_at_anim_desc": "Pohled podél osy, pohled kolmo, výchozí pohled a přizpůsobení", + "ui.manipulator_free_alt": "Volné tažení manipulátorem také s Alt/Option", + "ui.manipulator_free_alt_tip": "Zapnuto: Alt/Option nebo Ctrl/Cmd na šipkách vysunutí / manipulátoru vypne přichytávání hodnot. Vypnuto: pouze Ctrl/Cmd.", "ui.manufacture": "Výroba", "ui.material_review.axes": "Lokální osy materiálu; orientace tělesa není přiřazena.", "ui.material_review.claims": "Zdroje a licence jsou neověřená tvrzení. Chybějící hodnoty zůstávají neznámé.", @@ -1266,10 +1581,8 @@ "ui.mesh_format_3mf": "3MF", "ui.mesh_format_3mf_tagged": "3MF se značkami ploch", "ui.mesh_format_stl": "STL", - "ui.midpoint": "Střed", "ui.mirror": "Zrcadlit", "ui.mirror_line": "Osa zrcadlení", - "ui.modify": "Upravit", "ui.move": "Posunout", "ui.multiple": "Více", "ui.named_views": "Pojmenované pohledy", @@ -1278,6 +1591,7 @@ "ui.newSketchGroup": "Nová skupina náčrtů", "ui.new_body": "Nové těleso", "ui.new_design": "Nový návrh", + "ui.no_geometry_yet": "Zatím žádná geometrie", "ui.no_slicer_found": "Nebyl nalezen žádný slicer", "ui.normal": "Běžná", "ui.normalConstruction": "Běžná / konstrukční", @@ -1289,7 +1603,7 @@ "ui.offset_plane": "Odsazená rovina", "ui.one_side": "Jedna strana", "ui.open": "Otevřít", - "ui.open_ellipsis": "Otevřít...", + "ui.open_ends_tip": "Nic se nedotýká", "ui.open_preferences": "Otevřít předvolby", "ui.open_recent": "Otevřít nedávné", "ui.operation": "Operace", @@ -1298,12 +1612,14 @@ "ui.orbit_around": "Otáčet kolem", "ui.orientation": "Orientace", "ui.origin": "Počátek", - "ui.palette_points": "Body", - "ui.palette_profile": "Profil", + "ui.palette_construction_mode": "Konstrukční režim (X)", + "ui.palette_more": "Další", + "ui.palette_sketch_options": "Možnosti náčrtu", "ui.pan": "Posun", "ui.pan_zoom_orbit": "Posun, přiblížení, otáčení", "ui.parallel": "Rovnoběžnost", "ui.parameters": "Parametry", + "ui.part_size_shared": "Přestaví díl a nahradí všechny přidané prvky. Aktualizují se všechny výskyty této komponenty.", "ui.paste": "Vložit", "ui.path": "Cesta", "ui.pattern_on_path": "Pole po cestě", @@ -1315,6 +1631,12 @@ "ui.placement": "Umístění", "ui.plane": "Rovina", "ui.plane_at_angle": "Rovina pod úhlem", + "ui.plugins": "Moduly plug-in", + "ui.plugins_desktop": "Moduly plug-in jsou dostupné v desktopové aplikaci.", + "ui.plugins_empty": "Nejsou nainstalovány žádné moduly plug-in.", + "ui.plugins_note": "Každý modul plug-in je složka v {path} se souborem plugin.json. SolidCraft tento soubor přečte a žádný kód ze složky nespouští. Vypnutím modulu zůstane nainstalován.", + "ui.plugins_skipped": "Složek, které nešlo přečíst: {count}.", + "ui.plugins_version": "{version}", "ui.point": "Bod", "ui.point_under_the_cursor": "Bod pod kurzorem", "ui.points": "Body", @@ -1333,11 +1655,17 @@ "ui.quit": "Ukončit", "ui.radial_context_menu": "Kruhová místní nabídka", "ui.radius": "Poloměr", - "ui.radius_type": "Typ poloměru", + "ui.rail": "Vodicí křivka", + "ui.rail_fit": "Přizpůsobení vodicí křivce", "ui.reachable": "Dosažitelné", "ui.rectangle": "Obdélník", "ui.rectangular_pattern": "Obdélníkové pole", "ui.redo": "Znovu", + "ui.relink_design_changed": "Sestava se při výběru zdroje změnila. Spusťte Znovu propojit zdroj znovu.", + "ui.relink_done": "Zdroj byl znovu propojen pro všechny instance.", + "ui.relink_not_linked": "Tato komponenta není propojena se zdrojovým návrhem.", + "ui.relink_select_one": "Nejprve vyberte jednu propojenou komponentu nebo jednu z jejích instancí.", + "ui.relink_source_all": "Znovu propojit zdroj (všechny instance)…", "ui.removeFromToolbar": "Odebrat z panelu nástrojů", "ui.removeSection": "Odebrat řez", "ui.render": "Render", @@ -1349,12 +1677,16 @@ "ui.reset_the_settings_on_this_page": "Obnovit nastavení na této stránce", "ui.restore": "Obnovit", "ui.restore_defaults": "Obnovit výchozí", + "ui.reverse_horizontal_pan_direction": "Obrátit směr vodorovného posunu", + "ui.reverse_horizontal_pan_tip": "Vodorovné posouvání dvěma prsty a palcové kolečko posouvají opačným směrem", "ui.reverse_zoom_direction": "Obrátit směr přiblížení", "ui.revolve": "Rotace", + "ui.ribbon_exit": "Ukončit", + "ui.ribbon_pin_footer": "Připnuté příkazy se zobrazují na pásu karet. Najetím na řádek jej připnete nebo odepnete.", + "ui.ribbon_workspace": "Pracovní prostředí", "ui.right": "Zprava", "ui.save": "Uložit", "ui.save_as": "Uložit jako", - "ui.save_as_ellipsis": "Uložit jako...", "ui.save_mesh_no_slicer": "Nebyl nalezen žádný slicer: zvolte Vlastní… a vyberte svůj slicer, nebo vypněte Odeslat do sliceru", "ui.save_mesh_pick_bodies": "Vyberte tělesa k uložení", "ui.save_mesh_temp_failed": "Nelze vytvořit {folder}: {error}", @@ -1362,12 +1694,15 @@ "ui.sbox_pin": "Připnout nahoru ve vyhledávání S", "ui.sbox_unpin": "Odepnout", "ui.scale": "Měřítko", + "ui.second_rail": "Druhá vodicí křivka", "ui.section_analysis": "Analýza řezu", "ui.select": "Vybrat", "ui.selectOther": "Vybrat jiné…", "ui.selectTangentChain": "Vybrat tečný řetězec", - "ui.select_other_hint": "Vybrat jiné: podržte levé tlačítko na modelu (nebo pravé tlačítko › Vybrat jiné…) a zobrazí se vše pod kurzorem; dalším kliknutím na stejné místo vyberete další prvek.", "ui.selection": "Výběr", + "ui.selection_modifiers": "Modifikátory výběru", + "ui.selection_shift_add_only": "Shift+klik pouze přidává", + "ui.selection_shift_add_only_tip": "Zapnuto: Shift přidává položky, Ctrl/Cmd přepíná. Vypnuto (výchozí): Shift i Ctrl/Cmd přepínají.", "ui.send": "Odeslat", "ui.send_to_slicer": "Odeslat do sliceru", "ui.sent_to_slicer": "Odesláno do {slicer}", @@ -1383,7 +1718,6 @@ "ui.show_constraints": "Vazby", "ui.show_construction_geometries": "Konstrukční geometrie", "ui.show_dimensions": "Kóty", - "ui.show_points": "Zobrazit body", "ui.show_profile": "Zobrazit profil", "ui.show_projected_geometries": "Promítnuté geometrie", "ui.simple": "Jednoduchý", @@ -1392,8 +1726,8 @@ "ui.sketch": "Náčrt", "ui.sketch_dimension": "Kóta náčrtu", "ui.sketch_grid": "Mřížka náčrtu", + "ui.sketch_modifiers": "Modifikátory náčrtu", "ui.sketch_scale": "Měřítko náčrtu", - "ui.sketch_status": "Stav náčrtu", "ui.sketches": "Náčrty", "ui.slice": "Řez", "ui.slicer": "Slicer", @@ -1439,11 +1773,14 @@ "ui.stand_up_tip": "Když se soubor STEP nebo IGES otevře s osou Z nahoru, nabídnout otočení o čtvrt otáčky kolem X", "ui.start": "Start", "ui.start_over": "Začít znovu", - "ui.start_radius": "Počáteční poloměr", + "ui.start_page": "Úvodní stránka", + "ui.stretch": "Natáhnout", "ui.supersampling": "Supersampling (SSAA)", "ui.supersampling_adaptive": "Jen když je pohled v klidu", "ui.supersampling_off": "Vypnuto (1×)", "ui.suppress": "Potlačit", + "ui.suppress_auto_snap": "Potlačit automatické přichytávání při kreslení / tažení", + "ui.suppress_auto_snap_note": "Výchozí: Ctrl/Cmd i Alt/Option potlačí přichytávání v náčrtu. Výběrem jedné klávesy to omezíte.", "ui.sweep": "Tažení", "ui.sweep_follow_direction": "Sledovat směr", "ui.sweep_keep_as_drawn": "Zachovat jak nakresleno", @@ -1458,6 +1795,8 @@ "ui.theme": "Motiv", "ui.thickness": "Tloušťka", "ui.thread": "Závit", + "ui.tie_ends": "Spojit", + "ui.tie_ends_tip": "Svázat všechny nespojené konce", "ui.timeline_bottom": "Časová osa dole", "ui.timeline_left_note": "Rozložení vlevo zobrazuje lištu historie nad prohlížečem dílů a scény.", "ui.timeline_left_sidebar": "Levý postranní panel", @@ -1480,16 +1819,28 @@ "ui.units_of_new_designs": "Jednotky nových návrhů", "ui.unlock": "Odemknout", "ui.unsuppress": "Zrušit potlačení", + "ui.untied_ends_tip": "Dotýká se pouze polohou", "ui.untitled": "Bez názvu", "ui.up_axis_note": "Která osa v pohledech míří nahoru (pohled podél osy, výchozí pohled, pohled kolmo). Návrhy se nemění.", "ui.updateToCurrentView": "Aktualizovat na aktuální pohled", - "ui.variable": "Proměnný", "ui.view_centre": "Střed pohledu", "ui.visual_shaded_hidden_edges": "Stínovaný se skrytými hranami", "ui.visual_shaded_with_edges": "Stínovaný s hranami", "ui.visual_style": "Vizuální styl", "ui.visual_wireframe": "Drátový model", "ui.workspace": "pracovní prostředí", + "ui.workspace_animation_description": "Rozložené pohledy, studie pohybu a scénáře", + "ui.workspace_available": "Dostupné", + "ui.workspace_current": "Aktuální", + "ui.workspace_design_description": "Náčrty, modelování, sestavy a kontrola", + "ui.workspace_design_tabs": "Model · Plocha · Sestava · Vložit · Kontrola · Správa · Zobrazení", + "ui.workspace_drawing_description": "2D výkresy s pohledy, kótami a popisovými poli", + "ui.workspace_footer": "Všechna pracovní prostředí pracují se stejným návrhem, historií a výběrem; mění se pouze karty pásu karet. Přepínač je zamknutý, dokud se upravuje náčrt nebo prvek.", + "ui.workspace_manufacture_description": "Slicing, dráhy nástroje a nastavení", + "ui.workspace_planned": "Plánováno", + "ui.workspace_render_description": "Náhled produktu, nastavení scény a renderované obrázky", + "ui.workspace_render_tabs": "Scéna · Obrázek", + "ui.workspace_simulation_description": "Zatížení, vazby a výsledky", "ui.x_distance": "Vzdálenost X", "ui.y_distance": "Vzdálenost Y", "ui.y_up": "Y nahoru", @@ -1499,7 +1850,6 @@ "ui.zoom_to_the_cursor": "Přibližovat ke kurzoru", "update.available": "Je k dispozici SolidCraft {version}", "update.button": "Aktualizovat", - "update.button_tip": "Je k dispozici SolidCraft {version}", "update.button_version": "Aktualizovat na {version}", "update.check_automatically": "Automaticky kontrolovat aktualizace", "update.check_now": "Zkontrolovat nyní", @@ -1531,5 +1881,6 @@ "update.title": "Je k dispozici aktualizace", "update.up_to_date": "SolidCraft je aktuální.", "update.update_now": "Aktualizovat nyní", - "update.you_have": "Máte {version}." + "update.you_have": "Máte {version}.", + "↑ ↓ choose · Enter / Tab complete · Esc dismiss": "↑ ↓ vybrat · Enter / Tab doplnit · Esc zavřít" } diff --git a/assets/locales/da.json b/assets/locales/da.json index 5ffc6bb2f..8bb964ef7 100644 --- a/assets/locales/da.json +++ b/assets/locales/da.json @@ -3,11 +3,14 @@ "1. Open GitHub draft below, then paste the report copied to your clipboard.": "1. Åbn GitHub-kladden nedenfor, og indsæt rapporten fra udklipsholderen.", "1. Open GitHub draft below. Your title and report will be filled in.": "1. Åbn GitHub-kladden nedenfor. Titel og rapport udfyldes automatisk.", "2. Attach your screenshot: copy and paste it, or save and upload the PNG.": "2. Vedhæft dit skærmbillede: Kopiér og indsæt det, eller gem og upload PNG-filen.", + "2D": "2D", "3. Click Submit new issue on GitHub to send your report.": "3. Klik på Submit new issue på GitHub for at sende rapporten.", "A new configuration, a copy of the active one": "Opret en ny konfiguration som en kopi af den aktive", - "AI": "AI", + "ARRANGE": "ARRANGER", "About SolidCraft": "Om SolidCraft", "Acceleration": "Acceleration", + "Access": "Adgang", + "Actions": "Handlinger", "Active": "Aktiv", "Active rule": "Aktiv regel", "Add": "Tilføj", @@ -15,6 +18,7 @@ "Add Mid Radius": "Tilføj mellemradius", "Add Row": "Tilføj række", "Add condition": "Tilføj betingelse", + "Add or edit rule": "Tilføj eller redigér regel", "Against": "Mod", "Alignment": "Justering", "All Sketch Points": "Alle skitsepunkter", @@ -28,8 +32,11 @@ "Applied Radius": "Anvendt radius", "Apply To": "Anvend på", "Apply to selection": "Anvend på markering", + "Apply your appearance first. Exports assigned appearances and materials created in this design.": "Anvend først dit udseende. Eksporterer tildelte udseender og materialer oprettet i dette design.", "Arc length": "Buelængde", "Area": "Areal", + "As-Built": "Som bygget", + "Assign Rule": "Tildel regel", "Attachment": "Tilknytning", "BLEND SURFACE": "OVERGANGSFLADE", "BOUNDARY SURFACE": "AFGRÆNSET OVERFLADE", @@ -37,12 +44,21 @@ "Bend Line Position": "Bukkelinjens placering", "Bend Position": "Bukningens placering", "Bend Radius": "Bukkeradius", + "Bend Table": "Bukketabel", "Bends": "Bukninger", + "Bodies": "Emner", "Body": "Emne", "Boundary": "Afgrænsning", "Bounding box": "Omsluttende boks", + "CHECK": "KONTROLLÉR", + "COMPONENTS": "KOMPONENTER", + "CONFIGURATIONS": "KONFIGURATIONER", + "CONSTRAIN": "BIND", + "CONTACT": "KONTAKT", + "CONVERT": "KONVERTÉR", "CSV or JSON: updates existing parameters, adds new ones": "CSV eller JSON: Opdaterer eksisterende parametre og tilføjer nye", "Capture All Positions": "Registrér alle positioner", + "Capture Pos.": "Registrér pos.", "Catch Direction": "Indgrebsretning", "Cells": "Celler", "Center X": "Centrum X", @@ -53,15 +69,19 @@ "Check collisions": "Kontrollér kollisioner", "Checked": "Kontrolleret", "Choose a new plane. Sketch geometry and dimensions stay unchanged in its two-dimensional coordinates.": "Vælg et nyt plan. Skitsegeometri og mål bevarer deres todimensionelle koordinater.", + "Choose…": "Vælg…", + "Circular": "Cirkulær", "Circumference": "Omkreds", "Close draft": "Luk kladde", "Collisions": "Kollisioner", "Colour": "Farve", + "Comment": "Kommentar", "Component1": "Komponent1", + "Config Table": "Konfig.tabel", "Configuration": "Konfiguration", "Configuration rules": "Konfigurationsregler", - "Construction": "Konstruktionsgeometri", "Contact": "Kontakt", + "Contact Sets": "Kontaktsæt", "Contact sets": "Kontaktsæt", "Continuity": "Kontinuitet", "Copy Error Message": "Kopiér fejlmeddelelse", @@ -79,15 +99,17 @@ "Cube": "Terning", "Current orthographic view (1:1 mm)": "Aktuel visning uden perspektiv (1:1 mm)", "Current perspective view": "Aktuel perspektivvisning", + "Curv. Comb": "Krumningskam", "Curvature (G2)": "Krumningskontinuitet (G2)", "Curvature change (G3)": "Ændring i krumning (G3)", "Customize Toolbar": "Tilpas værktøjslinje", + "Delete": "Slet", "Delete all": "Slet alle", "Delete rule": "Slet regel", "Delete the row": "Slet rækken", "Delete the set": "Slet sættet", - "Delete this parameter": "Slet denne parameter", "Density": "Densitet", + "Dependents": "Afhængige", "Designs you open or save appear here.": "Designs, du åbner eller gemmer, vises her.", "Determined by To Object. Choose Angle to edit the angular extent.": "Bestemmes af Til objekt. Vælg Vinkel for at ændre vinkeludstrækningen.", "Direction": "Retning", @@ -99,6 +121,7 @@ "Drive Joint": "Bevæg led", "Duration": "Varighed", "Edges": "Kanter", + "Edit": "Redigér", "Edit Profile Sketch": "Redigér profilskitse", "Enable rule": "Aktivér regel", "Enabled": "Aktiveret", @@ -107,43 +130,63 @@ "Explode": "Adskil", "Explode Text": "Opløs tekst", "Export Animation…": "Eksportér animation…", + "Export CSV…": "Eksportér CSV…", "Export Current View as DXF": "Eksportér aktuel visning som DXF", "Export Current View as DXF…": "Eksportér aktuel visning som DXF…", + "Export DXF": "Eksportér DXF", "Export DXF…": "Eksportér DXF…", + "Export JSON…": "Eksportér JSON…", "Export hidden edges as dashed lines": "Eksportér skjulte kanter som stiplede linjer", + "Expression": "Udtryk", "Extend to meet": "Forlæng, til de mødes", "Extents": "Udstrækning", + "FILES": "FILER", + "FLAT": "FLAD", "Face": "Flade", "Face attachment lost": "Forbindelsen til fladen er mistet", "Faces": "Flader", "Faces / edges / vertices": "Flader / kanter / hjørnepunkter", + "Fastener": "Befæstigelse", + "Favorites": "Favoritter", "Favourite": "Favorit", + "Feature": "Feature", "Files from many CAD programs have Y up, so they open lying on their back here (Z up).": "Filer fra mange CAD-programmer har Y opad og åbnes derfor liggende på ryggen her (Z opad).", "Filter": "Filter", "Find in Browser": "Find i modeltræ", - "Flat": "Flad", + "Finish": "Afslut", + "Flat Pattern": "Flad afvikling", "Flat size": "Bredde mellem flader", "Follow camera (Look At sketches)": "Følg kamera (Se på skitser)", "Follow the camera (Look At sketches)": "Følg kameraet (Se på skitser)", "Font": "Skrifttype", + "From Bodies": "Fra emner", "From edges": "Fra kanter", "Full Length": "Fuld længde", + "Gap": "Spalte", "Grid": "Gitter", + "HISTORY": "HISTORIK", "Height": "Højde", "Hidden edges": "Skjulte kanter", "Holes": "Huller", "Holes (edges on them)": "Huller (kanterne omkring dem)", "Home view": "Hjemmevisning", + "Horiz./Vert.": "Vandr./Lodr.", + "IMAGES": "BILLEDER", + "Import…": "Importér…", "In This Design": "I dette design", "In place (surfaces)": "På stedet (overflader)", "In plane": "I planet", "Inside": "Indvendigt", "Interferes": "Overlapper", + "Isocurve": "Isokurve", "Issue title": "Titel på issue", + "JOINTS": "LED", "Joint Origin1": "Lednulpunkt1", "Keep (points on it)": "Behold (punkter på fladen)", "Keep Tools": "Behold værktøjsemner", "Keep of the other surface": "Behold fra den anden overflade", + "LIBRARY": "BIBLIOTEK", + "LINKS": "LINKS", "Later": "Senere", "Leave it": "Lad det være", "Legacy face attachment. Rebinding to a certified face creates an exact attachment.": "Ældre fladetilknytning. Ny tilknytning til en certificeret flade giver en præcis tilknytning.", @@ -151,47 +194,70 @@ "Length units": "Længdeenheder", "Letter Spacing": "Tegnafstand", "Library": "Bibliotek", + "Library file": "Biblioteksfil", "Line Spacing": "Linjeafstand", + "Local library": "Lokalt bibliotek", "Loop": "Løkke", + "MANAGE": "ADMINISTRÉR", + "MATERIALS": "MATERIALER", + "MODEL": "MODEL", + "MOTION": "BEVÆGELSE", "Margin": "Margen", "Mass": "Masse", + "Mass Center": "Massecentrum", + "Matched restrictions check the final values.": "Matchede begrænsninger kontrollerer de endelige værdier.", "Material": "Materiale", "Max": "Maks.", "Mid Radius": "Mellemradius", "Middle double-click": "Dobbeltklik med midterste museknap", "Min": "Min.", "Mitre": "Gering", + "Model Parameters": "Modelparametre", "Modeled": "Modelleret", "More toolbar panels": "Flere værktøjspaneler", "Motion": "Bevægelse", + "Move / Copy": "Flyt / Kopiér", "Move Type": "Flytningstype", + "Move down": "Flyt ned", "Move earlier": "Flyt tidligere", "Move later": "Flyt senere", + "Move up": "Flyt op", "Name": "Navn", "Nearest": "Nærmeste", + "New": "Ny", + "New Comp.": "Ny komp.", + "New Sketch": "Ny skitse", + "New rule…": "Ny regel…", "New study": "Ny analyse", "No crash reports.": "Ingen nedbrudsrapporter.", + "No matching appearance presets.": "Ingen matchende udseendeforudindstillinger.", "No matching appearances": "Ingen matchende udseender", "No visible bodies to export.": "Der er ingen synlige emner at eksportere.", "None": "Ingen", - "Normal to sketch": "Vinkelret på skitse", "Not available yet": "Endnu ikke tilgængelig", "Notch": "Udskæring", + "OUTPUT": "OUTPUT", "Opacity": "Opacitet", "Open GitHub draft": "Åbn GitHub-kladde", + "Open local libraries in the desktop app. You can export this design's library here.": "Åbn lokale biblioteker i desktopappen. Du kan eksportere dette designs bibliotek her.", "Open-source parametric 3D CAD in Rust. Licensed MIT OR Apache-2.0.": "Parametrisk 3D-CAD i Rust med åben kildekode. Licenseret under MIT OR Apache-2.0.", + "Operator": "Operator", "Other side": "Anden side", "Other surface (mutual trim)": "Anden overflade (trim begge)", "Outside": "Udvendigt", "Overall length": "Samlet længde", - "Parameter values": "Parameterværdier", + "Param. Graph": "Param.graf", + "Parameter": "Parameter", + "Parts": "Dele", "Pass through": "Gå igennem", "Path": "Bane", + "Pattern": "Mønster", "Per Edge": "Pr. kant", "Pick the tool bodies": "Vælg værktøjsemnerne", "Picked": "Valgt", "Picked point": "Valgt punkt", "Place at the origin instead": "Placér ved nulpunktet i stedet", + "Plastic Rules": "Plastregler", "Playback": "Afspilning", "Plot": "Diagram", "Position": "Position", @@ -202,10 +268,11 @@ "Preview Row": "Forhåndsvis række", "Preview leaves the current design unchanged.": "Forhåndsvisning ændrer ikke det aktuelle design.", "Profiles/Curves": "Profiler/kurver", - "Projection": "Projektion", "Quantity": "Antal", "RECENT": "SENESTE", + "REFERENCE": "REFERENCE", "RULED SURFACE": "REGELFLADE", + "RULES": "REGLER", "Radius Fit": "Tilpasning af radius", "Ratio": "Forhold", "Reattach selected face": "Tilknyt den valgte flade igen", @@ -223,6 +290,8 @@ "Remove this point": "Fjern dette punkt", "Report a bug — review a screenshot and open a GitHub draft": "Rapportér en fejl — gennemgå et skærmbillede, og åbn en GitHub-kladde", "Reset Toolbar": "Nulstil værktøjslinje", + "Resize Part": "Ændr størrelse på del", + "Restore View": "Gendan visning", "Restore outer boundary": "Gendan ydre afgrænsning", "Restore the inherited component or physical material appearance": "Gendan udseendet fra komponenten eller det fysiske materiale", "Result": "Resultat", @@ -231,18 +300,27 @@ "Reverse Direction": "Vend retning", "Revert": "Tilbagefør", "Revert All Positions": "Tilbagefør alle positioner", + "Revert Pos.": "Fortryd pos.", "Revert Position": "Tilbagefør position", "Review the report and screenshot before opening GitHub.": "Gennemgå rapport og skærmbillede, før du åbner GitHub.", "Rim Edge": "Randkant", "Roll History Marker Here": "Flyt tilbagerulningsmarkør hertil", "Round": "Rund", "Rule": "Regel", + "Rule name": "Regelnavn", + "Rules run from top to bottom. Matched drives change effective values.": "Regler køres oppefra og ned. Matchede drivere ændrer de effektive værdier.", + "SECTION": "SNIT", + "SURFACE QUALITY": "OVERFLADEKVALITET", "Save Rule": "Gem regel", + "Save View": "Gem visning", "Save the study as an animated GIF, seen as the viewport shows it": "Gem undersøgelsen som en animeret GIF med samme visning som i modelvinduet", "Saved preview. Geometry is being checked before editing.": "Gemt forhåndsvisning. Geometrien kontrolleres før redigering.", "Scale factor": "Skaleringsfaktor", + "Scene": "Scene", "Search": "Søg", "Search commands": "Søg efter kommandoer", + "Search this library": "Søg i dette bibliotek", + "Section": "Snit", "Select Other: hold the left button still on the model (or right-click › Select Other…) to list everything under the cursor; click again on the same spot to select the next thing there. Double-click the middle button to go Home (Preferences › Navigation).": "Vælg andet: Hold venstre museknap nede uden at flytte markøren på modellen (eller højreklik › Vælg andet…) for at vise alt under markøren. Klik igen samme sted for at vælge næste objekt. Dobbeltklik på den midterste museknap for at gå til Hjem (Indstillinger › Navigation).", "Select bodies (a face picks its body)": "Vælg emner (en flade vælger sit emne)", "Select bodies or faces instead": "Vælg emner eller flader i stedet", @@ -250,6 +328,7 @@ "Semantic faces share their appearance across instances.": "Semantiske flader deler udseende på tværs af instanser.", "Send your report on GitHub": "Send din rapport på GitHub", "Shape": "Form", + "Sheet Rules": "Pladeregler", "Show Agent Cursor": "Vis agentmarkør", "Show in folder": "Vis i mappe", "Show the pointer an AI agent moves (#35)": "Vis markøren, som en AI-agent bevæger (#35)", @@ -263,6 +342,7 @@ "Sketch points": "Skitsepunkter", "Slot width": "Slidsbredde", "SolidCraft closed before these designs were saved. Their last autosave can be opened.": "SolidCraft lukkede, før disse designs blev gemt. Den seneste automatiske lagring kan åbnes.", + "Specialise": "Specialisér", "Speed": "Hastighed", "Stand it up": "Stil op", "Stand it up: a quarter turn about X, as one Move feature you can undo.": "Stil op: En kvart omdrejning om X som én flyttefeature, der kan fortrydes.", @@ -301,17 +381,19 @@ "Turn off section analysis before exporting the view.": "Slå snitanalyse fra, før visningen eksporteres.", "Type": "Type", "UNTRIM": "FJERN BESKÆRING", + "Unit": "Enhed", "Updating the preview": "Opdaterer forhåndsvisningen", "Use active author placement": "Brug den aktive komponents placering", "Use fixed plane": "Brug fast plan", "Use saved fixed plane": "Brug gemt fast plan", "Use selected face as fixed plane": "Brug valgt flade som fast plan", + "User Parameters": "Brugerparametre", "VIEW": "VISNING", + "VIEWS": "VISNINGER", "Value": "Værdi", "Velocity": "Hastighed", "Vertices": "Hjørnepunkter", "View navigator": "Visningsnavigator", - "Visible bodies only. Curves use line segments (0.01 mm tolerance).": "Kun synlige emner. Kurver består af linjestykker (tolerance: 0,01 mm).", "Volume": "Volumen", "Wall": "Væg", "Wall Location": "Vægplacering", @@ -319,6 +401,13 @@ "When": "Når", "Width": "Bredde", "Will fail": "Vil fejle", + "X angle": "X-vinkel", + "X distance": "X-afstand", + "Y angle": "Y-vinkel", + "Y distance": "Y-afstand", + "Z angle": "Z-vinkel", + "Z distance": "Z-afstand", + "Zebra": "Zebra", "angle, height": "vinkel, højde", "appearance.dielectric_ior": "Dielektrisk brydningsindeks", "appearance.metallic": "Metallisk", @@ -327,7 +416,13 @@ "appearance.roughness": "Ruhed", "appearance.surface_response": "Overfladens reaktion på lys", "browser.body_name": "Emne{number}", + "browser.calibrate_title": "Kalibrér: {name}", + "browser.capture_many": "{count} komponenter er flyttet, men deres positioner er ikke registreret.", + "browser.capture_note": "Registrér beholder den nye position; Fortryd sætter den tilbage.", + "browser.capture_one": "En komponent er flyttet, men dens position er ikke registreret.", "browser.component_name": "Komponent{number}", + "browser.edit_canvas_title": "Redigér lærred: {name}", + "browser.move_title": "Flyt: {name}", "browser.parameters": "Parametre ({count})", "browser.precision": "Præcision: {precision}", "browser.sketch_name": "Skitse{number}", @@ -455,6 +550,7 @@ "cmd.joint_drive": "Bevæg led", "cmd.joint_edit": "Redigér led", "cmd.joint_gear": "Tandhjul", + "cmd.joint_inspect": "Undersøg led", "cmd.joint_limits": "Bevægelsesgrænser for led", "cmd.joint_list": "Vis led", "cmd.joint_motion_link": "Bevægelseskobling", @@ -613,6 +709,7 @@ "cmd.sketch_spline_fit_point": "Spline gennem punkter", "cmd.sketch_spun_profile": "Omdrejningsprofil", "cmd.sketch_toggle_driven": "Skift mellem styrende og afledt mål", + "cmd.sketch_trim_path": "Trim langs bane", "cmd.solid_align": "Justér", "cmd.solid_boundary_fill": "Afgrænset udfyldning", "cmd.solid_bounding_solid": "Omsluttende emne", @@ -663,7 +760,15 @@ "cmd.view_navigate": "Navigér i visning", "cmd.view_rename": "Omdøb navngiven visning", "cmd.view_save": "Ny navngiven visning", - "command name": "kommandonavn", + "color.copy": "Klik for at kopiere farveværdier", + "color.edit": "Klik for at redigere farve", + "color.gamma": "Viser farveværdier i 0-255 gammarum", + "color.hue": "Farvetone", + "color.linear": "Viser farveværdier i 0-1 lineært rum", + "color.saturation_value": "Mætning og værdi", + "color.selected": "Valgt farve", + "contact.components_count": "{count} komponenter", + "contact.enabled_label": "aktiveret", "coupling.gear_1": "Tandhjul 1", "coupling.gear_1_pick": "Tandhjul 1 (valgfrit)", "coupling.gear_2": "Tandhjul 2", @@ -680,6 +785,21 @@ "coupling.rack": "Tandstang", "coupling.radius_1": "Radius 1", "coupling.radius_2": "Radius 2", + "crash.announce": "SolidCraft blev lukket uventet eller stødte på en intern fejl sidste gang. En nedbrudsrapport er gemt (Hjælp > Nedbrudsrapporter…).", + "crash.copy_folder": "Kopiér mappesti", + "crash.copy_path": "Kopiér sti", + "crash.deleted": "Slettede {count} rapport(er).", + "crash.detected_time": "Registreret {time} UTC", + "crash.intro": "Nedbrudsrapporter bliver på denne computer og sendes aldrig nogen steder hen. Rapportér… åbner en kladde, som du gennemgår, før noget deles.", + "crash.kind_command": "Intern fejl i en kommando", + "crash.kind_internal": "Intern fejl", + "crash.kind_kernel": "Kernefejl (genoprettet)", + "crash.kind_unclean": "Lukket uventet", + "crash.previous_session": "En tidligere SolidCraft-session sluttede uventet eller stødte på en intern fejl. Rapporter fra uventede afslutninger registreres ved opstart. Se Hjælp > Nedbrudsrapporter… for detaljer.", + "crash.replayable": "kan afspilles", + "crash.report": "Rapportér…", + "crash.unclean_explanation": "Registreret ved en senere opstart; det nøjagtige afslutningstidspunkt blev ikke noteret. Et systemnedlukning eller tvunget stop kan også give en uventet afslutning.", + "delete.and_more": "… og {count} mere", "dialog.bodies_count": "Antal emner: {count}", "dialog.clearance_invalid": "afstanden skal være 0 eller større", "dialog.compute": "Beregn", @@ -687,6 +807,8 @@ "dialog.computing": "Beregner… {seconds} s", "dialog.could_not_be_checked": "kunne ikke kontrolleres", "dialog.custom_axis": "↖ Brugerdefineret akse", + "dialog.dimension_insert_hint": "Klik på et andet styrende mål for at indsætte dets navn", + "dialog.dimension_name": "Mål: {name}", "dialog.edit_title": "REDIGÉR {title}", "dialog.select": "↖ Vælg", "dialog.selected_count": "↖ Valgte: {count}", @@ -710,9 +832,30 @@ "dxf.progress.write": "Skriver DXF (5/5)", "dxf.tolerance": "Kurvetolerance", "dxf.tolerance_help": "Kun synlige emner. Kurver består af rette linjestykker. En mindre tolerance giver finere kurver og kræver mere tid og hukommelse.", - "expression, e.g. 25 mm": "udtryk, f.eks. 25 mm", + "file_load.built": "Bygget indtil videre: {built} af {total} features.", + "file_load.converting": "Konverterer solid {done} af {total}", + "file_load.inserting": "Indsætter geometri", + "file_load.opening": "Åbner design", + "file_load.preparing_thumbnail": "Forbereder miniaturebillede...", + "file_load.preparing_view": "Forbereder visningen...", + "file_load.preview_note": "Gemt forhåndsvisning. Geometrien kontrolleres, før du kan redigere.", + "file_load.reading": "Læser filen...", + "file_load.reading_percent": "Læser filen... {percent}%", + "file_load.rebuilding": "Genopbygger feature {done} af {total}", + "file_load.recovering": "Genopretter design", + "file_load.stopping": "Venter på, at den forrige handling stopper...", + "file_load.waiting": "Venter på filhandling", "fits the face, e.g. M8": "passer til fladen, f.eks. M8", "from the rule": "fra reglen", + "help.apache": "Apache-licens 2.0", + "help.attributions": "Tilskrivninger (ATTRIBUTION.md)", + "help.build": "Version {version} · commit {commit} · bygget {date}", + "help.font_details": "Brugerfladen bruger egui's indbyggede skrifttyper (Ubuntu Light og Hack, under Ubuntu Font Licence og MIT/Bitstream Vera-licensen; Noto Emoji og emoji-ikonskrifttypen, under OFL og MIT). Skitsetekst bruger Liberation Sans (SIL OFL 1.1). Crafting Apps' valgfrie skrifttypepakke, craft-fonts (BIZ UDPGothic, Shippori Mincho, BIZ UDMincho, Noto Sans CJK SC, Noto Sans Arabic; SIL OFL 1.1), er ikke inkluderet i SolidCraft-builds.", + "help.fonts": "Skrifttyper", + "help.licences": "Licenser", + "help.mit": "MIT-licens", + "help.notice": "NOTICE", + "help.third_party": "Tredjepartslicenser", "home.documentation": "Dokumentation", "home.in_this_browser": "i denne webbrowser", "home.missing": "mangler", @@ -738,9 +881,30 @@ "install.menu": "Installér app…", "install.steps_intro": "Safari installerer webapps via sine egne menuer:", "install.title": "Installér SolidCraft", + "issue.body_label": "Rapporttekst", + "issue.note_image_copied": "Indsæt billedet i GitHub-kladden, eller gem PNG-filen, hvis billedkopiering ikke er tilgængelig.", + "issue.note_opened": "Gennemgå GitHub-kladden, og vedhæft skærmbilledet. GitHubs knap Submit new issue udgiver den.", + "issue.note_opened_copied": "Rapport kopieret. Indsæt den i GitHub-kladden, vedhæft skærmbilledet, og klik derefter på Submit new issue på GitHub.", + "issue.note_removed": "Skærmbillede fjernet fra denne kladde.", + "issue.note_report_copied": "Rapport kopieret. Indsæt den i GitHub-kladden, hvis det er nødvendigt.", + "issue.note_save_failed": "Skærmbilledet kunne ikke gemmes: {error}", + "issue.note_saved": "Skærmbillede gemt. Vedhæft PNG-filen i GitHub-kladden.", + "issue.save_screenshot": "Gem skærmbillede…", "joint.from_bodies_hint": "Hvert valgt emne flyttes til sin egen nye komponent og bliver på sin plads.", "joint.one_body": "Begge valg er på {body}. Vælg det andet på et andet emne.", "joint.one_component": "Disse emner tilhører samme komponent: {bodies}. Et led bevæger én komponent i forhold til en anden, så hvert emne skal have sin egen komponent.", + "keymap.command_id": "Kommando-ID", + "keymap.empty": "Ingen matchende kommandoer", + "keymap.use_anyway": "Brug {key} her alligevel", + "manage.appearance_hint": "Vælg et udseende til markeringen, eller træk en farveprøve over på et emne eller en flade.", + "manage.assign_hint": "Vælg emner, og vælg deres plastdesignregel.", + "manage.config_hint": "Redigér konfigurationsrækker, kolonner og regler, og aktivér eller forhåndsvis derefter en række.", + "manage.empty": "Ingen matchende rækker.", + "manage.material_hint": "Vælg emner, og vælg deres fysiske materiale.", + "manage.parameters_hint": "Redigér udtryk og enheder. Ændringer anvendes ved Enter eller når du forlader et felt.", + "manage.rules_hint": "Vælg en regel at redigere, eller opret en ny regel. Bekræft for at gemme reglen.", + "measure.at": "Ved", + "measure.item": "Element {number}", "messages.ago_h": "For {n} timer siden", "messages.ago_min": "For {n} min. siden", "messages.ago_s": "For {n} sek. siden", @@ -752,8 +916,16 @@ "messages.title": "Beskeder", "motion.checked_to": "Kun kontrolleret til trin {step}: Kontrollen nåede sin beregningsgrænse", "motion.collision": "{a} · {b}: trin {steps}", + "motion.delete_key": "Slet animationspunkt", "motion.duration_hint": "sekunder (tomt: pr. trin)", + "motion.key_here": "Sæt punkt her", + "motion.key_here_hint": "Tilføj et animationspunkt i dette trin med ledets aktuelle værdi", "motion.no_collisions": "Ingen kollisioner under analysen", + "motion.step_back": "Trin tilbage", + "motion.step_forward": "Trin frem", + "motion.to_end": "Til slutningen", + "motion.to_start": "Til starten", + "motion.track_name": "Spor {number}", "nav.touchpad.help": "Hold Shift nede, og bevæg markøren for at panorere; hold Alt/Option nede, og bevæg den for at rotere visningen. Ingen museknap behøver at være trykket ned. Lodret rulning zoomer.", "nav.touchpad.label": "Pegefelt", "nav.touchpad.orbit": "Rotér visning (hold Alt/Option nede og bevæg markøren; ingen museknap)", @@ -762,13 +934,13 @@ "nav.touchpad.zoom": "Zoom (lodret rulning eller knibebevægelse)", "needs two joints": "kræver to led", "new configuration": "ny konfiguration", - "new name": "nyt navn", "new parameter": "ny parameter", "no hole": "intet hul", "no interference": "intet overlap", "no joint that moves yet": "endnu intet bevægeligt led", "no picture": "intet billede", "none": "ingen", + "parts.automatic_name": "automatisk", "pattern.alignment_2": "Justering 2", "pattern.alignment_hint": "Antal omfatter originalen. Centrér fordeler kopierne ligeligt; Vend vælger siden med den ekstra kopi ved et lige samlet antal.", "pattern.direction_1": "Retning 1", @@ -776,12 +948,19 @@ "pattern.flip_direction": "Vend retning", "pick a hole to seat it, or OK places it at the origin": "vælg et hul til placeringen, eller tryk OK for at placere ved nulpunktet", "pick one or two vertices, edges or faces": "vælg et eller to hjørnepunkter, kanter eller flader", + "prefs.cpu": "CPU (software)", + "prefs.minutes_suffix": " min", + "properties.title": "Egenskaber: {name}", + "recovery.days_ago": "for {count} dage siden", + "recovery.detail": "{file} · {features} features · autogemt {when}", + "recovery.hours_ago": "for {count} t siden", + "recovery.just_now": "lige nu", + "recovery.min_ago": "for {count} min siden", + "recovery.never_saved": "aldrig gemt", "render.background": "Scenebaggrund", "render.fit": "Tilpas til produkt", - "render.image_cancel": "Annullér rendering", "render.image_cancelled": "Rendering annulleret", "render.image_cancelling": "Annullerer", - "render.image_check": "Kontrollér, om billedet kan renderes", "render.image_completed": "Billedet er klar til eksport", "render.image_encoding": "Gemmer som PNG", "render.image_export": "Eksportér PNG", @@ -828,6 +1007,19 @@ "sample.plate.name": "Eksempelplade", "sample.vents.about": "Slidser i et rektangulært mønster: Rækker, kolonner og deling er parametre", "sample.vents.name": "Ventilationsplade", + "search.command_keys": "Enter kør Shift+Enter kør og hold åben Esc luk", + "search.commands": "Kommandoer", + "search.design": "I dette design", + "search.feature": "Feature", + "search.invalid": "Ugyldig", + "search.keys": "↑ ↓ vælg Enter kør Tab udfyld navn Esc luk", + "search.no_match": "Ingen kommando matcher '{query}'", + "search.parameter": "Parameter", + "search.recent": "Seneste", + "search.run": "Kør kommando", + "search.suggest": "Mente du {label}?", + "search.try": "Skriv et kommandonavn, en feature i dette design eller en parameter. Du kører en kommando med værdier ved at skrive dens id og et JSON-objekt: {example}", + "search.valid": "Gyldig", "settings.display_quality_note": "Finere niveauer viser krumme flader og kanter mere jævnt og tager længere tid at opbygge mesh til. Kun modelvisningen ændres, aldrig designet eller eksporten.", "settings.frame_rate_note": "Viser billeder pr. sekund nederst til højre i modelvisningen. Når dette er slået til, gentegnes visningen løbende.", "settings.measure_axis_distances": "Vis X/Y/Z-afstande", @@ -838,17 +1030,30 @@ "settings.reset_intro": "Disse indstillinger virker ikke på denne computer og ville forhindre SolidCraft i at starte. De er derfor ændret:", "settings.reset_title": "Indstillinger blev ændret", "settings.supersampling_note": "Tegner visningen med højere opløsning og nedskalerer den: Jævnere kanter, linjer og gitter på skærme under 4K. Det kræver GPU-tid: ca. 2,25× så mange pixels ved 1,5× og 4× ved 2×.", + "shortcut.json_error": "parametre skal være JSON: {error}", + "shortcut.no_command": "ingen kommando `{id}`; teksten før JSON skal være et kommando-id", + "shortcut.pin": "Fastgør øverst i S-boksen", + "shortcut.unpin": "Frigør", "sketch.degrees_of_freedom": "Frihedsgrader: {count}", + "sketch.dof_left": "{count} frihedsgrader tilbage", + "sketch.dof_left_one": "{count} frihedsgrad tilbage", "sketch.draw_curves": "Tegn som {linetype}", "sketch.make_selection": "Konvertér markeringen til {linetype}", "sketch.open_ends": "Åbne ender: {count}", "sketch.untied_ends": "Ender uden binding: {count}", + "sketch_panel.attached": "Tilknyttet {body} / {path}", + "sketch_panel.author": "Forfatterplacering: {path}", + "sketch_panel.dimension_hint": "Angiv en værdi eller et udtryk, og tryk derefter på OK.", + "sketch_panel.move_hint": "Angiv afstande og en vinkel, og tryk derefter på OK.", + "sketch_panel.redefine_title": "{command}: {name}", + "sketch_panel.sheet_attachment": "Tilknyttet en plan flade på et pladeemne; den følger panelet, når pladen ændres.", + "sketch_panel.text_hint": "Redigér teksten og dens placering, og tryk derefter på OK.", + "sketch_panel.use_plane": "Brug planet {plane}", "sketch_text.align_center": "Centreret", "sketch_text.align_left": "Venstre", "sketch_text.align_right": "Højre", "sketch_text.bold": "Fed", "sketch_text.builtin_font": "{family} (indbygget)", - "sketch_text.font_search": "Søg efter skrifttyper", "sketch_text.italic": "Kursiv", "sketch_text.loading_fonts": "Søger efter installerede skrifttyper…", "sketch_text.on_path": "Teksten følger sin bane: Kurven bestemmer placeringen", @@ -869,6 +1074,7 @@ "timeline.ungroup": "Fjern featuremapper", "to the face": "til fladen", "to the next face": "til næste flade", + "toolbar.customize_note": "Fanen {tab}. Markér en kommando for at give den en værktøjslinjeknap. Du kan også trække en række fra et panels rullemenu over på værktøjslinjen, trække en knap af værktøjslinjen for at fjerne den eller bruge nålen på en rullemenurække.", "toolbar.image": "BILLEDE", "toolbar.render": "RENDERING", "toolbar.render_scene": "SCENE", @@ -877,11 +1083,11 @@ "trace.stopped_by_loop": "Slutter ved prøve {sample}: Løkken gennem {joint} kan ikke lukkes yderligere", "ui.1_degree_of_freedom": "1 frihedsgrad", "ui.3d_mouse_speed": "3D-musens hastighed", - "ui.3d_mouse_windows": "3D-mus", "ui.3d_sketch": "3D-skitse", - "ui.about": "Om", "ui.activate": "Aktivér", "ui.active_component": "Aktiv komponent", + "ui.add_configuration": "Tilføj konfiguration", + "ui.add_parameter": "Tilføj parameter", "ui.agent_chat": "Agentchat", "ui.agent_chat_add": "Vedhæft filer", "ui.agent_chat_add_file": "Vælg en fil…", @@ -923,6 +1129,7 @@ "ui.agent_chat_file_error": "{name}: {error}", "ui.agent_chat_file_heic": "{name}: HEIC-billeder kan ikke læses her; eksportér først som JPEG eller PNG", "ui.agent_chat_file_importing": "Importerer i designet…", + "ui.agent_chat_file_kinds": "{name}: Billeder (PNG, JPEG, GIF, WebP, BMP, TIFF), tekstfiler (også SVG) og CAD-filer (STEP, IGES, FreeCAD, Rhino, STL, 3MF, OBJ, glTF) kan vedhæftes", "ui.agent_chat_file_loading": "Læser filen…", "ui.agent_chat_file_not_a_file": "{name}: Ikke en fil", "ui.agent_chat_file_not_a_picture": "{name}: Ikke et billede", @@ -945,7 +1152,7 @@ "ui.agent_chat_model_tip": "Modellen, som agenten bruger. Dit valg huskes for denne agent.", "ui.agent_chat_new": "Ny chat", "ui.agent_chat_new_confirm": "Start en ny chat? Den aktuelle chat ryddes.", - "ui.agent_chat_new_yes": "Ny chat", + "ui.agent_chat_next_picture": "Næste billede", "ui.agent_chat_no_cli": "solidcraft-cli blev ikke fundet ved siden af appen, så agenten kan ikke få adgang til designet.", "ui.agent_chat_no_control": "Agentchattens endepunkt startede ikke, så agenten kan ikke få adgang til designet.", "ui.agent_chat_no_images": "Denne agent kan ikke modtage billeder", @@ -961,6 +1168,7 @@ "ui.agent_chat_placeholder": "Bed agenten om at ændre designet…", "ui.agent_chat_placeholder_busy": "Sæt en besked i kø til agenten er færdig (Ctrl+Enter: send nu)", "ui.agent_chat_pop_out": "Åbn i eget vindue, som du kan flytte til en anden skærm", + "ui.agent_chat_previous_picture": "Forrige billede", "ui.agent_chat_privacy": "Intet sendes andre steder end til den agent, du kører, under din egen konto.", "ui.agent_chat_privacy_note": "SolidCraft sender intet nogen steder: Agenten, du kører, kommunikerer med sin egen tjeneste under din egen konto. SolidCraft ser eller gemmer aldrig en nøgle eller adgangskode.", "ui.agent_chat_queue": "Sæt i kø", @@ -1016,6 +1224,7 @@ "ui.ai_bad_url": "Angiv en URL, der begynder med http:// eller https://", "ui.ai_base_url": "Basis-URL", "ui.ai_button": "AI", + "ui.ai_command_hint": "my-agent --acp", "ui.ai_copy_suffix": "kopi", "ui.ai_custom_url": "Brugerdefineret URL", "ui.ai_default": "Standard", @@ -1036,8 +1245,10 @@ "ui.ai_mode_edits_note": "Modelleringskommandoer kører uden at spørge; lagring, åbning, eksport og andre filhandlinger eller destruktive handlinger kræver stadig godkendelse.", "ui.ai_mode_global": "Som angivet ovenfor", "ui.ai_model": "Model", + "ui.ai_model_hint": "qwen3:14b", "ui.ai_modes_scope": "Disse indstillinger gælder for SolidCrafts værktøjer. Agentens egne værktøjer (kommandoskal og filredigering) følger dens egen tilstand, som du vælger øverst i chatpanelet, hvis agenten har flere tilstande.", "ui.ai_name": "Navn", + "ui.ai_name_hint": "Min agent", "ui.ai_need_command": "Angiv kommandoen, der starter agenten", "ui.ai_need_model": "Angiv modelnavnet", "ui.ai_no_answer": "Agenten svarede ikke i tide", @@ -1068,6 +1279,7 @@ "ui.ai_toolbar_button": "Vis knap på værktøjslinjen", "ui.ai_toolbar_button_note": "AI-knappen i højre ende af værktøjslinjen. Ctrl+Shift+A og menuen Vis åbner stadig panelet.", "ui.ai_undo_tip": "Fortryd alt, agenten ændrede for denne besked, som ét trin", + "ui.ai_url_hint": "https://example.com/v1", "ui.all": "Alle", "ui.ambient_occlusion": "Ambient occlusion", "ui.ambient_occlusion_help": "Bløde skygger, hvor uigennemsigtige overflader mødes. Kræver GPU-visning.", @@ -1081,7 +1293,8 @@ "ui.anti_aliasing": "Kantudjævning", "ui.apply": "Anvend", "ui.arc": "Bue", - "ui.assemble": "Samling", + "ui.assistant": "Assistent", + "ui.assistant_waiting": "{count} godkendelser venter", "ui.autosave_every": "Gem automatisk hver", "ui.axes": "Akser", "ui.axis": "Akse", @@ -1092,6 +1305,11 @@ "ui.bodies_all_if_none": "Emner (alle, hvis ingen er valgt)", "ui.box": "Boks", "ui.break": "Bryd", + "ui.browser_bodies_one": "{count} emne", + "ui.browser_bodies_other": "{count} emner", + "ui.browser_collapse": "Skjul modeltræet", + "ui.browser_expand": "Udvid modeltræet", + "ui.browser_title": "Modeltræ", "ui.calibrate": "Kalibrér", "ui.cancel": "Annullér", "ui.canvases": "Referencebilleder", @@ -1101,7 +1319,6 @@ "ui.chamfer": "Affasning", "ui.chamfer_type": "Affasningstype", "ui.change_workspace": "Skift arbejdsområde", - "ui.chord_length": "Kordelængde", "ui.circle": "Cirkel", "ui.circular_pattern": "Cirkulært mønster", "ui.clear": "Ryd", @@ -1134,11 +1351,9 @@ "ui.command_done": "{command} udført", "ui.command_palette_hint": "Skriv en kommando, f.eks. {example} — eller tryk S for at søge", "ui.concentric": "Koncentrisk", - "ui.configurations": "Konfigurationer", "ui.conic_curve": "Keglesnitskurve", "ui.constant": "Konstant", "ui.constraints_conflict": "Bindinger er i konflikt", - "ui.construct": "Konstruktion", "ui.construction": "Konstruktionsgeometri", "ui.context_menu": "Genvejsmenu", "ui.continuity_g0": "G0-knæk", @@ -1164,7 +1379,6 @@ "ui.cylinder": "Cylinder", "ui.dark": "Mørk", "ui.default_modelling_orientation": "Standardorientering for modellering", - "ui.degrees_of_freedom": "frihedsgrader", "ui.delete": "Slet", "ui.depth": "Dybde", "ui.design": "Design", @@ -1206,7 +1420,6 @@ "ui.equivalent_radius": "Ækvivalent radius", "ui.expand": "Fold ud", "ui.exportDxf": "Eksportér DXF…", - "ui.export_ellipsis": "Eksportér...", "ui.export_ellipsis_keymap": "Eksportér…", "ui.export_keymap_tip": "Gem tastaturgenveje, favoritter i S-menuen og værktøjslinjen i en fil", "ui.extend": "Forlæng", @@ -1230,6 +1443,7 @@ "ui.frame_rate": "Billedfrekvens", "ui.front": "Forfra", "ui.fully_constrained": "Fuldt bundet", + "ui.function": "Funktion", "ui.general": "Generelt", "ui.graphics": "Grafik", "ui.graphics_custom": "Brugerdefineret", @@ -1296,7 +1510,6 @@ "ui.heading_sheet_metal": "PLADE", "ui.heading_shell": "UDHULNING", "ui.heading_sketch": "SKITSE", - "ui.heading_sketch_palette": "SKITSEPALETTE", "ui.heading_sketch_scale": "SKITSESKALERING", "ui.heading_solid": "MASSIVT EMNE", "ui.heading_sphere": "KUGLE", @@ -1315,6 +1528,7 @@ "ui.hideOrigin": "Skjul nulpunkt", "ui.hidePlanes": "Skjul planer", "ui.hideProfile": "Skjul profil", + "ui.history_title": "Historik", "ui.hole": "Hul", "ui.hole_tap_type": "Hullets gevindtype", "ui.hole_type": "Hultype", @@ -1334,7 +1548,6 @@ "ui.length_decimals": "Længdedecimaler", "ui.light": "Lys", "ui.line": "Linje", - "ui.linetype": "Linjetype", "ui.lock": "Lås", "ui.loft": "Loft", "ui.look_at": "Se på", @@ -1368,10 +1581,8 @@ "ui.mesh_format_3mf": "3MF", "ui.mesh_format_3mf_tagged": "3MF med flademærker", "ui.mesh_format_stl": "STL", - "ui.midpoint": "Midtpunkt", "ui.mirror": "Spejling", "ui.mirror_line": "Spejlingslinje", - "ui.modify": "Redigér", "ui.move": "Flyt", "ui.multiple": "Flere", "ui.named_views": "Navngivne visninger", @@ -1392,7 +1603,6 @@ "ui.offset_plane": "Forskudt plan", "ui.one_side": "Én side", "ui.open": "Åbn", - "ui.open_ellipsis": "Åbn...", "ui.open_ends_tip": "Berører intet", "ui.open_preferences": "Åbn indstillinger", "ui.open_recent": "Åbn seneste", @@ -1402,8 +1612,9 @@ "ui.orbit_around": "Rotér omkring", "ui.orientation": "Orientering", "ui.origin": "Nulpunkt", - "ui.palette_points": "Punkter", - "ui.palette_profile": "Profil", + "ui.palette_construction_mode": "Konstruktionstilstand (X)", + "ui.palette_more": "Mere", + "ui.palette_sketch_options": "Skitseindstillinger", "ui.pan": "Panorér", "ui.pan_zoom_orbit": "Panorér, zoom, rotér visning", "ui.parallel": "Parallel", @@ -1444,7 +1655,6 @@ "ui.quit": "Afslut", "ui.radial_context_menu": "Radial genvejsmenu", "ui.radius": "Radius", - "ui.radius_type": "Radiustype", "ui.rail": "Styrekurve", "ui.rail_fit": "Tilpasning til styrekurve", "ui.reachable": "Kan nås", @@ -1471,10 +1681,12 @@ "ui.reverse_horizontal_pan_tip": "Vandret rulning med to fingre og tommelfingerhjulet panorerer i den modsatte retning", "ui.reverse_zoom_direction": "Vend zoomretning", "ui.revolve": "Omdrejning", + "ui.ribbon_exit": "Afslut", + "ui.ribbon_pin_footer": "Fastgjorte kommandoer vises på båndet. Hold musen over en række for at fastgøre eller frigøre den.", + "ui.ribbon_workspace": "Arbejdsområde", "ui.right": "Fra højre", "ui.save": "Gem", "ui.save_as": "Gem som", - "ui.save_as_ellipsis": "Gem som...", "ui.save_mesh_no_slicer": "Ingen slicer fundet: Vælg Brugerdefineret…, og vælg dit slicerprogram, eller slå Send til slicer fra", "ui.save_mesh_pick_bodies": "Vælg de emner, der skal gemmes", "ui.save_mesh_temp_failed": "Kunne ikke oprette {folder}: {error}", @@ -1487,7 +1699,6 @@ "ui.select": "Vælg", "ui.selectOther": "Vælg andet…", "ui.selectTangentChain": "Vælg tangentkæde", - "ui.select_other_hint": "Vælg andet: Hold venstre museknap nede uden at flytte markøren på modellen (eller højreklik › Vælg andet…) for at vise alt under markøren. Klik igen samme sted for at vælge næste objekt.", "ui.selection": "Markering", "ui.selection_modifiers": "Taster ved markering", "ui.selection_shift_add_only": "Shift+klik tilføjer uden at fjerne", @@ -1507,7 +1718,6 @@ "ui.show_constraints": "Bindinger", "ui.show_construction_geometries": "Konstruktionsgeometri", "ui.show_dimensions": "Mål", - "ui.show_points": "Vis punkter", "ui.show_profile": "Vis profil", "ui.show_projected_geometries": "Projiceret geometri", "ui.simple": "Enkel", @@ -1518,7 +1728,6 @@ "ui.sketch_grid": "Skitsegitter", "ui.sketch_modifiers": "Taster i skitser", "ui.sketch_scale": "Skitseskalering", - "ui.sketch_status": "Skitsestatus", "ui.sketches": "Skitser", "ui.slice": "Lagdeling", "ui.slicer": "Slicer", @@ -1564,7 +1773,7 @@ "ui.stand_up_tip": "Når en STEP- eller IGES-fil åbnes med Z opad, tilbydes en kvart omdrejning om X", "ui.start": "Start", "ui.start_over": "Start forfra", - "ui.start_radius": "Startradius", + "ui.start_page": "Startside", "ui.stretch": "Stræk", "ui.supersampling": "Supersampling (SSAA)", "ui.supersampling_adaptive": "Kun når visningen står stille", @@ -1614,13 +1823,24 @@ "ui.untitled": "Uden titel", "ui.up_axis_note": "Hvilken akse der peger opad i visningerne (aksevisning, Hjem, Se på). Designs ændres ikke.", "ui.updateToCurrentView": "Opdatér til aktuel visning", - "ui.variable": "Variabel", "ui.view_centre": "Visningens centrum", "ui.visual_shaded_hidden_edges": "Skyggelagt med skjulte kanter", "ui.visual_shaded_with_edges": "Skyggelagt med kanter", "ui.visual_style": "Visuel stil", "ui.visual_wireframe": "Trådmodel", "ui.workspace": "arbejdsområde", + "ui.workspace_animation_description": "Eksploderede visninger, bevægelsesstudier og storyboards", + "ui.workspace_available": "Tilgængelig", + "ui.workspace_current": "Aktuel", + "ui.workspace_design_description": "Skitsér, modellér, saml og undersøg", + "ui.workspace_design_tabs": "Model · Overflade · Saml · Indsæt · Undersøg · Administrér · Visning", + "ui.workspace_drawing_description": "2D-tegninger med visninger, mål og tegningshoveder", + "ui.workspace_footer": "Alle arbejdsområder arbejder på det samme design, den samme historik og den samme markering; kun båndets faner ændres. Skifteren er låst, mens en skitse eller feature redigeres.", + "ui.workspace_manufacture_description": "Slicing, værktøjsbaner og opsætning", + "ui.workspace_planned": "Planlagt", + "ui.workspace_render_description": "Produktforhåndsvisning, scene-indstillinger og renderede billeder", + "ui.workspace_render_tabs": "Scene · Billede", + "ui.workspace_simulation_description": "Belastninger, bindinger og resultater", "ui.x_distance": "X-afstand", "ui.y_distance": "Y-afstand", "ui.y_up": "Y opad", @@ -1630,7 +1850,6 @@ "ui.zoom_to_the_cursor": "Zoom mod markøren", "update.available": "SolidCraft {version} er tilgængelig", "update.button": "Opdatér", - "update.button_tip": "SolidCraft {version} er tilgængelig", "update.button_version": "Opdatér til {version}", "update.check_automatically": "Søg automatisk efter opdateringer", "update.check_now": "Søg nu", @@ -1662,5 +1881,6 @@ "update.title": "Opdatering tilgængelig", "update.up_to_date": "SolidCraft er opdateret.", "update.update_now": "Opdatér nu", - "update.you_have": "Du har {version}." + "update.you_have": "Du har {version}.", + "↑ ↓ choose · Enter / Tab complete · Esc dismiss": "↑ ↓ vælg · Enter / Tab udfyld · Esc luk" } diff --git a/assets/locales/de.json b/assets/locales/de.json index 8be6072b1..21e75264d 100644 --- a/assets/locales/de.json +++ b/assets/locales/de.json @@ -1,118 +1,414 @@ { + "0 turns it off": "0 schaltet es aus", "1. Open GitHub draft below, then paste the report copied to your clipboard.": "1. Unten den GitHub-Entwurf öffnen und den kopierten Bericht aus der Zwischenablage einfügen.", "1. Open GitHub draft below. Your title and report will be filled in.": "1. Unten den GitHub-Entwurf öffnen. Titel und Bericht werden vorausgefüllt.", "2. Attach your screenshot: copy and paste it, or save and upload the PNG.": "2. Screenshot anhängen: kopieren und einfügen oder als PNG speichern und hochladen.", + "2D": "2D", "3. Click Submit new issue on GitHub to send your report.": "3. Auf GitHub auf Submit new issue klicken, um den Bericht zu senden.", - "AI": "KI", + "A new configuration, a copy of the active one": "Eine neue Konfiguration, eine Kopie der aktiven", + "ARRANGE": "ANORDNEN", + "About SolidCraft": "Über SolidCraft", "Acceleration": "Beschleunigung", + "Access": "Zugriff", + "Actions": "Aktionen", + "Active": "Aktiv", + "Active rule": "Aktive Regel", + "Add": "Hinzufügen", + "Add Key": "Schlüssel hinzufügen", + "Add Mid Radius": "Mittleren Radius hinzufügen", + "Add Row": "Zeile hinzufügen", + "Add condition": "Bedingung hinzufügen", + "Add or edit rule": "Regel hinzufügen oder bearbeiten", "Against": "Gegen", "Alignment": "Ausrichtung", + "All Sketch Points": "Alle Skizzenpunkte", "All components": "Alle Komponenten", + "All open designs": "Alle geöffneten Designs", + "Allowed expressions, separated by semicolons": "Zulässige Ausdrücke, durch Semikolons getrennt", + "Also deletes": "Löscht auch", + "Angle 2": "Winkel 2", + "Animate": "Animieren", + "Appearance name": "Name des Erscheinungsbilds", + "Applied Radius": "Angewendeter Radius", + "Apply To": "Anwenden auf", + "Apply to selection": "Auf Auswahl anwenden", + "Apply your appearance first. Exports assigned appearances and materials created in this design.": "Wenden Sie zuerst Ihr Erscheinungsbild an. Exportiert zugewiesene Erscheinungsbilder und in diesem Design erstellte Materialien.", "Arc length": "Bogenlänge", "Area": "Fläche", + "As-Built": "Wie gebaut", + "Assign Rule": "Regel zuweisen", + "Attachment": "Anbindung", + "BLEND SURFACE": "ÜBERGANGSFLÄCHE", + "BOUNDARY SURFACE": "BERANDUNGSFLÄCHE", "BROWSER": "BROWSER", + "Bend Line Position": "Position der Biegelinie", + "Bend Position": "Biegeposition", + "Bend Radius": "Biegeradius", + "Bend Table": "Biegetabelle", "Bends": "Biegungen", + "Bodies": "Körper", + "Body": "Körper", "Boundary": "Begrenzung", + "Bounding box": "Hüllquader", + "CHECK": "PRÜFEN", + "COMPONENTS": "KOMPONENTEN", + "CONFIGURATIONS": "KONFIGURATIONEN", + "CONSTRAIN": "ABHÄNGIGKEITEN", + "CONTACT": "KONTAKT", + "CONVERT": "KONVERTIEREN", + "CSV or JSON: updates existing parameters, adds new ones": "CSV or JSON: updates existing parameters, adds new ones", + "Capture All Positions": "Alle Positionen erfassen", + "Capture Pos.": "Pos. erfassen", + "Catch Direction": "Fangrichtung", + "Cells": "Zellen", + "Center X": "Mittelpunkt X", + "Center Y": "Mittelpunkt Y", + "Center of mass": "Massenschwerpunkt", "Centre to centre": "Mitte zu Mitte", + "Chamfer Type": "Abschrägungstyp", "Check collisions": "Kollisionen prüfen", + "Checked": "Geprüft", + "Choose a new plane. Sketch geometry and dimensions stay unchanged in its two-dimensional coordinates.": "Wählen Sie eine neue Ebene. Skizzengeometrie und Bemaßungen bleiben in ihren zweidimensionalen Koordinaten unverändert.", + "Choose…": "Auswählen…", + "Circular": "Kreisförmig", "Circumference": "Umfang", + "Close draft": "Entwurf schließen", "Collisions": "Kollisionen", - "Construction": "Konstruktionslinie", + "Colour": "Farbe", + "Comment": "Kommentar", + "Component1": "Komponente1", + "Config Table": "Konfigurationstabelle", + "Configuration": "Konfiguration", + "Configuration rules": "Configuration rules", + "Contact": "Kontakt", + "Contact Sets": "Kontaktsätze", "Contact sets": "Kontaktsätze", "Continuity": "Stetigkeit", "Copy Error Message": "Fehlermeldung kopieren", "Copy Warning Message": "Warnmeldung kopieren", + "Copy all licences": "Alle Lizenzen kopieren", + "Copy diagnostic information": "Diagnoseinformationen kopieren", + "Copy report": "Bericht kopieren", + "Copy screenshot": "Screenshot kopieren", "Corner Relief": "Eckenentlastung", + "Corner Relief Shape": "Form der Eckenentlastung", + "Counterbore depth": "Tiefe der Senkung", + "Countersink angle": "Winkel der Kegelsenkung", + "Create Issue — review draft": "Issue erstellen — Entwurf prüfen", + "Cross curves": "Querkurven", + "Cube": "Würfel", "Current orthographic view (1:1 mm)": "Aktuelle orthogonale Ansicht (1:1 mm)", "Current perspective view": "Aktuelle perspektivische Ansicht", + "Curv. Comb": "Krümmungskamm", "Curvature (G2)": "Krümmung (G2)", "Curvature change (G3)": "Krümmungsänderung (G3)", + "Customize Toolbar": "Symbolleiste anpassen", + "Delete": "Löschen", + "Delete all": "Alle löschen", + "Delete rule": "Regel löschen", + "Delete the row": "Zeile löschen", + "Delete the set": "Satz löschen", + "Density": "Dichte", + "Dependents": "Abhängige Elemente", + "Designs you open or save appear here.": "Designs, die Sie öffnen oder speichern, erscheinen hier.", + "Determined by To Object. Choose Angle to edit the angular extent.": "Bestimmt durch Bis Objekt. Wählen Sie Winkel, um den Winkelbereich zu bearbeiten.", "Direction": "Richtung", + "Discard": "Verwerfen", "Do not export hidden edges": "Verdeckte Kanten nicht exportieren", "Don't ask again": "Nicht mehr fragen", + "Double-click to rename": "Double-click to rename", + "Double-clicking the middle button in the view: Home (the home view, framing what is shown), Fit (frame what is shown, keeping the orientation) or nothing": "Doppelklick mit der mittleren Taste in der Ansicht: Home (Startansicht, zeigt alles Sichtbare), Einpassen (Sichtbares einpassen, Ausrichtung beibehalten) oder nichts", "Drive Joint": "Gelenk antreiben", "Duration": "Dauer", "Edges": "Kanten", + "Edit": "Bearbeiten", "Edit Profile Sketch": "Profile-Skizze bearbeiten", + "Enable rule": "Regel aktivieren", + "Enabled": "Aktiviert", + "End bulge": "Endausbauchung", + "End continuity": "Endstetigkeit", + "Explode": "Explodieren", "Explode Text": "Text auflösen", "Export Animation…": "Animation exportieren…", + "Export CSV…": "CSV exportieren…", "Export Current View as DXF": "Aktuelle Ansicht als DXF exportieren", "Export Current View as DXF…": "Aktuelle Ansicht als DXF exportieren…", + "Export DXF": "DXF exportieren", "Export DXF…": "DXF exportieren…", + "Export JSON…": "JSON exportieren…", "Export hidden edges as dashed lines": "Verdeckte Kanten gestrichelt exportieren", + "Expression": "Ausdruck", "Extend to meet": "Verlängern, bis sie sich treffen", + "Extents": "Ausdehnung", + "FILES": "DATEIEN", + "FLAT": "ABWICKLUNG", "Face": "Fläche", + "Face attachment lost": "Flächenanbindung verloren", "Faces": "Flächen", + "Faces / edges / vertices": "Flächen / Kanten / Ecken", + "Fastener": "Verbindungselement", + "Favorites": "Favoriten", + "Favourite": "Favourite", + "Feature": "Funktion", + "Files from many CAD programs have Y up, so they open lying on their back here (Z up).": "Dateien aus vielen CAD-Programmen haben Y nach oben und öffnen sich hier daher auf dem Rücken liegend (Z nach oben).", + "Filter": "Filter", "Find in Browser": "Im Browser suchen", - "Flat": "Flach", + "Finish": "Oberfläche", + "Flat Pattern": "Flachmuster", + "Flat size": "Abwicklungsgröße", + "Follow camera (Look At sketches)": "Kamera folgen (Skizzen ansehen)", + "Follow the camera (Look At sketches)": "Der Kamera folgen (Skizzen ansehen)", + "Font": "Schriftart", + "From Bodies": "Aus Körpern", "From edges": "Ausgangskanten", + "Full Length": "Volle Länge", + "Gap": "Spalt", + "Grid": "Raster", + "HISTORY": "VERLAUF", + "Height": "Höhe", "Hidden edges": "Verdeckte Kanten", "Holes": "Löcher", "Holes (edges on them)": "Löcher (ihre Kanten)", + "Home view": "Startansicht", + "Horiz./Vert.": "Horiz./Vert.", + "IMAGES": "BILDER", + "Import…": "Importieren…", + "In This Design": "In diesem Design", "In place (surfaces)": "An Ort und Stelle (Flächen)", "In plane": "In der Ebene", "Inside": "Innen", + "Interferes": "Überschneidet sich", + "Isocurve": "Isokurve", + "Issue title": "Issue-Titel", + "JOINTS": "GELENKE", + "Joint Origin1": "Gelenkursprung1", "Keep (points on it)": "Behalten (Punkte darauf)", + "Keep Tools": "Werkzeuge behalten", "Keep of the other surface": "Vom anderen Flächenkörper behalten", + "LIBRARY": "BIBLIOTHEK", + "LINKS": "VERKNÜPFUNGEN", + "Later": "Später", + "Leave it": "Belassen", + "Legacy face attachment. Rebinding to a certified face creates an exact attachment.": "Alte Flächenanbindung. Das erneute Anbinden an eine zertifizierte Fläche erzeugt eine exakte Anbindung.", "Length": "Länge", + "Length units": "Length units", + "Letter Spacing": "Zeichenabstand", + "Library": "Bibliothek", + "Library file": "Bibliotheksdatei", + "Line Spacing": "Zeilenabstand", + "Local library": "Lokale Bibliothek", + "Loop": "Schleife", + "MANAGE": "VERWALTEN", + "MATERIALS": "MATERIALIEN", + "MODEL": "MODELL", + "MOTION": "BEWEGUNG", + "Margin": "Rand", + "Mass": "Masse", + "Mass Center": "Massenschwerpunkt", + "Matched restrictions check the final values.": "Zutreffende Einschränkungen prüfen die endgültigen Werte.", + "Material": "Material", "Max": "Max", + "Mid Radius": "Mittlerer Radius", + "Middle double-click": "Doppelklick mit mittlerer Taste", "Min": "Min", "Mitre": "Gehrung", + "Model Parameters": "Modellparameter", + "Modeled": "Modelliert", + "More toolbar panels": "Weitere Symbolleistenbereiche", + "Motion": "Bewegung", + "Move / Copy": "Verschieben / Kopieren", + "Move Type": "Verschiebungstyp", + "Move down": "Nach unten", + "Move earlier": "Nach vorn verschieben", + "Move later": "Nach hinten verschieben", + "Move up": "Nach oben", + "Name": "Name", + "Nearest": "Nächstgelegen", + "New": "Neu", + "New Comp.": "Neue Komp.", + "New Sketch": "Neue Skizze", + "New rule…": "Neue Regel…", "New study": "Neue Untersuchung", + "No crash reports.": "Keine Absturzberichte.", + "No matching appearance presets.": "Keine passenden Erscheinungsbildvorlagen.", + "No matching appearances": "Keine passenden Erscheinungsbilder", "No visible bodies to export.": "Keine sichtbaren Körper zum Exportieren.", "None": "Keine", - "Normal to sketch": "Normal zur Skizze", + "Not available yet": "Noch nicht verfügbar", "Notch": "Ausklinkung", + "OUTPUT": "AUSGABE", + "Opacity": "Deckkraft", + "Open GitHub draft": "GitHub-Entwurf öffnen", + "Open local libraries in the desktop app. You can export this design's library here.": "Öffnen Sie lokale Bibliotheken in der Desktop-App. Die Bibliothek dieses Designs können Sie hier exportieren.", + "Open-source parametric 3D CAD in Rust. Licensed MIT OR Apache-2.0.": "Quelloffenes parametrisches 3D-CAD in Rust. Lizenziert unter MIT OR Apache-2.0.", + "Operator": "Operator", + "Other side": "Andere Seite", "Other surface (mutual trim)": "Anderer Flächenkörper (gegenseitig trimmen)", "Outside": "Außen", "Overall length": "Gesamtlänge", + "Param. Graph": "Param.-Graph", + "Parameter": "Parameter", + "Parts": "Teile", "Pass through": "Durch Punkte", + "Path": "Pfad", + "Pattern": "Muster", + "Per Edge": "Pro Kante", + "Pick the tool bodies": "Werkzeugkörper wählen", "Picked": "Ausgewählte", "Picked point": "Gewählter Punkt", + "Place at the origin instead": "Stattdessen im Ursprung platzieren", + "Plastic Rules": "Kunststoffregeln", + "Playback": "Wiedergabe", "Plot": "Diagramm", + "Position": "Position", + "Position (0 to 1)": "Position (0 bis 1)", "Position (G0)": "Position (G0)", + "Position along the edge, 0 at the start end, 1 at the other": "Position entlang der Kante, 0 am Anfang, 1 am anderen Ende", "Preferences › Design turns the offer back on": "Unter Einstellungen › Design lässt sich das Angebot wieder einschalten", + "Preview Row": "Vorschauzeile", + "Preview leaves the current design unchanged.": "Die Vorschau lässt das aktuelle Design unverändert.", "Profiles/Curves": "Profile/Kurven", - "Projection": "Projektion", "Quantity": "Größe", + "RECENT": "ZULETZT", + "REFERENCE": "REFERENZ", "RULED SURFACE": "REGELFLÄCHE", + "RULES": "REGELN", + "Radius Fit": "Radiusanpassung", + "Ratio": "Verhältnis", + "Reattach selected face": "Ausgewählte Fläche neu anbinden", + "Recover": "Wiederherstellen", + "Recover unsaved design?": "Nicht gespeichertes Design wiederherstellen?", "Rectangular": "Rechteckig", "Reference face": "Referenzfläche", + "Remove Tools": "Werkzeuge entfernen", + "Remove from list": "Aus Liste entfernen", + "Remove override": "Überschreibung entfernen", + "Remove private design details or paths before sharing.": "Entfernen Sie vor dem Teilen private Designdetails oder Pfade.", + "Remove screenshot": "Screenshot entfernen", + "Remove the column": "Spalte entfernen", + "Remove the track": "Spur entfernen", + "Remove this point": "Diesen Punkt entfernen", "Report a bug — review a screenshot and open a GitHub draft": "Fehler melden — Screenshot prüfen und einen GitHub-Entwurf öffnen", "Reset Toolbar": "Symbolleiste zurücksetzen", + "Resize Part": "Teil skalieren", + "Restore View": "Ansicht wiederherstellen", "Restore outer boundary": "Äußere Begrenzung wiederherstellen", + "Restore the inherited component or physical material appearance": "Das geerbte Erscheinungsbild der Komponente oder des physikalischen Materials wiederherstellen", + "Result": "Ergebnis", + "Retake screenshot": "Screenshot erneut aufnehmen", + "Reverse": "Umkehren", + "Reverse Direction": "Richtung umkehren", + "Revert": "Zurücksetzen", + "Revert All Positions": "Alle Positionen zurücksetzen", + "Revert Pos.": "Pos. zurücksetzen", "Revert Position": "Position zurücksetzen", + "Review the report and screenshot before opening GitHub.": "Prüfen Sie Bericht und Screenshot, bevor Sie GitHub öffnen.", + "Rim Edge": "Randkante", + "Roll History Marker Here": "Verlaufsmarkierung hierher verschieben", "Round": "Rund", + "Rule": "Rule", + "Rule name": "Regelname", + "Rules run from top to bottom. Matched drives change effective values.": "Regeln werden von oben nach unten ausgeführt. Zutreffende Steuerungen ändern die wirksamen Werte.", + "SECTION": "SCHNITT", + "SURFACE QUALITY": "OBERFLÄCHENQUALITÄT", + "Save Rule": "Regel speichern", + "Save View": "Ansicht speichern", "Save the study as an animated GIF, seen as the viewport shows it": "Die Studie als animiertes GIF speichern, so wie der Ansichtsbereich sie zeigt", + "Saved preview. Geometry is being checked before editing.": "Gespeicherte Vorschau. Die Geometrie wird vor dem Bearbeiten geprüft.", + "Scale factor": "Skalierungsfaktor", + "Scene": "Szene", + "Search": "Suchen", + "Search commands": "Befehle suchen", + "Search this library": "Diese Bibliothek durchsuchen", + "Section": "Schnitt", + "Select Other: hold the left button still on the model (or right-click › Select Other…) to list everything under the cursor; click again on the same spot to select the next thing there. Double-click the middle button to go Home (Preferences › Navigation).": "Anderes auswählen: Halten Sie die linke Taste ruhig auf dem Modell gedrückt (oder Rechtsklick › Anderes auswählen…), um alles unter dem Cursor aufzulisten; klicken Sie erneut an dieselbe Stelle, um das nächste Element dort auszuwählen. Doppelklick mit der mittleren Taste wechselt zur Startansicht (Einstellungen › Navigation).", "Select bodies (a face picks its body)": "Körper auswählen (eine Fläche wählt ihren Körper)", + "Select bodies or faces instead": "Stattdessen Körper oder Flächen auswählen", "Selection filter": "Auswahlfilter", + "Semantic faces share their appearance across instances.": "Semantische Flächen teilen ihr Erscheinungsbild über alle Instanzen hinweg.", "Send your report on GitHub": "Bericht auf GitHub senden", + "Shape": "Form", + "Sheet Rules": "Blechregeln", + "Show Agent Cursor": "Agenten-Cursor anzeigen", + "Show in folder": "Im Ordner anzeigen", + "Show the pointer an AI agent moves (#35)": "Den Zeiger anzeigen, den ein KI-Agent bewegt (#35)", + "Signed axes": "Vorzeichenbehaftete Achsen", + "Size": "Größe", "Sketch constraints": "Skizzenbedingungen", "Sketch curves": "Skizzenkurven", "Sketch dimensions": "Skizzenmaße", "Sketch geometry and profiles": "Skizzengeometrie und Profile", + "Sketch plane has no body-face attachment.": "Die Skizzenebene hat keine Anbindung an eine Körperfläche.", "Sketch points": "Skizzenpunkte", "Slot width": "Langlochbreite", + "SolidCraft closed before these designs were saved. Their last autosave can be opened.": "SolidCraft wurde beendet, bevor diese Designs gespeichert wurden. Ihr letzter Autosave kann geöffnet werden.", + "Specialise": "Spezialisieren", + "Speed": "Geschwindigkeit", + "Stand it up": "Aufrichten", + "Stand it up: a quarter turn about X, as one Move feature you can undo.": "Aufrichten: eine Vierteldrehung um X, als ein Verschieben-Merkmal, das sich rückgängig machen lässt.", + "Stand this part up?": "Dieses Teil aufrichten?", + "Start bulge": "Startausbauchung", + "Start continuity": "Startstetigkeit", + "Step": "Schritt", + "Steps": "Schritte", "Stitch the kept pieces": "Behaltene Teile vernähen", "Stitch to both bodies": "Mit beiden Körpern vernähen", "Study": "Untersuchung", + "Style": "Stil", + "Suppressed": "Unterdrückt", "Surface": "Flächenkörper", + "Swap Ends": "Enden vertauschen", "TRIM": "TRIMMEN", "Tangent (G1)": "Tangente (G1)", + "Tangent Chain": "Tangentenkette", "Tear": "Reißen", + "The dashed sketch is a saved plane guide. Select a new face to repair the attachment.": "Die gestrichelte Skizze ist eine gespeicherte Ebenenführung. Wählen Sie eine neue Fläche, um die Anbindung zu reparieren.", + "The saved author occurrence is missing. Select a valid author placement before rebinding.": "Das gespeicherte Autorvorkommen fehlt. Wählen Sie vor dem erneuten Anbinden eine gültige Autorplatzierung.", + "Then": "Then", + "These features will be deleted:": "Diese Merkmale werden gelöscht:", + "These features will fail:": "Diese Merkmale schlagen fehl:", "Thickness Outside": "Dicke außen", "Thin": "Dünnwandig", "Thin Extrude": "Dünnwandig extrudieren", + "This child is shared. Deleting it removes it from every copy of its parent.": "Dieses untergeordnete Element ist geteilt. Löschen entfernt es aus jeder Kopie des übergeordneten Elements.", + "This child is shared. Position changes apply to every copy of its parent.": "Dieses untergeordnete Element ist geteilt. Positionsänderungen gelten für jede Kopie des übergeordneten Elements.", + "This face cannot provide a durable attachment. Choose another face or explicitly use a fixed plane.": "Diese Fläche kann keine dauerhafte Anbindung bieten. Wählen Sie eine andere Fläche oder verwenden Sie ausdrücklich eine feste Ebene.", + "To Offset": "Bis Versatz", "To edges": "Zielkanten", + "Tolerance": "Toleranz", + "Too close": "Zu nah", "Trimming tool (plane, face or curves)": "Trimmwerkzeug (Ebene, Fläche oder Kurven)", "Turn off section analysis before exporting the view.": "Deaktivieren Sie die Schnittanalyse, bevor Sie die Ansicht exportieren.", "Type": "Typ", "UNTRIM": "TRIMMEN AUFHEBEN", + "Unit": "Einheit", + "Updating the preview": "Vorschau wird aktualisiert", + "Use active author placement": "Aktive Autorplatzierung verwenden", + "Use fixed plane": "Feste Ebene verwenden", + "Use saved fixed plane": "Gespeicherte feste Ebene verwenden", + "Use selected face as fixed plane": "Ausgewählte Fläche als feste Ebene verwenden", + "User Parameters": "Benutzerparameter", + "VIEW": "ANSICHT", + "VIEWS": "ANSICHTEN", + "Value": "Value", "Velocity": "Geschwindigkeit", "Vertices": "Scheitelpunkte", - "Visible bodies only. Curves use line segments (0.01 mm tolerance).": "Nur sichtbare Körper. Kurven werden durch Liniensegmente angenähert (Toleranz: 0,01 mm).", + "View navigator": "Ansichtsnavigator", + "Volume": "Volumen", + "Wall": "Wand", "Wall Location": "Wandlage", "Wall Thickness": "Wandstärke", + "When": "When", + "Width": "Breite", + "Will fail": "Schlägt fehl", + "X angle": "X-Winkel", + "X distance": "X-Abstand", + "Y angle": "Y-Winkel", + "Y distance": "Y-Abstand", + "Z angle": "Z-Winkel", + "Z distance": "Z-Abstand", + "Zebra": "Zebra", + "angle, height": "Winkel, Höhe", "appearance.dielectric_ior": "Brechungsindex des Dielektrikums", "appearance.metallic": "Metallanteil", "appearance.pbr_help": "Diese Oberfläche in Render oder einem Produkt-PNG ansehen. Keine Brechung oder Transmission.", @@ -120,7 +416,13 @@ "appearance.roughness": "Rauheit", "appearance.surface_response": "Oberflächenverhalten", "browser.body_name": "Körper {number}", + "browser.calibrate_title": "Kalibrieren: {name}", + "browser.capture_many": "{count} Komponenten wurden verschoben, ihre Positionen sind aber nicht erfasst.", + "browser.capture_note": "„Position erfassen“ behält die neue Position bei; „Position zurücksetzen“ stellt die vorherige wieder her.", + "browser.capture_one": "Eine Komponente wurde verschoben, ihre Position ist aber nicht erfasst.", "browser.component_name": "Komponente {number}", + "browser.edit_canvas_title": "Leinwand bearbeiten: {name}", + "browser.move_title": "Verschieben: {name}", "browser.parameters": "Parameter ({count})", "browser.precision": "Genauigkeit: {precision}", "browser.sketch_name": "Skizze {number}", @@ -135,6 +437,7 @@ "cmd.appearance_assign": "Erscheinungsbild", "cmd.appearance_library": "Erscheinungsbild-Bibliothek", "cmd.appearance_list": "Erscheinungsbilder auflisten", + "cmd.assembly_bom": "Stückliste", "cmd.body_rename": "Körper umbenennen", "cmd.browser_group": "Neue Gruppe", "cmd.browser_move": "Browser-Elemente verschieben", @@ -156,10 +459,13 @@ "cmd.component_insert_design": "Konstruktion einfügen", "cmd.component_links": "Verknüpfungen auflisten", "cmd.component_list": "Komponenten auflisten", + "cmd.component_metadata": "Teileeigenschaften", + "cmd.component_metadata_set": "Teileeigenschaften ändern", "cmd.component_move_bodies": "Körper in Komponente verschieben", "cmd.component_move_sketches": "Skizzen in Komponente verschieben", "cmd.component_paste_new": "Neu einfügen", "cmd.component_properties": "Physikalische Eigenschaften der Komponente", + "cmd.component_relink": "Quelle neu verknüpfen", "cmd.component_rename": "Komponente umbenennen", "cmd.component_revert_position": "Position zurücksetzen", "cmd.component_unlock": "Inhalt entsperren", @@ -211,6 +517,7 @@ "cmd.edit_checkpoint": "Prüfpunkt", "cmd.edit_restore_checkpoint": "Prüfpunkt wiederherstellen", "cmd.engine_commands": "Befehle auflisten", + "cmd.engine_describe": "Befehl beschreiben", "cmd.explode_create": "Explosionsdarstellung", "cmd.explode_delete": "Explosionsdarstellung löschen", "cmd.explode_list": "Explosionsdarstellungen auflisten", @@ -224,6 +531,7 @@ "cmd.file_slicers": "Installierte Slicer", "cmd.inspect_accessibility": "Zugänglichkeitsanalyse", "cmd.inspect_center_of_mass": "Massenschwerpunkt", + "cmd.inspect_clearance": "Freiraum", "cmd.inspect_compare": "Körper vergleichen", "cmd.inspect_continuity": "Kontinuitätsprüfung", "cmd.inspect_curvature_comb": "Krümmungskamm-Analyse", @@ -233,6 +541,7 @@ "cmd.inspect_interference": "Eingriff", "cmd.inspect_isocurve": "Isokurvenanalyse", "cmd.inspect_minimum_radius": "Mindestradiusanalyse", + "cmd.inspect_silhouette": "Silhouette", "cmd.inspect_zebra": "Zebra-Analyse", "cmd.joint_as_built": "Fertigungsgelenk", "cmd.joint_cam": "Nocken", @@ -241,6 +550,7 @@ "cmd.joint_drive": "Gelenke antreiben", "cmd.joint_edit": "Gelenk bearbeiten", "cmd.joint_gear": "Zahnrad", + "cmd.joint_inspect": "Gelenk prüfen", "cmd.joint_limits": "Gelenkgrenzen", "cmd.joint_list": "Gelenke auflisten", "cmd.joint_motion_link": "Bewegungsverknüpfung", @@ -368,6 +678,8 @@ "cmd.sketch_isoparametric_curve": "Isoparametrische Kurve", "cmd.sketch_line3d": "3D-Linie", "cmd.sketch_line_midpoint": "Linie über den Mittelpunkt", + "cmd.sketch_loose_ends": "Lose Enden", + "cmd.sketch_loose_ends_tie": "Lose Enden verknüpfen", "cmd.sketch_move": "Skizzenentitäten verschieben/kopieren", "cmd.sketch_move3d": "3D-Punkt verschieben", "cmd.sketch_move_point": "Skizzenpunkt ziehen", @@ -380,6 +692,7 @@ "cmd.sketch_polygon_inscribed": "Eingeschriebenes Polygon", "cmd.sketch_project_to_surface": "Auf Fläche projizieren", "cmd.sketch_rectangle_center": "Rechteck vom Mittelpunkt", + "cmd.sketch_rectangle_rounded": "Abgerundetes Rechteck", "cmd.sketch_rectangle_three_point": "3-Punkt-Rechteck", "cmd.sketch_rectangle_two_point": "2-Punkt-Rechteck", "cmd.sketch_redefine": "Skizzierebene neu definieren", @@ -396,6 +709,7 @@ "cmd.sketch_spline_fit_point": "Spline mit Fitpunkten", "cmd.sketch_spun_profile": "Gedrehtes Profil", "cmd.sketch_toggle_driven": "Abhängiges Maß umschalten", + "cmd.sketch_trim_path": "Entlang Pfad trimmen", "cmd.solid_align": "Ausrichten", "cmd.solid_boundary_fill": "Begrenzungsfüllung", "cmd.solid_bounding_solid": "Begrenzender Körper", @@ -446,6 +760,15 @@ "cmd.view_navigate": "Ansicht navigieren", "cmd.view_rename": "Benannte Ansicht umbenennen", "cmd.view_save": "Neue benannte Ansicht", + "color.copy": "Klicken, um Farbwerte zu kopieren", + "color.edit": "Klicken, um Farbe zu bearbeiten", + "color.gamma": "Farbwerte im Gammaraum 0-255 anzeigen", + "color.hue": "Farbton", + "color.linear": "Farbwerte im linearen Raum 0-1 anzeigen", + "color.saturation_value": "Sättigung und Wert", + "color.selected": "Ausgewählte Farbe", + "contact.components_count": "{count} Komponenten", + "contact.enabled_label": "aktiviert", "coupling.gear_1": "Zahnrad 1", "coupling.gear_1_pick": "Zahnrad 1 (optional)", "coupling.gear_2": "Zahnrad 2", @@ -462,6 +785,21 @@ "coupling.rack": "Zahnstange", "coupling.radius_1": "Radius 1", "coupling.radius_2": "Radius 2", + "crash.announce": "SolidCraft wurde beim letzten Mal unerwartet beendet oder ist auf einen internen Fehler gestoßen. Ein Absturzbericht wurde gespeichert (Hilfe > Absturzberichte…).", + "crash.copy_folder": "Ordnerpfad kopieren", + "crash.copy_path": "Pfad kopieren", + "crash.deleted": "{count} Bericht(e) gelöscht.", + "crash.detected_time": "Erkannt {time} UTC", + "crash.intro": "Absturzberichte bleiben auf diesem Computer und werden nirgendwohin gesendet. Bericht… öffnet einen Entwurf, den Sie prüfen, bevor etwas geteilt wird.", + "crash.kind_command": "Interner Fehler in einem Befehl", + "crash.kind_internal": "Interner Fehler", + "crash.kind_kernel": "Kernelfehler (wiederhergestellt)", + "crash.kind_unclean": "Unerwartet beendet", + "crash.previous_session": "Eine frühere SolidCraft-Sitzung wurde unerwartet beendet oder ist auf einen internen Fehler gestoßen. Berichte über unsauberes Beenden werden beim Start erkannt. Details unter Hilfe > Absturzberichte….", + "crash.replayable": "wiederholbar", + "crash.report": "Bericht…", + "crash.unclean_explanation": "Beim späteren Start erkannt; der genaue Zeitpunkt des Beendens wurde nicht aufgezeichnet. Auch ein Herunterfahren des Systems oder ein erzwungener Stopp kann ein unsauberes Beenden verursachen.", + "delete.and_more": "… und {count} weitere", "dialog.bodies_count": "{count} Körper", "dialog.clearance_invalid": "der Abstand muss eine Länge von 0 oder mehr sein", "dialog.compute": "Berechnen", @@ -469,6 +807,8 @@ "dialog.computing": "Wird berechnet… {seconds} s", "dialog.could_not_be_checked": "nicht prüfbar", "dialog.custom_axis": "↖ Eigene Achse", + "dialog.dimension_insert_hint": "Doppelklicken Sie auf eine andere steuernde Bemaßung, um ihren Namen einzufügen", + "dialog.dimension_name": "Bemaßung: {name}", "dialog.edit_title": "{title} bearbeiten", "dialog.select": "↖ Auswählen", "dialog.selected_count": "↖ {count} ausgewählt", @@ -492,6 +832,30 @@ "dxf.progress.write": "DXF schreiben (5/5)", "dxf.tolerance": "Kurventoleranz", "dxf.tolerance_help": "Nur sichtbare Körper. Kurven werden durch gerade Segmente angenähert. Eine kleinere Toleranz liefert feinere Kurven und benötigt mehr Zeit und Speicher.", + "file_load.built": "Bisher erstellt: {built} von {total} Merkmalen.", + "file_load.converting": "Volumenkörper {done} von {total} wird konvertiert", + "file_load.inserting": "Geometrie wird eingefügt", + "file_load.opening": "Design wird geöffnet", + "file_load.preparing_thumbnail": "Vorschaubild wird vorbereitet...", + "file_load.preparing_view": "Ansicht wird vorbereitet...", + "file_load.preview_note": "Gespeicherte Vorschau. Die Geometrie wird vor dem Bearbeiten geprüft.", + "file_load.reading": "Datei wird gelesen...", + "file_load.reading_percent": "Datei wird gelesen... {percent} %", + "file_load.rebuilding": "Merkmal {done} von {total} wird neu aufgebaut", + "file_load.recovering": "Design wird wiederhergestellt", + "file_load.stopping": "Warten, bis der vorherige Vorgang beendet ist...", + "file_load.waiting": "Warten auf Dateivorgang", + "fits the face, e.g. M8": "passt zur Fläche, z. B. M8", + "from the rule": "aus der Regel", + "help.apache": "Apache-Lizenz 2.0", + "help.attributions": "Quellenangaben (ATTRIBUTION.md)", + "help.build": "Version {version} · Commit {commit} · erstellt am {date}", + "help.font_details": "Die Oberfläche verwendet die integrierten Schriftarten von egui (Ubuntu Light und Hack unter der Ubuntu Font Licence und der MIT/Bitstream-Vera-Lizenz; Noto Emoji und die Emoji-Symbolschrift unter OFL und MIT). Skizzentext verwendet Liberation Sans (SIL OFL 1.1). Das optionale Schriftpaket craft-fonts von The Crafting Apps (BIZ UDPGothic, Shippori Mincho, BIZ UDMincho, Noto Sans CJK SC, Noto Sans Arabic; SIL OFL 1.1) ist nicht in SolidCraft-Builds enthalten.", + "help.fonts": "Schriftarten", + "help.licences": "Lizenzen", + "help.mit": "MIT-Lizenz", + "help.notice": "NOTICE", + "help.third_party": "Drittanbieterlizenzen", "home.documentation": "Dokumentation", "home.in_this_browser": "in diesem Browser", "home.missing": "fehlt", @@ -517,30 +881,86 @@ "install.menu": "App installieren…", "install.steps_intro": "Safari installiert Web-Apps über seine eigenen Menüs:", "install.title": "SolidCraft installieren", + "issue.body_label": "Berichtstext", + "issue.note_image_copied": "Fügen Sie das Bild in den GitHub-Entwurf ein oder speichern Sie das PNG, falls das Kopieren von Bildern nicht verfügbar ist.", + "issue.note_opened": "Prüfen Sie den GitHub-Entwurf und hängen Sie den Screenshot an. Die Schaltfläche Submit new issue von GitHub veröffentlicht ihn.", + "issue.note_opened_copied": "Bericht kopiert. Fügen Sie ihn in den GitHub-Entwurf ein, hängen Sie den Screenshot an und klicken Sie auf GitHub auf Submit new issue.", + "issue.note_removed": "Screenshot aus diesem Entwurf entfernt.", + "issue.note_report_copied": "Bericht kopiert. Fügen Sie ihn bei Bedarf in den GitHub-Entwurf ein.", + "issue.note_save_failed": "Screenshot konnte nicht gespeichert werden: {error}", + "issue.note_saved": "Screenshot gespeichert. Hängen Sie das PNG im GitHub-Entwurf an.", + "issue.save_screenshot": "Screenshot speichern…", "joint.from_bodies_hint": "Jeder ausgewählte Körper kommt in eine eigene neue Komponente und bleibt, wo er ist.", "joint.one_body": "Beide Auswahlen liegen auf {body}. Wählen Sie die zweite auf einem anderen Teil.", "joint.one_component": "Diese Teile sind Körper einer Komponente: {bodies}. Ein Gelenk bewegt eine Komponente gegenüber einer anderen, daher braucht jedes Teil eine eigene Komponente.", + "keymap.command_id": "Befehls-ID", + "keymap.empty": "Keine passenden Befehle", + "keymap.use_anyway": "{key} hier trotzdem verwenden", + "manage.appearance_hint": "Wählen Sie ein Erscheinungsbild für die Auswahl oder ziehen Sie ein Farbmuster auf einen Körper oder eine Fläche.", + "manage.assign_hint": "Wählen Sie Körper und deren Kunststoff-Konstruktionsregel aus.", + "manage.config_hint": "Bearbeiten Sie Konfigurationszeilen, Spalten und Regeln und aktivieren Sie dann eine Zeile oder zeigen Sie deren Vorschau an.", + "manage.empty": "Keine passenden Zeilen.", + "manage.material_hint": "Wählen Sie Körper und deren physikalisches Material aus.", + "manage.parameters_hint": "Bearbeiten Sie Ausdrücke und Einheiten. Änderungen werden mit der Eingabetaste oder beim Verlassen eines Feldes übernommen.", + "manage.rules_hint": "Wählen Sie eine Regel zum Bearbeiten oder erstellen Sie eine neue. Bestätigen Sie, um die Regel zu speichern.", + "measure.at": "Bei", + "measure.item": "Element {number}", + "messages.ago_h": "vor {n} Std.", + "messages.ago_min": "vor {n} Min.", + "messages.ago_s": "vor {n} Sek.", + "messages.chip_hint": "Klicken für alle Meldungen dieser Sitzung", + "messages.clear": "Leeren", + "messages.copy_all": "Alle kopieren", + "messages.menu": "Meldungen…", + "messages.none": "Noch keine Meldungen.", + "messages.title": "Meldungen", "motion.checked_to": "Nur bis Schritt {step} geprüft: der Prüfaufwand ist erschöpft", "motion.collision": "{a} · {b}: Schritte {steps}", + "motion.delete_key": "Schlüsselbild löschen", "motion.duration_hint": "Sekunden (leer: pro Schritt)", + "motion.key_here": "Schlüsselbild hier setzen", + "motion.key_here_hint": "Ein Schlüsselbild bei diesem Schritt mit dem aktuellen Gelenkwert hinzufügen", "motion.no_collisions": "Keine Kollisionen in der Untersuchung", + "motion.step_back": "Schritt zurück", + "motion.step_forward": "Schritt vor", + "motion.to_end": "Zum Ende", + "motion.to_start": "Zum Anfang", + "motion.track_name": "Spur {number}", "nav.touchpad.help": "Umschalt gedrückt halten und den Zeiger zum Verschieben bewegen; mit Alt/Option drehen. Keine Maustaste nötig. Vertikales Scrollen zoomt.", "nav.touchpad.label": "Touchpad", "nav.touchpad.orbit": "Drehen (Alt/Option halten und bewegen; ohne Maustaste)", "nav.touchpad.pan": "Verschieben (Umschalt halten und bewegen; ohne Maustaste)", "nav.touchpad.scroll": "Touchpad verwendet vertikales Scrollen zum Zoomen. Die Zwei-Finger-Verschiebung bleibt für andere Vorgaben gespeichert.", "nav.touchpad.zoom": "Zoom (vertikal scrollen oder Finger spreizen/zusammenziehen)", + "needs two joints": "benötigt zwei Gelenke", + "new configuration": "neue Konfiguration", + "new parameter": "new parameter", + "no hole": "keine Bohrung", + "no interference": "keine Überschneidung", + "no joint that moves yet": "noch kein Gelenk, das sich bewegt", + "no picture": "kein Bild", + "none": "keine", + "parts.automatic_name": "automatisch", "pattern.alignment_2": "Ausrichtung 2", "pattern.alignment_hint": "Die Anzahl enthält das Original. Die zentrierte Anordnung verteilt Kopien auf beide Seiten; bei gerader Anzahl legt die Richtungsumkehr die Seite mit der zusätzlichen Kopie fest.", "pattern.direction_1": "Richtung 1", "pattern.direction_2": "Richtung 2", "pattern.flip_direction": "Richtung umkehren", + "pick a hole to seat it, or OK places it at the origin": "Wählen Sie eine Bohrung zum Einsetzen, oder OK platziert es im Ursprung", + "pick one or two vertices, edges or faces": "Wählen Sie ein oder zwei Ecken, Kanten oder Flächen", + "prefs.cpu": "CPU (Software)", + "prefs.minutes_suffix": " min", + "properties.title": "Eigenschaften: {name}", + "recovery.days_ago": "vor {count} Tagen", + "recovery.detail": "{file} · {features} Merkmale · automatisch gespeichert {when}", + "recovery.hours_ago": "vor {count} Std.", + "recovery.just_now": "gerade eben", + "recovery.min_ago": "vor {count} Min.", + "recovery.never_saved": "nie gespeichert", "render.background": "Szenenhintergrund", "render.fit": "Produkt einpassen", - "render.image_cancel": "Rendering abbrechen", "render.image_cancelled": "Rendering abgebrochen", "render.image_cancelling": "Wird abgebrochen", - "render.image_check": "Renderanfrage prüfen", "render.image_completed": "Bild bereit zum Export", "render.image_encoding": "PNG wird kodiert", "render.image_export": "PNG exportieren", @@ -587,6 +1007,19 @@ "sample.plate.name": "Beispielplatte", "sample.vents.about": "Langlöcher in einem Rechteckmuster: Zeilen, Spalten und Abstand sind Parameter", "sample.vents.name": "Lüftungsplatte", + "search.command_keys": "Eingabe ausführen Umschalt+Eingabe ausführen und offen lassen Esc schließen", + "search.commands": "Befehle", + "search.design": "In diesem Design", + "search.feature": "Merkmal", + "search.invalid": "Ungültig", + "search.keys": "↑ ↓ auswählen Eingabe ausführen Tab Namen ergänzen Esc schließen", + "search.no_match": "Kein Befehl passt zu '{query}'", + "search.parameter": "Parameter", + "search.recent": "Zuletzt", + "search.run": "Befehl ausführen", + "search.suggest": "Meinten Sie {label}?", + "search.try": "Geben Sie einen Befehlsnamen, ein Merkmal in diesem Design oder einen Parameter ein. Um einen Befehl mit Werten auszuführen, geben Sie seine ID und ein JSON-Objekt ein: {example}", + "search.valid": "Gültig", "settings.display_quality_note": "Feinere Stufen zeigen gekrümmte Flächen und Kanten glatter und brauchen länger zum Vernetzen. Nur die Ansicht ändert sich, nie das Design oder Exporte.", "settings.frame_rate_note": "Zeigt die Bilder pro Sekunde unten rechts in der Ansicht. Solange sie an ist, wird die Ansicht fortlaufend neu gezeichnet.", "settings.measure_axis_distances": "X/Y/Z-Maße anzeigen", @@ -597,27 +1030,51 @@ "settings.reset_intro": "Diese Einstellungen funktionieren auf diesem Computer nicht und würden den Start von SolidCraft verhindern. Sie wurden daher geändert:", "settings.reset_title": "Einstellungen wurden geändert", "settings.supersampling_note": "Zeichnet die Ansicht in höherer Auflösung und rechnet sie herunter: glattere Kanten, Linien und Raster auf Bildschirmen unter 4K. Kostet GPU-Zeit: etwa 2,25-mal so viele Pixel bei 1,5× und 4-mal bei 2×.", + "shortcut.json_error": "Parameter müssen JSON sein: {error}", + "shortcut.no_command": "kein Befehl `{id}`; der Text vor dem JSON muss eine Befehls-ID sein", + "shortcut.pin": "Oben im S-Feld anheften", + "shortcut.unpin": "Loslösen", "sketch.degrees_of_freedom": "{count} Freiheitsgrade", + "sketch.dof_left": "{count} Freiheitsgrade übrig", + "sketch.dof_left_one": "{count} Freiheitsgrad übrig", "sketch.draw_curves": "Als {linetype} zeichnen", "sketch.make_selection": "Auswahl als {linetype} markieren", + "sketch.open_ends": "Offen {count}", + "sketch.untied_ends": "Unverknüpft {count}", + "sketch_panel.attached": "Angehängt an {body} / {path}", + "sketch_panel.author": "Autorenplatzierung: {path}", + "sketch_panel.dimension_hint": "Einen Wert oder Ausdruck eingeben, dann OK drücken.", + "sketch_panel.move_hint": "Abstände und einen Winkel eingeben, dann OK drücken.", + "sketch_panel.redefine_title": "{command}: {name}", + "sketch_panel.sheet_attachment": "An eine ebene Fläche eines Blechkörpers angehängt; folgt diesem Bereich bei Änderungen am Blech.", + "sketch_panel.text_hint": "Text und Platzierung bearbeiten, dann OK drücken.", + "sketch_panel.use_plane": "Ebene {plane} verwenden", "sketch_text.align_center": "Mitte", "sketch_text.align_left": "Links", "sketch_text.align_right": "Rechts", "sketch_text.bold": "Fett", "sketch_text.builtin_font": "{family} (integriert)", - "sketch_text.font_search": "Schriftarten suchen", "sketch_text.italic": "Kursiv", "sketch_text.loading_fonts": "Installierte Schriftarten werden gesucht…", "sketch_text.on_path": "Der Text folgt seiner Kurve: sie bestimmt seine Lage", "sketch_text.path_clear": "Text von der Kurve lösen", "sketch_text.path_hint": "Eine Skizzenkurve, der der Text folgt: hier klicken, dann die Kurve", "sketch_text.use_font_file": "Schriftdatei {path} verwenden", + "solid": "Volumenkörper", + "the parts library is not available": "Die Teilebibliothek ist nicht verfügbar", + "thread.automatic_size": "Automatische Größe", + "thread.designation": "Bezeichnung", + "thread.iso_metric": "ISO metrisch", + "thread.select_size": "Größe wählen", "timeline.group": "Neuen Merkmalsordner anlegen", "timeline.move_many": "Zeitleistenelemente verschieben", "timeline.move_to_group": "Merkmale in Ordner verschieben", "timeline.rename_group": "Merkmalsordner umbenennen", "timeline.reorder_many": "Merkmale neu ordnen", "timeline.ungroup": "Merkmalsordner entfernen", + "to the face": "bis zur Fläche", + "to the next face": "bis zur nächsten Fläche", + "toolbar.customize_note": "Registerkarte {tab}. Markieren Sie einen Befehl, um ihm eine Schaltfläche in der Werkzeugleiste zu geben. Sie können auch eine Zeile aus dem Aufklappmenü eines Panels auf die Werkzeugleiste ziehen, eine Schaltfläche zum Entfernen aus der Werkzeugleiste ziehen oder die Stecknadel einer Menüzeile verwenden.", "toolbar.image": "BILD", "toolbar.render": "RENDERN", "toolbar.render_scene": "SZENE", @@ -625,17 +1082,22 @@ "trace.stopped_by_contact": "Endet bei Probe {sample}: {a} würde {b} durchdringen", "trace.stopped_by_loop": "Endet bei Probe {sample}: die Schleife über {joint} lässt sich nicht weiter schließen", "ui.1_degree_of_freedom": "1 Freiheitsgrad", + "ui.3d_mouse_speed": "Geschwindigkeit der 3D-Maus", "ui.3d_sketch": "3D-Skizze", - "ui.about": "Über", "ui.activate": "Aktivieren", "ui.active_component": "Aktive Komponente", + "ui.add_configuration": "Konfiguration hinzufügen", + "ui.add_parameter": "Parameter hinzufügen", "ui.agent_chat": "Agenten-Chat", + "ui.agent_chat_add": "Dateien anhängen", + "ui.agent_chat_add_file": "Datei auswählen…", "ui.agent_chat_allow": "Erlauben", "ui.agent_chat_allowed": "Erlaubt", "ui.agent_chat_answered": "Antwort: {option}", "ui.agent_chat_approval": "Darf der Agent das tun?", "ui.agent_chat_attach_view": "Ansicht anhängen", "ui.agent_chat_attach_view_tip": "Ein Bild der aktuellen Ansicht mit der Nachricht senden", + "ui.agent_chat_attachable": "Bilder, PDFs, Text- und CAD-Dateien", "ui.agent_chat_auth_agent": "Mit {name} anmelden", "ui.agent_chat_auth_env": "Setzen Sie {vars} in Ihrer Umgebung und starten Sie SolidCraft neu.", "ui.agent_chat_auth_needed": "Der Agent bittet Sie, sich anzumelden. Sie melden sich beim Agenten selbst an; SolidCraft sieht Ihr Passwort oder Ihre Schlüssel nie.", @@ -655,31 +1117,74 @@ "ui.agent_chat_deny": "Ablehnen", "ui.agent_chat_desktop_only": "Der Agenten-Chat braucht die Desktop-App.", "ui.agent_chat_detecting": "Suche nach Agenten…", + "ui.agent_chat_dock": "Im Seitenpanel andocken", "ui.agent_chat_dock_left": "Links andocken", "ui.agent_chat_dock_right": "Rechts andocken", + "ui.agent_chat_drop_hint": "Ablegen, um an die nächste Nachricht anzuhängen", + "ui.agent_chat_edit": "Bearbeiten", "ui.agent_chat_exited": "Der Agent wurde beendet.", "ui.agent_chat_failed_start": "Der Agent konnte nicht starten: {error}", + "ui.agent_chat_file_cad_not_read": "{name}: Eine CAD-Datei wird in das Design importiert, nicht gelesen", + "ui.agent_chat_file_empty_picture": "{name}: ein leeres Bild", + "ui.agent_chat_file_error": "{name}: {error}", + "ui.agent_chat_file_heic": "{name}: HEIC-Bilder können hier nicht gelesen werden; exportieren Sie sie zuerst als JPEG oder PNG", + "ui.agent_chat_file_importing": "Wird in das Design importiert…", + "ui.agent_chat_file_kinds": "{name}: Es können Bilder (PNG, JPEG, GIF, WebP, BMP, TIFF), Textdateien (auch SVG) und CAD-Dateien (STEP, IGES, FreeCAD, Rhino, STL, 3MF, OBJ, glTF) angehängt werden", + "ui.agent_chat_file_loading": "Datei wird gelesen…", + "ui.agent_chat_file_not_a_file": "{name}: keine Datei", + "ui.agent_chat_file_not_a_picture": "{name}: kein Bild", + "ui.agent_chat_file_not_utf8": "{name}: kein UTF-8-Text", + "ui.agent_chat_file_picture_too_big": "{name}: Ein Bild darf höchstens {max} MB groß sein", + "ui.agent_chat_file_text_too_big": "{name}: Eine Textdatei darf höchstens {max} KB groß sein", + "ui.agent_chat_file_too_large": "{name}: zu groß", + "ui.agent_chat_file_too_large_to_send": "{name}: zu groß zum Senden, auch verkleinert", + "ui.agent_chat_file_unreadable_picture": "{name}: kein Bild, das gelesen werden kann", + "ui.agent_chat_files": "Dateien: {files}", + "ui.agent_chat_files_left_out": "Höchstens {max} Dateien pro Nachricht; ausgelassen: {files}", + "ui.agent_chat_files_loading": "Warten, bis die Dateien gelesen sind", + "ui.agent_chat_files_max": "Höchstens {max} Dateien pro Nachricht", + "ui.agent_chat_import_failed": "{name}: Der Import ist fehlgeschlagen: {error}", "ui.agent_chat_intro": "Chatten Sie mit einem Coding-Agenten, den Sie schon nutzen, oder einem Modell-Endpunkt Ihrer Wahl. Er arbeitet über die Werkzeuge von SolidCraft am geöffneten Design: Seine Änderungen erscheinen sofort und lassen sich pro Nachricht in einem Schritt rückgängig machen. Was er ohne Nachfrage darf, legen Sie unter Einstellungen > KI fest.", "ui.agent_chat_key_in_env": "Schlüssel gesetzt", "ui.agent_chat_left": "Links", "ui.agent_chat_limit": "Der Agent hat die Grenze von {limit} Änderungen für eine Nachricht erreicht. Senden Sie eine weitere Nachricht, damit er weitermacht.", "ui.agent_chat_minimize": "Zu einer Leiste minimieren", + "ui.agent_chat_model_tip": "Das vom Agenten verwendete Modell. Ihre Auswahl wird für diesen Agenten gespeichert.", + "ui.agent_chat_new": "Neuer Chat", + "ui.agent_chat_new_confirm": "Neuen Chat starten? Der aktuelle wird geleert.", + "ui.agent_chat_next_picture": "Nächstes Bild", "ui.agent_chat_no_cli": "solidcraft-cli wurde neben der App nicht gefunden, daher kann der Agent das Design nicht erreichen.", "ui.agent_chat_no_control": "Der Endpunkt des Agenten-Chats ist nicht gestartet, daher kann der Agent das Design nicht erreichen.", "ui.agent_chat_no_images": "Dieser Agent nimmt keine Bilder an", + "ui.agent_chat_no_picture": "In der Zwischenablage befindet sich kein Bild", "ui.agent_chat_none_found": "Kein Coding-Agent gefunden. Installieren Sie einen davon und klicken Sie dann auf Aktualisieren:", "ui.agent_chat_none_found_short": "Kein Agent gefunden", "ui.agent_chat_not_installed": "Nicht installiert", "ui.agent_chat_not_signed_in": "nicht angemeldet", + "ui.agent_chat_own_window": "Eigenes Fenster", + "ui.agent_chat_paste_picture": "Bild einfügen", "ui.agent_chat_permission": "Der Agent möchte ausführen: {title}", "ui.agent_chat_pick": "Agent", "ui.agent_chat_placeholder": "Bitten Sie den Agenten, das Design zu ändern…", + "ui.agent_chat_placeholder_busy": "Nachricht einreihen, bis der Agent fertig ist (Strg+Eingabe: jetzt senden)", + "ui.agent_chat_pop_out": "In eigenem Fenster öffnen, das Sie auf einen anderen Bildschirm verschieben können", + "ui.agent_chat_previous_picture": "Vorheriges Bild", "ui.agent_chat_privacy": "Nichts geht irgendwohin außer an den Agenten, den Sie unter Ihrem eigenen Konto ausführen.", "ui.agent_chat_privacy_note": "SolidCraft sendet nichts irgendwohin: Der Agent, den Sie starten, spricht unter Ihrem eigenen Konto mit seinem eigenen Dienst. SolidCraft sieht und speichert nie einen Schlüssel oder ein Passwort.", + "ui.agent_chat_queue": "Einreihen", + "ui.agent_chat_queue_full": "Zu viele Nachrichten warten: Entfernen Sie eine oder warten Sie auf den Agenten.", + "ui.agent_chat_queued": "Eingereiht", + "ui.agent_chat_queued_stopped": "Eingereiht (gestoppt, nicht gesendet)", "ui.agent_chat_refresh": "Aktualisieren", "ui.agent_chat_refused": "Für den Agenten nicht erlaubt: {reason}", + "ui.agent_chat_remove": "Aus der Warteschlange entfernen", + "ui.agent_chat_remove_file": "Von dieser Nachricht entfernen", + "ui.agent_chat_remove_imported": "Von dieser Nachricht entfernen; das Teil bleibt im Design (Rückgängig entfernt es)", "ui.agent_chat_right": "Rechts", + "ui.agent_chat_save": "Speichern", "ui.agent_chat_send": "Senden", + "ui.agent_chat_send_now": "Jetzt senden", + "ui.agent_chat_send_now_tip": "Den aktuellen Schritt des Agenten stoppen und dies als Nächstes senden (Strg+Eingabe)", "ui.agent_chat_side": "Seite des Agenten-Chats", "ui.agent_chat_signed_in": "angemeldet", "ui.agent_chat_state_auth": "Anmeldung nötig", @@ -690,6 +1195,7 @@ "ui.agent_chat_state_starting": "Startet…", "ui.agent_chat_stop": "Beenden", "ui.agent_chat_stop_tip": "Den Agenten und alles, was er gestartet hat, beenden", + "ui.agent_chat_stop_turn_tip": "Agenten stoppen (Esc). Eingereihte Nachrichten bleiben eingereiht.", "ui.agent_chat_turn_limit": "Änderungen pro Nachricht", "ui.agent_chat_undo_changes": "Diese Änderungen rückgängig machen", "ui.agent_chat_undo_label": "Agenten-Chat: {message}", @@ -718,6 +1224,7 @@ "ui.ai_bad_url": "Geben Sie eine URL ein, die mit http:// oder https:// beginnt", "ui.ai_base_url": "Basis-URL", "ui.ai_button": "KI", + "ui.ai_command_hint": "my-agent --acp", "ui.ai_copy_suffix": "Kopie", "ui.ai_custom_url": "Eigene URL", "ui.ai_default": "Standard", @@ -738,8 +1245,10 @@ "ui.ai_mode_edits_note": "Modellierbefehle laufen ohne Nachfrage; Speichern, Öffnen, Exportieren und andere Datei- oder destruktive Aktionen fragen weiterhin.", "ui.ai_mode_global": "Wie oben eingestellt", "ui.ai_model": "Modell", + "ui.ai_model_hint": "qwen3:14b", "ui.ai_modes_scope": "Diese Einstellungen gelten für die Werkzeuge von SolidCraft. Die eigenen Werkzeuge eines Agenten (seine Shell, seine Dateiänderungen) folgen seinem eigenen Modus, den Sie im Kopf des Chat-Panels wählen, wenn der Agent Modi hat.", "ui.ai_name": "Name", + "ui.ai_name_hint": "Mein Agent", "ui.ai_need_command": "Geben Sie den Befehl ein, der den Agenten startet", "ui.ai_need_model": "Geben Sie den Modellnamen ein", "ui.ai_no_answer": "Der Agent hat nicht rechtzeitig geantwortet", @@ -770,6 +1279,7 @@ "ui.ai_toolbar_button": "Schaltfläche in der Werkzeugleiste anzeigen", "ui.ai_toolbar_button_note": "Die KI-Schaltfläche am rechten Ende der Werkzeugleiste. Strg+Umschalt+A und das Ansicht-Menü öffnen das Panel weiterhin.", "ui.ai_undo_tip": "Alles, was der Agent für diese Nachricht geändert hat, in einem Schritt rückgängig machen", + "ui.ai_url_hint": "https://example.com/v1", "ui.all": "Alle", "ui.ambient_occlusion": "Umgebungsverdeckung", "ui.ambient_occlusion_help": "Sanfte Schattierung an Kontaktstellen und in Vertiefungen undurchsichtiger Flächen. Erfordert die GPU-Ansicht.", @@ -783,7 +1293,8 @@ "ui.anti_aliasing": "Kantenglättung", "ui.apply": "Anwenden", "ui.arc": "Kreisbogen", - "ui.assemble": "Zusammenbau", + "ui.assistant": "Assistent", + "ui.assistant_waiting": "{count} Freigaben warten", "ui.autosave_every": "Autospeichern alle", "ui.axes": "Achsen", "ui.axis": "Achse", @@ -794,6 +1305,11 @@ "ui.bodies_all_if_none": "Körper (alle, wenn keine)", "ui.box": "Block", "ui.break": "Unterbrechen", + "ui.browser_bodies_one": "{count} Körper", + "ui.browser_bodies_other": "{count} Körper", + "ui.browser_collapse": "Browser einklappen", + "ui.browser_expand": "Browser ausklappen", + "ui.browser_title": "Browser", "ui.calibrate": "Kalibrieren", "ui.cancel": "Abbrechen", "ui.canvases": "Kanvas", @@ -803,11 +1319,13 @@ "ui.chamfer": "Abschrägung", "ui.chamfer_type": "Fasentyp", "ui.change_workspace": "Arbeitsbereich wechseln", - "ui.chord_length": "Sehnenlänge", "ui.circle": "Kreis", "ui.circular_pattern": "Radiales Muster", + "ui.clear": "Leeren", "ui.clear_recent": "Zuletzt verwendet leeren", "ui.clear_the_selection": "Auswahl aufheben", + "ui.click_selects_whole_bodies": "Klick wählt ganze Körper aus", + "ui.click_then_press_key": "Klicken, dann die neue Taste drücken", "ui.close": "Schließen", "ui.coil": "Schraube", "ui.coincident": "Koinzident", @@ -833,12 +1351,11 @@ "ui.command_done": "{command} fertig", "ui.command_palette_hint": "Befehl eingeben, z. B. {example} — oder S drücken, um zu suchen", "ui.concentric": "Konzentrisch", - "ui.configurations": "Konfigurationen", "ui.conic_curve": "Kegelschnitt", "ui.constant": "Konstant", "ui.constraints_conflict": "Bedingungen konfliktreich", - "ui.construct": "Konstruktion", "ui.construction": "Konstruktionslinie", + "ui.context_menu": "Kontextmenü", "ui.continuity_g0": "G0 Knick", "ui.continuity_g1": "G1 Tangente", "ui.continuity_g2": "G2 Krümmung", @@ -862,7 +1379,6 @@ "ui.cylinder": "Zylinder", "ui.dark": "Dunkel", "ui.default_modelling_orientation": "Standard-Modellierungsorientierung", - "ui.degrees_of_freedom": "Freiheitsgrade", "ui.delete": "Löschen", "ui.depth": "Tiefe", "ui.design": "Design", @@ -904,8 +1420,8 @@ "ui.equivalent_radius": "Äquivalenter Radius", "ui.expand": "Aufklappen", "ui.exportDxf": "Als DXF exportieren…", - "ui.export_ellipsis": "Exportieren...", "ui.export_ellipsis_keymap": "Exportieren…", + "ui.export_keymap_tip": "Tasten, S-Box-Favoriten und die Symbolleiste als Datei", "ui.extend": "Verlängern", "ui.extent_type": "Ausdehnungstyp", "ui.extrude": "Extrudieren", @@ -915,6 +1431,7 @@ "ui.features": "Funktionen", "ui.file": "Datei", "ui.fillet": "Vollrundung", + "ui.filter_commands_or_keys": "Befehle oder Tasten filtern", "ui.findInTimeline": "In der Zeitleiste suchen", "ui.findInWindow": "Im Fenster suchen", "ui.finish_sketch": "Skizze beenden", @@ -926,6 +1443,7 @@ "ui.frame_rate": "Bildrate", "ui.front": "Vorne", "ui.fully_constrained": "Vollständig bestimmt", + "ui.function": "Funktion", "ui.general": "Allgemein", "ui.graphics": "Grafik", "ui.graphics_custom": "Benutzerdefiniert", @@ -933,7 +1451,11 @@ "ui.graphics_preset": "Grafikprofil", "ui.graphics_preset_help": "Qualität: Umgebungsverdeckung, feine Anzeigequalität und adaptives 2× Supersampling. Leistung: keine Umgebungsverdeckung, normale Anzeigequalität und kein Supersampling. Manuelle Änderungen: Benutzerdefiniert. MSAA bleibt unverändert.", "ui.graphics_quality": "Qualität", + "ui.grid_follows_view": "Raster folgt der Ansicht", + "ui.grid_follows_view_hint": "Seitenansichten zeigen das Raster auf der aufrechten Ebene, die ihnen zugewandt ist, statt auf dem Boden", + "ui.ground_shadow": "Bodenschatten", "ui.groupSelected": "Auswahl gruppieren", + "ui.heading_add_ins": "ADD-INS", "ui.heading_assemble": "ZUSAMMENBAU", "ui.heading_box": "BLOCK", "ui.heading_chamfer": "ABSCHRÄGUNG", @@ -959,6 +1481,7 @@ "ui.heading_inspect": "PRÜFEN", "ui.heading_interference": "EINGRIFF", "ui.heading_loft": "LOFT", + "ui.heading_make": "FERTIGEN", "ui.heading_measure": "Messen", "ui.heading_mesh": "MESH", "ui.heading_mirror": "SPIEGELN", @@ -975,6 +1498,7 @@ "ui.heading_plane_at_angle": "EBENE IM WINKEL", "ui.heading_plastic": "PLASTIK", "ui.heading_position": "POSITION", + "ui.heading_prepare": "VORBEREITEN", "ui.heading_rectangular_pattern": "RECHTECKMUSTER", "ui.heading_revolve": "DREHEN", "ui.heading_right": "RECHTS", @@ -986,7 +1510,6 @@ "ui.heading_sheet_metal": "BLECH", "ui.heading_shell": "HÜLLE", "ui.heading_sketch": "SKIZZE", - "ui.heading_sketch_palette": "SKIZZENPALETTE", "ui.heading_sketch_scale": "SKIZZE SKALIEREN", "ui.heading_solid": "KÖRPER", "ui.heading_sphere": "SPHÄRE", @@ -997,6 +1520,7 @@ "ui.heading_top": "OBEN", "ui.heading_torus": "TORUS", "ui.heading_utilities": "WERKZEUGE", + "ui.heading_utility": "HILFSMITTEL", "ui.help": "Hilfe", "ui.hide": "Ausblenden", "ui.hideAxes": "Achsen ausblenden", @@ -1004,12 +1528,14 @@ "ui.hideOrigin": "Ursprung ausblenden", "ui.hidePlanes": "Ebenen ausblenden", "ui.hideProfile": "Profil ausblenden", + "ui.history_title": "Verlauf", "ui.hole": "Bohrung", "ui.hole_tap_type": "Gewindetyp", "ui.hole_type": "Bohrungstyp", "ui.home": "Start", "ui.homeView": "Startansicht", "ui.horizontal_vertical": "Horizontal/Vertikal", + "ui.import_ellipsis": "Importieren…", "ui.infinite": "Unendlich", "ui.insert": "Einfügen", "ui.inspect": "Prüfen", @@ -1022,10 +1548,12 @@ "ui.length_decimals": "Längen-Dezimalstellen", "ui.light": "Hell", "ui.line": "Linie", - "ui.linetype": "Linientyp", "ui.lock": "Sperren", "ui.loft": "Loft", "ui.look_at": "Ansehen", + "ui.look_at_anim_desc": "Achsenansicht, Ansehen, Home und Einpassen", + "ui.manipulator_free_alt": "Freies Ziehen des Manipulators auch mit Alt/Option", + "ui.manipulator_free_alt_tip": "An: Alt/Option oder Strg/Cmd auf Extrusions-/Gizmo-Pfeilen deaktiviert das Einrasten von Werten. Aus: nur Strg/Cmd.", "ui.manufacture": "Fertigung", "ui.material_review.axes": "Materiallokale Achsen; keine Körperausrichtung zugewiesen.", "ui.material_review.claims": "Quellen und Lizenzen sind ungeprüfte Angaben. Fehlende Werte bleiben unbekannt.", @@ -1053,10 +1581,8 @@ "ui.mesh_format_3mf": "3MF", "ui.mesh_format_3mf_tagged": "3MF mit Flächenmarken", "ui.mesh_format_stl": "STL", - "ui.midpoint": "Mittelpunkt", "ui.mirror": "Spiegeln", "ui.mirror_line": "Spiegelachse", - "ui.modify": "Ändern", "ui.move": "Verschieben", "ui.multiple": "Mehrfach", "ui.named_views": "Benannte Ansichten", @@ -1065,6 +1591,7 @@ "ui.newSketchGroup": "Neue Skizzengruppe", "ui.new_body": "Neuer Körper", "ui.new_design": "Neues Design", + "ui.no_geometry_yet": "Noch keine Geometrie", "ui.no_slicer_found": "Kein Slicer gefunden", "ui.normal": "Normal", "ui.normalConstruction": "Normal / Konstruktion", @@ -1076,7 +1603,7 @@ "ui.offset_plane": "Abstandsebene", "ui.one_side": "Einseitig", "ui.open": "Öffnen", - "ui.open_ellipsis": "Öffnen...", + "ui.open_ends_tip": "Berührt nichts", "ui.open_preferences": "Einstellungen öffnen", "ui.open_recent": "Zuletzt verwendet", "ui.operation": "Operation", @@ -1085,58 +1612,81 @@ "ui.orbit_around": "Umkreisen um", "ui.orientation": "Ausrichtung", "ui.origin": "Ursprung", - "ui.palette_points": "Punkte", - "ui.palette_profile": "Profil", + "ui.palette_construction_mode": "Konstruktionsmodus (X)", + "ui.palette_more": "Mehr", + "ui.palette_sketch_options": "Skizzenoptionen", "ui.pan": "Verschieben", "ui.pan_zoom_orbit": "Verschieben, zoomen, umkreisen", "ui.parallel": "Parallel", "ui.parameters": "Parameter", + "ui.part_size_shared": "Baut das Teil neu auf und ersetzt alle hinzugefügten Merkmale. Alle Vorkommen dieser Komponente werden aktualisiert.", "ui.paste": "Einfügen", "ui.path": "Pfad", "ui.pattern_on_path": "Pfadmuster", "ui.perpendicular": "Senkrecht", + "ui.perspective_view": "Perspektivische Ansicht", "ui.pinToShortcuts": "An Verknüpfungen anheften", "ui.pinToToolbar": "An Symbolleiste anheften", "ui.pipe": "Rohr", "ui.placement": "Platzierung", "ui.plane": "Ebene", "ui.plane_at_angle": "Ebene im Winkel", + "ui.plugins": "Plugins", + "ui.plugins_desktop": "Plugins sind in der Desktop-App verfügbar.", + "ui.plugins_empty": "Keine Plugins installiert.", + "ui.plugins_note": "Jedes Plugin ist ein Ordner in {path} mit einer plugin.json. SolidCraft liest diese Datei und führt keinen Code aus dem Ordner aus. Das Ausschalten eines Plugins lässt es installiert.", + "ui.plugins_skipped": "{count} Ordner konnte(n) nicht gelesen werden.", + "ui.plugins_version": "{version}", "ui.point": "Punkt", "ui.point_under_the_cursor": "Punkt unter dem Cursor", "ui.points": "Punkte", "ui.polygon": "Polygon", "ui.preferences": "Einstellungen", + "ui.press_a_key": "Taste drücken…", "ui.profile": "Profil", "ui.profile_plane": "Profilebene", "ui.profiles": "Profile", "ui.project": "Projizieren", + "ui.project_face_edges_sketch": "Flächenkanten in neue Skizzen projizieren", "ui.properties": "Eigenschaften", "ui.pull_direction": "Entformungsrichtung", "ui.quantity": "Anzahl", "ui.quantity_2": "Anzahl 2", "ui.quit": "Beenden", + "ui.radial_context_menu": "Radiales Kontextmenü", "ui.radius": "Radius", - "ui.radius_type": "Radius-Typ", "ui.rail": "Leitkurve", "ui.rail_fit": "Anpassung an Leitkurve", "ui.reachable": "Erreichbar", "ui.rectangle": "Rechteck", "ui.rectangular_pattern": "Rechteckmuster", "ui.redo": "Wiederholen", + "ui.relink_design_changed": "Die Baugruppe hat sich beim Wählen einer Quelle geändert. Starten Sie Quelle neu verknüpfen erneut.", + "ui.relink_done": "Quelle für alle Instanzen neu verknüpft.", + "ui.relink_not_linked": "Diese Komponente ist nicht mit einem Quelldesign verknüpft.", + "ui.relink_select_one": "Wählen Sie zuerst eine verknüpfte Komponente oder eine ihrer Instanzen aus.", + "ui.relink_source_all": "Quelle neu verknüpfen (alle Instanzen)…", "ui.removeFromToolbar": "Aus der Symbolleiste entfernen", "ui.removeSection": "Schnitt entfernen", "ui.render": "Rendern", + "ui.renderer": "Renderer", "ui.repeat": "Wiederholen", "ui.report_a_bug": "Fehler melden", + "ui.reset": "Zurücksetzen", + "ui.reset_all": "Alle zurücksetzen", "ui.reset_the_settings_on_this_page": "Einstellungen auf dieser Seite zurücksetzen", "ui.restore": "Wiederherstellen", "ui.restore_defaults": "Standardeinstellungen wiederherstellen", + "ui.reverse_horizontal_pan_direction": "Horizontale Schwenkrichtung umkehren", + "ui.reverse_horizontal_pan_tip": "Horizontales Zwei-Finger-Scrollen und das Daumenrad schwenken in die andere Richtung", "ui.reverse_zoom_direction": "Zoomrichtung umkehren", "ui.revolve": "Drehen", + "ui.ribbon_exit": "Beenden", + "ui.ribbon_pin_footer": "Angeheftete Befehle erscheinen im Menüband. Fahren Sie über eine Zeile, um sie anzuheften oder zu lösen.", + "ui.ribbon_workspace": "Arbeitsbereich", "ui.right": "Rechts", "ui.save": "Speichern", "ui.save_as": "Speichern unter", - "ui.save_as_ellipsis": "Speichern unter...", "ui.save_mesh_no_slicer": "Kein Slicer gefunden: „Benutzerdefiniert…“ wählen und das Slicer-Programm angeben, oder „An Slicer senden“ ausschalten", "ui.save_mesh_pick_bodies": "Wähle die Körper zum Speichern aus", "ui.save_mesh_temp_failed": "{folder} konnte nicht angelegt werden: {error}", @@ -1150,6 +1700,9 @@ "ui.selectOther": "Andere auswählen…", "ui.selectTangentChain": "Tangentialkette auswählen", "ui.selection": "Auswahl", + "ui.selection_modifiers": "Auswahlmodifikatoren", + "ui.selection_shift_add_only": "Umschalt+Klick fügt hinzu, ohne zu entfernen", + "ui.selection_shift_add_only_tip": "An: Umschalt fügt Elemente hinzu, Strg/Cmd schaltet um. Aus (Standard): Umschalt und Strg/Cmd schalten beide um.", "ui.send": "Senden", "ui.send_to_slicer": "An Slicer senden", "ui.sent_to_slicer": "An {slicer} gesendet", @@ -1165,7 +1718,6 @@ "ui.show_constraints": "Bedingungen", "ui.show_construction_geometries": "Konstruktionsgeometrien", "ui.show_dimensions": "Maße", - "ui.show_points": "Punkte anzeigen", "ui.show_profile": "Profil anzeigen", "ui.show_projected_geometries": "Projizierte Geometrien", "ui.simple": "Einfach", @@ -1174,14 +1726,16 @@ "ui.sketch": "Skizze", "ui.sketch_dimension": "Skizzenmaß", "ui.sketch_grid": "Skizzenraster", + "ui.sketch_modifiers": "Skizzenmodifikatoren", "ui.sketch_scale": "Skizzenskalierung", - "ui.sketch_status": "Skizzenstatus", "ui.sketches": "Skizzen", "ui.slice": "Scheibe", "ui.slicer": "Slicer", "ui.slicer_delete_tip": "{program}\nMit Entf aus der Liste entfernen", "ui.slot": "Langloch", "ui.smooth": "Glatt", + "ui.smooth_wheel_zoom": "Sanftes Zoomen mit dem Rad", + "ui.smooth_wheel_zoom_tip": "Ausschalten, um jedes Radereignis sofort anzuwenden, ohne Nachlauf", "ui.snap": "Einrasten", "ui.space_mouse_calibrate": "Kalibrieren…", "ui.space_mouse_calibrate_tip": "Bewegen Sie die Kappe so, wie das Fenster es verlangt. So lernt SolidCraft, in welche Richtung und wie weit jede Achse dieser 3D-Maus geht. Wird für diese 3D-Maus gespeichert.", @@ -1193,6 +1747,8 @@ "ui.space_mouse_dead_zone": "Totzone", "ui.space_mouse_dead_zone_tip": "Wie weit sich die Kappe bewegen muss, bevor sich die Ansicht bewegt, als Anteil ihres vollen Wegs. Erhöhen Sie sie, wenn die Ansicht wandert, obwohl die Kappe ruht.", "ui.space_mouse_forget": "Kalibrierung vergessen", + "ui.space_mouse_hint": "Ansicht gleichzeitig verschieben und drehen; Skizzen verwenden nur Schwenken und Zoomen.", + "ui.space_mouse_navigate": "Mit SpaceNavigator / SpaceMouse navigieren", "ui.space_mouse_none": "Keine 3D-Maus gefunden", "ui.space_mouse_not_calibrated": "Nicht kalibriert", "ui.space_mouse_reading": "Werte", @@ -1214,14 +1770,17 @@ "ui.sphere": "Sphäre", "ui.spline": "Spline", "ui.split_body": "Körper trennen", + "ui.stand_up_tip": "Nach dem Öffnen einer STEP- oder IGES-Datei mit Z nach oben eine Vierteldrehung um X anbieten", "ui.start": "Start", "ui.start_over": "Von vorn beginnen", - "ui.start_radius": "Startradius", + "ui.start_page": "Startseite", "ui.stretch": "Strecken", "ui.supersampling": "Supersampling (SSAA)", "ui.supersampling_adaptive": "Nur bei ruhender Ansicht", "ui.supersampling_off": "Aus (1×)", "ui.suppress": "Unterdrücken", + "ui.suppress_auto_snap": "Automatisches Einrasten beim Zeichnen / Ziehen unterdrücken", + "ui.suppress_auto_snap_note": "Standard: Strg/Cmd oder Alt/Option unterdrücken jeweils das Einrasten in Skizzen. Wählen Sie eine einzelne Taste, um es einzugrenzen.", "ui.sweep": "Führen", "ui.sweep_follow_direction": "Richtung folgen", "ui.sweep_keep_as_drawn": "Wie gezeichnet", @@ -1236,6 +1795,8 @@ "ui.theme": "Design", "ui.thickness": "Dicke", "ui.thread": "Gewinde", + "ui.tie_ends": "Verknüpfen", + "ui.tie_ends_tip": "Alle unverknüpften Enden mit Abhängigkeiten versehen", "ui.timeline_bottom": "Timeline unten", "ui.timeline_left_note": "Im linken Layout wird die Rücksetzmarke über dem Teile- und Szenenbrowser eingeblendet.", "ui.timeline_left_sidebar": "Linke Seitenleiste", @@ -1245,8 +1806,10 @@ "ui.top": "Oben", "ui.torus": "Torus", "ui.total_angle": "Gesamtwinkel", + "ui.trackpad_pan_tip": "Trackpad-Gesten schwenken (aus: sie zoomen wie das Rad); Mausrad zoomt, Daumenrad schwenkt seitlich, Pinch zoomt immer", "ui.trim": "Kürzen", "ui.twist": "Verdrehung", + "ui.two_finger_scroll_pans": "Zwei-Finger-Scrollen schwenkt", "ui.two_sides": "Beidseitig", "ui.ui_scale": "UI-Skalierung", "ui.undo": "Rückgängig", @@ -1256,19 +1819,37 @@ "ui.units_of_new_designs": "Einheiten für neue Designs", "ui.unlock": "Entsperren", "ui.unsuppress": "Unterdrückung aufheben", + "ui.untied_ends_tip": "Berührt nur nach Position", "ui.untitled": "Ohne Titel", + "ui.up_axis_note": "Welche Achse in den Ansichten nach oben zeigt (Achsenansicht, Home, Ansehen). Designs bleiben unverändert.", "ui.updateToCurrentView": "Auf aktuelle Ansicht aktualisieren", - "ui.variable": "Variabel", "ui.view_centre": "Ansichtszentrum", + "ui.visual_shaded_hidden_edges": "Schattiert mit verdeckten Kanten", + "ui.visual_shaded_with_edges": "Schattiert mit Kanten", "ui.visual_style": "Ansichtsstil", + "ui.visual_wireframe": "Drahtmodell", "ui.workspace": "Arbeitsbereich", + "ui.workspace_animation_description": "Explosionsansichten, Bewegungsstudien und Storyboards", + "ui.workspace_available": "Verfügbar", + "ui.workspace_current": "Aktuell", + "ui.workspace_design_description": "Skizzieren, modellieren, zusammenbauen und prüfen", + "ui.workspace_design_tabs": "Modell · Fläche · Zusammenbau · Einfügen · Prüfen · Verwalten · Ansicht", + "ui.workspace_drawing_description": "2D-Zeichnungen mit Ansichten, Bemaßungen und Schriftfeldern", + "ui.workspace_footer": "Jeder Arbeitsbereich arbeitet am selben Design, Verlauf und derselben Auswahl; nur die Menüband-Register ändern sich. Der Umschalter ist gesperrt, solange eine Skizze oder ein Merkmal bearbeitet wird.", + "ui.workspace_manufacture_description": "Slicing, Werkzeugbahnen und Einrichtung", + "ui.workspace_planned": "Geplant", + "ui.workspace_render_description": "Produktvorschau, Szeneneinstellungen und gerenderte Bilder", + "ui.workspace_render_tabs": "Szene · Bild", + "ui.workspace_simulation_description": "Lasten, Randbedingungen und Ergebnisse", "ui.x_distance": "X-Abstand", "ui.y_distance": "Y-Abstand", + "ui.y_up": "Y nach oben", + "ui.z_up": "Z nach oben", "ui.zoom": "Zoomen", + "ui.zoom_to_cursor_tip": "Das Rad zoomt zum Punkt unter dem Cursor (aus: zur Ansichtsmitte)", "ui.zoom_to_the_cursor": "Zum Cursor zoomen", "update.available": "SolidCraft {version} ist verfügbar", "update.button": "Update", - "update.button_tip": "SolidCraft {version} ist verfügbar", "update.button_version": "Auf {version} aktualisieren", "update.check_automatically": "Automatisch nach Updates suchen", "update.check_now": "Jetzt suchen", @@ -1300,5 +1881,6 @@ "update.title": "Update verfügbar", "update.up_to_date": "SolidCraft ist aktuell.", "update.update_now": "Jetzt aktualisieren", - "update.you_have": "Installiert ist {version}." + "update.you_have": "Installiert ist {version}.", + "↑ ↓ choose · Enter / Tab complete · Esc dismiss": "↑ ↓ auswählen · Eingabe / Tab vervollständigen · Esc schließen" } diff --git a/assets/locales/en.json b/assets/locales/en.json index 7ca850eec..b5d51025c 100644 --- a/assets/locales/en.json +++ b/assets/locales/en.json @@ -3,11 +3,14 @@ "1. Open GitHub draft below, then paste the report copied to your clipboard.": "1. Open GitHub draft below, then paste the report copied to your clipboard.", "1. Open GitHub draft below. Your title and report will be filled in.": "1. Open GitHub draft below. Your title and report will be filled in.", "2. Attach your screenshot: copy and paste it, or save and upload the PNG.": "2. Attach your screenshot: copy and paste it, or save and upload the PNG.", + "2D": "2D", "3. Click Submit new issue on GitHub to send your report.": "3. Click Submit new issue on GitHub to send your report.", "A new configuration, a copy of the active one": "A new configuration, a copy of the active one", - "AI": "AI", + "ARRANGE": "ARRANGE", "About SolidCraft": "About SolidCraft", "Acceleration": "Acceleration", + "Access": "Access", + "Actions": "Actions", "Active": "Active", "Active rule": "Active rule", "Add": "Add", @@ -15,6 +18,7 @@ "Add Mid Radius": "Add Mid Radius", "Add Row": "Add Row", "Add condition": "Add condition", + "Add or edit rule": "Add or edit rule", "Against": "Against", "Alignment": "Alignment", "All Sketch Points": "All Sketch Points", @@ -28,8 +32,11 @@ "Applied Radius": "Applied Radius", "Apply To": "Apply To", "Apply to selection": "Apply to selection", + "Apply your appearance first. Exports assigned appearances and materials created in this design.": "Apply your appearance first. Exports assigned appearances and materials created in this design.", "Arc length": "Arc length", "Area": "Area", + "As-Built": "As-Built", + "Assign Rule": "Assign Rule", "Attachment": "Attachment", "BLEND SURFACE": "BLEND SURFACE", "BOUNDARY SURFACE": "BOUNDARY SURFACE", @@ -37,12 +44,21 @@ "Bend Line Position": "Bend Line Position", "Bend Position": "Bend Position", "Bend Radius": "Bend Radius", + "Bend Table": "Bend Table", "Bends": "Bends", + "Bodies": "Bodies", "Body": "Body", "Boundary": "Boundary", "Bounding box": "Bounding box", + "CHECK": "CHECK", + "COMPONENTS": "COMPONENTS", + "CONFIGURATIONS": "CONFIGURATIONS", + "CONSTRAIN": "CONSTRAIN", + "CONTACT": "CONTACT", + "CONVERT": "CONVERT", "CSV or JSON: updates existing parameters, adds new ones": "CSV or JSON: updates existing parameters, adds new ones", "Capture All Positions": "Capture All Positions", + "Capture Pos.": "Capture Pos.", "Catch Direction": "Catch Direction", "Cells": "Cells", "Center X": "Center X", @@ -53,15 +69,19 @@ "Check collisions": "Check collisions", "Checked": "Checked", "Choose a new plane. Sketch geometry and dimensions stay unchanged in its two-dimensional coordinates.": "Choose a new plane. Sketch geometry and dimensions stay unchanged in its two-dimensional coordinates.", + "Choose…": "Choose…", + "Circular": "Circular", "Circumference": "Circumference", "Close draft": "Close draft", "Collisions": "Collisions", "Colour": "Colour", + "Comment": "Comment", "Component1": "Component1", + "Config Table": "Config Table", "Configuration": "Configuration", "Configuration rules": "Configuration rules", - "Construction": "Construction", "Contact": "Contact", + "Contact Sets": "Contact Sets", "Contact sets": "Contact sets", "Continuity": "Continuity", "Copy Error Message": "Copy Error Message", @@ -79,15 +99,17 @@ "Cube": "Cube", "Current orthographic view (1:1 mm)": "Current orthographic view (1:1 mm)", "Current perspective view": "Current perspective view", + "Curv. Comb": "Curv. Comb", "Curvature (G2)": "Curvature (G2)", "Curvature change (G3)": "Curvature change (G3)", "Customize Toolbar": "Customize Toolbar", + "Delete": "Delete", "Delete all": "Delete all", "Delete rule": "Delete rule", "Delete the row": "Delete the row", "Delete the set": "Delete the set", - "Delete this parameter": "Delete this parameter", "Density": "Density", + "Dependents": "Dependents", "Designs you open or save appear here.": "Designs you open or save appear here.", "Determined by To Object. Choose Angle to edit the angular extent.": "Determined by To Object. Choose Angle to edit the angular extent.", "Direction": "Direction", @@ -99,6 +121,7 @@ "Drive Joint": "Drive Joint", "Duration": "Duration", "Edges": "Edges", + "Edit": "Edit", "Edit Profile Sketch": "Edit Profile Sketch", "Enable rule": "Enable rule", "Enabled": "Enabled", @@ -107,43 +130,63 @@ "Explode": "Explode", "Explode Text": "Explode Text", "Export Animation…": "Export Animation…", + "Export CSV…": "Export CSV…", "Export Current View as DXF": "Export Current View as DXF", "Export Current View as DXF…": "Export Current View as DXF…", + "Export DXF": "Export DXF", "Export DXF…": "Export DXF…", + "Export JSON…": "Export JSON…", "Export hidden edges as dashed lines": "Export hidden edges as dashed lines", + "Expression": "Expression", "Extend to meet": "Extend to meet", "Extents": "Extents", + "FILES": "FILES", + "FLAT": "FLAT", "Face": "Face", "Face attachment lost": "Face attachment lost", "Faces": "Faces", "Faces / edges / vertices": "Faces / edges / vertices", + "Fastener": "Fastener", + "Favorites": "Favorites", "Favourite": "Favourite", + "Feature": "Feature", "Files from many CAD programs have Y up, so they open lying on their back here (Z up).": "Files from many CAD programs have Y up, so they open lying on their back here (Z up).", "Filter": "Filter", "Find in Browser": "Find in Browser", - "Flat": "Flat", + "Finish": "Finish", + "Flat Pattern": "Flat Pattern", "Flat size": "Flat size", "Follow camera (Look At sketches)": "Follow camera (Look At sketches)", "Follow the camera (Look At sketches)": "Follow the camera (Look At sketches)", "Font": "Font", + "From Bodies": "From Bodies", "From edges": "From edges", "Full Length": "Full Length", + "Gap": "Gap", "Grid": "Grid", + "HISTORY": "HISTORY", "Height": "Height", "Hidden edges": "Hidden edges", "Holes": "Holes", "Holes (edges on them)": "Holes (edges on them)", "Home view": "Home view", + "Horiz./Vert.": "Horiz./Vert.", + "IMAGES": "IMAGES", + "Import…": "Import…", "In This Design": "In This Design", "In place (surfaces)": "In place (surfaces)", "In plane": "In plane", "Inside": "Inside", "Interferes": "Interferes", + "Isocurve": "Isocurve", "Issue title": "Issue title", + "JOINTS": "JOINTS", "Joint Origin1": "Joint Origin1", "Keep (points on it)": "Keep (points on it)", "Keep Tools": "Keep Tools", "Keep of the other surface": "Keep of the other surface", + "LIBRARY": "LIBRARY", + "LINKS": "LINKS", "Later": "Later", "Leave it": "Leave it", "Legacy face attachment. Rebinding to a certified face creates an exact attachment.": "Legacy face attachment. Rebinding to a certified face creates an exact attachment.", @@ -151,47 +194,70 @@ "Length units": "Length units", "Letter Spacing": "Letter Spacing", "Library": "Library", + "Library file": "Library file", "Line Spacing": "Line Spacing", + "Local library": "Local library", "Loop": "Loop", + "MANAGE": "MANAGE", + "MATERIALS": "MATERIALS", + "MODEL": "MODEL", + "MOTION": "MOTION", "Margin": "Margin", "Mass": "Mass", + "Mass Center": "Mass Center", + "Matched restrictions check the final values.": "Matched restrictions check the final values.", "Material": "Material", "Max": "Max", "Mid Radius": "Mid Radius", "Middle double-click": "Middle double-click", "Min": "Min", "Mitre": "Mitre", + "Model Parameters": "Model Parameters", "Modeled": "Modeled", "More toolbar panels": "More toolbar panels", "Motion": "Motion", + "Move / Copy": "Move / Copy", "Move Type": "Move Type", + "Move down": "Move down", "Move earlier": "Move earlier", "Move later": "Move later", + "Move up": "Move up", "Name": "Name", "Nearest": "Nearest", + "New": "New", + "New Comp.": "New Comp.", + "New Sketch": "New Sketch", + "New rule…": "New rule…", "New study": "New study", "No crash reports.": "No crash reports.", + "No matching appearance presets.": "No matching appearance presets.", "No matching appearances": "No matching appearances", "No visible bodies to export.": "No visible bodies to export.", "None": "None", - "Normal to sketch": "Normal to sketch", "Not available yet": "Not available yet", "Notch": "Notch", + "OUTPUT": "OUTPUT", "Opacity": "Opacity", "Open GitHub draft": "Open GitHub draft", + "Open local libraries in the desktop app. You can export this design's library here.": "Open local libraries in the desktop app. You can export this design's library here.", "Open-source parametric 3D CAD in Rust. Licensed MIT OR Apache-2.0.": "Open-source parametric 3D CAD in Rust. Licensed MIT OR Apache-2.0.", + "Operator": "Operator", "Other side": "Other side", "Other surface (mutual trim)": "Other surface (mutual trim)", "Outside": "Outside", "Overall length": "Overall length", - "Parameter values": "Parameter values", + "Param. Graph": "Param. Graph", + "Parameter": "Parameter", + "Parts": "Parts", "Pass through": "Pass through", "Path": "Path", + "Pattern": "Pattern", "Per Edge": "Per Edge", "Pick the tool bodies": "Pick the tool bodies", "Picked": "Picked", "Picked point": "Picked point", "Place at the origin instead": "Place at the origin instead", + "Plastic Rules": "Plastic Rules", "Playback": "Playback", "Plot": "Plot", "Position": "Position", @@ -202,10 +268,11 @@ "Preview Row": "Preview Row", "Preview leaves the current design unchanged.": "Preview leaves the current design unchanged.", "Profiles/Curves": "Profiles/Curves", - "Projection": "Projection", "Quantity": "Quantity", "RECENT": "RECENT", + "REFERENCE": "REFERENCE", "RULED SURFACE": "RULED SURFACE", + "RULES": "RULES", "Radius Fit": "Radius Fit", "Ratio": "Ratio", "Reattach selected face": "Reattach selected face", @@ -223,6 +290,8 @@ "Remove this point": "Remove this point", "Report a bug — review a screenshot and open a GitHub draft": "Report a bug — review a screenshot and open a GitHub draft", "Reset Toolbar": "Reset Toolbar", + "Resize Part": "Resize Part", + "Restore View": "Restore View", "Restore outer boundary": "Restore outer boundary", "Restore the inherited component or physical material appearance": "Restore the inherited component or physical material appearance", "Result": "Result", @@ -231,18 +300,27 @@ "Reverse Direction": "Reverse Direction", "Revert": "Revert", "Revert All Positions": "Revert All Positions", + "Revert Pos.": "Revert Pos.", "Revert Position": "Revert Position", "Review the report and screenshot before opening GitHub.": "Review the report and screenshot before opening GitHub.", "Rim Edge": "Rim Edge", "Roll History Marker Here": "Roll History Marker Here", "Round": "Round", "Rule": "Rule", + "Rule name": "Rule name", + "Rules run from top to bottom. Matched drives change effective values.": "Rules run from top to bottom. Matched drives change effective values.", + "SECTION": "SECTION", + "SURFACE QUALITY": "SURFACE QUALITY", "Save Rule": "Save Rule", + "Save View": "Save View", "Save the study as an animated GIF, seen as the viewport shows it": "Save the study as an animated GIF, seen as the viewport shows it", "Saved preview. Geometry is being checked before editing.": "Saved preview. Geometry is being checked before editing.", "Scale factor": "Scale factor", + "Scene": "Scene", "Search": "Search", "Search commands": "Search commands", + "Search this library": "Search this library", + "Section": "Section", "Select Other: hold the left button still on the model (or right-click › Select Other…) to list everything under the cursor; click again on the same spot to select the next thing there. Double-click the middle button to go Home (Preferences › Navigation).": "Select Other: hold the left button still on the model (or right-click › Select Other…) to list everything under the cursor; click again on the same spot to select the next thing there. Double-click the middle button to go Home (Preferences › Navigation).", "Select bodies (a face picks its body)": "Select bodies (a face picks its body)", "Select bodies or faces instead": "Select bodies or faces instead", @@ -250,6 +328,7 @@ "Semantic faces share their appearance across instances.": "Semantic faces share their appearance across instances.", "Send your report on GitHub": "Send your report on GitHub", "Shape": "Shape", + "Sheet Rules": "Sheet Rules", "Show Agent Cursor": "Show Agent Cursor", "Show in folder": "Show in folder", "Show the pointer an AI agent moves (#35)": "Show the pointer an AI agent moves (#35)", @@ -263,6 +342,7 @@ "Sketch points": "Sketch points", "Slot width": "Slot width", "SolidCraft closed before these designs were saved. Their last autosave can be opened.": "SolidCraft closed before these designs were saved. Their last autosave can be opened.", + "Specialise": "Specialise", "Speed": "Speed", "Stand it up": "Stand it up", "Stand it up: a quarter turn about X, as one Move feature you can undo.": "Stand it up: a quarter turn about X, as one Move feature you can undo.", @@ -301,17 +381,19 @@ "Turn off section analysis before exporting the view.": "Turn off section analysis before exporting the view.", "Type": "Type", "UNTRIM": "UNTRIM", + "Unit": "Unit", "Updating the preview": "Updating the preview", "Use active author placement": "Use active author placement", "Use fixed plane": "Use fixed plane", "Use saved fixed plane": "Use saved fixed plane", "Use selected face as fixed plane": "Use selected face as fixed plane", + "User Parameters": "User Parameters", "VIEW": "VIEW", + "VIEWS": "VIEWS", "Value": "Value", "Velocity": "Velocity", "Vertices": "Vertices", "View navigator": "View navigator", - "Visible bodies only. Curves use line segments (0.01 mm tolerance).": "Visible bodies only. Curves use line segments (0.01 mm tolerance).", "Volume": "Volume", "Wall": "Wall", "Wall Location": "Wall Location", @@ -319,6 +401,13 @@ "When": "When", "Width": "Width", "Will fail": "Will fail", + "X angle": "X angle", + "X distance": "X distance", + "Y angle": "Y angle", + "Y distance": "Y distance", + "Z angle": "Z angle", + "Z distance": "Z distance", + "Zebra": "Zebra", "angle, height": "angle, height", "appearance.dielectric_ior": "Dielectric IOR", "appearance.metallic": "Metallic", @@ -327,7 +416,13 @@ "appearance.roughness": "Roughness", "appearance.surface_response": "Surface response", "browser.body_name": "Body{number}", + "browser.calibrate_title": "Calibrate: {name}", + "browser.capture_many": "{count} components were moved but their positions aren't captured.", + "browser.capture_note": "Capture keeps the new position; Revert puts it back.", + "browser.capture_one": "A component was moved but its position isn't captured.", "browser.component_name": "Component{number}", + "browser.edit_canvas_title": "Edit Canvas: {name}", + "browser.move_title": "Move: {name}", "browser.parameters": "Parameters ({count})", "browser.precision": "Precision: {precision}", "browser.sketch_name": "Sketch{number}", @@ -665,7 +760,15 @@ "cmd.view_navigate": "Navigate View", "cmd.view_rename": "Rename Named View", "cmd.view_save": "New Named View", - "command name": "command name", + "color.copy": "Click to copy color values", + "color.edit": "Click to edit color", + "color.gamma": "Showing color values in 0-255 gamma space", + "color.hue": "Hue", + "color.linear": "Showing color values in 0-1 linear space", + "color.saturation_value": "Saturation and value", + "color.selected": "Selected color", + "contact.components_count": "{count} components", + "contact.enabled_label": "enabled", "coupling.gear_1": "Gear 1", "coupling.gear_1_pick": "Gear 1 (optional)", "coupling.gear_2": "Gear 2", @@ -682,6 +785,21 @@ "coupling.rack": "Rack", "coupling.radius_1": "Radius 1", "coupling.radius_2": "Radius 2", + "crash.announce": "SolidCraft closed unexpectedly or hit an internal error last time. A crash report was saved (Help > Crash Reports…).", + "crash.copy_folder": "Copy folder path", + "crash.copy_path": "Copy path", + "crash.deleted": "Deleted {count} report(s).", + "crash.detected_time": "Detected {time} UTC", + "crash.intro": "Crash reports stay on this computer and are never sent anywhere. Report… opens a draft you review before anything is shared.", + "crash.kind_command": "Internal error in a command", + "crash.kind_internal": "Internal error", + "crash.kind_kernel": "Kernel error (recovered)", + "crash.kind_unclean": "Closed unexpectedly", + "crash.previous_session": "An earlier SolidCraft session ended unexpectedly or hit an internal error. Reports from unclean exits are detected at startup. See Help > Crash Reports… for details.", + "crash.replayable": "replayable", + "crash.report": "Report…", + "crash.unclean_explanation": "Detected on a later launch; the exact exit time was not recorded. A system shutdown or forced stop can also cause an unclean exit.", + "delete.and_more": "… and {count} more", "dialog.bodies_count": "{count} bodies", "dialog.clearance_invalid": "the clearance must be a length of 0 or more", "dialog.compute": "Compute", @@ -689,6 +807,8 @@ "dialog.computing": "Computing… {seconds} s", "dialog.could_not_be_checked": "could not be checked", "dialog.custom_axis": "↖ Custom Axis", + "dialog.dimension_insert_hint": "Click another driving dimension to insert its name", + "dialog.dimension_name": "Dimension: {name}", "dialog.edit_title": "EDIT {title}", "dialog.select": "↖ Select", "dialog.selected_count": "↖ {count} selected", @@ -712,9 +832,30 @@ "dxf.progress.write": "Writing DXF (5/5)", "dxf.tolerance": "Curve tolerance", "dxf.tolerance_help": "Visible bodies only. Curves use straight segments. Smaller tolerance gives finer curves and uses more time and memory.", - "expression, e.g. 25 mm": "expression, e.g. 25 mm", + "file_load.built": "Built so far: {built} of {total} features.", + "file_load.converting": "Converting solid {done} of {total}", + "file_load.inserting": "Inserting geometry", + "file_load.opening": "Opening design", + "file_load.preparing_thumbnail": "Preparing the thumbnail...", + "file_load.preparing_view": "Preparing the view...", + "file_load.preview_note": "Saved preview. Geometry is being checked before editing.", + "file_load.reading": "Reading the file...", + "file_load.reading_percent": "Reading the file... {percent}%", + "file_load.rebuilding": "Rebuilding feature {done} of {total}", + "file_load.recovering": "Recovering design", + "file_load.stopping": "Waiting for the previous operation to stop...", + "file_load.waiting": "Waiting for file operation", "fits the face, e.g. M8": "fits the face, e.g. M8", "from the rule": "from the rule", + "help.apache": "Apache licence 2.0", + "help.attributions": "Attributions (ATTRIBUTION.md)", + "help.build": "Version {version} · commit {commit} · built {date}", + "help.font_details": "The interface uses egui's built-in fonts (Ubuntu Light and Hack, under the Ubuntu Font Licence and the MIT/Bitstream Vera licence; Noto Emoji and the emoji icon font, under the OFL and MIT). Sketch text uses Liberation Sans (SIL OFL 1.1). The Crafting Apps' optional font pack, craft-fonts (BIZ UDPGothic, Shippori Mincho, BIZ UDMincho, Noto Sans CJK SC, Noto Sans Arabic; SIL OFL 1.1), is not bundled in SolidCraft builds.", + "help.fonts": "Fonts", + "help.licences": "Licences", + "help.mit": "MIT licence", + "help.notice": "NOTICE", + "help.third_party": "Third-party licences", "home.documentation": "Documentation", "home.in_this_browser": "in this browser", "home.missing": "missing", @@ -740,9 +881,30 @@ "install.menu": "Install app…", "install.steps_intro": "Safari installs web apps from its own menus:", "install.title": "Install SolidCraft", + "issue.body_label": "Report text", + "issue.note_image_copied": "Paste the image into the GitHub draft, or save the PNG if image copying is unavailable.", + "issue.note_opened": "Review the GitHub draft and attach the screenshot. GitHub's Submit new issue button publishes it.", + "issue.note_opened_copied": "Report copied. Paste into the GitHub draft, attach the screenshot, then click Submit new issue on GitHub.", + "issue.note_removed": "Screenshot removed from this draft.", + "issue.note_report_copied": "Report copied. Paste it into the GitHub draft if needed.", + "issue.note_save_failed": "Could not save screenshot: {error}", + "issue.note_saved": "Screenshot saved. Attach the PNG in the GitHub draft.", + "issue.save_screenshot": "Save screenshot…", "joint.from_bodies_hint": "Each picked body moves into a new component of its own and stays where it is.", "joint.one_body": "Both picks are on {body}. Pick the second one on another part.", "joint.one_component": "These parts are bodies of one component: {bodies}. A joint moves one component against another, so each part needs a component of its own.", + "keymap.command_id": "Command ID", + "keymap.empty": "No matching commands", + "keymap.use_anyway": "Use {key} here anyway", + "manage.appearance_hint": "Choose a look for the selection, or drag a swatch onto a body or face.", + "manage.assign_hint": "Select bodies and choose their plastic design rule.", + "manage.config_hint": "Edit configuration rows, columns and rules, then activate or preview a row.", + "manage.empty": "No matching rows.", + "manage.material_hint": "Select bodies and choose their physical material.", + "manage.parameters_hint": "Edit expressions and units. Changes apply on Enter or when leaving a field.", + "manage.rules_hint": "Choose a rule to edit, or create a new rule. Confirm to save the rule.", + "measure.at": "At", + "measure.item": "Item {number}", "messages.ago_h": "{n} h ago", "messages.ago_min": "{n} min ago", "messages.ago_s": "{n} s ago", @@ -754,8 +916,16 @@ "messages.title": "Messages", "motion.checked_to": "Checked to step {step} only: the check ran out of its work budget", "motion.collision": "{a} · {b}: steps {steps}", + "motion.delete_key": "Delete key", "motion.duration_hint": "seconds (empty: per step)", + "motion.key_here": "Key here", + "motion.key_here_hint": "Add a key at this step with the joint's value now", "motion.no_collisions": "No collisions over the study", + "motion.step_back": "Step back", + "motion.step_forward": "Step on", + "motion.to_end": "To the end", + "motion.to_start": "To the start", + "motion.track_name": "Track {number}", "nav.touchpad.help": "Hold Shift and move the pointer to pan; hold Alt/Option and move it to orbit. No mouse button is needed. Vertical scroll zooms.", "nav.touchpad.label": "Touchpad", "nav.touchpad.orbit": "Orbit (hold Alt/Option and move; no mouse button)", @@ -764,13 +934,13 @@ "nav.touchpad.zoom": "Zoom (vertical scroll or pinch)", "needs two joints": "needs two joints", "new configuration": "new configuration", - "new name": "new name", "new parameter": "new parameter", "no hole": "no hole", "no interference": "no interference", "no joint that moves yet": "no joint that moves yet", "no picture": "no picture", "none": "none", + "parts.automatic_name": "automatic", "pattern.alignment_2": "Alignment 2", "pattern.alignment_hint": "Counts include the original. Center balances copies; Flip chooses the extra side for even totals.", "pattern.direction_1": "Direction 1", @@ -778,12 +948,19 @@ "pattern.flip_direction": "Flip direction", "pick a hole to seat it, or OK places it at the origin": "pick a hole to seat it, or OK places it at the origin", "pick one or two vertices, edges or faces": "pick one or two vertices, edges or faces", + "prefs.cpu": "CPU (software)", + "prefs.minutes_suffix": " min", + "properties.title": "Properties: {name}", + "recovery.days_ago": "{count} days ago", + "recovery.detail": "{file} · {features} features · autosaved {when}", + "recovery.hours_ago": "{count} h ago", + "recovery.just_now": "just now", + "recovery.min_ago": "{count} min ago", + "recovery.never_saved": "never saved", "render.background": "Scene background", "render.fit": "Fit Product", - "render.image_cancel": "Cancel Render", "render.image_cancelled": "Render cancelled", "render.image_cancelling": "Cancelling", - "render.image_check": "Check Render Request", "render.image_completed": "Image ready to export", "render.image_encoding": "Encoding PNG", "render.image_export": "Export PNG", @@ -830,6 +1007,19 @@ "sample.plate.name": "Sample Plate", "sample.vents.about": "Slots in a rectangular pattern: rows, columns and pitch are parameters", "sample.vents.name": "Vent Plate", + "search.command_keys": "Enter run Shift+Enter run and keep open Esc close", + "search.commands": "Commands", + "search.design": "In this design", + "search.feature": "Feature", + "search.invalid": "Not valid", + "search.keys": "↑ ↓ choose Enter run Tab fill name Esc close", + "search.no_match": "No command matches '{query}'", + "search.parameter": "Parameter", + "search.recent": "Recent", + "search.run": "Run command", + "search.suggest": "Did you mean {label}?", + "search.try": "Type a command name, a feature in this design, or a parameter. To run a command with values, type its id and a JSON object: {example}", + "search.valid": "Valid", "settings.display_quality_note": "Finer levels draw curved faces and edges smoother and take longer to mesh. Only the viewport changes, never the design or exports.", "settings.frame_rate_note": "Shows frames per second in the view's bottom-right corner. While it is on, the view redraws continuously.", "settings.measure_axis_distances": "Show X/Y/Z distances", @@ -840,17 +1030,30 @@ "settings.reset_intro": "These settings don't work on this computer and would keep SolidCraft from starting, so they were changed:", "settings.reset_title": "Settings were changed", "settings.supersampling_note": "Draws the view at a higher resolution and filters it down: smoother edges, lines and grid on screens below 4K. It costs GPU time: about 2.25× the pixels at 1.5× and 4× at 2×.", + "shortcut.json_error": "parameters must be JSON: {error}", + "shortcut.no_command": "no command `{id}`; the text before the JSON must be a command id", + "shortcut.pin": "Pin to the top of the S box", + "shortcut.unpin": "Unpin", "sketch.degrees_of_freedom": "{count} degrees of freedom", + "sketch.dof_left": "{count} degrees of freedom left", + "sketch.dof_left_one": "{count} degree of freedom left", "sketch.draw_curves": "Draw as {linetype}", "sketch.make_selection": "Convert the selection to {linetype}", "sketch.open_ends": "Open {count}", "sketch.untied_ends": "Untied {count}", + "sketch_panel.attached": "Attached to {body} / {path}", + "sketch_panel.author": "Author placement: {path}", + "sketch_panel.dimension_hint": "Enter a value or expression, then press OK.", + "sketch_panel.move_hint": "Enter distances and an angle, then press OK.", + "sketch_panel.redefine_title": "{command}: {name}", + "sketch_panel.sheet_attachment": "Attached to a flat face of a sheet metal body; it follows that panel when the sheet changes.", + "sketch_panel.text_hint": "Edit the text and its placement, then press OK.", + "sketch_panel.use_plane": "Use {plane} plane", "sketch_text.align_center": "Center", "sketch_text.align_left": "Left", "sketch_text.align_right": "Right", "sketch_text.bold": "Bold", "sketch_text.builtin_font": "{family} (built-in)", - "sketch_text.font_search": "Search fonts", "sketch_text.italic": "Italic", "sketch_text.loading_fonts": "Looking for installed fonts…", "sketch_text.on_path": "The text follows its path: the curve places it", @@ -871,6 +1074,7 @@ "timeline.ungroup": "Remove Feature Folders", "to the face": "to the face", "to the next face": "to the next face", + "toolbar.customize_note": "{tab} tab. Tick a command to give it a toolbar button. You can also drag a row of a panel's drop-down onto the toolbar, drag a button off the toolbar to remove it, or use the pin on a drop-down row.", "toolbar.image": "IMAGE", "toolbar.render": "RENDER", "toolbar.render_scene": "SCENE", @@ -879,11 +1083,11 @@ "trace.stopped_by_loop": "Ends at sample {sample}: the loop through {joint} can't close any further", "ui.1_degree_of_freedom": "1 degree of freedom", "ui.3d_mouse_speed": "3D mouse speed", - "ui.3d_mouse_windows": "3D mouse", "ui.3d_sketch": "3D Sketch", - "ui.about": "About", "ui.activate": "Activate", "ui.active_component": "Active component", + "ui.add_configuration": "Add configuration", + "ui.add_parameter": "Add parameter", "ui.agent_chat": "Agent chat", "ui.agent_chat_add": "Attach files", "ui.agent_chat_add_file": "Choose a file…", @@ -925,6 +1129,7 @@ "ui.agent_chat_file_error": "{name}: {error}", "ui.agent_chat_file_heic": "{name}: HEIC pictures can't be read here; export it as JPEG or PNG first", "ui.agent_chat_file_importing": "Importing into the design…", + "ui.agent_chat_file_kinds": "{name}: pictures (PNG, JPEG, GIF, WebP, BMP, TIFF), text files (SVG too) and CAD files (STEP, IGES, FreeCAD, Rhino, STL, 3MF, OBJ, glTF) can be attached", "ui.agent_chat_file_loading": "Reading the file…", "ui.agent_chat_file_not_a_file": "{name}: not a file", "ui.agent_chat_file_not_a_picture": "{name}: not a picture", @@ -947,7 +1152,7 @@ "ui.agent_chat_model_tip": "The model the agent uses. Your choice is remembered for this agent.", "ui.agent_chat_new": "New chat", "ui.agent_chat_new_confirm": "Start a new chat? The current one is cleared.", - "ui.agent_chat_new_yes": "New chat", + "ui.agent_chat_next_picture": "Next picture", "ui.agent_chat_no_cli": "solidcraft-cli was not found next to the app, so the agent can't reach the design.", "ui.agent_chat_no_control": "The agent chat's endpoint did not start, so the agent can't reach the design.", "ui.agent_chat_no_images": "This agent doesn't take pictures", @@ -963,6 +1168,7 @@ "ui.agent_chat_placeholder": "Ask the agent to change the design…", "ui.agent_chat_placeholder_busy": "Queue a message for when the agent is done (Ctrl+Enter: send now)", "ui.agent_chat_pop_out": "Open in its own window, which you can move to another screen", + "ui.agent_chat_previous_picture": "Previous picture", "ui.agent_chat_privacy": "Nothing goes anywhere except to the agent you run, under your own account.", "ui.agent_chat_privacy_note": "SolidCraft sends nothing anywhere: the agent you run talks to its own service under your own account. SolidCraft never sees or stores a key or password.", "ui.agent_chat_queue": "Queue", @@ -1018,6 +1224,7 @@ "ui.ai_bad_url": "Enter a URL that starts with http:// or https://", "ui.ai_base_url": "Base URL", "ui.ai_button": "AI", + "ui.ai_command_hint": "my-agent --acp", "ui.ai_copy_suffix": "copy", "ui.ai_custom_url": "Custom URL", "ui.ai_default": "Default", @@ -1038,8 +1245,10 @@ "ui.ai_mode_edits_note": "Modelling commands run without asking; saving, opening, exporting and other file or destructive actions still ask.", "ui.ai_mode_global": "As set above", "ui.ai_model": "Model", + "ui.ai_model_hint": "qwen3:14b", "ui.ai_modes_scope": "These settings cover SolidCraft's tools. An agent's own tools (its shell, its file edits) follow the agent's own mode, which you pick in the chat panel's header when the agent has modes.", "ui.ai_name": "Name", + "ui.ai_name_hint": "My agent", "ui.ai_need_command": "Enter the command that starts the agent", "ui.ai_need_model": "Enter the model name", "ui.ai_no_answer": "The agent did not answer in time", @@ -1067,9 +1276,10 @@ "ui.ai_tool_running": "running", "ui.ai_tool_unfold": "Click to show what it returned", "ui.ai_tool_waiting": "waiting", - "ui.ai_toolbar_button": "Show button in toolbar", - "ui.ai_toolbar_button_note": "The AI button at the right end of the toolbar. Ctrl+Shift+A and the View menu still open the panel.", + "ui.ai_toolbar_button": "Show Assistant button in application bar", + "ui.ai_toolbar_button_note": "The Assistant button in the application bar. Ctrl+Shift+A and the View menu still open the panel.", "ui.ai_undo_tip": "Undo everything the agent changed for this message, as one step", + "ui.ai_url_hint": "https://example.com/v1", "ui.all": "All", "ui.ambient_occlusion": "Ambient occlusion", "ui.ambient_occlusion_help": "Soft shading where opaque surfaces meet. Requires the GPU viewport.", @@ -1083,7 +1293,8 @@ "ui.anti_aliasing": "Anti-aliasing", "ui.apply": "Apply", "ui.arc": "Arc", - "ui.assemble": "Assemble", + "ui.assistant": "Assistant", + "ui.assistant_waiting": "{count} approvals waiting", "ui.autosave_every": "Autosave every", "ui.axes": "Axes", "ui.axis": "Axis", @@ -1094,6 +1305,11 @@ "ui.bodies_all_if_none": "Bodies (all if none)", "ui.box": "Box", "ui.break": "Break", + "ui.browser_bodies_one": "{count} body", + "ui.browser_bodies_other": "{count} bodies", + "ui.browser_collapse": "Collapse the browser", + "ui.browser_expand": "Expand the browser", + "ui.browser_title": "Browser", "ui.calibrate": "Calibrate", "ui.cancel": "Cancel", "ui.canvases": "Canvases", @@ -1103,7 +1319,6 @@ "ui.chamfer": "Chamfer", "ui.chamfer_type": "Chamfer Type", "ui.change_workspace": "Change workspace", - "ui.chord_length": "Chord Length", "ui.circle": "Circle", "ui.circular_pattern": "Circular Pattern", "ui.clear": "Clear", @@ -1136,11 +1351,9 @@ "ui.command_done": "{command} done", "ui.command_palette_hint": "Type a command, e.g. {example} — or press S to search", "ui.concentric": "Concentric", - "ui.configurations": "Configurations", "ui.conic_curve": "Conic Curve", "ui.constant": "Constant", "ui.constraints_conflict": "Constraints conflict", - "ui.construct": "Construct", "ui.construction": "Construction", "ui.context_menu": "Context menu", "ui.continuity_g0": "G0 crease", @@ -1166,7 +1379,6 @@ "ui.cylinder": "Cylinder", "ui.dark": "Dark", "ui.default_modelling_orientation": "Default modelling orientation", - "ui.degrees_of_freedom": "degrees of freedom", "ui.delete": "Delete", "ui.depth": "Depth", "ui.design": "Design", @@ -1208,7 +1420,6 @@ "ui.equivalent_radius": "Equivalent Radius", "ui.expand": "Expand", "ui.exportDxf": "Export DXF…", - "ui.export_ellipsis": "Export...", "ui.export_ellipsis_keymap": "Export…", "ui.export_keymap_tip": "Keys, S box favourites and the toolbar, as a file", "ui.extend": "Extend", @@ -1232,6 +1443,7 @@ "ui.frame_rate": "Frame rate", "ui.front": "Front", "ui.fully_constrained": "Fully constrained", + "ui.function": "Function", "ui.general": "General", "ui.graphics": "Graphics", "ui.graphics_custom": "Custom", @@ -1298,7 +1510,6 @@ "ui.heading_sheet_metal": "SHEET METAL", "ui.heading_shell": "SHELL", "ui.heading_sketch": "SKETCH", - "ui.heading_sketch_palette": "SKETCH PALETTE", "ui.heading_sketch_scale": "SKETCH SCALE", "ui.heading_solid": "SOLID", "ui.heading_sphere": "SPHERE", @@ -1317,6 +1528,7 @@ "ui.hideOrigin": "Hide Origin", "ui.hidePlanes": "Hide Planes", "ui.hideProfile": "Hide Profile", + "ui.history_title": "History", "ui.hole": "Hole", "ui.hole_tap_type": "Hole Tap Type", "ui.hole_type": "Hole Type", @@ -1336,7 +1548,6 @@ "ui.length_decimals": "Length decimals", "ui.light": "Light", "ui.line": "Line", - "ui.linetype": "Linetype", "ui.lock": "Lock", "ui.loft": "Loft", "ui.look_at": "Look At", @@ -1370,10 +1581,8 @@ "ui.mesh_format_3mf": "3MF", "ui.mesh_format_3mf_tagged": "3MF with face tags", "ui.mesh_format_stl": "STL", - "ui.midpoint": "Midpoint", "ui.mirror": "Mirror", "ui.mirror_line": "Mirror line", - "ui.modify": "Modify", "ui.move": "Move", "ui.multiple": "Multiple", "ui.named_views": "Named Views", @@ -1394,7 +1603,6 @@ "ui.offset_plane": "Offset Plane", "ui.one_side": "One Side", "ui.open": "Open", - "ui.open_ellipsis": "Open...", "ui.open_ends_tip": "Touches nothing", "ui.open_preferences": "Open Preferences", "ui.open_recent": "Open Recent", @@ -1404,8 +1612,9 @@ "ui.orbit_around": "Orbit around", "ui.orientation": "Orientation", "ui.origin": "Origin", - "ui.palette_points": "Points", - "ui.palette_profile": "Profile", + "ui.palette_construction_mode": "Construction mode (X)", + "ui.palette_more": "More", + "ui.palette_sketch_options": "Sketch options", "ui.pan": "Pan", "ui.pan_zoom_orbit": "Pan, zoom, orbit", "ui.parallel": "Parallel", @@ -1446,7 +1655,6 @@ "ui.quit": "Quit", "ui.radial_context_menu": "Radial context menu", "ui.radius": "Radius", - "ui.radius_type": "Radius Type", "ui.rail": "Rail", "ui.rail_fit": "Rail Fit", "ui.reachable": "Reachable", @@ -1473,10 +1681,12 @@ "ui.reverse_horizontal_pan_tip": "Horizontal two-finger scrolling and the thumb wheel pan the other way", "ui.reverse_zoom_direction": "Reverse zoom direction", "ui.revolve": "Revolve", + "ui.ribbon_exit": "Exit", + "ui.ribbon_pin_footer": "Pinned commands show on the ribbon. Hover a row to pin or unpin it.", + "ui.ribbon_workspace": "Workspace", "ui.right": "Right", "ui.save": "Save", "ui.save_as": "Save As", - "ui.save_as_ellipsis": "Save As...", "ui.save_mesh_no_slicer": "No slicer found: choose Custom… and pick your slicer program, or turn off Send to slicer", "ui.save_mesh_pick_bodies": "Select the bodies to save", "ui.save_mesh_temp_failed": "Couldn't make {folder}: {error}", @@ -1489,7 +1699,6 @@ "ui.select": "Select", "ui.selectOther": "Select Other…", "ui.selectTangentChain": "Select Tangent Chain", - "ui.select_other_hint": "Select Other: hold the left button still on the model (or right-click › Select Other…) to list everything under the cursor; click again on the same spot to select the next thing there.", "ui.selection": "Selection", "ui.selection_modifiers": "Selection modifiers", "ui.selection_shift_add_only": "Shift+click adds without removing", @@ -1509,7 +1718,6 @@ "ui.show_constraints": "Constraints", "ui.show_construction_geometries": "Construction Geometries", "ui.show_dimensions": "Dimensions", - "ui.show_points": "Show Points", "ui.show_profile": "Show Profile", "ui.show_projected_geometries": "Projected Geometries", "ui.simple": "Simple", @@ -1520,7 +1728,6 @@ "ui.sketch_grid": "Sketch Grid", "ui.sketch_modifiers": "Sketch modifiers", "ui.sketch_scale": "Sketch Scale", - "ui.sketch_status": "Sketch Status", "ui.sketches": "Sketches", "ui.slice": "Slice", "ui.slicer": "Slicer", @@ -1566,7 +1773,7 @@ "ui.stand_up_tip": "After a STEP or IGES file opens with Z up, offer a quarter turn about X", "ui.start": "Start", "ui.start_over": "Start over", - "ui.start_radius": "Start Radius", + "ui.start_page": "Start page", "ui.stretch": "Stretch", "ui.supersampling": "Supersampling (SSAA)", "ui.supersampling_adaptive": "Only when the view is still", @@ -1616,13 +1823,24 @@ "ui.untitled": "Untitled", "ui.up_axis_note": "Which axis points up in the views (axis view, Home, Look At). Designs are unchanged.", "ui.updateToCurrentView": "Update to Current View", - "ui.variable": "Variable", "ui.view_centre": "View centre", "ui.visual_shaded_hidden_edges": "Shaded with hidden edges", "ui.visual_shaded_with_edges": "Shaded with edges", "ui.visual_style": "Visual style", "ui.visual_wireframe": "Wireframe", "ui.workspace": "workspace", + "ui.workspace_animation_description": "Exploded views, motion studies and storyboards", + "ui.workspace_available": "Available", + "ui.workspace_current": "Current", + "ui.workspace_design_description": "Sketch, model, assemble and inspect", + "ui.workspace_design_tabs": "Model · Surface · Assemble · Insert · Inspect · Manage · View", + "ui.workspace_drawing_description": "2D drawings with views, dimensions and title blocks", + "ui.workspace_footer": "Every workspace works on the same design, history and selection; only the ribbon tabs change. The switcher is locked while a sketch or feature is being edited.", + "ui.workspace_manufacture_description": "Slicing, toolpaths and setup", + "ui.workspace_planned": "Planned", + "ui.workspace_render_description": "Product preview, scene settings and rendered images", + "ui.workspace_render_tabs": "Scene · Image", + "ui.workspace_simulation_description": "Loads, constraints and results", "ui.x_distance": "X Distance", "ui.y_distance": "Y Distance", "ui.y_up": "Y up", @@ -1632,7 +1850,6 @@ "ui.zoom_to_the_cursor": "Zoom to the cursor", "update.available": "SolidCraft {version} is available", "update.button": "Update", - "update.button_tip": "SolidCraft {version} is available", "update.button_version": "Update to {version}", "update.check_automatically": "Check for updates automatically", "update.check_now": "Check now", @@ -1664,5 +1881,6 @@ "update.title": "Update available", "update.up_to_date": "SolidCraft is up to date.", "update.update_now": "Update now", - "update.you_have": "You have {version}." + "update.you_have": "You have {version}.", + "↑ ↓ choose · Enter / Tab complete · Esc dismiss": "↑ ↓ choose · Enter / Tab complete · Esc dismiss" } diff --git a/assets/locales/es.json b/assets/locales/es.json index feb3db124..5149b0122 100644 --- a/assets/locales/es.json +++ b/assets/locales/es.json @@ -3,11 +3,14 @@ "1. Open GitHub draft below, then paste the report copied to your clipboard.": "1. Abre el borrador de GitHub de abajo y pega el informe copiado al portapapeles.", "1. Open GitHub draft below. Your title and report will be filled in.": "1. Abre el borrador de GitHub de abajo. El título y el informe se rellenarán automáticamente.", "2. Attach your screenshot: copy and paste it, or save and upload the PNG.": "2. Adjunta la captura de pantalla: cópiala y pégala, o guarda y sube el PNG.", + "2D": "2D", "3. Click Submit new issue on GitHub to send your report.": "3. Haz clic en «Submit new issue» en GitHub para enviar el informe.", "A new configuration, a copy of the active one": "Una configuración nueva, copia de la activa", - "AI": "AI", + "ARRANGE": "ORGANIZAR", "About SolidCraft": "Acerca de SolidCraft", "Acceleration": "Aceleración", + "Access": "Acceso", + "Actions": "Acciones", "Active": "Activo", "Active rule": "Regla activa", "Add": "Añadir", @@ -15,6 +18,7 @@ "Add Mid Radius": "Añadir radio intermedio", "Add Row": "Añadir fila", "Add condition": "Añadir condición", + "Add or edit rule": "Añadir o editar regla", "Against": "Contra", "Alignment": "Alineación", "All Sketch Points": "Todos los puntos del boceto", @@ -28,19 +32,33 @@ "Applied Radius": "Radio aplicado", "Apply To": "Aplicar a", "Apply to selection": "Aplicar a la selección", + "Apply your appearance first. Exports assigned appearances and materials created in this design.": "Aplique primero la apariencia. Exporta las apariencias asignadas y los materiales creados en este diseño.", "Arc length": "Longitud del arco", "Area": "Área", + "As-Built": "Tal como se construyó", + "Assign Rule": "Asignar regla", "Attachment": "Vinculación", + "BLEND SURFACE": "SUPERFICIE DE TRANSICIÓN", + "BOUNDARY SURFACE": "SUPERFICIE LÍMITE", "BROWSER": "EXPLORADOR", "Bend Line Position": "Posición de la línea de plegado", "Bend Position": "Posición del pliegue", "Bend Radius": "Radio de plegado", + "Bend Table": "Tabla de plegado", "Bends": "Pliegues", + "Bodies": "Cuerpos", "Body": "Cuerpo", "Boundary": "Contorno", "Bounding box": "Caja delimitadora", + "CHECK": "COMPROBAR", + "COMPONENTS": "COMPONENTES", + "CONFIGURATIONS": "CONFIGURACIONES", + "CONSTRAIN": "RESTRINGIR", + "CONTACT": "CONTACTO", + "CONVERT": "CONVERTIR", "CSV or JSON: updates existing parameters, adds new ones": "CSV o JSON: actualiza los parámetros existentes y añade otros nuevos", "Capture All Positions": "Capturar todas las posiciones", + "Capture Pos.": "Capturar pos.", "Catch Direction": "Dirección de enganche", "Cells": "Celdas", "Center X": "Centro X", @@ -51,15 +69,19 @@ "Check collisions": "Comprobar colisiones", "Checked": "Comprobado", "Choose a new plane. Sketch geometry and dimensions stay unchanged in its two-dimensional coordinates.": "Elige un plano nuevo. La geometría y las cotas del boceto se mantienen en sus coordenadas bidimensionales.", + "Choose…": "Elegir…", + "Circular": "Circular", "Circumference": "Circunferencia", "Close draft": "Cerrar borrador", "Collisions": "Colisiones", "Colour": "Color", + "Comment": "Comentario", "Component1": "Componente1", + "Config Table": "Tabla de config.", "Configuration": "Configuración", "Configuration rules": "Reglas de configuración", - "Construction": "Construcción", "Contact": "Contacto", + "Contact Sets": "Conjuntos de contacto", "Contact sets": "Conjuntos de contacto", "Continuity": "Continuidad", "Copy Error Message": "Copiar mensaje de error", @@ -73,18 +95,21 @@ "Counterbore depth": "Profundidad del avellanado cilíndrico", "Countersink angle": "Ángulo de avellanado", "Create Issue — review draft": "Crear incidencia — revisar borrador", + "Cross curves": "Curvas transversales", "Cube": "Cubo", "Current orthographic view (1:1 mm)": "Vista ortográfica actual (1:1 mm)", "Current perspective view": "Vista en perspectiva actual", + "Curv. Comb": "Peine de curv.", "Curvature (G2)": "Curvatura (G2)", "Curvature change (G3)": "Cambio de curvatura (G3)", "Customize Toolbar": "Personalizar barra de herramientas", + "Delete": "Eliminar", "Delete all": "Eliminar todo", "Delete rule": "Eliminar regla", "Delete the row": "Eliminar la fila", "Delete the set": "Eliminar el conjunto", - "Delete this parameter": "Eliminar este parámetro", "Density": "Densidad", + "Dependents": "Dependientes", "Designs you open or save appear here.": "Aquí aparecen los diseños que abras o guardes.", "Determined by To Object. Choose Angle to edit the angular extent.": "Determinado por «Hasta objeto». Elige «Ángulo» para modificar la extensión angular.", "Direction": "Dirección", @@ -96,49 +121,72 @@ "Drive Joint": "Accionar unión", "Duration": "Duración", "Edges": "Aristas", + "Edit": "Editar", "Edit Profile Sketch": "Editar boceto del perfil", "Enable rule": "Activar regla", "Enabled": "Activado", + "End bulge": "Abombamiento final", + "End continuity": "Continuidad final", "Explode": "Explosionar", "Explode Text": "Descomponer texto", "Export Animation…": "Exportar animación…", + "Export CSV…": "Exportar CSV…", "Export Current View as DXF": "Exportar vista actual como DXF", "Export Current View as DXF…": "Exportar vista actual como DXF…", + "Export DXF": "Exportar DXF", "Export DXF…": "Exportar DXF…", + "Export JSON…": "Exportar JSON…", "Export hidden edges as dashed lines": "Exportar aristas ocultas como líneas discontinuas", + "Expression": "Expresión", "Extend to meet": "Extender hasta encontrarla", "Extents": "Extensión", + "FILES": "ARCHIVOS", + "FLAT": "DESPLEGADO", "Face": "Cara", "Face attachment lost": "Se ha perdido la vinculación de la cara", "Faces": "Caras", "Faces / edges / vertices": "Caras / aristas / vértices", + "Fastener": "Sujeción", + "Favorites": "Favoritos", "Favourite": "Favorito", + "Feature": "Operación", "Files from many CAD programs have Y up, so they open lying on their back here (Z up).": "Los archivos de muchos programas CAD usan Y como eje vertical, por eso aquí se abren tumbados (con Z hacia arriba).", "Filter": "Filtrar", "Find in Browser": "Buscar en el explorador", - "Flat": "Plano", + "Finish": "Acabado", + "Flat Pattern": "Desarrollo plano", "Flat size": "Tamaño del desarrollo", "Follow camera (Look At sketches)": "Seguir cámara (orientar hacia los bocetos)", "Follow the camera (Look At sketches)": "Seguir la cámara (orientar hacia los bocetos)", "Font": "Fuente", + "From Bodies": "Desde cuerpos", "From edges": "Aristas de origen", "Full Length": "Longitud total", + "Gap": "Holgura", "Grid": "Cuadrícula", + "HISTORY": "HISTORIAL", "Height": "Altura", "Hidden edges": "Aristas ocultas", "Holes": "Agujeros", "Holes (edges on them)": "Agujeros (aristas que contienen)", "Home view": "Vista de inicio", + "Horiz./Vert.": "Horiz./Vert.", + "IMAGES": "IMÁGENES", + "Import…": "Importar…", "In This Design": "En este diseño", "In place (surfaces)": "En su posición (superficies)", "In plane": "En el plano", "Inside": "Interior", "Interferes": "Interfiere", + "Isocurve": "Isocurva", "Issue title": "Título de la incidencia", + "JOINTS": "UNIONES", "Joint Origin1": "Origen de unión1", "Keep (points on it)": "Conservar (puntos sobre ella)", "Keep Tools": "Conservar herramientas", "Keep of the other surface": "Conservar de la otra superficie", + "LIBRARY": "BIBLIOTECA", + "LINKS": "VÍNCULOS", "Later": "Más tarde", "Leave it": "Dejar como está", "Legacy face attachment. Rebinding to a certified face creates an exact attachment.": "Vinculación antigua de cara. Volver a vincularla a una cara verificada crea una vinculación exacta.", @@ -146,47 +194,70 @@ "Length units": "Unidades de longitud", "Letter Spacing": "Espaciado entre letras", "Library": "Biblioteca", + "Library file": "Archivo de biblioteca", "Line Spacing": "Interlineado", + "Local library": "Biblioteca local", "Loop": "Bucle", + "MANAGE": "GESTIONAR", + "MATERIALS": "MATERIALES", + "MODEL": "MODELO", + "MOTION": "MOVIMIENTO", "Margin": "Margen", "Mass": "Masa", + "Mass Center": "Centro de masas", + "Matched restrictions check the final values.": "Las restricciones que se cumplen comprueban los valores finales.", "Material": "Material", "Max": "Máx.", "Mid Radius": "Radio intermedio", "Middle double-click": "Doble clic central", "Min": "Mín.", "Mitre": "Inglete", + "Model Parameters": "Parámetros del modelo", "Modeled": "Modelado", "More toolbar panels": "Más paneles de la barra de herramientas", "Motion": "Movimiento", + "Move / Copy": "Mover / Copiar", "Move Type": "Tipo de movimiento", + "Move down": "Mover abajo", "Move earlier": "Mover antes", "Move later": "Mover después", + "Move up": "Mover arriba", "Name": "Nombre", "Nearest": "Más cercano", + "New": "Nuevo", + "New Comp.": "Nuevo comp.", + "New Sketch": "Nuevo boceto", + "New rule…": "Nueva regla…", "New study": "Nuevo estudio", "No crash reports.": "No hay informes de fallos.", + "No matching appearance presets.": "No hay preajustes de apariencia coincidentes.", "No matching appearances": "No hay apariencias coincidentes", "No visible bodies to export.": "No hay cuerpos visibles para exportar.", "None": "Ninguno", - "Normal to sketch": "Normal al boceto", "Not available yet": "Todavía no disponible", "Notch": "Muesca", + "OUTPUT": "SALIDA", "Opacity": "Opacidad", "Open GitHub draft": "Abrir borrador de GitHub", + "Open local libraries in the desktop app. You can export this design's library here.": "Abra las bibliotecas locales en la aplicación de escritorio. Aquí puede exportar la biblioteca de este diseño.", "Open-source parametric 3D CAD in Rust. Licensed MIT OR Apache-2.0.": "CAD 3D paramétrico de código abierto desarrollado en Rust. Licencia MIT O Apache-2.0.", + "Operator": "Operador", "Other side": "Lado opuesto", "Other surface (mutual trim)": "Otra superficie (recorte mutuo)", "Outside": "Exterior", "Overall length": "Longitud total", - "Parameter values": "Valores de parámetros", + "Param. Graph": "Gráfico de parám.", + "Parameter": "Parámetro", + "Parts": "Piezas", "Pass through": "Pasante", "Path": "Trayectoria", + "Pattern": "Patrón", "Per Edge": "Por arista", "Pick the tool bodies": "Selecciona los cuerpos herramienta", "Picked": "Seleccionado", "Picked point": "Punto seleccionado", "Place at the origin instead": "Colocar en el origen", + "Plastic Rules": "Reglas de plástico", "Playback": "Reproducción", "Plot": "Graficar", "Position": "Posición", @@ -197,10 +268,11 @@ "Preview Row": "Previsualizar fila", "Preview leaves the current design unchanged.": "La vista previa no modifica el diseño actual.", "Profiles/Curves": "Perfiles/curvas", - "Projection": "Proyección", "Quantity": "Cantidad", "RECENT": "RECIENTES", + "REFERENCE": "REFERENCIA", "RULED SURFACE": "SUPERFICIE REGLADA", + "RULES": "REGLAS", "Radius Fit": "Ajuste de radio", "Ratio": "Relación", "Reattach selected face": "Volver a vincular la cara seleccionada", @@ -218,6 +290,8 @@ "Remove this point": "Eliminar este punto", "Report a bug — review a screenshot and open a GitHub draft": "Notificar un error — revisar una captura y abrir un borrador de GitHub", "Reset Toolbar": "Restablecer barra de herramientas", + "Resize Part": "Redimensionar pieza", + "Restore View": "Restaurar vista", "Restore outer boundary": "Restaurar contorno exterior", "Restore the inherited component or physical material appearance": "Restaurar la apariencia heredada del componente o del material físico", "Result": "Resultado", @@ -226,18 +300,27 @@ "Reverse Direction": "Invertir dirección", "Revert": "Revertir", "Revert All Positions": "Revertir todas las posiciones", + "Revert Pos.": "Revertir pos.", "Revert Position": "Revertir posición", "Review the report and screenshot before opening GitHub.": "Revisa el informe y la captura antes de abrir GitHub.", "Rim Edge": "Arista del borde", "Roll History Marker Here": "Desplazar marcador de la línea de tiempo hasta aquí", "Round": "Redondo", "Rule": "Regla", + "Rule name": "Nombre de la regla", + "Rules run from top to bottom. Matched drives change effective values.": "Las reglas se ejecutan de arriba abajo. Las reglas de control que se cumplen modifican los valores efectivos.", + "SECTION": "SECCIÓN", + "SURFACE QUALITY": "CALIDAD DE SUPERFICIE", "Save Rule": "Guardar regla", + "Save View": "Guardar vista", "Save the study as an animated GIF, seen as the viewport shows it": "Guardar el estudio como GIF animado, tal como se ve en el visor", "Saved preview. Geometry is being checked before editing.": "Vista previa guardada. Se está comprobando la geometría antes de editarla.", "Scale factor": "Factor de escala", + "Scene": "Escena", "Search": "Buscar", "Search commands": "Buscar comandos", + "Search this library": "Buscar en esta biblioteca", + "Section": "Sección", "Select Other: hold the left button still on the model (or right-click › Select Other…) to list everything under the cursor; click again on the same spot to select the next thing there. Double-click the middle button to go Home (Preferences › Navigation).": "Seleccionar otro: mantén pulsado el botón izquierdo sobre el modelo (o haz clic derecho › Seleccionar otro…) para ver todo lo que hay bajo el cursor; vuelve a pulsar en el mismo lugar para seleccionar el siguiente elemento. Haz doble clic con el botón central para volver a Inicio (Preferencias › Navegación).", "Select bodies (a face picks its body)": "Selecciona cuerpos (al seleccionar una cara se selecciona su cuerpo)", "Select bodies or faces instead": "Selecciona cuerpos o caras en su lugar", @@ -245,6 +328,7 @@ "Semantic faces share their appearance across instances.": "Las caras semánticas comparten su apariencia entre instancias.", "Send your report on GitHub": "Enviar tu informe a GitHub", "Shape": "Forma", + "Sheet Rules": "Reglas de chapa", "Show Agent Cursor": "Mostrar cursor del agente", "Show in folder": "Mostrar en carpeta", "Show the pointer an AI agent moves (#35)": "Mostrar el puntero que mueve un agente de IA (#35)", @@ -258,10 +342,13 @@ "Sketch points": "Puntos del boceto", "Slot width": "Anchura de la ranura", "SolidCraft closed before these designs were saved. Their last autosave can be opened.": "SolidCraft se cerró antes de guardar estos diseños. Puedes abrir su último guardado automático.", + "Specialise": "Especializar", "Speed": "Velocidad", "Stand it up": "Poner en vertical", "Stand it up: a quarter turn about X, as one Move feature you can undo.": "Poner en vertical: un cuarto de vuelta alrededor del eje X, como una única operación Mover que puedes deshacer.", "Stand this part up?": "¿Poner esta pieza en vertical?", + "Start bulge": "Abombamiento inicial", + "Start continuity": "Continuidad inicial", "Step": "Paso", "Steps": "Pasos", "Stitch the kept pieces": "Coser las piezas conservadas", @@ -294,17 +381,19 @@ "Turn off section analysis before exporting the view.": "Desactiva el análisis de sección antes de exportar la vista.", "Type": "Tipo", "UNTRIM": "ANULAR RECORTE", + "Unit": "Unidad", "Updating the preview": "Actualizando vista previa", "Use active author placement": "Usar posición de autor activa", "Use fixed plane": "Usar plano fijo", "Use saved fixed plane": "Usar plano fijo guardado", "Use selected face as fixed plane": "Usar la cara seleccionada como plano fijo", + "User Parameters": "Parámetros de usuario", "VIEW": "VISTA", + "VIEWS": "VISTAS", "Value": "Valor", "Velocity": "Velocidad", "Vertices": "Vértices", "View navigator": "Navegador de vistas", - "Visible bodies only. Curves use line segments (0.01 mm tolerance).": "Solo cuerpos visibles. Las curvas utilizan segmentos rectos (tolerancia de 0,01 mm).", "Volume": "Volumen", "Wall": "Pared", "Wall Location": "Posición de la pared", @@ -312,6 +401,13 @@ "When": "Cuando", "Width": "Anchura", "Will fail": "Fallará", + "X angle": "Ángulo X", + "X distance": "Distancia X", + "Y angle": "Ángulo Y", + "Y distance": "Distancia Y", + "Z angle": "Ángulo Z", + "Z distance": "Distancia Z", + "Zebra": "Cebra", "angle, height": "ángulo, altura", "appearance.dielectric_ior": "Índice de refracción dieléctrico", "appearance.metallic": "Metalicidad", @@ -320,7 +416,13 @@ "appearance.roughness": "Rugosidad", "appearance.surface_response": "Respuesta de la superficie", "browser.body_name": "Cuerpo{number}", + "browser.calibrate_title": "Calibrar: {name}", + "browser.capture_many": "Se han movido {count} componentes, pero sus posiciones no se han capturado.", + "browser.capture_note": "Capturar posición conserva la nueva posición; Revertir posición restaura la anterior.", + "browser.capture_one": "Se ha movido un componente, pero su posición no se ha capturado.", "browser.component_name": "Componente{number}", + "browser.edit_canvas_title": "Editar lienzo: {name}", + "browser.move_title": "Mover: {name}", "browser.parameters": "Parámetros ({count})", "browser.precision": "Precisión: {precision}", "browser.sketch_name": "Boceto{number}", @@ -335,6 +437,7 @@ "cmd.appearance_assign": "Apariencia", "cmd.appearance_library": "Biblioteca de apariencias", "cmd.appearance_list": "Listar apariencias", + "cmd.assembly_bom": "Lista de materiales", "cmd.body_rename": "Cambiar nombre del cuerpo", "cmd.browser_group": "Nuevo grupo", "cmd.browser_move": "Mover elementos del explorador", @@ -356,10 +459,13 @@ "cmd.component_insert_design": "Insertar diseño", "cmd.component_links": "Listar vínculos", "cmd.component_list": "Listar componentes", + "cmd.component_metadata": "Propiedades de la pieza", + "cmd.component_metadata_set": "Cambiar propiedades de la pieza", "cmd.component_move_bodies": "Mover cuerpos al componente", "cmd.component_move_sketches": "Mover bocetos al componente", "cmd.component_paste_new": "Pegar nuevo", "cmd.component_properties": "Propiedades físicas del componente", + "cmd.component_relink": "Revincular origen", "cmd.component_rename": "Cambiar nombre del componente", "cmd.component_revert_position": "Revertir posición", "cmd.component_unlock": "Desbloquear contenido", @@ -411,6 +517,7 @@ "cmd.edit_checkpoint": "Punto de control", "cmd.edit_restore_checkpoint": "Restaurar punto de control", "cmd.engine_commands": "Listar comandos", + "cmd.engine_describe": "Describir comando", "cmd.explode_create": "Vista explosionada", "cmd.explode_delete": "Eliminar vista explosionada", "cmd.explode_list": "Listar vistas explosionadas", @@ -443,6 +550,7 @@ "cmd.joint_drive": "Accionar uniones", "cmd.joint_edit": "Editar unión", "cmd.joint_gear": "Engranaje", + "cmd.joint_inspect": "Inspeccionar unión", "cmd.joint_limits": "Límites de unión", "cmd.joint_list": "Listar uniones", "cmd.joint_motion_link": "Vínculo de movimiento", @@ -452,6 +560,7 @@ "cmd.joint_rigid_group": "Grupo rígido", "cmd.joint_screw": "Tornillo", "cmd.joint_solve": "Resolver uniones", + "cmd.joint_sweep": "Barrer unión", "cmd.library_apply": "Aplicar elemento de biblioteca local", "cmd.library_export": "Exportar biblioteca de diseños", "cmd.library_inspect": "Inspeccionar biblioteca local", @@ -569,6 +678,8 @@ "cmd.sketch_isoparametric_curve": "Curva isoparamétrica", "cmd.sketch_line3d": "Línea 3D", "cmd.sketch_line_midpoint": "Línea por punto medio", + "cmd.sketch_loose_ends": "Extremos sueltos", + "cmd.sketch_loose_ends_tie": "Unir extremos sueltos", "cmd.sketch_move": "Mover/copiar entidades de boceto", "cmd.sketch_move3d": "Mover punto 3D", "cmd.sketch_move_point": "Arrastrar punto de boceto", @@ -598,6 +709,7 @@ "cmd.sketch_spline_fit_point": "Spline por puntos de ajuste", "cmd.sketch_spun_profile": "Perfil de revolución", "cmd.sketch_toggle_driven": "Alternar cota de referencia", + "cmd.sketch_trim_path": "Recortar a lo largo de la trayectoria", "cmd.solid_align": "Alinear", "cmd.solid_boundary_fill": "Relleno de contorno", "cmd.solid_bounding_solid": "Sólido envolvente", @@ -640,13 +752,23 @@ "cmd.timeline_roll_to": "Desplazar marcador de la línea de tiempo", "cmd.timeline_rollback": "Mover marcador de la línea de tiempo", "cmd.timeline_suppress": "Suprimir operación", + "cmd.view_ambient_occlusion": "Oclusión ambiental", "cmd.view_apply": "Restaurar vista guardada", "cmd.view_delete": "Eliminar vista guardada", + "cmd.view_graphics_preset": "Preajuste gráfico", "cmd.view_list": "Listar vistas guardadas", "cmd.view_navigate": "Navegar por la vista", "cmd.view_rename": "Cambiar nombre de vista guardada", "cmd.view_save": "Nueva vista guardada", - "command name": "nombre del comando", + "color.copy": "Haz clic para copiar los valores del color", + "color.edit": "Haz clic para editar el color", + "color.gamma": "Mostrando los valores de color en espacio gamma 0-255", + "color.hue": "Tono", + "color.linear": "Mostrando los valores de color en espacio lineal 0-1", + "color.saturation_value": "Saturación y valor", + "color.selected": "Color seleccionado", + "contact.components_count": "{count} componentes", + "contact.enabled_label": "activado", "coupling.gear_1": "Engranaje 1", "coupling.gear_1_pick": "Engranaje 1 (opcional)", "coupling.gear_2": "Engranaje 2", @@ -663,8 +785,30 @@ "coupling.rack": "Cremallera", "coupling.radius_1": "Radio 1", "coupling.radius_2": "Radio 2", + "crash.announce": "SolidCraft se cerró inesperadamente o tuvo un error interno la última vez. Se guardó un informe de fallo (Ayuda > Informes de fallos…).", + "crash.copy_folder": "Copiar ruta de la carpeta", + "crash.copy_path": "Copiar ruta", + "crash.deleted": "Se eliminaron {count} informe(s).", + "crash.detected_time": "Detectado {time} UTC", + "crash.intro": "Los informes de fallos se quedan en este equipo y nunca se envían a ningún sitio. Informar… abre un borrador que revisas antes de compartir nada.", + "crash.kind_command": "Error interno en un comando", + "crash.kind_internal": "Error interno", + "crash.kind_kernel": "Error del núcleo (recuperado)", + "crash.kind_unclean": "Cerrado inesperadamente", + "crash.previous_session": "Una sesión anterior de SolidCraft terminó inesperadamente o tuvo un error interno. Los informes de cierres incorrectos se detectan al iniciar. Consulta Ayuda > Informes de fallos… para más detalles.", + "crash.replayable": "reproducible", + "crash.report": "Informar…", + "crash.unclean_explanation": "Detectado en un inicio posterior; no se registró la hora exacta de cierre. Un apagado del sistema o una detención forzada también puede causar un cierre incorrecto.", + "delete.and_more": "… y {count} más", + "dialog.bodies_count": "{count} cuerpos", + "dialog.clearance_invalid": "la holgura debe ser una longitud de 0 o más", + "dialog.compute": "Calcular", + "dialog.compute_again": "Calcular de nuevo", "dialog.computing": "Calculando… {seconds} s", + "dialog.could_not_be_checked": "no se pudo comprobar", "dialog.custom_axis": "↖ Eje personalizado", + "dialog.dimension_insert_hint": "Haga doble clic en otra cota de control para insertar su nombre", + "dialog.dimension_name": "Cota: {name}", "dialog.edit_title": "EDITAR {title}", "dialog.select": "↖ Seleccionar", "dialog.selected_count": "↖ {count} seleccionados", @@ -688,9 +832,30 @@ "dxf.progress.write": "Escribiendo DXF (5/5)", "dxf.tolerance": "Tolerancia de curva", "dxf.tolerance_help": "Solo cuerpos visibles. Las curvas usan segmentos rectos. Una tolerancia menor da curvas más finas y consume más tiempo y memoria.", - "expression, e.g. 25 mm": "expresión, p. ej., 25 mm", + "file_load.built": "Construido hasta ahora: {built} de {total} operaciones.", + "file_load.converting": "Convirtiendo sólido {done} de {total}", + "file_load.inserting": "Insertando geometría", + "file_load.opening": "Abriendo diseño", + "file_load.preparing_thumbnail": "Preparando la miniatura...", + "file_load.preparing_view": "Preparando la vista...", + "file_load.preview_note": "Vista previa guardada. Se está comprobando la geometría antes de editar.", + "file_load.reading": "Leyendo el archivo...", + "file_load.reading_percent": "Leyendo el archivo... {percent}%", + "file_load.rebuilding": "Reconstruyendo operación {done} de {total}", + "file_load.recovering": "Recuperando diseño", + "file_load.stopping": "Esperando a que se detenga la operación anterior...", + "file_load.waiting": "Esperando operación de archivo", "fits the face, e.g. M8": "se ajusta a la cara, p. ej., M8", "from the rule": "de la regla", + "help.apache": "Licencia Apache 2.0", + "help.attributions": "Atribuciones (ATTRIBUTION.md)", + "help.build": "Versión {version} · commit {commit} · compilada el {date}", + "help.font_details": "La interfaz utiliza las fuentes integradas de egui (Ubuntu Light y Hack, bajo las licencias Ubuntu Font Licence y MIT/Bitstream Vera; Noto Emoji y la fuente de iconos emoji, bajo OFL y MIT). El texto de los bocetos utiliza Liberation Sans (SIL OFL 1.1). El paquete opcional de fuentes de The Crafting Apps, craft-fonts (BIZ UDPGothic, Shippori Mincho, BIZ UDMincho, Noto Sans CJK SC, Noto Sans Arabic; SIL OFL 1.1), no se incluye en las compilaciones de SolidCraft.", + "help.fonts": "Fuentes", + "help.licences": "Licencias", + "help.mit": "Licencia MIT", + "help.notice": "NOTICE", + "help.third_party": "Licencias de terceros", "home.documentation": "Documentación", "home.in_this_browser": "en este navegador", "home.missing": "no disponible", @@ -716,13 +881,51 @@ "install.menu": "Instalar aplicación…", "install.steps_intro": "Safari instala aplicaciones web desde sus propios menús:", "install.title": "Instalar SolidCraft", + "issue.body_label": "Texto del informe", + "issue.note_image_copied": "Pega la imagen en el borrador de GitHub, o guarda el PNG si no se puede copiar la imagen.", + "issue.note_opened": "Revisa el borrador de GitHub y adjunta la captura de pantalla. El botón «Submit new issue» de GitHub lo publica.", + "issue.note_opened_copied": "Informe copiado. Pégalo en el borrador de GitHub, adjunta la captura de pantalla y haz clic en «Submit new issue» en GitHub.", + "issue.note_removed": "Captura de pantalla eliminada de este borrador.", + "issue.note_report_copied": "Informe copiado. Pégalo en el borrador de GitHub si es necesario.", + "issue.note_save_failed": "No se pudo guardar la captura de pantalla: {error}", + "issue.note_saved": "Captura de pantalla guardada. Adjunta el PNG en el borrador de GitHub.", + "issue.save_screenshot": "Guardar captura de pantalla…", "joint.from_bodies_hint": "Cada cuerpo seleccionado pasa a un componente nuevo propio y conserva su posición.", "joint.one_body": "Las dos selecciones pertenecen a {body}. Selecciona la segunda en otra pieza.", "joint.one_component": "Estas piezas son cuerpos de un mismo componente: {bodies}. Una unión mueve un componente respecto a otro, por lo que cada pieza debe tener su propio componente.", + "keymap.command_id": "ID del comando", + "keymap.empty": "No hay comandos coincidentes", + "keymap.use_anyway": "Usar {key} aquí de todos modos", + "manage.appearance_hint": "Elija una apariencia para la selección o arrastre una muestra a un cuerpo o una cara.", + "manage.assign_hint": "Seleccione cuerpos y elija su regla de diseño de piezas de plástico.", + "manage.config_hint": "Edite las filas, columnas y reglas de configuración y luego active una fila o muestre su vista previa.", + "manage.empty": "No hay filas coincidentes.", + "manage.material_hint": "Seleccione cuerpos y elija su material físico.", + "manage.parameters_hint": "Edite expresiones y unidades. Los cambios se aplican al pulsar Intro o salir de un campo.", + "manage.rules_hint": "Elija una regla para editarla o cree una nueva. Confirme para guardar la regla.", + "measure.at": "En", + "measure.item": "Elemento {number}", + "messages.ago_h": "hace {n} h", + "messages.ago_min": "hace {n} min", + "messages.ago_s": "hace {n} s", + "messages.chip_hint": "Haz clic para ver todos los mensajes de esta sesión", + "messages.clear": "Borrar", + "messages.copy_all": "Copiar todo", + "messages.menu": "Mensajes…", + "messages.none": "Aún no hay mensajes.", + "messages.title": "Mensajes", "motion.checked_to": "Comprobado solo hasta el paso {step}: la comprobación agotó su presupuesto de trabajo", "motion.collision": "{a} · {b}: pasos {steps}", + "motion.delete_key": "Eliminar fotograma clave", "motion.duration_hint": "segundos (vacío: por paso)", + "motion.key_here": "Insertar fotograma clave aquí", + "motion.key_here_hint": "Añadir un fotograma clave en este paso con el valor actual de la unión", "motion.no_collisions": "Sin colisiones durante el estudio", + "motion.step_back": "Paso atrás", + "motion.step_forward": "Paso adelante", + "motion.to_end": "Al final", + "motion.to_start": "Al inicio", + "motion.track_name": "Pista {number}", "nav.touchpad.help": "Mantén pulsado Mayús y mueve el puntero para encuadrar; mantén Alt/Opción y muévelo para orbitar. No hace falta pulsar ningún botón del ratón. El desplazamiento vertical hace zoom.", "nav.touchpad.label": "Panel táctil", "nav.touchpad.orbit": "Orbitar (mantén Alt/Opción y mueve el puntero; sin pulsar botones)", @@ -731,11 +934,13 @@ "nav.touchpad.zoom": "Zoom (desplazamiento vertical o gesto de pellizco)", "needs two joints": "necesita dos uniones", "new configuration": "nueva configuración", - "new name": "nuevo nombre", "new parameter": "nuevo parámetro", + "no hole": "sin agujero", "no interference": "sin interferencias", "no joint that moves yet": "todavía no hay ninguna unión móvil", "no picture": "sin imagen", + "none": "ninguno", + "parts.automatic_name": "automático", "pattern.alignment_2": "Alineación 2", "pattern.alignment_hint": "Los recuentos incluyen el original. Centrar equilibra las copias; Invertir elige el lado adicional cuando el total es par.", "pattern.direction_1": "Dirección 1", @@ -743,12 +948,19 @@ "pattern.flip_direction": "Invertir dirección", "pick a hole to seat it, or OK places it at the origin": "selecciona un agujero para colocarlo o pulsa Aceptar para situarlo en el origen", "pick one or two vertices, edges or faces": "selecciona uno o dos vértices, aristas o caras", + "prefs.cpu": "CPU (software)", + "prefs.minutes_suffix": " min", + "properties.title": "Propiedades: {name}", + "recovery.days_ago": "hace {count} días", + "recovery.detail": "{file} · {features} operaciones · autoguardado {when}", + "recovery.hours_ago": "hace {count} h", + "recovery.just_now": "justo ahora", + "recovery.min_ago": "hace {count} min", + "recovery.never_saved": "nunca guardado", "render.background": "Fondo de la escena", "render.fit": "Ajustar producto", - "render.image_cancel": "Cancelar renderizado", "render.image_cancelled": "Renderizado cancelado", "render.image_cancelling": "Cancelando", - "render.image_check": "Comprobar solicitud de renderizado", "render.image_completed": "Imagen lista para exportar", "render.image_encoding": "Codificando PNG", "render.image_export": "Exportar PNG", @@ -795,6 +1007,19 @@ "sample.plate.name": "Placa de ejemplo", "sample.vents.about": "Ranuras en un patrón rectangular: las filas, las columnas y el paso son parámetros", "sample.vents.name": "Placa de ventilación", + "search.command_keys": "Intro ejecutar Mayús+Intro ejecutar y mantener abierto Esc cerrar", + "search.commands": "Comandos", + "search.design": "En este diseño", + "search.feature": "Operación", + "search.invalid": "No válido", + "search.keys": "↑ ↓ elegir Intro ejecutar Tab completar nombre Esc cerrar", + "search.no_match": "Ningún comando coincide con '{query}'", + "search.parameter": "Parámetro", + "search.recent": "Recientes", + "search.run": "Ejecutar comando", + "search.suggest": "¿Quisiste decir {label}?", + "search.try": "Escribe el nombre de un comando, una operación de este diseño o un parámetro. Para ejecutar un comando con valores, escribe su id y un objeto JSON: {example}", + "search.valid": "Válido", "settings.display_quality_note": "Los niveles más finos muestran las caras y aristas curvas con mayor suavidad, pero tardan más en generar la malla. Solo cambia el visor, nunca el diseño ni las exportaciones.", "settings.frame_rate_note": "Muestra los fotogramas por segundo en la esquina inferior derecha de la vista. Mientras esté activado, la vista se redibuja continuamente.", "settings.measure_axis_distances": "Mostrar distancias X/Y/Z", @@ -805,21 +1030,37 @@ "settings.reset_intro": "Estos ajustes no funcionan en este ordenador e impedirían iniciar SolidCraft, por lo que se han cambiado:", "settings.reset_title": "Se han cambiado los ajustes", "settings.supersampling_note": "Dibuja la vista a mayor resolución y después la reduce: bordes, líneas y cuadrícula más suaves en pantallas inferiores a 4K. Consume recursos de GPU: unos 2,25× píxeles a 1,5× y 4× a 2×.", + "shortcut.json_error": "los parámetros deben estar en formato JSON: {error}", + "shortcut.no_command": "no existe el comando `{id}`; el texto anterior al JSON debe ser un ID de comando", + "shortcut.pin": "Fijar en la parte superior del cuadro S", + "shortcut.unpin": "Desfijar", "sketch.degrees_of_freedom": "{count} grados de libertad", + "sketch.dof_left": "Quedan {count} grados de libertad", + "sketch.dof_left_one": "Queda {count} grado de libertad", "sketch.draw_curves": "Dibujar como {linetype}", "sketch.make_selection": "Convertir la selección a {linetype}", + "sketch.open_ends": "Abiertos {count}", + "sketch.untied_ends": "Sin unir {count}", + "sketch_panel.attached": "Vinculado a {body} / {path}", + "sketch_panel.author": "Ubicación de autoría: {path}", + "sketch_panel.dimension_hint": "Introduzca un valor o una expresión y pulse Aceptar.", + "sketch_panel.move_hint": "Introduzca las distancias y un ángulo y pulse Aceptar.", + "sketch_panel.redefine_title": "{command}: {name}", + "sketch_panel.sheet_attachment": "Vinculado a una cara plana de un cuerpo de chapa; sigue ese panel cuando cambia la chapa.", + "sketch_panel.text_hint": "Edite el texto y su posición y pulse Aceptar.", + "sketch_panel.use_plane": "Usar plano {plane}", "sketch_text.align_center": "Centrar", "sketch_text.align_left": "Alinear a la izquierda", "sketch_text.align_right": "Alinear a la derecha", "sketch_text.bold": "Negrita", "sketch_text.builtin_font": "{family} (integrada)", - "sketch_text.font_search": "Buscar fuentes", "sketch_text.italic": "Cursiva", "sketch_text.loading_fonts": "Buscando fuentes instaladas…", "sketch_text.on_path": "El texto sigue su trayectoria: la curva determina su posición", "sketch_text.path_clear": "Separar el texto de su curva", "sketch_text.path_hint": "Curva del boceto que seguirá el texto: haz clic aquí y después en la curva", "sketch_text.use_font_file": "Usar el archivo de fuente {path}", + "solid": "sólido", "the parts library is not available": "la biblioteca de piezas no está disponible", "thread.automatic_size": "Tamaño automático", "thread.designation": "Designación", @@ -831,7 +1072,9 @@ "timeline.rename_group": "Cambiar nombre de carpeta de operaciones", "timeline.reorder_many": "Reordenar operaciones", "timeline.ungroup": "Quitar carpetas de operaciones", + "to the face": "a la cara", "to the next face": "hasta la siguiente cara", + "toolbar.customize_note": "Pestaña {tab}. Marque un comando para añadir su botón a la barra de herramientas. También puede arrastrar una fila del desplegable de un panel a la barra, arrastrar un botón fuera de la barra para quitarlo o usar la chincheta de una fila del desplegable.", "toolbar.image": "IMAGEN", "toolbar.render": "RENDERIZAR", "toolbar.render_scene": "ESCENA", @@ -840,18 +1083,21 @@ "trace.stopped_by_loop": "Termina en la muestra {sample}: el bucle que pasa por {joint} no puede cerrarse más", "ui.1_degree_of_freedom": "1 grado de libertad", "ui.3d_mouse_speed": "Velocidad del ratón 3D", - "ui.3d_mouse_windows": "Ratón 3D", "ui.3d_sketch": "Boceto 3D", - "ui.about": "Acerca de", "ui.activate": "Activar", "ui.active_component": "Componente activo", + "ui.add_configuration": "Añadir configuración", + "ui.add_parameter": "Añadir parámetro", "ui.agent_chat": "Chat del agente", + "ui.agent_chat_add": "Adjuntar archivos", + "ui.agent_chat_add_file": "Elegir un archivo…", "ui.agent_chat_allow": "Permitir", "ui.agent_chat_allowed": "Permitido", "ui.agent_chat_answered": "Respuesta: {option}", "ui.agent_chat_approval": "¿Permitir que el agente haga esto?", "ui.agent_chat_attach_view": "Adjuntar vista", "ui.agent_chat_attach_view_tip": "Enviar una imagen de la vista actual con el mensaje", + "ui.agent_chat_attachable": "Imágenes, PDF, texto y archivos CAD", "ui.agent_chat_auth_agent": "Iniciar sesión con {name}", "ui.agent_chat_auth_env": "Configura {vars} en las variables de entorno y reinicia SolidCraft.", "ui.agent_chat_auth_needed": "El agente te pide que inicies sesión. El inicio de sesión se realiza con el propio agente; SolidCraft nunca ve tu contraseña ni tus claves.", @@ -871,11 +1117,33 @@ "ui.agent_chat_deny": "Denegar", "ui.agent_chat_desktop_only": "El chat del agente requiere la aplicación de escritorio.", "ui.agent_chat_detecting": "Buscando agentes…", + "ui.agent_chat_dock": "Acoplar en el panel lateral", "ui.agent_chat_dock_left": "Acoplar a la izquierda", "ui.agent_chat_dock_right": "Acoplar a la derecha", + "ui.agent_chat_drop_hint": "Suelta para adjuntar a tu próximo mensaje", "ui.agent_chat_edit": "Editar", "ui.agent_chat_exited": "El agente se ha detenido.", "ui.agent_chat_failed_start": "No se ha podido iniciar el agente: {error}", + "ui.agent_chat_file_cad_not_read": "{name}: un archivo CAD se importa al diseño, no se lee", + "ui.agent_chat_file_empty_picture": "{name}: una imagen vacía", + "ui.agent_chat_file_error": "{name}: {error}", + "ui.agent_chat_file_heic": "{name}: aquí no se pueden leer imágenes HEIC; expórtala antes como JPEG o PNG", + "ui.agent_chat_file_importing": "Importando al diseño…", + "ui.agent_chat_file_kinds": "{name}: se pueden adjuntar imágenes (PNG, JPEG, GIF, WebP, BMP, TIFF), archivos de texto (también SVG) y archivos CAD (STEP, IGES, FreeCAD, Rhino, STL, 3MF, OBJ, glTF)", + "ui.agent_chat_file_loading": "Leyendo el archivo…", + "ui.agent_chat_file_not_a_file": "{name}: no es un archivo", + "ui.agent_chat_file_not_a_picture": "{name}: no es una imagen", + "ui.agent_chat_file_not_utf8": "{name}: no es texto UTF-8", + "ui.agent_chat_file_picture_too_big": "{name}: una imagen puede pesar como máximo {max} MB", + "ui.agent_chat_file_text_too_big": "{name}: un archivo de texto puede pesar como máximo {max} KB", + "ui.agent_chat_file_too_large": "{name}: demasiado grande", + "ui.agent_chat_file_too_large_to_send": "{name}: demasiado grande para enviar, incluso reducido", + "ui.agent_chat_file_unreadable_picture": "{name}: no es una imagen que se pueda leer", + "ui.agent_chat_files": "Archivos: {files}", + "ui.agent_chat_files_left_out": "Se pueden enviar como máximo {max} archivos con un mensaje; omitidos: {files}", + "ui.agent_chat_files_loading": "Esperando a que se lean los archivos", + "ui.agent_chat_files_max": "Como máximo {max} archivos por mensaje", + "ui.agent_chat_import_failed": "{name}: la importación falló: {error}", "ui.agent_chat_intro": "Habla con un agente de programación que ya utilices o con un servicio de modelos que elijas. Trabaja sobre el diseño abierto mediante las herramientas de SolidCraft: sus cambios se muestran al realizarlos y pueden deshacerse de una vez por mensaje. Lo que puede hacer sin preguntar se configura en Preferencias > IA.", "ui.agent_chat_key_in_env": "clave configurada", "ui.agent_chat_left": "Izquierda", @@ -884,18 +1152,23 @@ "ui.agent_chat_model_tip": "Modelo que utiliza el agente. Se recuerda tu elección para este agente.", "ui.agent_chat_new": "Nuevo chat", "ui.agent_chat_new_confirm": "¿Iniciar un nuevo chat? Se borrará la conversación actual.", - "ui.agent_chat_new_yes": "Nuevo chat", + "ui.agent_chat_next_picture": "Imagen siguiente", "ui.agent_chat_no_cli": "No se ha encontrado solidcraft-cli junto a la aplicación, por lo que el agente no puede acceder al diseño.", "ui.agent_chat_no_control": "No se ha iniciado el punto de conexión del chat del agente, por lo que no puede acceder al diseño.", "ui.agent_chat_no_images": "Este agente no admite imágenes", + "ui.agent_chat_no_picture": "No hay ninguna imagen en el portapapeles", "ui.agent_chat_none_found": "No se ha encontrado ningún agente de programación. Instala uno de estos y pulsa Actualizar:", "ui.agent_chat_none_found_short": "No se ha encontrado ningún agente", "ui.agent_chat_not_installed": "No instalado", "ui.agent_chat_not_signed_in": "sesión no iniciada", + "ui.agent_chat_own_window": "Ventana propia", + "ui.agent_chat_paste_picture": "Pegar una imagen", "ui.agent_chat_permission": "El agente solicita ejecutar: {title}", "ui.agent_chat_pick": "Agente", "ui.agent_chat_placeholder": "Pide al agente que modifique el diseño…", "ui.agent_chat_placeholder_busy": "Pon un mensaje en cola para cuando termine el agente (Ctrl+Intro: enviar ahora)", + "ui.agent_chat_pop_out": "Abrir en su propia ventana, que puedes mover a otra pantalla", + "ui.agent_chat_previous_picture": "Imagen anterior", "ui.agent_chat_privacy": "Solo se envían datos al agente que ejecutes, con tu propia cuenta.", "ui.agent_chat_privacy_note": "SolidCraft no envía nada a otros destinos: el agente que ejecutas se comunica con su propio servicio utilizando tu cuenta. SolidCraft nunca ve ni almacena claves o contraseñas.", "ui.agent_chat_queue": "Poner en cola", @@ -905,6 +1178,8 @@ "ui.agent_chat_refresh": "Actualizar", "ui.agent_chat_refused": "No permitido para el agente: {reason}", "ui.agent_chat_remove": "Quitar de la cola", + "ui.agent_chat_remove_file": "Quitar de este mensaje", + "ui.agent_chat_remove_imported": "Quitar de este mensaje; la pieza permanece en el diseño (Deshacer la elimina)", "ui.agent_chat_right": "Derecha", "ui.agent_chat_save": "Guardar", "ui.agent_chat_send": "Enviar", @@ -949,6 +1224,7 @@ "ui.ai_bad_url": "Introduce una URL que empiece por http:// o https://", "ui.ai_base_url": "URL base", "ui.ai_button": "AI", + "ui.ai_command_hint": "my-agent --acp", "ui.ai_copy_suffix": "copia", "ui.ai_custom_url": "URL personalizada", "ui.ai_default": "Predeterminado", @@ -969,8 +1245,10 @@ "ui.ai_mode_edits_note": "Los comandos de modelado se ejecutan sin preguntar; guardar, abrir, exportar y otras acciones sobre archivos o destructivas siguen requiriendo permiso.", "ui.ai_mode_global": "Según la configuración anterior", "ui.ai_model": "Modelo", + "ui.ai_model_hint": "qwen3:14b", "ui.ai_modes_scope": "Estos ajustes se aplican a las herramientas de SolidCraft. Las herramientas propias del agente (terminal, edición de archivos) siguen el modo del agente, que puedes elegir en la cabecera del panel de chat si dispone de modos.", "ui.ai_name": "Nombre", + "ui.ai_name_hint": "Mi agente", "ui.ai_need_command": "Introduce el comando que inicia el agente", "ui.ai_need_model": "Introduce el nombre del modelo", "ui.ai_no_answer": "El agente no ha respondido a tiempo", @@ -1001,7 +1279,10 @@ "ui.ai_toolbar_button": "Mostrar botón en la barra de herramientas", "ui.ai_toolbar_button_note": "El botón IA situado al extremo derecho de la barra. Ctrl+Mayús+A y el menú Ver también abren el panel.", "ui.ai_undo_tip": "Deshacer todos los cambios del agente en este mensaje, en un solo paso", + "ui.ai_url_hint": "https://example.com/v1", "ui.all": "Todo", + "ui.ambient_occlusion": "Oclusión ambiental", + "ui.ambient_occlusion_help": "Sombreado suave donde se encuentran superficies opacas. Requiere la vista GPU.", "ui.analysis": "Análisis", "ui.angle": "Ángulo", "ui.angle_decimals": "Decimales de ángulo", @@ -1012,7 +1293,8 @@ "ui.anti_aliasing": "Suavizado de bordes", "ui.apply": "Aplicar", "ui.arc": "Arco", - "ui.assemble": "Ensamblar", + "ui.assistant": "Asistente", + "ui.assistant_waiting": "{count} aprobaciones en espera", "ui.autosave_every": "Guardar automáticamente cada", "ui.axes": "Ejes", "ui.axis": "Eje", @@ -1020,8 +1302,14 @@ "ui.base_point": "Punto base", "ui.blocked": "Bloqueado", "ui.bodies": "Cuerpos", + "ui.bodies_all_if_none": "Cuerpos (todos si no hay ninguno)", "ui.box": "Caja", "ui.break": "Romper", + "ui.browser_bodies_one": "{count} cuerpo", + "ui.browser_bodies_other": "{count} cuerpos", + "ui.browser_collapse": "Contraer el navegador", + "ui.browser_expand": "Expandir el navegador", + "ui.browser_title": "Navegador", "ui.calibrate": "Calibrar", "ui.cancel": "Cancelar", "ui.canvases": "Lienzos", @@ -1031,7 +1319,6 @@ "ui.chamfer": "Chaflán", "ui.chamfer_type": "Tipo de chaflán", "ui.change_workspace": "Cambiar espacio de trabajo", - "ui.chord_length": "Longitud de cuerda", "ui.circle": "Círculo", "ui.circular_pattern": "Patrón circular", "ui.clear": "Borrar", @@ -1064,11 +1351,9 @@ "ui.command_done": "{command} completado", "ui.command_palette_hint": "Escribe un comando, p. ej., {example}, o pulsa S para buscar", "ui.concentric": "Concéntrico", - "ui.configurations": "Configuraciones", "ui.conic_curve": "Curva cónica", "ui.constant": "Constante", "ui.constraints_conflict": "Conflicto entre restricciones", - "ui.construct": "Construir", "ui.construction": "Construcción", "ui.context_menu": "Menú contextual", "ui.continuity_g0": "G0 arista", @@ -1094,7 +1379,6 @@ "ui.cylinder": "Cilindro", "ui.dark": "Oscuro", "ui.default_modelling_orientation": "Orientación de modelado predeterminada", - "ui.degrees_of_freedom": "grados de libertad", "ui.delete": "Eliminar", "ui.depth": "Profundidad", "ui.design": "Diseño", @@ -1136,7 +1420,6 @@ "ui.equivalent_radius": "Radio equivalente", "ui.expand": "Expandir", "ui.exportDxf": "Exportar DXF…", - "ui.export_ellipsis": "Exportar…", "ui.export_ellipsis_keymap": "Exportar…", "ui.export_keymap_tip": "Exportar las teclas, los favoritos de la búsqueda S y la barra de herramientas como archivo", "ui.extend": "Extender", @@ -1160,8 +1443,14 @@ "ui.frame_rate": "Frecuencia de fotogramas", "ui.front": "Frontal", "ui.fully_constrained": "Totalmente restringido", + "ui.function": "Función", "ui.general": "General", "ui.graphics": "Gráficos", + "ui.graphics_custom": "Personalizado", + "ui.graphics_performance": "Rendimiento", + "ui.graphics_preset": "Preajuste gráfico", + "ui.graphics_preset_help": "Calidad: oclusión ambiental, calidad de visualización Fina y supermuestreo adaptativo 2×. Rendimiento: sin oclusión ambiental, calidad de visualización Normal y supermuestreo desactivado. Los cambios manuales muestran Personalizado. MSAA no cambia.", + "ui.graphics_quality": "Calidad", "ui.grid_follows_view": "La cuadrícula sigue a la vista", "ui.grid_follows_view_hint": "Las vistas laterales muestran la cuadrícula en el plano vertical que tienen enfrente, en lugar del suelo", "ui.ground_shadow": "Sombra en el suelo", @@ -1190,6 +1479,7 @@ "ui.heading_home": "INICIO", "ui.heading_insert": "INSERTAR", "ui.heading_inspect": "INSPECCIONAR", + "ui.heading_interference": "INTERFERENCIA", "ui.heading_loft": "SOLEVACIÓN", "ui.heading_make": "FABRICAR", "ui.heading_measure": "MEDIR", @@ -1220,7 +1510,6 @@ "ui.heading_sheet_metal": "CHAPA", "ui.heading_shell": "VACIADO", "ui.heading_sketch": "BOCETO", - "ui.heading_sketch_palette": "PALETA DE BOCETOS", "ui.heading_sketch_scale": "ESCALA DEL BOCETO", "ui.heading_solid": "SÓLIDO", "ui.heading_sphere": "ESFERA", @@ -1239,6 +1528,7 @@ "ui.hideOrigin": "Ocultar origen", "ui.hidePlanes": "Ocultar planos", "ui.hideProfile": "Ocultar perfil", + "ui.history_title": "Historial", "ui.hole": "Agujero", "ui.hole_tap_type": "Tipo de roscado del agujero", "ui.hole_type": "Tipo de agujero", @@ -1258,11 +1548,12 @@ "ui.length_decimals": "Decimales de longitud", "ui.light": "Claro", "ui.line": "Línea", - "ui.linetype": "Tipo de línea", "ui.lock": "Bloquear", "ui.loft": "Solevación", "ui.look_at": "Mirar hacia", "ui.look_at_anim_desc": "Vista de eje, Mirar hacia, Inicio y Ajustar", + "ui.manipulator_free_alt": "Arrastre libre del manipulador también con Alt/Option", + "ui.manipulator_free_alt_tip": "Activado: Alt/Option o Ctrl/Cmd sobre las flechas de extrusión / manipulador desactiva el ajuste de valores. Desactivado: solo Ctrl/Cmd.", "ui.manufacture": "Fabricación", "ui.material_review.axes": "Ejes locales del material; no se ha asignado ninguna orientación al cuerpo.", "ui.material_review.claims": "Las fuentes y licencias son declaraciones sin verificar. Los valores ausentes siguen siendo desconocidos.", @@ -1290,10 +1581,8 @@ "ui.mesh_format_3mf": "3MF", "ui.mesh_format_3mf_tagged": "3MF con etiquetas de cara", "ui.mesh_format_stl": "STL", - "ui.midpoint": "Punto medio", "ui.mirror": "Simetría", "ui.mirror_line": "Línea de simetría", - "ui.modify": "Modificar", "ui.move": "Mover", "ui.multiple": "Múltiple", "ui.named_views": "Vistas guardadas", @@ -1302,6 +1591,7 @@ "ui.newSketchGroup": "Nuevo grupo de bocetos", "ui.new_body": "Nuevo cuerpo", "ui.new_design": "Nuevo diseño", + "ui.no_geometry_yet": "Aún no hay geometría", "ui.no_slicer_found": "No se ha encontrado ningún laminador", "ui.normal": "Normal", "ui.normalConstruction": "Normal / construcción", @@ -1313,7 +1603,7 @@ "ui.offset_plane": "Plano desfasado", "ui.one_side": "Un lado", "ui.open": "Abrir", - "ui.open_ellipsis": "Abrir…", + "ui.open_ends_tip": "No toca nada", "ui.open_preferences": "Abrir preferencias", "ui.open_recent": "Abrir reciente", "ui.operation": "Operación", @@ -1322,12 +1612,14 @@ "ui.orbit_around": "Orbitar alrededor de", "ui.orientation": "Orientación", "ui.origin": "Origen", - "ui.palette_points": "Puntos", - "ui.palette_profile": "Perfil", + "ui.palette_construction_mode": "Modo de construcción (X)", + "ui.palette_more": "Más", + "ui.palette_sketch_options": "Opciones de croquis", "ui.pan": "Desplazar", "ui.pan_zoom_orbit": "Desplazar, zoom y orbitar", "ui.parallel": "Paralelo", "ui.parameters": "Parámetros", + "ui.part_size_shared": "Reconstruye la pieza y sustituye las operaciones añadidas. Se actualizan todas las apariciones de este componente.", "ui.paste": "Pegar", "ui.path": "Trayectoria", "ui.pattern_on_path": "Patrón en trayectoria", @@ -1339,6 +1631,12 @@ "ui.placement": "Colocación", "ui.plane": "Plano", "ui.plane_at_angle": "Plano en ángulo", + "ui.plugins": "Complementos", + "ui.plugins_desktop": "Los complementos están disponibles en la aplicación de escritorio.", + "ui.plugins_empty": "No hay complementos instalados.", + "ui.plugins_note": "Cada complemento es una carpeta dentro de {path} con un plugin.json. SolidCraft lee ese archivo y no ejecuta ningún código de la carpeta. Desactivar un complemento lo mantiene instalado.", + "ui.plugins_skipped": "No se pudieron leer {count} carpeta(s).", + "ui.plugins_version": "{version}", "ui.point": "Punto", "ui.point_under_the_cursor": "Punto bajo el cursor", "ui.points": "Puntos", @@ -1357,13 +1655,17 @@ "ui.quit": "Salir", "ui.radial_context_menu": "Menú contextual radial", "ui.radius": "Radio", - "ui.radius_type": "Tipo de radio", "ui.rail": "Línea guía", "ui.rail_fit": "Ajuste a la guía", "ui.reachable": "Alcanzable", "ui.rectangle": "Rectángulo", "ui.rectangular_pattern": "Patrón rectangular", "ui.redo": "Rehacer", + "ui.relink_design_changed": "El ensamblaje cambió mientras se elegía un origen. Inicia Revincular origen de nuevo.", + "ui.relink_done": "Origen revinculado en todas las instancias.", + "ui.relink_not_linked": "Este componente no está vinculado a un diseño de origen.", + "ui.relink_select_one": "Selecciona primero un componente vinculado o una de sus instancias.", + "ui.relink_source_all": "Revincular origen (todas las instancias)…", "ui.removeFromToolbar": "Quitar de la barra de herramientas", "ui.removeSection": "Quitar sección", "ui.render": "Renderizar", @@ -1375,12 +1677,16 @@ "ui.reset_the_settings_on_this_page": "Restablecer los ajustes de esta página", "ui.restore": "Restaurar", "ui.restore_defaults": "Restaurar valores predeterminados", + "ui.reverse_horizontal_pan_direction": "Invertir dirección del desplazamiento horizontal", + "ui.reverse_horizontal_pan_tip": "El desplazamiento horizontal con dos dedos y la rueda de pulgar desplazan en sentido contrario", "ui.reverse_zoom_direction": "Invertir dirección del zoom", "ui.revolve": "Revolución", + "ui.ribbon_exit": "Salir", + "ui.ribbon_pin_footer": "Los comandos anclados se muestran en la cinta. Pasa el ratón sobre una fila para anclarla o desanclarla.", + "ui.ribbon_workspace": "Espacio de trabajo", "ui.right": "Derecha", "ui.save": "Guardar", "ui.save_as": "Guardar como", - "ui.save_as_ellipsis": "Guardar como…", "ui.save_mesh_no_slicer": "No se ha encontrado ningún laminador: elige Personalizado… y selecciona tu laminador, o desactiva Enviar al laminador", "ui.save_mesh_pick_bodies": "Selecciona los cuerpos que se van a guardar", "ui.save_mesh_temp_failed": "No se ha podido crear {folder}: {error}", @@ -1393,8 +1699,10 @@ "ui.select": "Seleccionar", "ui.selectOther": "Seleccionar otro…", "ui.selectTangentChain": "Seleccionar cadena tangente", - "ui.select_other_hint": "Seleccionar otro: mantén pulsado el botón izquierdo sobre el modelo (o haz clic derecho › Seleccionar otro…) para ver todos los elementos bajo el cursor; vuelve a pulsar en el mismo punto para seleccionar el siguiente.", "ui.selection": "Selección", + "ui.selection_modifiers": "Modificadores de selección", + "ui.selection_shift_add_only": "Mayús+clic añade sin quitar", + "ui.selection_shift_add_only_tip": "Activado: Mayús añade elementos, Ctrl/Cmd alterna. Desactivado (predeterminado): Mayús y Ctrl/Cmd alternan.", "ui.send": "Enviar", "ui.send_to_slicer": "Enviar al laminador", "ui.sent_to_slicer": "Enviado a {slicer}", @@ -1410,7 +1718,6 @@ "ui.show_constraints": "Restricciones", "ui.show_construction_geometries": "Geometrías de construcción", "ui.show_dimensions": "Cotas", - "ui.show_points": "Mostrar puntos", "ui.show_profile": "Mostrar perfil", "ui.show_projected_geometries": "Geometrías proyectadas", "ui.simple": "Sencillo", @@ -1419,8 +1726,8 @@ "ui.sketch": "Boceto", "ui.sketch_dimension": "Cota de boceto", "ui.sketch_grid": "Cuadrícula de boceto", + "ui.sketch_modifiers": "Modificadores del boceto", "ui.sketch_scale": "Escala del boceto", - "ui.sketch_status": "Estado del boceto", "ui.sketches": "Bocetos", "ui.slice": "Laminar", "ui.slicer": "Laminador", @@ -1466,12 +1773,14 @@ "ui.stand_up_tip": "Tras abrir un archivo STEP o IGES con Z hacia arriba, ofrecer un cuarto de vuelta alrededor de X", "ui.start": "Iniciar", "ui.start_over": "Volver a empezar", - "ui.start_radius": "Radio inicial", + "ui.start_page": "Página de inicio", "ui.stretch": "Estirar", "ui.supersampling": "Supermuestreo (SSAA)", "ui.supersampling_adaptive": "Solo cuando la vista está inmóvil", "ui.supersampling_off": "Desactivado (1×)", "ui.suppress": "Suprimir", + "ui.suppress_auto_snap": "Suprimir el autoajuste al dibujar / arrastrar", + "ui.suppress_auto_snap_note": "Predeterminado: Ctrl/Cmd o Alt/Option suprimen cada uno el ajuste del boceto. Elige una sola tecla para limitarlo.", "ui.sweep": "Barrido", "ui.sweep_follow_direction": "Seguir dirección", "ui.sweep_keep_as_drawn": "Mantener como se ha dibujado", @@ -1486,6 +1795,8 @@ "ui.theme": "Tema", "ui.thickness": "Espesor", "ui.thread": "Rosca", + "ui.tie_ends": "Unir", + "ui.tie_ends_tip": "Restringir todos los extremos sin unir", "ui.timeline_bottom": "Línea de tiempo inferior", "ui.timeline_left_note": "La disposición izquierda muestra la barra de retroceso encima del explorador de piezas y escenas.", "ui.timeline_left_sidebar": "Barra lateral izquierda", @@ -1508,16 +1819,28 @@ "ui.units_of_new_designs": "Unidades de diseños nuevos", "ui.unlock": "Desbloquear", "ui.unsuppress": "Dejar de suprimir", + "ui.untied_ends_tip": "Toca solo por posición", "ui.untitled": "Sin título", "ui.up_axis_note": "Eje que apunta hacia arriba en las vistas (vista de eje, Inicio, Mirar hacia). Los diseños no cambian.", "ui.updateToCurrentView": "Actualizar a vista actual", - "ui.variable": "Variable", "ui.view_centre": "Centro de la vista", "ui.visual_shaded_hidden_edges": "Sombreado con aristas ocultas", "ui.visual_shaded_with_edges": "Sombreado con aristas", "ui.visual_style": "Estilo visual", "ui.visual_wireframe": "Estructura alámbrica", "ui.workspace": "espacio de trabajo", + "ui.workspace_animation_description": "Vistas explosionadas, estudios de movimiento y guiones gráficos", + "ui.workspace_available": "Disponible", + "ui.workspace_current": "Actual", + "ui.workspace_design_description": "Dibuja, modela, ensambla e inspecciona", + "ui.workspace_design_tabs": "Modelo · Superficie · Ensamblaje · Insertar · Inspeccionar · Gestionar · Vista", + "ui.workspace_drawing_description": "Dibujos 2D con vistas, cotas y cajetines", + "ui.workspace_footer": "Todos los espacios de trabajo usan el mismo diseño, historial y selección; solo cambian las pestañas de la cinta. El selector está bloqueado mientras se edita un boceto o una operación.", + "ui.workspace_manufacture_description": "Laminado, trayectorias de herramienta y configuración", + "ui.workspace_planned": "Previsto", + "ui.workspace_render_description": "Vista previa del producto, ajustes de escena e imágenes renderizadas", + "ui.workspace_render_tabs": "Escena · Imagen", + "ui.workspace_simulation_description": "Cargas, restricciones y resultados", "ui.x_distance": "Distancia X", "ui.y_distance": "Distancia Y", "ui.y_up": "Y hacia arriba", @@ -1527,7 +1850,6 @@ "ui.zoom_to_the_cursor": "Zoom hacia el cursor", "update.available": "SolidCraft {version} está disponible", "update.button": "Actualizar", - "update.button_tip": "SolidCraft {version} está disponible", "update.button_version": "Actualizar a {version}", "update.check_automatically": "Buscar actualizaciones automáticamente", "update.check_now": "Comprobar ahora", @@ -1559,5 +1881,6 @@ "update.title": "Actualización disponible", "update.up_to_date": "SolidCraft está actualizado.", "update.update_now": "Actualizar ahora", - "update.you_have": "Tienes la versión {version}." + "update.you_have": "Tienes la versión {version}.", + "↑ ↓ choose · Enter / Tab complete · Esc dismiss": "↑ ↓ elegir · Intro / Tab completar · Esc cerrar" } diff --git a/assets/locales/fr.json b/assets/locales/fr.json index 193312cf1..325a6de42 100644 --- a/assets/locales/fr.json +++ b/assets/locales/fr.json @@ -3,11 +3,14 @@ "1. Open GitHub draft below, then paste the report copied to your clipboard.": "1. Ouvrir le brouillon GitHub ci-dessous, puis coller le rapport copié dans le presse-papiers.", "1. Open GitHub draft below. Your title and report will be filled in.": "1. Ouvrir le brouillon GitHub ci-dessous. Votre titre et votre rapport y seront déjà remplis.", "2. Attach your screenshot: copy and paste it, or save and upload the PNG.": "2. Joindre votre capture d'écran : la copier-coller, ou enregistrer le PNG puis le téléverser.", + "2D": "2D", "3. Click Submit new issue on GitHub to send your report.": "3. Cliquer sur Submit new issue sur GitHub pour envoyer votre rapport.", "A new configuration, a copy of the active one": "Nouvelle configuration, copie de la configuration active", - "AI": "IA", + "ARRANGE": "DISPOSER", "About SolidCraft": "À propos de SolidCraft", "Acceleration": "Accélération", + "Access": "Accès", + "Actions": "Actions", "Active": "Actif", "Active rule": "Règle active", "Add": "Ajouter", @@ -15,6 +18,7 @@ "Add Mid Radius": "Ajouter un rayon intermédiaire", "Add Row": "Ajouter une ligne", "Add condition": "Ajouter une condition", + "Add or edit rule": "Ajouter ou modifier une règle", "Against": "Contre", "Alignment": "Alignement", "All Sketch Points": "Tous les points d'esquisse", @@ -28,20 +32,33 @@ "Applied Radius": "Rayon appliqué", "Apply To": "Appliquer à", "Apply to selection": "Appliquer à la sélection", + "Apply your appearance first. Exports assigned appearances and materials created in this design.": "Appliquez d’abord votre apparence. Exporte les apparences attribuées et les matériaux créés dans cette conception.", "Arc length": "Longueur d'arc", "Area": "Aire", + "As-Built": "Tel que construit", + "Assign Rule": "Attribuer une règle", "Attachment": "Rattachement", + "BLEND SURFACE": "SURFACE DE RACCORD", "BOUNDARY SURFACE": "SURFACE FRONTIÈRE", "BROWSER": "NAVIGATEUR", "Bend Line Position": "Position de la ligne de pli", "Bend Position": "Position du pli", "Bend Radius": "Rayon de pliage", + "Bend Table": "Table de pliage", "Bends": "Plis", + "Bodies": "Corps", "Body": "Corps", "Boundary": "Contour", "Bounding box": "Boîte englobante", + "CHECK": "VÉRIFIER", + "COMPONENTS": "COMPOSANTS", + "CONFIGURATIONS": "CONFIGURATIONS", + "CONSTRAIN": "CONTRAINDRE", + "CONTACT": "CONTACT", + "CONVERT": "CONVERTIR", "CSV or JSON: updates existing parameters, adds new ones": "CSV ou JSON : met à jour les paramètres existants, ajoute les nouveaux", "Capture All Positions": "Capturer toutes les positions", + "Capture Pos.": "Capturer pos.", "Catch Direction": "Direction de l'ergot", "Cells": "Cellules", "Center X": "Centre X", @@ -52,15 +69,19 @@ "Check collisions": "Vérifier les collisions", "Checked": "Vérifié", "Choose a new plane. Sketch geometry and dimensions stay unchanged in its two-dimensional coordinates.": "Choisir un nouveau plan. La géométrie et les cotes de l'esquisse restent inchangées dans ses coordonnées bidimensionnelles.", + "Choose…": "Choisir…", + "Circular": "Circulaire", "Circumference": "Circonférence", "Close draft": "Fermer le brouillon", "Collisions": "Collisions", "Colour": "Couleur", + "Comment": "Commentaire", "Component1": "Composant1", + "Config Table": "Table de config.", "Configuration": "Configuration", "Configuration rules": "Règles de configuration", - "Construction": "Construction", "Contact": "Contact", + "Contact Sets": "Jeux de contacts", "Contact sets": "Jeux de contact", "Continuity": "Continuité", "Copy Error Message": "Copier le message d'erreur", @@ -78,15 +99,17 @@ "Cube": "Cube", "Current orthographic view (1:1 mm)": "Vue orthographique actuelle (1:1 mm)", "Current perspective view": "Vue en perspective actuelle", + "Curv. Comb": "Peigne de courbure", "Curvature (G2)": "Courbure (G2)", "Curvature change (G3)": "Variation de courbure (G3)", "Customize Toolbar": "Personnaliser la barre d'outils", + "Delete": "Supprimer", "Delete all": "Tout supprimer", "Delete rule": "Supprimer la règle", "Delete the row": "Supprimer la ligne", "Delete the set": "Supprimer le jeu", - "Delete this parameter": "Supprimer ce paramètre", "Density": "Masse volumique", + "Dependents": "Dépendants", "Designs you open or save appear here.": "Les conceptions que vous ouvrez ou enregistrez apparaissent ici.", "Determined by To Object. Choose Angle to edit the angular extent.": "Déterminé par Jusqu'à l'objet. Choisir Angle pour modifier l'étendue angulaire.", "Direction": "Direction", @@ -98,49 +121,72 @@ "Drive Joint": "Piloter la liaison", "Duration": "Durée", "Edges": "Arêtes", + "Edit": "Modifier", "Edit Profile Sketch": "Modifier l'esquisse du profil", "Enable rule": "Activer la règle", "Enabled": "Activé", + "End bulge": "Renflement de fin", + "End continuity": "Continuité de fin", "Explode": "Éclater", "Explode Text": "Décomposer le texte", "Export Animation…": "Exporter l'animation…", + "Export CSV…": "Exporter CSV…", "Export Current View as DXF": "Exporter la vue actuelle en DXF", "Export Current View as DXF…": "Exporter la vue actuelle en DXF…", + "Export DXF": "Exporter en DXF", "Export DXF…": "Exporter en DXF…", + "Export JSON…": "Exporter JSON…", "Export hidden edges as dashed lines": "Exporter les arêtes cachées en tirets", + "Expression": "Expression", "Extend to meet": "Prolonger jusqu'à la rencontre", "Extents": "Étendues", + "FILES": "FICHIERS", + "FLAT": "DÉPLIÉ", "Face": "Face", "Face attachment lost": "Rattachement à la face perdu", "Faces": "Faces", "Faces / edges / vertices": "Faces / arêtes / sommets", + "Fastener": "Fixation", + "Favorites": "Favoris", "Favourite": "Favori", + "Feature": "Fonction", "Files from many CAD programs have Y up, so they open lying on their back here (Z up).": "Les fichiers de nombreux logiciels de CAO ont Y vers le haut : ils s'ouvrent donc couchés ici (Z vers le haut).", "Filter": "Filtrer", "Find in Browser": "Trouver dans le navigateur", - "Flat": "Plat", + "Finish": "Terminer", + "Flat Pattern": "Dépliage", "Flat size": "Dimensions à plat", "Follow camera (Look At sketches)": "Suivre la caméra (vue normale aux esquisses)", "Follow the camera (Look At sketches)": "Suivre la caméra (vue normale aux esquisses)", "Font": "Police", + "From Bodies": "À partir de corps", "From edges": "Arêtes de départ", "Full Length": "Longueur totale", + "Gap": "Jeu", "Grid": "Grille", + "HISTORY": "HISTORIQUE", "Height": "Hauteur", "Hidden edges": "Arêtes cachées", "Holes": "Trous", "Holes (edges on them)": "Trous (par leurs arêtes)", "Home view": "Vue d'accueil", + "Horiz./Vert.": "Horiz./Vert.", + "IMAGES": "IMAGES", + "Import…": "Importer…", "In This Design": "Dans cette conception", "In place (surfaces)": "En place (surfaces)", "In plane": "Dans le plan", "Inside": "Intérieur", "Interferes": "Interfère", + "Isocurve": "Isoparamétrique", "Issue title": "Titre du ticket", + "JOINTS": "LIAISONS", "Joint Origin1": "Origine de liaison1", "Keep (points on it)": "À conserver (points dessus)", "Keep Tools": "Conserver les outils", "Keep of the other surface": "À conserver de l'autre surface", + "LIBRARY": "BIBLIOTHÈQUE", + "LINKS": "LIENS", "Later": "Plus tard", "Leave it": "Laisser tel quel", "Legacy face attachment. Rebinding to a certified face creates an exact attachment.": "Rattachement à la face hérité. Le relier à une face certifiée crée un rattachement exact.", @@ -148,47 +194,70 @@ "Length units": "Unités de longueur", "Letter Spacing": "Espacement des lettres", "Library": "Bibliothèque", + "Library file": "Fichier de bibliothèque", "Line Spacing": "Interligne", + "Local library": "Bibliothèque locale", "Loop": "Boucle", + "MANAGE": "GÉRER", + "MATERIALS": "MATÉRIAUX", + "MODEL": "MODÈLE", + "MOTION": "MOUVEMENT", "Margin": "Marge", "Mass": "Masse", + "Mass Center": "Centre de masse", + "Matched restrictions check the final values.": "Les restrictions dont les conditions sont remplies vérifient les valeurs finales.", "Material": "Matériau", "Max": "Max", "Mid Radius": "Rayon intermédiaire", "Middle double-click": "Double-clic milieu", "Min": "Min", "Mitre": "Onglet", + "Model Parameters": "Paramètres du modèle", "Modeled": "Modélisé", "More toolbar panels": "Autres groupes de la barre d'outils", "Motion": "Mouvement", + "Move / Copy": "Déplacer / Copier", "Move Type": "Type de déplacement", + "Move down": "Déplacer vers le bas", "Move earlier": "Déplacer plus tôt", "Move later": "Déplacer plus tard", + "Move up": "Déplacer vers le haut", "Name": "Nom", "Nearest": "Corps le plus proche", + "New": "Nouveau", + "New Comp.": "Nouv. comp.", + "New Sketch": "Nouvelle esquisse", + "New rule…": "Nouvelle règle…", "New study": "Nouvelle étude", "No crash reports.": "Aucun rapport de plantage.", + "No matching appearance presets.": "Aucun préréglage d’apparence correspondant.", "No matching appearances": "Aucune apparence correspondante", "No visible bodies to export.": "Aucun corps visible à exporter.", "None": "Aucun", - "Normal to sketch": "Normale à l'esquisse", "Not available yet": "Pas encore disponible", "Notch": "Encoche", + "OUTPUT": "SORTIE", "Opacity": "Opacité", "Open GitHub draft": "Ouvrir le brouillon GitHub", + "Open local libraries in the desktop app. You can export this design's library here.": "Ouvrez les bibliothèques locales dans l’application de bureau. Vous pouvez exporter ici la bibliothèque de cette conception.", "Open-source parametric 3D CAD in Rust. Licensed MIT OR Apache-2.0.": "CAO 3D paramétrique open source en Rust. Sous licence MIT OR Apache-2.0.", + "Operator": "Opérateur", "Other side": "Autre côté", "Other surface (mutual trim)": "Autre surface (ajustement mutuel)", "Outside": "Extérieur", "Overall length": "Longueur hors tout", - "Parameter values": "Valeurs des paramètres", + "Param. Graph": "Graphe param.", + "Parameter": "Paramètre", + "Parts": "Pièces", "Pass through": "Passer par", "Path": "Trajectoire", + "Pattern": "Répétition", "Per Edge": "Par arête", "Pick the tool bodies": "Choisir les corps outils", "Picked": "Sélectionnés", "Picked point": "Point choisi", "Place at the origin instead": "Placer plutôt à l'origine", + "Plastic Rules": "Règles plastique", "Playback": "Lecture", "Plot": "Graphique", "Position": "Position", @@ -199,10 +268,11 @@ "Preview Row": "Aperçu de la ligne", "Preview leaves the current design unchanged.": "L'aperçu ne modifie pas la conception actuelle.", "Profiles/Curves": "Profils/Courbes", - "Projection": "Projection", "Quantity": "Grandeur", "RECENT": "RÉCENTS", + "REFERENCE": "RÉFÉRENCE", "RULED SURFACE": "SURFACE RÉGLÉE", + "RULES": "RÈGLES", "Radius Fit": "Ajustement du rayon", "Ratio": "Rapport", "Reattach selected face": "Rattacher la face sélectionnée", @@ -220,6 +290,8 @@ "Remove this point": "Retirer ce point", "Report a bug — review a screenshot and open a GitHub draft": "Signaler un bug — relire une capture d'écran et ouvrir un brouillon GitHub", "Reset Toolbar": "Réinitialiser la barre d'outils", + "Resize Part": "Redimensionner la pièce", + "Restore View": "Restaurer la vue", "Restore outer boundary": "Restaurer le contour extérieur", "Restore the inherited component or physical material appearance": "Rétablir l'apparence héritée du composant ou du matériau physique", "Result": "Résultat", @@ -228,18 +300,27 @@ "Reverse Direction": "Inverser la direction", "Revert": "Rétablir", "Revert All Positions": "Rétablir toutes les positions", + "Revert Pos.": "Rétablir pos.", "Revert Position": "Rétablir la position", "Review the report and screenshot before opening GitHub.": "Relisez le rapport et la capture d'écran avant d'ouvrir GitHub.", "Rim Edge": "Arête du bord", "Roll History Marker Here": "Placer le marqueur d'historique ici", "Round": "Arrondi", "Rule": "Règle", + "Rule name": "Nom de la règle", + "Rules run from top to bottom. Matched drives change effective values.": "Les règles s’exécutent de haut en bas. Les règles de pilotage dont les conditions sont remplies modifient les valeurs effectives.", + "SECTION": "COUPE", + "SURFACE QUALITY": "QUALITÉ DE SURFACE", "Save Rule": "Enregistrer la règle", + "Save View": "Enregistrer la vue", "Save the study as an animated GIF, seen as the viewport shows it": "Enregistrer l'étude en GIF animé, telle que la fenêtre d'affichage la montre", "Saved preview. Geometry is being checked before editing.": "Aperçu enregistré. La géométrie est en cours de vérification avant modification.", "Scale factor": "Facteur d'échelle", + "Scene": "Scène", "Search": "Rechercher", "Search commands": "Rechercher des commandes", + "Search this library": "Rechercher dans cette bibliothèque", + "Section": "Coupe", "Select Other: hold the left button still on the model (or right-click › Select Other…) to list everything under the cursor; click again on the same spot to select the next thing there. Double-click the middle button to go Home (Preferences › Navigation).": "Sélectionner un autre élément : maintenir le bouton gauche immobile sur le modèle (ou clic droit › Sélectionner un autre…) pour lister tout ce qui se trouve sous le curseur ; cliquer de nouveau au même endroit pour sélectionner l'élément suivant. Double-cliquer avec le bouton du milieu pour revenir à l'accueil (Préférences › Navigation).", "Select bodies (a face picks its body)": "Sélectionner des corps (une face sélectionne son corps)", "Select bodies or faces instead": "Sélectionner plutôt des corps ou des faces", @@ -247,6 +328,7 @@ "Semantic faces share their appearance across instances.": "Les faces sémantiques partagent leur apparence entre les instances.", "Send your report on GitHub": "Envoyer votre rapport sur GitHub", "Shape": "Forme", + "Sheet Rules": "Règles de tôlerie", "Show Agent Cursor": "Afficher le curseur de l'agent", "Show in folder": "Afficher dans le dossier", "Show the pointer an AI agent moves (#35)": "Afficher le pointeur déplacé par un agent IA (#35)", @@ -260,10 +342,13 @@ "Sketch points": "Points d'esquisse", "Slot width": "Largeur de rainure", "SolidCraft closed before these designs were saved. Their last autosave can be opened.": "SolidCraft s'est fermé avant l'enregistrement de ces conceptions. Leur dernier enregistrement automatique peut être ouvert.", + "Specialise": "Spécialiser", "Speed": "Vitesse", "Stand it up": "Redresser", "Stand it up: a quarter turn about X, as one Move feature you can undo.": "Redresser : un quart de tour autour de X, sous forme d'une fonction Déplacer que vous pouvez annuler.", "Stand this part up?": "Redresser cette pièce ?", + "Start bulge": "Renflement de début", + "Start continuity": "Continuité de début", "Step": "Étape", "Steps": "Étapes", "Stitch the kept pieces": "Coudre les parties conservées", @@ -296,17 +381,19 @@ "Turn off section analysis before exporting the view.": "Désactivez l'analyse de coupe avant d'exporter la vue.", "Type": "Type", "UNTRIM": "ANNULER L'AJUSTEMENT", + "Unit": "Unité", "Updating the preview": "Mise à jour de l'aperçu", "Use active author placement": "Utiliser le placement d'auteur actif", "Use fixed plane": "Utiliser un plan fixe", "Use saved fixed plane": "Utiliser le plan fixe enregistré", "Use selected face as fixed plane": "Utiliser la face sélectionnée comme plan fixe", + "User Parameters": "Paramètres utilisateur", "VIEW": "VUE", + "VIEWS": "VUES", "Value": "Valeur", "Velocity": "Vitesse", "Vertices": "Sommets", "View navigator": "Repère de navigation", - "Visible bodies only. Curves use line segments (0.01 mm tolerance).": "Corps visibles uniquement. Les courbes sont approchées par des segments de droite (tolérance de 0,01 mm).", "Volume": "Volume", "Wall": "Paroi", "Wall Location": "Position de la paroi", @@ -314,6 +401,13 @@ "When": "Quand", "Width": "Largeur", "Will fail": "Échouera", + "X angle": "Angle X", + "X distance": "Distance X", + "Y angle": "Angle Y", + "Y distance": "Distance Y", + "Z angle": "Angle Z", + "Z distance": "Distance Z", + "Zebra": "Zébrures", "angle, height": "angle, hauteur", "appearance.dielectric_ior": "Indice de réfraction (diélectrique)", "appearance.metallic": "Métallique", @@ -322,7 +416,13 @@ "appearance.roughness": "Rugosité", "appearance.surface_response": "Réponse de la surface", "browser.body_name": "Corps{number}", + "browser.calibrate_title": "Calibrer : {name}", + "browser.capture_many": "{count} composants ont été déplacés, mais leurs positions ne sont pas capturées.", + "browser.capture_note": "Capturer la position conserve la nouvelle position ; Rétablir la position restaure la précédente.", + "browser.capture_one": "Un composant a été déplacé, mais sa position n’est pas capturée.", "browser.component_name": "Composant{number}", + "browser.edit_canvas_title": "Modifier la toile : {name}", + "browser.move_title": "Déplacer : {name}", "browser.parameters": "Paramètres ({count})", "browser.precision": "Précision : {precision}", "browser.sketch_name": "Esquisse{number}", @@ -337,6 +437,7 @@ "cmd.appearance_assign": "Apparence", "cmd.appearance_library": "Bibliothèque d'apparences", "cmd.appearance_list": "Lister les apparences", + "cmd.assembly_bom": "Nomenclature", "cmd.body_rename": "Renommer le corps", "cmd.browser_group": "Nouveau groupe", "cmd.browser_move": "Déplacer des éléments du navigateur", @@ -358,10 +459,13 @@ "cmd.component_insert_design": "Insérer une conception", "cmd.component_links": "Lister les liens", "cmd.component_list": "Lister les composants", + "cmd.component_metadata": "Propriétés de la pièce", + "cmd.component_metadata_set": "Modifier les propriétés de la pièce", "cmd.component_move_bodies": "Déplacer les corps vers le composant", "cmd.component_move_sketches": "Déplacer les esquisses vers le composant", "cmd.component_paste_new": "Coller comme nouveau", "cmd.component_properties": "Propriétés physiques du composant", + "cmd.component_relink": "Relier à nouveau la source", "cmd.component_rename": "Renommer le composant", "cmd.component_revert_position": "Rétablir la position", "cmd.component_unlock": "Déverrouiller le contenu", @@ -413,6 +517,7 @@ "cmd.edit_checkpoint": "Point de restauration", "cmd.edit_restore_checkpoint": "Revenir au point de restauration", "cmd.engine_commands": "Lister les commandes", + "cmd.engine_describe": "Décrire la commande", "cmd.explode_create": "Vue éclatée", "cmd.explode_delete": "Supprimer la vue éclatée", "cmd.explode_list": "Lister les vues éclatées", @@ -445,6 +550,7 @@ "cmd.joint_drive": "Piloter les liaisons", "cmd.joint_edit": "Modifier la liaison", "cmd.joint_gear": "Engrenage", + "cmd.joint_inspect": "Inspecter la liaison", "cmd.joint_limits": "Limites de liaison", "cmd.joint_list": "Lister les liaisons", "cmd.joint_motion_link": "Lien de mouvement", @@ -603,6 +709,7 @@ "cmd.sketch_spline_fit_point": "Spline par points", "cmd.sketch_spun_profile": "Profil de révolution", "cmd.sketch_toggle_driven": "Basculer en cote pilotée", + "cmd.sketch_trim_path": "Ajuster le long du chemin", "cmd.solid_align": "Aligner", "cmd.solid_boundary_fill": "Remplissage de frontière", "cmd.solid_bounding_solid": "Solide englobant", @@ -653,7 +760,15 @@ "cmd.view_navigate": "Naviguer dans la vue", "cmd.view_rename": "Renommer la vue nommée", "cmd.view_save": "Nouvelle vue nommée", - "command name": "nom de la commande", + "color.copy": "Cliquer pour copier les valeurs de couleur", + "color.edit": "Cliquer pour modifier la couleur", + "color.gamma": "Valeurs de couleur affichées en espace gamma 0-255", + "color.hue": "Teinte", + "color.linear": "Valeurs de couleur affichées en espace linéaire 0-1", + "color.saturation_value": "Saturation et valeur", + "color.selected": "Couleur sélectionnée", + "contact.components_count": "{count} composants", + "contact.enabled_label": "activé", "coupling.gear_1": "Engrenage 1", "coupling.gear_1_pick": "Engrenage 1 (facultatif)", "coupling.gear_2": "Engrenage 2", @@ -670,6 +785,21 @@ "coupling.rack": "Crémaillère", "coupling.radius_1": "Rayon 1", "coupling.radius_2": "Rayon 2", + "crash.announce": "SolidCraft s’est fermé de façon inattendue ou a rencontré une erreur interne la dernière fois. Un rapport de plantage a été enregistré (Aide > Rapports de plantage…).", + "crash.copy_folder": "Copier le chemin du dossier", + "crash.copy_path": "Copier le chemin", + "crash.deleted": "{count} rapport(s) supprimé(s).", + "crash.detected_time": "Détecté {time} UTC", + "crash.intro": "Les rapports de plantage restent sur cet ordinateur et ne sont jamais envoyés. Signaler… ouvre un brouillon que vous relisez avant tout partage.", + "crash.kind_command": "Erreur interne dans une commande", + "crash.kind_internal": "Erreur interne", + "crash.kind_kernel": "Erreur du noyau (récupérée)", + "crash.kind_unclean": "Fermeture inattendue", + "crash.previous_session": "Une session précédente de SolidCraft s’est terminée de façon inattendue ou a rencontré une erreur interne. Les rapports de sorties anormales sont détectés au démarrage. Voir Aide > Rapports de plantage… pour plus de détails.", + "crash.replayable": "rejouable", + "crash.report": "Signaler…", + "crash.unclean_explanation": "Détecté lors d’un lancement ultérieur ; l’heure exacte de la sortie n’a pas été enregistrée. Un arrêt du système ou une interruption forcée peut aussi provoquer une sortie anormale.", + "delete.and_more": "… et {count} de plus", "dialog.bodies_count": "{count} corps", "dialog.clearance_invalid": "le jeu doit être une longueur positive ou nulle", "dialog.compute": "Calculer", @@ -677,6 +807,8 @@ "dialog.computing": "Calcul… {seconds} s", "dialog.could_not_be_checked": "non vérifiable", "dialog.custom_axis": "↖ Axe personnalisé", + "dialog.dimension_insert_hint": "Double-cliquez sur une autre cote pilotante pour insérer son nom", + "dialog.dimension_name": "Cote : {name}", "dialog.edit_title": "MODIFIER {title}", "dialog.select": "↖ Sélectionner", "dialog.selected_count": "↖ {count} sélectionné(s)", @@ -700,9 +832,30 @@ "dxf.progress.write": "Écriture du DXF (5/5)", "dxf.tolerance": "Tolérance des courbes", "dxf.tolerance_help": "Corps visibles uniquement. Les courbes sont approchées par des segments de droite. Une tolérance plus faible donne des courbes plus fines, au prix de plus de temps et de mémoire.", - "expression, e.g. 25 mm": "expression, par ex. 25 mm", + "file_load.built": "Construit jusqu’ici : {built} entités sur {total}.", + "file_load.converting": "Conversion du solide {done} sur {total}", + "file_load.inserting": "Insertion de la géométrie", + "file_load.opening": "Ouverture de la conception", + "file_load.preparing_thumbnail": "Préparation de la miniature...", + "file_load.preparing_view": "Préparation de la vue...", + "file_load.preview_note": "Aperçu enregistré. La géométrie est en cours de vérification avant modification.", + "file_load.reading": "Lecture du fichier...", + "file_load.reading_percent": "Lecture du fichier... {percent} %", + "file_load.rebuilding": "Reconstruction de l’entité {done} sur {total}", + "file_load.recovering": "Récupération de la conception", + "file_load.stopping": "Attente de l’arrêt de l’opération précédente...", + "file_load.waiting": "En attente d’une opération sur fichier", "fits the face, e.g. M8": "adapté à la face, par ex. M8", "from the rule": "selon la règle", + "help.apache": "Licence Apache 2.0", + "help.attributions": "Attributions (ATTRIBUTION.md)", + "help.build": "Version {version} · commit {commit} · compilée le {date}", + "help.font_details": "L’interface utilise les polices intégrées d’egui (Ubuntu Light et Hack, sous les licences Ubuntu Font Licence et MIT/Bitstream Vera ; Noto Emoji et la police d’icônes emoji, sous OFL et MIT). Le texte des esquisses utilise Liberation Sans (SIL OFL 1.1). Le pack de polices facultatif de The Crafting Apps, craft-fonts (BIZ UDPGothic, Shippori Mincho, BIZ UDMincho, Noto Sans CJK SC, Noto Sans Arabic ; SIL OFL 1.1), n’est pas inclus dans les versions de SolidCraft.", + "help.fonts": "Polices", + "help.licences": "Licences", + "help.mit": "Licence MIT", + "help.notice": "NOTICE", + "help.third_party": "Licences tierces", "home.documentation": "Documentation", "home.in_this_browser": "dans ce navigateur", "home.missing": "introuvable", @@ -728,13 +881,51 @@ "install.menu": "Installer l'app…", "install.steps_intro": "Safari installe les apps web depuis ses propres menus :", "install.title": "Installer SolidCraft", + "issue.body_label": "Texte du rapport", + "issue.note_image_copied": "Collez l’image dans le brouillon GitHub, ou enregistrez le PNG si la copie d’image n’est pas disponible.", + "issue.note_opened": "Relisez le brouillon GitHub et joignez la capture d’écran. Le bouton Submit new issue de GitHub le publie.", + "issue.note_opened_copied": "Rapport copié. Collez-le dans le brouillon GitHub, joignez la capture d’écran, puis cliquez sur Submit new issue sur GitHub.", + "issue.note_removed": "Capture d’écran retirée de ce brouillon.", + "issue.note_report_copied": "Rapport copié. Collez-le dans le brouillon GitHub si nécessaire.", + "issue.note_save_failed": "Impossible d’enregistrer la capture d’écran : {error}", + "issue.note_saved": "Capture d’écran enregistrée. Joignez le PNG dans le brouillon GitHub.", + "issue.save_screenshot": "Enregistrer la capture d’écran…", "joint.from_bodies_hint": "Chaque corps sélectionné passe dans un nouveau composant à lui et reste où il est.", "joint.one_body": "Les deux sélections sont sur {body}. Choisissez la seconde sur une autre pièce.", "joint.one_component": "Ces pièces sont des corps d'un même composant : {bodies}. Une liaison déplace un composant par rapport à un autre, chaque pièce a donc besoin de son propre composant.", + "keymap.command_id": "ID de commande", + "keymap.empty": "Aucune commande correspondante", + "keymap.use_anyway": "Utiliser quand même {key} ici", + "manage.appearance_hint": "Choisissez une apparence pour la sélection ou faites glisser un échantillon sur un corps ou une face.", + "manage.assign_hint": "Sélectionnez des corps et choisissez leur règle de conception plastique.", + "manage.config_hint": "Modifiez les lignes, colonnes et règles de configuration, puis activez une ligne ou affichez son aperçu.", + "manage.empty": "Aucune ligne correspondante.", + "manage.material_hint": "Sélectionnez des corps et choisissez leur matériau physique.", + "manage.parameters_hint": "Modifiez les expressions et les unités. Les modifications s’appliquent avec Entrée ou lorsque vous quittez un champ.", + "manage.rules_hint": "Choisissez une règle à modifier ou créez-en une. Confirmez pour enregistrer la règle.", + "measure.at": "À", + "measure.item": "Élément {number}", + "messages.ago_h": "il y a {n} h", + "messages.ago_min": "il y a {n} min", + "messages.ago_s": "il y a {n} s", + "messages.chip_hint": "Cliquer pour voir tous les messages de cette session", + "messages.clear": "Effacer", + "messages.copy_all": "Tout copier", + "messages.menu": "Messages…", + "messages.none": "Aucun message pour l’instant.", + "messages.title": "Messages", "motion.checked_to": "Vérifié jusqu'à l'étape {step} seulement : la vérification a épuisé son budget de calcul", "motion.collision": "{a} · {b} : étapes {steps}", + "motion.delete_key": "Supprimer l’image clé", "motion.duration_hint": "secondes (vide : par étape)", + "motion.key_here": "Placer une image clé ici", + "motion.key_here_hint": "Ajouter une image clé à cette étape avec la valeur actuelle de la liaison", "motion.no_collisions": "Aucune collision au cours de l'étude", + "motion.step_back": "Étape précédente", + "motion.step_forward": "Étape suivante", + "motion.to_end": "À la fin", + "motion.to_start": "Au début", + "motion.track_name": "Piste {number}", "nav.touchpad.help": "Maintenir Maj et déplacer le pointeur pour faire un panoramique ; maintenir Alt/Option et le déplacer pour orbiter. Aucun bouton de souris n'est nécessaire. Le défilement vertical zoome.", "nav.touchpad.label": "Pavé tactile", "nav.touchpad.orbit": "Orbite (maintenir Alt/Option et déplacer ; sans bouton de souris)", @@ -743,13 +934,13 @@ "nav.touchpad.zoom": "Zoom (défilement vertical ou pincement)", "needs two joints": "nécessite deux liaisons", "new configuration": "nouvelle configuration", - "new name": "nouveau nom", "new parameter": "nouveau paramètre", "no hole": "sans perçage", "no interference": "aucune interférence", "no joint that moves yet": "aucune liaison mobile pour l'instant", "no picture": "aucune image", "none": "aucun", + "parts.automatic_name": "automatique", "pattern.alignment_2": "Alignement 2", "pattern.alignment_hint": "La quantité inclut l’original. Le centrage répartit les copies de chaque côté ; si la quantité est paire, l’inversion choisit le côté qui reçoit la copie supplémentaire.", "pattern.direction_1": "Direction 1", @@ -757,12 +948,19 @@ "pattern.flip_direction": "Inverser la direction", "pick a hole to seat it, or OK places it at the origin": "choisir un trou pour la loger, ou OK la place à l'origine", "pick one or two vertices, edges or faces": "choisir un ou deux sommets, arêtes ou faces", + "prefs.cpu": "CPU (logiciel)", + "prefs.minutes_suffix": " min", + "properties.title": "Propriétés : {name}", + "recovery.days_ago": "il y a {count} j", + "recovery.detail": "{file} · {features} entités · enregistrement auto {when}", + "recovery.hours_ago": "il y a {count} h", + "recovery.just_now": "à l’instant", + "recovery.min_ago": "il y a {count} min", + "recovery.never_saved": "jamais enregistré", "render.background": "Arrière-plan de la scène", "render.fit": "Cadrer le produit", - "render.image_cancel": "Annuler le rendu", "render.image_cancelled": "Rendu annulé", "render.image_cancelling": "Annulation", - "render.image_check": "Vérifier la demande de rendu", "render.image_completed": "Image prête à exporter", "render.image_encoding": "Encodage du PNG", "render.image_export": "Exporter en PNG", @@ -809,6 +1007,19 @@ "sample.plate.name": "Plaque d'exemple", "sample.vents.about": "Rainures en réseau rectangulaire : lignes, colonnes et pas sont des paramètres", "sample.vents.name": "Plaque d'aération", + "search.command_keys": "Entrée exécuter Maj+Entrée exécuter et garder ouvert Échap fermer", + "search.commands": "Commandes", + "search.design": "Dans cette conception", + "search.feature": "Entité", + "search.invalid": "Non valide", + "search.keys": "↑ ↓ choisir Entrée exécuter Tab remplir le nom Échap fermer", + "search.no_match": "Aucune commande ne correspond à « {query} »", + "search.parameter": "Paramètre", + "search.recent": "Récents", + "search.run": "Exécuter la commande", + "search.suggest": "Vouliez-vous dire {label} ?", + "search.try": "Saisissez un nom de commande, une entité de cette conception ou un paramètre. Pour exécuter une commande avec des valeurs, saisissez son id et un objet JSON : {example}", + "search.valid": "Valide", "settings.display_quality_note": "Les niveaux plus fins affichent plus lisses les faces et arêtes courbes, mais leur maillage prend plus de temps. Seule la vue change, jamais la conception ni les exports.", "settings.frame_rate_note": "Affiche les images par seconde dans le coin inférieur droit de la vue. Tant qu'elle est activée, la vue est redessinée en continu.", "settings.measure_axis_distances": "Afficher les cotes X/Y/Z", @@ -819,17 +1030,30 @@ "settings.reset_intro": "Ces réglages ne fonctionnent pas sur cet ordinateur et empêcheraient SolidCraft de démarrer ; ils ont donc été modifiés :", "settings.reset_title": "Des réglages ont été modifiés", "settings.supersampling_note": "Dessine la vue à une résolution plus élevée puis la réduit : arêtes, lignes et grille plus lisses sur les écrans de définition inférieure à la 4K. Cela coûte du temps GPU : environ 2,25× plus de pixels à 1,5× et 4× plus à 2×.", + "shortcut.json_error": "les paramètres doivent être au format JSON : {error}", + "shortcut.no_command": "la commande `{id}` n’existe pas ; le texte avant le JSON doit être un ID de commande", + "shortcut.pin": "Épingler en haut de la boîte S", + "shortcut.unpin": "Désépingler", "sketch.degrees_of_freedom": "{count} degrés de liberté", + "sketch.dof_left": "{count} degrés de liberté restants", + "sketch.dof_left_one": "{count} degré de liberté restant", "sketch.draw_curves": "Dessiner en {linetype}", "sketch.make_selection": "Convertir la sélection en {linetype}", "sketch.open_ends": "{count} ouvertes", "sketch.untied_ends": "{count} sans coïncidence", + "sketch_panel.attached": "Attaché à {body} / {path}", + "sketch_panel.author": "Placement d’origine : {path}", + "sketch_panel.dimension_hint": "Saisissez une valeur ou une expression, puis appuyez sur OK.", + "sketch_panel.move_hint": "Saisissez les distances et un angle, puis appuyez sur OK.", + "sketch_panel.redefine_title": "{command} : {name}", + "sketch_panel.sheet_attachment": "Attaché à une face plane d’un corps de tôlerie ; suit ce panneau lorsque la tôle change.", + "sketch_panel.text_hint": "Modifiez le texte et son placement, puis appuyez sur OK.", + "sketch_panel.use_plane": "Utiliser le plan {plane}", "sketch_text.align_center": "Centre", "sketch_text.align_left": "Gauche", "sketch_text.align_right": "Droite", "sketch_text.bold": "Gras", "sketch_text.builtin_font": "{family} (intégrée)", - "sketch_text.font_search": "Rechercher des polices", "sketch_text.italic": "Italique", "sketch_text.loading_fonts": "Recherche des polices installées…", "sketch_text.on_path": "Le texte suit sa trajectoire : la courbe le positionne", @@ -850,6 +1074,7 @@ "timeline.ungroup": "Supprimer les dossiers de fonctions", "to the face": "jusqu'à la face", "to the next face": "jusqu'à la face suivante", + "toolbar.customize_note": "Onglet {tab}. Cochez une commande pour lui attribuer un bouton dans la barre d’outils. Vous pouvez aussi faire glisser une ligne du menu déroulant d’un panneau vers la barre d’outils, retirer un bouton en le faisant glisser hors de la barre ou utiliser l’épingle d’une ligne du menu déroulant.", "toolbar.image": "IMAGE", "toolbar.render": "RENDU", "toolbar.render_scene": "SCÈNE", @@ -858,11 +1083,11 @@ "trace.stopped_by_loop": "Se termine à l'échantillon {sample} : la boucle passant par {joint} ne peut plus se fermer", "ui.1_degree_of_freedom": "1 degré de liberté", "ui.3d_mouse_speed": "Vitesse de la souris 3D", - "ui.3d_mouse_windows": "Souris 3D", "ui.3d_sketch": "Esquisse 3D", - "ui.about": "À propos", "ui.activate": "Activer", "ui.active_component": "Composant actif", + "ui.add_configuration": "Ajouter une configuration", + "ui.add_parameter": "Ajouter un paramètre", "ui.agent_chat": "Chat de l'agent", "ui.agent_chat_add": "Joindre des fichiers", "ui.agent_chat_add_file": "Choisir un fichier…", @@ -904,6 +1129,7 @@ "ui.agent_chat_file_error": "{name} : {error}", "ui.agent_chat_file_heic": "{name} : les images HEIC ne peuvent pas être lues ici ; les exporter d'abord en JPEG ou PNG", "ui.agent_chat_file_importing": "Importation dans la conception…", + "ui.agent_chat_file_kinds": "{name} : vous pouvez joindre des images (PNG, JPEG, GIF, WebP, BMP, TIFF), des fichiers texte (SVG compris) et des fichiers CAO (STEP, IGES, FreeCAD, Rhino, STL, 3MF, OBJ, glTF)", "ui.agent_chat_file_loading": "Lecture du fichier…", "ui.agent_chat_file_not_a_file": "{name} : n'est pas un fichier", "ui.agent_chat_file_not_a_picture": "{name} : n'est pas une image", @@ -926,7 +1152,7 @@ "ui.agent_chat_model_tip": "Le modèle utilisé par l'agent. Votre choix est mémorisé pour cet agent.", "ui.agent_chat_new": "Nouveau chat", "ui.agent_chat_new_confirm": "Démarrer un nouveau chat ? Le chat actuel sera effacé.", - "ui.agent_chat_new_yes": "Nouveau chat", + "ui.agent_chat_next_picture": "Image suivante", "ui.agent_chat_no_cli": "solidcraft-cli est introuvable à côté de l'application : l'agent ne peut donc pas accéder à la conception.", "ui.agent_chat_no_control": "Le point d'accès du chat de l'agent n'a pas démarré : l'agent ne peut donc pas accéder à la conception.", "ui.agent_chat_no_images": "Cet agent n'accepte pas les images", @@ -942,6 +1168,7 @@ "ui.agent_chat_placeholder": "Demander à l'agent de modifier la conception…", "ui.agent_chat_placeholder_busy": "Mettre un message en file d'attente pour quand l'agent aura terminé (Ctrl+Enter : envoyer maintenant)", "ui.agent_chat_pop_out": "Ouvrir dans une fenêtre séparée, déplaçable vers un autre écran", + "ui.agent_chat_previous_picture": "Image précédente", "ui.agent_chat_privacy": "Rien n'est envoyé ailleurs qu'à l'agent que vous lancez, sous votre propre compte.", "ui.agent_chat_privacy_note": "SolidCraft n'envoie rien nulle part : l'agent que vous lancez dialogue avec son propre service, sous votre propre compte. SolidCraft ne voit ni ne stocke jamais de clé ni de mot de passe.", "ui.agent_chat_queue": "Mettre en file", @@ -997,6 +1224,7 @@ "ui.ai_bad_url": "Saisir une URL commençant par http:// ou https://", "ui.ai_base_url": "URL de base", "ui.ai_button": "IA", + "ui.ai_command_hint": "my-agent --acp", "ui.ai_copy_suffix": "copie", "ui.ai_custom_url": "URL personnalisée", "ui.ai_default": "Par défaut", @@ -1017,8 +1245,10 @@ "ui.ai_mode_edits_note": "Les commandes de modélisation s'exécutent sans demander ; l'enregistrement, l'ouverture, l'exportation et les autres actions sur les fichiers ou destructrices demandent toujours.", "ui.ai_mode_global": "Comme défini ci-dessus", "ui.ai_model": "Modèle", + "ui.ai_model_hint": "qwen3:14b", "ui.ai_modes_scope": "Ces réglages concernent les outils de SolidCraft. Les outils propres à un agent (son shell, ses modifications de fichiers) suivent le mode de l'agent, que vous choisissez dans l'en-tête du panneau de chat lorsque l'agent propose des modes.", "ui.ai_name": "Nom", + "ui.ai_name_hint": "Mon agent", "ui.ai_need_command": "Saisir la commande qui lance l'agent", "ui.ai_need_model": "Saisir le nom du modèle", "ui.ai_no_answer": "L'agent n'a pas répondu à temps", @@ -1049,6 +1279,7 @@ "ui.ai_toolbar_button": "Afficher le bouton dans la barre d'outils", "ui.ai_toolbar_button_note": "Le bouton IA à l'extrémité droite de la barre d'outils. Ctrl+Shift+A et le menu Vue ouvrent toujours le panneau.", "ui.ai_undo_tip": "Annuler tout ce que l'agent a modifié pour ce message, en une seule étape", + "ui.ai_url_hint": "https://example.com/v1", "ui.all": "Tout", "ui.ambient_occlusion": "Occlusion ambiante", "ui.ambient_occlusion_help": "Ombrage doux aux jonctions des surfaces opaques. Nécessite la vue GPU.", @@ -1062,7 +1293,8 @@ "ui.anti_aliasing": "Anticrénelage", "ui.apply": "Appliquer", "ui.arc": "Arc", - "ui.assemble": "Assembler", + "ui.assistant": "Assistant", + "ui.assistant_waiting": "{count} approbations en attente", "ui.autosave_every": "Enregistrement automatique toutes les", "ui.axes": "Axes", "ui.axis": "Axe", @@ -1073,6 +1305,11 @@ "ui.bodies_all_if_none": "Corps (tous si aucun)", "ui.box": "Boîte", "ui.break": "Fractionner", + "ui.browser_bodies_one": "{count} corps", + "ui.browser_bodies_other": "{count} corps", + "ui.browser_collapse": "Réduire le navigateur", + "ui.browser_expand": "Développer le navigateur", + "ui.browser_title": "Navigateur", "ui.calibrate": "Étalonner", "ui.cancel": "Annuler", "ui.canvases": "Canevas", @@ -1082,7 +1319,6 @@ "ui.chamfer": "Chanfrein", "ui.chamfer_type": "Type de chanfrein", "ui.change_workspace": "Changer d'espace de travail", - "ui.chord_length": "Longueur de corde", "ui.circle": "Cercle", "ui.circular_pattern": "Réseau circulaire", "ui.clear": "Effacer", @@ -1115,11 +1351,9 @@ "ui.command_done": "{command} terminé", "ui.command_palette_hint": "Tapez une commande, ex. {example} — ou S pour chercher", "ui.concentric": "Concentricité", - "ui.configurations": "Configurations", "ui.conic_curve": "Courbe conique", "ui.constant": "Constant", "ui.constraints_conflict": "Contraintes en conflit", - "ui.construct": "Construire", "ui.construction": "Construction", "ui.context_menu": "Menu contextuel", "ui.continuity_g0": "G0 angle vif", @@ -1145,7 +1379,6 @@ "ui.cylinder": "Cylindre", "ui.dark": "Sombre", "ui.default_modelling_orientation": "Orientation de modélisation par défaut", - "ui.degrees_of_freedom": "degrés de liberté", "ui.delete": "Supprimer", "ui.depth": "Profondeur", "ui.design": "Conception", @@ -1187,7 +1420,6 @@ "ui.equivalent_radius": "Rayon équivalent", "ui.expand": "Développer", "ui.exportDxf": "Exporter en DXF…", - "ui.export_ellipsis": "Exporter...", "ui.export_ellipsis_keymap": "Exporter…", "ui.export_keymap_tip": "Raccourcis, favoris de la boîte S et barre d'outils, dans un fichier", "ui.extend": "Prolonger", @@ -1211,6 +1443,7 @@ "ui.frame_rate": "Fréquence d'images", "ui.front": "Avant", "ui.fully_constrained": "Entièrement contrainte", + "ui.function": "Fonction", "ui.general": "Général", "ui.graphics": "Graphisme", "ui.graphics_custom": "Personnalisé", @@ -1277,7 +1510,6 @@ "ui.heading_sheet_metal": "TÔLERIE", "ui.heading_shell": "COQUE", "ui.heading_sketch": "ESQUISSE", - "ui.heading_sketch_palette": "PALETTE D'ESQUISSE", "ui.heading_sketch_scale": "ÉCHELLE D'ESQUISSE", "ui.heading_solid": "SOLIDE", "ui.heading_sphere": "SPHÈRE", @@ -1296,6 +1528,7 @@ "ui.hideOrigin": "Masquer l'origine", "ui.hidePlanes": "Masquer les plans", "ui.hideProfile": "Masquer le profil", + "ui.history_title": "Historique", "ui.hole": "Perçage", "ui.hole_tap_type": "Type de taraudage", "ui.hole_type": "Type de perçage", @@ -1315,11 +1548,12 @@ "ui.length_decimals": "Décimales des longueurs", "ui.light": "Clair", "ui.line": "Ligne", - "ui.linetype": "Type de ligne", "ui.lock": "Verrouiller", "ui.loft": "Lissage", "ui.look_at": "Vue normale", "ui.look_at_anim_desc": "Vue d'axe, Vue normale, Accueil et Cadrer", + "ui.manipulator_free_alt": "Glissement libre du manipulateur aussi avec Alt/Option", + "ui.manipulator_free_alt_tip": "Activé : Alt/Option ou Ctrl/Cmd sur les flèches d’extrusion / du manipulateur désactive l’accrochage aux valeurs. Désactivé : Ctrl/Cmd uniquement.", "ui.manufacture": "Fabrication", "ui.material_review.axes": "Axes locaux au matériau ; aucune orientation du corps attribuée.", "ui.material_review.claims": "Les sources et licences sont des déclarations non vérifiées. Les valeurs absentes restent inconnues.", @@ -1347,10 +1581,8 @@ "ui.mesh_format_3mf": "3MF", "ui.mesh_format_3mf_tagged": "3MF avec étiquettes de faces", "ui.mesh_format_stl": "STL", - "ui.midpoint": "Point milieu", "ui.mirror": "Symétrie", "ui.mirror_line": "Ligne de symétrie", - "ui.modify": "Modifier", "ui.move": "Déplacer", "ui.multiple": "Multiple", "ui.named_views": "Vues nommées", @@ -1371,7 +1603,6 @@ "ui.offset_plane": "Plan décalé", "ui.one_side": "Un côté", "ui.open": "Ouvrir", - "ui.open_ellipsis": "Ouvrir...", "ui.open_ends_tip": "Ne touche rien", "ui.open_preferences": "Ouvrir les préférences", "ui.open_recent": "Ouvrir un fichier récent", @@ -1381,12 +1612,14 @@ "ui.orbit_around": "Orbite autour de", "ui.orientation": "Orientation", "ui.origin": "Origine", - "ui.palette_points": "Points", - "ui.palette_profile": "Profil", + "ui.palette_construction_mode": "Mode construction (X)", + "ui.palette_more": "Plus", + "ui.palette_sketch_options": "Options d’esquisse", "ui.pan": "Panoramique", "ui.pan_zoom_orbit": "Panoramique, zoom, orbite", "ui.parallel": "Parallélisme", "ui.parameters": "Paramètres", + "ui.part_size_shared": "Reconstruit la pièce en remplaçant les entités ajoutées. Toutes les occurrences de ce composant sont mises à jour.", "ui.paste": "Coller", "ui.path": "Trajectoire", "ui.pattern_on_path": "Réseau sur trajectoire", @@ -1398,6 +1631,12 @@ "ui.placement": "Placement", "ui.plane": "Plan", "ui.plane_at_angle": "Plan incliné", + "ui.plugins": "Modules externes", + "ui.plugins_desktop": "Les modules externes sont disponibles dans l’application de bureau.", + "ui.plugins_empty": "Aucun module externe installé.", + "ui.plugins_note": "Chaque module est un dossier dans {path} contenant un fichier plugin.json. SolidCraft lit ce fichier et n’exécute aucun code du dossier. Désactiver un module le laisse installé.", + "ui.plugins_skipped": "{count} dossier(s) illisible(s).", + "ui.plugins_version": "{version}", "ui.point": "Point", "ui.point_under_the_cursor": "Point sous le curseur", "ui.points": "Points", @@ -1416,13 +1655,17 @@ "ui.quit": "Quitter", "ui.radial_context_menu": "Menu contextuel radial", "ui.radius": "Rayon", - "ui.radius_type": "Type de rayon", "ui.rail": "Rail", "ui.rail_fit": "Ajustement au rail", "ui.reachable": "Accessible", "ui.rectangle": "Rectangle", "ui.rectangular_pattern": "Réseau rectangulaire", "ui.redo": "Rétablir", + "ui.relink_design_changed": "L’assemblage a changé pendant le choix d’une source. Relancez Relier à nouveau la source.", + "ui.relink_done": "Source reliée à nouveau pour toutes les instances.", + "ui.relink_not_linked": "Ce composant n’est lié à aucune conception source.", + "ui.relink_select_one": "Sélectionnez d’abord un composant lié ou l’une de ses instances.", + "ui.relink_source_all": "Relier à nouveau la source (toutes les instances)…", "ui.removeFromToolbar": "Retirer de la barre d'outils", "ui.removeSection": "Retirer la coupe", "ui.render": "Rendu", @@ -1438,10 +1681,12 @@ "ui.reverse_horizontal_pan_tip": "Le défilement horizontal à deux doigts et la molette latérale font le panoramique dans l'autre sens", "ui.reverse_zoom_direction": "Inverser le sens du zoom", "ui.revolve": "Révolution", + "ui.ribbon_exit": "Quitter", + "ui.ribbon_pin_footer": "Les commandes épinglées s’affichent dans le ruban. Survolez une ligne pour l’épingler ou la détacher.", + "ui.ribbon_workspace": "Espace de travail", "ui.right": "Droite", "ui.save": "Enregistrer", "ui.save_as": "Enregistrer sous", - "ui.save_as_ellipsis": "Enregistrer sous...", "ui.save_mesh_no_slicer": "Aucun slicer trouvé : choisissez Personnalisé… et sélectionnez votre slicer, ou désactivez Envoyer au slicer", "ui.save_mesh_pick_bodies": "Sélectionner les corps à enregistrer", "ui.save_mesh_temp_failed": "Impossible de créer {folder} : {error}", @@ -1454,8 +1699,10 @@ "ui.select": "Sélectionner", "ui.selectOther": "Sélectionner un autre…", "ui.selectTangentChain": "Sélectionner la chaîne tangente", - "ui.select_other_hint": "Sélectionner un autre élément : maintenir le bouton gauche immobile sur le modèle (ou clic droit › Sélectionner un autre…) pour lister tout ce qui se trouve sous le curseur ; cliquer de nouveau au même endroit pour sélectionner l'élément suivant.", "ui.selection": "Sélection", + "ui.selection_modifiers": "Modificateurs de sélection", + "ui.selection_shift_add_only": "Maj+clic ajoute sans retirer", + "ui.selection_shift_add_only_tip": "Activé : Maj ajoute des éléments, Ctrl/Cmd bascule. Désactivé (par défaut) : Maj et Ctrl/Cmd basculent tous deux.", "ui.send": "Envoyer", "ui.send_to_slicer": "Envoyer au slicer", "ui.sent_to_slicer": "Envoyé à {slicer}", @@ -1471,7 +1718,6 @@ "ui.show_constraints": "Contraintes", "ui.show_construction_geometries": "Géométries de construction", "ui.show_dimensions": "Cotes", - "ui.show_points": "Afficher les points", "ui.show_profile": "Afficher le profil", "ui.show_projected_geometries": "Géométries projetées", "ui.simple": "Simple", @@ -1480,8 +1726,8 @@ "ui.sketch": "Esquisse", "ui.sketch_dimension": "Cote d'esquisse", "ui.sketch_grid": "Grille d'esquisse", + "ui.sketch_modifiers": "Modificateurs d’esquisse", "ui.sketch_scale": "Échelle d'esquisse", - "ui.sketch_status": "État de l'esquisse", "ui.sketches": "Esquisses", "ui.slice": "Trancher", "ui.slicer": "Slicer", @@ -1527,12 +1773,14 @@ "ui.stand_up_tip": "Après l'ouverture d'un fichier STEP ou IGES avec Z vers le haut, proposer un quart de tour autour de X", "ui.start": "Début", "ui.start_over": "Recommencer", - "ui.start_radius": "Rayon initial", + "ui.start_page": "Page d’accueil", "ui.stretch": "Étirer", "ui.supersampling": "Suréchantillonnage (SSAA)", "ui.supersampling_adaptive": "Seulement quand la vue est immobile", "ui.supersampling_off": "Désactivé (1×)", "ui.suppress": "Désactiver", + "ui.suppress_auto_snap": "Supprimer l’accrochage auto pendant le dessin / le déplacement", + "ui.suppress_auto_snap_note": "Par défaut : Ctrl/Cmd ou Alt/Option suppriment chacun l’accrochage d’esquisse. Choisissez une seule touche pour restreindre.", "ui.sweep": "Balayage", "ui.sweep_follow_direction": "Suivre une direction", "ui.sweep_keep_as_drawn": "Garder tel que dessiné", @@ -1575,13 +1823,24 @@ "ui.untitled": "Sans titre", "ui.up_axis_note": "Axe orienté vers le haut dans les vues (vue d'axe, Accueil, Vue normale). Les conceptions ne sont pas modifiées.", "ui.updateToCurrentView": "Mettre à jour avec la vue actuelle", - "ui.variable": "Variable", "ui.view_centre": "Centre de la vue", "ui.visual_shaded_hidden_edges": "Ombré avec arêtes cachées", "ui.visual_shaded_with_edges": "Ombré avec arêtes", "ui.visual_style": "Style visuel", "ui.visual_wireframe": "Filaire", "ui.workspace": "espace de travail", + "ui.workspace_animation_description": "Vues éclatées, études de mouvement et storyboards", + "ui.workspace_available": "Disponible", + "ui.workspace_current": "Actuel", + "ui.workspace_design_description": "Esquisser, modéliser, assembler et inspecter", + "ui.workspace_design_tabs": "Modèle · Surface · Assemblage · Insérer · Inspecter · Gérer · Vue", + "ui.workspace_drawing_description": "Mises en plan 2D avec vues, cotes et cartouches", + "ui.workspace_footer": "Chaque espace de travail s’applique à la même conception, au même historique et à la même sélection ; seuls les onglets du ruban changent. Le sélecteur est verrouillé pendant la modification d’une esquisse ou d’une entité.", + "ui.workspace_manufacture_description": "Tranchage, parcours d’outil et configuration", + "ui.workspace_planned": "Prévu", + "ui.workspace_render_description": "Aperçu du produit, paramètres de scène et images rendues", + "ui.workspace_render_tabs": "Scène · Image", + "ui.workspace_simulation_description": "Charges, contraintes et résultats", "ui.x_distance": "Distance X", "ui.y_distance": "Distance Y", "ui.y_up": "Y vers le haut", @@ -1591,7 +1850,6 @@ "ui.zoom_to_the_cursor": "Zoom vers le curseur", "update.available": "SolidCraft {version} est disponible", "update.button": "Mettre à jour", - "update.button_tip": "SolidCraft {version} est disponible", "update.button_version": "Mettre à jour vers {version}", "update.check_automatically": "Rechercher automatiquement les mises à jour", "update.check_now": "Vérifier maintenant", @@ -1623,5 +1881,6 @@ "update.title": "Mise à jour disponible", "update.up_to_date": "SolidCraft est à jour.", "update.update_now": "Mettre à jour maintenant", - "update.you_have": "Vous avez la version {version}." + "update.you_have": "Vous avez la version {version}.", + "↑ ↓ choose · Enter / Tab complete · Esc dismiss": "↑ ↓ choisir · Entrée / Tab compléter · Échap fermer" } diff --git a/assets/locales/gl.json b/assets/locales/gl.json index 2d5ec53fb..18eecaf83 100644 --- a/assets/locales/gl.json +++ b/assets/locales/gl.json @@ -3,10 +3,14 @@ "1. Open GitHub draft below, then paste the report copied to your clipboard.": "1. Abre o borrador de GitHub de abaixo e pega o informe copiado no portapapeis.", "1. Open GitHub draft below. Your title and report will be filled in.": "1. Abre o borrador de GitHub de abaixo. O título e o informe encheranse automaticamente.", "2. Attach your screenshot: copy and paste it, or save and upload the PNG.": "2. Achega a captura de pantalla: cópiaa e pégaa, ou gárdaa e sube o PNG.", + "2D": "2D", "3. Click Submit new issue on GitHub to send your report.": "3. Preme Submit new issue en GitHub para enviar o informe.", "A new configuration, a copy of the active one": "Unha configuración nova, copia da activa", - "AI": "IA", + "ARRANGE": "ORGANIZAR", "About SolidCraft": "Acerca de SolidCraft", + "Acceleration": "Aceleración", + "Access": "Acceso", + "Actions": "Accións", "Active": "Activa", "Active rule": "Regra activa", "Add": "Engadir", @@ -14,8 +18,11 @@ "Add Mid Radius": "Engadir raio medio", "Add Row": "Engadir fila", "Add condition": "Engadir condición", + "Add or edit rule": "Engadir ou editar unha regra", + "Against": "Contra", "Alignment": "Aliñamento", "All Sketch Points": "Todos os puntos do bosquexo", + "All components": "Todos os compoñentes", "All open designs": "Todos os deseños abertos", "Allowed expressions, separated by semicolons": "Expresións permitidas, separadas por punto e coma", "Also deletes": "Tamén elimina", @@ -25,19 +32,33 @@ "Applied Radius": "Raio aplicado", "Apply To": "Aplicar a", "Apply to selection": "Aplicar á selección", + "Apply your appearance first. Exports assigned appearances and materials created in this design.": "Aplique primeiro a aparencia. Exporta as aparencias asignadas e os materiais creados neste deseño.", "Arc length": "Lonxitude do arco", "Area": "Área", + "As-Built": "Tal como se construíu", + "Assign Rule": "Asignar regra", "Attachment": "Ancoraxe", + "BLEND SURFACE": "SUPERFICIE DE UNIÓN", + "BOUNDARY SURFACE": "SUPERFICIE DE CONTORNO", "BROWSER": "NAVEGADOR", "Bend Line Position": "Posición da liña de dobra", "Bend Position": "Posición da dobra", "Bend Radius": "Raio de dobra", + "Bend Table": "Táboa de dobras", "Bends": "Dobras", + "Bodies": "Corpos", "Body": "Corpo", "Boundary": "Contorno", "Bounding box": "Caixa delimitadora", + "CHECK": "COMPROBAR", + "COMPONENTS": "COMPOÑENTES", + "CONFIGURATIONS": "CONFIGURACIÓNS", + "CONSTRAIN": "RESTRINXIR", + "CONTACT": "CONTACTO", + "CONVERT": "CONVERTER", "CSV or JSON: updates existing parameters, adds new ones": "CSV ou JSON: actualiza os parámetros existentes e engade os novos", "Capture All Positions": "Capturar todas as posicións", + "Capture Pos.": "Capt. pos.", "Catch Direction": "Dirección de captura", "Cells": "Celas", "Center X": "Centro X", @@ -48,15 +69,20 @@ "Check collisions": "Comprobar colisións", "Checked": "Marcado", "Choose a new plane. Sketch geometry and dimensions stay unchanged in its two-dimensional coordinates.": "Escolle un plano novo. A xeometría e as cotas do bosquexo mantéñense nas súas coordenadas bidimensionais.", + "Choose…": "Escoller…", + "Circular": "Circular", "Circumference": "Circunferencia", "Close draft": "Pechar o borrador", "Collisions": "Colisións", "Colour": "Cor", + "Comment": "Comentario", "Component1": "Compoñente1", + "Config Table": "Táboa de configs.", "Configuration": "Configuración", "Configuration rules": "Regras de configuración", - "Construction": "Construción", "Contact": "Contacto", + "Contact Sets": "Conxuntos de contacto", + "Contact sets": "Conxuntos de contacto", "Continuity": "Continuidade", "Copy Error Message": "Copiar a mensaxe de erro", "Copy Warning Message": "Copiar a mensaxe de aviso", @@ -69,69 +95,98 @@ "Counterbore depth": "Profundidade do avellanado cilíndrico", "Countersink angle": "Ángulo do avellanado cónico", "Create Issue — review draft": "Crear incidencia — revisar o borrador", + "Cross curves": "Curvas transversais", "Cube": "Cubo", "Current orthographic view (1:1 mm)": "Vista ortográfica actual (1:1 mm)", "Current perspective view": "Vista en perspectiva actual", + "Curv. Comb": "Peite de curv.", "Curvature (G2)": "Curvatura (G2)", "Curvature change (G3)": "Cambio de curvatura (G3)", "Customize Toolbar": "Personalizar a barra de ferramentas", + "Delete": "Eliminar", "Delete all": "Eliminar todo", "Delete rule": "Eliminar a regra", "Delete the row": "Eliminar a fila", "Delete the set": "Eliminar o conxunto", - "Delete this parameter": "Eliminar este parámetro", "Density": "Densidade", + "Dependents": "Dependentes", "Designs you open or save appear here.": "Os deseños que abras ou gardes aparecen aquí.", "Determined by To Object. Choose Angle to edit the angular extent.": "Determinado por Ata o obxecto. Escolle Ángulo para editar a extensión angular.", "Direction": "Dirección", "Discard": "Descartar", "Do not export hidden edges": "Non exportar as arestas ocultas", + "Don't ask again": "Non volver preguntar", "Double-click to rename": "Dobre clic para renomear", "Double-clicking the middle button in the view: Home (the home view, framing what is shown), Fit (frame what is shown, keeping the orientation) or nothing": "Dobre clic co botón central na vista: Inicio (a vista de inicio, encadrando o que se mostra), Axustar (encadrar o que se mostra mantendo a orientación) ou nada", "Drive Joint": "Accionar a unión", + "Duration": "Duración", "Edges": "Arestas", + "Edit": "Editar", "Edit Profile Sketch": "Editar o bosquexo do perfil", "Enable rule": "Activar a regra", "Enabled": "Activado", + "End bulge": "Abaulamento final", + "End continuity": "Continuidade final", "Explode": "Explosionar", + "Explode Text": "Descompoñer texto", "Export Animation…": "Exportar animación…", + "Export CSV…": "Exportar CSV…", "Export Current View as DXF": "Exportar a vista actual como DXF", "Export Current View as DXF…": "Exportar a vista actual como DXF…", + "Export DXF": "Exportar DXF", "Export DXF…": "Exportar DXF…", + "Export JSON…": "Exportar JSON…", "Export hidden edges as dashed lines": "Exportar as arestas ocultas como liñas descontinuas", + "Expression": "Expresión", "Extend to meet": "Estender ata atopala", "Extents": "Extensións", + "FILES": "FICHEIROS", + "FLAT": "DESPREGADO", "Face": "Cara", "Face attachment lost": "Perdeuse a ancoraxe á cara", "Faces": "Caras", "Faces / edges / vertices": "Caras / arestas / vértices", + "Fastener": "Elemento de fixación", + "Favorites": "Favoritos", "Favourite": "Favorito", + "Feature": "Operación", "Files from many CAD programs have Y up, so they open lying on their back here (Z up).": "Os ficheiros de moitos programas CAD teñen o Y cara arriba, así que aquí ábrense deitados (Z cara arriba).", "Filter": "Filtro", "Find in Browser": "Buscar no navegador", - "Flat": "Plano", + "Finish": "Acabado", + "Flat Pattern": "Desenvolvemento plano", "Flat size": "Tamaño desenvolvido", "Follow camera (Look At sketches)": "Seguir a cámara (Mirar cara aos bosquexos)", "Follow the camera (Look At sketches)": "Seguir a cámara (Mirar cara aos bosquexos)", "Font": "Tipo de letra", + "From Bodies": "Desde corpos", "From edges": "Arestas de orixe", "Full Length": "Lonxitude completa", + "Gap": "Folga", "Grid": "Grella", + "HISTORY": "HISTORIAL", "Height": "Altura", "Hidden edges": "Arestas ocultas", "Holes": "Furados", "Holes (edges on them)": "Furados (arestas sobre eles)", "Home view": "Vista de inicio", + "Horiz./Vert.": "Horiz./Vert.", + "IMAGES": "IMAXES", + "Import…": "Importar…", "In This Design": "Neste deseño", "In place (surfaces)": "No sitio (superficies)", "In plane": "No plano", "Inside": "Dentro", "Interferes": "Interfire", + "Isocurve": "Isocurva", "Issue title": "Título da incidencia", + "JOINTS": "UNIÓNS", "Joint Origin1": "Orixe da unión1", "Keep (points on it)": "Manter (puntos sobre ela)", "Keep Tools": "Manter as ferramentas", "Keep of the other surface": "Manter da outra superficie", + "LIBRARY": "BIBLIOTECA", + "LINKS": "LIGAZÓNS", "Later": "Máis tarde", "Leave it": "Deixalo", "Legacy face attachment. Rebinding to a certified face creates an exact attachment.": "Ancoraxe á cara antiga. Volver vincular a unha cara certificada crea unha ancoraxe exacta.", @@ -139,55 +194,85 @@ "Length units": "Unidades de lonxitude", "Letter Spacing": "Espazado entre letras", "Library": "Biblioteca", + "Library file": "Ficheiro de biblioteca", "Line Spacing": "Espazado entre liñas", + "Local library": "Biblioteca local", "Loop": "Bucle", + "MANAGE": "XESTIONAR", + "MATERIALS": "MATERIAIS", + "MODEL": "MODELO", + "MOTION": "MOVEMENTO", "Margin": "Marxe", "Mass": "Masa", + "Mass Center": "Centro de masas", + "Matched restrictions check the final values.": "As restricións que se cumpren comproban os valores finais.", "Material": "Material", "Max": "Máx.", "Mid Radius": "Raio medio", "Middle double-click": "Dobre clic central", "Min": "Mín.", "Mitre": "Inglete", + "Model Parameters": "Parámetros do modelo", "Modeled": "Modelado", "More toolbar panels": "Máis paneis da barra de ferramentas", "Motion": "Movemento", + "Move / Copy": "Mover / Copiar", "Move Type": "Tipo de movemento", + "Move down": "Mover abaixo", "Move earlier": "Mover antes", "Move later": "Mover despois", + "Move up": "Mover arriba", "Name": "Nome", + "Nearest": "Máis próximo", + "New": "Novo", + "New Comp.": "Comp. novo", + "New Sketch": "Bosquexo novo", + "New rule…": "Nova regra…", + "New study": "Estudo novo", "No crash reports.": "Non hai informes de fallos.", + "No matching appearance presets.": "Non hai preaxustes de aparencia coincidentes.", "No matching appearances": "Non hai aparencias coincidentes", "No visible bodies to export.": "Non hai corpos visibles para exportar.", "None": "Ningún", - "Normal to sketch": "Normal ao bosquexo", "Not available yet": "Aínda non dispoñible", "Notch": "Entalle", + "OUTPUT": "SAÍDA", "Opacity": "Opacidade", "Open GitHub draft": "Abrir o borrador de GitHub", + "Open local libraries in the desktop app. You can export this design's library here.": "Abra as bibliotecas locais na aplicación de escritorio. Aquí pode exportar a biblioteca deste deseño.", "Open-source parametric 3D CAD in Rust. Licensed MIT OR Apache-2.0.": "CAD 3D paramétrico de código aberto en Rust. Con licenza MIT OR Apache-2.0.", + "Operator": "Operador", "Other side": "Outro lado", "Other surface (mutual trim)": "Outra superficie (recorte mutuo)", "Outside": "Fóra", "Overall length": "Lonxitude total", - "Parameter values": "Valores dos parámetros", + "Param. Graph": "Gráf. de parám.", + "Parameter": "Parámetro", + "Parts": "Pezas", "Pass through": "Atravesar", "Path": "Traxectoria", + "Pattern": "Patrón", "Per Edge": "Por aresta", "Pick the tool bodies": "Escolle os corpos ferramenta", "Picked": "Escollido", + "Picked point": "Punto escollido", "Place at the origin instead": "Colocar na orixe no seu lugar", + "Plastic Rules": "Regras de plástico", "Playback": "Reprodución", + "Plot": "Gráfico", "Position": "Posición", "Position (0 to 1)": "Posición (de 0 a 1)", "Position (G0)": "Posición (G0)", "Position along the edge, 0 at the start end, 1 at the other": "Posición ao longo da aresta, 0 no extremo inicial e 1 no outro", + "Preferences › Design turns the offer back on": "Preferencias › Deseño volve activar a oferta", "Preview Row": "Previsualizar a fila", "Preview leaves the current design unchanged.": "A previsualización non cambia o deseño actual.", "Profiles/Curves": "Perfís/curvas", - "Projection": "Proxección", + "Quantity": "Cantidade", "RECENT": "RECENTES", + "REFERENCE": "REFERENCIA", "RULED SURFACE": "SUPERFICIE REGRADA", + "RULES": "REGRAS", "Radius Fit": "Axuste do raio", "Ratio": "Proporción", "Reattach selected face": "Volver ancorar a cara seleccionada", @@ -205,6 +290,8 @@ "Remove this point": "Quitar este punto", "Report a bug — review a screenshot and open a GitHub draft": "Informar dun erro — revisar unha captura e abrir un borrador en GitHub", "Reset Toolbar": "Restablecer a barra de ferramentas", + "Resize Part": "Redimensionar a peza", + "Restore View": "Restaurar a vista", "Restore outer boundary": "Restaurar o contorno exterior", "Restore the inherited component or physical material appearance": "Restaurar a aparencia herdada do compoñente ou do material físico", "Result": "Resultado", @@ -213,18 +300,27 @@ "Reverse Direction": "Inverter a dirección", "Revert": "Reverter", "Revert All Positions": "Reverter todas as posicións", + "Revert Pos.": "Reverter pos.", "Revert Position": "Reverter a posición", "Review the report and screenshot before opening GitHub.": "Revisa o informe e a captura de pantalla antes de abrir GitHub.", "Rim Edge": "Aresta do bordo", "Roll History Marker Here": "Levar o marcador do historial aquí", "Round": "Redondo", "Rule": "Regra", + "Rule name": "Nome da regra", + "Rules run from top to bottom. Matched drives change effective values.": "As regras execútanse de arriba abaixo. As regras de control que se cumpren modifican os valores efectivos.", + "SECTION": "SECCIÓN", + "SURFACE QUALITY": "CALIDADE DA SUPERFICIE", "Save Rule": "Gardar a regra", + "Save View": "Gardar a vista", "Save the study as an animated GIF, seen as the viewport shows it": "Gardar o estudo como GIF animado, tal e como o mostra a vista", "Saved preview. Geometry is being checked before editing.": "Previsualización gardada. Estase a comprobar a xeometría antes de editar.", "Scale factor": "Factor de escala", + "Scene": "Escena", "Search": "Buscar", "Search commands": "Buscar ordes", + "Search this library": "Buscar nesta biblioteca", + "Section": "Sección", "Select Other: hold the left button still on the model (or right-click › Select Other…) to list everything under the cursor; click again on the same spot to select the next thing there. Double-click the middle button to go Home (Preferences › Navigation).": "Seleccionar outro: mantén o botón esquerdo quieto sobre o modelo (ou clic dereito › Seleccionar outro…) para listar todo o que hai baixo o cursor; fai clic de novo no mesmo punto para seleccionar o seguinte. Fai dobre clic co botón central para ir ao Inicio (Preferencias › Navegación).", "Select bodies (a face picks its body)": "Selecciona corpos (unha cara escolle o seu corpo)", "Select bodies or faces instead": "Seleccionar corpos ou caras no seu lugar", @@ -232,6 +328,7 @@ "Semantic faces share their appearance across instances.": "As caras semánticas comparten a súa aparencia entre instancias.", "Send your report on GitHub": "Envía o informe en GitHub", "Shape": "Forma", + "Sheet Rules": "Regras de chapa", "Show Agent Cursor": "Mostrar o cursor do axente", "Show in folder": "Mostrar no cartafol", "Show the pointer an AI agent moves (#35)": "Mostrar o punteiro que move un axente de IA (#35)", @@ -245,14 +342,18 @@ "Sketch points": "Puntos do bosquexo", "Slot width": "Largura da ranura", "SolidCraft closed before these designs were saved. Their last autosave can be opened.": "SolidCraft pechouse antes de gardar estes deseños. Pódese abrir a súa última gravación automática.", + "Specialise": "Especializar", "Speed": "Velocidade", "Stand it up": "Poñela de pé", "Stand it up: a quarter turn about X, as one Move feature you can undo.": "Poñela de pé: un cuarto de volta arredor de X, como unha operación Mover que podes desfacer.", "Stand this part up?": "Poñer esta peza de pé?", + "Start bulge": "Abaulamento inicial", + "Start continuity": "Continuidade inicial", "Step": "Paso", "Steps": "Pasos", "Stitch the kept pieces": "Coser as pezas mantidas", "Stitch to both bodies": "Coser aos dous corpos", + "Study": "Estudo", "Style": "Estilo", "Suppressed": "Suprimida", "Surface": "Superficie", @@ -275,20 +376,24 @@ "To Offset": "Ata o desprazamento", "To edges": "Arestas de destino", "Tolerance": "Tolerancia", + "Too close": "Demasiado preto", "Trimming tool (plane, face or curves)": "Ferramenta de recorte (plano, cara ou curvas)", "Turn off section analysis before exporting the view.": "Desactiva a análise de sección antes de exportar a vista.", "Type": "Tipo", "UNTRIM": "DESRECORTAR", + "Unit": "Unidade", "Updating the preview": "Actualizando a previsualización", "Use active author placement": "Usar a colocación de autor activa", "Use fixed plane": "Usar un plano fixo", "Use saved fixed plane": "Usar o plano fixo gardado", "Use selected face as fixed plane": "Usar a cara seleccionada como plano fixo", + "User Parameters": "Parámetros de usuario", "VIEW": "VISTA", + "VIEWS": "VISTAS", "Value": "Valor", + "Velocity": "Velocidade", "Vertices": "Vértices", "View navigator": "Navegador de vistas", - "Visible bodies only. Curves use line segments (0.01 mm tolerance).": "Só os corpos visibles. As curvas usan segmentos de liña (tolerancia de 0,01 mm).", "Volume": "Volume", "Wall": "Parede", "Wall Location": "Situación da parede", @@ -296,6 +401,13 @@ "When": "Cando", "Width": "Largura", "Will fail": "Fallará", + "X angle": "Ángulo X", + "X distance": "Distancia X", + "Y angle": "Ángulo Y", + "Y distance": "Distancia Y", + "Z angle": "Ángulo Z", + "Z distance": "Distancia Z", + "Zebra": "Zebra", "angle, height": "ángulo, altura", "appearance.dielectric_ior": "IOR dieléctrico", "appearance.metallic": "Metálico", @@ -304,7 +416,13 @@ "appearance.roughness": "Rugosidade", "appearance.surface_response": "Resposta da superficie", "browser.body_name": "Corpo{number}", + "browser.calibrate_title": "Calibrar: {name}", + "browser.capture_many": "Movéronse {count} compoñentes, pero as súas posicións non se capturaron.", + "browser.capture_note": "Capturar a posición conserva a nova posición; Reverter a posición restaura a anterior.", + "browser.capture_one": "Moveuse un compoñente, pero a súa posición non se capturou.", "browser.component_name": "Compoñente{number}", + "browser.edit_canvas_title": "Editar o lenzo: {name}", + "browser.move_title": "Mover: {name}", "browser.parameters": "Parámetros ({count})", "browser.precision": "Precisión: {precision}", "browser.sketch_name": "Bosquexo{number}", @@ -319,6 +437,7 @@ "cmd.appearance_assign": "Aparencia", "cmd.appearance_library": "Biblioteca de aparencias", "cmd.appearance_list": "Listar as aparencias", + "cmd.assembly_bom": "Lista de materiais", "cmd.body_rename": "Renomear o corpo", "cmd.browser_group": "Grupo novo", "cmd.browser_move": "Mover elementos do navegador", @@ -340,10 +459,13 @@ "cmd.component_insert_design": "Inserir deseño", "cmd.component_links": "Listar as ligazóns", "cmd.component_list": "Listar os compoñentes", + "cmd.component_metadata": "Propiedades da peza", + "cmd.component_metadata_set": "Cambiar as propiedades da peza", "cmd.component_move_bodies": "Mover corpos ao compoñente", "cmd.component_move_sketches": "Mover bosquexos ao compoñente", "cmd.component_paste_new": "Pegar como novo", "cmd.component_properties": "Propiedades físicas do compoñente", + "cmd.component_relink": "Volver ligar a orixe", "cmd.component_rename": "Renomear o compoñente", "cmd.component_revert_position": "Reverter a posición", "cmd.component_unlock": "Desbloquear o contido", @@ -395,6 +517,7 @@ "cmd.edit_checkpoint": "Punto de control", "cmd.edit_restore_checkpoint": "Restaurar o punto de control", "cmd.engine_commands": "Listar as ordes", + "cmd.engine_describe": "Describir a orde", "cmd.explode_create": "Vista explosionada", "cmd.explode_delete": "Eliminar a vista explosionada", "cmd.explode_list": "Listar as vistas explosionadas", @@ -408,6 +531,7 @@ "cmd.file_slicers": "Laminadores instalados", "cmd.inspect_accessibility": "Análise de accesibilidade", "cmd.inspect_center_of_mass": "Centro de masas", + "cmd.inspect_clearance": "Folga", "cmd.inspect_compare": "Comparar corpos", "cmd.inspect_continuity": "Análise de continuidade", "cmd.inspect_curvature_comb": "Análise con pente de curvatura", @@ -417,6 +541,7 @@ "cmd.inspect_interference": "Interferencia", "cmd.inspect_isocurve": "Análise de isocurvas", "cmd.inspect_minimum_radius": "Análise de raio mínimo", + "cmd.inspect_silhouette": "Silueta", "cmd.inspect_zebra": "Análise cebra", "cmd.joint_as_built": "Unión tal como está", "cmd.joint_cam": "Leva", @@ -425,6 +550,7 @@ "cmd.joint_drive": "Accionar as unións", "cmd.joint_edit": "Editar a unión", "cmd.joint_gear": "Engrenaxe", + "cmd.joint_inspect": "Inspeccionar a unión", "cmd.joint_limits": "Límites da unión", "cmd.joint_list": "Listar as unións", "cmd.joint_motion_link": "Vínculo de movemento", @@ -434,6 +560,7 @@ "cmd.joint_rigid_group": "Grupo ríxido", "cmd.joint_screw": "Parafuso", "cmd.joint_solve": "Resolver as unións", + "cmd.joint_sweep": "Varrer a unión", "cmd.library_apply": "Aplicar unha entrada da biblioteca local", "cmd.library_export": "Exportar a biblioteca do deseño", "cmd.library_inspect": "Inspeccionar a biblioteca local", @@ -451,8 +578,10 @@ "cmd.motion_delete": "Eliminar o estudo de movemento", "cmd.motion_export": "Exportar o estudo de movemento", "cmd.motion_export_animation": "Exportar a animación do movemento", + "cmd.motion_interference": "Interferencia de movemento", "cmd.motion_list": "Listar os estudos de movemento", "cmd.motion_play": "Reproducir o estudo de movemento", + "cmd.motion_plot": "Representar o estudo de movemento", "cmd.motion_study": "Estudo de movemento", "cmd.motion_trace": "Traxectoria do movemento", "cmd.motion_trace_keep": "Manter a traxectoria do movemento", @@ -549,6 +678,8 @@ "cmd.sketch_isoparametric_curve": "Curva isoparamétrica", "cmd.sketch_line3d": "Liña 3D", "cmd.sketch_line_midpoint": "Liña desde o punto medio", + "cmd.sketch_loose_ends": "Extremos soltos", + "cmd.sketch_loose_ends_tie": "Unir os extremos soltos", "cmd.sketch_move": "Mover/Copiar entidades do bosquexo", "cmd.sketch_move3d": "Mover punto 3D", "cmd.sketch_move_point": "Arrastrar punto do bosquexo", @@ -578,6 +709,7 @@ "cmd.sketch_spline_fit_point": "Spline por puntos de paso", "cmd.sketch_spun_profile": "Perfil de revolución", "cmd.sketch_toggle_driven": "Alternar cota conducida", + "cmd.sketch_trim_path": "Recortar ao longo da traxectoria", "cmd.solid_align": "Aliñar", "cmd.solid_boundary_fill": "Encher contorno", "cmd.solid_bounding_solid": "Sólido envolvente", @@ -620,13 +752,23 @@ "cmd.timeline_roll_to": "Levar o marcador do historial", "cmd.timeline_rollback": "Mover o marcador da liña de tempo", "cmd.timeline_suppress": "Suprimir a operación", + "cmd.view_ambient_occlusion": "Oclusión ambiental", "cmd.view_apply": "Restaurar a vista con nome", "cmd.view_delete": "Eliminar a vista con nome", + "cmd.view_graphics_preset": "Preaxuste gráfico", "cmd.view_list": "Listar as vistas con nome", "cmd.view_navigate": "Navegar pola vista", "cmd.view_rename": "Renomear a vista con nome", "cmd.view_save": "Vista con nome nova", - "command name": "nome da orde", + "color.copy": "Preme para copiar os valores da cor", + "color.edit": "Preme para editar a cor", + "color.gamma": "Mostrando os valores da cor no espazo gamma 0-255", + "color.hue": "Ton", + "color.linear": "Mostrando os valores da cor no espazo lineal 0-1", + "color.saturation_value": "Saturación e valor", + "color.selected": "Cor seleccionada", + "contact.components_count": "{count} compoñentes", + "contact.enabled_label": "activado", "coupling.gear_1": "Engrenaxe 1", "coupling.gear_1_pick": "Engrenaxe 1 (opcional)", "coupling.gear_2": "Engrenaxe 2", @@ -643,8 +785,30 @@ "coupling.rack": "Cremalleira", "coupling.radius_1": "Raio 1", "coupling.radius_2": "Raio 2", + "crash.announce": "SolidCraft pechou de forma inesperada ou atopou un erro interno a última vez. Gardouse un informe de fallo (Axuda > Informes de fallos…).", + "crash.copy_folder": "Copiar a ruta do cartafol", + "crash.copy_path": "Copiar a ruta", + "crash.deleted": "Eliminouse {count} informe(s).", + "crash.detected_time": "Detectado {time} UTC", + "crash.intro": "Os informes de fallos quedan neste computador e nunca se envían a ningures. Informar… abre un borrador que revisas antes de compartir nada.", + "crash.kind_command": "Erro interno nunha orde", + "crash.kind_internal": "Erro interno", + "crash.kind_kernel": "Erro do núcleo (recuperado)", + "crash.kind_unclean": "Pechou de forma inesperada", + "crash.previous_session": "Unha sesión anterior de SolidCraft rematou de forma inesperada ou atopou un erro interno. Os informes das saídas incorrectas detéctanse ao iniciar. Consulta Axuda > Informes de fallos… para ver os detalles.", + "crash.replayable": "reproducible", + "crash.report": "Informar…", + "crash.unclean_explanation": "Detectado nun inicio posterior; non se rexistrou a hora exacta da saída. Un apagado do sistema ou unha parada forzada tamén poden causar unha saída incorrecta.", + "delete.and_more": "… e {count} máis", + "dialog.bodies_count": "{count} corpos", + "dialog.clearance_invalid": "a folga debe ser unha lonxitude de 0 ou máis", + "dialog.compute": "Calcular", + "dialog.compute_again": "Calcular de novo", "dialog.computing": "Calculando… {seconds} s", + "dialog.could_not_be_checked": "non se puido comprobar", "dialog.custom_axis": "↖ Eixe personalizado", + "dialog.dimension_insert_hint": "Faga dobre clic noutra cota de control para inserir o seu nome", + "dialog.dimension_name": "Cota: {name}", "dialog.edit_title": "EDITAR {title}", "dialog.select": "↖ Seleccionar", "dialog.selected_count": "↖ {count} seleccionados", @@ -668,9 +832,30 @@ "dxf.progress.write": "Escribindo o DXF (5/5)", "dxf.tolerance": "Tolerancia da curva", "dxf.tolerance_help": "Só os corpos visibles. As curvas usan segmentos rectos. Unha tolerancia menor dá curvas máis finas e usa máis tempo e memoria.", - "expression, e.g. 25 mm": "expresión, p. ex. 25 mm", + "file_load.built": "Construído ata agora: {built} de {total} operacións.", + "file_load.converting": "Convertendo o sólido {done} de {total}", + "file_load.inserting": "Inserindo a xeometría", + "file_load.opening": "Abrindo o deseño", + "file_load.preparing_thumbnail": "Preparando a miniatura...", + "file_load.preparing_view": "Preparando a vista...", + "file_load.preview_note": "Vista previa gardada. Estase comprobando a xeometría antes de editar.", + "file_load.reading": "Lendo o ficheiro...", + "file_load.reading_percent": "Lendo o ficheiro... {percent}%", + "file_load.rebuilding": "Reconstruíndo a operación {done} de {total}", + "file_load.recovering": "Recuperando o deseño", + "file_load.stopping": "Agardando a que remate a operación anterior...", + "file_load.waiting": "Agardando pola operación de ficheiro", "fits the face, e.g. M8": "encaixa na cara, p. ex. M8", "from the rule": "da regra", + "help.apache": "Licenza Apache 2.0", + "help.attributions": "Atribucións (ATTRIBUTION.md)", + "help.build": "Versión {version} · commit {commit} · compilada o {date}", + "help.font_details": "A interface usa as fontes integradas de egui (Ubuntu Light e Hack, baixo as licenzas Ubuntu Font Licence e MIT/Bitstream Vera; Noto Emoji e a fonte de iconas emoji, baixo OFL e MIT). O texto dos bosquexos usa Liberation Sans (SIL OFL 1.1). O paquete opcional de fontes de The Crafting Apps, craft-fonts (BIZ UDPGothic, Shippori Mincho, BIZ UDMincho, Noto Sans CJK SC, Noto Sans Arabic; SIL OFL 1.1), non se inclúe nas compilacións de SolidCraft.", + "help.fonts": "Fontes", + "help.licences": "Licenzas", + "help.mit": "Licenza MIT", + "help.notice": "NOTICE", + "help.third_party": "Licenzas de terceiros", "home.documentation": "Documentación", "home.in_this_browser": "neste navegador", "home.missing": "non atopado", @@ -696,9 +881,51 @@ "install.menu": "Instalar a aplicación…", "install.steps_intro": "Safari instala as aplicacións web desde os seus propios menús:", "install.title": "Instalar SolidCraft", + "issue.body_label": "Texto do informe", + "issue.note_image_copied": "Pega a imaxe no borrador de GitHub, ou garda o PNG se non se pode copiar a imaxe.", + "issue.note_opened": "Revisa o borrador de GitHub e achega a captura de pantalla. O botón Submit new issue de GitHub publícao.", + "issue.note_opened_copied": "Informe copiado. Pégao no borrador de GitHub, achega a captura de pantalla e preme Submit new issue en GitHub.", + "issue.note_removed": "Captura de pantalla retirada deste borrador.", + "issue.note_report_copied": "Informe copiado. Pégao no borrador de GitHub se fai falta.", + "issue.note_save_failed": "Non se puido gardar a captura de pantalla: {error}", + "issue.note_saved": "Captura de pantalla gardada. Achega o PNG no borrador de GitHub.", + "issue.save_screenshot": "Gardar a captura de pantalla…", "joint.from_bodies_hint": "Cada corpo escollido pasa a un compoñente novo propio e queda onde está.", "joint.one_body": "As dúas seleccións están en {body}. Escolle a segunda noutra peza.", "joint.one_component": "Estas pezas son corpos dun mesmo compoñente: {bodies}. Unha unión move un compoñente respecto doutro, así que cada peza precisa o seu propio compoñente.", + "keymap.command_id": "ID do comando", + "keymap.empty": "Non hai comandos coincidentes", + "keymap.use_anyway": "Usar {key} aquí de todos os xeitos", + "manage.appearance_hint": "Escolla unha aparencia para a selección ou arrastre unha mostra a un corpo ou unha cara.", + "manage.assign_hint": "Seleccione corpos e escolla a súa regra de deseño de pezas de plástico.", + "manage.config_hint": "Edite as filas, columnas e regras de configuración e despois active unha fila ou amose a súa vista previa.", + "manage.empty": "Non hai filas coincidentes.", + "manage.material_hint": "Seleccione corpos e escolla o seu material físico.", + "manage.parameters_hint": "Edite expresións e unidades. Os cambios aplícanse ao premer Intro ou saír dun campo.", + "manage.rules_hint": "Escolla unha regra para editar ou cree unha nova. Confirme para gardar a regra.", + "measure.at": "En", + "measure.item": "Elemento {number}", + "messages.ago_h": "hai {n} h", + "messages.ago_min": "hai {n} min", + "messages.ago_s": "hai {n} s", + "messages.chip_hint": "Preme para ver todas as mensaxes desta sesión", + "messages.clear": "Limpar", + "messages.copy_all": "Copiar todo", + "messages.menu": "Mensaxes…", + "messages.none": "Aínda non hai mensaxes.", + "messages.title": "Mensaxes", + "motion.checked_to": "Comprobado só ata o paso {step}: a comprobación esgotou o seu orzamento de traballo", + "motion.collision": "{a} · {b}: pasos {steps}", + "motion.delete_key": "Eliminar fotograma clave", + "motion.duration_hint": "segundos (baleiro: por paso)", + "motion.key_here": "Inserir fotograma clave aquí", + "motion.key_here_hint": "Engadir un fotograma clave neste paso co valor actual da unión", + "motion.no_collisions": "Sen colisións durante o estudo", + "motion.step_back": "Paso atrás", + "motion.step_forward": "Paso adiante", + "motion.to_end": "Ao final", + "motion.to_start": "Ao inicio", + "motion.track_name": "Pista {number}", "nav.touchpad.help": "Mantén Maiús e move o punteiro para desprazar; mantén Alt/Opción e móveo para orbitar. Non fai falta ningún botón do rato. O desprazamento vertical fai zoom.", "nav.touchpad.label": "Panel táctil", "nav.touchpad.orbit": "Orbitar (mantén Alt/Opción e move; sen botón do rato)", @@ -707,11 +934,13 @@ "nav.touchpad.zoom": "Zoom (desprazamento vertical ou pinza)", "needs two joints": "precisa dúas unións", "new configuration": "configuración nova", - "new name": "nome novo", "new parameter": "parámetro novo", + "no hole": "sen furado", "no interference": "sen interferencias", "no joint that moves yet": "aínda non hai ningunha unión que se mova", "no picture": "sen imaxe", + "none": "ningún", + "parts.automatic_name": "automático", "pattern.alignment_2": "Aliñamento 2", "pattern.alignment_hint": "O número inclúe o orixinal. Centrar equilibra as copias; Inverter escolle o lado da copia extra cando o total é par.", "pattern.direction_1": "Dirección 1", @@ -719,12 +948,19 @@ "pattern.flip_direction": "Inverter a dirección", "pick a hole to seat it, or OK places it at the origin": "escolle un furado onde asentala, ou Aceptar colócaa na orixe", "pick one or two vertices, edges or faces": "escolle un ou dous vértices, arestas ou caras", + "prefs.cpu": "CPU (software)", + "prefs.minutes_suffix": " min", + "properties.title": "Propiedades: {name}", + "recovery.days_ago": "hai {count} días", + "recovery.detail": "{file} · {features} operacións · gardado automaticamente {when}", + "recovery.hours_ago": "hai {count} h", + "recovery.just_now": "agora mesmo", + "recovery.min_ago": "hai {count} min", + "recovery.never_saved": "nunca gardado", "render.background": "Fondo da escena", "render.fit": "Encadrar o produto", - "render.image_cancel": "Cancelar o render", "render.image_cancelled": "Render cancelado", "render.image_cancelling": "Cancelando", - "render.image_check": "Comprobar a solicitude de render", "render.image_completed": "Imaxe lista para exportar", "render.image_encoding": "Codificando o PNG", "render.image_export": "Exportar PNG", @@ -771,6 +1007,19 @@ "sample.plate.name": "Placa de exemplo", "sample.vents.about": "Ranuras nun patrón rectangular: filas, columnas e paso son parámetros", "sample.vents.name": "Placa de ventilación", + "search.command_keys": "Intro executar Maiús+Intro executar e manter aberto Esc pechar", + "search.commands": "Ordes", + "search.design": "Neste deseño", + "search.feature": "Operación", + "search.invalid": "Non válido", + "search.keys": "↑ ↓ escoller Intro executar Tab completar o nome Esc pechar", + "search.no_match": "Ningunha orde coincide con '{query}'", + "search.parameter": "Parámetro", + "search.recent": "Recentes", + "search.run": "Executar a orde", + "search.suggest": "Querías dicir {label}?", + "search.try": "Escribe o nome dunha orde, unha operación deste deseño ou un parámetro. Para executar unha orde con valores, escribe o seu id e un obxecto JSON: {example}", + "search.valid": "Válido", "settings.display_quality_note": "Os niveis máis finos debuxan as caras e arestas curvas máis suaves e tardan máis en xerar a malla. Só cambia a vista, nunca o deseño nin as exportacións.", "settings.frame_rate_note": "Mostra as imaxes por segundo na esquina inferior dereita da vista. Mentres está activado, a vista redebúxase continuamente.", "settings.measure_axis_distances": "Mostrar as distancias en X/Y/Z", @@ -781,29 +1030,51 @@ "settings.reset_intro": "Estes axustes non funcionan neste ordenador e impedirían que SolidCraft se iniciase, así que se cambiaron:", "settings.reset_title": "Cambiáronse os axustes", "settings.supersampling_note": "Debuxa a vista a unha resolución maior e fíltraa cara abaixo: arestas, liñas e grella máis suaves en pantallas por debaixo de 4K. Consome tempo de GPU: uns 2,25× píxeles a 1,5× e 4× a 2×.", + "shortcut.json_error": "os parámetros deben estar en formato JSON: {error}", + "shortcut.no_command": "non existe o comando `{id}`; o texto anterior ao JSON debe ser un ID de comando", + "shortcut.pin": "Fixar na parte superior da caixa S", + "shortcut.unpin": "Desafixar", "sketch.degrees_of_freedom": "{count} graos de liberdade", + "sketch.dof_left": "Quedan {count} graos de liberdade", + "sketch.dof_left_one": "Queda {count} grao de liberdade", "sketch.draw_curves": "Debuxar como {linetype}", "sketch.make_selection": "Converter a selección en {linetype}", + "sketch.open_ends": "Abertos {count}", + "sketch.untied_ends": "Sen unir {count}", + "sketch_panel.attached": "Ligado a {body} / {path}", + "sketch_panel.author": "Localización de autoría: {path}", + "sketch_panel.dimension_hint": "Introduza un valor ou unha expresión e prema Aceptar.", + "sketch_panel.move_hint": "Introduza as distancias e un ángulo e prema Aceptar.", + "sketch_panel.redefine_title": "{command}: {name}", + "sketch_panel.sheet_attachment": "Ligado a unha cara plana dun corpo de chapa; segue ese panel cando cambia a chapa.", + "sketch_panel.text_hint": "Edite o texto e a súa posición e prema Aceptar.", + "sketch_panel.use_plane": "Usar plano {plane}", "sketch_text.align_center": "Centro", "sketch_text.align_left": "Esquerda", "sketch_text.align_right": "Dereita", "sketch_text.bold": "Negra", "sketch_text.builtin_font": "{family} (integrado)", - "sketch_text.font_search": "Buscar tipos de letra", "sketch_text.italic": "Cursiva", "sketch_text.loading_fonts": "Buscando os tipos de letra instalados…", "sketch_text.on_path": "O texto segue a súa traxectoria: a curva colócao", "sketch_text.path_clear": "Separar o texto da súa curva", "sketch_text.path_hint": "Unha curva do bosquexo que segue o texto: fai clic aquí e despois na curva", "sketch_text.use_font_file": "Usar o ficheiro de tipo de letra {path}", + "solid": "sólido", "the parts library is not available": "a biblioteca de pezas non está dispoñible", + "thread.automatic_size": "Tamaño automático", + "thread.designation": "Designación", + "thread.iso_metric": "Métrica ISO", + "thread.select_size": "Seleccionar o tamaño", "timeline.group": "Cartafol de operacións novo", "timeline.move_many": "Mover elementos da liña de tempo", "timeline.move_to_group": "Mover operacións ao cartafol", "timeline.rename_group": "Renomear o cartafol de operacións", "timeline.reorder_many": "Reordenar operacións", "timeline.ungroup": "Quitar os cartafoles de operacións", + "to the face": "á cara", "to the next face": "ata a seguinte cara", + "toolbar.customize_note": "Lapela {tab}. Marque un comando para engadir o seu botón á barra de ferramentas. Tamén pode arrastrar unha fila do despregable dun panel á barra, arrastrar un botón fóra da barra para retiralo ou usar a chincheta dunha fila do despregable.", "toolbar.image": "IMAXE", "toolbar.render": "RENDER", "toolbar.render_scene": "ESCENA", @@ -812,18 +1083,21 @@ "trace.stopped_by_loop": "Remata na mostra {sample}: o bucle a través de {joint} non pode pecharse máis", "ui.1_degree_of_freedom": "1 grao de liberdade", "ui.3d_mouse_speed": "Velocidade do rato 3D", - "ui.3d_mouse_windows": "Rato 3D", "ui.3d_sketch": "Bosquexo 3D", - "ui.about": "Acerca de", "ui.activate": "Activar", "ui.active_component": "Compoñente activo", + "ui.add_configuration": "Engadir configuración", + "ui.add_parameter": "Engadir parámetro", "ui.agent_chat": "Chat co axente", + "ui.agent_chat_add": "Anexar ficheiros", + "ui.agent_chat_add_file": "Escoller un ficheiro…", "ui.agent_chat_allow": "Permitir", "ui.agent_chat_allowed": "Permitido", "ui.agent_chat_answered": "Resposta: {option}", "ui.agent_chat_approval": "Permitir que o axente faga isto?", "ui.agent_chat_attach_view": "Achegar a vista", "ui.agent_chat_attach_view_tip": "Envía unha imaxe da vista actual coa mensaxe", + "ui.agent_chat_attachable": "Imaxes, PDF, texto e ficheiros CAD", "ui.agent_chat_auth_agent": "Iniciar sesión con {name}", "ui.agent_chat_auth_env": "Define {vars} no teu contorno e reinicia SolidCraft.", "ui.agent_chat_auth_needed": "O axente pídeche que inicies sesión. Inicias sesión co propio axente; SolidCraft nunca ve o teu contrasinal nin as túas claves.", @@ -843,11 +1117,33 @@ "ui.agent_chat_deny": "Denegar", "ui.agent_chat_desktop_only": "O chat co axente precisa a aplicación de escritorio.", "ui.agent_chat_detecting": "Buscando axentes…", + "ui.agent_chat_dock": "Acoplar no panel lateral", "ui.agent_chat_dock_left": "Acoplar á esquerda", "ui.agent_chat_dock_right": "Acoplar á dereita", + "ui.agent_chat_drop_hint": "Solta para anexar á seguinte mensaxe", "ui.agent_chat_edit": "Editar", "ui.agent_chat_exited": "O axente detívose.", "ui.agent_chat_failed_start": "Non se puido iniciar o axente: {error}", + "ui.agent_chat_file_cad_not_read": "{name}: un ficheiro CAD impórtase ao deseño, non se le", + "ui.agent_chat_file_empty_picture": "{name}: unha imaxe baleira", + "ui.agent_chat_file_error": "{name}: {error}", + "ui.agent_chat_file_heic": "{name}: as imaxes HEIC non se poden ler aquí; expórtaa primeiro como JPEG ou PNG", + "ui.agent_chat_file_importing": "Importando ao deseño…", + "ui.agent_chat_file_kinds": "{name}: pódense anexar imaxes (PNG, JPEG, GIF, WebP, BMP, TIFF), ficheiros de texto (tamén SVG) e ficheiros CAD (STEP, IGES, FreeCAD, Rhino, STL, 3MF, OBJ, glTF)", + "ui.agent_chat_file_loading": "Lendo o ficheiro…", + "ui.agent_chat_file_not_a_file": "{name}: non é un ficheiro", + "ui.agent_chat_file_not_a_picture": "{name}: non é unha imaxe", + "ui.agent_chat_file_not_utf8": "{name}: non é texto UTF-8", + "ui.agent_chat_file_picture_too_big": "{name}: unha imaxe pode ter como máximo {max} MB", + "ui.agent_chat_file_text_too_big": "{name}: un ficheiro de texto pode ter como máximo {max} KB", + "ui.agent_chat_file_too_large": "{name}: demasiado grande", + "ui.agent_chat_file_too_large_to_send": "{name}: demasiado grande para enviar, mesmo reducido", + "ui.agent_chat_file_unreadable_picture": "{name}: non é unha imaxe que se poida ler", + "ui.agent_chat_files": "Ficheiros: {files}", + "ui.agent_chat_files_left_out": "Cunha mensaxe van como máximo {max} ficheiros; deixados fóra: {files}", + "ui.agent_chat_files_loading": "Agardando a que se lean os ficheiros", + "ui.agent_chat_files_max": "Como máximo {max} ficheiros por mensaxe", + "ui.agent_chat_import_failed": "{name}: fallou a importación: {error}", "ui.agent_chat_intro": "Conversa cun axente de programación que xa uses, ou cun punto de acceso de modelo que escollas. Traballa no deseño aberto a través das ferramentas de SolidCraft: os seus cambios vense mentres os fai e desfanse nun paso por mensaxe. O que pode facer sen preguntar defínese en Preferencias > IA.", "ui.agent_chat_key_in_env": "clave configurada", "ui.agent_chat_left": "Esquerda", @@ -856,18 +1152,23 @@ "ui.agent_chat_model_tip": "O modelo que usa o axente. A túa escolla lémbrase para este axente.", "ui.agent_chat_new": "Chat novo", "ui.agent_chat_new_confirm": "Comezar un chat novo? Borrarase o actual.", - "ui.agent_chat_new_yes": "Chat novo", + "ui.agent_chat_next_picture": "Imaxe seguinte", "ui.agent_chat_no_cli": "Non se atopou solidcraft-cli xunto á aplicación, así que o axente non pode chegar ao deseño.", "ui.agent_chat_no_control": "O punto de acceso do chat co axente non se iniciou, así que o axente non pode chegar ao deseño.", "ui.agent_chat_no_images": "Este axente non admite imaxes", + "ui.agent_chat_no_picture": "Non hai ningunha imaxe no portapapeis", "ui.agent_chat_none_found": "Non se atopou ningún axente de programación. Instala un destes e despois preme Actualizar:", "ui.agent_chat_none_found_short": "Non se atopou ningún axente", "ui.agent_chat_not_installed": "Non instalado", "ui.agent_chat_not_signed_in": "sen sesión iniciada", + "ui.agent_chat_own_window": "Xanela propia", + "ui.agent_chat_paste_picture": "Pegar unha imaxe", "ui.agent_chat_permission": "O axente pide executar: {title}", "ui.agent_chat_pick": "Axente", "ui.agent_chat_placeholder": "Pídelle ao axente que cambie o deseño…", "ui.agent_chat_placeholder_busy": "Pon unha mensaxe na cola para cando remate o axente (Ctrl+Intro: enviar agora)", + "ui.agent_chat_pop_out": "Abrir nunha xanela propia, que podes mover a outra pantalla", + "ui.agent_chat_previous_picture": "Imaxe anterior", "ui.agent_chat_privacy": "Nada vai a ningún sitio agás ao axente que executas, coa túa propia conta.", "ui.agent_chat_privacy_note": "SolidCraft non envía nada a ningún sitio: o axente que executas fala co seu propio servizo coa túa propia conta. SolidCraft nunca ve nin garda ningunha clave nin contrasinal.", "ui.agent_chat_queue": "Pór na cola", @@ -877,6 +1178,8 @@ "ui.agent_chat_refresh": "Actualizar", "ui.agent_chat_refused": "Non permitido ao axente: {reason}", "ui.agent_chat_remove": "Quitar da cola", + "ui.agent_chat_remove_file": "Quitar desta mensaxe", + "ui.agent_chat_remove_imported": "Quitar desta mensaxe; a peza queda no deseño (Desfacer quítaa)", "ui.agent_chat_right": "Dereita", "ui.agent_chat_save": "Gardar", "ui.agent_chat_send": "Enviar", @@ -921,6 +1224,7 @@ "ui.ai_bad_url": "Introduce un URL que comece por http:// ou https://", "ui.ai_base_url": "URL base", "ui.ai_button": "IA", + "ui.ai_command_hint": "my-agent --acp", "ui.ai_copy_suffix": "copia", "ui.ai_custom_url": "URL personalizado", "ui.ai_default": "Predeterminado", @@ -941,8 +1245,10 @@ "ui.ai_mode_edits_note": "As ordes de modelado execútanse sen preguntar; gardar, abrir, exportar e outras accións con ficheiros ou destrutivas seguen preguntando.", "ui.ai_mode_global": "Como se definiu arriba", "ui.ai_model": "Modelo", + "ui.ai_model_hint": "qwen3:14b", "ui.ai_modes_scope": "Estes axustes cobren as ferramentas de SolidCraft. As ferramentas propias dun axente (o seu shell, as súas edicións de ficheiros) seguen o modo propio do axente, que escolles na cabeceira do panel de chat cando o axente ten modos.", "ui.ai_name": "Nome", + "ui.ai_name_hint": "O meu axente", "ui.ai_need_command": "Introduce a orde que inicia o axente", "ui.ai_need_model": "Introduce o nome do modelo", "ui.ai_no_answer": "O axente non respondeu a tempo", @@ -973,7 +1279,10 @@ "ui.ai_toolbar_button": "Mostrar o botón na barra de ferramentas", "ui.ai_toolbar_button_note": "O botón de IA no extremo dereito da barra de ferramentas. Ctrl+Maiús+A e o menú Vista seguen abrindo o panel.", "ui.ai_undo_tip": "Desfai nun só paso todo o que cambiou o axente para esta mensaxe", + "ui.ai_url_hint": "https://example.com/v1", "ui.all": "Todo", + "ui.ambient_occlusion": "Oclusión ambiental", + "ui.ambient_occlusion_help": "Sombreado suave onde se atopan superficies opacas. Require a vista GPU.", "ui.analysis": "Análise", "ui.angle": "Ángulo", "ui.angle_decimals": "Decimais dos ángulos", @@ -984,7 +1293,8 @@ "ui.anti_aliasing": "Antialiasing", "ui.apply": "Aplicar", "ui.arc": "Arco", - "ui.assemble": "Ensamblar", + "ui.assistant": "Asistente", + "ui.assistant_waiting": "{count} aprobacións en espera", "ui.autosave_every": "Gardar automaticamente cada", "ui.axes": "Eixes", "ui.axis": "Eixe", @@ -992,8 +1302,14 @@ "ui.base_point": "Punto base", "ui.blocked": "Bloqueado", "ui.bodies": "Corpos", + "ui.bodies_all_if_none": "Corpos (todos se non hai ningún)", "ui.box": "Caixa", "ui.break": "Romper", + "ui.browser_bodies_one": "{count} corpo", + "ui.browser_bodies_other": "{count} corpos", + "ui.browser_collapse": "Contraer o navegador", + "ui.browser_expand": "Expandir o navegador", + "ui.browser_title": "Navegador", "ui.calibrate": "Calibrar", "ui.cancel": "Cancelar", "ui.canvases": "Lenzos", @@ -1003,7 +1319,6 @@ "ui.chamfer": "Chafrán", "ui.chamfer_type": "Tipo de chafrán", "ui.change_workspace": "Cambiar de espazo de traballo", - "ui.chord_length": "Lonxitude da corda", "ui.circle": "Círculo", "ui.circular_pattern": "Patrón circular", "ui.clear": "Borrar", @@ -1036,13 +1351,14 @@ "ui.command_done": "{command} feito", "ui.command_palette_hint": "Escribe unha orde, p. ex. {example} — ou preme S para buscar", "ui.concentric": "Concéntrica", - "ui.configurations": "Configuracións", "ui.conic_curve": "Curva cónica", "ui.constant": "Constante", "ui.constraints_conflict": "Conflito de restricións", - "ui.construct": "Construír", "ui.construction": "Construción", "ui.context_menu": "Menú contextual", + "ui.continuity_g0": "G0 aresta", + "ui.continuity_g1": "G1 tanxente", + "ui.continuity_g2": "G2 curvatura", "ui.continuity_gap": "Separación", "ui.copy": "Copiar", "ui.corner": "Esquina", @@ -1063,7 +1379,6 @@ "ui.cylinder": "Cilindro", "ui.dark": "Escuro", "ui.default_modelling_orientation": "Orientación de modelado predeterminada", - "ui.degrees_of_freedom": "graos de liberdade", "ui.delete": "Eliminar", "ui.depth": "Profundidade", "ui.design": "Deseño", @@ -1105,7 +1420,6 @@ "ui.equivalent_radius": "Raio equivalente", "ui.expand": "Expandir", "ui.exportDxf": "Exportar DXF…", - "ui.export_ellipsis": "Exportar...", "ui.export_ellipsis_keymap": "Exportar…", "ui.export_keymap_tip": "Teclas, favoritos da caixa S e a barra de ferramentas, como un ficheiro", "ui.extend": "Estender", @@ -1129,8 +1443,16 @@ "ui.frame_rate": "Imaxes por segundo", "ui.front": "Fronte", "ui.fully_constrained": "Totalmente restrinxido", + "ui.function": "Función", "ui.general": "Xeral", "ui.graphics": "Gráficos", + "ui.graphics_custom": "Personalizado", + "ui.graphics_performance": "Rendemento", + "ui.graphics_preset": "Preaxuste gráfico", + "ui.graphics_preset_help": "Calidade: oclusión ambiental, calidade de visualización Fina e supermostraxe adaptativa 2×. Rendemento: sen oclusión ambiental, calidade de visualización Normal e supermostraxe desactivada. Os cambios manuais mostran Personalizado. MSAA non cambia.", + "ui.graphics_quality": "Calidade", + "ui.grid_follows_view": "A grella segue a vista", + "ui.grid_follows_view_hint": "As vistas laterais mostran a grella no plano vertical que ten diante en vez do chan", "ui.ground_shadow": "Sombra no chan", "ui.groupSelected": "Agrupar a selección", "ui.heading_add_ins": "COMPLEMENTOS", @@ -1157,6 +1479,7 @@ "ui.heading_home": "INICIO", "ui.heading_insert": "INSERIR", "ui.heading_inspect": "INSPECCIONAR", + "ui.heading_interference": "INTERFERENCIA", "ui.heading_loft": "TRANSICIÓN", "ui.heading_make": "FABRICAR", "ui.heading_measure": "MEDIR", @@ -1187,7 +1510,6 @@ "ui.heading_sheet_metal": "CHAPA", "ui.heading_shell": "BALEIRADO", "ui.heading_sketch": "BOSQUEXO", - "ui.heading_sketch_palette": "PALETA DO BOSQUEXO", "ui.heading_sketch_scale": "ESCALA DO BOSQUEXO", "ui.heading_solid": "SÓLIDO", "ui.heading_sphere": "ESFERA", @@ -1206,6 +1528,7 @@ "ui.hideOrigin": "Ocultar a orixe", "ui.hidePlanes": "Ocultar os planos", "ui.hideProfile": "Ocultar o perfil", + "ui.history_title": "Historial", "ui.hole": "Furado", "ui.hole_tap_type": "Tipo de roscado do furado", "ui.hole_type": "Tipo de furado", @@ -1225,11 +1548,12 @@ "ui.length_decimals": "Decimais das lonxitudes", "ui.light": "Claro", "ui.line": "Liña", - "ui.linetype": "Tipo de liña", "ui.lock": "Bloquear", "ui.loft": "Transición", "ui.look_at": "Mirar cara a", "ui.look_at_anim_desc": "Vista de eixe, Mirar cara a, Inicio e Axustar", + "ui.manipulator_free_alt": "Arrastre libre do manipulador tamén con Alt/Option", + "ui.manipulator_free_alt_tip": "Activado: Alt/Option ou Ctrl/Cmd nas frechas de extrusión / do gizmo desactiva o axuste de valores. Desactivado: só Ctrl/Cmd.", "ui.manufacture": "Fabricación", "ui.material_review.axes": "Eixes locais do material; non se asigna ningunha orientación do corpo.", "ui.material_review.claims": "As fontes e as licenzas son afirmacións sen verificar. Os valores que faltan seguen sendo descoñecidos.", @@ -1257,10 +1581,8 @@ "ui.mesh_format_3mf": "3MF", "ui.mesh_format_3mf_tagged": "3MF con etiquetas de cara", "ui.mesh_format_stl": "STL", - "ui.midpoint": "Punto medio", "ui.mirror": "Simetría", "ui.mirror_line": "Liña de simetría", - "ui.modify": "Modificar", "ui.move": "Mover", "ui.multiple": "Múltiple", "ui.named_views": "Vistas con nome", @@ -1269,6 +1591,7 @@ "ui.newSketchGroup": "Grupo de bosquexos novo", "ui.new_body": "Corpo novo", "ui.new_design": "Deseño novo", + "ui.no_geometry_yet": "Aínda non hai xeometría", "ui.no_slicer_found": "Non se atopou ningún laminador", "ui.normal": "Normal", "ui.normalConstruction": "Normal / Construción", @@ -1280,7 +1603,7 @@ "ui.offset_plane": "Plano desprazado", "ui.one_side": "Un lado", "ui.open": "Abrir", - "ui.open_ellipsis": "Abrir...", + "ui.open_ends_tip": "Non toca nada", "ui.open_preferences": "Abrir as preferencias", "ui.open_recent": "Abrir recentes", "ui.operation": "Operación", @@ -1289,12 +1612,14 @@ "ui.orbit_around": "Orbitar arredor de", "ui.orientation": "Orientación", "ui.origin": "Orixe", - "ui.palette_points": "Puntos", - "ui.palette_profile": "Perfil", + "ui.palette_construction_mode": "Modo de construción (X)", + "ui.palette_more": "Máis", + "ui.palette_sketch_options": "Opcións do esbozo", "ui.pan": "Desprazar", "ui.pan_zoom_orbit": "Desprazar, zoom, orbitar", "ui.parallel": "Paralela", "ui.parameters": "Parámetros", + "ui.part_size_shared": "Reconstrúe a peza, substituíndo as operacións engadidas. Actualízanse todas as ocorrencias deste compoñente.", "ui.paste": "Pegar", "ui.path": "Traxectoria", "ui.pattern_on_path": "Patrón nunha traxectoria", @@ -1306,6 +1631,12 @@ "ui.placement": "Colocación", "ui.plane": "Plano", "ui.plane_at_angle": "Plano en ángulo", + "ui.plugins": "Complementos", + "ui.plugins_desktop": "Os complementos están dispoñibles na aplicación de escritorio.", + "ui.plugins_empty": "Non hai complementos instalados.", + "ui.plugins_note": "Cada complemento é un cartafol dentro de {path} cun plugin.json. SolidCraft le ese ficheiro e non executa ningún código do cartafol. Desactivar un complemento mantéñeo instalado.", + "ui.plugins_skipped": "Non se puido ler {count} cartafol(es).", + "ui.plugins_version": "{version}", "ui.point": "Punto", "ui.point_under_the_cursor": "Punto baixo o cursor", "ui.points": "Puntos", @@ -1324,11 +1655,17 @@ "ui.quit": "Saír", "ui.radial_context_menu": "Menú contextual radial", "ui.radius": "Raio", - "ui.radius_type": "Tipo de raio", + "ui.rail": "Guía", + "ui.rail_fit": "Axuste de guía", "ui.reachable": "Alcanzable", "ui.rectangle": "Rectángulo", "ui.rectangular_pattern": "Patrón rectangular", "ui.redo": "Refacer", + "ui.relink_design_changed": "A montaxe cambiou mentres se escollía unha orixe. Inicia de novo Volver ligar a orixe.", + "ui.relink_done": "Orixe ligada de novo en todas as instancias.", + "ui.relink_not_linked": "Este compoñente non está ligado a un deseño de orixe.", + "ui.relink_select_one": "Selecciona primeiro un compoñente ligado ou unha das súas instancias.", + "ui.relink_source_all": "Volver ligar a orixe (todas as instancias)…", "ui.removeFromToolbar": "Quitar da barra de ferramentas", "ui.removeSection": "Quitar a sección", "ui.render": "Render", @@ -1340,12 +1677,16 @@ "ui.reset_the_settings_on_this_page": "Restablecer os axustes desta páxina", "ui.restore": "Restaurar", "ui.restore_defaults": "Restaurar os valores predeterminados", + "ui.reverse_horizontal_pan_direction": "Inverter a dirección do desprazamento horizontal", + "ui.reverse_horizontal_pan_tip": "O desprazamento horizontal con dous dedos e a roda do polgar desprázanse en sentido contrario", "ui.reverse_zoom_direction": "Inverter a dirección do zoom", "ui.revolve": "Revolución", + "ui.ribbon_exit": "Saír", + "ui.ribbon_pin_footer": "As ordes fixadas móstranse na cinta. Pasa o cursor sobre unha fila para fixala ou soltala.", + "ui.ribbon_workspace": "Espazo de traballo", "ui.right": "Dereita", "ui.save": "Gardar", "ui.save_as": "Gardar como", - "ui.save_as_ellipsis": "Gardar como...", "ui.save_mesh_no_slicer": "Non se atopou ningún laminador: escolle Personalizado… e selecciona o teu programa laminador, ou desactiva Enviar ao laminador", "ui.save_mesh_pick_bodies": "Selecciona os corpos que queres gardar", "ui.save_mesh_temp_failed": "Non se puido crear {folder}: {error}", @@ -1353,12 +1694,15 @@ "ui.sbox_pin": "Fixar arriba na caixa S", "ui.sbox_unpin": "Desfixar", "ui.scale": "Escala", + "ui.second_rail": "Segunda guía", "ui.section_analysis": "Análise de sección", "ui.select": "Seleccionar", "ui.selectOther": "Seleccionar outro…", "ui.selectTangentChain": "Seleccionar cadea tanxente", - "ui.select_other_hint": "Seleccionar outro: mantén o botón esquerdo quieto sobre o modelo (ou clic dereito › Seleccionar outro…) para listar todo o que hai baixo o cursor; fai clic de novo no mesmo punto para seleccionar o seguinte.", "ui.selection": "Selección", + "ui.selection_modifiers": "Modificadores de selección", + "ui.selection_shift_add_only": "Maiús+clic engade sen quitar", + "ui.selection_shift_add_only_tip": "Activado: Maiús engade elementos, Ctrl/Cmd alterna. Desactivado (predeterminado): Maiús e Ctrl/Cmd alternan ambos.", "ui.send": "Enviar", "ui.send_to_slicer": "Enviar ao laminador", "ui.sent_to_slicer": "Enviado a {slicer}", @@ -1374,7 +1718,6 @@ "ui.show_constraints": "Restricións", "ui.show_construction_geometries": "Xeometrías de construción", "ui.show_dimensions": "Cotas", - "ui.show_points": "Mostrar os puntos", "ui.show_profile": "Mostrar o perfil", "ui.show_projected_geometries": "Xeometrías proxectadas", "ui.simple": "Simple", @@ -1383,8 +1726,8 @@ "ui.sketch": "Bosquexo", "ui.sketch_dimension": "Cota do bosquexo", "ui.sketch_grid": "Grella do bosquexo", + "ui.sketch_modifiers": "Modificadores de bosquexo", "ui.sketch_scale": "Escala do bosquexo", - "ui.sketch_status": "Estado do bosquexo", "ui.sketches": "Bosquexos", "ui.slice": "Laminar", "ui.slicer": "Laminador", @@ -1430,11 +1773,14 @@ "ui.stand_up_tip": "Despois de abrir un ficheiro STEP ou IGES con Z cara arriba, ofrecer un cuarto de volta arredor de X", "ui.start": "Inicio", "ui.start_over": "Volver comezar", - "ui.start_radius": "Raio inicial", + "ui.start_page": "Páxina de inicio", + "ui.stretch": "Estirar", "ui.supersampling": "Supermostraxe (SSAA)", "ui.supersampling_adaptive": "Só cando a vista está quieta", "ui.supersampling_off": "Desactivado (1×)", "ui.suppress": "Suprimir", + "ui.suppress_auto_snap": "Suprimir o axuste automático ao debuxar / arrastrar", + "ui.suppress_auto_snap_note": "Predeterminado: Ctrl/Cmd ou Alt/Option suprimen cada un o axuste do bosquexo. Escolle unha única tecla para restrinxilo.", "ui.sweep": "Varrido", "ui.sweep_follow_direction": "Seguir a dirección", "ui.sweep_keep_as_drawn": "Manter como se debuxou", @@ -1449,6 +1795,8 @@ "ui.theme": "Tema", "ui.thickness": "Espesor", "ui.thread": "Rosca", + "ui.tie_ends": "Unir", + "ui.tie_ends_tip": "Restrinxir todos os extremos sen unir", "ui.timeline_bottom": "Liña de tempo abaixo", "ui.timeline_left_note": "A disposición á esquerda mostra a barra de retroceso enriba do navegador de pezas e escena.", "ui.timeline_left_sidebar": "Barra lateral esquerda", @@ -1471,16 +1819,28 @@ "ui.units_of_new_designs": "Unidades dos deseños novos", "ui.unlock": "Desbloquear", "ui.unsuppress": "Deixar de suprimir", + "ui.untied_ends_tip": "Toca só por posición", "ui.untitled": "Sen título", "ui.up_axis_note": "Que eixe apunta cara arriba nas vistas (vista de eixe, Inicio, Mirar cara a). Os deseños non cambian.", "ui.updateToCurrentView": "Actualizar á vista actual", - "ui.variable": "Variable", "ui.view_centre": "Centro da vista", "ui.visual_shaded_hidden_edges": "Sombreado con arestas ocultas", "ui.visual_shaded_with_edges": "Sombreado con arestas", "ui.visual_style": "Estilo visual", "ui.visual_wireframe": "Arames", "ui.workspace": "espazo de traballo", + "ui.workspace_animation_description": "Vistas despezadas, estudos de movemento e guións gráficos", + "ui.workspace_available": "Dispoñible", + "ui.workspace_current": "Actual", + "ui.workspace_design_description": "Bosquexar, modelar, montar e inspeccionar", + "ui.workspace_design_tabs": "Modelo · Superficie · Montaxe · Inserir · Inspeccionar · Xestionar · Vista", + "ui.workspace_drawing_description": "Planos 2D con vistas, cotas e cartelas", + "ui.workspace_footer": "Todos os espazos de traballo usan o mesmo deseño, historial e selección; só cambian as pestanas da cinta. O selector bloquéase mentres se edita un bosquexo ou unha operación.", + "ui.workspace_manufacture_description": "Laminado, traxectorias de ferramenta e configuración", + "ui.workspace_planned": "Previsto", + "ui.workspace_render_description": "Vista previa do produto, axustes de escena e imaxes renderizadas", + "ui.workspace_render_tabs": "Escena · Imaxe", + "ui.workspace_simulation_description": "Cargas, restricións e resultados", "ui.x_distance": "Distancia en X", "ui.y_distance": "Distancia en Y", "ui.y_up": "Y cara arriba", @@ -1490,7 +1850,6 @@ "ui.zoom_to_the_cursor": "Zoom cara ao cursor", "update.available": "Está dispoñible SolidCraft {version}", "update.button": "Actualizar", - "update.button_tip": "Está dispoñible SolidCraft {version}", "update.button_version": "Actualizar a {version}", "update.check_automatically": "Buscar actualizacións automaticamente", "update.check_now": "Comprobar agora", @@ -1522,5 +1881,6 @@ "update.title": "Actualización dispoñible", "update.up_to_date": "SolidCraft está actualizado.", "update.update_now": "Actualizar agora", - "update.you_have": "Tes a versión {version}." + "update.you_have": "Tes a versión {version}.", + "↑ ↓ choose · Enter / Tab complete · Esc dismiss": "↑ ↓ escoller · Intro / Tab completar · Esc pechar" } diff --git a/assets/locales/it.json b/assets/locales/it.json index b2e7bfd7e..3e2336f69 100644 --- a/assets/locales/it.json +++ b/assets/locales/it.json @@ -3,11 +3,14 @@ "1. Open GitHub draft below, then paste the report copied to your clipboard.": "1. Apri la bozza su GitHub qui sotto, poi incolla la segnalazione copiata negli appunti.", "1. Open GitHub draft below. Your title and report will be filled in.": "1. Apri la bozza su GitHub qui sotto. Il titolo e la segnalazione saranno compilati.", "2. Attach your screenshot: copy and paste it, or save and upload the PNG.": "2. Allega la schermata: copiala e incollala, oppure salva e carica il PNG.", + "2D": "2D", "3. Click Submit new issue on GitHub to send your report.": "3. Fai clic su Submit new issue su GitHub per inviare la segnalazione.", "A new configuration, a copy of the active one": "Una nuova configurazione, copia di quella attiva", - "AI": "IA", + "ARRANGE": "DISPONI", "About SolidCraft": "Informazioni su SolidCraft", "Acceleration": "Accelerazione", + "Access": "Accesso", + "Actions": "Azioni", "Active": "Attivo", "Active rule": "Regola attiva", "Add": "Aggiungi", @@ -15,6 +18,7 @@ "Add Mid Radius": "Aggiungi raggio intermedio", "Add Row": "Aggiungi riga", "Add condition": "Aggiungi condizione", + "Add or edit rule": "Aggiungi o modifica regola", "Against": "Rispetto a", "Alignment": "Allineamento", "All Sketch Points": "Tutti i punti dello schizzo", @@ -28,20 +32,33 @@ "Applied Radius": "Raggio applicato", "Apply To": "Applica a", "Apply to selection": "Applica alla selezione", + "Apply your appearance first. Exports assigned appearances and materials created in this design.": "Applica prima l’aspetto. Esporta gli aspetti assegnati e i materiali creati in questo progetto.", "Arc length": "Lunghezza dell'arco", "Area": "Area", + "As-Built": "Come costruito", + "Assign Rule": "Assegna regola", "Attachment": "Collegamento", + "BLEND SURFACE": "SUPERFICIE DI RACCORDO", "BOUNDARY SURFACE": "SUPERFICIE DA CONTORNI", "BROWSER": "STRUTTURA", "Bend Line Position": "Posizione della linea di piega", "Bend Position": "Posizione della piega", "Bend Radius": "Raggio di piega", + "Bend Table": "Tabella delle pieghe", "Bends": "Pieghe", + "Bodies": "Corpi", "Body": "Corpo", "Boundary": "Contorno", "Bounding box": "Riquadro di ingombro", + "CHECK": "VERIFICA", + "COMPONENTS": "COMPONENTI", + "CONFIGURATIONS": "CONFIGURAZIONI", + "CONSTRAIN": "VINCOLA", + "CONTACT": "CONTATTO", + "CONVERT": "CONVERTI", "CSV or JSON: updates existing parameters, adds new ones": "CSV o JSON: aggiorna i parametri esistenti e ne aggiunge di nuovi", "Capture All Positions": "Acquisisci tutte le posizioni", + "Capture Pos.": "Acquisisci pos.", "Catch Direction": "Direzione di aggancio", "Cells": "Celle", "Center X": "Centro X", @@ -52,15 +69,19 @@ "Check collisions": "Controlla collisioni", "Checked": "Controllato", "Choose a new plane. Sketch geometry and dimensions stay unchanged in its two-dimensional coordinates.": "Scegli un nuovo piano. La geometria e le quote dello schizzo restano invariate nelle sue coordinate bidimensionali.", + "Choose…": "Scegli…", + "Circular": "Circolare", "Circumference": "Circonferenza", "Close draft": "Chiudi bozza", "Collisions": "Collisioni", "Colour": "Colore", + "Comment": "Commento", "Component1": "Componente1", + "Config Table": "Tabella config.", "Configuration": "Configurazione", "Configuration rules": "Regole di configurazione", - "Construction": "Costruzione", "Contact": "Contatto", + "Contact Sets": "Insiemi di contatto", "Contact sets": "Gruppi di contatto", "Continuity": "Continuità", "Copy Error Message": "Copia messaggio di errore", @@ -78,15 +99,17 @@ "Cube": "Cubo", "Current orthographic view (1:1 mm)": "Vista ortografica corrente (1:1 mm)", "Current perspective view": "Vista prospettica corrente", + "Curv. Comb": "Pettine curv.", "Curvature (G2)": "Curvatura (G2)", "Curvature change (G3)": "Variazione di curvatura (G3)", "Customize Toolbar": "Personalizza barra degli strumenti", + "Delete": "Elimina", "Delete all": "Elimina tutto", "Delete rule": "Elimina regola", "Delete the row": "Elimina la riga", "Delete the set": "Elimina il gruppo", - "Delete this parameter": "Elimina questo parametro", "Density": "Densità", + "Dependents": "Dipendenti", "Designs you open or save appear here.": "I progetti aperti o salvati vengono visualizzati qui.", "Determined by To Object. Choose Angle to edit the angular extent.": "Determinato da Fino all'oggetto. Scegli Angolo per modificare l'estensione angolare.", "Direction": "Direzione", @@ -98,46 +121,72 @@ "Drive Joint": "Aziona giunto", "Duration": "Durata", "Edges": "Spigoli", + "Edit": "Modifica", "Edit Profile Sketch": "Modifica schizzo del profilo", "Enable rule": "Abilita regola", "Enabled": "Abilitato", + "End bulge": "Rigonfiamento finale", + "End continuity": "Continuità finale", "Explode": "Esplodi", "Explode Text": "Esplodi testo", "Export Animation…": "Esporta animazione…", + "Export CSV…": "Esporta CSV…", "Export Current View as DXF": "Esporta vista corrente come DXF", "Export Current View as DXF…": "Esporta vista corrente come DXF…", + "Export DXF": "Esporta DXF", "Export DXF…": "Esporta DXF…", + "Export JSON…": "Esporta JSON…", "Export hidden edges as dashed lines": "Esporta gli spigoli nascosti come linee tratteggiate", + "Expression": "Espressione", + "Extend to meet": "Estendi fino all'incontro", "Extents": "Estensioni", + "FILES": "FILE", + "FLAT": "SVILUPPO", "Face": "Faccia", "Face attachment lost": "Collegamento alla faccia perso", "Faces": "Facce", "Faces / edges / vertices": "Facce / spigoli / vertici", + "Fastener": "Elemento di fissaggio", + "Favorites": "Preferiti", "Favourite": "Preferito", + "Feature": "Lavorazione", "Files from many CAD programs have Y up, so they open lying on their back here (Z up).": "Molti programmi CAD usano Y come asse verticale: qui, dove l'asse verticale è Z, i loro file si aprono coricati.", "Filter": "Filtro", "Find in Browser": "Trova nella struttura", - "Flat": "Piatto", + "Finish": "Finitura", + "Flat Pattern": "Sviluppo", "Flat size": "Dimensioni dello sviluppo", "Follow camera (Look At sketches)": "Segui la camera (Vista normale agli schizzi)", "Follow the camera (Look At sketches)": "Segui la camera (Vista normale agli schizzi)", "Font": "Carattere", + "From Bodies": "Dai corpi", "From edges": "Spigoli di partenza", "Full Length": "Lunghezza totale", + "Gap": "Gioco", "Grid": "Griglia", + "HISTORY": "CRONOLOGIA", "Height": "Altezza", "Hidden edges": "Spigoli nascosti", "Holes": "Fori", "Holes (edges on them)": "Fori (spigoli dei fori)", "Home view": "Vista iniziale", + "Horiz./Vert.": "Oriz./Vert.", + "IMAGES": "IMMAGINI", + "Import…": "Importa…", "In This Design": "In questo progetto", "In place (surfaces)": "In posizione (superfici)", "In plane": "Nel piano", "Inside": "Interno", "Interferes": "Interferisce", + "Isocurve": "Isocurva", "Issue title": "Titolo della segnalazione", + "JOINTS": "GIUNTI", "Joint Origin1": "Origine giunto1", + "Keep (points on it)": "Mantieni (punti su di essa)", "Keep Tools": "Mantieni corpi utensile", + "Keep of the other surface": "Mantieni dell'altra superficie", + "LIBRARY": "LIBRERIA", + "LINKS": "COLLEGAMENTI", "Later": "Più tardi", "Leave it": "Lascia invariato", "Legacy face attachment. Rebinding to a certified face creates an exact attachment.": "Collegamento alla faccia di vecchio tipo. Ricollegandolo a una faccia certificata si crea un collegamento esatto.", @@ -145,46 +194,70 @@ "Length units": "Unità di lunghezza", "Letter Spacing": "Spaziatura dei caratteri", "Library": "Libreria", + "Library file": "File di libreria", "Line Spacing": "Interlinea", + "Local library": "Libreria locale", "Loop": "Ciclo", + "MANAGE": "GESTISCI", + "MATERIALS": "MATERIALI", + "MODEL": "MODELLA", + "MOTION": "MOVIMENTO", "Margin": "Margine", "Mass": "Massa", + "Mass Center": "Centro di massa", + "Matched restrictions check the final values.": "Le restrizioni le cui condizioni sono soddisfatte verificano i valori finali.", "Material": "Materiale", "Max": "Max", "Mid Radius": "Raggio intermedio", "Middle double-click": "Doppio clic centrale", "Min": "Min", "Mitre": "Giunzione ad angolo", + "Model Parameters": "Parametri del modello", "Modeled": "Modellato", "More toolbar panels": "Altri pannelli della barra degli strumenti", "Motion": "Movimento", + "Move / Copy": "Sposta / Copia", "Move Type": "Tipo di spostamento", + "Move down": "Sposta giù", "Move earlier": "Sposta prima", "Move later": "Sposta dopo", + "Move up": "Sposta su", "Name": "Nome", "Nearest": "Più vicini", + "New": "Nuovo", + "New Comp.": "Nuovo comp.", + "New Sketch": "Nuovo schizzo", + "New rule…": "Nuova regola…", "New study": "Nuovo studio", "No crash reports.": "Nessun rapporto di arresto anomalo.", + "No matching appearance presets.": "Nessun predefinito di aspetto corrispondente.", "No matching appearances": "Nessun aspetto corrispondente", "No visible bodies to export.": "Nessun corpo visibile da esportare.", "None": "Nessuno", - "Normal to sketch": "Normale allo schizzo", "Not available yet": "Non ancora disponibile", "Notch": "Intaglio", + "OUTPUT": "USCITA", "Opacity": "Opacità", "Open GitHub draft": "Apri bozza su GitHub", + "Open local libraries in the desktop app. You can export this design's library here.": "Apri le librerie locali nell’applicazione desktop. Qui puoi esportare la libreria di questo progetto.", "Open-source parametric 3D CAD in Rust. Licensed MIT OR Apache-2.0.": "CAD 3D parametrico open source in Rust. Licenza MIT OR Apache-2.0.", + "Operator": "Operatore", "Other side": "Lato opposto", + "Other surface (mutual trim)": "Altra superficie (taglio reciproco)", "Outside": "Esterno", "Overall length": "Lunghezza complessiva", - "Parameter values": "Valori dei parametri", + "Param. Graph": "Grafico param.", + "Parameter": "Parametro", + "Parts": "Parti", "Pass through": "Passante", "Path": "Percorso", + "Pattern": "Serie", "Per Edge": "Per spigolo", "Pick the tool bodies": "Seleziona i corpi utensile", "Picked": "Selezionato", "Picked point": "Punto selezionato", "Place at the origin instead": "Posiziona invece nell'origine", + "Plastic Rules": "Regole per plastica", "Playback": "Riproduzione", "Plot": "Grafico", "Position": "Posizione", @@ -195,10 +268,11 @@ "Preview Row": "Anteprima della riga", "Preview leaves the current design unchanged.": "L'anteprima lascia invariato il progetto corrente.", "Profiles/Curves": "Profili/Curve", - "Projection": "Proiezione", "Quantity": "Quantità", "RECENT": "RECENTI", + "REFERENCE": "RIFERIMENTO", "RULED SURFACE": "SUPERFICIE RIGATA", + "RULES": "REGOLE", "Radius Fit": "Adattamento del raggio", "Ratio": "Rapporto", "Reattach selected face": "Ricollega la faccia selezionata", @@ -216,6 +290,8 @@ "Remove this point": "Rimuovi questo punto", "Report a bug — review a screenshot and open a GitHub draft": "Segnala un errore — controlla la schermata e apri una bozza su GitHub", "Reset Toolbar": "Reimposta barra degli strumenti", + "Resize Part": "Ridimensiona parte", + "Restore View": "Ripristina vista", "Restore outer boundary": "Ripristina contorno esterno", "Restore the inherited component or physical material appearance": "Ripristina l'aspetto ereditato dal componente o dal materiale fisico", "Result": "Risultato", @@ -224,18 +300,27 @@ "Reverse Direction": "Inverti direzione", "Revert": "Ripristina", "Revert All Positions": "Ripristina tutte le posizioni", + "Revert Pos.": "Ripristina pos.", "Revert Position": "Ripristina posizione", "Review the report and screenshot before opening GitHub.": "Controlla la segnalazione e la schermata prima di aprire GitHub.", "Rim Edge": "Spigolo del bordo", "Roll History Marker Here": "Sposta qui il marcatore della cronologia", "Round": "Arrotondato", "Rule": "Regola", + "Rule name": "Nome della regola", + "Rules run from top to bottom. Matched drives change effective values.": "Le regole vengono eseguite dall’alto verso il basso. Le regole di controllo le cui condizioni sono soddisfatte modificano i valori effettivi.", + "SECTION": "SEZIONE", + "SURFACE QUALITY": "QUALITÀ DELLA SUPERFICIE", "Save Rule": "Salva regola", + "Save View": "Salva vista", "Save the study as an animated GIF, seen as the viewport shows it": "Salva lo studio come GIF animata, così come appare nella vista", "Saved preview. Geometry is being checked before editing.": "Anteprima salvata. Verifica della geometria in corso prima della modifica.", "Scale factor": "Fattore di scala", + "Scene": "Scena", "Search": "Cerca", "Search commands": "Cerca comandi", + "Search this library": "Cerca in questa libreria", + "Section": "Sezione", "Select Other: hold the left button still on the model (or right-click › Select Other…) to list everything under the cursor; click again on the same spot to select the next thing there. Double-click the middle button to go Home (Preferences › Navigation).": "Seleziona altro: tieni premuto il pulsante sinistro senza muovere il puntatore sul modello (o fai clic destro › Seleziona altro…) per elencare gli oggetti sotto il cursore; fai di nuovo clic nello stesso punto per selezionare l'oggetto successivo. Fai doppio clic con il pulsante centrale per tornare alla vista iniziale (Preferenze › Navigazione).", "Select bodies (a face picks its body)": "Seleziona corpi (una faccia seleziona il corpo a cui appartiene)", "Select bodies or faces instead": "Seleziona invece corpi o facce", @@ -243,6 +328,7 @@ "Semantic faces share their appearance across instances.": "Le facce semantiche condividono l'aspetto tra le istanze.", "Send your report on GitHub": "Invia la segnalazione su GitHub", "Shape": "Forma", + "Sheet Rules": "Regole per lamiera", "Show Agent Cursor": "Mostra cursore dell'agente", "Show in folder": "Mostra nella cartella", "Show the pointer an AI agent moves (#35)": "Mostra il puntatore mosso da un agente IA (#35)", @@ -256,17 +342,23 @@ "Sketch points": "Punti dello schizzo", "Slot width": "Larghezza dell'asola", "SolidCraft closed before these designs were saved. Their last autosave can be opened.": "SolidCraft si è chiuso prima del salvataggio di questi progetti. È possibile aprire il loro ultimo salvataggio automatico.", + "Specialise": "Specializza", "Speed": "Velocità", "Stand it up": "Raddrizza", "Stand it up: a quarter turn about X, as one Move feature you can undo.": "Raddrizza: un quarto di giro attorno a X, come singola lavorazione Sposta annullabile.", "Stand this part up?": "Raddrizzare questa parte?", + "Start bulge": "Rigonfiamento iniziale", + "Start continuity": "Continuità iniziale", "Step": "Passo", "Steps": "Passi", + "Stitch the kept pieces": "Cuci i pezzi mantenuti", "Stitch to both bodies": "Cuci a entrambi i corpi", "Study": "Studio", "Style": "Stile", "Suppressed": "Sospeso", + "Surface": "Superficie", "Swap Ends": "Scambia estremità", + "TRIM": "TAGLIA", "Tangent (G1)": "Tangenza (G1)", "Tangent Chain": "Catena tangente", "Tear": "A strappo", @@ -285,20 +377,23 @@ "To edges": "Spigoli di arrivo", "Tolerance": "Tolleranza", "Too close": "Troppo vicini", + "Trimming tool (plane, face or curves)": "Utensile di taglio (piano, faccia o curve)", "Turn off section analysis before exporting the view.": "Disattiva l'analisi in sezione prima di esportare la vista.", "Type": "Tipo", "UNTRIM": "RIPRISTINA SUPERFICIE", + "Unit": "Unità", "Updating the preview": "Aggiornamento dell'anteprima", "Use active author placement": "Usa posizionamento di creazione attivo", "Use fixed plane": "Usa piano fisso", "Use saved fixed plane": "Usa piano fisso salvato", "Use selected face as fixed plane": "Usa faccia selezionata come piano fisso", + "User Parameters": "Parametri utente", "VIEW": "VISTA", + "VIEWS": "VISTE", "Value": "Valore", "Velocity": "Velocità", "Vertices": "Vertici", "View navigator": "Navigatore della vista", - "Visible bodies only. Curves use line segments (0.01 mm tolerance).": "Solo corpi visibili. Le curve usano segmenti di retta (tolleranza 0.01 mm).", "Volume": "Volume", "Wall": "Parete", "Wall Location": "Posizione della parete", @@ -306,6 +401,13 @@ "When": "Quando", "Width": "Larghezza", "Will fail": "Non riuscirà", + "X angle": "Angolo X", + "X distance": "Distanza X", + "Y angle": "Angolo Y", + "Y distance": "Distanza Y", + "Z angle": "Angolo Z", + "Z distance": "Distanza Z", + "Zebra": "Zebra", "angle, height": "angolo, altezza", "appearance.dielectric_ior": "Indice di rifrazione dielettrico", "appearance.metallic": "Metallicità", @@ -314,7 +416,13 @@ "appearance.roughness": "Rugosità", "appearance.surface_response": "Risposta della superficie", "browser.body_name": "Corpo{number}", + "browser.calibrate_title": "Calibra: {name}", + "browser.capture_many": "Sono stati spostati {count} componenti, ma le loro posizioni non sono state acquisite.", + "browser.capture_note": "Acquisisci posizione mantiene la nuova posizione; Ripristina posizione riporta a quella precedente.", + "browser.capture_one": "Un componente è stato spostato, ma la sua posizione non è stata acquisita.", "browser.component_name": "Componente{number}", + "browser.edit_canvas_title": "Modifica tela: {name}", + "browser.move_title": "Sposta: {name}", "browser.parameters": "Parametri ({count})", "browser.precision": "Precisione: {precision}", "browser.sketch_name": "Schizzo{number}", @@ -329,6 +437,7 @@ "cmd.appearance_assign": "Aspetto", "cmd.appearance_library": "Libreria degli aspetti", "cmd.appearance_list": "Elenca aspetti", + "cmd.assembly_bom": "Distinta base", "cmd.body_rename": "Rinomina corpo", "cmd.browser_group": "Nuovo gruppo", "cmd.browser_move": "Sposta elementi della struttura", @@ -350,6 +459,8 @@ "cmd.component_insert_design": "Inserisci progetto", "cmd.component_links": "Elenca collegamenti", "cmd.component_list": "Elenca componenti", + "cmd.component_metadata": "Proprietà della parte", + "cmd.component_metadata_set": "Modifica proprietà della parte", "cmd.component_move_bodies": "Sposta corpi nel componente", "cmd.component_move_sketches": "Sposta schizzi nel componente", "cmd.component_paste_new": "Incolla come nuovo", @@ -406,6 +517,7 @@ "cmd.edit_checkpoint": "Punto di ripristino", "cmd.edit_restore_checkpoint": "Ripristina punto di ripristino", "cmd.engine_commands": "Elenca comandi", + "cmd.engine_describe": "Descrivi comando", "cmd.explode_create": "Vista esplosa", "cmd.explode_delete": "Elimina vista esplosa", "cmd.explode_list": "Elenca viste esplose", @@ -438,6 +550,7 @@ "cmd.joint_drive": "Aziona giunti", "cmd.joint_edit": "Modifica giunto", "cmd.joint_gear": "Ingranaggio", + "cmd.joint_inspect": "Ispeziona giunto", "cmd.joint_limits": "Limiti del giunto", "cmd.joint_list": "Elenca giunti", "cmd.joint_motion_link": "Collegamento di movimento", @@ -447,6 +560,7 @@ "cmd.joint_rigid_group": "Gruppo rigido", "cmd.joint_screw": "Vite", "cmd.joint_solve": "Risolvi giunti", + "cmd.joint_sweep": "Scansiona giunto", "cmd.library_apply": "Applica elemento della libreria locale", "cmd.library_export": "Esporta libreria del progetto", "cmd.library_inspect": "Esamina libreria locale", @@ -595,6 +709,7 @@ "cmd.sketch_spline_fit_point": "Spline interpolante", "cmd.sketch_spun_profile": "Profilo di tornitura", "cmd.sketch_toggle_driven": "Attiva/Disattiva quota di riferimento", + "cmd.sketch_trim_path": "Taglia lungo il percorso", "cmd.solid_align": "Allinea", "cmd.solid_boundary_fill": "Riempimento del contorno", "cmd.solid_bounding_solid": "Solido di ingombro", @@ -637,13 +752,23 @@ "cmd.timeline_roll_to": "Sposta marcatore della cronologia", "cmd.timeline_rollback": "Sposta marcatore della sequenza temporale", "cmd.timeline_suppress": "Sospendi lavorazione", + "cmd.view_ambient_occlusion": "Occlusione ambientale", "cmd.view_apply": "Ripristina vista con nome", "cmd.view_delete": "Elimina vista con nome", + "cmd.view_graphics_preset": "Preimpostazione grafica", "cmd.view_list": "Elenca viste con nome", "cmd.view_navigate": "Naviga nella vista", "cmd.view_rename": "Rinomina vista con nome", "cmd.view_save": "Nuova vista con nome", - "command name": "nome del comando", + "color.copy": "Fai clic per copiare i valori del colore", + "color.edit": "Fai clic per modificare il colore", + "color.gamma": "Valori del colore mostrati nello spazio gamma 0-255", + "color.hue": "Tonalità", + "color.linear": "Valori del colore mostrati nello spazio lineare 0-1", + "color.saturation_value": "Saturazione e valore", + "color.selected": "Colore selezionato", + "contact.components_count": "{count} componenti", + "contact.enabled_label": "abilitato", "coupling.gear_1": "Ruota dentata 1", "coupling.gear_1_pick": "Ruota dentata 1 (facoltativa)", "coupling.gear_2": "Ruota dentata 2", @@ -660,8 +785,30 @@ "coupling.rack": "Cremagliera", "coupling.radius_1": "Raggio 1", "coupling.radius_2": "Raggio 2", + "crash.announce": "L'ultima volta SolidCraft si è chiuso inaspettatamente o ha riscontrato un errore interno. È stato salvato un rapporto di arresto anomalo (Aiuto > Rapporti di arresto anomalo…).", + "crash.copy_folder": "Copia percorso della cartella", + "crash.copy_path": "Copia percorso", + "crash.deleted": "Eliminati {count} rapporti.", + "crash.detected_time": "Rilevato {time} UTC", + "crash.intro": "I rapporti di arresto anomalo restano su questo computer e non vengono mai inviati altrove. Segnala… apre una bozza che puoi rivedere prima di condividere qualsiasi cosa.", + "crash.kind_command": "Errore interno in un comando", + "crash.kind_internal": "Errore interno", + "crash.kind_kernel": "Errore del kernel (ripristinato)", + "crash.kind_unclean": "Chiuso inaspettatamente", + "crash.previous_session": "Una sessione precedente di SolidCraft è terminata inaspettatamente o ha riscontrato un errore interno. I rapporti delle chiusure anomale vengono rilevati all'avvio. Vedi Aiuto > Rapporti di arresto anomalo… per i dettagli.", + "crash.replayable": "riproducibile", + "crash.report": "Segnala…", + "crash.unclean_explanation": "Rilevato a un avvio successivo; l'ora esatta di chiusura non è stata registrata. Anche uno spegnimento del sistema o un arresto forzato possono causare una chiusura anomala.", + "delete.and_more": "… e altri {count}", + "dialog.bodies_count": "{count} corpi", + "dialog.clearance_invalid": "il gioco deve essere una lunghezza pari o superiore a 0", + "dialog.compute": "Calcola", + "dialog.compute_again": "Ricalcola", "dialog.computing": "Calcolo in corso… {seconds} s", + "dialog.could_not_be_checked": "impossibile verificare", "dialog.custom_axis": "↖ Asse personalizzato", + "dialog.dimension_insert_hint": "Fai doppio clic su un’altra quota di controllo per inserirne il nome", + "dialog.dimension_name": "Quota: {name}", "dialog.edit_title": "MODIFICA {title}", "dialog.select": "↖ Seleziona", "dialog.selected_count": "↖ Selezionati: {count}", @@ -685,9 +832,30 @@ "dxf.progress.write": "Scrittura DXF (5/5)", "dxf.tolerance": "Tolleranza delle curve", "dxf.tolerance_help": "Solo corpi visibili. Le curve usano segmenti rettilinei. Una tolleranza minore produce curve più precise e richiede più tempo e memoria.", - "expression, e.g. 25 mm": "espressione, ad es. 25 mm", + "file_load.built": "Costruite finora: {built} di {total} feature.", + "file_load.converting": "Conversione del solido {done} di {total}", + "file_load.inserting": "Inserimento della geometria", + "file_load.opening": "Apertura del progetto", + "file_load.preparing_thumbnail": "Preparazione dell'anteprima...", + "file_load.preparing_view": "Preparazione della vista...", + "file_load.preview_note": "Anteprima salvata. La geometria viene verificata prima della modifica.", + "file_load.reading": "Lettura del file...", + "file_load.reading_percent": "Lettura del file... {percent}%", + "file_load.rebuilding": "Ricostruzione della feature {done} di {total}", + "file_load.recovering": "Recupero del progetto", + "file_load.stopping": "In attesa dell'arresto dell'operazione precedente...", + "file_load.waiting": "In attesa dell'operazione sul file", "fits the face, e.g. M8": "adatta alla faccia, ad es. M8", "from the rule": "dalla regola", + "help.apache": "Licenza Apache 2.0", + "help.attributions": "Attribuzioni (ATTRIBUTION.md)", + "help.build": "Versione {version} · commit {commit} · compilata il {date}", + "help.font_details": "L’interfaccia usa i caratteri integrati di egui (Ubuntu Light e Hack, con licenze Ubuntu Font Licence e MIT/Bitstream Vera; Noto Emoji e il carattere per icone emoji, con licenze OFL e MIT). Il testo degli schizzi usa Liberation Sans (SIL OFL 1.1). Il pacchetto di caratteri facoltativo di The Crafting Apps, craft-fonts (BIZ UDPGothic, Shippori Mincho, BIZ UDMincho, Noto Sans CJK SC, Noto Sans Arabic; SIL OFL 1.1), non è incluso nelle build di SolidCraft.", + "help.fonts": "Caratteri", + "help.licences": "Licenze", + "help.mit": "Licenza MIT", + "help.notice": "NOTICE", + "help.third_party": "Licenze di terze parti", "home.documentation": "Documentazione", "home.in_this_browser": "in questo browser", "home.missing": "non presente", @@ -713,9 +881,30 @@ "install.menu": "Installa applicazione…", "install.steps_intro": "Safari installa le applicazioni web dai propri menu:", "install.title": "Installa SolidCraft", + "issue.body_label": "Testo della segnalazione", + "issue.note_image_copied": "Incolla l'immagine nella bozza su GitHub, oppure salva il PNG se la copia dell'immagine non è disponibile.", + "issue.note_opened": "Rivedi la bozza su GitHub e allega la schermata. Il pulsante Submit new issue di GitHub la pubblica.", + "issue.note_opened_copied": "Segnalazione copiata. Incollala nella bozza su GitHub, allega la schermata, poi fai clic su Submit new issue su GitHub.", + "issue.note_removed": "Schermata rimossa da questa bozza.", + "issue.note_report_copied": "Segnalazione copiata. Incollala nella bozza su GitHub se necessario.", + "issue.note_save_failed": "Impossibile salvare la schermata: {error}", + "issue.note_saved": "Schermata salvata. Allega il PNG nella bozza su GitHub.", + "issue.save_screenshot": "Salva schermata…", "joint.from_bodies_hint": "Ogni corpo selezionato viene spostato in un nuovo componente distinto, mantenendo la sua posizione.", "joint.one_body": "Entrambe le selezioni sono su {body}. Seleziona il secondo elemento su un'altra parte.", "joint.one_component": "Queste parti sono corpi di un unico componente: {bodies}. Un giunto muove un componente rispetto a un altro, quindi ogni parte richiede un componente distinto.", + "keymap.command_id": "ID comando", + "keymap.empty": "Nessun comando corrispondente", + "keymap.use_anyway": "Usa comunque {key} qui", + "manage.appearance_hint": "Scegli un aspetto per la selezione o trascina un campione su un corpo o una faccia.", + "manage.assign_hint": "Seleziona i corpi e scegli la loro regola di progettazione per parti in plastica.", + "manage.config_hint": "Modifica righe, colonne e regole di configurazione, poi attiva una riga o visualizzane l’anteprima.", + "manage.empty": "Nessuna riga corrispondente.", + "manage.material_hint": "Seleziona i corpi e scegli il loro materiale fisico.", + "manage.parameters_hint": "Modifica espressioni e unità. Le modifiche vengono applicate premendo Invio o uscendo da un campo.", + "manage.rules_hint": "Scegli una regola da modificare o creane una nuova. Conferma per salvare la regola.", + "measure.at": "In", + "measure.item": "Elemento {number}", "messages.ago_h": "{n} h fa", "messages.ago_min": "{n} min fa", "messages.ago_s": "{n} s fa", @@ -727,8 +916,16 @@ "messages.title": "Messaggi", "motion.checked_to": "Controllato solo fino al passo {step}: il controllo ha esaurito il limite di calcolo", "motion.collision": "{a} · {b}: passi {steps}", + "motion.delete_key": "Elimina fotogramma chiave", "motion.duration_hint": "secondi (vuoto: per passo)", + "motion.key_here": "Inserisci fotogramma chiave qui", + "motion.key_here_hint": "Aggiungi un fotogramma chiave in questo passo con il valore attuale del giunto", "motion.no_collisions": "Nessuna collisione durante lo studio", + "motion.step_back": "Passo indietro", + "motion.step_forward": "Passo avanti", + "motion.to_end": "Alla fine", + "motion.to_start": "All’inizio", + "motion.track_name": "Traccia {number}", "nav.touchpad.help": "Tieni premuto Shift e muovi il puntatore per eseguire una panoramica; tieni premuto Alt/Option e muovilo per orbitare. Non serve premere pulsanti del mouse. Lo scorrimento verticale regola lo zoom.", "nav.touchpad.label": "Touchpad", "nav.touchpad.orbit": "Orbita (tieni premuto Alt/Option e muovi il puntatore; senza pulsanti del mouse)", @@ -737,11 +934,13 @@ "nav.touchpad.zoom": "Zoom (scorrimento verticale o gesto di pizzicamento)", "needs two joints": "richiede due giunti", "new configuration": "nuova configurazione", - "new name": "nuovo nome", "new parameter": "nuovo parametro", + "no hole": "nessun foro", "no interference": "nessuna interferenza", "no joint that moves yet": "nessun giunto mobile ancora presente", "no picture": "nessuna immagine", + "none": "nessuno", + "parts.automatic_name": "automatico", "pattern.alignment_2": "Allineamento 2", "pattern.alignment_hint": "Il conteggio include l'originale. Centro distribuisce le copie sui due lati; Inverti sceglie il lato con la copia in più per totali pari.", "pattern.direction_1": "Direzione 1", @@ -749,12 +948,19 @@ "pattern.flip_direction": "Inverti direzione", "pick a hole to seat it, or OK places it at the origin": "seleziona un foro in cui inserirlo, oppure premi OK per posizionarlo nell'origine", "pick one or two vertices, edges or faces": "seleziona uno o due vertici, spigoli o facce", + "prefs.cpu": "CPU (software)", + "prefs.minutes_suffix": " min", + "properties.title": "Proprietà: {name}", + "recovery.days_ago": "{count} giorni fa", + "recovery.detail": "{file} · {features} feature · salvato automaticamente {when}", + "recovery.hours_ago": "{count} h fa", + "recovery.just_now": "proprio ora", + "recovery.min_ago": "{count} min fa", + "recovery.never_saved": "mai salvato", "render.background": "Sfondo della scena", "render.fit": "Inquadra prodotto", - "render.image_cancel": "Annulla rendering", "render.image_cancelled": "Rendering annullato", "render.image_cancelling": "Annullamento", - "render.image_check": "Verifica richiesta di rendering", "render.image_completed": "Immagine pronta per l'esportazione", "render.image_encoding": "Codifica PNG", "render.image_export": "Esporta PNG", @@ -801,6 +1007,19 @@ "sample.plate.name": "Piastra di esempio", "sample.vents.about": "Asole in ripetizione rettangolare: righe, colonne e passo sono parametri", "sample.vents.name": "Piastra di ventilazione", + "search.command_keys": "Invio esegui Maiusc+Invio esegui e tieni aperto Esc chiudi", + "search.commands": "Comandi", + "search.design": "In questo progetto", + "search.feature": "Feature", + "search.invalid": "Non valido", + "search.keys": "↑ ↓ scegli Invio esegui Tab completa nome Esc chiudi", + "search.no_match": "Nessun comando corrisponde a '{query}'", + "search.parameter": "Parametro", + "search.recent": "Recenti", + "search.run": "Esegui comando", + "search.suggest": "Intendevi {label}?", + "search.try": "Digita il nome di un comando, una feature di questo progetto o un parametro. Per eseguire un comando con dei valori, digita il suo id e un oggetto JSON: {example}", + "search.valid": "Valido", "settings.display_quality_note": "I livelli più fini rendono più uniformi le facce curve e gli spigoli e richiedono più tempo per la mesh. Cambia solo la vista, mai il progetto o le esportazioni.", "settings.frame_rate_note": "Mostra i fotogrammi al secondo nell'angolo inferiore destro della vista. Quando è attivo, la vista viene ridisegnata continuamente.", "settings.measure_axis_distances": "Mostra distanze X/Y/Z", @@ -811,23 +1030,37 @@ "settings.reset_intro": "Queste impostazioni non funzionano su questo computer e impedirebbero l'avvio di SolidCraft, quindi sono state modificate:", "settings.reset_title": "Le impostazioni sono state modificate", "settings.supersampling_note": "Disegna la vista a una risoluzione maggiore e la riduce tramite filtro: spigoli, linee e griglia più uniformi sugli schermi sotto il 4K. Richiede tempo GPU: circa 2.25× i pixel a 1.5× e 4× a 2×.", + "shortcut.json_error": "i parametri devono essere in formato JSON: {error}", + "shortcut.no_command": "nessun comando `{id}`; il testo prima del JSON deve essere un ID comando", + "shortcut.pin": "Fissa in cima al riquadro S", + "shortcut.unpin": "Rimuovi fissaggio", "sketch.degrees_of_freedom": "{count} gradi di libertà", + "sketch.dof_left": "{count} gradi di libertà rimanenti", + "sketch.dof_left_one": "{count} grado di libertà rimanente", "sketch.draw_curves": "Disegna come {linetype}", "sketch.make_selection": "Converti la selezione in {linetype}", "sketch.open_ends": "Aperte {count}", "sketch.untied_ends": "Non vincolate {count}", + "sketch_panel.attached": "Collegato a {body} / {path}", + "sketch_panel.author": "Posizionamento originale: {path}", + "sketch_panel.dimension_hint": "Inserisci un valore o un’espressione, poi premi OK.", + "sketch_panel.move_hint": "Inserisci distanze e angolo, poi premi OK.", + "sketch_panel.redefine_title": "{command}: {name}", + "sketch_panel.sheet_attachment": "Collegato a una faccia piana di un corpo in lamiera; segue il pannello quando la lamiera cambia.", + "sketch_panel.text_hint": "Modifica il testo e la sua posizione, poi premi OK.", + "sketch_panel.use_plane": "Usa il piano {plane}", "sketch_text.align_center": "Centro", "sketch_text.align_left": "Sinistra", "sketch_text.align_right": "Destra", "sketch_text.bold": "Grassetto", "sketch_text.builtin_font": "{family} (integrato)", - "sketch_text.font_search": "Cerca caratteri", "sketch_text.italic": "Corsivo", "sketch_text.loading_fonts": "Ricerca dei caratteri installati…", "sketch_text.on_path": "Il testo segue il percorso: la curva ne determina la posizione", "sketch_text.path_clear": "Scollega il testo dalla curva", "sketch_text.path_hint": "Una curva dello schizzo seguita dal testo: fai clic qui, poi sulla curva", "sketch_text.use_font_file": "Usa il file di carattere {path}", + "solid": "solido", "the parts library is not available": "la libreria delle parti non è disponibile", "thread.automatic_size": "Dimensione automatica", "thread.designation": "Designazione", @@ -839,7 +1072,9 @@ "timeline.rename_group": "Rinomina cartella di lavorazioni", "timeline.reorder_many": "Riordina lavorazioni", "timeline.ungroup": "Rimuovi cartelle di lavorazioni", + "to the face": "alla faccia", "to the next face": "fino alla faccia successiva", + "toolbar.customize_note": "Scheda {tab}. Seleziona un comando per assegnargli un pulsante nella barra degli strumenti. Puoi anche trascinare una riga dal menu a discesa di un pannello sulla barra, trascinare un pulsante fuori dalla barra per rimuoverlo o usare la puntina di una riga del menu a discesa.", "toolbar.image": "IMMAGINE", "toolbar.render": "RENDERING", "toolbar.render_scene": "SCENA", @@ -848,18 +1083,21 @@ "trace.stopped_by_loop": "Termina al campione {sample}: la catena chiusa che passa per {joint} non può chiudersi ulteriormente", "ui.1_degree_of_freedom": "1 grado di libertà", "ui.3d_mouse_speed": "Velocità del mouse 3D", - "ui.3d_mouse_windows": "Mouse 3D", "ui.3d_sketch": "Schizzo 3D", - "ui.about": "Informazioni", "ui.activate": "Attiva", "ui.active_component": "Componente attivo", + "ui.add_configuration": "Aggiungi configurazione", + "ui.add_parameter": "Aggiungi parametro", "ui.agent_chat": "Chat con l'agente", + "ui.agent_chat_add": "Allega file", + "ui.agent_chat_add_file": "Scegli un file…", "ui.agent_chat_allow": "Consenti", "ui.agent_chat_allowed": "Consentito", "ui.agent_chat_answered": "Risposta: {option}", "ui.agent_chat_approval": "Consentire questa azione all'agente?", "ui.agent_chat_attach_view": "Allega vista", "ui.agent_chat_attach_view_tip": "Invia un'immagine della vista corrente insieme al messaggio", + "ui.agent_chat_attachable": "Immagini, PDF, testo e file CAD", "ui.agent_chat_auth_agent": "Accedi con {name}", "ui.agent_chat_auth_env": "Imposta {vars} nell'ambiente e riavvia SolidCraft.", "ui.agent_chat_auth_needed": "L'agente richiede l'accesso. L'accesso avviene tramite l'agente stesso; SolidCraft non vede mai password o chiavi.", @@ -879,11 +1117,33 @@ "ui.agent_chat_deny": "Nega", "ui.agent_chat_desktop_only": "La chat con l'agente richiede l'applicazione desktop.", "ui.agent_chat_detecting": "Ricerca degli agenti…", + "ui.agent_chat_dock": "Ancora nel pannello laterale", "ui.agent_chat_dock_left": "Aggancia a sinistra", "ui.agent_chat_dock_right": "Aggancia a destra", + "ui.agent_chat_drop_hint": "Rilascia per allegare al prossimo messaggio", "ui.agent_chat_edit": "Modifica", "ui.agent_chat_exited": "L'agente si è arrestato.", "ui.agent_chat_failed_start": "Impossibile avviare l'agente: {error}", + "ui.agent_chat_file_cad_not_read": "{name}: un file CAD viene importato nel progetto, non letto", + "ui.agent_chat_file_empty_picture": "{name}: immagine vuota", + "ui.agent_chat_file_error": "{name}: {error}", + "ui.agent_chat_file_heic": "{name}: le immagini HEIC non possono essere lette qui; esportala prima in JPEG o PNG", + "ui.agent_chat_file_importing": "Importazione nel progetto…", + "ui.agent_chat_file_kinds": "{name}: si possono allegare immagini (PNG, JPEG, GIF, WebP, BMP, TIFF), file di testo (anche SVG) e file CAD (STEP, IGES, FreeCAD, Rhino, STL, 3MF, OBJ, glTF)", + "ui.agent_chat_file_loading": "Lettura del file…", + "ui.agent_chat_file_not_a_file": "{name}: non è un file", + "ui.agent_chat_file_not_a_picture": "{name}: non è un'immagine", + "ui.agent_chat_file_not_utf8": "{name}: non è testo UTF-8", + "ui.agent_chat_file_picture_too_big": "{name}: un'immagine può pesare al massimo {max} MB", + "ui.agent_chat_file_text_too_big": "{name}: un file di testo può pesare al massimo {max} KB", + "ui.agent_chat_file_too_large": "{name}: troppo grande", + "ui.agent_chat_file_too_large_to_send": "{name}: troppo grande da inviare, anche ridimensionato", + "ui.agent_chat_file_unreadable_picture": "{name}: non è un'immagine leggibile", + "ui.agent_chat_files": "File: {files}", + "ui.agent_chat_files_left_out": "Un messaggio può contenere al massimo {max} file; esclusi: {files}", + "ui.agent_chat_files_loading": "In attesa della lettura dei file", + "ui.agent_chat_files_max": "Al massimo {max} file per messaggio", + "ui.agent_chat_import_failed": "{name}: importazione non riuscita: {error}", "ui.agent_chat_intro": "Conversa con un agente di programmazione che già usi o con un endpoint di modello a tua scelta. Opera sul progetto aperto tramite gli strumenti di SolidCraft: le modifiche sono visibili mentre vengono eseguite e si annullano in un solo passo per messaggio. Le azioni consentite senza conferma si impostano in Preferenze > IA.", "ui.agent_chat_key_in_env": "chiave impostata", "ui.agent_chat_left": "Sinistra", @@ -892,18 +1152,23 @@ "ui.agent_chat_model_tip": "Il modello usato dall'agente. La scelta viene memorizzata per questo agente.", "ui.agent_chat_new": "Nuova chat", "ui.agent_chat_new_confirm": "Avviare una nuova chat? Quella corrente verrà cancellata.", - "ui.agent_chat_new_yes": "Nuova chat", + "ui.agent_chat_next_picture": "Immagine successiva", "ui.agent_chat_no_cli": "solidcraft-cli non è stato trovato accanto all'applicazione, quindi l'agente non può accedere al progetto.", "ui.agent_chat_no_control": "L'endpoint della chat con l'agente non si è avviato, quindi l'agente non può accedere al progetto.", "ui.agent_chat_no_images": "Questo agente non accetta immagini", + "ui.agent_chat_no_picture": "Negli appunti non c'è nessuna immagine", "ui.agent_chat_none_found": "Nessun agente di programmazione trovato. Installane uno tra questi, poi premi Aggiorna:", "ui.agent_chat_none_found_short": "Nessun agente trovato", "ui.agent_chat_not_installed": "Non installato", "ui.agent_chat_not_signed_in": "accesso non effettuato", + "ui.agent_chat_own_window": "Finestra separata", + "ui.agent_chat_paste_picture": "Incolla un'immagine", "ui.agent_chat_permission": "L'agente chiede di eseguire: {title}", "ui.agent_chat_pick": "Agente", "ui.agent_chat_placeholder": "Chiedi all'agente di modificare il progetto…", "ui.agent_chat_placeholder_busy": "Metti in coda un messaggio per quando l'agente avrà terminato (Ctrl+Enter: invia subito)", + "ui.agent_chat_pop_out": "Apri in una finestra separata, che puoi spostare su un altro schermo", + "ui.agent_chat_previous_picture": "Immagine precedente", "ui.agent_chat_privacy": "I dati vengono inviati solo all'agente che esegui, con il tuo account.", "ui.agent_chat_privacy_note": "SolidCraft non invia dati ad alcun servizio: l'agente che esegui comunica con il proprio servizio usando il tuo account. SolidCraft non vede né memorizza mai chiavi o password.", "ui.agent_chat_queue": "Metti in coda", @@ -913,6 +1178,8 @@ "ui.agent_chat_refresh": "Aggiorna", "ui.agent_chat_refused": "Non consentito all'agente: {reason}", "ui.agent_chat_remove": "Rimuovi dalla coda", + "ui.agent_chat_remove_file": "Rimuovi da questo messaggio", + "ui.agent_chat_remove_imported": "Rimuovi da questo messaggio; la parte resta nel progetto (Annulla la rimuove)", "ui.agent_chat_right": "Destra", "ui.agent_chat_save": "Salva", "ui.agent_chat_send": "Invia", @@ -957,6 +1224,7 @@ "ui.ai_bad_url": "Inserisci un URL che inizi con http:// o https://", "ui.ai_base_url": "URL di base", "ui.ai_button": "IA", + "ui.ai_command_hint": "my-agent --acp", "ui.ai_copy_suffix": "copia", "ui.ai_custom_url": "URL personalizzato", "ui.ai_default": "Predefinito", @@ -977,8 +1245,10 @@ "ui.ai_mode_edits_note": "I comandi di modellazione vengono eseguiti senza chiedere; salvataggio, apertura, esportazione e altre azioni sui file o distruttive richiedono comunque conferma.", "ui.ai_mode_global": "Come impostato sopra", "ui.ai_model": "Modello", + "ui.ai_model_hint": "qwen3:14b", "ui.ai_modes_scope": "Queste impostazioni riguardano gli strumenti di SolidCraft. Gli strumenti dell'agente (shell, modifiche ai file) seguono la modalità dell'agente, selezionabile nell'intestazione del pannello chat quando l'agente supporta le modalità.", "ui.ai_name": "Nome", + "ui.ai_name_hint": "Il mio agente", "ui.ai_need_command": "Inserisci il comando che avvia l'agente", "ui.ai_need_model": "Inserisci il nome del modello", "ui.ai_no_answer": "L'agente non ha risposto in tempo", @@ -1009,7 +1279,10 @@ "ui.ai_toolbar_button": "Mostra pulsante nella barra degli strumenti", "ui.ai_toolbar_button_note": "Il pulsante IA all'estremità destra della barra degli strumenti. Ctrl+Shift+A e il menu Vista aprono comunque il pannello.", "ui.ai_undo_tip": "Annulla in un solo passo tutte le modifiche dell'agente per questo messaggio", + "ui.ai_url_hint": "https://example.com/v1", "ui.all": "Tutti", + "ui.ambient_occlusion": "Occlusione ambientale", + "ui.ambient_occlusion_help": "Ombreggiatura morbida dove le superfici opache si incontrano. Richiede la vista GPU.", "ui.analysis": "Analisi", "ui.angle": "Angolo", "ui.angle_decimals": "Decimali degli angoli", @@ -1020,7 +1293,8 @@ "ui.anti_aliasing": "Antialiasing", "ui.apply": "Applica", "ui.arc": "Arco", - "ui.assemble": "Assembla", + "ui.assistant": "Assistente", + "ui.assistant_waiting": "{count} approvazioni in attesa", "ui.autosave_every": "Salvataggio automatico ogni", "ui.axes": "Assi", "ui.axis": "Asse", @@ -1028,8 +1302,14 @@ "ui.base_point": "Punto base", "ui.blocked": "Bloccato", "ui.bodies": "Corpi", + "ui.bodies_all_if_none": "Corpi (tutti se nessuno)", "ui.box": "Parallelepipedo", "ui.break": "Spezza", + "ui.browser_bodies_one": "{count} corpo", + "ui.browser_bodies_other": "{count} corpi", + "ui.browser_collapse": "Comprimi la struttura", + "ui.browser_expand": "Espandi la struttura", + "ui.browser_title": "Struttura", "ui.calibrate": "Calibra", "ui.cancel": "Annulla", "ui.canvases": "Immagini di riferimento", @@ -1039,7 +1319,6 @@ "ui.chamfer": "Smusso", "ui.chamfer_type": "Tipo di smusso", "ui.change_workspace": "Cambia area di lavoro", - "ui.chord_length": "Lunghezza della corda", "ui.circle": "Cerchio", "ui.circular_pattern": "Ripetizione circolare", "ui.clear": "Cancella", @@ -1072,11 +1351,9 @@ "ui.command_done": "{command} completato", "ui.command_palette_hint": "Digita un comando, ad es. {example} — oppure premi S per cercare", "ui.concentric": "Concentrico", - "ui.configurations": "Configurazioni", "ui.conic_curve": "Curva conica", "ui.constant": "Costante", "ui.constraints_conflict": "Vincoli in conflitto", - "ui.construct": "Costruisci", "ui.construction": "Costruzione", "ui.context_menu": "Menu contestuale", "ui.continuity_g0": "G0 spigolo vivo", @@ -1102,7 +1379,6 @@ "ui.cylinder": "Cilindro", "ui.dark": "Scuro", "ui.default_modelling_orientation": "Orientamento di modellazione predefinito", - "ui.degrees_of_freedom": "gradi di libertà", "ui.delete": "Elimina", "ui.depth": "Profondità", "ui.design": "Progettazione", @@ -1144,7 +1420,6 @@ "ui.equivalent_radius": "Raggio equivalente", "ui.expand": "Espandi", "ui.exportDxf": "Esporta DXF…", - "ui.export_ellipsis": "Esporta...", "ui.export_ellipsis_keymap": "Esporta…", "ui.export_keymap_tip": "Tasti, preferiti del riquadro S e barra degli strumenti, in un file", "ui.extend": "Estendi", @@ -1168,8 +1443,14 @@ "ui.frame_rate": "Frequenza dei fotogrammi", "ui.front": "Frontale", "ui.fully_constrained": "Completamente vincolato", + "ui.function": "Funzione", "ui.general": "Generali", "ui.graphics": "Grafica", + "ui.graphics_custom": "Personalizzata", + "ui.graphics_performance": "Prestazioni", + "ui.graphics_preset": "Preimpostazione grafica", + "ui.graphics_preset_help": "Qualità: occlusione ambientale, qualità di visualizzazione Fine e supersampling adattivo 2×. Prestazioni: nessuna occlusione ambientale, qualità di visualizzazione Normale e supersampling disattivato. Le modifiche manuali mostrano Personalizzata. MSAA resta invariato.", + "ui.graphics_quality": "Qualità", "ui.grid_follows_view": "La griglia segue la vista", "ui.grid_follows_view_hint": "Le viste laterali mostrano la griglia sul piano verticale rivolto verso di esse anziché sul piano di appoggio", "ui.ground_shadow": "Ombra sul piano di appoggio", @@ -1198,6 +1479,7 @@ "ui.heading_home": "INIZIO", "ui.heading_insert": "INSERISCI", "ui.heading_inspect": "ESAMINA", + "ui.heading_interference": "INTERFERENZA", "ui.heading_loft": "LOFT", "ui.heading_make": "REALIZZA", "ui.heading_measure": "MISURA", @@ -1228,7 +1510,6 @@ "ui.heading_sheet_metal": "LAMIERA", "ui.heading_shell": "SVUOTA", "ui.heading_sketch": "SCHIZZO", - "ui.heading_sketch_palette": "TAVOLOZZA SCHIZZO", "ui.heading_sketch_scale": "SCALA SCHIZZO", "ui.heading_solid": "SOLIDO", "ui.heading_sphere": "SFERA", @@ -1247,6 +1528,7 @@ "ui.hideOrigin": "Nascondi origine", "ui.hidePlanes": "Nascondi piani", "ui.hideProfile": "Nascondi profilo", + "ui.history_title": "Cronologia", "ui.hole": "Foro", "ui.hole_tap_type": "Tipo di maschiatura del foro", "ui.hole_type": "Tipo di foro", @@ -1266,11 +1548,12 @@ "ui.length_decimals": "Decimali delle lunghezze", "ui.light": "Chiaro", "ui.line": "Linea", - "ui.linetype": "Tipo di linea", "ui.lock": "Blocca", "ui.loft": "Loft", "ui.look_at": "Vista normale", "ui.look_at_anim_desc": "Viste degli assi, Vista normale, Vista iniziale e Adatta", + "ui.manipulator_free_alt": "Trascinamento libero del manipolatore anche con Alt/Option", + "ui.manipulator_free_alt_tip": "Attivo: Alt/Option o Ctrl/Cmd sulle frecce di estrusione / gizmo disattivano l'aggancio ai valori. Disattivo: solo Ctrl/Cmd.", "ui.manufacture": "Produzione", "ui.material_review.axes": "Assi locali del materiale; nessun orientamento del corpo assegnato.", "ui.material_review.claims": "Fonti e licenze sono dichiarazioni non verificate. I valori mancanti restano sconosciuti.", @@ -1298,10 +1581,8 @@ "ui.mesh_format_3mf": "3MF", "ui.mesh_format_3mf_tagged": "3MF con etichette delle facce", "ui.mesh_format_stl": "STL", - "ui.midpoint": "Punto medio", "ui.mirror": "Specchia", "ui.mirror_line": "Asse di simmetria", - "ui.modify": "Modifica", "ui.move": "Sposta", "ui.multiple": "Multiplo", "ui.named_views": "Viste con nome", @@ -1310,6 +1591,7 @@ "ui.newSketchGroup": "Nuovo gruppo di schizzi", "ui.new_body": "Nuovo corpo", "ui.new_design": "Nuovo progetto", + "ui.no_geometry_yet": "Ancora nessuna geometria", "ui.no_slicer_found": "Nessuno slicer trovato", "ui.normal": "Normale", "ui.normalConstruction": "Normale / Costruzione", @@ -1321,7 +1603,6 @@ "ui.offset_plane": "Piano offset", "ui.one_side": "Un lato", "ui.open": "Apri", - "ui.open_ellipsis": "Apri...", "ui.open_ends_tip": "Non tocca altre curve", "ui.open_preferences": "Apri preferenze", "ui.open_recent": "Apri recenti", @@ -1331,8 +1612,9 @@ "ui.orbit_around": "Orbita attorno a", "ui.orientation": "Orientamento", "ui.origin": "Origine", - "ui.palette_points": "Punti", - "ui.palette_profile": "Profilo", + "ui.palette_construction_mode": "Modalità costruzione (X)", + "ui.palette_more": "Altro", + "ui.palette_sketch_options": "Opzioni schizzo", "ui.pan": "Panoramica", "ui.pan_zoom_orbit": "Panoramica, zoom, orbita", "ui.parallel": "Parallelo", @@ -1349,6 +1631,12 @@ "ui.placement": "Posizionamento", "ui.plane": "Piano", "ui.plane_at_angle": "Piano inclinato", + "ui.plugins": "Plugin", + "ui.plugins_desktop": "I plugin sono disponibili nell'app desktop.", + "ui.plugins_empty": "Nessun plugin installato.", + "ui.plugins_note": "Ogni plugin è una cartella dentro {path} con un file plugin.json. SolidCraft legge quel file e non esegue alcun codice della cartella. Disattivare un plugin lo lascia installato.", + "ui.plugins_skipped": "Impossibile leggere {count} cartelle.", + "ui.plugins_version": "{version}", "ui.point": "Punto", "ui.point_under_the_cursor": "Punto sotto il cursore", "ui.points": "Punti", @@ -1367,7 +1655,6 @@ "ui.quit": "Esci", "ui.radial_context_menu": "Menu contestuale radiale", "ui.radius": "Raggio", - "ui.radius_type": "Tipo di raggio", "ui.rail": "Guida", "ui.rail_fit": "Adattamento alla guida", "ui.reachable": "Raggiungibile", @@ -1394,10 +1681,12 @@ "ui.reverse_horizontal_pan_tip": "Lo scorrimento orizzontale a due dita e la rotella del pollice eseguono la panoramica nella direzione opposta", "ui.reverse_zoom_direction": "Inverti direzione dello zoom", "ui.revolve": "Rivoluzione", + "ui.ribbon_exit": "Esci", + "ui.ribbon_pin_footer": "I comandi fissati compaiono sulla barra multifunzione. Passa sopra una riga per fissarla o rimuoverla.", + "ui.ribbon_workspace": "Area di lavoro", "ui.right": "Destra", "ui.save": "Salva", "ui.save_as": "Salva con nome", - "ui.save_as_ellipsis": "Salva con nome...", "ui.save_mesh_no_slicer": "Nessuno slicer trovato: scegli Personalizzato… e seleziona lo slicer, oppure disattiva Invia allo slicer", "ui.save_mesh_pick_bodies": "Seleziona i corpi da salvare", "ui.save_mesh_temp_failed": "Impossibile creare {folder}: {error}", @@ -1410,8 +1699,10 @@ "ui.select": "Seleziona", "ui.selectOther": "Seleziona altro…", "ui.selectTangentChain": "Seleziona catena tangente", - "ui.select_other_hint": "Seleziona altro: tieni premuto il pulsante sinistro senza muovere il puntatore sul modello (o fai clic destro › Seleziona altro…) per elencare gli oggetti sotto il cursore; fai di nuovo clic nello stesso punto per selezionare l'oggetto successivo.", "ui.selection": "Selezione", + "ui.selection_modifiers": "Modificatori di selezione", + "ui.selection_shift_add_only": "Maiusc+clic aggiunge senza rimuovere", + "ui.selection_shift_add_only_tip": "Attivo: Maiusc aggiunge elementi, Ctrl/Cmd commuta. Disattivo (predefinito): Maiusc e Ctrl/Cmd commutano entrambi.", "ui.send": "Invia", "ui.send_to_slicer": "Invia allo slicer", "ui.sent_to_slicer": "Inviato a {slicer}", @@ -1427,7 +1718,6 @@ "ui.show_constraints": "Vincoli", "ui.show_construction_geometries": "Geometrie di costruzione", "ui.show_dimensions": "Quote", - "ui.show_points": "Mostra punti", "ui.show_profile": "Mostra profilo", "ui.show_projected_geometries": "Geometrie proiettate", "ui.simple": "Semplice", @@ -1436,8 +1726,8 @@ "ui.sketch": "Schizzo", "ui.sketch_dimension": "Quota dello schizzo", "ui.sketch_grid": "Griglia dello schizzo", + "ui.sketch_modifiers": "Modificatori dello schizzo", "ui.sketch_scale": "Scala schizzo", - "ui.sketch_status": "Stato dello schizzo", "ui.sketches": "Schizzi", "ui.slice": "Genera sezioni", "ui.slicer": "Slicer", @@ -1483,12 +1773,14 @@ "ui.stand_up_tip": "Dopo l'apertura di un file STEP o IGES con asse Z verticale, proponi un quarto di giro attorno a X", "ui.start": "Inizio", "ui.start_over": "Ricomincia", - "ui.start_radius": "Raggio iniziale", + "ui.start_page": "Pagina iniziale", "ui.stretch": "Stira", "ui.supersampling": "Sovracampionamento (SSAA)", "ui.supersampling_adaptive": "Solo quando la vista è ferma", "ui.supersampling_off": "Disattivato (1×)", "ui.suppress": "Sospendi", + "ui.suppress_auto_snap": "Sopprimi l'aggancio automatico durante disegno / trascinamento", + "ui.suppress_auto_snap_note": "Predefinito: Ctrl/Cmd o Alt/Option sopprimono ciascuno l'aggancio dello schizzo. Scegli un solo tasto per restringere.", "ui.sweep": "Sweep", "ui.sweep_follow_direction": "Segui direzione", "ui.sweep_keep_as_drawn": "Mantieni come disegnato", @@ -1531,13 +1823,24 @@ "ui.untitled": "Senza titolo", "ui.up_axis_note": "L'asse verticale nelle viste (viste degli assi, Vista iniziale, Vista normale). I progetti restano invariati.", "ui.updateToCurrentView": "Aggiorna alla vista corrente", - "ui.variable": "Variabile", "ui.view_centre": "Centro della vista", "ui.visual_shaded_hidden_edges": "Ombreggiato con spigoli nascosti", "ui.visual_shaded_with_edges": "Ombreggiato con spigoli", "ui.visual_style": "Stile di visualizzazione", "ui.visual_wireframe": "Reticolo", "ui.workspace": "area di lavoro", + "ui.workspace_animation_description": "Viste esplose, studi del movimento e storyboard", + "ui.workspace_available": "Disponibile", + "ui.workspace_current": "Corrente", + "ui.workspace_design_description": "Disegna, modella, assembla e ispeziona", + "ui.workspace_design_tabs": "Modello · Superficie · Assembla · Inserisci · Ispeziona · Gestisci · Vista", + "ui.workspace_drawing_description": "Disegni 2D con viste, quote e cartigli", + "ui.workspace_footer": "Ogni area di lavoro opera sullo stesso progetto, cronologia e selezione; cambiano solo le schede della barra multifunzione. Il selettore è bloccato durante la modifica di uno schizzo o di una feature.", + "ui.workspace_manufacture_description": "Slicing, percorsi utensile e impostazione", + "ui.workspace_planned": "Pianificata", + "ui.workspace_render_description": "Anteprima del prodotto, impostazioni della scena e immagini renderizzate", + "ui.workspace_render_tabs": "Scena · Immagine", + "ui.workspace_simulation_description": "Carichi, vincoli e risultati", "ui.x_distance": "Distanza X", "ui.y_distance": "Distanza Y", "ui.y_up": "Y verticale", @@ -1547,7 +1850,6 @@ "ui.zoom_to_the_cursor": "Zoom verso il cursore", "update.available": "È disponibile SolidCraft {version}", "update.button": "Aggiorna", - "update.button_tip": "È disponibile SolidCraft {version}", "update.button_version": "Aggiorna a {version}", "update.check_automatically": "Controlla automaticamente gli aggiornamenti", "update.check_now": "Controlla ora", @@ -1579,5 +1881,6 @@ "update.title": "Aggiornamento disponibile", "update.up_to_date": "SolidCraft è aggiornato.", "update.update_now": "Aggiorna ora", - "update.you_have": "La tua versione è {version}." + "update.you_have": "La tua versione è {version}.", + "↑ ↓ choose · Enter / Tab complete · Esc dismiss": "↑ ↓ scegli · Invio / Tab completa · Esc chiudi" } diff --git a/assets/locales/ja.json b/assets/locales/ja.json index f75b515ed..8efc6fb85 100644 --- a/assets/locales/ja.json +++ b/assets/locales/ja.json @@ -3,11 +3,14 @@ "1. Open GitHub draft below, then paste the report copied to your clipboard.": "1. 下のボタンでGitHubの下書きを開き、クリップボードにコピーされたレポートを貼り付けます。", "1. Open GitHub draft below. Your title and report will be filled in.": "1. 下のボタンでGitHubの下書きを開きます。タイトルとレポートは入力済みです。", "2. Attach your screenshot: copy and paste it, or save and upload the PNG.": "2. スクリーンショットを添付します。コピーして貼り付けるか、PNGを保存してアップロードします。", + "2D": "2D", "3. Click Submit new issue on GitHub to send your report.": "3. GitHubでSubmit new issueをクリックしてレポートを送信します。", "A new configuration, a copy of the active one": "アクティブな構成をコピーして新しい構成を作成", - "AI": "AI", + "ARRANGE": "配置", "About SolidCraft": "SolidCraft について", "Acceleration": "加速度", + "Access": "アクセス性", + "Actions": "操作", "Active": "アクティブ", "Active rule": "有効なルール", "Add": "追加", @@ -15,6 +18,7 @@ "Add Mid Radius": "中間半径を追加", "Add Row": "行を追加", "Add condition": "条件を追加", + "Add or edit rule": "ルールを追加または編集", "Against": "相手", "Alignment": "配置", "All Sketch Points": "すべてのスケッチ点", @@ -28,8 +32,11 @@ "Applied Radius": "適用半径", "Apply To": "適用先", "Apply to selection": "選択項目に適用", + "Apply your appearance first. Exports assigned appearances and materials created in this design.": "先に外観を適用してください。割り当てた外観と、このデザインで作成したマテリアルを書き出します。", "Arc length": "円弧の長さ", "Area": "表面積", + "As-Built": "現状位置", + "Assign Rule": "ルールを割当", "Attachment": "アタッチメント", "BLEND SURFACE": "ブレンドサーフェス", "BOUNDARY SURFACE": "境界サーフェス", @@ -37,12 +44,21 @@ "Bend Line Position": "曲げ線位置", "Bend Position": "曲げ位置", "Bend Radius": "曲げ半径", + "Bend Table": "曲げテーブル", "Bends": "曲げ", + "Bodies": "ボディ", "Body": "ボディ", "Boundary": "境界", "Bounding box": "境界ボックス", + "CHECK": "チェック", + "COMPONENTS": "コンポーネント", + "CONFIGURATIONS": "構成", + "CONSTRAIN": "拘束", + "CONTACT": "接触", + "CONVERT": "変換", "CSV or JSON: updates existing parameters, adds new ones": "CSVまたはJSON:既存のパラメータを更新し、新しいパラメータを追加します", "Capture All Positions": "すべての位置をキャプチャ", + "Capture Pos.": "位置を記録", "Catch Direction": "キャッチ方向", "Cells": "セル", "Center X": "中心 X", @@ -53,15 +69,19 @@ "Check collisions": "衝突チェック", "Checked": "チェック済み", "Choose a new plane. Sketch geometry and dimensions stay unchanged in its two-dimensional coordinates.": "新しい平面を選択してください。スケッチジオメトリと寸法は2次元座標系のまま維持されます。", + "Choose…": "選択…", + "Circular": "円形", "Circumference": "円周", "Close draft": "下書きを閉じる", "Collisions": "衝突", "Colour": "色", + "Comment": "コメント", "Component1": "コンポーネント1", + "Config Table": "構成テーブル", "Configuration": "構成", "Configuration rules": "構成ルール", - "Construction": "コンストラクション", "Contact": "接触", + "Contact Sets": "接触セット", "Contact sets": "接触セット", "Continuity": "連続性", "Copy Error Message": "エラーメッセージをコピー", @@ -79,15 +99,17 @@ "Cube": "キューブ", "Current orthographic view (1:1 mm)": "現在の平行投影(実寸・mm)", "Current perspective view": "現在の透視投影", + "Curv. Comb": "曲率コーム", "Curvature (G2)": "曲率 (G2)", "Curvature change (G3)": "曲率変化 (G3)", "Customize Toolbar": "ツールバーのカスタマイズ", + "Delete": "削除", "Delete all": "すべて削除", "Delete rule": "ルールを削除", "Delete the row": "行を削除", "Delete the set": "セットを削除", - "Delete this parameter": "このパラメータを削除", "Density": "密度", + "Dependents": "依存先", "Designs you open or save appear here.": "開いたデザインや保存したデザインがここに表示されます。", "Determined by To Object. Choose Angle to edit the angular extent.": "「対象オブジェクトまで」により決定されます。角度範囲を編集するには「角度」を選択してください。", "Direction": "方向", @@ -99,6 +121,7 @@ "Drive Joint": "ジョイントを駆動", "Duration": "時間", "Edges": "エッジ", + "Edit": "編集", "Edit Profile Sketch": "プロファイルスケッチを編集", "Enable rule": "ルールを有効化", "Enabled": "有効", @@ -107,43 +130,63 @@ "Explode": "分解", "Explode Text": "テキストを分解", "Export Animation…": "アニメーションをエクスポート…", + "Export CSV…": "CSVを書き出し…", "Export Current View as DXF": "現在の表示をDXFでエクスポート", "Export Current View as DXF…": "現在の表示をDXFでエクスポート…", + "Export DXF": "DXF出力", "Export DXF…": "DXFをエクスポート…", + "Export JSON…": "JSONを書き出し…", "Export hidden edges as dashed lines": "点線で出力", + "Expression": "式", "Extend to meet": "交わるまで延長", "Extents": "範囲", + "FILES": "ファイル", + "FLAT": "展開", "Face": "面", "Face attachment lost": "面アタッチメントが失われました", "Faces": "面", "Faces / edges / vertices": "面 / エッジ / 頂点", + "Fastener": "締結部品", + "Favorites": "お気に入り", "Favourite": "お気に入り", + "Feature": "フィーチャー", "Files from many CAD programs have Y up, so they open lying on their back here (Z up).": "多くのCADではY軸を上向きとしているため、Z軸を上向きとするSolidCraftでは、読み込んだモデルが横倒しの向きで表示されることがあります。", "Filter": "フィルター", "Find in Browser": "ブラウザで検索", - "Flat": "展開", + "Finish": "終了", + "Flat Pattern": "フラットパターン", "Flat size": "展開サイズ", "Follow camera (Look At sketches)": "カメラ追従(スケッチを正面視)", "Follow the camera (Look At sketches)": "カメラ追従(スケッチを正面視)", "Font": "フォント", + "From Bodies": "ボディから", "From edges": "開始側エッジ", "Full Length": "全長", + "Gap": "間隔", "Grid": "グリッド", + "HISTORY": "履歴", "Height": "高さ", "Hidden edges": "隠線", "Holes": "穴", "Holes (edges on them)": "穴(そのエッジ)", "Home view": "ホームビュー", + "Horiz./Vert.": "水平 / 垂直", + "IMAGES": "画像", + "Import…": "読み込み…", "In This Design": "このデザイン内", "In place (surfaces)": "その場で(サーフェス)", "In plane": "平面内", "Inside": "内側", "Interferes": "干渉あり", + "Isocurve": "等パラメータ線", "Issue title": "Issueタイトル", + "JOINTS": "ジョイント", "Joint Origin1": "ジョイント原点1", "Keep (points on it)": "残す部分(その上の点)", "Keep Tools": "ツールボディを保持", "Keep of the other surface": "相手のサーフェスで残す部分", + "LIBRARY": "ライブラリ", + "LINKS": "リンク", "Later": "後で", "Leave it": "そのままにする", "Legacy face attachment. Rebinding to a certified face creates an exact attachment.": "従来の面アタッチメントです。確定された面に再バインドすると正確なアタッチメントが作成されます。", @@ -151,47 +194,70 @@ "Length units": "長さの単位", "Letter Spacing": "文字間隔", "Library": "ライブラリ", + "Library file": "ライブラリファイル", "Line Spacing": "行間", + "Local library": "ローカルライブラリ", "Loop": "ループ", + "MANAGE": "管理", + "MATERIALS": "材料", + "MODEL": "モデル", + "MOTION": "モーション", "Margin": "マージン", "Mass": "質量", + "Mass Center": "重心", + "Matched restrictions check the final values.": "条件に一致する制限ルールが最終値を確認します。", "Material": "材料", "Max": "最大", "Mid Radius": "中間半径", "Middle double-click": "中ボタンのダブルクリック", "Min": "最小", "Mitre": "留め継ぎ", + "Model Parameters": "モデルパラメータ", "Modeled": "モデル化済み", "More toolbar panels": "その他のツールバーパネル", "Motion": "モーション", + "Move / Copy": "移動 / コピー", "Move Type": "移動タイプ", + "Move down": "下へ移動", "Move earlier": "前へ移動", "Move later": "後へ移動", + "Move up": "上へ移動", "Name": "名前", "Nearest": "最も近い", + "New": "新規", + "New Comp.": "新規コンポーネント", + "New Sketch": "新規スケッチ", + "New rule…": "新規ルール…", "New study": "新規スタディ", "No crash reports.": "クラッシュレポートはありません。", + "No matching appearance presets.": "一致する外観プリセットはありません。", "No matching appearances": "一致する外観がありません", "No visible bodies to export.": "出力する表示中のボディがありません。", "None": "なし", - "Normal to sketch": "スケッチに垂直", "Not available yet": "まだ利用できません", "Notch": "ノッチ", + "OUTPUT": "出力", "Opacity": "不透明度", "Open GitHub draft": "GitHubの下書きを開く", + "Open local libraries in the desktop app. You can export this design's library here.": "ローカルライブラリはデスクトップアプリで開いてください。このデザインのライブラリはここで書き出せます。", "Open-source parametric 3D CAD in Rust. Licensed MIT OR Apache-2.0.": "Rust製オープンソース・パラメトリック3D CAD。ライセンス: MIT または Apache-2.0。", + "Operator": "演算子", "Other side": "反対側", "Other surface (mutual trim)": "相手のサーフェス(相互トリム)", "Outside": "外側", "Overall length": "全長", - "Parameter values": "パラメータ値", + "Param. Graph": "パラメータ図", + "Parameter": "パラメータ", + "Parts": "部品", "Pass through": "通過点", "Path": "パス", + "Pattern": "パターン", "Per Edge": "エッジごと", "Pick the tool bodies": "ツールボディを選択", "Picked": "選択したもの", "Picked point": "選択した点", "Place at the origin instead": "代わりに原点に配置", + "Plastic Rules": "樹脂ルール", "Playback": "再生", "Plot": "グラフ", "Position": "位置", @@ -202,10 +268,11 @@ "Preview Row": "行をプレビュー", "Preview leaves the current design unchanged.": "プレビューは現在のデザインを変更しません。", "Profiles/Curves": "プロファイル/曲線", - "Projection": "投影", "Quantity": "量", "RECENT": "最近使用した項目", + "REFERENCE": "参照", "RULED SURFACE": "ルールドサーフェス", + "RULES": "ルール", "Radius Fit": "半径フィット", "Ratio": "比率", "Reattach selected face": "選択した面を再アタッチ", @@ -223,6 +290,8 @@ "Remove this point": "この点を削除", "Report a bug — review a screenshot and open a GitHub draft": "バグを報告 — スクリーンショットを確認してGitHub下書きを作成", "Reset Toolbar": "ツールバーをリセット", + "Resize Part": "部品サイズ変更", + "Restore View": "ビューを復元", "Restore outer boundary": "外側の境界を復元", "Restore the inherited component or physical material appearance": "コンポーネントまたは物理マテリアルから継承した外観に戻す", "Result": "結果", @@ -231,18 +300,27 @@ "Reverse Direction": "方向を反転", "Revert": "元に戻す", "Revert All Positions": "すべての位置を元に戻す", + "Revert Pos.": "位置を復元", "Revert Position": "位置を元に戻す", "Review the report and screenshot before opening GitHub.": "GitHubを開く前にレポートとスクリーンショットを確認してください。", "Rim Edge": "リムエッジ", "Roll History Marker Here": "履歴マーカーをここに移動", "Round": "丸め", "Rule": "ルール", + "Rule name": "ルール名", + "Rules run from top to bottom. Matched drives change effective values.": "ルールは上から順に実行されます。条件に一致する駆動ルールが有効値を変更します。", + "SECTION": "断面", + "SURFACE QUALITY": "サーフェス品質", "Save Rule": "ルールを保存", + "Save View": "ビューを保存", "Save the study as an animated GIF, seen as the viewport shows it": "ビューポートの表示どおりにスタディをアニメーション GIF として保存", "Saved preview. Geometry is being checked before editing.": "保存済みのプレビューです。編集前にジオメトリを検証しています。", "Scale factor": "尺度係数", + "Scene": "シーン", "Search": "検索", "Search commands": "コマンドを検索", + "Search this library": "このライブラリを検索", + "Section": "断面", "Select Other: hold the left button still on the model (or right-click › Select Other…) to list everything under the cursor; click again on the same spot to select the next thing there. Double-click the middle button to go Home (Preferences › Navigation).": "その他を選択: モデル上で左ボタンを長押し(または右クリック › その他を選択…)するとカーソル下の要素が一覧表示されます。同じ場所を再度クリックすると次の要素が選択されます。中ボタンをダブルクリックするとホームビューに戻ります(環境設定 › ナビゲーション)。", "Select bodies (a face picks its body)": "ボディを選択(面をクリックするとそのボディが選択されます)", "Select bodies or faces instead": "代わりにボディまたは面を選択", @@ -250,6 +328,7 @@ "Semantic faces share their appearance across instances.": "セマンティック面はインスタンス間で外観を共有します。", "Send your report on GitHub": "GitHubでレポートを送信", "Shape": "形状", + "Sheet Rules": "板金ルール", "Show Agent Cursor": "エージェントカーソルを表示", "Show in folder": "フォルダに表示", "Show the pointer an AI agent moves (#35)": "エージェントが操作するポインターを表示 (#35)", @@ -263,6 +342,7 @@ "Sketch points": "スケッチ点", "Slot width": "長穴の幅", "SolidCraft closed before these designs were saved. Their last autosave can be opened.": "これらのデザインが保存される前にSolidCraftが終了しました。最後の自動保存ファイルを開くことができます。", + "Specialise": "特殊操作", "Speed": "速度", "Stand it up": "正立させる", "Stand it up: a quarter turn about X, as one Move feature you can undo.": "正立させる: 取り消し可能な1つの移動フィーチャーとして、X軸周りに90度回転します。", @@ -301,17 +381,19 @@ "Turn off section analysis before exporting the view.": "断面解析をオフにしてからエクスポートしてください。", "Type": "タイプ", "UNTRIM": "トリム解除", + "Unit": "単位", "Updating the preview": "プレビューを更新中", "Use active author placement": "アクティブな作成元配置を使用", "Use fixed plane": "固定平面を使用", "Use saved fixed plane": "保存された固定平面を使用", "Use selected face as fixed plane": "選択した面を固定平面として使用", + "User Parameters": "ユーザーパラメータ", "VIEW": "表示", + "VIEWS": "ビュー", "Value": "値", "Velocity": "速度", "Vertices": "頂点", "View navigator": "ビューナビゲーター", - "Visible bodies only. Curves use line segments (0.01 mm tolerance).": "表示中のボディを出力します。曲線は線分で近似します(許容誤差0.01 mm)。", "Volume": "体積", "Wall": "肉厚", "Wall Location": "壁の位置", @@ -319,6 +401,13 @@ "When": "条件 (When)", "Width": "幅", "Will fail": "失敗します", + "X angle": "X角度", + "X distance": "X距離", + "Y angle": "Y角度", + "Y distance": "Y距離", + "Z angle": "Z角度", + "Z distance": "Z距離", + "Zebra": "ゼブラ", "angle, height": "角度, 高さ", "appearance.dielectric_ior": "誘電体の屈折率", "appearance.metallic": "金属度", @@ -327,7 +416,13 @@ "appearance.roughness": "粗さ", "appearance.surface_response": "表面の応答", "browser.body_name": "ボディ{number}", + "browser.calibrate_title": "尺度を設定: {name}", + "browser.capture_many": "{count}個のコンポーネントが移動されましたが、位置がキャプチャされていません。", + "browser.capture_note": "「位置をキャプチャ」で新しい位置を保持し、「位置を元に戻す」で以前の位置に戻します。", + "browser.capture_one": "コンポーネントが移動されましたが、位置がキャプチャされていません。", "browser.component_name": "コンポーネント{number}", + "browser.edit_canvas_title": "キャンバスを編集: {name}", + "browser.move_title": "移動: {name}", "browser.parameters": "パラメータ ({count})", "browser.precision": "精度: {precision}", "browser.sketch_name": "スケッチ{number}", @@ -665,7 +760,15 @@ "cmd.view_navigate": "ビューナビゲーション", "cmd.view_rename": "名前付きビューの名前を変更", "cmd.view_save": "新規名前付きビュー", - "command name": "コマンド名", + "color.copy": "クリックして色の値をコピー", + "color.edit": "クリックして色を編集", + "color.gamma": "0〜255のガンマ空間で色の値を表示", + "color.hue": "色相", + "color.linear": "0〜1の線形空間で色の値を表示", + "color.saturation_value": "彩度と明度", + "color.selected": "選択した色", + "contact.components_count": "{count}個のコンポーネント", + "contact.enabled_label": "有効", "coupling.gear_1": "ギア 1", "coupling.gear_1_pick": "ギア 1 (オプション)", "coupling.gear_2": "ギア 2", @@ -682,6 +785,21 @@ "coupling.rack": "ラック", "coupling.radius_1": "半径 1", "coupling.radius_2": "半径 2", + "crash.announce": "前回、SolidCraftが予期せず終了したか、内部エラーが発生しました。クラッシュレポートが保存されています(ヘルプ > クラッシュレポート…)。", + "crash.copy_folder": "フォルダのパスをコピー", + "crash.copy_path": "パスをコピー", + "crash.deleted": "{count}件のレポートを削除しました。", + "crash.detected_time": "検出日時: {time} UTC", + "crash.intro": "クラッシュレポートはこのコンピュータ内に保存され、外部に送信されることはありません。「報告…」で下書きが開き、共有前に内容を確認できます。", + "crash.kind_command": "コマンド内の内部エラー", + "crash.kind_internal": "内部エラー", + "crash.kind_kernel": "カーネルエラー(復旧済み)", + "crash.kind_unclean": "予期しない終了", + "crash.previous_session": "以前の SolidCraft セッションが予期せず終了したか、内部エラーが発生しました。正常終了が記録されていないセッションは起動時に検出されます。詳細は ヘルプ > クラッシュレポート… を参照してください。", + "crash.replayable": "再現可能", + "crash.report": "報告…", + "crash.unclean_explanation": "次回以降の起動時に検出されました。正確な終了時刻は記録されていません。システムのシャットダウンや強制停止によっても、正常終了が記録されない場合があります。", + "delete.and_more": "…ほか{count}件", "dialog.bodies_count": "{count} ボディ", "dialog.clearance_invalid": "クリアランスは 0 以上の長さにしてください", "dialog.compute": "計算", @@ -689,6 +807,8 @@ "dialog.computing": "計算中… {seconds} 秒", "dialog.could_not_be_checked": "チェックできません", "dialog.custom_axis": "↖ カスタム軸", + "dialog.dimension_insert_hint": "別の駆動寸法をクリックして名前を挿入", + "dialog.dimension_name": "寸法: {name}", "dialog.edit_title": "{title}を編集", "dialog.select": "↖ 選択", "dialog.selected_count": "↖ {count} 個選択中", @@ -712,9 +832,30 @@ "dxf.progress.write": "DXFを書き込み中 (5/5)", "dxf.tolerance": "曲線の許容誤差", "dxf.tolerance_help": "表示中のボディを出力し、曲線は線分で近似します。許容誤差を小さくすると曲線が滑らかになりますが、処理時間とメモリ使用量が増えます。", - "expression, e.g. 25 mm": "計算式 (例: 25 mm)", + "file_load.built": "構築済み: 全{total}フィーチャー中{built}件。", + "file_load.converting": "ソリッドを変換中: {done}/{total}", + "file_load.inserting": "ジオメトリを挿入中", + "file_load.opening": "デザインを開いています", + "file_load.preparing_thumbnail": "サムネイルを準備中...", + "file_load.preparing_view": "ビューを準備中...", + "file_load.preview_note": "保存済みのプレビューです。編集前にジオメトリを確認しています。", + "file_load.reading": "ファイルを読み込み中...", + "file_load.reading_percent": "ファイルを読み込み中... {percent}%", + "file_load.rebuilding": "フィーチャーを再構築中: {done}/{total}", + "file_load.recovering": "デザインを復元中", + "file_load.stopping": "前の操作の停止を待っています...", + "file_load.waiting": "ファイル操作を待っています", "fits the face, e.g. M8": "面に適合するサイズ (例: M8)", "from the rule": "ルールから", + "help.apache": "Apacheライセンス2.0", + "help.attributions": "帰属表示 (ATTRIBUTION.md)", + "help.build": "バージョン {version} · コミット {commit} · ビルド日 {date}", + "help.font_details": "インターフェースにはegui組み込みのフォントを使用しています(Ubuntu Font LicenceおよびMIT/Bitstream VeraライセンスのUbuntu LightとHack、OFLおよびMITのNoto Emojiと絵文字アイコンフォント)。スケッチのテキストにはLiberation Sans(SIL OFL 1.1)を使用しています。The Crafting Appsのオプションフォントパックcraft-fonts(BIZ UDPGothic、Shippori Mincho、BIZ UDMincho、Noto Sans CJK SC、Noto Sans Arabic、SIL OFL 1.1)はSolidCraftのビルドに同梱されていません。", + "help.fonts": "フォント", + "help.licences": "ライセンス", + "help.mit": "MITライセンス", + "help.notice": "NOTICE", + "help.third_party": "サードパーティライセンス", "home.documentation": "ドキュメント", "home.in_this_browser": "このブラウザ内", "home.missing": "見つかりません", @@ -740,9 +881,30 @@ "install.menu": "アプリをインストール…", "install.steps_intro": "Safari では、Web アプリを Safari 自身のメニューからインストールします:", "install.title": "SolidCraft をインストール", + "issue.body_label": "レポート本文", + "issue.note_image_copied": "GitHubの下書きに画像を貼り付けてください。画像をコピーできない場合はPNGを保存してください。", + "issue.note_opened": "GitHubの下書きを確認し、スクリーンショットを添付してください。GitHubのSubmit new issueボタンで公開されます。", + "issue.note_opened_copied": "レポートをコピーしました。GitHubの下書きに貼り付け、スクリーンショットを添付してから、GitHubでSubmit new issueをクリックしてください。", + "issue.note_removed": "この下書きからスクリーンショットを削除しました。", + "issue.note_report_copied": "レポートをコピーしました。必要に応じてGitHubの下書きに貼り付けてください。", + "issue.note_save_failed": "スクリーンショットを保存できませんでした: {error}", + "issue.note_saved": "スクリーンショットを保存しました。GitHubの下書きにPNGを添付してください。", + "issue.save_screenshot": "スクリーンショットを保存…", "joint.from_bodies_hint": "選択した各ボディを、位置はそのままで専用の新しいコンポーネントに移動します。", "joint.one_body": "両方の選択が {body} 上にあります。2 つ目は別の部品で選択してください。", "joint.one_component": "これらの部品は 1 つのコンポーネントのボディです: {bodies}。ジョイントはコンポーネント同士を動かすため、部品ごとに専用のコンポーネントが必要です。", + "keymap.command_id": "コマンドID", + "keymap.empty": "一致するコマンドはありません", + "keymap.use_anyway": "ここでは{key}をそのまま使用", + "manage.appearance_hint": "選択対象の外観を選ぶか、スウォッチをボディまたは面にドラッグしてください。", + "manage.assign_hint": "ボディを選択し、プラスチック設計ルールを指定してください。", + "manage.config_hint": "構成の行、列、ルールを編集し、行を有効にするかプレビューしてください。", + "manage.empty": "一致する行はありません。", + "manage.material_hint": "ボディを選択し、物理マテリアルを指定してください。", + "manage.parameters_hint": "式と単位を編集してください。Enterを押すか、フィールドから移動すると変更が適用されます。", + "manage.rules_hint": "編集するルールを選ぶか、新規ルールを作成してください。確定するとルールが保存されます。", + "measure.at": "位置", + "measure.item": "項目 {number}", "messages.ago_h": "{n} 時間前", "messages.ago_min": "{n} 分前", "messages.ago_s": "{n} 秒前", @@ -754,8 +916,16 @@ "messages.title": "メッセージ", "motion.checked_to": "ステップ {step} までしか確認していません: 確認の計算量の上限に達しました", "motion.collision": "{a} · {b}: ステップ {steps}", + "motion.delete_key": "キーフレームを削除", "motion.duration_hint": "秒 (空欄: ステップごと)", + "motion.key_here": "ここにキーフレームを追加", + "motion.key_here_hint": "このステップにジョイントの現在値でキーフレームを追加", "motion.no_collisions": "スタディ全体で衝突はありません", + "motion.step_back": "前のステップ", + "motion.step_forward": "次のステップ", + "motion.to_end": "最後へ", + "motion.to_start": "最初へ", + "motion.track_name": "トラック {number}", "nav.touchpad.help": "Shift を押しながらポインターを動かすとパン、Alt/Option を押しながら動かすと回転します。マウスボタンは不要です。縦スクロールでズームします。", "nav.touchpad.label": "タッチパッド", "nav.touchpad.orbit": "回転(Alt/Option を押しながら移動、マウスボタン不要)", @@ -764,13 +934,13 @@ "nav.touchpad.zoom": "ズーム(縦スクロールまたはピンチ)", "needs two joints": "2つのジョイントが必要", "new configuration": "新規構成", - "new name": "新しい名前", "new parameter": "新規パラメータ", "no hole": "穴なし", "no interference": "干渉なし", "no joint that moves yet": "可動ジョイントがまだありません", "no picture": "画像なし", "none": "なし", + "parts.automatic_name": "自動", "pattern.alignment_2": "配置 2", "pattern.alignment_hint": "個数には元の図形が含まれます。中央配置ではコピーを両側に配置し、反転で偶数個の場合に多く配置する側を切り替えます。", "pattern.direction_1": "方向 1", @@ -778,12 +948,19 @@ "pattern.flip_direction": "方向を反転", "pick a hole to seat it, or OK places it at the origin": "配置先の穴を選択するか、[OK]を押すと原点に配置します。", "pick one or two vertices, edges or faces": "1つまたは2つの頂点、エッジ、面を選択", + "prefs.cpu": "CPU(ソフトウェア)", + "prefs.minutes_suffix": " min", + "properties.title": "プロパティ: {name}", + "recovery.days_ago": "{count}日前", + "recovery.detail": "{file} · {features}フィーチャー · 自動保存: {when}", + "recovery.hours_ago": "{count}時間前", + "recovery.just_now": "たった今", + "recovery.min_ago": "{count}分前", + "recovery.never_saved": "未保存", "render.background": "シーンの背景", "render.fit": "製品を画面に合わせる", - "render.image_cancel": "レンダリングをキャンセル", "render.image_cancelled": "レンダリングをキャンセルしました", "render.image_cancelling": "キャンセル中", - "render.image_check": "レンダリング要求を確認", "render.image_completed": "画像をエクスポートできます", "render.image_encoding": "PNGをエンコード中", "render.image_export": "PNGをエクスポート", @@ -830,6 +1007,19 @@ "sample.plate.name": "サンプル プレート", "sample.vents.about": "矩形パターンに並んだスロット: 行数、列数、ピッチはパラメータ", "sample.vents.name": "通気プレート", + "search.command_keys": "Enter 実行 Shift+Enter 実行して開いたままにする Esc 閉じる", + "search.commands": "コマンド", + "search.design": "このデザイン内", + "search.feature": "フィーチャー", + "search.invalid": "無効", + "search.keys": "↑ ↓ 選択 Enter 実行 Tab 名前を補完 Esc 閉じる", + "search.no_match": "「{query}」に一致するコマンドはありません", + "search.parameter": "パラメーター", + "search.recent": "最近使った項目", + "search.run": "コマンドを実行", + "search.suggest": "{label} ですか?", + "search.try": "コマンド名、このデザインのフィーチャー、またはパラメーターを入力します。値を指定して実行するには、IDとJSONオブジェクトを入力します:{example}", + "search.valid": "有効", "settings.display_quality_note": "細かいほど曲面とエッジが滑らかに表示されますが、メッシュの生成に時間がかかります。変わるのはビューポートだけで、設計やエクスポートは変わりません。", "settings.frame_rate_note": "ビューの右下に 1 秒あたりのフレーム数を表示します。オンの間、ビューは常に再描画されます。", "settings.measure_axis_distances": "計測のX・Y・Z距離を表示", @@ -840,17 +1030,30 @@ "settings.reset_intro": "次の設定はこのコンピューターでは使用できず、SolidCraft が起動できなくなるため変更されました:", "settings.reset_title": "設定が変更されました", "settings.supersampling_note": "ビューを高い解像度で描画してから縮小します。4K 未満の画面でエッジ、線、グリッドが滑らかになります。GPU の負荷が増えます(1.5× で約 2.25 倍、2× で 4 倍のピクセル)。", + "shortcut.json_error": "パラメータはJSON形式で指定してください: {error}", + "shortcut.no_command": "コマンド`{id}`がありません。JSONの前のテキストはコマンドIDである必要があります", + "shortcut.pin": "Sボックスの先頭にピン留め", + "shortcut.unpin": "ピン留めを解除", "sketch.degrees_of_freedom": "自由度 {count}", + "sketch.dof_left": "残り自由度 {count}", + "sketch.dof_left_one": "残り自由度 {count}", "sketch.draw_curves": "{linetype}として描く", "sketch.make_selection": "選択を{linetype}にする", "sketch.open_ends": "開放 {count}", "sketch.untied_ends": "未拘束 {count}", + "sketch_panel.attached": "接続先: {body} / {path}", + "sketch_panel.author": "作成時の配置: {path}", + "sketch_panel.dimension_hint": "値または式を入力し、OK を押してください。", + "sketch_panel.move_hint": "距離と角度を入力し、OK を押してください。", + "sketch_panel.redefine_title": "{command}:{name}", + "sketch_panel.sheet_attachment": "板金ボディの平面に接続されています。板金が変更されると、そのパネルに追従します。", + "sketch_panel.text_hint": "テキストと配置を編集し、OK を押してください。", + "sketch_panel.use_plane": "{plane} 平面を使用", "sketch_text.align_center": "中央", "sketch_text.align_left": "左", "sketch_text.align_right": "右", "sketch_text.bold": "太字", "sketch_text.builtin_font": "{family}(内蔵)", - "sketch_text.font_search": "フォントを検索", "sketch_text.italic": "斜体", "sketch_text.loading_fonts": "インストール済みフォントを検索中…", "sketch_text.on_path": "文字はパスに沿います: 位置は曲線で決まります", @@ -871,6 +1074,7 @@ "timeline.ungroup": "フィーチャーフォルダを削除", "to the face": "面まで", "to the next face": "次の面まで", + "toolbar.customize_note": "{tab}タブ。コマンドにチェックを入れると、ツールバーにボタンが追加されます。パネルのドロップダウンの行をツールバーにドラッグしたり、ボタンをツールバーの外にドラッグして削除したり、ドロップダウンの行のピンを使うこともできます。", "toolbar.image": "画像", "toolbar.render": "レンダリング", "toolbar.render_scene": "シーン", @@ -879,11 +1083,11 @@ "trace.stopped_by_loop": "サンプル {sample} で終了: {joint} を通るループはこれ以上閉じられません", "ui.1_degree_of_freedom": "自由度 1", "ui.3d_mouse_speed": "3D マウス速度", - "ui.3d_mouse_windows": "3D マウス", "ui.3d_sketch": "3D スケッチ", - "ui.about": "SolidCraft について", "ui.activate": "アクティブ化", "ui.active_component": "アクティブなコンポーネント", + "ui.add_configuration": "構成を追加", + "ui.add_parameter": "パラメーターを追加", "ui.agent_chat": "エージェントチャット", "ui.agent_chat_add": "ファイルを添付", "ui.agent_chat_add_file": "ファイルを選択…", @@ -925,6 +1129,7 @@ "ui.agent_chat_file_error": "{name}: {error}", "ui.agent_chat_file_heic": "{name}: HEIC 画像はここでは読めません。先に JPEG か PNG に書き出してください", "ui.agent_chat_file_importing": "デザインにインポート中…", + "ui.agent_chat_file_kinds": "{name}: 添付できるのは画像 (PNG、JPEG、GIF、WebP、BMP、TIFF)、テキストファイル (SVG も)、CAD ファイル (STEP、IGES、FreeCAD、Rhino、STL、3MF、OBJ、glTF) です", "ui.agent_chat_file_loading": "ファイルを読み込み中…", "ui.agent_chat_file_not_a_file": "{name}: ファイルではありません", "ui.agent_chat_file_not_a_picture": "{name}: 画像ではありません", @@ -947,7 +1152,7 @@ "ui.agent_chat_model_tip": "エージェントが使うモデル。選択はこのエージェントに対して記憶されます。", "ui.agent_chat_new": "新しいチャット", "ui.agent_chat_new_confirm": "新しいチャットを始めますか? 現在のチャットは消去されます。", - "ui.agent_chat_new_yes": "新しいチャット", + "ui.agent_chat_next_picture": "次の画像", "ui.agent_chat_no_cli": "アプリの隣に solidcraft-cli が見つからないため、エージェントはデザインにアクセスできません。", "ui.agent_chat_no_control": "エージェントチャットのエンドポイントが起動しなかったため、エージェントはデザインにアクセスできません。", "ui.agent_chat_no_images": "このエージェントは画像を受け付けません", @@ -963,6 +1168,7 @@ "ui.agent_chat_placeholder": "デザインの変更をエージェントに依頼…", "ui.agent_chat_placeholder_busy": "エージェントの作業が終わったら送るメッセージを入力(Ctrl+Enter: 今すぐ送信)", "ui.agent_chat_pop_out": "独立したウィンドウで開く(別の画面に移動できます)", + "ui.agent_chat_previous_picture": "前の画像", "ui.agent_chat_privacy": "あなたのアカウントで実行するエージェント以外には、何も送信されません。", "ui.agent_chat_privacy_note": "SolidCraft はどこにも何も送信しません。あなたが実行するエージェントが、あなた自身のアカウントでそのサービスと通信します。SolidCraft がキーやパスワードを見たり保存したりすることはありません。", "ui.agent_chat_queue": "待機に追加", @@ -1018,6 +1224,7 @@ "ui.ai_bad_url": "http:// または https:// で始まる URL を入力してください", "ui.ai_base_url": "ベース URL", "ui.ai_button": "AI", + "ui.ai_command_hint": "my-agent --acp", "ui.ai_copy_suffix": "コピー", "ui.ai_custom_url": "カスタム URL", "ui.ai_default": "既定", @@ -1038,8 +1245,10 @@ "ui.ai_mode_edits_note": "モデリングコマンドは確認なしで実行されます。保存・開く・エクスポートなどのファイル操作や破壊的な操作は引き続き確認します。", "ui.ai_mode_global": "上の設定に従う", "ui.ai_model": "モデル", + "ui.ai_model_hint": "qwen3:14b", "ui.ai_modes_scope": "これらの設定は SolidCraft のツールに適用されます。エージェント自身のツール(シェル、ファイル編集)は、エージェントにモードがある場合にチャットパネルのヘッダーで選ぶエージェント自身のモードに従います。", "ui.ai_name": "名前", + "ui.ai_name_hint": "マイエージェント", "ui.ai_need_command": "エージェントを起動するコマンドを入力してください", "ui.ai_need_model": "モデル名を入力してください", "ui.ai_no_answer": "エージェントが時間内に応答しませんでした", @@ -1067,9 +1276,10 @@ "ui.ai_tool_running": "実行中", "ui.ai_tool_unfold": "クリックして結果を表示", "ui.ai_tool_waiting": "待機中", - "ui.ai_toolbar_button": "ツールバーにボタンを表示", - "ui.ai_toolbar_button_note": "ツールバー右端の AI ボタン。Ctrl+Shift+A と表示メニューからも引き続きパネルを開けます。", + "ui.ai_toolbar_button": "アプリケーションバーにアシスタントボタンを表示", + "ui.ai_toolbar_button_note": "アプリケーションバーのアシスタントボタン。Ctrl+Shift+A と表示メニューからもパネルを開けます。", "ui.ai_undo_tip": "このメッセージでエージェントが行った変更を、1回でまとめて元に戻します", + "ui.ai_url_hint": "https://example.com/v1", "ui.all": "すべて", "ui.ambient_occlusion": "アンビエントオクルージョン", "ui.ambient_occlusion_help": "不透明な面が接する部分に柔らかい陰影を加えます。GPUビューポートが必要です。", @@ -1083,7 +1293,8 @@ "ui.anti_aliasing": "アンチエイリアス", "ui.apply": "適用", "ui.arc": "円弧", - "ui.assemble": "アセンブリ", + "ui.assistant": "アシスタント", + "ui.assistant_waiting": "{count} 件の承認待ち", "ui.autosave_every": "自動保存の間隔", "ui.axes": "軸", "ui.axis": "軸", @@ -1094,6 +1305,11 @@ "ui.bodies_all_if_none": "ボディ(未選択ならすべて)", "ui.box": "直方体", "ui.break": "分割", + "ui.browser_bodies_one": "{count} ボディ", + "ui.browser_bodies_other": "{count} ボディ", + "ui.browser_collapse": "ブラウザを折りたたむ", + "ui.browser_expand": "ブラウザを展開", + "ui.browser_title": "ブラウザ", "ui.calibrate": "校正", "ui.cancel": "キャンセル", "ui.canvases": "キャンバス", @@ -1103,7 +1319,6 @@ "ui.chamfer": "面取り", "ui.chamfer_type": "面取りタイプ", "ui.change_workspace": "ワークスペースの変更", - "ui.chord_length": "弦長", "ui.circle": "円", "ui.circular_pattern": "円形パターン", "ui.clear": "クリア", @@ -1136,11 +1351,9 @@ "ui.command_done": "{command} 完了", "ui.command_palette_hint": "コマンドを入力(例: {example})— または S キーで検索", "ui.concentric": "同心", - "ui.configurations": "構成", "ui.conic_curve": "円錐曲線", "ui.constant": "一定", "ui.constraints_conflict": "拘束が競合しています", - "ui.construct": "構築", "ui.construction": "コンストラクション", "ui.context_menu": "コンテキスト メニュー", "ui.continuity_g0": "G0 折れ", @@ -1166,7 +1379,6 @@ "ui.cylinder": "円柱", "ui.dark": "ダーク", "ui.default_modelling_orientation": "モデリングのデフォルト方向", - "ui.degrees_of_freedom": "自由度", "ui.delete": "削除", "ui.depth": "深さ", "ui.design": "デザイン", @@ -1208,7 +1420,6 @@ "ui.equivalent_radius": "等価半径", "ui.expand": "展開", "ui.exportDxf": "DXF をエクスポート…", - "ui.export_ellipsis": "エクスポート…", "ui.export_ellipsis_keymap": "エクスポート…", "ui.export_keymap_tip": "ショートカット、Sボックスのお気に入り、ツールバー設定をファイルに保存", "ui.extend": "延長", @@ -1232,6 +1443,7 @@ "ui.frame_rate": "フレームレート", "ui.front": "正面", "ui.fully_constrained": "完全拘束", + "ui.function": "関数", "ui.general": "一般", "ui.graphics": "グラフィックス", "ui.graphics_custom": "カスタム", @@ -1298,7 +1510,6 @@ "ui.heading_sheet_metal": "板金", "ui.heading_shell": "シェル", "ui.heading_sketch": "スケッチ", - "ui.heading_sketch_palette": "スケッチ パレット", "ui.heading_sketch_scale": "スケッチの尺度", "ui.heading_solid": "ソリッド", "ui.heading_sphere": "球", @@ -1317,6 +1528,7 @@ "ui.hideOrigin": "原点を非表示", "ui.hidePlanes": "平面を非表示", "ui.hideProfile": "プロファイルを非表示", + "ui.history_title": "履歴", "ui.hole": "穴", "ui.hole_tap_type": "ねじ穴タイプ", "ui.hole_type": "穴タイプ", @@ -1336,7 +1548,6 @@ "ui.length_decimals": "長さの小数点以下の桁数", "ui.light": "ライト", "ui.line": "線分", - "ui.linetype": "線種", "ui.lock": "ロック", "ui.loft": "ロフト", "ui.look_at": "正面視", @@ -1370,10 +1581,8 @@ "ui.mesh_format_3mf": "3MF", "ui.mesh_format_3mf_tagged": "面タグ付き 3MF", "ui.mesh_format_stl": "STL", - "ui.midpoint": "中点", "ui.mirror": "ミラー", "ui.mirror_line": "ミラー線", - "ui.modify": "修正", "ui.move": "移動", "ui.multiple": "複数", "ui.named_views": "名前付きビュー", @@ -1394,7 +1603,6 @@ "ui.offset_plane": "オフセット平面", "ui.one_side": "片側", "ui.open": "開く", - "ui.open_ellipsis": "開く…", "ui.open_ends_tip": "どこにも接していない", "ui.open_preferences": "環境設定を開く", "ui.open_recent": "最近使った項目を開く", @@ -1404,8 +1612,9 @@ "ui.orbit_around": "回転中心", "ui.orientation": "向き", "ui.origin": "原点", - "ui.palette_points": "点", - "ui.palette_profile": "プロファイル", + "ui.palette_construction_mode": "補助線モード (X)", + "ui.palette_more": "その他", + "ui.palette_sketch_options": "スケッチオプション", "ui.pan": "パン", "ui.pan_zoom_orbit": "パン、ズーム、オービット", "ui.parallel": "平行", @@ -1446,7 +1655,6 @@ "ui.quit": "終了", "ui.radial_context_menu": "パイ メニュー", "ui.radius": "半径", - "ui.radius_type": "半径タイプ", "ui.rail": "レール", "ui.rail_fit": "レールの合わせ方", "ui.reachable": "到達可能", @@ -1473,10 +1681,12 @@ "ui.reverse_horizontal_pan_tip": "水平方向の2本指スクロールとサムホイールで、反対方向にパンします", "ui.reverse_zoom_direction": "ズーム方向を反転", "ui.revolve": "回転", + "ui.ribbon_exit": "終了", + "ui.ribbon_pin_footer": "ピン留めしたコマンドはリボンに表示されます。行にポインターを合わせて、ピン留めや解除ができます。", + "ui.ribbon_workspace": "ワークスペース", "ui.right": "右側面", "ui.save": "保存", "ui.save_as": "名前を付けて保存", - "ui.save_as_ellipsis": "名前を付けて保存…", "ui.save_mesh_no_slicer": "スライサーが見つかりません。「カスタム…」でスライサーのプログラムを選ぶか、「スライサーに送る」をオフにしてください", "ui.save_mesh_pick_bodies": "保存するボディを選択してください", "ui.save_mesh_temp_failed": "{folder} を作成できません: {error}", @@ -1489,7 +1699,6 @@ "ui.select": "選択", "ui.selectOther": "その他を選択…", "ui.selectTangentChain": "接線チェーンを選択", - "ui.select_other_hint": "その他を選択: モデル上で左ボタンを長押し(または右クリック › その他を選択…)するとカーソル下の要素が一覧表示されます。同じ場所を再度クリックすると次の要素が選択されます。", "ui.selection": "選択", "ui.selection_modifiers": "選択修飾キー", "ui.selection_shift_add_only": "Shift+クリックで追加のみ(解除なし)", @@ -1509,7 +1718,6 @@ "ui.show_constraints": "拘束", "ui.show_construction_geometries": "構築ジオメトリ", "ui.show_dimensions": "寸法", - "ui.show_points": "点を表示", "ui.show_profile": "プロファイルを表示", "ui.show_projected_geometries": "投影ジオメトリ", "ui.simple": "単純", @@ -1520,7 +1728,6 @@ "ui.sketch_grid": "スケッチ グリッド", "ui.sketch_modifiers": "スケッチ修飾キー", "ui.sketch_scale": "スケッチ尺度", - "ui.sketch_status": "スケッチの状態", "ui.sketches": "スケッチ", "ui.slice": "スライス", "ui.slicer": "スライサー", @@ -1566,7 +1773,7 @@ "ui.stand_up_tip": "Z軸上向きで開いたSTEPまたはIGESファイルに対し、X軸周りに90度回転させるか確認します", "ui.start": "開始", "ui.start_over": "最初からやり直す", - "ui.start_radius": "開始半径", + "ui.start_page": "スタートページ", "ui.stretch": "伸縮", "ui.supersampling": "スーパーサンプリング (SSAA)", "ui.supersampling_adaptive": "ビューが静止しているときのみ", @@ -1616,13 +1823,24 @@ "ui.untitled": "無題", "ui.up_axis_note": "ビュー(軸ビュー、ホーム、正面視)で上向きにする軸を指定します。デザインデータ自体は変更されません。", "ui.updateToCurrentView": "現在のビューに更新", - "ui.variable": "可変", "ui.view_centre": "ビュー中心", "ui.visual_shaded_hidden_edges": "隠線付きシェーディング", "ui.visual_shaded_with_edges": "エッジ付きシェーディング", "ui.visual_style": "表示スタイル", "ui.visual_wireframe": "ワイヤーフレーム", "ui.workspace": "ワークスペース", + "ui.workspace_animation_description": "分解図、モーション スタディ、ストーリーボード", + "ui.workspace_available": "利用可能", + "ui.workspace_current": "現在", + "ui.workspace_design_description": "スケッチ、モデリング、アセンブリ、検査", + "ui.workspace_design_tabs": "モデル · サーフェス · アセンブリ · 挿入 · 検査 · 管理 · 表示", + "ui.workspace_drawing_description": "ビュー、寸法、表題欄を含む2D図面", + "ui.workspace_footer": "すべてのワークスペースで同じデザイン、履歴、選択を使用し、リボンのタブだけが変わります。スケッチやフィーチャーの編集中は切り替えできません。", + "ui.workspace_manufacture_description": "スライス、ツールパス、セットアップ", + "ui.workspace_planned": "予定", + "ui.workspace_render_description": "製品プレビュー、シーン設定、レンダリング画像", + "ui.workspace_render_tabs": "シーン · 画像", + "ui.workspace_simulation_description": "荷重、拘束、結果", "ui.x_distance": "X 距離", "ui.y_distance": "Y 距離", "ui.y_up": "Y軸上向き", @@ -1632,7 +1850,6 @@ "ui.zoom_to_the_cursor": "カーソル位置へズーム", "update.available": "SolidCraft {version} が利用できます", "update.button": "アップデート", - "update.button_tip": "SolidCraft {version} が利用できます", "update.button_version": "{version} にアップデート", "update.check_automatically": "アップデートを自動的に確認", "update.check_now": "今すぐ確認", @@ -1664,5 +1881,6 @@ "update.title": "アップデートがあります", "update.up_to_date": "SolidCraft は最新です。", "update.update_now": "今すぐ更新", - "update.you_have": "現在のバージョンは {version} です。" + "update.you_have": "現在のバージョンは {version} です。", + "↑ ↓ choose · Enter / Tab complete · Esc dismiss": "↑ ↓ 選択 · Enter / Tab 補完 · Esc 閉じる" } diff --git a/assets/locales/ko.json b/assets/locales/ko.json index 221e56a14..3daa01e2d 100644 --- a/assets/locales/ko.json +++ b/assets/locales/ko.json @@ -1,118 +1,414 @@ { + "0 turns it off": "0이면 끕니다", "1. Open GitHub draft below, then paste the report copied to your clipboard.": "1. 아래에서 GitHub 초안을 열고 클립보드에 복사된 보고서를 붙여넣으세요.", "1. Open GitHub draft below. Your title and report will be filled in.": "1. 아래에서 GitHub 초안을 여세요. 제목과 보고서가 자동으로 입력됩니다.", "2. Attach your screenshot: copy and paste it, or save and upload the PNG.": "2. 스크린샷을 첨부하세요. 복사하여 붙여넣거나 PNG로 저장한 뒤 업로드하세요.", + "2D": "2D", "3. Click Submit new issue on GitHub to send your report.": "3. GitHub에서 Submit new issue를 클릭하여 보고서를 보내세요.", - "AI": "AI", + "A new configuration, a copy of the active one": "활성 구성을 복사한 새 구성", + "ARRANGE": "배치", + "About SolidCraft": "SolidCraft 정보", "Acceleration": "가속도", + "Access": "접근", + "Actions": "작업", + "Active": "활성", + "Active rule": "활성 규칙", + "Add": "추가", + "Add Key": "키 추가", + "Add Mid Radius": "중간 반지름 추가", + "Add Row": "행 추가", + "Add condition": "조건 추가", + "Add or edit rule": "규칙 추가 또는 편집", "Against": "상대", "Alignment": "정렬", + "All Sketch Points": "모든 스케치 점", "All components": "모든 구성요소", + "All open designs": "열린 모든 디자인", + "Allowed expressions, separated by semicolons": "허용되는 식, 세미콜론으로 구분", + "Also deletes": "함께 삭제됨", + "Angle 2": "각도 2", + "Animate": "애니메이션", + "Appearance name": "외관 이름", + "Applied Radius": "적용 반지름", + "Apply To": "적용 대상", + "Apply to selection": "선택 항목에 적용", + "Apply your appearance first. Exports assigned appearances and materials created in this design.": "먼저 외관을 적용하세요. 지정된 외관과 이 디자인에서 만든 재질을 내보냅니다.", "Arc length": "호 길이", "Area": "면적", + "As-Built": "As-Built", + "Assign Rule": "규칙 지정", + "Attachment": "부착", + "BLEND SURFACE": "블렌드 곡면", + "BOUNDARY SURFACE": "경계 곡면", "BROWSER": "브라우저", + "Bend Line Position": "벤딩 선 위치", + "Bend Position": "벤딩 위치", + "Bend Radius": "벤딩 반지름", + "Bend Table": "벤딩 표", "Bends": "벤딩", + "Bodies": "바디", + "Body": "바디", "Boundary": "경계", + "Bounding box": "경계 상자", + "CHECK": "검사", + "COMPONENTS": "구성요소", + "CONFIGURATIONS": "구성", + "CONSTRAIN": "구속", + "CONTACT": "접촉", + "CONVERT": "변환", + "CSV or JSON: updates existing parameters, adds new ones": "CSV or JSON: updates existing parameters, adds new ones", + "Capture All Positions": "모든 위치 캡처", + "Capture Pos.": "위치 캡처", + "Catch Direction": "받기 방향", + "Cells": "셀", + "Center X": "중심 X", + "Center Y": "중심 Y", + "Center of mass": "질량 중심", "Centre to centre": "중심 간", + "Chamfer Type": "모따기 유형", "Check collisions": "충돌 확인", + "Checked": "검사됨", + "Choose a new plane. Sketch geometry and dimensions stay unchanged in its two-dimensional coordinates.": "새 평면을 선택하세요. 스케치 기하와 치수는 2차원 좌표 그대로 유지됩니다.", + "Choose…": "선택…", + "Circular": "원형", "Circumference": "원주", + "Close draft": "초안 닫기", "Collisions": "충돌", - "Construction": "구성선", + "Colour": "색상", + "Comment": "설명", + "Component1": "구성요소1", + "Config Table": "구성 표", + "Configuration": "구성", + "Configuration rules": "Configuration rules", + "Contact": "접촉", + "Contact Sets": "접촉 집합", "Contact sets": "접촉 집합", "Continuity": "연속성", "Copy Error Message": "오류 메시지 복사", "Copy Warning Message": "경고 메시지 복사", + "Copy all licences": "모든 라이선스 복사", + "Copy diagnostic information": "진단 정보 복사", + "Copy report": "보고서 복사", + "Copy screenshot": "스크린샷 복사", "Corner Relief": "모서리 릴리프", + "Corner Relief Shape": "모서리 릴리프 모양", + "Counterbore depth": "카운터보어 깊이", + "Countersink angle": "카운터싱크 각도", + "Create Issue — review draft": "이슈 만들기 — 초안 검토", + "Cross curves": "교차 곡선", + "Cube": "큐브", "Current orthographic view (1:1 mm)": "현재 직교 투영 뷰 (1:1 mm)", "Current perspective view": "현재 원근 투영 뷰", + "Curv. Comb": "곡률 빗", "Curvature (G2)": "곡률 (G2)", "Curvature change (G3)": "곡률 변화 (G3)", + "Customize Toolbar": "도구 모음 사용자 지정", + "Delete": "삭제", + "Delete all": "모두 삭제", + "Delete rule": "규칙 삭제", + "Delete the row": "행 삭제", + "Delete the set": "집합 삭제", + "Density": "밀도", + "Dependents": "종속 항목", + "Designs you open or save appear here.": "열거나 저장한 디자인이 여기에 표시됩니다.", + "Determined by To Object. Choose Angle to edit the angular extent.": "대상 객체까지로 결정됩니다. 각도 범위를 편집하려면 각도를 선택하세요.", "Direction": "방향", + "Discard": "버리기", "Do not export hidden edges": "숨겨진 모서리 내보내지 않기", "Don't ask again": "다시 묻지 않기", + "Double-click to rename": "Double-click to rename", + "Double-clicking the middle button in the view: Home (the home view, framing what is shown), Fit (frame what is shown, keeping the orientation) or nothing": "뷰에서 가운데 버튼을 더블 클릭: 홈(홈 뷰, 표시된 항목에 맞춤), 맞춤(방향을 유지하며 표시된 항목에 맞춤) 또는 없음", "Drive Joint": "조인트 구동", "Duration": "지속 시간", "Edges": "모서리", + "Edit": "편집", "Edit Profile Sketch": "윤곽 스케치 편집", + "Enable rule": "규칙 사용", + "Enabled": "사용", + "End bulge": "끝 벌지", + "End continuity": "끝 연속성", + "Explode": "분해", "Explode Text": "텍스트 분해", "Export Animation…": "애니메이션 내보내기…", + "Export CSV…": "CSV 내보내기…", "Export Current View as DXF": "현재 뷰를 DXF로 내보내기", "Export Current View as DXF…": "현재 뷰를 DXF로 내보내기…", + "Export DXF": "DXF 내보내기", "Export DXF…": "DXF 내보내기…", + "Export JSON…": "JSON 내보내기…", "Export hidden edges as dashed lines": "숨겨진 모서리를 파선으로 내보내기", + "Expression": "표현식", "Extend to meet": "만날 때까지 연장", + "Extents": "범위", + "FILES": "파일", + "FLAT": "전개", "Face": "면", + "Face attachment lost": "면 부착 끊김", "Faces": "면", + "Faces / edges / vertices": "면 / 모서리 / 꼭짓점", + "Fastener": "체결 부품", + "Favorites": "즐겨찾기", + "Favourite": "Favourite", + "Feature": "피처", + "Files from many CAD programs have Y up, so they open lying on their back here (Z up).": "많은 CAD 프로그램의 파일은 Y가 위쪽이라 여기(Z 위쪽)에서는 누워서 열립니다.", + "Filter": "Filter", "Find in Browser": "브라우저에서 찾기", - "Flat": "플랫", + "Finish": "완료", + "Flat Pattern": "플랫 패턴", + "Flat size": "전개 크기", + "Follow camera (Look At sketches)": "카메라 따라가기 (스케치 보기)", + "Follow the camera (Look At sketches)": "카메라 따라가기 (스케치 보기)", + "Font": "글꼴", + "From Bodies": "바디에서", "From edges": "시작 모서리", + "Full Length": "전체 길이", + "Gap": "간격", + "Grid": "격자", + "HISTORY": "이력", + "Height": "높이", "Hidden edges": "숨겨진 모서리", "Holes": "구멍", "Holes (edges on them)": "구멍 (구멍의 모서리)", + "Home view": "홈 뷰", + "Horiz./Vert.": "수평/수직", + "IMAGES": "이미지", + "Import…": "가져오기…", + "In This Design": "이 디자인에서", "In place (surfaces)": "제자리에서 (서피스)", "In plane": "평면 내", "Inside": "안쪽", + "Interferes": "간섭", + "Isocurve": "등매개 곡선", + "Issue title": "이슈 제목", + "JOINTS": "조인트", + "Joint Origin1": "조인트 원점1", "Keep (points on it)": "유지할 부분(그 위의 점)", + "Keep Tools": "공구 유지", "Keep of the other surface": "다른 곡면에서 유지할 부분", + "LIBRARY": "라이브러리", + "LINKS": "링크", + "Later": "나중에", + "Leave it": "그대로 두기", + "Legacy face attachment. Rebinding to a certified face creates an exact attachment.": "레거시 면 부착입니다. 인증된 면에 다시 연결하면 정확한 부착이 만들어집니다.", "Length": "길이", + "Length units": "Length units", + "Letter Spacing": "글자 간격", + "Library": "라이브러리", + "Library file": "라이브러리 파일", + "Line Spacing": "줄 간격", + "Local library": "로컬 라이브러리", + "Loop": "루프", + "MANAGE": "관리", + "MATERIALS": "재질", + "MODEL": "모델", + "MOTION": "동작", + "Margin": "여백", + "Mass": "질량", + "Mass Center": "질량 중심", + "Matched restrictions check the final values.": "조건이 충족된 제한 규칙은 최종 값을 검사합니다.", + "Material": "재질", "Max": "최대", + "Mid Radius": "중간 반지름", + "Middle double-click": "가운데 버튼 더블 클릭", "Min": "최소", "Mitre": "연귀", + "Model Parameters": "모델 매개변수", + "Modeled": "모델링됨", + "More toolbar panels": "도구 모음 패널 더 보기", + "Motion": "모션", + "Move / Copy": "이동 / 복사", + "Move Type": "이동 유형", + "Move down": "아래로 이동", + "Move earlier": "앞으로 이동", + "Move later": "뒤로 이동", + "Move up": "위로 이동", + "Name": "Name", + "Nearest": "가장 가까운", + "New": "새로 만들기", + "New Comp.": "새 구성요소", + "New Sketch": "새 스케치", + "New rule…": "새 규칙…", "New study": "새 연구", + "No crash reports.": "충돌 보고서가 없습니다.", + "No matching appearance presets.": "일치하는 외관 프리셋이 없습니다.", + "No matching appearances": "일치하는 외관 없음", "No visible bodies to export.": "표시된 바디가 없어 내보낼 수 없습니다.", "None": "없음", - "Normal to sketch": "스케치에 수직", + "Not available yet": "아직 사용할 수 없음", "Notch": "노치", + "OUTPUT": "출력", + "Opacity": "불투명도", + "Open GitHub draft": "GitHub 초안 열기", + "Open local libraries in the desktop app. You can export this design's library here.": "로컬 라이브러리는 데스크톱 앱에서 여세요. 이 디자인의 라이브러리는 여기서 내보낼 수 있습니다.", + "Open-source parametric 3D CAD in Rust. Licensed MIT OR Apache-2.0.": "Rust로 만든 오픈 소스 매개변수 3D CAD. 라이선스: MIT OR Apache-2.0.", + "Operator": "연산자", + "Other side": "반대쪽", "Other surface (mutual trim)": "다른 곡면(상호 트림)", "Outside": "바깥쪽", "Overall length": "전체 길이", + "Param. Graph": "매개변수 그래프", + "Parameter": "매개변수", + "Parts": "부품", "Pass through": "통과점", + "Path": "경로", + "Pattern": "패턴", + "Per Edge": "모서리별", + "Pick the tool bodies": "공구 바디를 선택하세요", "Picked": "선택한 항목", "Picked point": "선택한 점", + "Place at the origin instead": "대신 원점에 배치", + "Plastic Rules": "플라스틱 규칙", + "Playback": "재생", "Plot": "그래프", + "Position": "위치", + "Position (0 to 1)": "위치 (0~1)", "Position (G0)": "위치 (G0)", + "Position along the edge, 0 at the start end, 1 at the other": "모서리를 따른 위치, 0은 시작점, 1은 반대쪽 끝", "Preferences › Design turns the offer back on": "환경 설정 › 디자인에서 다시 켤 수 있습니다", + "Preview Row": "행 미리보기", + "Preview leaves the current design unchanged.": "미리보기는 현재 디자인을 변경하지 않습니다.", "Profiles/Curves": "프로파일/곡선", - "Projection": "투영", "Quantity": "양", + "RECENT": "최근", + "REFERENCE": "참조", "RULED SURFACE": "룰드 서피스", + "RULES": "규칙", + "Radius Fit": "반지름 맞춤", + "Ratio": "비율", + "Reattach selected face": "선택한 면 다시 부착", + "Recover": "복구", + "Recover unsaved design?": "저장되지 않은 디자인을 복구할까요?", "Rectangular": "직사각형", "Reference face": "참조 면", + "Remove Tools": "공구 제거", + "Remove from list": "목록에서 제거", + "Remove override": "재정의 제거", + "Remove private design details or paths before sharing.": "공유하기 전에 비공개 디자인 정보나 경로를 제거하세요.", + "Remove screenshot": "스크린샷 제거", + "Remove the column": "열 제거", + "Remove the track": "트랙 제거", + "Remove this point": "이 점 제거", "Report a bug — review a screenshot and open a GitHub draft": "버그 신고 — 스크린샷을 검토하고 GitHub 초안 열기", "Reset Toolbar": "도구 모음 재설정", + "Resize Part": "부품 크기 조정", + "Restore View": "뷰 복원", "Restore outer boundary": "외부 경계 복원", + "Restore the inherited component or physical material appearance": "상속된 구성요소 또는 물리 재질 외관 복원", + "Result": "결과", + "Retake screenshot": "스크린샷 다시 찍기", + "Reverse": "반전", + "Reverse Direction": "방향 반전", + "Revert": "되돌리기", + "Revert All Positions": "모든 위치 되돌리기", + "Revert Pos.": "위치 되돌리기", "Revert Position": "위치 복원", + "Review the report and screenshot before opening GitHub.": "GitHub를 열기 전에 보고서와 스크린샷을 검토하세요.", + "Rim Edge": "테두리 모서리", + "Roll History Marker Here": "여기로 히스토리 마커 이동", "Round": "둥글게", + "Rule": "Rule", + "Rule name": "규칙 이름", + "Rules run from top to bottom. Matched drives change effective values.": "규칙은 위에서 아래로 실행됩니다. 조건이 충족된 구동 규칙은 유효 값을 변경합니다.", + "SECTION": "단면", + "SURFACE QUALITY": "곡면 품질", + "Save Rule": "규칙 저장", + "Save View": "뷰 저장", "Save the study as an animated GIF, seen as the viewport shows it": "뷰포트에 보이는 대로 스터디를 애니메이션 GIF로 저장", + "Saved preview. Geometry is being checked before editing.": "저장된 미리보기입니다. 편집하기 전에 기하를 검사하는 중입니다.", + "Scale factor": "배율", + "Scene": "장면", + "Search": "검색", + "Search commands": "명령 검색", + "Search this library": "이 라이브러리 검색", + "Section": "단면", + "Select Other: hold the left button still on the model (or right-click › Select Other…) to list everything under the cursor; click again on the same spot to select the next thing there. Double-click the middle button to go Home (Preferences › Navigation).": "다른 항목 선택: 모델 위에서 왼쪽 버튼을 가만히 누르고 있거나(또는 오른쪽 클릭 › 다른 항목 선택…) 커서 아래의 모든 항목을 나열합니다. 같은 위치를 다시 클릭하면 다음 항목이 선택됩니다. 가운데 버튼을 더블 클릭하면 홈으로 이동합니다(환경설정 › 탐색).", "Select bodies (a face picks its body)": "바디 선택(면을 클릭하면 해당 바디 선택)", + "Select bodies or faces instead": "대신 바디 또는 면을 선택하세요", "Selection filter": "선택 필터", + "Semantic faces share their appearance across instances.": "시맨틱 면은 인스턴스 간에 외관을 공유합니다.", "Send your report on GitHub": "GitHub에서 보고서 보내기", + "Shape": "모양", + "Sheet Rules": "시트 규칙", + "Show Agent Cursor": "에이전트 커서 표시", + "Show in folder": "폴더에서 보기", + "Show the pointer an AI agent moves (#35)": "AI 에이전트가 움직이는 포인터 표시 (#35)", + "Signed axes": "부호 있는 축", + "Size": "크기", "Sketch constraints": "스케치 구속 조건", "Sketch curves": "스케치 곡선", "Sketch dimensions": "스케치 치수", "Sketch geometry and profiles": "스케치 기하 및 프로파일", + "Sketch plane has no body-face attachment.": "스케치 평면에 바디 면 부착이 없습니다.", "Sketch points": "스케치 점", "Slot width": "슬롯 폭", + "SolidCraft closed before these designs were saved. Their last autosave can be opened.": "이 디자인들이 저장되기 전에 SolidCraft가 종료되었습니다. 마지막 자동 저장본을 열 수 있습니다.", + "Specialise": "특수화", + "Speed": "속도", + "Stand it up": "세우기", + "Stand it up: a quarter turn about X, as one Move feature you can undo.": "세우기: X축 기준 90도 회전으로, 실행 취소할 수 있는 하나의 이동 피처로 적용됩니다.", + "Stand this part up?": "이 부품을 세울까요?", + "Start bulge": "시작 벌지", + "Start continuity": "시작 연속성", + "Step": "단계", + "Steps": "단계", "Stitch the kept pieces": "유지한 부분 재봉", "Stitch to both bodies": "두 바디에 재봉", "Study": "연구", + "Style": "스타일", + "Suppressed": "억제됨", "Surface": "곡면", + "Swap Ends": "양 끝 바꾸기", "TRIM": "트림", "Tangent (G1)": "접선 (G1)", + "Tangent Chain": "접선 체인", "Tear": "찢김", + "The dashed sketch is a saved plane guide. Select a new face to repair the attachment.": "점선 스케치는 저장된 평면 가이드입니다. 새 면을 선택하여 부착을 복구하세요.", + "The saved author occurrence is missing. Select a valid author placement before rebinding.": "저장된 작성자 인스턴스가 없습니다. 다시 연결하기 전에 올바른 작성자 배치를 선택하세요.", + "Then": "Then", + "These features will be deleted:": "다음 피처가 삭제됩니다:", + "These features will fail:": "다음 피처가 실패합니다:", "Thickness Outside": "바깥쪽 두께", "Thin": "얇은 벽", "Thin Extrude": "얇은 벽 돌출", + "This child is shared. Deleting it removes it from every copy of its parent.": "이 하위 항목은 공유됩니다. 삭제하면 상위 항목의 모든 복사본에서 제거됩니다.", + "This child is shared. Position changes apply to every copy of its parent.": "이 하위 항목은 공유됩니다. 위치 변경은 상위 항목의 모든 복사본에 적용됩니다.", + "This face cannot provide a durable attachment. Choose another face or explicitly use a fixed plane.": "이 면은 안정적인 부착을 제공할 수 없습니다. 다른 면을 선택하거나 고정 평면을 명시적으로 사용하세요.", + "To Offset": "오프셋까지", "To edges": "끝 모서리", + "Tolerance": "공차", + "Too close": "너무 가까움", "Trimming tool (plane, face or curves)": "트림 도구(평면, 면 또는 곡선)", "Turn off section analysis before exporting the view.": "뷰를 내보내기 전에 단면 분석을 끄세요.", "Type": "유형", "UNTRIM": "트림 해제", + "Unit": "단위", + "Updating the preview": "미리보기 업데이트 중", + "Use active author placement": "활성 작성자 배치 사용", + "Use fixed plane": "고정 평면 사용", + "Use saved fixed plane": "저장된 고정 평면 사용", + "Use selected face as fixed plane": "선택한 면을 고정 평면으로 사용", + "User Parameters": "사용자 매개변수", + "VIEW": "보기", + "VIEWS": "뷰", + "Value": "Value", "Velocity": "속도", "Vertices": "꼭짓점", - "Visible bodies only. Curves use line segments (0.01 mm tolerance).": "표시된 바디만 내보냅니다. 곡선은 선분으로 근사합니다 (허용오차 0.01 mm).", + "View navigator": "뷰 탐색기", + "Volume": "체적", + "Wall": "벽", "Wall Location": "벽 위치", "Wall Thickness": "벽 두께", + "When": "When", + "Width": "너비", + "Will fail": "실패 예정", + "X angle": "X 각도", + "X distance": "X 거리", + "Y angle": "Y 각도", + "Y distance": "Y 거리", + "Z angle": "Z 각도", + "Z distance": "Z 거리", + "Zebra": "제브라", + "angle, height": "각도, 높이", "appearance.dielectric_ior": "유전체 굴절률", "appearance.metallic": "금속성", "appearance.pbr_help": "이 표면은 렌더링 작업 공간이나 제품 PNG에서 확인하세요. 굴절과 투과는 지원하지 않습니다.", @@ -120,7 +416,13 @@ "appearance.roughness": "거칠기", "appearance.surface_response": "표면 반응", "browser.body_name": "바디{number}", + "browser.calibrate_title": "보정: {name}", + "browser.capture_many": "구성요소 {count}개가 이동되었지만 위치가 캡처되지 않았습니다.", + "browser.capture_note": "위치 캡처는 새 위치를 유지하고, 위치 복원은 이전 위치로 되돌립니다.", + "browser.capture_one": "구성요소가 이동되었지만 위치가 캡처되지 않았습니다.", "browser.component_name": "컴포넌트{number}", + "browser.edit_canvas_title": "캔버스 편집: {name}", + "browser.move_title": "이동: {name}", "browser.parameters": "매개변수 ({count})", "browser.precision": "정밀도: {precision}", "browser.sketch_name": "스케치{number}", @@ -135,6 +437,7 @@ "cmd.appearance_assign": "외관", "cmd.appearance_library": "외관 라이브러리", "cmd.appearance_list": "외관 목록", + "cmd.assembly_bom": "자재 명세서", "cmd.body_rename": "바디 이름 변경", "cmd.browser_group": "새 그룹", "cmd.browser_move": "브라우저 항목 이동", @@ -156,10 +459,13 @@ "cmd.component_insert_design": "설계 삽입", "cmd.component_links": "링크 목록", "cmd.component_list": "구성 요소 목록", + "cmd.component_metadata": "부품 속성", + "cmd.component_metadata_set": "부품 속성 변경", "cmd.component_move_bodies": "바디를 구성 요소로 이동", "cmd.component_move_sketches": "스케치를 구성 요소로 이동", "cmd.component_paste_new": "새로 붙여넣기", "cmd.component_properties": "구성 요소 물리 속성", + "cmd.component_relink": "소스 다시 연결", "cmd.component_rename": "구성 요소 이름 변경", "cmd.component_revert_position": "위치 복원", "cmd.component_unlock": "내용 잠금 해제", @@ -211,6 +517,7 @@ "cmd.edit_checkpoint": "체크포인트", "cmd.edit_restore_checkpoint": "체크포인트 복원", "cmd.engine_commands": "명령 목록", + "cmd.engine_describe": "명령 설명", "cmd.explode_create": "분해 보기", "cmd.explode_delete": "분해 보기 삭제", "cmd.explode_list": "분해 보기 목록", @@ -224,6 +531,7 @@ "cmd.file_slicers": "설치된 슬라이서", "cmd.inspect_accessibility": "접근성 분석", "cmd.inspect_center_of_mass": "무게중심", + "cmd.inspect_clearance": "여유 간격", "cmd.inspect_compare": "바디 비교", "cmd.inspect_continuity": "연속성 분석", "cmd.inspect_curvature_comb": "곡률빗 분석", @@ -233,6 +541,7 @@ "cmd.inspect_interference": "간섭", "cmd.inspect_isocurve": "등가곡선 분석", "cmd.inspect_minimum_radius": "최소 반경 분석", + "cmd.inspect_silhouette": "실루엣", "cmd.inspect_zebra": "얼룩말줄무늬 분석", "cmd.joint_as_built": "조립 상태 관절", "cmd.joint_cam": "캠", @@ -241,6 +550,7 @@ "cmd.joint_drive": "관절 구동", "cmd.joint_edit": "관절 편집", "cmd.joint_gear": "기어", + "cmd.joint_inspect": "조인트 검사", "cmd.joint_limits": "관절 제한", "cmd.joint_list": "관절 목록", "cmd.joint_motion_link": "모션 링크", @@ -368,6 +678,8 @@ "cmd.sketch_isoparametric_curve": "등매개 곡선", "cmd.sketch_line3d": "3D 선", "cmd.sketch_line_midpoint": "중점 선", + "cmd.sketch_loose_ends": "열린 끝점", + "cmd.sketch_loose_ends_tie": "열린 끝점 연결", "cmd.sketch_move": "스케치 개체 이동/복사", "cmd.sketch_move3d": "3D 점 이동", "cmd.sketch_move_point": "스케치 점 드래그", @@ -380,6 +692,7 @@ "cmd.sketch_polygon_inscribed": "내접 다각형", "cmd.sketch_project_to_surface": "곡면으로 투영", "cmd.sketch_rectangle_center": "중심 사각형", + "cmd.sketch_rectangle_rounded": "둥근 사각형", "cmd.sketch_rectangle_three_point": "3점 사각형", "cmd.sketch_rectangle_two_point": "2점 사각형", "cmd.sketch_redefine": "스케치 평면 재정의", @@ -396,6 +709,7 @@ "cmd.sketch_spline_fit_point": "맞춤점 스플라인", "cmd.sketch_spun_profile": "회전 프로파일", "cmd.sketch_toggle_driven": "종속 치수 전환", + "cmd.sketch_trim_path": "경로를 따라 트림", "cmd.solid_align": "정렬", "cmd.solid_boundary_fill": "경계 채우기", "cmd.solid_bounding_solid": "둘러싸는 솔리드", @@ -446,6 +760,15 @@ "cmd.view_navigate": "보기 탐색", "cmd.view_rename": "이름 있는 보기 이름 변경", "cmd.view_save": "새 이름 있는 보기", + "color.copy": "클릭하여 색상 값 복사", + "color.edit": "클릭하여 색상 편집", + "color.gamma": "색상 값을 0-255 감마 공간으로 표시 중", + "color.hue": "색조", + "color.linear": "색상 값을 0-1 선형 공간으로 표시 중", + "color.saturation_value": "채도 및 명도", + "color.selected": "선택한 색상", + "contact.components_count": "구성요소 {count}개", + "contact.enabled_label": "활성화됨", "coupling.gear_1": "기어 1", "coupling.gear_1_pick": "기어 1 (선택 사항)", "coupling.gear_2": "기어 2", @@ -462,6 +785,21 @@ "coupling.rack": "랙", "coupling.radius_1": "반지름 1", "coupling.radius_2": "반지름 2", + "crash.announce": "지난번에 SolidCraft가 예기치 않게 종료되었거나 내부 오류가 발생했습니다. 충돌 보고서가 저장되었습니다 (도움말 > 충돌 보고서…).", + "crash.copy_folder": "폴더 경로 복사", + "crash.copy_path": "경로 복사", + "crash.deleted": "보고서 {count}개를 삭제했습니다.", + "crash.detected_time": "감지 시각 {time} UTC", + "crash.intro": "충돌 보고서는 이 컴퓨터에만 남으며 어디로도 전송되지 않습니다. 보고…를 누르면 공유하기 전에 검토할 수 있는 초안이 열립니다.", + "crash.kind_command": "명령의 내부 오류", + "crash.kind_internal": "내부 오류", + "crash.kind_kernel": "커널 오류 (복구됨)", + "crash.kind_unclean": "예기치 않게 종료됨", + "crash.previous_session": "이전 SolidCraft 세션이 예기치 않게 종료되었거나 내부 오류가 발생했습니다. 비정상 종료 보고서는 시작할 때 감지됩니다. 자세한 내용은 도움말 > 충돌 보고서…를 참조하세요.", + "crash.replayable": "재생 가능", + "crash.report": "보고…", + "crash.unclean_explanation": "이후 실행 시 감지되었으며 정확한 종료 시각은 기록되지 않았습니다. 시스템 종료나 강제 중지로도 비정상 종료가 발생할 수 있습니다.", + "delete.and_more": "… 외 {count}개", "dialog.bodies_count": "바디 {count}개", "dialog.clearance_invalid": "간격은 0 이상의 길이여야 합니다", "dialog.compute": "계산", @@ -469,6 +807,8 @@ "dialog.computing": "계산 중… {seconds}초", "dialog.could_not_be_checked": "확인할 수 없음", "dialog.custom_axis": "↖ 사용자 정의 축", + "dialog.dimension_insert_hint": "다른 구동 치수를 두 번 클릭하여 이름 삽입", + "dialog.dimension_name": "치수: {name}", "dialog.edit_title": "{title} 편집", "dialog.select": "↖ 선택", "dialog.selected_count": "↖ {count}개 선택됨", @@ -492,6 +832,30 @@ "dxf.progress.write": "DXF 쓰는 중 (5/5)", "dxf.tolerance": "곡선 허용 오차", "dxf.tolerance_help": "표시된 바디만 내보내며 곡선은 직선 구간으로 근사합니다. 허용 오차가 작을수록 곡선이 매끄러워지지만 처리 시간과 메모리 사용량이 늘어납니다.", + "file_load.built": "지금까지 빌드됨: 피처 {total}개 중 {built}개.", + "file_load.converting": "솔리드 변환 중 {done}/{total}", + "file_load.inserting": "기하 삽입 중", + "file_load.opening": "디자인 여는 중", + "file_load.preparing_thumbnail": "미리보기 이미지 준비 중...", + "file_load.preparing_view": "뷰 준비 중...", + "file_load.preview_note": "저장된 미리보기입니다. 편집하기 전에 기하를 검사하는 중입니다.", + "file_load.reading": "파일 읽는 중...", + "file_load.reading_percent": "파일 읽는 중... {percent}%", + "file_load.rebuilding": "피처 다시 빌드 중 {done}/{total}", + "file_load.recovering": "디자인 복구 중", + "file_load.stopping": "이전 작업이 중지되기를 기다리는 중...", + "file_load.waiting": "파일 작업 대기 중", + "fits the face, e.g. M8": "면에 맞음, 예: M8", + "from the rule": "규칙에서", + "help.apache": "Apache 라이선스 2.0", + "help.attributions": "저작자 표시 (ATTRIBUTION.md)", + "help.build": "버전 {version} · 커밋 {commit} · 빌드 날짜 {date}", + "help.font_details": "인터페이스는 egui의 내장 글꼴을 사용합니다(Ubuntu Font Licence 및 MIT/Bitstream Vera 라이선스의 Ubuntu Light와 Hack, OFL 및 MIT의 Noto Emoji와 이모지 아이콘 글꼴). 스케치 텍스트는 Liberation Sans(SIL OFL 1.1)를 사용합니다. The Crafting Apps의 선택적 글꼴 팩 craft-fonts(BIZ UDPGothic, Shippori Mincho, BIZ UDMincho, Noto Sans CJK SC, Noto Sans Arabic; SIL OFL 1.1)는 SolidCraft 빌드에 포함되지 않습니다.", + "help.fonts": "글꼴", + "help.licences": "라이선스", + "help.mit": "MIT 라이선스", + "help.notice": "NOTICE", + "help.third_party": "타사 라이선스", "home.documentation": "문서", "home.in_this_browser": "이 브라우저에 저장됨", "home.missing": "찾을 수 없음", @@ -517,30 +881,86 @@ "install.menu": "앱 설치…", "install.steps_intro": "Safari는 자체 메뉴에서 웹 앱을 설치합니다:", "install.title": "SolidCraft 설치", + "issue.body_label": "보고서 내용", + "issue.note_image_copied": "GitHub 초안에 이미지를 붙여넣거나, 이미지 복사를 사용할 수 없으면 PNG를 저장하세요.", + "issue.note_opened": "GitHub 초안을 검토하고 스크린샷을 첨부하세요. GitHub의 Submit new issue 버튼을 누르면 게시됩니다.", + "issue.note_opened_copied": "보고서가 복사되었습니다. GitHub 초안에 붙여넣고 스크린샷을 첨부한 다음 GitHub에서 Submit new issue를 클릭하세요.", + "issue.note_removed": "이 초안에서 스크린샷을 제거했습니다.", + "issue.note_report_copied": "보고서가 복사되었습니다. 필요하면 GitHub 초안에 붙여넣으세요.", + "issue.note_save_failed": "스크린샷을 저장할 수 없습니다: {error}", + "issue.note_saved": "스크린샷을 저장했습니다. GitHub 초안에 PNG를 첨부하세요.", + "issue.save_screenshot": "스크린샷 저장…", "joint.from_bodies_hint": "선택한 각 바디가 제자리에 그대로 있으면서 자체의 새 구성 요소로 옮겨집니다.", "joint.one_body": "두 선택이 모두 {body}에 있습니다. 두 번째는 다른 부품에서 선택하세요.", "joint.one_component": "이 부품들은 한 구성 요소의 바디입니다: {bodies}. 관절은 한 구성 요소를 다른 구성 요소에 대해 움직이므로 부품마다 자체 구성 요소가 필요합니다.", + "keymap.command_id": "명령 ID", + "keymap.empty": "일치하는 명령이 없습니다", + "keymap.use_anyway": "그래도 여기서 {key} 사용", + "manage.appearance_hint": "선택 항목의 외관을 선택하거나 견본을 바디 또는 면으로 끌어다 놓으세요.", + "manage.assign_hint": "바디를 선택하고 플라스틱 설계 규칙을 지정하세요.", + "manage.config_hint": "구성 행, 열 및 규칙을 편집한 다음 행을 활성화하거나 미리 보세요.", + "manage.empty": "일치하는 행이 없습니다.", + "manage.material_hint": "바디를 선택하고 물리 재질을 지정하세요.", + "manage.parameters_hint": "표현식과 단위를 편집하세요. Enter를 누르거나 필드를 벗어나면 변경 사항이 적용됩니다.", + "manage.rules_hint": "편집할 규칙을 선택하거나 새 규칙을 만드세요. 확인하면 규칙이 저장됩니다.", + "measure.at": "위치", + "measure.item": "항목 {number}", + "messages.ago_h": "{n}시간 전", + "messages.ago_min": "{n}분 전", + "messages.ago_s": "{n}초 전", + "messages.chip_hint": "클릭하여 이 세션의 모든 메시지 보기", + "messages.clear": "지우기", + "messages.copy_all": "모두 복사", + "messages.menu": "메시지…", + "messages.none": "아직 메시지가 없습니다.", + "messages.title": "메시지", "motion.checked_to": "{step} 단계까지만 확인했습니다: 확인 작업량 한도에 도달했습니다", "motion.collision": "{a} · {b}: {steps} 단계", + "motion.delete_key": "키프레임 삭제", "motion.duration_hint": "초 (비우면: 단계당)", + "motion.key_here": "여기에 키프레임 추가", + "motion.key_here_hint": "이 단계에 조인트의 현재 값으로 키프레임 추가", "motion.no_collisions": "연구 전체에서 충돌이 없습니다", + "motion.step_back": "이전 단계", + "motion.step_forward": "다음 단계", + "motion.to_end": "끝으로", + "motion.to_start": "처음으로", + "motion.track_name": "트랙 {number}", "nav.touchpad.help": "Shift를 누른 채 포인터를 움직이면 화면이 이동하고, Alt/Option을 누른 채 움직이면 회전합니다. 마우스 버튼은 필요 없습니다. 세로 스크롤로 확대/축소합니다.", "nav.touchpad.label": "터치패드", "nav.touchpad.orbit": "회전 (Alt/Option을 누르고 이동, 마우스 버튼 불필요)", "nav.touchpad.pan": "화면 이동 (Shift를 누르고 이동, 마우스 버튼 불필요)", "nav.touchpad.scroll": "터치패드는 세로 스크롤로 확대/축소합니다. 두 손가락 이동 설정은 다른 프리셋을 위해 유지됩니다.", "nav.touchpad.zoom": "확대/축소 (세로 스크롤 또는 핀치)", + "needs two joints": "조인트 두 개가 필요함", + "new configuration": "새 구성", + "new parameter": "new parameter", + "no hole": "구멍 없음", + "no interference": "간섭 없음", + "no joint that moves yet": "아직 움직이는 조인트 없음", + "no picture": "이미지 없음", + "none": "없음", + "parts.automatic_name": "자동", "pattern.alignment_2": "정렬 2", "pattern.alignment_hint": "개수에는 원본이 포함됩니다. 가운데 정렬은 복사본을 양쪽에 배치하며, 개수가 짝수이면 방향 반전으로 복사본이 하나 더 배치되는 쪽을 선택합니다.", "pattern.direction_1": "방향 1", "pattern.direction_2": "방향 2", "pattern.flip_direction": "방향 반전", + "pick a hole to seat it, or OK places it at the origin": "안착시킬 구멍을 선택하거나, 확인을 누르면 원점에 배치됩니다", + "pick one or two vertices, edges or faces": "꼭짓점, 모서리 또는 면을 하나나 두 개 선택하세요", + "prefs.cpu": "CPU (소프트웨어)", + "prefs.minutes_suffix": " min", + "properties.title": "속성: {name}", + "recovery.days_ago": "{count}일 전", + "recovery.detail": "{file} · 피처 {features}개 · {when} 자동 저장", + "recovery.hours_ago": "{count}시간 전", + "recovery.just_now": "방금", + "recovery.min_ago": "{count}분 전", + "recovery.never_saved": "저장된 적 없음", "render.background": "장면 배경", "render.fit": "제품에 맞추기", - "render.image_cancel": "렌더링 취소", "render.image_cancelled": "렌더링 취소됨", "render.image_cancelling": "취소 중", - "render.image_check": "렌더 요청 확인", "render.image_completed": "이미지 내보내기 준비됨", "render.image_encoding": "PNG 인코딩 중", "render.image_export": "PNG 내보내기", @@ -587,6 +1007,19 @@ "sample.plate.name": "샘플 플레이트", "sample.vents.about": "직사각형 패턴의 슬롯: 행, 열, 피치가 매개변수", "sample.vents.name": "통풍 플레이트", + "search.command_keys": "Enter 실행 Shift+Enter 실행 후 열어 두기 Esc 닫기", + "search.commands": "명령", + "search.design": "이 디자인에서", + "search.feature": "피처", + "search.invalid": "올바르지 않음", + "search.keys": "↑ ↓ 선택 Enter 실행 Tab 이름 채우기 Esc 닫기", + "search.no_match": "'{query}'와(과) 일치하는 명령이 없습니다", + "search.parameter": "매개변수", + "search.recent": "최근", + "search.run": "명령 실행", + "search.suggest": "{label}을(를) 찾으셨나요?", + "search.try": "명령 이름, 이 디자인의 피처 또는 매개변수를 입력하세요. 값과 함께 명령을 실행하려면 명령 ID와 JSON 객체를 입력하세요: {example}", + "search.valid": "올바름", "settings.display_quality_note": "세밀할수록 곡면과 모서리가 더 매끄럽게 표시되지만 메시 생성 시간이 늘어납니다. 뷰포트만 바뀌며 설계나 내보내기는 바뀌지 않습니다.", "settings.frame_rate_note": "뷰의 오른쪽 아래에 초당 프레임 수를 표시합니다. 켜져 있는 동안 뷰를 계속 다시 그립니다.", "settings.measure_axis_distances": "X/Y/Z 거리 표시", @@ -597,27 +1030,51 @@ "settings.reset_intro": "다음 설정은 이 컴퓨터에서 작동하지 않아 SolidCraft를 시작할 수 없게 하므로 변경되었습니다:", "settings.reset_title": "설정이 변경되었습니다", "settings.supersampling_note": "뷰를 더 높은 해상도로 그린 뒤 축소합니다. 4K 미만 화면에서 모서리, 선, 그리드가 더 매끄러워집니다. GPU 시간이 듭니다: 1.5×에서 약 2.25배, 2×에서 4배의 픽셀.", + "shortcut.json_error": "매개변수는 JSON 형식이어야 합니다: {error}", + "shortcut.no_command": "`{id}` 명령이 없습니다. JSON 앞의 텍스트는 명령 ID여야 합니다", + "shortcut.pin": "S 상자 맨 위에 고정", + "shortcut.unpin": "고정 해제", "sketch.degrees_of_freedom": "자유도 {count}개", + "sketch.dof_left": "남은 자유도 {count}개", + "sketch.dof_left_one": "남은 자유도 {count}개", "sketch.draw_curves": "{linetype}(으)로 그리기", "sketch.make_selection": "선택 항목을 {linetype}(으)로 변경", + "sketch.open_ends": "열림 {count}", + "sketch.untied_ends": "미연결 {count}", + "sketch_panel.attached": "부착 대상: {body} / {path}", + "sketch_panel.author": "작성 배치: {path}", + "sketch_panel.dimension_hint": "값이나 수식을 입력한 다음 확인을 누르세요.", + "sketch_panel.move_hint": "거리와 각도를 입력한 다음 확인을 누르세요.", + "sketch_panel.redefine_title": "{command}: {name}", + "sketch_panel.sheet_attachment": "판금 바디의 평평한 면에 부착되어 있으며 판금이 변경되면 해당 패널을 따릅니다.", + "sketch_panel.text_hint": "텍스트와 배치를 편집한 다음 확인을 누르세요.", + "sketch_panel.use_plane": "{plane} 평면 사용", "sketch_text.align_center": "가운데", "sketch_text.align_left": "왼쪽", "sketch_text.align_right": "오른쪽", "sketch_text.bold": "굵게", "sketch_text.builtin_font": "{family}(내장)", - "sketch_text.font_search": "글꼴 검색", "sketch_text.italic": "기울임꼴", "sketch_text.loading_fonts": "설치된 글꼴을 찾는 중…", "sketch_text.on_path": "텍스트가 경로를 따릅니다: 위치는 곡선이 정합니다", "sketch_text.path_clear": "곡선에서 텍스트 떼기", "sketch_text.path_hint": "텍스트가 따라갈 스케치 곡선: 여기를 클릭한 다음 곡선을 클릭", "sketch_text.use_font_file": "글꼴 파일 {path} 사용", + "solid": "솔리드", + "the parts library is not available": "부품 라이브러리를 사용할 수 없습니다", + "thread.automatic_size": "자동 크기", + "thread.designation": "호칭", + "thread.iso_metric": "ISO 미터", + "thread.select_size": "크기 선택", "timeline.group": "새 특성 폴더", "timeline.move_many": "타임라인 항목 이동", "timeline.move_to_group": "특성을 폴더로 이동", "timeline.rename_group": "특성 폴더 이름 변경", "timeline.reorder_many": "특성 순서 변경", "timeline.ungroup": "특성 폴더 제거", + "to the face": "면까지", + "to the next face": "다음 면까지", + "toolbar.customize_note": "{tab} 탭입니다. 명령을 선택하면 도구 모음에 해당 버튼이 추가됩니다. 패널의 드롭다운에서 행을 도구 모음으로 끌거나, 버튼을 도구 모음 밖으로 끌어 제거하거나, 드롭다운 행의 고정 핀을 사용할 수도 있습니다.", "toolbar.image": "이미지", "toolbar.render": "렌더링", "toolbar.render_scene": "장면", @@ -625,17 +1082,22 @@ "trace.stopped_by_contact": "샘플 {sample}에서 끝남: {a}이(가) {b}을(를) 통과합니다", "trace.stopped_by_loop": "샘플 {sample}에서 끝남: {joint}을(를) 지나는 루프를 더 이상 닫을 수 없습니다", "ui.1_degree_of_freedom": "자유도 1개", + "ui.3d_mouse_speed": "3D 마우스 속도", "ui.3d_sketch": "3D 스케치", - "ui.about": "정보", "ui.activate": "활성화", "ui.active_component": "활성 컴포넌트", + "ui.add_configuration": "구성 추가", + "ui.add_parameter": "매개변수 추가", "ui.agent_chat": "에이전트 채팅", + "ui.agent_chat_add": "파일 첨부", + "ui.agent_chat_add_file": "파일 선택…", "ui.agent_chat_allow": "허용", "ui.agent_chat_allowed": "허용함", "ui.agent_chat_answered": "응답: {option}", "ui.agent_chat_approval": "에이전트가 이 작업을 하도록 허용할까요?", "ui.agent_chat_attach_view": "뷰 첨부", "ui.agent_chat_attach_view_tip": "현재 뷰의 이미지를 메시지와 함께 보냅니다", + "ui.agent_chat_attachable": "이미지, PDF, 텍스트 및 CAD 파일", "ui.agent_chat_auth_agent": "{name}(으)로 로그인", "ui.agent_chat_auth_env": "환경 변수 {vars}을(를) 설정하고 SolidCraft를 다시 시작하세요.", "ui.agent_chat_auth_needed": "에이전트가 로그인을 요청합니다. 로그인은 에이전트에서 직접 하며, SolidCraft는 비밀번호나 키를 보지 않습니다.", @@ -655,31 +1117,74 @@ "ui.agent_chat_deny": "거부", "ui.agent_chat_desktop_only": "에이전트 채팅은 데스크톱 앱이 필요합니다.", "ui.agent_chat_detecting": "에이전트 찾는 중…", + "ui.agent_chat_dock": "사이드 패널에 고정", "ui.agent_chat_dock_left": "왼쪽에 고정", "ui.agent_chat_dock_right": "오른쪽에 고정", + "ui.agent_chat_drop_hint": "놓으면 다음 메시지에 첨부됩니다", + "ui.agent_chat_edit": "편집", "ui.agent_chat_exited": "에이전트가 중지되었습니다.", "ui.agent_chat_failed_start": "에이전트를 시작할 수 없습니다: {error}", + "ui.agent_chat_file_cad_not_read": "{name}: CAD 파일은 읽지 않고 디자인으로 가져옵니다", + "ui.agent_chat_file_empty_picture": "{name}: 빈 이미지", + "ui.agent_chat_file_error": "{name}: {error}", + "ui.agent_chat_file_heic": "{name}: HEIC 이미지는 여기서 읽을 수 없습니다. 먼저 JPEG 또는 PNG로 내보내세요", + "ui.agent_chat_file_importing": "디자인으로 가져오는 중…", + "ui.agent_chat_file_kinds": "{name}: 이미지(PNG, JPEG, GIF, WebP, BMP, TIFF), 텍스트 파일(SVG 포함), CAD 파일(STEP, IGES, FreeCAD, Rhino, STL, 3MF, OBJ, glTF)을 첨부할 수 있습니다", + "ui.agent_chat_file_loading": "파일 읽는 중…", + "ui.agent_chat_file_not_a_file": "{name}: 파일이 아닙니다", + "ui.agent_chat_file_not_a_picture": "{name}: 이미지가 아닙니다", + "ui.agent_chat_file_not_utf8": "{name}: UTF-8 텍스트가 아닙니다", + "ui.agent_chat_file_picture_too_big": "{name}: 이미지는 최대 {max} MB까지 가능합니다", + "ui.agent_chat_file_text_too_big": "{name}: 텍스트 파일은 최대 {max} KB까지 가능합니다", + "ui.agent_chat_file_too_large": "{name}: 너무 큽니다", + "ui.agent_chat_file_too_large_to_send": "{name}: 축소해도 보내기에는 너무 큽니다", + "ui.agent_chat_file_unreadable_picture": "{name}: 읽을 수 없는 이미지입니다", + "ui.agent_chat_files": "파일: {files}", + "ui.agent_chat_files_left_out": "메시지 하나에는 파일을 최대 {max}개까지 보낼 수 있습니다. 제외됨: {files}", + "ui.agent_chat_files_loading": "파일을 읽는 동안 기다리는 중", + "ui.agent_chat_files_max": "메시지 하나에 파일은 최대 {max}개", + "ui.agent_chat_import_failed": "{name}: 가져오기 실패: {error}", "ui.agent_chat_intro": "이미 사용 중인 코딩 에이전트나 선택한 모델 엔드포인트와 채팅하세요. SolidCraft 도구로 열린 디자인을 다루며, 변경 사항은 바로 보이고 메시지마다 한 번에 실행 취소할 수 있습니다. 묻지 않고 할 수 있는 일은 환경 설정 > AI에서 정합니다.", "ui.agent_chat_key_in_env": "키 설정됨", "ui.agent_chat_left": "왼쪽", "ui.agent_chat_limit": "에이전트가 메시지당 변경 한도 {limit}에 도달했습니다. 계속하게 하려면 메시지를 하나 더 보내세요.", "ui.agent_chat_minimize": "얇은 막대로 최소화", + "ui.agent_chat_model_tip": "에이전트가 사용하는 모델입니다. 선택은 이 에이전트에 기억됩니다.", + "ui.agent_chat_new": "새 채팅", + "ui.agent_chat_new_confirm": "새 채팅을 시작할까요? 현재 채팅은 지워집니다.", + "ui.agent_chat_next_picture": "다음 이미지", "ui.agent_chat_no_cli": "앱 옆에서 solidcraft-cli를 찾지 못해 에이전트가 디자인에 접근할 수 없습니다.", "ui.agent_chat_no_control": "에이전트 채팅 엔드포인트가 시작되지 않아 에이전트가 디자인에 접근할 수 없습니다.", "ui.agent_chat_no_images": "이 에이전트는 이미지를 받지 않습니다", + "ui.agent_chat_no_picture": "클립보드에 이미지가 없습니다", "ui.agent_chat_none_found": "코딩 에이전트를 찾지 못했습니다. 다음 중 하나를 설치한 뒤 새로 고침을 누르세요:", "ui.agent_chat_none_found_short": "에이전트를 찾지 못함", "ui.agent_chat_not_installed": "설치되지 않음", "ui.agent_chat_not_signed_in": "로그인 안 됨", + "ui.agent_chat_own_window": "별도 창", + "ui.agent_chat_paste_picture": "이미지 붙여넣기", "ui.agent_chat_permission": "에이전트가 실행 허락을 요청합니다: {title}", "ui.agent_chat_pick": "에이전트", "ui.agent_chat_placeholder": "에이전트에게 디자인 변경을 요청하세요…", + "ui.agent_chat_placeholder_busy": "에이전트가 끝나면 보낼 메시지를 대기열에 추가 (Ctrl+Enter: 지금 보내기)", + "ui.agent_chat_pop_out": "다른 화면으로 옮길 수 있는 별도 창으로 열기", + "ui.agent_chat_previous_picture": "이전 이미지", "ui.agent_chat_privacy": "사용자의 계정으로 실행하는 에이전트 외에는 아무 데도 전송되지 않습니다.", "ui.agent_chat_privacy_note": "SolidCraft는 아무것도 어디로도 보내지 않습니다. 실행한 에이전트가 사용자의 계정으로 자신의 서비스와 통신합니다. SolidCraft는 키나 비밀번호를 보거나 저장하지 않습니다.", + "ui.agent_chat_queue": "대기열", + "ui.agent_chat_queue_full": "대기 중인 메시지가 너무 많습니다. 하나를 제거하거나 에이전트를 기다리세요.", + "ui.agent_chat_queued": "대기 중", + "ui.agent_chat_queued_stopped": "대기 중 (중지됨, 보내지 않음)", "ui.agent_chat_refresh": "새로 고침", "ui.agent_chat_refused": "에이전트에게 허용되지 않음: {reason}", + "ui.agent_chat_remove": "대기열에서 제거", + "ui.agent_chat_remove_file": "이 메시지에서 빼기", + "ui.agent_chat_remove_imported": "이 메시지에서 빼기. 부품은 디자인에 남습니다 (실행 취소하면 제거됨)", "ui.agent_chat_right": "오른쪽", + "ui.agent_chat_save": "저장", "ui.agent_chat_send": "보내기", + "ui.agent_chat_send_now": "지금 보내기", + "ui.agent_chat_send_now_tip": "에이전트의 현재 단계를 중지하고 이것을 다음으로 보냅니다 (Ctrl+Enter)", "ui.agent_chat_side": "에이전트 채팅 위치", "ui.agent_chat_signed_in": "로그인됨", "ui.agent_chat_state_auth": "로그인 필요", @@ -690,6 +1195,7 @@ "ui.agent_chat_state_starting": "시작하는 중…", "ui.agent_chat_stop": "중지", "ui.agent_chat_stop_tip": "에이전트와 에이전트가 시작한 모든 것을 중지", + "ui.agent_chat_stop_turn_tip": "에이전트 중지 (Esc). 대기 중인 메시지는 그대로 대기합니다.", "ui.agent_chat_turn_limit": "메시지당 변경 수", "ui.agent_chat_undo_changes": "이 변경 사항 실행 취소", "ui.agent_chat_undo_label": "에이전트 채팅: {message}", @@ -718,6 +1224,7 @@ "ui.ai_bad_url": "http:// 또는 https://로 시작하는 URL을 입력하세요", "ui.ai_base_url": "기본 URL", "ui.ai_button": "AI", + "ui.ai_command_hint": "my-agent --acp", "ui.ai_copy_suffix": "복사본", "ui.ai_custom_url": "사용자 지정 URL", "ui.ai_default": "기본값", @@ -738,8 +1245,10 @@ "ui.ai_mode_edits_note": "모델링 명령은 묻지 않고 실행되며, 저장·열기·내보내기 등 파일 작업이나 파괴적인 작업은 계속 묻습니다.", "ui.ai_mode_global": "위 설정 따름", "ui.ai_model": "모델", + "ui.ai_model_hint": "qwen3:14b", "ui.ai_modes_scope": "이 설정은 SolidCraft 도구에 적용됩니다. 에이전트 자체 도구(셸, 파일 편집)는 에이전트에 모드가 있을 때 채팅 패널 머리글에서 고르는 에이전트 자체 모드를 따릅니다.", "ui.ai_name": "이름", + "ui.ai_name_hint": "내 에이전트", "ui.ai_need_command": "에이전트를 시작하는 명령을 입력하세요", "ui.ai_need_model": "모델 이름을 입력하세요", "ui.ai_no_answer": "에이전트가 제시간에 응답하지 않았습니다", @@ -770,6 +1279,7 @@ "ui.ai_toolbar_button": "도구 모음에 버튼 표시", "ui.ai_toolbar_button_note": "도구 모음 오른쪽 끝의 AI 버튼. Ctrl+Shift+A와 보기 메뉴로도 패널을 열 수 있습니다.", "ui.ai_undo_tip": "이 메시지에서 에이전트가 바꾼 모든 것을 한 번에 실행 취소", + "ui.ai_url_hint": "https://example.com/v1", "ui.all": "모두", "ui.ambient_occlusion": "앰비언트 오클루전", "ui.ambient_occlusion_help": "불투명한 표면이 만나는 곳에 부드러운 음영을 추가합니다. GPU 뷰포트가 필요합니다.", @@ -783,7 +1293,8 @@ "ui.anti_aliasing": "안티앨리어싱", "ui.apply": "적용", "ui.arc": "호", - "ui.assemble": "조립", + "ui.assistant": "어시스턴트", + "ui.assistant_waiting": "승인 {count}건 대기 중", "ui.autosave_every": "자동 저장 간격", "ui.axes": "축", "ui.axis": "축", @@ -794,6 +1305,11 @@ "ui.bodies_all_if_none": "바디 (없으면 전체)", "ui.box": "박스", "ui.break": "끊기", + "ui.browser_bodies_one": "{count}개 바디", + "ui.browser_bodies_other": "{count}개 바디", + "ui.browser_collapse": "브라우저 접기", + "ui.browser_expand": "브라우저 펼치기", + "ui.browser_title": "브라우저", "ui.calibrate": "캘리브레이션", "ui.cancel": "취소", "ui.canvases": "캔버스", @@ -803,11 +1319,13 @@ "ui.chamfer": "모따기", "ui.chamfer_type": "모따기 유형", "ui.change_workspace": "작업 공간 변경", - "ui.chord_length": "현 길이", "ui.circle": "원", "ui.circular_pattern": "원형 패턴", + "ui.clear": "지우기", "ui.clear_recent": "최근 항목 지우기", "ui.clear_the_selection": "선택 해제", + "ui.click_selects_whole_bodies": "클릭하면 바디 전체 선택", + "ui.click_then_press_key": "클릭한 다음 새 키를 누르세요", "ui.close": "닫기", "ui.coil": "코일", "ui.coincident": "일치", @@ -833,12 +1351,11 @@ "ui.command_done": "{command} 완료", "ui.command_palette_hint": "명령 입력(예: {example}) — 또는 S 키를 눌러 검색", "ui.concentric": "동심", - "ui.configurations": "구성", "ui.conic_curve": "원뿔 곡선", "ui.constant": "상수", "ui.constraints_conflict": "구속 조건 충돌", - "ui.construct": "구성", "ui.construction": "구성선", + "ui.context_menu": "컨텍스트 메뉴", "ui.continuity_g0": "G0 꺾임", "ui.continuity_g1": "G1 접선", "ui.continuity_g2": "G2 곡률", @@ -862,7 +1379,6 @@ "ui.cylinder": "원통", "ui.dark": "어둡게", "ui.default_modelling_orientation": "기본 모델링 방향", - "ui.degrees_of_freedom": "자유도", "ui.delete": "삭제", "ui.depth": "깊이", "ui.design": "디자인", @@ -904,8 +1420,8 @@ "ui.equivalent_radius": "등가 반지름", "ui.expand": "펼치기", "ui.exportDxf": "DXF 내보내기…", - "ui.export_ellipsis": "내보내기...", "ui.export_ellipsis_keymap": "내보내기…", + "ui.export_keymap_tip": "키, S 상자 즐겨찾기, 도구 모음을 파일로 내보내기", "ui.extend": "연장", "ui.extent_type": "범위 유형", "ui.extrude": "돌출", @@ -915,6 +1431,7 @@ "ui.features": "피처", "ui.file": "파일", "ui.fillet": "필렛", + "ui.filter_commands_or_keys": "명령 또는 키 필터", "ui.findInTimeline": "타임라인에서 찾기", "ui.findInWindow": "창에서 찾기", "ui.finish_sketch": "스케치 종료", @@ -926,6 +1443,7 @@ "ui.frame_rate": "프레임 속도", "ui.front": "정면", "ui.fully_constrained": "완전 구속", + "ui.function": "함수", "ui.general": "일반", "ui.graphics": "그래픽", "ui.graphics_custom": "사용자 지정", @@ -933,7 +1451,11 @@ "ui.graphics_preset": "그래픽 프리셋", "ui.graphics_preset_help": "품질: 앰비언트 오클루전, 세밀한 표시 품질, 적응형 2× 슈퍼샘플링. 성능: 앰비언트 오클루전 끄기, 보통 표시 품질, 슈퍼샘플링 끄기. 수동 변경 시 사용자 지정으로 표시됩니다. MSAA는 유지됩니다.", "ui.graphics_quality": "품질", + "ui.grid_follows_view": "격자가 뷰를 따라감", + "ui.grid_follows_view_hint": "측면 뷰에서는 지면 대신 마주 보는 수직 평면에 격자를 표시합니다", + "ui.ground_shadow": "바닥 그림자", "ui.groupSelected": "선택 항목 그룹화", + "ui.heading_add_ins": "애드인", "ui.heading_assemble": "조립", "ui.heading_box": "박스", "ui.heading_chamfer": "모따기", @@ -959,6 +1481,7 @@ "ui.heading_inspect": "검사", "ui.heading_interference": "간섭", "ui.heading_loft": "로프트", + "ui.heading_make": "제작", "ui.heading_measure": "측정", "ui.heading_mesh": "메시", "ui.heading_mirror": "대칭 복사", @@ -975,6 +1498,7 @@ "ui.heading_plane_at_angle": "각도 평면", "ui.heading_plastic": "플라스틱", "ui.heading_position": "배치", + "ui.heading_prepare": "준비", "ui.heading_rectangular_pattern": "직사각형 패턴", "ui.heading_revolve": "회전", "ui.heading_right": "우측면", @@ -986,7 +1510,6 @@ "ui.heading_sheet_metal": "판금", "ui.heading_shell": "쉘", "ui.heading_sketch": "스케치", - "ui.heading_sketch_palette": "스케치 팔레트", "ui.heading_sketch_scale": "스케치 배율", "ui.heading_solid": "솔리드", "ui.heading_sphere": "구", @@ -997,6 +1520,7 @@ "ui.heading_top": "상면", "ui.heading_torus": "토러스", "ui.heading_utilities": "유틸리티", + "ui.heading_utility": "유틸리티", "ui.help": "도움말", "ui.hide": "숨기기", "ui.hideAxes": "축 숨기기", @@ -1004,12 +1528,14 @@ "ui.hideOrigin": "원점 숨기기", "ui.hidePlanes": "평면 숨기기", "ui.hideProfile": "윤곽 숨기기", + "ui.history_title": "기록", "ui.hole": "구멍", "ui.hole_tap_type": "탭 유형", "ui.hole_type": "구멍 유형", "ui.home": "홈", "ui.homeView": "홈 보기", "ui.horizontal_vertical": "수평/수직", + "ui.import_ellipsis": "가져오기…", "ui.infinite": "무한", "ui.insert": "삽입", "ui.inspect": "검사", @@ -1022,10 +1548,12 @@ "ui.length_decimals": "길이 소수점 자릿수", "ui.light": "밝게", "ui.line": "선", - "ui.linetype": "선 종류", "ui.lock": "잠금", "ui.loft": "로프트", "ui.look_at": "바라보기", + "ui.look_at_anim_desc": "축 뷰, 보기, 홈 및 맞춤", + "ui.manipulator_free_alt": "Alt/Option으로도 매니퓰레이터 자유 드래그", + "ui.manipulator_free_alt_tip": "켬: 돌출 / 기즈모 화살표에서 Alt/Option 또는 Ctrl/Cmd를 누르면 값 스냅이 해제됩니다. 끔: Ctrl/Cmd만 해당.", "ui.manufacture": "제조", "ui.material_review.axes": "재료 로컬 축입니다. 바디 방향을 지정하지 않습니다.", "ui.material_review.claims": "출처와 라이선스는 검증되지 않은 주장입니다. 누락된 값은 알 수 없는 상태로 유지됩니다.", @@ -1053,10 +1581,8 @@ "ui.mesh_format_3mf": "3MF", "ui.mesh_format_3mf_tagged": "면 태그가 있는 3MF", "ui.mesh_format_stl": "STL", - "ui.midpoint": "중간점", "ui.mirror": "대칭 복사", "ui.mirror_line": "대칭선", - "ui.modify": "수정", "ui.move": "이동", "ui.multiple": "다중", "ui.named_views": "명명된 뷰", @@ -1065,6 +1591,7 @@ "ui.newSketchGroup": "새 스케치 그룹", "ui.new_body": "새 바디", "ui.new_design": "새 디자인", + "ui.no_geometry_yet": "아직 기하가 없습니다", "ui.no_slicer_found": "슬라이서를 찾을 수 없음", "ui.normal": "일반", "ui.normalConstruction": "일반 / 생성", @@ -1076,7 +1603,7 @@ "ui.offset_plane": "오프셋 평면", "ui.one_side": "한 방향", "ui.open": "열기", - "ui.open_ellipsis": "열기...", + "ui.open_ends_tip": "아무것과도 닿지 않음", "ui.open_preferences": "환경 설정 열기", "ui.open_recent": "최근 항목 열기", "ui.operation": "작업", @@ -1085,56 +1612,81 @@ "ui.orbit_around": "궤도 회전 기준", "ui.orientation": "배향", "ui.origin": "원점", - "ui.palette_points": "점", - "ui.palette_profile": "프로파일", + "ui.palette_construction_mode": "보조선 모드 (X)", + "ui.palette_more": "더 보기", + "ui.palette_sketch_options": "스케치 옵션", "ui.pan": "이동", "ui.pan_zoom_orbit": "이동, 확대/축소, 궤도 회전", "ui.parallel": "평행", "ui.parameters": "매개변수", + "ui.part_size_shared": "부품을 다시 빌드하며 추가된 피처는 모두 대체됩니다. 이 구성요소의 모든 인스턴스가 업데이트됩니다.", "ui.paste": "붙여넣기", "ui.path": "경로", "ui.pattern_on_path": "경로 패턴", "ui.perpendicular": "수직", + "ui.perspective_view": "원근 투영 뷰", "ui.pinToShortcuts": "바로 가기에 고정", "ui.pinToToolbar": "도구 모음에 고정", "ui.pipe": "파이프", "ui.placement": "배치", "ui.plane": "평면", "ui.plane_at_angle": "각도 평면", + "ui.plugins": "플러그인", + "ui.plugins_desktop": "플러그인은 데스크톱 앱에서 사용할 수 있습니다.", + "ui.plugins_empty": "설치된 플러그인이 없습니다.", + "ui.plugins_note": "각 플러그인은 {path} 안에 plugin.json이 있는 폴더입니다. SolidCraft는 이 파일만 읽으며 폴더의 코드를 실행하지 않습니다. 플러그인을 끄더라도 설치된 상태로 유지됩니다.", + "ui.plugins_skipped": "폴더 {count}개를 읽을 수 없습니다.", + "ui.plugins_version": "{version}", "ui.point": "점", "ui.point_under_the_cursor": "커서 아래의 점", "ui.points": "점", "ui.polygon": "다각형", "ui.preferences": "환경 설정", + "ui.press_a_key": "키를 누르세요…", "ui.profile": "프로파일", "ui.profile_plane": "프로파일 평면", "ui.profiles": "프로파일", "ui.project": "투영", + "ui.project_face_edges_sketch": "면 모서리를 새 스케치로 투영", "ui.properties": "속성", "ui.pull_direction": "빼기 방향", "ui.quantity": "수량", "ui.quantity_2": "수량 2", "ui.quit": "종료", + "ui.radial_context_menu": "방사형 컨텍스트 메뉴", "ui.radius": "반지름", - "ui.radius_type": "반지름 유형", + "ui.rail": "레일", + "ui.rail_fit": "레일 맞춤", "ui.reachable": "도달 가능", "ui.rectangle": "직사각형", "ui.rectangular_pattern": "직사각형 패턴", "ui.redo": "다시 실행", + "ui.relink_design_changed": "소스를 선택하는 동안 어셈블리가 변경되었습니다. 소스 다시 연결을 처음부터 다시 시작하세요.", + "ui.relink_done": "모든 인스턴스의 소스를 다시 연결했습니다.", + "ui.relink_not_linked": "이 구성요소는 소스 디자인에 연결되어 있지 않습니다.", + "ui.relink_select_one": "먼저 연결된 구성요소 하나 또는 그 인스턴스 하나를 선택하세요.", + "ui.relink_source_all": "소스 다시 연결 (모든 인스턴스)…", "ui.removeFromToolbar": "도구 모음에서 제거", "ui.removeSection": "단면 제거", "ui.render": "렌더", + "ui.renderer": "렌더러", "ui.repeat": "반복", "ui.report_a_bug": "버그 신고", + "ui.reset": "재설정", + "ui.reset_all": "모두 재설정", "ui.reset_the_settings_on_this_page": "이 페이지의 설정 초기화", "ui.restore": "복원", "ui.restore_defaults": "기본값 복원", + "ui.reverse_horizontal_pan_direction": "수평 이동 방향 반전", + "ui.reverse_horizontal_pan_tip": "두 손가락 수평 스크롤과 엄지 휠이 반대 방향으로 이동합니다", "ui.reverse_zoom_direction": "확대/축소 방향 반전", "ui.revolve": "회전", + "ui.ribbon_exit": "종료", + "ui.ribbon_pin_footer": "고정된 명령은 리본에 표시됩니다. 행 위에 마우스를 올려 고정하거나 해제하세요.", + "ui.ribbon_workspace": "작업 공간", "ui.right": "우측면", "ui.save": "저장", "ui.save_as": "다른 이름으로 저장", - "ui.save_as_ellipsis": "다른 이름으로 저장...", "ui.save_mesh_no_slicer": "슬라이서를 찾을 수 없습니다. '사용자 지정…'에서 슬라이서 프로그램을 선택하거나 '슬라이서로 보내기'를 끄세요", "ui.save_mesh_pick_bodies": "저장할 바디를 선택하세요", "ui.save_mesh_temp_failed": "{folder}을(를) 만들 수 없습니다: {error}", @@ -1142,11 +1694,15 @@ "ui.sbox_pin": "S 상자 맨 위에 고정", "ui.sbox_unpin": "고정 해제", "ui.scale": "축척", + "ui.second_rail": "두 번째 레일", "ui.section_analysis": "단면 분석", "ui.select": "선택", "ui.selectOther": "기타 선택…", "ui.selectTangentChain": "접선 체인 선택", "ui.selection": "선택", + "ui.selection_modifiers": "선택 보조 키", + "ui.selection_shift_add_only": "Shift+클릭은 추가만 함", + "ui.selection_shift_add_only_tip": "켬: Shift는 항목을 추가하고 Ctrl/Cmd는 토글합니다. 끔(기본값): Shift와 Ctrl/Cmd 모두 토글합니다.", "ui.send": "보내기", "ui.send_to_slicer": "슬라이서로 보내기", "ui.sent_to_slicer": "{slicer}(으)로 보냈습니다", @@ -1162,7 +1718,6 @@ "ui.show_constraints": "구속 조건", "ui.show_construction_geometries": "구성 형상", "ui.show_dimensions": "치수", - "ui.show_points": "점 표시", "ui.show_profile": "프로파일 표시", "ui.show_projected_geometries": "투영된 형상", "ui.simple": "단순", @@ -1171,14 +1726,16 @@ "ui.sketch": "스케치", "ui.sketch_dimension": "스케치 치수", "ui.sketch_grid": "스케치 격자", + "ui.sketch_modifiers": "스케치 보조 키", "ui.sketch_scale": "스케치 축척", - "ui.sketch_status": "스케치 상태", "ui.sketches": "스케치", "ui.slice": "슬라이스", "ui.slicer": "슬라이서", "ui.slicer_delete_tip": "{program}\nDelete 키로 목록에서 제거", "ui.slot": "슬롯", "ui.smooth": "부드럽게", + "ui.smooth_wheel_zoom": "부드러운 휠 확대/축소", + "ui.smooth_wheel_zoom_tip": "끄면 휠 이벤트를 부드러운 꼬리 없이 즉시 적용합니다", "ui.snap": "스냅", "ui.space_mouse_calibrate": "보정…", "ui.space_mouse_calibrate_tip": "창의 안내대로 캡을 움직이면 SolidCraft가 이 3D 마우스의 각 축이 어느 방향으로 얼마나 움직이는지 학습합니다. 이 3D 마우스에 저장됩니다.", @@ -1190,6 +1747,8 @@ "ui.space_mouse_dead_zone": "데드존", "ui.space_mouse_dead_zone_tip": "보기가 움직이기 전에 캡이 움직여야 하는 정도로, 전체 이동 범위에 대한 비율입니다. 캡을 건드리지 않았는데 보기가 움직이면 높이세요.", "ui.space_mouse_forget": "보정 삭제", + "ui.space_mouse_hint": "뷰를 함께 이동하고 회전합니다. 스케치는 이동과 확대/축소만 사용합니다.", + "ui.space_mouse_navigate": "SpaceNavigator / SpaceMouse로 탐색", "ui.space_mouse_none": "3D 마우스를 찾을 수 없음", "ui.space_mouse_not_calibrated": "보정 안 됨", "ui.space_mouse_reading": "읽은 값", @@ -1211,13 +1770,17 @@ "ui.sphere": "구", "ui.spline": "스플라인", "ui.split_body": "바디 분할", + "ui.stand_up_tip": "STEP 또는 IGES 파일이 Z 위쪽으로 열린 후 X축 기준 90도 회전을 제안", "ui.start": "시작", "ui.start_over": "처음부터 다시", - "ui.start_radius": "시작 반지름", + "ui.start_page": "시작 페이지", + "ui.stretch": "늘이기", "ui.supersampling": "슈퍼샘플링 (SSAA)", "ui.supersampling_adaptive": "뷰가 멈춰 있을 때만", "ui.supersampling_off": "끔 (1×)", "ui.suppress": "비활성화", + "ui.suppress_auto_snap": "그리기 / 드래그 중 자동 스냅 억제", + "ui.suppress_auto_snap_note": "기본값: Ctrl/Cmd 또는 Alt/Option 각각으로 스케치 스냅을 억제합니다. 하나의 키만 쓰려면 선택하세요.", "ui.sweep": "스윕", "ui.sweep_follow_direction": "방향 따르기", "ui.sweep_keep_as_drawn": "그린 대로 유지", @@ -1232,6 +1795,8 @@ "ui.theme": "테마", "ui.thickness": "두께", "ui.thread": "나사산", + "ui.tie_ends": "연결", + "ui.tie_ends_tip": "연결되지 않은 모든 끝점 구속", "ui.timeline_bottom": "하단 타임라인", "ui.timeline_left_note": "왼쪽 레이아웃에서는 롤백 바가 부품 및 장면 브라우저 위에 표시됩니다.", "ui.timeline_left_sidebar": "왼쪽 사이드바", @@ -1241,8 +1806,10 @@ "ui.top": "상면", "ui.torus": "토러스", "ui.total_angle": "전진 각도", + "ui.trackpad_pan_tip": "트랙패드 제스처로 이동(끔: 휠처럼 확대/축소). 마우스 휠은 확대/축소, 엄지 휠은 좌우 이동, 핀치는 항상 확대/축소합니다", "ui.trim": "트림", "ui.twist": "비틀림", + "ui.two_finger_scroll_pans": "두 손가락 스크롤로 이동", "ui.two_sides": "양방향", "ui.ui_scale": "UI 배율", "ui.undo": "실행 취소", @@ -1252,19 +1819,37 @@ "ui.units_of_new_designs": "새 디자인의 단위", "ui.unlock": "잠금 해제", "ui.unsuppress": "비활성화 해제", + "ui.untied_ends_tip": "위치로만 접촉함", "ui.untitled": "제목 없음", + "ui.up_axis_note": "뷰(축 뷰, 홈, 보기)에서 위쪽을 가리키는 축입니다. 디자인은 변경되지 않습니다.", "ui.updateToCurrentView": "현재 보기로 업데이트", - "ui.variable": "가변", "ui.view_centre": "뷰 중심", + "ui.visual_shaded_hidden_edges": "음영 처리 및 숨겨진 모서리", + "ui.visual_shaded_with_edges": "음영 처리 및 모서리", "ui.visual_style": "시각 스타일", + "ui.visual_wireframe": "와이어프레임", "ui.workspace": "작업 공간", + "ui.workspace_animation_description": "분해도, 모션 스터디 및 스토리보드", + "ui.workspace_available": "사용 가능", + "ui.workspace_current": "현재", + "ui.workspace_design_description": "스케치, 모델링, 조립 및 검사", + "ui.workspace_design_tabs": "모델 · 곡면 · 조립 · 삽입 · 검사 · 관리 · 보기", + "ui.workspace_drawing_description": "뷰, 치수, 표제란이 있는 2D 도면", + "ui.workspace_footer": "모든 작업 공간은 같은 디자인, 히스토리, 선택 항목에서 작동하며 리본 탭만 바뀝니다. 스케치나 피처를 편집하는 동안에는 전환기가 잠깁니다.", + "ui.workspace_manufacture_description": "슬라이싱, 툴패스 및 설정", + "ui.workspace_planned": "예정", + "ui.workspace_render_description": "제품 미리보기, 장면 설정 및 렌더링 이미지", + "ui.workspace_render_tabs": "장면 · 이미지", + "ui.workspace_simulation_description": "하중, 구속 조건 및 결과", "ui.x_distance": "X 거리", "ui.y_distance": "Y 거리", + "ui.y_up": "Y 위쪽", + "ui.z_up": "Z 위쪽", "ui.zoom": "확대/축소", + "ui.zoom_to_cursor_tip": "휠로 커서 아래 지점을 향해 확대/축소합니다 (끔: 뷰의 중심을 향해)", "ui.zoom_to_the_cursor": "커서 위치로 확대/축소", "update.available": "SolidCraft {version} 사용 가능", "update.button": "업데이트", - "update.button_tip": "SolidCraft {version} 사용 가능", "update.button_version": "{version}(으)로 업데이트", "update.check_automatically": "업데이트 자동 확인", "update.check_now": "지금 확인", @@ -1296,5 +1881,6 @@ "update.title": "업데이트 사용 가능", "update.up_to_date": "SolidCraft가 최신 버전입니다.", "update.update_now": "지금 업데이트", - "update.you_have": "현재 버전은 {version}입니다." + "update.you_have": "현재 버전은 {version}입니다.", + "↑ ↓ choose · Enter / Tab complete · Esc dismiss": "↑ ↓ 선택 · Enter / Tab 완성 · Esc 닫기" } diff --git a/assets/locales/ms.json b/assets/locales/ms.json index 11765f89a..b4e18b2f7 100644 --- a/assets/locales/ms.json +++ b/assets/locales/ms.json @@ -3,11 +3,14 @@ "1. Open GitHub draft below, then paste the report copied to your clipboard.": "1. Buka draf GitHub di bawah, kemudian tampal laporan yang disalin ke papan klip anda.", "1. Open GitHub draft below. Your title and report will be filled in.": "1. Buka draf GitHub di bawah. Tajuk dan laporan anda akan diisi secara automatik.", "2. Attach your screenshot: copy and paste it, or save and upload the PNG.": "2. Lampirkan tangkapan skrin anda: salin dan tampal, atau simpan dan muat naik PNG.", + "2D": "2D", "3. Click Submit new issue on GitHub to send your report.": "3. Klik Submit new issue di GitHub untuk menghantar laporan anda.", "A new configuration, a copy of the active one": "Konfigurasi baharu, salinan konfigurasi aktif", - "AI": "AI", + "ARRANGE": "SUSUN", "About SolidCraft": "Tentang SolidCraft", "Acceleration": "Pecutan", + "Access": "Akses", + "Actions": "Tindakan", "Active": "Aktif", "Active rule": "Peraturan aktif", "Add": "Tambah", @@ -15,6 +18,7 @@ "Add Mid Radius": "Tambah Jejari Tengah", "Add Row": "Tambah Baris", "Add condition": "Tambah syarat", + "Add or edit rule": "Tambah atau sunting peraturan", "Against": "Bertentangan", "Alignment": "Penjajaran", "All Sketch Points": "Semua Titik Lakaran", @@ -28,20 +32,33 @@ "Applied Radius": "Jejari Digunakan", "Apply To": "Gunakan Pada", "Apply to selection": "Gunakan pada pilihan", + "Apply your appearance first. Exports assigned appearances and materials created in this design.": "Guna penampilan anda dahulu. Mengeksport penampilan yang ditetapkan dan bahan yang dicipta dalam reka bentuk ini.", "Arc length": "Panjang lengkok", "Area": "Luas", + "As-Built": "Seperti Dibina", + "Assign Rule": "Tetapkan Peraturan", "Attachment": "Pautan", + "BLEND SURFACE": "PERMUKAAN GAUNAN", "BOUNDARY SURFACE": "PERMUKAAN SEMPADAN", "BROWSER": "PELAYAR", "Bend Line Position": "Kedudukan Garis Lenturan", "Bend Position": "Kedudukan Lenturan", "Bend Radius": "Jejari Lenturan", + "Bend Table": "Jadual Lenturan", "Bends": "Lenturan", + "Bodies": "Jasad", "Body": "Jasad", "Boundary": "Sempadan", "Bounding box": "Kotak pembatas", + "CHECK": "SEMAK", + "COMPONENTS": "KOMPONEN", + "CONFIGURATIONS": "KONFIGURASI", + "CONSTRAIN": "KEKANG", + "CONTACT": "SENTUHAN", + "CONVERT": "TUKAR", "CSV or JSON: updates existing parameters, adds new ones": "CSV atau JSON: kemas kini parameter lama, tambah yang baharu", "Capture All Positions": "Rakam Semua Kedudukan", + "Capture Pos.": "Rakam Kedud.", "Catch Direction": "Arah Cangkuk", "Cells": "Sel", "Center X": "Pusat X", @@ -52,15 +69,19 @@ "Check collisions": "Semak perlanggaran", "Checked": "Disemak", "Choose a new plane. Sketch geometry and dimensions stay unchanged in its two-dimensional coordinates.": "Pilih satah baharu. Geometri dan dimensi lakaran dikekalkan dalam koordinat dua dimensi lakaran tersebut.", + "Choose…": "Pilih…", + "Circular": "Bulat", "Circumference": "Lilitan", "Close draft": "Tutup draf", "Collisions": "Perlanggaran", "Colour": "Warna", + "Comment": "Ulasan", "Component1": "Komponen1", + "Config Table": "Jadual Konfigurasi", "Configuration": "Konfigurasi", "Configuration rules": "Peraturan konfigurasi", - "Construction": "Binaan", "Contact": "Sentuhan", + "Contact Sets": "Set Sentuhan", "Contact sets": "Set sentuhan", "Continuity": "Keselanjaran", "Copy Error Message": "Salin Mesej Ralat", @@ -78,14 +99,17 @@ "Cube": "Kubus", "Current orthographic view (1:1 mm)": "Pandangan ortografik semasa (1:1 mm)", "Current perspective view": "Pandangan perspektif semasa", + "Curv. Comb": "Sisir Kelen.", "Curvature (G2)": "Kelengkungan (G2)", + "Curvature change (G3)": "Perubahan kelengkungan (G3)", "Customize Toolbar": "Sesuaikan Bar Alat", + "Delete": "Padam", "Delete all": "Padam semua", "Delete rule": "Padam peraturan", "Delete the row": "Padam baris", "Delete the set": "Padam set", - "Delete this parameter": "Padam parameter ini", "Density": "Ketumpatan", + "Dependents": "Bergantung", "Designs you open or save appear here.": "Reka bentuk dibuka atau disimpan ada di sini.", "Determined by To Object. Choose Angle to edit the angular extent.": "Ditentukan oleh tetapan Ke Objek. Pilih Sudut untuk mengubah julat sudut.", "Direction": "Arah", @@ -97,45 +121,72 @@ "Drive Joint": "Gerakkan Sendi", "Duration": "Tempoh", "Edges": "Tepi", + "Edit": "Sunting", "Edit Profile Sketch": "Sunting Lakaran Profil", "Enable rule": "Aktifkan peraturan", "Enabled": "Diaktifkan", + "End bulge": "Bonjolan hujung", + "End continuity": "Keselanjaran hujung", "Explode": "Leraikan", "Explode Text": "Leraikan Teks", "Export Animation…": "Eksport Animasi…", + "Export CSV…": "Eksport CSV…", "Export Current View as DXF": "Eksport Pandangan Semasa sebagai DXF", "Export Current View as DXF…": "Eksport Pandangan Semasa sebagai DXF…", + "Export DXF": "Eksport DXF", "Export DXF…": "Eksport DXF…", + "Export JSON…": "Eksport JSON…", "Export hidden edges as dashed lines": "Eksport tepi tersembunyi sebagai garis putus-putus", + "Expression": "Ungkapan", + "Extend to meet": "Panjang hingga bertemu", "Extents": "Julat", + "FILES": "FAIL", + "FLAT": "RATA", "Face": "Muka", "Face attachment lost": "Pautan muka hilang", "Faces": "Muka", "Faces / edges / vertices": "Muka / tepi / bucu", + "Fastener": "Pengikat", + "Favorites": "Kegemaran", "Favourite": "Kegemaran", + "Feature": "Ciri", "Files from many CAD programs have Y up, so they open lying on their back here (Z up).": "Banyak fail CAD menggunakan Y ke atas, jadi model terbaring di sini (Z ke atas).", "Filter": "Tapis", "Find in Browser": "Cari dalam Pelayar", - "Flat": "Rata", + "Finish": "Siap", + "Flat Pattern": "Bentangan Rata", "Flat size": "Saiz rata", "Follow camera (Look At sketches)": "Ikut kamera (Pandang Tepat pada lakaran)", "Follow the camera (Look At sketches)": "Ikut kamera (Pandang Tepat pada lakaran)", "Font": "Fon", + "From Bodies": "Daripada Jasad", + "From edges": "Daripada tepi", "Full Length": "Panjang Penuh", + "Gap": "Jarak", "Grid": "Grid", + "HISTORY": "SEJARAH", "Height": "Ketinggian", "Hidden edges": "Tepi tersembunyi", "Holes": "Lubang", "Holes (edges on them)": "Lubang (tepi lubang)", "Home view": "Pandangan utama", + "Horiz./Vert.": "Mendatar/Menegak", + "IMAGES": "IMEJ", + "Import…": "Import…", "In This Design": "Dalam Reka Bentuk Ini", "In place (surfaces)": "Di tempat asal (permukaan)", "In plane": "Dalam satah", "Inside": "Dalam", "Interferes": "Bertindih", + "Isocurve": "Isokelok", "Issue title": "Tajuk isu", + "JOINTS": "SENDI", "Joint Origin1": "Titik Asal Sendi1", + "Keep (points on it)": "Kekalkan (titik padanya)", "Keep Tools": "Kekalkan Alat", + "Keep of the other surface": "Kekalkan permukaan lain", + "LIBRARY": "KOLEKSI", + "LINKS": "PAUTAN", "Later": "Kemudian", "Leave it": "Biarkan", "Legacy face attachment. Rebinding to a certified face creates an exact attachment.": "Pautan muka lama. Paut semula ke muka yang disahkan untuk pautan tepat.", @@ -143,46 +194,70 @@ "Length units": "Unit panjang", "Letter Spacing": "Jarak Huruf", "Library": "Koleksi", + "Library file": "Fail koleksi", "Line Spacing": "Jarak Baris", + "Local library": "Koleksi setempat", "Loop": "Gelung", + "MANAGE": "URUS", + "MATERIALS": "BAHAN", + "MODEL": "MODEL", + "MOTION": "GERAKAN", "Margin": "Jidar", "Mass": "Jisim", + "Mass Center": "Pusat Jisim", + "Matched restrictions check the final values.": "Sekatan yang sepadan menyemak nilai akhir.", "Material": "Bahan", "Max": "Maks", "Mid Radius": "Jejari Tengah", "Middle double-click": "Klik dua kali butang tengah", "Min": "Min", "Mitre": "Serong", + "Model Parameters": "Parameter Model", "Modeled": "Dimodelkan", "More toolbar panels": "Panel bar alat lain", "Motion": "Gerakan", + "Move / Copy": "Alih / Salin", "Move Type": "Jenis Gerakan", + "Move down": "Alih ke bawah", "Move earlier": "Alih lebih awal", "Move later": "Alih lebih lewat", + "Move up": "Alih ke atas", "Name": "Nama", "Nearest": "Terdekat", + "New": "Baharu", + "New Comp.": "Komp. Baharu", + "New Sketch": "Lakaran Baharu", + "New rule…": "Peraturan baharu…", "New study": "Kajian baharu", "No crash reports.": "Tiada laporan ranap.", + "No matching appearance presets.": "Tiada pratetap penampilan yang sepadan.", "No matching appearances": "Tiada penampilan yang sepadan", "No visible bodies to export.": "Tiada jasad kelihatan untuk dieksport.", "None": "Tiada", - "Normal to sketch": "Serenjang", "Not available yet": "Belum tersedia", "Notch": "Takuk", + "OUTPUT": "KELUARAN", "Opacity": "Kelegapan", "Open GitHub draft": "Buka draf GitHub", + "Open local libraries in the desktop app. You can export this design's library here.": "Buka koleksi setempat dalam aplikasi desktop. Anda boleh mengeksport koleksi reka bentuk ini di sini.", "Open-source parametric 3D CAD in Rust. Licensed MIT OR Apache-2.0.": "CAD 3D parametrik sumber terbuka dalam Rust. Lesen MIT OR Apache-2.0.", + "Operator": "Operator", "Other side": "Sebelah lagi", + "Other surface (mutual trim)": "Permukaan lain (pangkas bersama)", "Outside": "Luar", "Overall length": "Panjang keseluruhan", - "Parameter values": "Nilai parameter", + "Param. Graph": "Graf Param.", + "Parameter": "Parameter", + "Parts": "Bahagian", "Pass through": "Tembus", "Path": "Laluan", + "Pattern": "Corak", "Per Edge": "Setiap Tepi", "Pick the tool bodies": "Pilih jasad alat", "Picked": "Dipilih", "Picked point": "Titik yang dipilih", "Place at the origin instead": "Letak di titik asal", + "Plastic Rules": "Peraturan Plastik", "Playback": "Main balik", "Plot": "Plot", "Position": "Kedudukan", @@ -193,10 +268,11 @@ "Preview Row": "Pratonton Baris", "Preview leaves the current design unchanged.": "Pratonton tidak mengubah reka bentuk semasa.", "Profiles/Curves": "Profil/Lengkung", - "Projection": "Unjuran", "Quantity": "Kuantiti", "RECENT": "TERKINI", + "REFERENCE": "RUJUKAN", "RULED SURFACE": "PERMUKAAN BERGARIS", + "RULES": "PERATURAN", "Radius Fit": "Padanan Jejari", "Ratio": "Nisbah", "Reattach selected face": "Paut semula muka dipilih", @@ -214,6 +290,8 @@ "Remove this point": "Buang titik ini", "Report a bug — review a screenshot and open a GitHub draft": "Laporkan pepijat — semak tangkapan skrin dan buka draf GitHub", "Reset Toolbar": "Set Semula Bar Alat", + "Resize Part": "Ubah Saiz Bahagian", + "Restore View": "Pulihkan Pandangan", "Restore outer boundary": "Pulihkan sempadan luar", "Restore the inherited component or physical material appearance": "Pulihkan penampilan yang diwarisi daripada komponen atau bahan fizikal", "Result": "Hasil", @@ -222,18 +300,27 @@ "Reverse Direction": "Songsangkan Arah", "Revert": "Kembalikan", "Revert All Positions": "Kembalikan Semua Kedudukan", + "Revert Pos.": "Kembalikan Kedud.", "Revert Position": "Kembalikan Kedudukan", "Review the report and screenshot before opening GitHub.": "Semak laporan dan tangkapan skrin sebelum membuka GitHub.", "Rim Edge": "Tepi Bibir", "Roll History Marker Here": "Alih Penanda Sejarah ke Sini", "Round": "Bulat", "Rule": "Peraturan", + "Rule name": "Nama peraturan", + "Rules run from top to bottom. Matched drives change effective values.": "Peraturan dijalankan dari atas ke bawah. Pemacu yang sepadan mengubah nilai berkesan.", + "SECTION": "KERATAN", + "SURFACE QUALITY": "KUALITI PERMUKAAN", "Save Rule": "Simpan Peraturan", + "Save View": "Simpan Pandangan", "Save the study as an animated GIF, seen as the viewport shows it": "Simpan kajian sebagai GIF beranimasi mengikut paparan", "Saved preview. Geometry is being checked before editing.": "Pratonton disimpan. Geometri disemak sebelum disunting.", "Scale factor": "Faktor skala", + "Scene": "Adegan", "Search": "Cari", "Search commands": "Cari arahan", + "Search this library": "Cari dalam koleksi ini", + "Section": "Keratan", "Select Other: hold the left button still on the model (or right-click › Select Other…) to list everything under the cursor; click again on the same spot to select the next thing there. Double-click the middle button to go Home (Preferences › Navigation).": "Pilih Lain: tahan butang kiri pada model tanpa bergerak (atau klik kanan › Pilih Lain…) untuk senarai objek di bawah kursor. Klik tempat sama untuk objek seterusnya. Klik dua kali butang tengah untuk ke Utama (Tetapan › Navigasi).", "Select bodies (a face picks its body)": "Pilih jasad (klik muka untuk pilih jasadnya)", "Select bodies or faces instead": "Pilih jasad atau muka", @@ -241,6 +328,7 @@ "Semantic faces share their appearance across instances.": "Muka semantik berkongsi penampilan pada semua salinan.", "Send your report on GitHub": "Hantar laporan anda di GitHub", "Shape": "Bentuk", + "Sheet Rules": "Peraturan Kepingan", "Show Agent Cursor": "Papar Kursor Ejen", "Show in folder": "Papar dalam folder", "Show the pointer an AI agent moves (#35)": "Papar penuding yang digerakkan oleh ejen AI (#35)", @@ -254,16 +342,23 @@ "Sketch points": "Titik lakaran", "Slot width": "Lebar slot", "SolidCraft closed before these designs were saved. Their last autosave can be opened.": "SolidCraft ditutup sebelum reka bentuk disimpan. Buka simpanan automatik terakhirnya.", + "Specialise": "Khususkan", "Speed": "Kelajuan", "Stand it up": "Tegakkan", "Stand it up: a quarter turn about X, as one Move feature you can undo.": "Tegakkan: suku putaran pada X, satu ciri Alih yang boleh dibatalkan.", "Stand this part up?": "Tegakkan bahagian ini?", + "Start bulge": "Bonjolan permulaan", + "Start continuity": "Keselanjaran permulaan", "Step": "Langkah", "Steps": "Langkah", + "Stitch the kept pieces": "Cantum kepingan yang dikekalkan", + "Stitch to both bodies": "Cantum pada kedua-dua jasad", "Study": "Kajian", "Style": "Gaya", "Suppressed": "Dinyahaktifkan", + "Surface": "Permukaan", "Swap Ends": "Tukar Hujung", + "TRIM": "PANGKAS", "Tangent (G1)": "Tangen (G1)", "Tangent Chain": "Rantaian Tangen", "Tear": "Koyakan", @@ -279,22 +374,26 @@ "This child is shared. Position changes apply to every copy of its parent.": "Komponen anak dikongsi. Kedudukan berubah pada semua salinan induk.", "This face cannot provide a durable attachment. Choose another face or explicitly use a fixed plane.": "Muka ini tidak dapat kekalkan pautan. Pilih muka lain atau gunakan satah tetap.", "To Offset": "Ke Ofset", + "To edges": "Ke tepi", "Tolerance": "Toleransi", "Too close": "Terlalu dekat", + "Trimming tool (plane, face or curves)": "Alat pemangkas (satah, muka atau lengkung)", "Turn off section analysis before exporting the view.": "Matikan analisis keratan sebelum mengeksport pandangan.", "Type": "Jenis", "UNTRIM": "NYAHPANGKAS", + "Unit": "Unit", "Updating the preview": "Mengemas kini pratonton", "Use active author placement": "Guna penempatan komponen aktif", "Use fixed plane": "Guna satah tetap", "Use saved fixed plane": "Guna satah tetap disimpan", "Use selected face as fixed plane": "Guna muka dipilih sebagai satah tetap", + "User Parameters": "Parameter Pengguna", "VIEW": "PANDANGAN", + "VIEWS": "PANDANGAN", "Value": "Nilai", "Velocity": "Halaju", "Vertices": "Bucu", "View navigator": "Kawalan pandangan", - "Visible bodies only. Curves use line segments (0.01 mm tolerance).": "Jasad kelihatan sahaja. Lengkung guna segmen garis (toleransi 0.01 mm).", "Volume": "Isi padu", "Wall": "Dinding", "Wall Location": "Lokasi Dinding", @@ -302,6 +401,13 @@ "When": "Apabila", "Width": "Lebar", "Will fail": "Akan gagal", + "X angle": "Sudut X", + "X distance": "Jarak X", + "Y angle": "Sudut Y", + "Y distance": "Jarak Y", + "Z angle": "Sudut Z", + "Z distance": "Jarak Z", + "Zebra": "Zebra", "angle, height": "sudut, ketinggian", "appearance.dielectric_ior": "IOR Dielektrik", "appearance.metallic": "Sifat Logam", @@ -310,7 +416,13 @@ "appearance.roughness": "Kekasaran", "appearance.surface_response": "Tindak balas permukaan", "browser.body_name": "Jasad{number}", + "browser.calibrate_title": "Tentukur: {name}", + "browser.capture_many": "{count} komponen telah dialihkan tetapi kedudukannya belum dirakam.", + "browser.capture_note": "Rakam mengekalkan kedudukan baharu; Kembalikan memulihkannya.", + "browser.capture_one": "Satu komponen telah dialihkan tetapi kedudukannya belum dirakam.", "browser.component_name": "Komponen{number}", + "browser.edit_canvas_title": "Sunting Kanvas: {name}", + "browser.move_title": "Alih: {name}", "browser.parameters": "Parameter ({count})", "browser.precision": "Ketepatan: {precision}", "browser.sketch_name": "Lakaran{number}", @@ -325,6 +437,7 @@ "cmd.appearance_assign": "Penampilan", "cmd.appearance_library": "Koleksi Penampilan", "cmd.appearance_list": "Senarai Penampilan", + "cmd.assembly_bom": "Senarai Bahan", "cmd.body_rename": "Tukar Nama Jasad", "cmd.browser_group": "Kumpulan Baharu", "cmd.browser_move": "Alih Item Pelayar", @@ -346,10 +459,13 @@ "cmd.component_insert_design": "Sisip Reka Bentuk", "cmd.component_links": "Senarai Pautan", "cmd.component_list": "Senarai Komponen", + "cmd.component_metadata": "Sifat Bahagian", + "cmd.component_metadata_set": "Tukar Sifat Bahagian", "cmd.component_move_bodies": "Alih Jasad ke Komponen", "cmd.component_move_sketches": "Alih Lakaran ke Komponen", "cmd.component_paste_new": "Tampal Baharu", "cmd.component_properties": "Sifat Fizikal Komponen", + "cmd.component_relink": "Paut Semula Sumber", "cmd.component_rename": "Tukar Nama Komponen", "cmd.component_revert_position": "Kembalikan Kedudukan", "cmd.component_unlock": "Buka Kunci Kandungan", @@ -401,6 +517,7 @@ "cmd.edit_checkpoint": "Titik Semak", "cmd.edit_restore_checkpoint": "Pulihkan Titik Semak", "cmd.engine_commands": "Senarai Arahan", + "cmd.engine_describe": "Terangkan Arahan", "cmd.explode_create": "Pandangan Terlerai", "cmd.explode_delete": "Padam Pandangan Terlerai", "cmd.explode_list": "Senarai Pandangan Terlerai", @@ -433,6 +550,7 @@ "cmd.joint_drive": "Gerakkan Sendi", "cmd.joint_edit": "Sunting Sendi", "cmd.joint_gear": "Gear", + "cmd.joint_inspect": "Periksa Sendi", "cmd.joint_limits": "Had Sendi", "cmd.joint_list": "Senarai Sendi", "cmd.joint_motion_link": "Pautan Gerakan", @@ -442,6 +560,7 @@ "cmd.joint_rigid_group": "Kumpulan Tegar", "cmd.joint_screw": "Skru", "cmd.joint_solve": "Selesaikan Sendi", + "cmd.joint_sweep": "Sapu Sendi", "cmd.library_apply": "Guna Item Koleksi Setempat", "cmd.library_export": "Eksport Koleksi Reka Bentuk", "cmd.library_inspect": "Periksa Koleksi Setempat", @@ -590,6 +709,7 @@ "cmd.sketch_spline_fit_point": "Splin Titik Padanan", "cmd.sketch_spun_profile": "Profil Putaran", "cmd.sketch_toggle_driven": "Togol Dimensi Dipacu", + "cmd.sketch_trim_path": "Pangkas Sepanjang Laluan", "cmd.solid_align": "Jajarkan", "cmd.solid_boundary_fill": "Isi Sempadan", "cmd.solid_bounding_solid": "Pepejal Pembatas", @@ -632,13 +752,23 @@ "cmd.timeline_roll_to": "Alih Penanda Sejarah", "cmd.timeline_rollback": "Alih Penanda Garis Masa", "cmd.timeline_suppress": "Nyahaktifkan Ciri", + "cmd.view_ambient_occlusion": "Oklusi Ambien", "cmd.view_apply": "Pulihkan Pandangan", "cmd.view_delete": "Padam Pandangan", + "cmd.view_graphics_preset": "Pratetap Grafik", "cmd.view_list": "Senarai Pandangan", "cmd.view_navigate": "Navigasi Pandangan", "cmd.view_rename": "Tukar Nama Pandangan", "cmd.view_save": "Simpan Pandangan", - "command name": "nama arahan", + "color.copy": "Klik untuk menyalin nilai warna", + "color.edit": "Klik untuk menyunting warna", + "color.gamma": "Memaparkan nilai warna dalam ruang gamma 0-255", + "color.hue": "Rona", + "color.linear": "Memaparkan nilai warna dalam ruang linear 0-1", + "color.saturation_value": "Ketepuan dan nilai", + "color.selected": "Warna dipilih", + "contact.components_count": "{count} komponen", + "contact.enabled_label": "diaktifkan", "coupling.gear_1": "Gear 1", "coupling.gear_1_pick": "Gear 1 (tidak wajib)", "coupling.gear_2": "Gear 2", @@ -655,8 +785,30 @@ "coupling.rack": "Rak", "coupling.radius_1": "Jejari 1", "coupling.radius_2": "Jejari 2", + "crash.announce": "SolidCraft tertutup secara tidak dijangka atau mengalami ralat dalaman kali lepas. Laporan ranap telah disimpan (Bantuan > Laporan Ranap…).", + "crash.copy_folder": "Salin laluan folder", + "crash.copy_path": "Salin laluan", + "crash.deleted": "{count} laporan dipadam.", + "crash.detected_time": "Dikesan {time} UTC", + "crash.intro": "Laporan ranap kekal pada komputer ini dan tidak pernah dihantar ke mana-mana. Lapor… membuka draf yang anda semak sebelum apa-apa dikongsi.", + "crash.kind_command": "Ralat dalaman dalam arahan", + "crash.kind_internal": "Ralat dalaman", + "crash.kind_kernel": "Ralat kernel (dipulihkan)", + "crash.kind_unclean": "Tertutup secara tidak dijangka", + "crash.previous_session": "Sesi SolidCraft sebelum ini tamat secara tidak dijangka atau mengalami ralat dalaman. Laporan daripada penutupan tidak sempurna dikesan semasa permulaan. Lihat Bantuan > Laporan Ranap… untuk butiran.", + "crash.replayable": "boleh dimainkan semula", + "crash.report": "Lapor…", + "crash.unclean_explanation": "Dikesan pada pelancaran kemudian; masa penutupan sebenar tidak direkodkan. Penutupan sistem atau henti paksa juga boleh menyebabkan penutupan tidak sempurna.", + "delete.and_more": "… dan {count} lagi", + "dialog.bodies_count": "{count} jasad", + "dialog.clearance_invalid": "kelegaan mestilah panjang 0 atau lebih", + "dialog.compute": "Kira", + "dialog.compute_again": "Kira semula", "dialog.computing": "Mengira… {seconds} s", + "dialog.could_not_be_checked": "tidak dapat disemak", "dialog.custom_axis": "↖ Paksi Tersuai", + "dialog.dimension_insert_hint": "Klik dimensi pemacu lain untuk menyisip namanya", + "dialog.dimension_name": "Dimensi: {name}", "dialog.edit_title": "SUNTING {title}", "dialog.select": "↖ Pilih", "dialog.selected_count": "↖ {count} dipilih", @@ -680,9 +832,30 @@ "dxf.progress.write": "Menulis DXF (5/5)", "dxf.tolerance": "Toleransi lengkung", "dxf.tolerance_help": "Jasad kelihatan sahaja. Lengkung guna segmen lurus. Toleransi kecil lebih halus tetapi guna lebih masa dan memori.", - "expression, e.g. 25 mm": "ungkapan, cth. 25 mm", + "file_load.built": "Dibina setakat ini: {built} daripada {total} ciri.", + "file_load.converting": "Menukar pepejal {done} daripada {total}", + "file_load.inserting": "Menyisip geometri", + "file_load.opening": "Membuka reka bentuk", + "file_load.preparing_thumbnail": "Menyediakan imej kecil...", + "file_load.preparing_view": "Menyediakan pandangan...", + "file_load.preview_note": "Pratonton disimpan. Geometri disemak sebelum disunting.", + "file_load.reading": "Membaca fail...", + "file_load.reading_percent": "Membaca fail... {percent}%", + "file_load.rebuilding": "Membina semula ciri {done} daripada {total}", + "file_load.recovering": "Memulihkan reka bentuk", + "file_load.stopping": "Menunggu operasi sebelumnya berhenti...", + "file_load.waiting": "Menunggu operasi fail", "fits the face, e.g. M8": "padan dengan muka, cth. M8", "from the rule": "daripada peraturan", + "help.apache": "Lesen Apache 2.0", + "help.attributions": "Atribusi (ATTRIBUTION.md)", + "help.build": "Versi {version} · commit {commit} · dibina {date}", + "help.font_details": "Antara muka menggunakan fon terbina dalam egui (Ubuntu Light dan Hack, di bawah Lesen Fon Ubuntu dan lesen MIT/Bitstream Vera; Noto Emoji dan fon ikon emoji, di bawah OFL dan MIT). Teks lakaran menggunakan Liberation Sans (SIL OFL 1.1). Pek fon pilihan Crafting Apps, craft-fonts (BIZ UDPGothic, Shippori Mincho, BIZ UDMincho, Noto Sans CJK SC, Noto Sans Arabic; SIL OFL 1.1), tidak disertakan dalam binaan SolidCraft.", + "help.fonts": "Fon", + "help.licences": "Lesen", + "help.mit": "Lesen MIT", + "help.notice": "NOTIS", + "help.third_party": "Lesen pihak ketiga", "home.documentation": "Dokumentasi", "home.in_this_browser": "dalam pelayar ini", "home.missing": "tiada", @@ -708,13 +881,51 @@ "install.menu": "Pasang aplikasi…", "install.steps_intro": "Safari memasang aplikasi web melalui menunya sendiri:", "install.title": "Pasang SolidCraft", + "issue.body_label": "Teks laporan", + "issue.note_image_copied": "Tampal imej ke dalam draf GitHub, atau simpan PNG jika penyalinan imej tidak tersedia.", + "issue.note_opened": "Semak draf GitHub dan lampirkan tangkapan skrin. Butang Submit new issue GitHub menerbitkannya.", + "issue.note_opened_copied": "Laporan disalin. Tampal ke dalam draf GitHub, lampirkan tangkapan skrin, kemudian klik Submit new issue di GitHub.", + "issue.note_removed": "Tangkapan skrin dibuang daripada draf ini.", + "issue.note_report_copied": "Laporan disalin. Tampal ke dalam draf GitHub jika perlu.", + "issue.note_save_failed": "Tidak dapat menyimpan tangkapan skrin: {error}", + "issue.note_saved": "Tangkapan skrin disimpan. Lampirkan PNG dalam draf GitHub.", + "issue.save_screenshot": "Simpan tangkapan skrin…", "joint.from_bodies_hint": "Setiap jasad dipilih masuk ke komponen baharu tanpa berubah kedudukan.", "joint.one_body": "Kedua-dua pilihan berada pada {body}. Buat pilihan kedua pada bahagian lain.", "joint.one_component": "Jasad ini dalam satu komponen: {bodies}. Sendi menggerakkan satu komponen berbanding yang lain, jadi setiap bahagian perlu komponen sendiri.", + "keymap.command_id": "ID Arahan", + "keymap.empty": "Tiada arahan yang sepadan", + "keymap.use_anyway": "Guna {key} di sini juga", + "manage.appearance_hint": "Pilih rupa untuk pilihan, atau seret contoh warna ke atas jasad atau muka.", + "manage.assign_hint": "Pilih jasad dan pilih peraturan reka bentuk plastiknya.", + "manage.config_hint": "Sunting baris, lajur dan peraturan konfigurasi, kemudian aktifkan atau pratonton satu baris.", + "manage.empty": "Tiada baris yang sepadan.", + "manage.material_hint": "Pilih jasad dan pilih bahan fizikalnya.", + "manage.parameters_hint": "Sunting ungkapan dan unit. Perubahan dikenakan apabila menekan Enter atau meninggalkan medan.", + "manage.rules_hint": "Pilih peraturan untuk disunting, atau cipta peraturan baharu. Sahkan untuk menyimpan peraturan.", + "measure.at": "Pada", + "measure.item": "Item {number}", + "messages.ago_h": "{n} j lalu", + "messages.ago_min": "{n} min lalu", + "messages.ago_s": "{n} s lalu", + "messages.chip_hint": "Klik untuk semua mesej sesi ini", + "messages.clear": "Kosongkan", + "messages.copy_all": "Salin semua", + "messages.menu": "Mesej…", + "messages.none": "Belum ada mesej.", + "messages.title": "Mesej", "motion.checked_to": "Semakan hanya selesai hingga langkah {step} kerana had kerja pengiraan telah dicapai", "motion.collision": "{a} · {b}: langkah {steps}", + "motion.delete_key": "Padam kekunci", "motion.duration_hint": "saat (kosong: setiap langkah)", + "motion.key_here": "Kunci di sini", + "motion.key_here_hint": "Tambah kekunci pada langkah ini dengan nilai sendi sekarang", "motion.no_collisions": "Tiada perlanggaran sepanjang kajian", + "motion.step_back": "Langkah ke belakang", + "motion.step_forward": "Langkah ke hadapan", + "motion.to_end": "Ke penghujung", + "motion.to_start": "Ke permulaan", + "motion.track_name": "Trek {number}", "nav.touchpad.help": "Tahan Shift dan gerakkan kursor untuk sorot; Alt/Option untuk orbit. Tidak perlu butang tetikus. Tatal menegak untuk zum.", "nav.touchpad.label": "Pad sentuh", "nav.touchpad.orbit": "Orbit (tahan Alt/Option dan gerak; tanpa klik)", @@ -723,11 +934,13 @@ "nav.touchpad.zoom": "Zum (tatal menegak atau cubit)", "needs two joints": "memerlukan dua sendi", "new configuration": "konfigurasi baharu", - "new name": "nama baharu", "new parameter": "parameter baharu", + "no hole": "tiada lubang", "no interference": "tiada pertindihan", "no joint that moves yet": "belum ada sendi yang bergerak", "no picture": "tiada gambar", + "none": "tiada", + "parts.automatic_name": "automatik", "pattern.alignment_2": "Penjajaran 2", "pattern.alignment_hint": "Bilangan termasuk asal. Tengah seimbangkan salinan; Balik pilih sisi lebih untuk bilangan genap.", "pattern.direction_1": "Arah 1", @@ -735,12 +948,19 @@ "pattern.flip_direction": "Balikkan arah", "pick a hole to seat it, or OK places it at the origin": "pilih lubang, atau tekan OK untuk letak di titik asal", "pick one or two vertices, edges or faces": "pilih satu atau dua bucu, tepi atau muka", + "prefs.cpu": "CPU (perisian)", + "prefs.minutes_suffix": " min", + "properties.title": "Sifat: {name}", + "recovery.days_ago": "{count} hari lalu", + "recovery.detail": "{file} · {features} ciri · disimpan automatik {when}", + "recovery.hours_ago": "{count} j lalu", + "recovery.just_now": "sebentar tadi", + "recovery.min_ago": "{count} min lalu", + "recovery.never_saved": "tidak pernah disimpan", "render.background": "Latar belakang adegan", "render.fit": "Muatkan Produk", - "render.image_cancel": "Batal Render", "render.image_cancelled": "Render dibatalkan", "render.image_cancelling": "Membatalkan", - "render.image_check": "Semak Permintaan Render", "render.image_completed": "Imej sedia untuk dieksport", "render.image_encoding": "Mengekod PNG", "render.image_export": "Eksport PNG", @@ -787,6 +1007,19 @@ "sample.plate.name": "Plat Contoh", "sample.vents.about": "Corak slot segi empat tepat: baris, lajur dan pic sebagai parameter", "sample.vents.name": "Plat Pengudaraan", + "search.command_keys": "Enter jalankan Shift+Enter jalankan dan kekalkan terbuka Esc tutup", + "search.commands": "Arahan", + "search.design": "Dalam reka bentuk ini", + "search.feature": "Ciri", + "search.invalid": "Tidak sah", + "search.keys": "↑ ↓ pilih Enter jalankan Tab isi nama Esc tutup", + "search.no_match": "Tiada arahan sepadan dengan '{query}'", + "search.parameter": "Parameter", + "search.recent": "Terkini", + "search.run": "Jalankan arahan", + "search.suggest": "Maksud anda {label}?", + "search.try": "Taip nama arahan, ciri dalam reka bentuk ini, atau parameter. Untuk menjalankan arahan dengan nilai, taip ID-nya dan objek JSON: {example}", + "search.valid": "Sah", "settings.display_quality_note": "Tahap halus melicinkan muka dan tepi melengkung, tetapi mesh lebih lambat disiapkan. Hanya paparan berubah, bukan reka bentuk atau eksport.", "settings.frame_rate_note": "Papar bingkai sesaat di kanan bawah. Jika diaktifkan, pandangan dilukis semula tanpa henti.", "settings.measure_axis_distances": "Papar jarak X/Y/Z", @@ -797,23 +1030,37 @@ "settings.reset_intro": "Tetapan ini menghalang SolidCraft bermula pada komputer ini, jadi telah diubah:", "settings.reset_title": "Tetapan telah diubah", "settings.supersampling_note": "Lukis pada resolusi tinggi, kemudian kecilkan: tepi, garis dan grid lebih licin pada skrin bawah 4K. Lebih masa GPU: kira-kira 2.25× piksel pada 1.5× dan 4× pada 2×.", + "shortcut.json_error": "parameter mestilah JSON: {error}", + "shortcut.no_command": "tiada arahan `{id}`; teks sebelum JSON mestilah ID arahan", + "shortcut.pin": "Semat di atas kotak S", + "shortcut.unpin": "Nyahsemat", "sketch.degrees_of_freedom": "{count} darjah kebebasan", + "sketch.dof_left": "{count} darjah kebebasan berbaki", + "sketch.dof_left_one": "{count} darjah kebebasan berbaki", "sketch.draw_curves": "Lukis sebagai {linetype}", "sketch.make_selection": "Tukar pilihan kepada {linetype}", "sketch.open_ends": "Terbuka {count}", "sketch.untied_ends": "Tak terikat {count}", + "sketch_panel.attached": "Dipaut pada {body} / {path}", + "sketch_panel.author": "Penempatan pengarang: {path}", + "sketch_panel.dimension_hint": "Masukkan nilai atau ungkapan, kemudian tekan OK.", + "sketch_panel.move_hint": "Masukkan jarak dan sudut, kemudian tekan OK.", + "sketch_panel.redefine_title": "{command}: {name}", + "sketch_panel.sheet_attachment": "Dipaut pada muka rata jasad logam kepingan; ia mengikut panel itu apabila kepingan berubah.", + "sketch_panel.text_hint": "Sunting teks dan penempatannya, kemudian tekan OK.", + "sketch_panel.use_plane": "Guna satah {plane}", "sketch_text.align_center": "Tengah", "sketch_text.align_left": "Kiri", "sketch_text.align_right": "Kanan", "sketch_text.bold": "Tebal", "sketch_text.builtin_font": "{family} (terbina dalam)", - "sketch_text.font_search": "Cari fon", "sketch_text.italic": "Condong", "sketch_text.loading_fonts": "Mencari fon yang dipasang…", "sketch_text.on_path": "Teks mengikut laluan lengkung, yang menentukan kedudukannya", "sketch_text.path_clear": "Pisahkan teks daripada lengkung", "sketch_text.path_hint": "Lengkung lakaran yang akan diikuti teks: klik di sini, kemudian klik lengkung", "sketch_text.use_font_file": "Gunakan fail fon {path}", + "solid": "pepejal", "the parts library is not available": "koleksi bahagian tidak tersedia", "thread.automatic_size": "Saiz automatik", "thread.designation": "Penamaan", @@ -825,7 +1072,9 @@ "timeline.rename_group": "Tukar Nama Folder Ciri", "timeline.reorder_many": "Susun Semula Ciri", "timeline.ungroup": "Buang Folder Ciri", + "to the face": "ke muka", "to the next face": "ke muka seterusnya", + "toolbar.customize_note": "Tab {tab}. Tandakan arahan untuk memberinya butang bar alat. Anda juga boleh menyeret baris menu lungsur panel ke bar alat, menyeret butang keluar dari bar alat untuk membuangnya, atau guna semat pada baris menu lungsur.", "toolbar.image": "IMEJ", "toolbar.render": "RENDER", "toolbar.render_scene": "ADEGAN", @@ -834,18 +1083,21 @@ "trace.stopped_by_loop": "Berakhir pada sampel {sample}: gelung melalui {joint} tidak lagi dapat ditutup", "ui.1_degree_of_freedom": "1 darjah kebebasan", "ui.3d_mouse_speed": "Kelajuan tetikus 3D", - "ui.3d_mouse_windows": "Tetikus 3D", "ui.3d_sketch": "Lakaran 3D", - "ui.about": "Tentang", "ui.activate": "Aktifkan", "ui.active_component": "Komponen aktif", + "ui.add_configuration": "Tambah konfigurasi", + "ui.add_parameter": "Tambah parameter", "ui.agent_chat": "Sembang ejen", + "ui.agent_chat_add": "Lampirkan fail", + "ui.agent_chat_add_file": "Pilih fail…", "ui.agent_chat_allow": "Benarkan", "ui.agent_chat_allowed": "Dibenarkan", "ui.agent_chat_answered": "Jawapan: {option}", "ui.agent_chat_approval": "Benarkan ejen melakukan ini?", "ui.agent_chat_attach_view": "Lampirkan paparan", "ui.agent_chat_attach_view_tip": "Hantar imej pandangan semasa bersama mesej", + "ui.agent_chat_attachable": "Gambar, PDF, teks dan fail CAD", "ui.agent_chat_auth_agent": "Log masuk dengan {name}", "ui.agent_chat_auth_env": "Tetapkan {vars} dalam persekitaran, kemudian mula semula SolidCraft.", "ui.agent_chat_auth_needed": "Ejen memerlukan anda log masuk melalui ejen itu sendiri. SolidCraft tidak dapat melihat kata laluan atau kunci anda.", @@ -865,11 +1117,33 @@ "ui.agent_chat_deny": "Tolak", "ui.agent_chat_desktop_only": "Sembang ejen memerlukan aplikasi desktop.", "ui.agent_chat_detecting": "Mencari ejen…", + "ui.agent_chat_dock": "Letakkan di panel sisi", "ui.agent_chat_dock_left": "Letakkan di kiri", "ui.agent_chat_dock_right": "Letakkan di kanan", + "ui.agent_chat_drop_hint": "Lepaskan untuk dilampirkan pada mesej anda yang seterusnya", "ui.agent_chat_edit": "Sunting", "ui.agent_chat_exited": "Ejen telah berhenti.", "ui.agent_chat_failed_start": "Ejen tidak dapat dimulakan: {error}", + "ui.agent_chat_file_cad_not_read": "{name}: fail CAD diimport ke dalam reka bentuk, bukan dibaca", + "ui.agent_chat_file_empty_picture": "{name}: gambar kosong", + "ui.agent_chat_file_error": "{name}: {error}", + "ui.agent_chat_file_heic": "{name}: gambar HEIC tidak dapat dibaca di sini; eksport sebagai JPEG atau PNG dahulu", + "ui.agent_chat_file_importing": "Mengimport ke dalam reka bentuk…", + "ui.agent_chat_file_kinds": "{name}: gambar (PNG, JPEG, GIF, WebP, BMP, TIFF), fail teks (termasuk SVG) dan fail CAD (STEP, IGES, FreeCAD, Rhino, STL, 3MF, OBJ, glTF) boleh dilampirkan", + "ui.agent_chat_file_loading": "Membaca fail…", + "ui.agent_chat_file_not_a_file": "{name}: bukan fail", + "ui.agent_chat_file_not_a_picture": "{name}: bukan gambar", + "ui.agent_chat_file_not_utf8": "{name}: bukan teks UTF-8", + "ui.agent_chat_file_picture_too_big": "{name}: gambar paling besar {max} MB", + "ui.agent_chat_file_text_too_big": "{name}: fail teks paling besar {max} KB", + "ui.agent_chat_file_too_large": "{name}: terlalu besar", + "ui.agent_chat_file_too_large_to_send": "{name}: terlalu besar untuk dihantar, walaupun dikecilkan", + "ui.agent_chat_file_unreadable_picture": "{name}: bukan gambar yang boleh dibaca", + "ui.agent_chat_files": "Fail: {files}", + "ui.agent_chat_files_left_out": "Paling banyak {max} fail bersama satu mesej; ditinggalkan: {files}", + "ui.agent_chat_files_loading": "Menunggu fail dibaca", + "ui.agent_chat_files_max": "Paling banyak {max} fail pada satu mesej", + "ui.agent_chat_import_failed": "{name}: import gagal: {error}", "ui.agent_chat_intro": "Sembang dengan ejen pengekodan biasa anda atau titik akhir model pilihan. Ejen mengubah reka bentuk melalui alat SolidCraft; perubahan dipaparkan terus dan boleh dibatalkan sekali bagi setiap mesej. Tetapkan kebenaran di Tetapan > AI.", "ui.agent_chat_key_in_env": "kunci tersedia", "ui.agent_chat_left": "Kiri", @@ -878,18 +1152,23 @@ "ui.agent_chat_model_tip": "Model yang digunakan oleh ejen. Pilihan anda disimpan untuk ejen ini.", "ui.agent_chat_new": "Sembang baharu", "ui.agent_chat_new_confirm": "Mulakan sembang baharu? Sembang semasa akan dikosongkan.", - "ui.agent_chat_new_yes": "Sembang baharu", + "ui.agent_chat_next_picture": "Gambar seterusnya", "ui.agent_chat_no_cli": "solidcraft-cli tidak ditemui dalam folder aplikasi, jadi ejen tidak dapat mengakses reka bentuk.", "ui.agent_chat_no_control": "Titik akhir sembang ejen gagal dimulakan, jadi ejen tidak dapat mengakses reka bentuk.", "ui.agent_chat_no_images": "Ejen ini tidak menerima imej", + "ui.agent_chat_no_picture": "Tiada gambar pada papan keratan", "ui.agent_chat_none_found": "Tiada ejen pengekodan. Pasang satu ejen di bawah, kemudian tekan Muat Semula:", "ui.agent_chat_none_found_short": "Tiada ejen ditemui", "ui.agent_chat_not_installed": "Tidak dipasang", "ui.agent_chat_not_signed_in": "belum log masuk", + "ui.agent_chat_own_window": "Tetingkap sendiri", + "ui.agent_chat_paste_picture": "Tampal gambar", "ui.agent_chat_permission": "Benarkan ejen jalankan: {title}", "ui.agent_chat_pick": "Ejen", "ui.agent_chat_placeholder": "Minta ejen mengubah reka bentuk…", "ui.agent_chat_placeholder_busy": "Giliran mesej selepas ejen selesai (Ctrl+Enter: hantar terus)", + "ui.agent_chat_pop_out": "Buka dalam tetingkap sendiri, yang boleh dialihkan ke skrin lain", + "ui.agent_chat_previous_picture": "Gambar sebelumnya", "ui.agent_chat_privacy": "Data hanya dihantar kepada ejen yang anda jalankan, melalui akaun anda sendiri.", "ui.agent_chat_privacy_note": "SolidCraft tidak menghantar data. Ejen berhubung dengan perkhidmatannya melalui akaun anda. SolidCraft tidak melihat atau menyimpan kunci atau kata laluan.", "ui.agent_chat_queue": "Hantar Nanti", @@ -899,6 +1178,8 @@ "ui.agent_chat_refresh": "Muat Semula", "ui.agent_chat_refused": "Tindakan ejen tidak dibenarkan: {reason}", "ui.agent_chat_remove": "Buang daripada baris gilir", + "ui.agent_chat_remove_file": "Buang daripada mesej ini", + "ui.agent_chat_remove_imported": "Buang daripada mesej ini; bahagian kekal dalam reka bentuk (Buat Asal membuangnya)", "ui.agent_chat_right": "Kanan", "ui.agent_chat_save": "Simpan", "ui.agent_chat_send": "Hantar", @@ -943,6 +1224,7 @@ "ui.ai_bad_url": "Masukkan URL yang bermula dengan http:// atau https://", "ui.ai_base_url": "URL asas", "ui.ai_button": "AI", + "ui.ai_command_hint": "my-agent --acp", "ui.ai_copy_suffix": "salinan", "ui.ai_custom_url": "URL tersuai", "ui.ai_default": "Lalai", @@ -963,8 +1245,10 @@ "ui.ai_mode_edits_note": "Pemodelan dibenarkan terus; simpan, buka, eksport, tindakan fail lain atau pemadaman masih meminta izin.", "ui.ai_mode_global": "Ikut tetapan atas", "ui.ai_model": "Model", + "ui.ai_model_hint": "qwen3:14b", "ui.ai_modes_scope": "Tetapan ini meliputi alat SolidCraft. Alat ejen sendiri (shell dan suntingan fail) mengikut mod ejen. Jika ejen menyediakan pilihan mod, anda boleh memilihnya di bahagian atas panel sembang.", "ui.ai_name": "Nama", + "ui.ai_name_hint": "Ejen saya", "ui.ai_need_command": "Masukkan arahan untuk memulakan ejen", "ui.ai_need_model": "Masukkan nama model", "ui.ai_no_answer": "Ejen tidak menjawab dalam had masa", @@ -995,7 +1279,10 @@ "ui.ai_toolbar_button": "Papar butang pada bar alat", "ui.ai_toolbar_button_note": "Butang AI di hujung kanan bar alat. Ctrl+Shift+A dan menu Pandangan masih membuka panel.", "ui.ai_undo_tip": "Batalkan semua perubahan ejen bagi mesej ini dengan satu langkah Buat Asal", + "ui.ai_url_hint": "https://example.com/v1", "ui.all": "Semua", + "ui.ambient_occlusion": "Oklusi ambien", + "ui.ambient_occlusion_help": "Bayang lembut di tempat permukaan legap bertemu. Memerlukan paparan GPU.", "ui.analysis": "Analisis", "ui.angle": "Sudut", "ui.angle_decimals": "Perpuluhan sudut", @@ -1006,15 +1293,23 @@ "ui.anti_aliasing": "Antialias", "ui.apply": "Gunakan", "ui.arc": "Lengkok", - "ui.assemble": "Pasang", + "ui.assistant": "Pembantu", + "ui.assistant_waiting": "{count} kelulusan menunggu", "ui.autosave_every": "Autosimpan setiap", "ui.axes": "Paksi", "ui.axis": "Paksi", + "ui.back": "Kembali", "ui.base_point": "Titik asas", "ui.blocked": "Disekat", "ui.bodies": "Jasad", + "ui.bodies_all_if_none": "Jasad (semua jika tiada)", "ui.box": "Kotak", "ui.break": "Putuskan", + "ui.browser_bodies_one": "{count} jasad", + "ui.browser_bodies_other": "{count} jasad", + "ui.browser_collapse": "Runtuhkan pelayar", + "ui.browser_expand": "Kembangkan pelayar", + "ui.browser_title": "Pelayar", "ui.calibrate": "Tentukur", "ui.cancel": "Batal", "ui.canvases": "Kanvas", @@ -1024,7 +1319,6 @@ "ui.chamfer": "Serong", "ui.chamfer_type": "Jenis Serong", "ui.change_workspace": "Tukar ruang kerja", - "ui.chord_length": "Panjang Perentas", "ui.circle": "Bulatan", "ui.circular_pattern": "Corak Membulat", "ui.clear": "Kosongkan", @@ -1057,11 +1351,9 @@ "ui.command_done": "{command} selesai", "ui.command_palette_hint": "Taip arahan, cth. {example} — atau tekan S untuk mencari", "ui.concentric": "Sepusat", - "ui.configurations": "Konfigurasi", "ui.conic_curve": "Lengkung Kon", "ui.constant": "Malar", "ui.constraints_conflict": "Kekangan bercanggah", - "ui.construct": "Bina", "ui.construction": "Binaan", "ui.context_menu": "Menu konteks", "ui.continuity_g0": "Lipatan G0", @@ -1087,7 +1379,6 @@ "ui.cylinder": "Silinder", "ui.dark": "Gelap", "ui.default_modelling_orientation": "Orientasi pemodelan lalai", - "ui.degrees_of_freedom": "darjah kebebasan", "ui.delete": "Padam", "ui.depth": "Kedalaman", "ui.design": "Reka", @@ -1129,7 +1420,6 @@ "ui.equivalent_radius": "Jejari Setara", "ui.expand": "Kembangkan", "ui.exportDxf": "Eksport DXF…", - "ui.export_ellipsis": "Eksport...", "ui.export_ellipsis_keymap": "Eksport…", "ui.export_keymap_tip": "Simpan kekunci, kegemaran kotak S dan bar alat ke fail", "ui.extend": "Panjangkan", @@ -1153,8 +1443,14 @@ "ui.frame_rate": "Kadar bingkai", "ui.front": "Hadapan", "ui.fully_constrained": "Dikekang sepenuhnya", + "ui.function": "Fungsi", "ui.general": "Umum", "ui.graphics": "Grafik", + "ui.graphics_custom": "Tersuai", + "ui.graphics_performance": "Prestasi", + "ui.graphics_preset": "Pratetap Grafik", + "ui.graphics_preset_help": "Kualiti: oklusi ambien, kualiti paparan Halus dan pensampelan lampau 2× adaptif. Prestasi: tiada oklusi ambien, kualiti paparan Biasa dan pensampelan lampau dimatikan. Perubahan manual menunjukkan Tersuai. MSAA kekal tidak berubah.", + "ui.graphics_quality": "Kualiti", "ui.grid_follows_view": "Grid mengikut pandangan", "ui.grid_follows_view_hint": "Pandangan sisi guna grid satah tegak yang menghadapnya, bukan satah tanah", "ui.ground_shadow": "Bayang tanah", @@ -1183,6 +1479,7 @@ "ui.heading_home": "UTAMA", "ui.heading_insert": "SISIP", "ui.heading_inspect": "PERIKSA", + "ui.heading_interference": "INTERFERENS", "ui.heading_loft": "LOFT", "ui.heading_make": "HASILKAN", "ui.heading_measure": "UKUR", @@ -1213,7 +1510,6 @@ "ui.heading_sheet_metal": "LOGAM KEPINGAN", "ui.heading_shell": "RONGGAKAN", "ui.heading_sketch": "LAKARAN", - "ui.heading_sketch_palette": "PALET LAKARAN", "ui.heading_sketch_scale": "SKALA LAKARAN", "ui.heading_solid": "PEPEJAL", "ui.heading_sphere": "SFERA", @@ -1232,6 +1528,7 @@ "ui.hideOrigin": "Sembunyi Titik Asal", "ui.hidePlanes": "Sembunyi Satah", "ui.hideProfile": "Sembunyi Profil", + "ui.history_title": "Sejarah", "ui.hole": "Lubang", "ui.hole_tap_type": "Jenis Bebenang Lubang", "ui.hole_type": "Jenis Lubang", @@ -1251,11 +1548,12 @@ "ui.length_decimals": "Perpuluhan panjang", "ui.light": "Cerah", "ui.line": "Garis", - "ui.linetype": "Jenis garis", "ui.lock": "Kunci", "ui.loft": "Loft", "ui.look_at": "Pandang Tepat", "ui.look_at_anim_desc": "Pandangan paksi, Pandang Tepat, Utama dan Muatkan", + "ui.manipulator_free_alt": "Seret bebas manipulator juga dengan Alt/Option", + "ui.manipulator_free_alt_tip": "Hidup: Alt/Option atau Ctrl/Cmd pada anak panah ekstrud / gizmo mematikan pelekapan nilai. Mati: Ctrl/Cmd sahaja.", "ui.manufacture": "Pembuatan", "ui.material_review.axes": "Paksi setempat bahan; orientasi pada jasad belum ditetapkan.", "ui.material_review.claims": "Maklumat sumber dan lesen belum disahkan. Nilai yang tidak diberikan kekal tidak diketahui.", @@ -1283,10 +1581,8 @@ "ui.mesh_format_3mf": "3MF", "ui.mesh_format_3mf_tagged": "3MF dengan tag muka", "ui.mesh_format_stl": "STL", - "ui.midpoint": "Titik tengah", "ui.mirror": "Cermin", "ui.mirror_line": "Garis cermin", - "ui.modify": "Ubah Suai", "ui.move": "Alih", "ui.multiple": "Berbilang", "ui.named_views": "Pandangan Bernama", @@ -1295,6 +1591,7 @@ "ui.newSketchGroup": "Kumpulan Lakaran Baharu", "ui.new_body": "Jasad Baharu", "ui.new_design": "Reka Bentuk Baharu", + "ui.no_geometry_yet": "Belum ada geometri", "ui.no_slicer_found": "Tiada penghiris ditemui", "ui.normal": "Biasa", "ui.normalConstruction": "Biasa / Binaan", @@ -1306,7 +1603,6 @@ "ui.offset_plane": "Satah Ofset", "ui.one_side": "Satu Sisi", "ui.open": "Buka", - "ui.open_ellipsis": "Buka...", "ui.open_ends_tip": "Tidak bersentuh", "ui.open_preferences": "Buka Tetapan", "ui.open_recent": "Buka Terkini", @@ -1316,12 +1612,14 @@ "ui.orbit_around": "Orbit mengelilingi", "ui.orientation": "Orientasi", "ui.origin": "Titik Asal", - "ui.palette_points": "Titik", - "ui.palette_profile": "Profil", + "ui.palette_construction_mode": "Mod pembinaan (X)", + "ui.palette_more": "Lagi", + "ui.palette_sketch_options": "Pilihan lakaran", "ui.pan": "Sorot", "ui.pan_zoom_orbit": "Sorot, zum, orbit", "ui.parallel": "Selari", "ui.parameters": "Parameter", + "ui.part_size_shared": "Membina semula bahagian, menggantikan sebarang ciri yang ditambah. Semua kejadian komponen ini dikemas kini.", "ui.paste": "Tampal", "ui.path": "Laluan", "ui.pattern_on_path": "Corak Sepanjang Laluan", @@ -1333,6 +1631,12 @@ "ui.placement": "Penempatan", "ui.plane": "Satah", "ui.plane_at_angle": "Satah Bersudut", + "ui.plugins": "Pemalam", + "ui.plugins_desktop": "Pemalam tersedia dalam aplikasi desktop.", + "ui.plugins_empty": "Tiada pemalam dipasang.", + "ui.plugins_note": "Setiap pemalam ialah folder dalam {path} dengan plugin.json. SolidCraft membaca fail itu dan tidak menjalankan sebarang kod daripada folder. Mematikan pemalam mengekalkannya dipasang.", + "ui.plugins_skipped": "{count} folder tidak dapat dibaca.", + "ui.plugins_version": "{version}", "ui.point": "Titik", "ui.point_under_the_cursor": "Titik di bawah kursor", "ui.points": "Titik", @@ -1351,13 +1655,17 @@ "ui.quit": "Keluar", "ui.radial_context_menu": "Menu konteks membulat", "ui.radius": "Jejari", - "ui.radius_type": "Jenis Jejari", "ui.rail": "Rel", "ui.rail_fit": "Padanan Rel", "ui.reachable": "Boleh dicapai", "ui.rectangle": "Segi Empat Tepat", "ui.rectangular_pattern": "Corak Segi Empat Tepat", "ui.redo": "Buat Semula", + "ui.relink_design_changed": "Pemasangan berubah semasa memilih sumber. Mulakan Paut Semula Sumber sekali lagi.", + "ui.relink_done": "Sumber dipaut semula untuk semua salinan.", + "ui.relink_not_linked": "Komponen ini tidak dipaut pada reka bentuk sumber.", + "ui.relink_select_one": "Pilih satu komponen berpaut atau salah satu salinannya dahulu.", + "ui.relink_source_all": "Paut Semula Sumber (Semua Salinan)…", "ui.removeFromToolbar": "Buang daripada Bar Alat", "ui.removeSection": "Buang Keratan", "ui.render": "Render", @@ -1369,27 +1677,36 @@ "ui.reset_the_settings_on_this_page": "Set semula tetapan pada halaman ini", "ui.restore": "Pulihkan", "ui.restore_defaults": "Pulihkan Tetapan Lalai", + "ui.reverse_horizontal_pan_direction": "Songsangkan arah pan mendatar", + "ui.reverse_horizontal_pan_tip": "Tatal mendatar dua jari dan roda ibu jari membuat pan ke arah bertentangan", "ui.reverse_zoom_direction": "Songsangkan arah zum", "ui.revolve": "Putar", + "ui.ribbon_exit": "Keluar", + "ui.ribbon_pin_footer": "Arahan tersemat dipaparkan pada reben. Lalukan tetikus pada baris untuk menyemat atau menyahsemat.", + "ui.ribbon_workspace": "Ruang kerja", "ui.right": "Kanan", "ui.save": "Simpan", "ui.save_as": "Simpan Sebagai", - "ui.save_as_ellipsis": "Simpan Sebagai...", "ui.save_mesh_no_slicer": "Tiada penghiris: pilih program melalui Tersuai… atau matikan Hantar ke penghiris", "ui.save_mesh_pick_bodies": "Pilih jasad untuk disimpan", "ui.save_mesh_temp_failed": "Tidak dapat mencipta {folder}: {error}", "ui.saved_to": "{path} disimpan", + "ui.sbox_pin": "Semat di atas kotak S", + "ui.sbox_unpin": "Nyahsemat", "ui.scale": "Skala", "ui.second_rail": "Rel Kedua", "ui.section_analysis": "Analisis Keratan", "ui.select": "Pilih", "ui.selectOther": "Pilih Lain…", "ui.selectTangentChain": "Pilih Rantaian Tangen", - "ui.select_other_hint": "Pilih Lain: tahan butang kiri pada model tanpa bergerak (atau klik kanan › Pilih Lain…) untuk senarai objek di bawah kursor. Klik tempat sama untuk objek seterusnya.", "ui.selection": "Pilihan", + "ui.selection_modifiers": "Pengubah suai pilihan", + "ui.selection_shift_add_only": "Shift+klik menambah tanpa membuang", + "ui.selection_shift_add_only_tip": "Hidup: Shift menambah item, Ctrl/Cmd menogol. Mati (lalai): Shift dan Ctrl/Cmd kedua-duanya menogol.", "ui.send": "Hantar", "ui.send_to_slicer": "Hantar ke penghiris", "ui.sent_to_slicer": "Dihantar ke {slicer}", + "ui.sheet_gap": "Jarak", "ui.shell": "Ronggakan", "ui.show": "Papar", "ui.showAll": "Papar Semua", @@ -1401,7 +1718,6 @@ "ui.show_constraints": "Kekangan", "ui.show_construction_geometries": "Geometri Binaan", "ui.show_dimensions": "Dimensi", - "ui.show_points": "Papar Titik", "ui.show_profile": "Papar Profil", "ui.show_projected_geometries": "Geometri Unjuran", "ui.simple": "Ringkas", @@ -1410,8 +1726,8 @@ "ui.sketch": "Lakaran", "ui.sketch_dimension": "Dimensi Lakaran", "ui.sketch_grid": "Grid Lakaran", + "ui.sketch_modifiers": "Pengubah suai lakaran", "ui.sketch_scale": "Skala Lakaran", - "ui.sketch_status": "Status Lakaran", "ui.sketches": "Lakaran", "ui.slice": "Hiris", "ui.slicer": "Penghiris", @@ -1421,8 +1737,34 @@ "ui.smooth_wheel_zoom": "Zum roda lancar", "ui.smooth_wheel_zoom_tip": "Matikan untuk mengezum serta-merta bagi setiap putaran roda tetikus, tanpa gerakan susulan", "ui.snap": "Lekap", + "ui.space_mouse_calibrate": "Tentukur…", + "ui.space_mouse_calibrate_tip": "Gerakkan penutup seperti yang diminta tetingkap, supaya SolidCraft mempelajari arah dan jarak setiap paksi tetikus 3D ini. Disimpan untuk tetikus 3D ini.", + "ui.space_mouse_calibrate_title": "Tentukur tetikus 3D", + "ui.space_mouse_calibrated": "Telah ditentukur", + "ui.space_mouse_calibration": "Penentukuran tetikus 3D", + "ui.space_mouse_calibration_done": "Selesai. Simpan untuk digunakan setiap kali tetikus 3D ini disambungkan.", + "ui.space_mouse_calibration_no_response": "Satu paksi hampir tidak bergerak, jadi tidak dapat ditentukur. Mulakan semula dan gerakkan penutup lebih jauh setiap kali.", + "ui.space_mouse_dead_zone": "Zon mati", + "ui.space_mouse_dead_zone_tip": "Sejauh mana penutup perlu bergerak sebelum pandangan bergerak, sebagai bahagian daripada julat penuhnya. Naikkan jika pandangan hanyut semasa penutup dalam keadaan rehat.", + "ui.space_mouse_forget": "Lupakan penentukuran", "ui.space_mouse_hint": "Alih dan putar pandangan serentak; dalam lakaran, hanya sorot dan zum digunakan.", "ui.space_mouse_navigate": "Navigasi dengan SpaceNavigator / SpaceMouse", + "ui.space_mouse_none": "Tiada tetikus 3D ditemui", + "ui.space_mouse_not_calibrated": "Belum ditentukur", + "ui.space_mouse_reading": "Bacaan", + "ui.space_mouse_step_lift": "Angkat penutup ke atas, tahan, kemudian lepaskan.", + "ui.space_mouse_step_press": "Tekan penutup ke bawah, tahan, kemudian lepaskan.", + "ui.space_mouse_step_pull": "Tarik penutup ke arah anda, tahan, kemudian lepaskan.", + "ui.space_mouse_step_push": "Tolak penutup menjauhi anda, tahan, kemudian lepaskan.", + "ui.space_mouse_step_rest": "Alihkan tangan anda daripada penutup dan biarkan ia diam.", + "ui.space_mouse_step_slide_left": "Luncurkan penutup ke kiri, tahan, kemudian lepaskan.", + "ui.space_mouse_step_slide_right": "Luncurkan penutup ke kanan, tahan, kemudian lepaskan.", + "ui.space_mouse_step_tilt_back": "Condongkan penutup ke belakang (tepi depan naik), tahan, kemudian lepaskan.", + "ui.space_mouse_step_tilt_forward": "Condongkan penutup ke hadapan (tepi depan turun), tahan, kemudian lepaskan.", + "ui.space_mouse_step_tilt_left": "Condongkan penutup ke kiri (tepi kiri turun), tahan, kemudian lepaskan.", + "ui.space_mouse_step_tilt_right": "Condongkan penutup ke kanan (tepi kanan turun), tahan, kemudian lepaskan.", + "ui.space_mouse_step_twist_clockwise": "Pusing penutup ikut arah jam, tahan, kemudian lepaskan.", + "ui.space_mouse_step_twist_counterclockwise": "Pusing penutup lawan arah jam, tahan, kemudian lepaskan.", "ui.spacing": "Selang", "ui.spacing_2": "Selang 2", "ui.sphere": "Sfera", @@ -1430,12 +1772,15 @@ "ui.split_body": "Belah Jasad", "ui.stand_up_tip": "Selepas buka STEP atau IGES dengan Z ke atas, cadangkan suku putaran pada X", "ui.start": "Mula", - "ui.start_radius": "Jejari Mula", + "ui.start_over": "Mula semula", + "ui.start_page": "Halaman mula", "ui.stretch": "Regang", "ui.supersampling": "Pensampelan super (SSAA)", "ui.supersampling_adaptive": "Hanya apabila pandangan pegun", "ui.supersampling_off": "Dimatikan (1×)", "ui.suppress": "Nyahaktifkan", + "ui.suppress_auto_snap": "Tindas lekapan auto semasa melukis / menyeret", + "ui.suppress_auto_snap_note": "Lalai: Ctrl/Cmd atau Alt/Option masing-masing menindas pelekapan lakaran. Pilih satu kekunci untuk mengecilkannya.", "ui.sweep": "Sapu", "ui.sweep_follow_direction": "Ikut Arah", "ui.sweep_keep_as_drawn": "Kekal seperti Dilukis", @@ -1478,13 +1823,24 @@ "ui.untitled": "Tanpa Tajuk", "ui.up_axis_note": "Paksi yang menghala ke atas dalam pandangan paksi, Utama dan Pandang Tepat. Reka bentuk tidak berubah.", "ui.updateToCurrentView": "Kemas Kini Pandangan Semasa", - "ui.variable": "Berubah", "ui.view_centre": "Pusat pandangan", "ui.visual_shaded_hidden_edges": "Berlorek dengan tepi tersembunyi", "ui.visual_shaded_with_edges": "Berlorek dengan tepi", "ui.visual_style": "Gaya visual", "ui.visual_wireframe": "Rangka dawai", "ui.workspace": "ruang kerja", + "ui.workspace_animation_description": "Paparan terburai, kajian gerakan dan papan cerita", + "ui.workspace_available": "Tersedia", + "ui.workspace_current": "Semasa", + "ui.workspace_design_description": "Lakar, model, pasang dan periksa", + "ui.workspace_design_tabs": "Model · Permukaan · Pasang · Sisip · Periksa · Urus · Pandangan", + "ui.workspace_drawing_description": "Lukisan 2D dengan pandangan, dimensi dan blok tajuk", + "ui.workspace_footer": "Setiap ruang kerja berfungsi pada reka bentuk, sejarah dan pilihan yang sama; hanya tab reben berubah. Penukar dikunci semasa lakaran atau ciri sedang disunting.", + "ui.workspace_manufacture_description": "Pemotongan lapisan, laluan alat dan persediaan", + "ui.workspace_planned": "Dirancang", + "ui.workspace_render_description": "Pratonton produk, tetapan adegan dan imej render", + "ui.workspace_render_tabs": "Adegan · Imej", + "ui.workspace_simulation_description": "Beban, kekangan dan keputusan", "ui.x_distance": "Jarak X", "ui.y_distance": "Jarak Y", "ui.y_up": "Y ke atas", @@ -1494,7 +1850,6 @@ "ui.zoom_to_the_cursor": "Zum ke kursor", "update.available": "SolidCraft {version} tersedia", "update.button": "Kemas kini", - "update.button_tip": "SolidCraft {version} tersedia", "update.button_version": "Kemas kini ke {version}", "update.check_automatically": "Semak kemas kini secara automatik", "update.check_now": "Semak sekarang", @@ -1526,5 +1881,6 @@ "update.title": "Kemas kini tersedia", "update.up_to_date": "SolidCraft sudah terkini.", "update.update_now": "Kemas kini", - "update.you_have": "Versi anda: {version}." + "update.you_have": "Versi anda: {version}.", + "↑ ↓ choose · Enter / Tab complete · Esc dismiss": "↑ ↓ pilih · Enter / Tab lengkapkan · Esc tutup" } diff --git a/assets/locales/pl.json b/assets/locales/pl.json index 8507e9f07..cfe981d13 100644 --- a/assets/locales/pl.json +++ b/assets/locales/pl.json @@ -3,11 +3,14 @@ "1. Open GitHub draft below, then paste the report copied to your clipboard.": "1. Otwórz poniżej szkic zgłoszenia na GitHubie, a następnie wklej raport skopiowany do schowka.", "1. Open GitHub draft below. Your title and report will be filled in.": "1. Otwórz poniżej szkic zgłoszenia na GitHubie. Tytuł i raport zostaną wypełnione.", "2. Attach your screenshot: copy and paste it, or save and upload the PNG.": "2. Dołącz zrzut ekranu: skopiuj go i wklej albo zapisz i prześlij plik PNG.", + "2D": "2D", "3. Click Submit new issue on GitHub to send your report.": "3. Kliknij Submit new issue na GitHubie, aby wysłać raport.", "A new configuration, a copy of the active one": "Nowa konfiguracja, kopia aktywnej", - "AI": "AI", + "ARRANGE": "UKŁADANIE", "About SolidCraft": "O programie SolidCraft", "Acceleration": "Przyspieszenie", + "Access": "Dostęp", + "Actions": "Działania", "Active": "Aktywne", "Active rule": "Aktywna reguła", "Add": "Dodaj", @@ -15,6 +18,7 @@ "Add Mid Radius": "Dodaj promień środkowy", "Add Row": "Dodaj wiersz", "Add condition": "Dodaj warunek", + "Add or edit rule": "Dodaj lub edytuj regułę", "Against": "Względem", "Alignment": "Wyrównanie", "All Sketch Points": "Wszystkie punkty szkicu", @@ -28,20 +32,33 @@ "Applied Radius": "Zastosowany promień", "Apply To": "Zastosuj do", "Apply to selection": "Zastosuj do zaznaczenia", + "Apply your appearance first. Exports assigned appearances and materials created in this design.": "Najpierw zastosuj wygląd. Eksportuje przypisane wyglądy i materiały utworzone w tym projekcie.", "Arc length": "Długość łuku", "Area": "Pole powierzchni", + "As-Built": "W stanie zastanym", + "Assign Rule": "Przypisz regułę", "Attachment": "Zaczepienie", + "BLEND SURFACE": "POWIERZCHNIA PRZEJŚCIOWA", "BOUNDARY SURFACE": "POWIERZCHNIA Z KONTURU", "BROWSER": "PRZEGLĄDARKA", "Bend Line Position": "Położenie linii gięcia", "Bend Position": "Położenie gięcia", "Bend Radius": "Promień gięcia", + "Bend Table": "Tabela gięć", "Bends": "Gięcia", + "Bodies": "Bryły", "Body": "Bryła", "Boundary": "Kontur", "Bounding box": "Prostopadłościan otaczający", + "CHECK": "SPRAWDZANIE", + "COMPONENTS": "KOMPONENTY", + "CONFIGURATIONS": "KONFIGURACJE", + "CONSTRAIN": "WIĄZANIA", + "CONTACT": "KONTAKT", + "CONVERT": "KONWERSJA", "CSV or JSON: updates existing parameters, adds new ones": "CSV lub JSON: aktualizuje istniejące parametry, dodaje nowe", "Capture All Positions": "Zapamiętaj wszystkie położenia", + "Capture Pos.": "Zapamiętaj poł.", "Catch Direction": "Kierunek zaczepu", "Cells": "Komórki", "Center X": "Środek X", @@ -52,15 +69,19 @@ "Check collisions": "Sprawdzaj kolizje", "Checked": "Sprawdzono", "Choose a new plane. Sketch geometry and dimensions stay unchanged in its two-dimensional coordinates.": "Wybierz nową płaszczyznę. Geometria i wymiary szkicu pozostają niezmienione w jego dwuwymiarowych współrzędnych.", + "Choose…": "Wybierz…", + "Circular": "Kołowy", "Circumference": "Obwód", "Close draft": "Zamknij szkic zgłoszenia", "Collisions": "Kolizje", "Colour": "Kolor", + "Comment": "Komentarz", "Component1": "Komponent1", + "Config Table": "Tabela konfiguracji", "Configuration": "Konfiguracja", "Configuration rules": "Reguły konfiguracji", - "Construction": "Konstrukcyjne", "Contact": "Kontakt", + "Contact Sets": "Zestawy kontaktów", "Contact sets": "Zestawy kontaktów", "Continuity": "Ciągłość", "Copy Error Message": "Kopiuj komunikat błędu", @@ -78,14 +99,17 @@ "Cube": "Sześcian", "Current orthographic view (1:1 mm)": "Bieżący widok ortogonalny (1:1 mm)", "Current perspective view": "Bieżący widok perspektywiczny", + "Curv. Comb": "Grzebień krzyw.", "Curvature (G2)": "Krzywizna (G2)", + "Curvature change (G3)": "Zmiana krzywizny (G3)", "Customize Toolbar": "Dostosuj pasek narzędzi", + "Delete": "Usuń", "Delete all": "Usuń wszystko", "Delete rule": "Usuń regułę", "Delete the row": "Usuń wiersz", "Delete the set": "Usuń zestaw", - "Delete this parameter": "Usuń ten parametr", "Density": "Gęstość", + "Dependents": "Elementy zależne", "Designs you open or save appear here.": "Tutaj pojawiają się otwierane lub zapisywane projekty.", "Determined by To Object. Choose Angle to edit the angular extent.": "Wynika z opcji Do obiektu. Wybierz Kąt, aby edytować zakres kątowy.", "Direction": "Kierunek", @@ -97,45 +121,72 @@ "Drive Joint": "Steruj złączem", "Duration": "Czas trwania", "Edges": "Krawędzie", + "Edit": "Edytuj", "Edit Profile Sketch": "Edytuj szkic profilu", "Enable rule": "Włącz regułę", "Enabled": "Włączone", + "End bulge": "Wybrzuszenie końca", + "End continuity": "Ciągłość końca", "Explode": "Rozstrzel", "Explode Text": "Rozbij tekst", "Export Animation…": "Eksportuj animację…", + "Export CSV…": "Eksportuj CSV…", "Export Current View as DXF": "Eksportuj bieżący widok jako DXF", "Export Current View as DXF…": "Eksportuj bieżący widok jako DXF…", + "Export DXF": "Eksportuj DXF", "Export DXF…": "Eksportuj DXF…", + "Export JSON…": "Eksportuj JSON…", "Export hidden edges as dashed lines": "Eksportuj krawędzie niewidoczne jako linie kreskowe", + "Expression": "Wyrażenie", + "Extend to meet": "Wydłuż do spotkania", "Extents": "Zakres", + "FILES": "PLIKI", + "FLAT": "ROZWINIĘCIE", "Face": "Ściana", "Face attachment lost": "Utracono zaczepienie do ściany", "Faces": "Ściany", "Faces / edges / vertices": "Ściany / krawędzie / wierzchołki", + "Fastener": "Element złączny", + "Favorites": "Ulubione", "Favourite": "Ulubione", + "Feature": "Funkcja", "Files from many CAD programs have Y up, so they open lying on their back here (Z up).": "Pliki z wielu programów CAD mają oś Y skierowaną w górę, więc otwierają się tutaj leżąc na plecach (oś Z w górę).", "Filter": "Filtr", "Find in Browser": "Znajdź w przeglądarce", - "Flat": "Płaskie", + "Finish": "Wykończenie", + "Flat Pattern": "Rozwinięcie", "Flat size": "Wymiary rozwinięcia", "Follow camera (Look At sketches)": "Podążaj za kamerą (Patrz na szkice)", "Follow the camera (Look At sketches)": "Podążaj za kamerą (Patrz na szkice)", "Font": "Czcionka", + "From Bodies": "Z brył", + "From edges": "Z krawędzi", "Full Length": "Pełna długość", + "Gap": "Szczelina", "Grid": "Siatka", + "HISTORY": "HISTORIA", "Height": "Wysokość", "Hidden edges": "Krawędzie niewidoczne", "Holes": "Otwory", "Holes (edges on them)": "Otwory (krawędzie na nich)", "Home view": "Widok główny", + "Horiz./Vert.": "Poz./Pion.", + "IMAGES": "OBRAZY", + "Import…": "Importuj…", "In This Design": "W tym projekcie", "In place (surfaces)": "W miejscu (powierzchnie)", "In plane": "W płaszczyźnie", "Inside": "Wewnątrz", "Interferes": "Koliduje", + "Isocurve": "Izokrzywa", "Issue title": "Tytuł zgłoszenia", + "JOINTS": "ZŁĄCZA", "Joint Origin1": "Początek złącza1", + "Keep (points on it)": "Zachowaj (punkty na niej)", "Keep Tools": "Zachowaj narzędzia", + "Keep of the other surface": "Zachowaj z drugiej powierzchni", + "LIBRARY": "BIBLIOTEKA", + "LINKS": "ŁĄCZA", "Later": "Później", "Leave it": "Zostaw", "Legacy face attachment. Rebinding to a certified face creates an exact attachment.": "Starsze zaczepienie do ściany. Ponowne powiązanie z certyfikowaną ścianą tworzy dokładne zaczepienie.", @@ -143,46 +194,70 @@ "Length units": "Jednostki długości", "Letter Spacing": "Odstęp między literami", "Library": "Biblioteka", + "Library file": "Plik biblioteki", "Line Spacing": "Odstęp między wierszami", + "Local library": "Biblioteka lokalna", "Loop": "Pętla", + "MANAGE": "ZARZĄDZANIE", + "MATERIALS": "MATERIAŁY", + "MODEL": "MODEL", + "MOTION": "RUCH", "Margin": "Margines", "Mass": "Masa", + "Mass Center": "Środek masy", + "Matched restrictions check the final values.": "Ograniczenia, których warunki są spełnione, sprawdzają wartości końcowe.", "Material": "Materiał", "Max": "Maks.", "Mid Radius": "Promień środkowy", "Middle double-click": "Dwukrotne kliknięcie środkowym", "Min": "Min.", "Mitre": "Ukos", + "Model Parameters": "Parametry modelu", "Modeled": "Wymodelowane", "More toolbar panels": "Więcej paneli paska narzędzi", "Motion": "Ruch", + "Move / Copy": "Przesuń / Kopiuj", "Move Type": "Typ przesunięcia", + "Move down": "Przenieś w dół", "Move earlier": "Przesuń wcześniej", "Move later": "Przesuń później", + "Move up": "Przenieś w górę", "Name": "Nazwa", "Nearest": "Najbliższy", + "New": "Nowy", + "New Comp.": "Nowy komp.", + "New Sketch": "Nowy szkic", + "New rule…": "Nowa reguła…", "New study": "Nowe badanie", "No crash reports.": "Brak raportów o awariach.", + "No matching appearance presets.": "Brak pasujących ustawień wyglądu.", "No matching appearances": "Brak pasujących wyglądów", "No visible bodies to export.": "Brak widocznych brył do wyeksportowania.", "None": "Brak", - "Normal to sketch": "Prostopadle do szkicu", "Not available yet": "Jeszcze niedostępne", "Notch": "Wycięcie", + "OUTPUT": "WYJŚCIE", "Opacity": "Nieprzezroczystość", "Open GitHub draft": "Otwórz szkic zgłoszenia na GitHubie", + "Open local libraries in the desktop app. You can export this design's library here.": "Otwórz biblioteki lokalne w aplikacji komputerowej. Tutaj możesz wyeksportować bibliotekę tego projektu.", "Open-source parametric 3D CAD in Rust. Licensed MIT OR Apache-2.0.": "Otwartoźródłowy parametryczny CAD 3D w języku Rust. Licencja MIT OR Apache-2.0.", + "Operator": "Operator", "Other side": "Druga strona", + "Other surface (mutual trim)": "Druga powierzchnia (wzajemne przycięcie)", "Outside": "Na zewnątrz", "Overall length": "Długość całkowita", - "Parameter values": "Wartości parametrów", + "Param. Graph": "Wykres param.", + "Parameter": "Parametr", + "Parts": "Części", "Pass through": "Przechodzi przez", "Path": "Ścieżka", + "Pattern": "Szyk", "Per Edge": "Dla każdej krawędzi", "Pick the tool bodies": "Wybierz bryły narzędziowe", "Picked": "Wybrane", "Picked point": "Wybrany punkt", "Place at the origin instead": "Zamiast tego umieść w początku układu", + "Plastic Rules": "Reguły tworzyw", "Playback": "Odtwarzanie", "Plot": "Wykres", "Position": "Położenie", @@ -193,10 +268,11 @@ "Preview Row": "Podgląd wiersza", "Preview leaves the current design unchanged.": "Podgląd nie zmienia bieżącego projektu.", "Profiles/Curves": "Profile/krzywe", - "Projection": "Rzutowanie", "Quantity": "Liczba", "RECENT": "OSTATNIE", + "REFERENCE": "ODNIESIENIE", "RULED SURFACE": "POWIERZCHNIA PROSTOKREŚLNA", + "RULES": "REGUŁY", "Radius Fit": "Dopasowanie promienia", "Ratio": "Stosunek", "Reattach selected face": "Ponownie zaczep wybraną ścianę", @@ -214,6 +290,8 @@ "Remove this point": "Usuń ten punkt", "Report a bug — review a screenshot and open a GitHub draft": "Zgłoś błąd — sprawdź zrzut ekranu i otwórz szkic zgłoszenia na GitHubie", "Reset Toolbar": "Przywróć pasek narzędzi", + "Resize Part": "Zmień rozmiar części", + "Restore View": "Przywróć widok", "Restore outer boundary": "Przywróć kontur zewnętrzny", "Restore the inherited component or physical material appearance": "Przywróć wygląd odziedziczony z komponentu lub materiału fizycznego", "Result": "Wynik", @@ -222,18 +300,27 @@ "Reverse Direction": "Odwróć kierunek", "Revert": "Przywróć", "Revert All Positions": "Przywróć wszystkie położenia", + "Revert Pos.": "Przywróć poł.", "Revert Position": "Przywróć położenie", "Review the report and screenshot before opening GitHub.": "Przed otwarciem GitHuba sprawdź raport i zrzut ekranu.", "Rim Edge": "Krawędź obrzeża", "Roll History Marker Here": "Przesuń tutaj znacznik historii", "Round": "Okrągłe", "Rule": "Reguła", + "Rule name": "Nazwa reguły", + "Rules run from top to bottom. Matched drives change effective values.": "Reguły są wykonywane od góry do dołu. Reguły sterujące, których warunki są spełnione, zmieniają wartości efektywne.", + "SECTION": "PRZEKRÓJ", + "SURFACE QUALITY": "JAKOŚĆ POWIERZCHNI", "Save Rule": "Zapisz regułę", + "Save View": "Zapisz widok", "Save the study as an animated GIF, seen as the viewport shows it": "Zapisz badanie jako animowany GIF, tak jak widać je w widoku", "Saved preview. Geometry is being checked before editing.": "Zapisany podgląd. Geometria jest sprawdzana przed edycją.", "Scale factor": "Współczynnik skali", + "Scene": "Scena", "Search": "Szukaj", "Search commands": "Szukaj poleceń", + "Search this library": "Przeszukaj tę bibliotekę", + "Section": "Przekrój", "Select Other: hold the left button still on the model (or right-click › Select Other…) to list everything under the cursor; click again on the same spot to select the next thing there. Double-click the middle button to go Home (Preferences › Navigation).": "Wybierz inny: przytrzymaj nieruchomo lewy przycisk na modelu (lub prawy przycisk › Wybierz inny…), aby wyświetlić wszystko pod kursorem; kliknij ponownie w tym samym miejscu, aby zaznaczyć kolejny obiekt. Dwukrotne kliknięcie środkowym przyciskiem przechodzi do widoku głównego (Preferencje › Nawigacja).", "Select bodies (a face picks its body)": "Zaznacz bryły (ściana wybiera swoją bryłę)", "Select bodies or faces instead": "Zamiast tego zaznacz bryły lub ściany", @@ -241,6 +328,7 @@ "Semantic faces share their appearance across instances.": "Ściany semantyczne współdzielą wygląd między wystąpieniami.", "Send your report on GitHub": "Wyślij raport na GitHubie", "Shape": "Kształt", + "Sheet Rules": "Reguły blach", "Show Agent Cursor": "Pokaż kursor agenta", "Show in folder": "Pokaż w folderze", "Show the pointer an AI agent moves (#35)": "Pokaż wskaźnik poruszany przez agenta AI (#35)", @@ -254,16 +342,23 @@ "Sketch points": "Punkty szkicu", "Slot width": "Szerokość rowka", "SolidCraft closed before these designs were saved. Their last autosave can be opened.": "SolidCraft zamknął się, zanim te projekty zostały zapisane. Można otworzyć ich ostatni autozapis.", + "Specialise": "Uszczegółów", "Speed": "Prędkość", "Stand it up": "Postaw", "Stand it up: a quarter turn about X, as one Move feature you can undo.": "Postaw: obrót o ćwierć obrotu wokół osi X, jako jedna funkcja Przesuń, którą można cofnąć.", "Stand this part up?": "Postawić tę część?", + "Start bulge": "Wybrzuszenie początku", + "Start continuity": "Ciągłość początku", "Step": "Krok", "Steps": "Kroki", + "Stitch the kept pieces": "Zszyj zachowane części", + "Stitch to both bodies": "Zszyj z obiema bryłami", "Study": "Badanie", "Style": "Styl", "Suppressed": "Wygaszone", + "Surface": "Powierzchnia", "Swap Ends": "Zamień końce", + "TRIM": "PRZYCINANIE", "Tangent (G1)": "Styczność (G1)", "Tangent Chain": "Łańcuch styczny", "Tear": "Rozdarcie", @@ -279,22 +374,26 @@ "This child is shared. Position changes apply to every copy of its parent.": "Ten element podrzędny jest współdzielony. Zmiany położenia dotyczą każdej kopii elementu nadrzędnego.", "This face cannot provide a durable attachment. Choose another face or explicitly use a fixed plane.": "Ta ściana nie zapewnia trwałego zaczepienia. Wybierz inną ścianę lub jawnie użyj stałej płaszczyzny.", "To Offset": "Do odsunięcia", + "To edges": "Do krawędzi", "Tolerance": "Tolerancja", "Too close": "Zbyt blisko", + "Trimming tool (plane, face or curves)": "Narzędzie przycinające (płaszczyzna, ściana lub krzywe)", "Turn off section analysis before exporting the view.": "Przed eksportem widoku wyłącz analizę przekroju.", "Type": "Typ", "UNTRIM": "COFNIJ PRZYCIĘCIE", + "Unit": "Jednostka", "Updating the preview": "Aktualizowanie podglądu", "Use active author placement": "Użyj aktywnego położenia autora", "Use fixed plane": "Użyj stałej płaszczyzny", "Use saved fixed plane": "Użyj zapisanej stałej płaszczyzny", "Use selected face as fixed plane": "Użyj wybranej ściany jako stałej płaszczyzny", + "User Parameters": "Parametry użytkownika", "VIEW": "WIDOK", + "VIEWS": "WIDOKI", "Value": "Wartość", "Velocity": "Prędkość", "Vertices": "Wierzchołki", "View navigator": "Nawigator widoku", - "Visible bodies only. Curves use line segments (0.01 mm tolerance).": "Tylko widoczne bryły. Krzywe są przybliżane odcinkami (tolerancja 0,01 mm).", "Volume": "Objętość", "Wall": "Ścianka", "Wall Location": "Położenie ścianki", @@ -302,6 +401,13 @@ "When": "Gdy", "Width": "Szerokość", "Will fail": "Nie powiedzie się", + "X angle": "Kąt X", + "X distance": "Odległość X", + "Y angle": "Kąt Y", + "Y distance": "Odległość Y", + "Z angle": "Kąt Z", + "Z distance": "Odległość Z", + "Zebra": "Zebra", "angle, height": "kąt, wysokość", "appearance.dielectric_ior": "Współczynnik załamania dielektryka (IOR)", "appearance.metallic": "Metaliczność", @@ -310,7 +416,13 @@ "appearance.roughness": "Chropowatość", "appearance.surface_response": "Reakcja powierzchni", "browser.body_name": "Bryła{number}", + "browser.calibrate_title": "Kalibruj: {name}", + "browser.capture_many": "Przesunięto komponenty ({count}), ale ich położenia nie zostały zapamiętane.", + "browser.capture_note": "Zapamiętaj położenie zachowuje nowe położenie; Przywróć położenie przywraca poprzednie.", + "browser.capture_one": "Przesunięto komponent, ale jego położenie nie zostało zapamiętane.", "browser.component_name": "Komponent{number}", + "browser.edit_canvas_title": "Edytuj kanwę: {name}", + "browser.move_title": "Przesuń: {name}", "browser.parameters": "Parametry ({count})", "browser.precision": "Dokładność: {precision}", "browser.sketch_name": "Szkic{number}", @@ -325,6 +437,7 @@ "cmd.appearance_assign": "Wygląd", "cmd.appearance_library": "Biblioteka wyglądów", "cmd.appearance_list": "Lista wyglądów", + "cmd.assembly_bom": "Zestawienie materiałowe", "cmd.body_rename": "Zmień nazwę bryły", "cmd.browser_group": "Nowa grupa", "cmd.browser_move": "Przenieś elementy przeglądarki", @@ -346,10 +459,13 @@ "cmd.component_insert_design": "Wstaw projekt", "cmd.component_links": "Lista łączy", "cmd.component_list": "Lista komponentów", + "cmd.component_metadata": "Właściwości części", + "cmd.component_metadata_set": "Zmień właściwości części", "cmd.component_move_bodies": "Przenieś bryły do komponentu", "cmd.component_move_sketches": "Przenieś szkice do komponentu", "cmd.component_paste_new": "Wklej jako nowy", "cmd.component_properties": "Właściwości fizyczne komponentu", + "cmd.component_relink": "Połącz ponownie ze źródłem", "cmd.component_rename": "Zmień nazwę komponentu", "cmd.component_revert_position": "Przywróć położenie", "cmd.component_unlock": "Odblokuj zawartość", @@ -401,6 +517,7 @@ "cmd.edit_checkpoint": "Punkt kontrolny", "cmd.edit_restore_checkpoint": "Przywróć punkt kontrolny", "cmd.engine_commands": "Lista poleceń", + "cmd.engine_describe": "Opisz polecenie", "cmd.explode_create": "Widok rozstrzelony", "cmd.explode_delete": "Usuń widok rozstrzelony", "cmd.explode_list": "Lista widoków rozstrzelonych", @@ -433,6 +550,7 @@ "cmd.joint_drive": "Steruj złączami", "cmd.joint_edit": "Edytuj złącze", "cmd.joint_gear": "Przekładnia zębata", + "cmd.joint_inspect": "Sprawdź złącze", "cmd.joint_limits": "Limity złącza", "cmd.joint_list": "Lista złączy", "cmd.joint_motion_link": "Powiązanie ruchu", @@ -442,6 +560,7 @@ "cmd.joint_rigid_group": "Grupa sztywna", "cmd.joint_screw": "Śruba", "cmd.joint_solve": "Rozwiąż złącza", + "cmd.joint_sweep": "Przeciągnij złącze", "cmd.library_apply": "Zastosuj wpis biblioteki lokalnej", "cmd.library_export": "Eksportuj bibliotekę projektu", "cmd.library_inspect": "Sprawdź bibliotekę lokalną", @@ -590,6 +709,7 @@ "cmd.sketch_spline_fit_point": "Splajn przez punkty", "cmd.sketch_spun_profile": "Profil obrotowy", "cmd.sketch_toggle_driven": "Przełącz wymiar sterowany", + "cmd.sketch_trim_path": "Przytnij wzdłuż ścieżki", "cmd.solid_align": "Wyrównaj", "cmd.solid_boundary_fill": "Wypełnienie konturem", "cmd.solid_bounding_solid": "Bryła otaczająca", @@ -632,13 +752,23 @@ "cmd.timeline_roll_to": "Przesuń znacznik historii", "cmd.timeline_rollback": "Przesuń znacznik osi czasu", "cmd.timeline_suppress": "Wygaś funkcję", + "cmd.view_ambient_occlusion": "Okluzja otoczenia", "cmd.view_apply": "Przywróć widok nazwany", "cmd.view_delete": "Usuń widok nazwany", + "cmd.view_graphics_preset": "Ustawienie graficzne", "cmd.view_list": "Lista widoków nazwanych", "cmd.view_navigate": "Nawiguj widokiem", "cmd.view_rename": "Zmień nazwę widoku nazwanego", "cmd.view_save": "Nowy widok nazwany", - "command name": "nazwa polecenia", + "color.copy": "Kliknij, aby skopiować wartości koloru", + "color.edit": "Kliknij, aby edytować kolor", + "color.gamma": "Wartości koloru w przestrzeni gamma 0-255", + "color.hue": "Odcień", + "color.linear": "Wartości koloru w przestrzeni liniowej 0-1", + "color.saturation_value": "Nasycenie i wartość", + "color.selected": "Wybrany kolor", + "contact.components_count": "Liczba komponentów: {count}", + "contact.enabled_label": "włączone", "coupling.gear_1": "Koło zębate 1", "coupling.gear_1_pick": "Koło zębate 1 (opcjonalnie)", "coupling.gear_2": "Koło zębate 2", @@ -655,8 +785,30 @@ "coupling.rack": "Zębatka", "coupling.radius_1": "Promień 1", "coupling.radius_2": "Promień 2", + "crash.announce": "SolidCraft zamknął się nieoczekiwanie lub napotkał błąd wewnętrzny podczas ostatniego uruchomienia. Zapisano raport o awarii (Pomoc > Raporty o awariach…).", + "crash.copy_folder": "Kopiuj ścieżkę folderu", + "crash.copy_path": "Kopiuj ścieżkę", + "crash.deleted": "Usunięto raporty: {count}.", + "crash.detected_time": "Wykryto {time} UTC", + "crash.intro": "Raporty o awariach pozostają na tym komputerze i nigdzie nie są wysyłane. Zgłoś… otwiera szkic do przejrzenia, zanim cokolwiek zostanie udostępnione.", + "crash.kind_command": "Błąd wewnętrzny w poleceniu", + "crash.kind_internal": "Błąd wewnętrzny", + "crash.kind_kernel": "Błąd jądra (odzyskany)", + "crash.kind_unclean": "Zamknięto nieoczekiwanie", + "crash.previous_session": "Poprzednia sesja SolidCraft zakończyła się nieoczekiwanie lub napotkała błąd wewnętrzny. Raporty z nieprawidłowych zamknięć są wykrywane przy uruchomieniu. Szczegóły: Pomoc > Raporty o awariach…", + "crash.replayable": "możliwy do odtworzenia", + "crash.report": "Zgłoś…", + "crash.unclean_explanation": "Wykryto przy późniejszym uruchomieniu; dokładny czas zamknięcia nie został zapisany. Nieprawidłowe zamknięcie może też wynikać z wyłączenia systemu lub wymuszonego zatrzymania.", + "delete.and_more": "… i jeszcze {count}", + "dialog.bodies_count": "Bryły: {count}", + "dialog.clearance_invalid": "luz musi być długością równą 0 lub większą", + "dialog.compute": "Oblicz", + "dialog.compute_again": "Oblicz ponownie", "dialog.computing": "Obliczanie… {seconds} s", + "dialog.could_not_be_checked": "nie udało się sprawdzić", "dialog.custom_axis": "↖ Oś niestandardowa", + "dialog.dimension_insert_hint": "Kliknij dwukrotnie inny wymiar sterujący, aby wstawić jego nazwę", + "dialog.dimension_name": "Wymiar: {name}", "dialog.edit_title": "EDYCJA: {title}", "dialog.select": "↖ Zaznacz", "dialog.selected_count": "↖ Zaznaczono: {count}", @@ -680,9 +832,30 @@ "dxf.progress.write": "Zapisywanie DXF (5/5)", "dxf.tolerance": "Tolerancja krzywych", "dxf.tolerance_help": "Tylko widoczne bryły. Krzywe są przybliżane odcinkami. Mniejsza tolerancja daje dokładniejsze krzywe, ale zajmuje więcej czasu i pamięci.", - "expression, e.g. 25 mm": "wyrażenie, np. 25 mm", + "file_load.built": "Dotąd zbudowano: {built} z {total} elementów.", + "file_load.converting": "Konwertowanie bryły {done} z {total}", + "file_load.inserting": "Wstawianie geometrii", + "file_load.opening": "Otwieranie projektu", + "file_load.preparing_thumbnail": "Przygotowywanie miniatury...", + "file_load.preparing_view": "Przygotowywanie widoku...", + "file_load.preview_note": "Zapisany podgląd. Geometria jest sprawdzana przed edycją.", + "file_load.reading": "Odczytywanie pliku...", + "file_load.reading_percent": "Odczytywanie pliku... {percent}%", + "file_load.rebuilding": "Przebudowa elementu {done} z {total}", + "file_load.recovering": "Odzyskiwanie projektu", + "file_load.stopping": "Oczekiwanie na zatrzymanie poprzedniej operacji...", + "file_load.waiting": "Oczekiwanie na operację na pliku", "fits the face, e.g. M8": "pasuje do ściany, np. M8", "from the rule": "z reguły", + "help.apache": "Licencja Apache 2.0", + "help.attributions": "Uznanie autorstwa (ATTRIBUTION.md)", + "help.build": "Wersja {version} · commit {commit} · zbudowano {date}", + "help.font_details": "Interfejs używa wbudowanych czcionek egui (Ubuntu Light i Hack na licencjach Ubuntu Font Licence oraz MIT/Bitstream Vera; Noto Emoji i czcionka ikon emoji na licencjach OFL i MIT). Tekst szkicu używa Liberation Sans (SIL OFL 1.1). Opcjonalny pakiet czcionek The Crafting Apps, craft-fonts (BIZ UDPGothic, Shippori Mincho, BIZ UDMincho, Noto Sans CJK SC, Noto Sans Arabic; SIL OFL 1.1), nie jest dołączany do kompilacji SolidCraft.", + "help.fonts": "Czcionki", + "help.licences": "Licencje", + "help.mit": "Licencja MIT", + "help.notice": "NOTICE", + "help.third_party": "Licencje stron trzecich", "home.documentation": "Dokumentacja", "home.in_this_browser": "w tej przeglądarce", "home.missing": "brak", @@ -708,13 +881,51 @@ "install.menu": "Zainstaluj aplikację…", "install.steps_intro": "Safari instaluje aplikacje internetowe z własnych menu:", "install.title": "Zainstaluj SolidCraft", + "issue.body_label": "Treść zgłoszenia", + "issue.note_image_copied": "Wklej obraz do szkicu na GitHubie lub zapisz plik PNG, jeśli kopiowanie obrazu jest niedostępne.", + "issue.note_opened": "Przejrzyj szkic na GitHubie i dołącz zrzut ekranu. Przycisk Submit new issue na GitHubie publikuje zgłoszenie.", + "issue.note_opened_copied": "Skopiowano raport. Wklej go do szkicu na GitHubie, dołącz zrzut ekranu, a następnie kliknij Submit new issue na GitHubie.", + "issue.note_removed": "Usunięto zrzut ekranu z tego szkicu.", + "issue.note_report_copied": "Skopiowano raport. W razie potrzeby wklej go do szkicu na GitHubie.", + "issue.note_save_failed": "Nie udało się zapisać zrzutu ekranu: {error}", + "issue.note_saved": "Zapisano zrzut ekranu. Dołącz plik PNG w szkicu na GitHubie.", + "issue.save_screenshot": "Zapisz zrzut ekranu…", "joint.from_bodies_hint": "Każda wybrana bryła trafia do nowego, własnego komponentu i pozostaje na swoim miejscu.", "joint.one_body": "Oba wybory leżą na {body}. Drugi wybierz na innej części.", "joint.one_component": "Te części są bryłami jednego komponentu: {bodies}. Złącze porusza jeden komponent względem drugiego, więc każda część potrzebuje własnego komponentu.", + "keymap.command_id": "ID polecenia", + "keymap.empty": "Brak pasujących poleceń", + "keymap.use_anyway": "Mimo to użyj tutaj {key}", + "manage.appearance_hint": "Wybierz wygląd dla zaznaczenia lub przeciągnij próbkę na bryłę albo ścianę.", + "manage.assign_hint": "Wybierz bryły i ich regułę projektowania części z tworzyw sztucznych.", + "manage.config_hint": "Edytuj wiersze, kolumny i reguły konfiguracji, a następnie aktywuj wiersz lub wyświetl jego podgląd.", + "manage.empty": "Brak pasujących wierszy.", + "manage.material_hint": "Wybierz bryły i ich materiał fizyczny.", + "manage.parameters_hint": "Edytuj wyrażenia i jednostki. Zmiany są stosowane po naciśnięciu Enter lub opuszczeniu pola.", + "manage.rules_hint": "Wybierz regułę do edycji lub utwórz nową. Potwierdź, aby zapisać regułę.", + "measure.at": "W punkcie", + "measure.item": "Element {number}", + "messages.ago_h": "{n} godz. temu", + "messages.ago_min": "{n} min temu", + "messages.ago_s": "{n} s temu", + "messages.chip_hint": "Kliknij, aby zobaczyć wszystkie komunikaty tej sesji", + "messages.clear": "Wyczyść", + "messages.copy_all": "Kopiuj wszystko", + "messages.menu": "Komunikaty…", + "messages.none": "Brak komunikatów.", + "messages.title": "Komunikaty", "motion.checked_to": "Sprawdzono tylko do kroku {step}: sprawdzanie wyczerpało swój budżet obliczeń", "motion.collision": "{a} · {b}: kroki {steps}", + "motion.delete_key": "Usuń klatkę kluczową", "motion.duration_hint": "sekundy (puste: na krok)", + "motion.key_here": "Wstaw klatkę kluczową tutaj", + "motion.key_here_hint": "Dodaj klatkę kluczową w tym kroku z bieżącą wartością złącza", "motion.no_collisions": "Brak kolizji w trakcie badania", + "motion.step_back": "Krok wstecz", + "motion.step_forward": "Krok naprzód", + "motion.to_end": "Na koniec", + "motion.to_start": "Na początek", + "motion.track_name": "Ścieżka {number}", "nav.touchpad.help": "Przytrzymaj Shift i poruszaj wskaźnikiem, aby przesuwać; przytrzymaj Alt/Option i poruszaj nim, aby obracać widok. Przycisk myszy nie jest potrzebny. Przewijanie w pionie powiększa.", "nav.touchpad.label": "Touchpad", "nav.touchpad.orbit": "Obracanie widoku (przytrzymaj Alt/Option i poruszaj; bez przycisku myszy)", @@ -723,11 +934,13 @@ "nav.touchpad.zoom": "Powiększanie (przewijanie w pionie lub szczypanie)", "needs two joints": "wymaga dwóch złączy", "new configuration": "nowa konfiguracja", - "new name": "nowa nazwa", "new parameter": "nowy parametr", + "no hole": "bez otworu", "no interference": "brak kolizji", "no joint that moves yet": "brak jeszcze ruchomego złącza", "no picture": "brak obrazu", + "none": "brak", + "parts.automatic_name": "automatycznie", "pattern.alignment_2": "Wyrównanie 2", "pattern.alignment_hint": "Liczba obejmuje oryginał. Wyśrodkuj rozkłada kopie po obu stronach; Odwróć wybiera stronę z dodatkową kopią przy parzystej liczbie.", "pattern.direction_1": "Kierunek 1", @@ -735,12 +948,19 @@ "pattern.flip_direction": "Odwróć kierunek", "pick a hole to seat it, or OK places it at the origin": "wybierz otwór, aby go osadzić, lub OK umieszcza go w początku układu", "pick one or two vertices, edges or faces": "wybierz jeden lub dwa wierzchołki, krawędzie lub ściany", + "prefs.cpu": "CPU (programowo)", + "prefs.minutes_suffix": " min", + "properties.title": "Właściwości: {name}", + "recovery.days_ago": "{count} dni temu", + "recovery.detail": "{file} · elementy: {features} · autozapis {when}", + "recovery.hours_ago": "{count} godz. temu", + "recovery.just_now": "przed chwilą", + "recovery.min_ago": "{count} min temu", + "recovery.never_saved": "nigdy nie zapisano", "render.background": "Tło sceny", "render.fit": "Dopasuj produkt", - "render.image_cancel": "Anuluj renderowanie", "render.image_cancelled": "Anulowano renderowanie", "render.image_cancelling": "Anulowanie", - "render.image_check": "Sprawdź zlecenie renderowania", "render.image_completed": "Obraz gotowy do eksportu", "render.image_encoding": "Kodowanie PNG", "render.image_export": "Eksportuj PNG", @@ -787,6 +1007,19 @@ "sample.plate.name": "Przykładowa płyta", "sample.vents.about": "Rowki w szyku prostokątnym: wiersze, kolumny i rozstaw są parametrami", "sample.vents.name": "Płyta wentylacyjna", + "search.command_keys": "Enter uruchom Shift+Enter uruchom i zostaw otwarte Esc zamknij", + "search.commands": "Polecenia", + "search.design": "W tym projekcie", + "search.feature": "Element", + "search.invalid": "Nieprawidłowe", + "search.keys": "↑ ↓ wybierz Enter uruchom Tab uzupełnij nazwę Esc zamknij", + "search.no_match": "Żadne polecenie nie pasuje do „{query}”", + "search.parameter": "Parametr", + "search.recent": "Ostatnie", + "search.run": "Uruchom polecenie", + "search.suggest": "Czy chodziło o {label}?", + "search.try": "Wpisz nazwę polecenia, element tego projektu lub parametr. Aby uruchomić polecenie z wartościami, wpisz jego identyfikator i obiekt JSON: {example}", + "search.valid": "Prawidłowe", "settings.display_quality_note": "Wyższe poziomy rysują zakrzywione ściany i krawędzie gładziej, ale siatka powstaje dłużej. Zmienia się tylko widok, nigdy projekt ani eksport.", "settings.frame_rate_note": "Pokazuje liczbę klatek na sekundę w prawym dolnym rogu widoku. Gdy jest włączone, widok odświeża się bez przerwy.", "settings.measure_axis_distances": "Pokaż odległości X/Y/Z", @@ -797,23 +1030,37 @@ "settings.reset_intro": "Te ustawienia nie działają na tym komputerze i uniemożliwiłyby uruchomienie SolidCraft, więc zostały zmienione:", "settings.reset_title": "Zmieniono ustawienia", "settings.supersampling_note": "Rysuje widok w wyższej rozdzielczości i go zmniejsza: gładsze krawędzie, linie i siatka na ekranach poniżej 4K. Kosztuje czas GPU: ok. 2,25× więcej pikseli przy 1,5× i 4× przy 2×.", + "shortcut.json_error": "parametry muszą być w formacie JSON: {error}", + "shortcut.no_command": "nie ma polecenia `{id}`; tekst przed JSON musi być identyfikatorem polecenia", + "shortcut.pin": "Przypnij na górze pola S", + "shortcut.unpin": "Odepnij", "sketch.degrees_of_freedom": "Stopnie swobody: {count}", + "sketch.dof_left": "Pozostałe stopnie swobody: {count}", + "sketch.dof_left_one": "Pozostał {count} stopień swobody", "sketch.draw_curves": "Rysuj jako {linetype}", "sketch.make_selection": "Zamień zaznaczenie na {linetype}", "sketch.open_ends": "Otwarte: {count}", "sketch.untied_ends": "Niezwiązane: {count}", + "sketch_panel.attached": "Dołączony do {body} / {path}", + "sketch_panel.author": "Pierwotne położenie: {path}", + "sketch_panel.dimension_hint": "Wprowadź wartość lub wyrażenie, a następnie naciśnij OK.", + "sketch_panel.move_hint": "Wprowadź odległości i kąt, a następnie naciśnij OK.", + "sketch_panel.redefine_title": "{command}: {name}", + "sketch_panel.sheet_attachment": "Dołączony do płaskiej ściany bryły blaszanej; podąża za tym panelem przy zmianach blachy.", + "sketch_panel.text_hint": "Edytuj tekst i jego położenie, a następnie naciśnij OK.", + "sketch_panel.use_plane": "Użyj płaszczyzny {plane}", "sketch_text.align_center": "Do środka", "sketch_text.align_left": "Do lewej", "sketch_text.align_right": "Do prawej", "sketch_text.bold": "Pogrubienie", "sketch_text.builtin_font": "{family} (wbudowana)", - "sketch_text.font_search": "Szukaj czcionek", "sketch_text.italic": "Kursywa", "sketch_text.loading_fonts": "Wyszukiwanie zainstalowanych czcionek…", "sketch_text.on_path": "Tekst biegnie wzdłuż ścieżki: krzywa go rozmieszcza", "sketch_text.path_clear": "Zdejmij tekst z krzywej", "sketch_text.path_hint": "Krzywa szkicu, wzdłuż której biegnie tekst: kliknij tutaj, a potem krzywą", "sketch_text.use_font_file": "Użyj pliku czcionki {path}", + "solid": "bryła", "the parts library is not available": "biblioteka części jest niedostępna", "thread.automatic_size": "Rozmiar automatyczny", "thread.designation": "Oznaczenie", @@ -825,7 +1072,9 @@ "timeline.rename_group": "Zmień nazwę folderu funkcji", "timeline.reorder_many": "Zmień kolejność funkcji", "timeline.ungroup": "Usuń foldery funkcji", + "to the face": "do ściany", "to the next face": "do następnej ściany", + "toolbar.customize_note": "Karta {tab}. Zaznacz polecenie, aby dodać jego przycisk do paska narzędzi. Możesz też przeciągnąć wiersz z listy rozwijanej panelu na pasek narzędzi, przeciągnąć przycisk poza pasek, aby go usunąć, lub użyć pinezki w wierszu listy rozwijanej.", "toolbar.image": "OBRAZ", "toolbar.render": "RENDEROWANIE", "toolbar.render_scene": "SCENA", @@ -834,18 +1083,21 @@ "trace.stopped_by_loop": "Kończy się na próbce {sample}: pętla przez {joint} nie może się bardziej zamknąć", "ui.1_degree_of_freedom": "1 stopień swobody", "ui.3d_mouse_speed": "Czułość myszy 3D", - "ui.3d_mouse_windows": "Mysz 3D", "ui.3d_sketch": "Szkic 3D", - "ui.about": "O programie", "ui.activate": "Aktywuj", "ui.active_component": "Aktywny komponent", + "ui.add_configuration": "Dodaj konfigurację", + "ui.add_parameter": "Dodaj parametr", "ui.agent_chat": "Czat z agentem", + "ui.agent_chat_add": "Załącz pliki", + "ui.agent_chat_add_file": "Wybierz plik…", "ui.agent_chat_allow": "Zezwól", "ui.agent_chat_allowed": "Zezwolono", "ui.agent_chat_answered": "Odpowiedź: {option}", "ui.agent_chat_approval": "Zezwolić agentowi na to działanie?", "ui.agent_chat_attach_view": "Dołącz widok", "ui.agent_chat_attach_view_tip": "Wyślij z wiadomością obraz bieżącego widoku", + "ui.agent_chat_attachable": "Obrazy, pliki PDF, tekstowe i CAD", "ui.agent_chat_auth_agent": "Zaloguj się przez {name}", "ui.agent_chat_auth_env": "Ustaw {vars} w swoim środowisku i uruchom ponownie SolidCraft.", "ui.agent_chat_auth_needed": "Agent prosi o zalogowanie. Logujesz się w samym agencie; SolidCraft nigdy nie widzi Twojego hasła ani kluczy.", @@ -868,9 +1120,30 @@ "ui.agent_chat_dock": "Zadokuj w panelu bocznym", "ui.agent_chat_dock_left": "Zadokuj po lewej", "ui.agent_chat_dock_right": "Zadokuj po prawej", + "ui.agent_chat_drop_hint": "Upuść, aby dołączyć do następnej wiadomości", "ui.agent_chat_edit": "Edytuj", "ui.agent_chat_exited": "Agent się zatrzymał.", "ui.agent_chat_failed_start": "Nie udało się uruchomić agenta: {error}", + "ui.agent_chat_file_cad_not_read": "{name}: plik CAD jest importowany do projektu, a nie odczytywany", + "ui.agent_chat_file_empty_picture": "{name}: pusty obraz", + "ui.agent_chat_file_error": "{name}: {error}", + "ui.agent_chat_file_heic": "{name}: obrazy HEIC nie mogą być tu odczytane; najpierw wyeksportuj je jako JPEG lub PNG", + "ui.agent_chat_file_importing": "Importowanie do projektu…", + "ui.agent_chat_file_kinds": "{name}: można załączać obrazy (PNG, JPEG, GIF, WebP, BMP, TIFF), pliki tekstowe (także SVG) i pliki CAD (STEP, IGES, FreeCAD, Rhino, STL, 3MF, OBJ, glTF)", + "ui.agent_chat_file_loading": "Odczytywanie pliku…", + "ui.agent_chat_file_not_a_file": "{name}: to nie jest plik", + "ui.agent_chat_file_not_a_picture": "{name}: to nie jest obraz", + "ui.agent_chat_file_not_utf8": "{name}: to nie jest tekst UTF-8", + "ui.agent_chat_file_picture_too_big": "{name}: obraz może mieć najwyżej {max} MB", + "ui.agent_chat_file_text_too_big": "{name}: plik tekstowy może mieć najwyżej {max} KB", + "ui.agent_chat_file_too_large": "{name}: za duży", + "ui.agent_chat_file_too_large_to_send": "{name}: za duży do wysłania, nawet po pomniejszeniu", + "ui.agent_chat_file_unreadable_picture": "{name}: obraz, którego nie można odczytać", + "ui.agent_chat_files": "Pliki: {files}", + "ui.agent_chat_files_left_out": "Do jednej wiadomości można dołączyć najwyżej {max} plików; pominięto: {files}", + "ui.agent_chat_files_loading": "Oczekiwanie na odczytanie plików", + "ui.agent_chat_files_max": "Najwyżej {max} plików w jednej wiadomości", + "ui.agent_chat_import_failed": "{name}: import się nie powiódł: {error}", "ui.agent_chat_intro": "Rozmawiaj z agentem programistycznym, którego już używasz, lub z wybranym punktem końcowym modelu. Pracuje on na otwartym projekcie za pomocą narzędzi SolidCraft: jego zmiany są widoczne na bieżąco, a cofa się je jednym krokiem na wiadomość. To, co może robić bez pytania, ustawisz w Preferencje > AI.", "ui.agent_chat_key_in_env": "klucz ustawiony", "ui.agent_chat_left": "Lewa", @@ -879,20 +1152,23 @@ "ui.agent_chat_model_tip": "Model używany przez agenta. Twój wybór jest zapamiętywany dla tego agenta.", "ui.agent_chat_new": "Nowy czat", "ui.agent_chat_new_confirm": "Rozpocząć nowy czat? Bieżący zostanie wyczyszczony.", - "ui.agent_chat_new_yes": "Nowy czat", + "ui.agent_chat_next_picture": "Następny obraz", "ui.agent_chat_no_cli": "Nie znaleziono solidcraft-cli obok aplikacji, więc agent nie ma dostępu do projektu.", "ui.agent_chat_no_control": "Punkt końcowy czatu z agentem się nie uruchomił, więc agent nie ma dostępu do projektu.", "ui.agent_chat_no_images": "Ten agent nie przyjmuje obrazów", + "ui.agent_chat_no_picture": "W schowku nie ma obrazu", "ui.agent_chat_none_found": "Nie znaleziono agenta programistycznego. Zainstaluj jeden z poniższych, a potem naciśnij Odśwież:", "ui.agent_chat_none_found_short": "Nie znaleziono agenta", "ui.agent_chat_not_installed": "Nie zainstalowano", "ui.agent_chat_not_signed_in": "nie zalogowano", "ui.agent_chat_own_window": "Osobne okno", + "ui.agent_chat_paste_picture": "Wklej obraz", "ui.agent_chat_permission": "Agent prosi o uruchomienie: {title}", "ui.agent_chat_pick": "Agent", "ui.agent_chat_placeholder": "Poproś agenta o zmianę projektu…", "ui.agent_chat_placeholder_busy": "Zakolejkuj wiadomość na czas, gdy agent skończy (Ctrl+Enter: wyślij teraz)", "ui.agent_chat_pop_out": "Otwórz w osobnym oknie, które możesz przenieść na inny ekran", + "ui.agent_chat_previous_picture": "Poprzedni obraz", "ui.agent_chat_privacy": "Nic nie trafia nigdzie poza uruchomionym przez Ciebie agentem, na Twoim własnym koncie.", "ui.agent_chat_privacy_note": "SolidCraft nigdzie niczego nie wysyła: uruchomiony przez Ciebie agent łączy się z własną usługą na Twoim koncie. SolidCraft nigdy nie widzi ani nie przechowuje klucza ani hasła.", "ui.agent_chat_queue": "Kolejka", @@ -902,6 +1178,8 @@ "ui.agent_chat_refresh": "Odśwież", "ui.agent_chat_refused": "Niedozwolone dla agenta: {reason}", "ui.agent_chat_remove": "Usuń z kolejki", + "ui.agent_chat_remove_file": "Usuń z tej wiadomości", + "ui.agent_chat_remove_imported": "Usuń z tej wiadomości; część pozostaje w projekcie (Cofnij ją usuwa)", "ui.agent_chat_right": "Prawa", "ui.agent_chat_save": "Zapisz", "ui.agent_chat_send": "Wyślij", @@ -946,6 +1224,7 @@ "ui.ai_bad_url": "Wpisz adres URL zaczynający się od http:// lub https://", "ui.ai_base_url": "Bazowy URL", "ui.ai_button": "AI", + "ui.ai_command_hint": "my-agent --acp", "ui.ai_copy_suffix": "kopia", "ui.ai_custom_url": "Niestandardowy URL", "ui.ai_default": "Domyślny", @@ -966,8 +1245,10 @@ "ui.ai_mode_edits_note": "Polecenia modelowania działają bez pytania; zapisywanie, otwieranie, eksport oraz inne operacje na plikach lub nieodwracalne nadal wymagają pytania.", "ui.ai_mode_global": "Jak ustawiono powyżej", "ui.ai_model": "Model", + "ui.ai_model_hint": "qwen3:14b", "ui.ai_modes_scope": "Te ustawienia dotyczą narzędzi SolidCraft. Własne narzędzia agenta (jego powłoka, edycja plików) podlegają własnemu trybowi agenta, który wybierasz w nagłówku panelu czatu, gdy agent ma tryby.", "ui.ai_name": "Nazwa", + "ui.ai_name_hint": "Mój agent", "ui.ai_need_command": "Wpisz polecenie uruchamiające agenta", "ui.ai_need_model": "Wpisz nazwę modelu", "ui.ai_no_answer": "Agent nie odpowiedział na czas", @@ -998,7 +1279,10 @@ "ui.ai_toolbar_button": "Pokaż przycisk na pasku narzędzi", "ui.ai_toolbar_button_note": "Przycisk AI na prawym końcu paska narzędzi. Ctrl+Shift+A i menu Widok nadal otwierają panel.", "ui.ai_undo_tip": "Cofnij jednym krokiem wszystko, co agent zmienił w ramach tej wiadomości", + "ui.ai_url_hint": "https://example.com/v1", "ui.all": "Wszystko", + "ui.ambient_occlusion": "Okluzja otoczenia", + "ui.ambient_occlusion_help": "Miękkie cieniowanie tam, gdzie stykają się nieprzezroczyste powierzchnie. Wymaga widoku GPU.", "ui.analysis": "Analiza", "ui.angle": "Kąt", "ui.angle_decimals": "Miejsca dziesiętne kąta", @@ -1009,15 +1293,23 @@ "ui.anti_aliasing": "Wygładzanie krawędzi", "ui.apply": "Zastosuj", "ui.arc": "Łuk", - "ui.assemble": "Złożenie", + "ui.assistant": "Asystent", + "ui.assistant_waiting": "Oczekujące zatwierdzenia: {count}", "ui.autosave_every": "Autozapis co", "ui.axes": "Osie", "ui.axis": "Oś", + "ui.back": "Wstecz", "ui.base_point": "Punkt bazowy", "ui.blocked": "Zablokowane", "ui.bodies": "Bryły", + "ui.bodies_all_if_none": "Bryły (wszystkie, jeśli brak)", "ui.box": "Prostopadłościan", "ui.break": "Podziel", + "ui.browser_bodies_one": "{count} bryła", + "ui.browser_bodies_other": "{count} brył", + "ui.browser_collapse": "Zwiń przeglądarkę", + "ui.browser_expand": "Rozwiń przeglądarkę", + "ui.browser_title": "Przeglądarka", "ui.calibrate": "Kalibruj", "ui.cancel": "Anuluj", "ui.canvases": "Płótna", @@ -1027,7 +1319,6 @@ "ui.chamfer": "Faza", "ui.chamfer_type": "Typ fazy", "ui.change_workspace": "Zmień środowisko pracy", - "ui.chord_length": "Długość cięciwy", "ui.circle": "Okrąg", "ui.circular_pattern": "Szyk kołowy", "ui.clear": "Wyczyść", @@ -1060,11 +1351,9 @@ "ui.command_done": "Wykonano: {command}", "ui.command_palette_hint": "Wpisz polecenie, np. {example} — lub naciśnij S, aby wyszukać", "ui.concentric": "Współśrodkowość", - "ui.configurations": "Konfiguracje", "ui.conic_curve": "Krzywa stożkowa", "ui.constant": "Stały", "ui.constraints_conflict": "Konflikt wiązań", - "ui.construct": "Konstrukcja", "ui.construction": "Konstrukcyjne", "ui.context_menu": "Menu kontekstowe", "ui.continuity_g0": "G0 załamanie", @@ -1090,7 +1379,6 @@ "ui.cylinder": "Walec", "ui.dark": "Ciemny", "ui.default_modelling_orientation": "Domyślna orientacja modelowania", - "ui.degrees_of_freedom": "stopnie swobody", "ui.delete": "Usuń", "ui.depth": "Głębokość", "ui.design": "Projekt", @@ -1132,7 +1420,6 @@ "ui.equivalent_radius": "Promień zastępczy", "ui.expand": "Rozwiń", "ui.exportDxf": "Eksportuj DXF…", - "ui.export_ellipsis": "Eksportuj...", "ui.export_ellipsis_keymap": "Eksportuj…", "ui.export_keymap_tip": "Klawisze, ulubione z okna S i pasek narzędzi, jako plik", "ui.extend": "Wydłuż", @@ -1156,8 +1443,14 @@ "ui.frame_rate": "Liczba klatek", "ui.front": "Przód", "ui.fully_constrained": "W pełni związany", + "ui.function": "Funkcja", "ui.general": "Ogólne", "ui.graphics": "Grafika", + "ui.graphics_custom": "Własne", + "ui.graphics_performance": "Wydajność", + "ui.graphics_preset": "Ustawienie graficzne", + "ui.graphics_preset_help": "Jakość: okluzja otoczenia, dokładna jakość wyświetlania i adaptacyjne nadpróbkowanie 2×. Wydajność: bez okluzji otoczenia, normalna jakość wyświetlania i nadpróbkowanie wyłączone. Ręczne zmiany pokazują Własne. MSAA pozostaje bez zmian.", + "ui.graphics_quality": "Jakość", "ui.grid_follows_view": "Siatka podąża za widokiem", "ui.grid_follows_view_hint": "Widoki boczne pokazują siatkę na pionowej płaszczyźnie zwróconej do nich zamiast na podłożu", "ui.ground_shadow": "Cień na podłożu", @@ -1186,6 +1479,7 @@ "ui.heading_home": "WIDOK GŁÓWNY", "ui.heading_insert": "WSTAW", "ui.heading_inspect": "SPRAWDŹ", + "ui.heading_interference": "INTERFERENCJA", "ui.heading_loft": "WYCIĄGNIĘCIE ZŁOŻONE", "ui.heading_make": "WYTWARZANIE", "ui.heading_measure": "POMIAR", @@ -1216,7 +1510,6 @@ "ui.heading_sheet_metal": "BLACHA", "ui.heading_shell": "SKORUPA", "ui.heading_sketch": "SZKIC", - "ui.heading_sketch_palette": "PALETA SZKICU", "ui.heading_sketch_scale": "SKALA SZKICU", "ui.heading_solid": "BRYŁA", "ui.heading_sphere": "SFERA", @@ -1235,6 +1528,7 @@ "ui.hideOrigin": "Ukryj początek układu", "ui.hidePlanes": "Ukryj płaszczyzny", "ui.hideProfile": "Ukryj profil", + "ui.history_title": "Historia", "ui.hole": "Otwór", "ui.hole_tap_type": "Typ gwintu otworu", "ui.hole_type": "Typ otworu", @@ -1254,11 +1548,12 @@ "ui.length_decimals": "Miejsca dziesiętne długości", "ui.light": "Jasny", "ui.line": "Linia", - "ui.linetype": "Rodzaj linii", "ui.lock": "Zablokuj", "ui.loft": "Wyciągnięcie złożone", "ui.look_at": "Patrz na", "ui.look_at_anim_desc": "Widok osi, Patrz na, Widok główny i Dopasuj", + "ui.manipulator_free_alt": "Swobodne przeciąganie manipulatora także z Alt/Option", + "ui.manipulator_free_alt_tip": "Wł.: Alt/Option lub Ctrl/Cmd na strzałkach wyciągnięcia / uchwytu wyłącza przyciąganie wartości. Wył.: tylko Ctrl/Cmd.", "ui.manufacture": "Wytwarzanie", "ui.material_review.axes": "Osie lokalne materiału; nie przypisano orientacji bryły.", "ui.material_review.claims": "Źródła i licencje to niezweryfikowane deklaracje. Brakujące wartości pozostają nieznane.", @@ -1286,10 +1581,8 @@ "ui.mesh_format_3mf": "3MF", "ui.mesh_format_3mf_tagged": "3MF ze znacznikami ścian", "ui.mesh_format_stl": "STL", - "ui.midpoint": "Punkt środkowy", "ui.mirror": "Lustro", "ui.mirror_line": "Linia odbicia", - "ui.modify": "Modyfikuj", "ui.move": "Przesuń", "ui.multiple": "Wiele", "ui.named_views": "Widoki nazwane", @@ -1298,6 +1591,7 @@ "ui.newSketchGroup": "Nowa grupa szkiców", "ui.new_body": "Nowa bryła", "ui.new_design": "Nowy projekt", + "ui.no_geometry_yet": "Brak jeszcze geometrii", "ui.no_slicer_found": "Nie znaleziono slicera", "ui.normal": "Normalny", "ui.normalConstruction": "Zwykła / konstrukcyjna", @@ -1309,7 +1603,6 @@ "ui.offset_plane": "Płaszczyzna odsunięta", "ui.one_side": "Jedna strona", "ui.open": "Otwórz", - "ui.open_ellipsis": "Otwórz...", "ui.open_ends_tip": "Niczego nie dotyka", "ui.open_preferences": "Otwórz preferencje", "ui.open_recent": "Otwórz ostatnie", @@ -1319,12 +1612,14 @@ "ui.orbit_around": "Obracaj wokół", "ui.orientation": "Orientacja", "ui.origin": "Początek układu", - "ui.palette_points": "Punkty", - "ui.palette_profile": "Profil", + "ui.palette_construction_mode": "Tryb konstrukcyjny (X)", + "ui.palette_more": "Więcej", + "ui.palette_sketch_options": "Opcje szkicu", "ui.pan": "Przesuwanie", "ui.pan_zoom_orbit": "Przesuwanie, powiększanie, obracanie", "ui.parallel": "Równoległość", "ui.parameters": "Parametry", + "ui.part_size_shared": "Przebudowuje część, zastępując wszystkie dodane elementy. Wszystkie wystąpienia tego komponentu zostaną zaktualizowane.", "ui.paste": "Wklej", "ui.path": "Ścieżka", "ui.pattern_on_path": "Szyk wzdłuż ścieżki", @@ -1336,6 +1631,12 @@ "ui.placement": "Umiejscowienie", "ui.plane": "Płaszczyzna", "ui.plane_at_angle": "Płaszczyzna pod kątem", + "ui.plugins": "Wtyczki", + "ui.plugins_desktop": "Wtyczki są dostępne w aplikacji desktopowej.", + "ui.plugins_empty": "Brak zainstalowanych wtyczek.", + "ui.plugins_note": "Każda wtyczka to folder w {path} z plikiem plugin.json. SolidCraft odczytuje ten plik i nie uruchamia żadnego kodu z folderu. Wyłączenie wtyczki nie odinstalowuje jej.", + "ui.plugins_skipped": "Nie udało się odczytać folderów: {count}.", + "ui.plugins_version": "{version}", "ui.point": "Punkt", "ui.point_under_the_cursor": "Punkt pod kursorem", "ui.points": "Punkty", @@ -1354,13 +1655,17 @@ "ui.quit": "Zakończ", "ui.radial_context_menu": "Promieniste menu kontekstowe", "ui.radius": "Promień", - "ui.radius_type": "Typ promienia", "ui.rail": "Prowadnica", "ui.rail_fit": "Dopasowanie do prowadnicy", "ui.reachable": "Osiągalne", "ui.rectangle": "Prostokąt", "ui.rectangular_pattern": "Szyk prostokątny", "ui.redo": "Ponów", + "ui.relink_design_changed": "Zespół zmienił się podczas wyboru źródła. Uruchom ponownie Połącz ponownie ze źródłem.", + "ui.relink_done": "Ponownie połączono źródło dla wszystkich wystąpień.", + "ui.relink_not_linked": "Ten komponent nie jest połączony z projektem źródłowym.", + "ui.relink_select_one": "Najpierw zaznacz jeden połączony komponent lub jedno z jego wystąpień.", + "ui.relink_source_all": "Połącz ponownie ze źródłem (wszystkie wystąpienia)…", "ui.removeFromToolbar": "Usuń z paska narzędzi", "ui.removeSection": "Usuń przekrój", "ui.render": "Renderowanie", @@ -1376,10 +1681,12 @@ "ui.reverse_horizontal_pan_tip": "Przewijanie w poziomie dwoma palcami i kółko kciukowe przesuwają w przeciwną stronę", "ui.reverse_zoom_direction": "Odwróć kierunek powiększania", "ui.revolve": "Obrót", + "ui.ribbon_exit": "Wyjdź", + "ui.ribbon_pin_footer": "Przypięte polecenia są widoczne na wstążce. Najedź na wiersz, aby go przypiąć lub odpiąć.", + "ui.ribbon_workspace": "Przestrzeń robocza", "ui.right": "Prawy", "ui.save": "Zapisz", "ui.save_as": "Zapisz jako", - "ui.save_as_ellipsis": "Zapisz jako...", "ui.save_mesh_no_slicer": "Nie znaleziono slicera: wybierz Niestandardowy… i wskaż program slicera albo wyłącz Wyślij do slicera", "ui.save_mesh_pick_bodies": "Zaznacz bryły do zapisania", "ui.save_mesh_temp_failed": "Nie udało się utworzyć {folder}: {error}", @@ -1392,8 +1699,10 @@ "ui.select": "Zaznacz", "ui.selectOther": "Wybierz inny…", "ui.selectTangentChain": "Zaznacz łańcuch styczny", - "ui.select_other_hint": "Wybierz inny: przytrzymaj nieruchomo lewy przycisk na modelu (lub prawy przycisk › Wybierz inny…), aby wyświetlić wszystko pod kursorem; kliknij ponownie w tym samym miejscu, aby zaznaczyć kolejny obiekt.", "ui.selection": "Zaznaczenie", + "ui.selection_modifiers": "Modyfikatory zaznaczania", + "ui.selection_shift_add_only": "Shift+kliknięcie tylko dodaje", + "ui.selection_shift_add_only_tip": "Wł.: Shift dodaje elementy, Ctrl/Cmd przełącza. Wył. (domyślnie): Shift i Ctrl/Cmd przełączają.", "ui.send": "Wyślij", "ui.send_to_slicer": "Wyślij do slicera", "ui.sent_to_slicer": "Wysłano do {slicer}", @@ -1409,7 +1718,6 @@ "ui.show_constraints": "Wiązania", "ui.show_construction_geometries": "Geometria konstrukcyjna", "ui.show_dimensions": "Wymiary", - "ui.show_points": "Pokaż punkty", "ui.show_profile": "Pokaż profil", "ui.show_projected_geometries": "Geometria rzutowana", "ui.simple": "Prosty", @@ -1418,8 +1726,8 @@ "ui.sketch": "Szkic", "ui.sketch_dimension": "Wymiar szkicu", "ui.sketch_grid": "Siatka szkicu", + "ui.sketch_modifiers": "Modyfikatory szkicu", "ui.sketch_scale": "Skala szkicu", - "ui.sketch_status": "Stan szkicu", "ui.sketches": "Szkice", "ui.slice": "Przetnij", "ui.slicer": "Slicer", @@ -1429,8 +1737,34 @@ "ui.smooth_wheel_zoom": "Płynne powiększanie kółkiem", "ui.smooth_wheel_zoom_tip": "Wyłącz, aby każdy ruch kółka działał od razu, bez wygładzania", "ui.snap": "Przyciąganie", + "ui.space_mouse_calibrate": "Kalibruj…", + "ui.space_mouse_calibrate_tip": "Przesuwaj nakładkę zgodnie z poleceniami okna, aby SolidCraft nauczył się kierunku i zakresu każdej osi tej myszy 3D. Zapisywane dla tej myszy 3D.", + "ui.space_mouse_calibrate_title": "Kalibracja myszy 3D", + "ui.space_mouse_calibrated": "Skalibrowano", + "ui.space_mouse_calibration": "Kalibracja myszy 3D", + "ui.space_mouse_calibration_done": "Gotowe. Zapisz, aby używać kalibracji po każdym podłączeniu tej myszy 3D.", + "ui.space_mouse_calibration_no_response": "Jedna oś prawie się nie poruszyła, więc nie można jej skalibrować. Zacznij od nowa i za każdym razem wychylaj nakładkę mocniej.", + "ui.space_mouse_dead_zone": "Strefa martwa", + "ui.space_mouse_dead_zone_tip": "O ile trzeba wychylić nakładkę, zanim widok się poruszy, jako część pełnego wychylenia. Zwiększ, jeśli widok dryfuje przy nieruszanej nakładce.", + "ui.space_mouse_forget": "Zapomnij kalibrację", "ui.space_mouse_hint": "Przesuwaj i obracaj widok jednocześnie; w szkicach działa tylko przesuwanie i powiększanie.", "ui.space_mouse_navigate": "Nawiguj za pomocą SpaceNavigator / SpaceMouse", + "ui.space_mouse_none": "Nie znaleziono myszy 3D", + "ui.space_mouse_not_calibrated": "Nieskalibrowano", + "ui.space_mouse_reading": "Odczyt", + "ui.space_mouse_step_lift": "Unieś nakładkę, przytrzymaj, a następnie puść.", + "ui.space_mouse_step_press": "Wciśnij nakładkę w dół, przytrzymaj, a następnie puść.", + "ui.space_mouse_step_pull": "Pociągnij nakładkę do siebie, przytrzymaj, a następnie puść.", + "ui.space_mouse_step_push": "Popchnij nakładkę od siebie, przytrzymaj, a następnie puść.", + "ui.space_mouse_step_rest": "Zdejmij dłoń z nakładki i nie ruszaj jej.", + "ui.space_mouse_step_slide_left": "Przesuń nakładkę w lewo, przytrzymaj, a następnie puść.", + "ui.space_mouse_step_slide_right": "Przesuń nakładkę w prawo, przytrzymaj, a następnie puść.", + "ui.space_mouse_step_tilt_back": "Przechyl nakładkę do tyłu (przednia krawędź w górę), przytrzymaj, a następnie puść.", + "ui.space_mouse_step_tilt_forward": "Przechyl nakładkę do przodu (przednia krawędź w dół), przytrzymaj, a następnie puść.", + "ui.space_mouse_step_tilt_left": "Przechyl nakładkę w lewo (lewa krawędź w dół), przytrzymaj, a następnie puść.", + "ui.space_mouse_step_tilt_right": "Przechyl nakładkę w prawo (prawa krawędź w dół), przytrzymaj, a następnie puść.", + "ui.space_mouse_step_twist_clockwise": "Obróć nakładkę zgodnie z ruchem wskazówek zegara, przytrzymaj, a następnie puść.", + "ui.space_mouse_step_twist_counterclockwise": "Obróć nakładkę przeciwnie do ruchu wskazówek zegara, przytrzymaj, a następnie puść.", "ui.spacing": "Odstęp", "ui.spacing_2": "Odstęp 2", "ui.sphere": "Sfera", @@ -1438,12 +1772,15 @@ "ui.split_body": "Podziel bryłę", "ui.stand_up_tip": "Gdy plik STEP lub IGES otworzy się z osią Z w górę, proponuj obrót o ćwierć obrotu wokół osi X", "ui.start": "Start", - "ui.start_radius": "Promień początkowy", + "ui.start_over": "Zacznij od nowa", + "ui.start_page": "Strona startowa", "ui.stretch": "Rozciągnij", "ui.supersampling": "Supersampling (SSAA)", "ui.supersampling_adaptive": "Tylko gdy widok jest nieruchomy", "ui.supersampling_off": "Wyłączony (1×)", "ui.suppress": "Wygaś", + "ui.suppress_auto_snap": "Wyłącz automatyczne przyciąganie podczas rysowania / przeciągania", + "ui.suppress_auto_snap_note": "Domyślnie: Ctrl/Cmd lub Alt/Option wyłączają przyciąganie w szkicu. Wybierz jeden klawisz, aby to zawęzić.", "ui.sweep": "Przeciągnięcie", "ui.sweep_follow_direction": "Zgodnie z kierunkiem", "ui.sweep_keep_as_drawn": "Zachowaj jak narysowano", @@ -1486,13 +1823,24 @@ "ui.untitled": "Bez tytułu", "ui.up_axis_note": "Która oś wskazuje górę w widokach (widok osi, Widok główny, Patrz na). Projekty pozostają bez zmian.", "ui.updateToCurrentView": "Aktualizuj do bieżącego widoku", - "ui.variable": "Zmienny", "ui.view_centre": "Środek widoku", "ui.visual_shaded_hidden_edges": "Cieniowany z krawędziami niewidocznymi", "ui.visual_shaded_with_edges": "Cieniowany z krawędziami", "ui.visual_style": "Styl wizualny", "ui.visual_wireframe": "Model krawędziowy", "ui.workspace": "środowisko pracy", + "ui.workspace_animation_description": "Widoki rozstrzelone, badania ruchu i scenorysy", + "ui.workspace_available": "Dostępne", + "ui.workspace_current": "Bieżąca", + "ui.workspace_design_description": "Szkicuj, modeluj, składaj i sprawdzaj", + "ui.workspace_design_tabs": "Model · Powierzchnia · Złożenie · Wstaw · Sprawdź · Zarządzaj · Widok", + "ui.workspace_drawing_description": "Rysunki 2D z widokami, wymiarami i tabliczkami rysunkowymi", + "ui.workspace_footer": "Każda przestrzeń robocza działa na tym samym projekcie, historii i zaznaczeniu; zmieniają się tylko karty wstążki. Przełącznik jest zablokowany podczas edycji szkicu lub elementu.", + "ui.workspace_manufacture_description": "Cięcie na warstwy, ścieżki narzędzia i przygotowanie", + "ui.workspace_planned": "Planowane", + "ui.workspace_render_description": "Podgląd produktu, ustawienia sceny i renderowane obrazy", + "ui.workspace_render_tabs": "Scena · Obraz", + "ui.workspace_simulation_description": "Obciążenia, wiązania i wyniki", "ui.x_distance": "Odległość X", "ui.y_distance": "Odległość Y", "ui.y_up": "Oś Y w górę", @@ -1502,7 +1850,6 @@ "ui.zoom_to_the_cursor": "Powiększaj w stronę kursora", "update.available": "Dostępna jest wersja SolidCraft {version}", "update.button": "Aktualizuj", - "update.button_tip": "Dostępna jest wersja SolidCraft {version}", "update.button_version": "Aktualizuj do {version}", "update.check_automatically": "Automatycznie sprawdzaj aktualizacje", "update.check_now": "Sprawdź teraz", @@ -1534,5 +1881,6 @@ "update.title": "Dostępna aktualizacja", "update.up_to_date": "SolidCraft jest aktualny.", "update.update_now": "Aktualizuj teraz", - "update.you_have": "Masz wersję {version}." + "update.you_have": "Masz wersję {version}.", + "↑ ↓ choose · Enter / Tab complete · Esc dismiss": "↑ ↓ wybierz · Enter / Tab uzupełnij · Esc zamknij" } diff --git a/assets/locales/pt-BR.json b/assets/locales/pt-BR.json index eef1e243b..119c22c1f 100644 --- a/assets/locales/pt-BR.json +++ b/assets/locales/pt-BR.json @@ -3,10 +3,14 @@ "1. Open GitHub draft below, then paste the report copied to your clipboard.": "1. Abra o rascunho do GitHub abaixo e cole o relatório copiado para a área de transferência.", "1. Open GitHub draft below. Your title and report will be filled in.": "1. Abra o rascunho do GitHub abaixo. O título e o relatório serão preenchidos.", "2. Attach your screenshot: copy and paste it, or save and upload the PNG.": "2. Anexe a captura de tela: copie e cole, ou salve e envie o PNG.", + "2D": "2D", "3. Click Submit new issue on GitHub to send your report.": "3. Clique em Submit new issue no GitHub para enviar o relatório.", "A new configuration, a copy of the active one": "Uma nova configuração, cópia da ativa", - "AI": "IA", + "ARRANGE": "ORGANIZAR", "About SolidCraft": "Sobre o SolidCraft", + "Acceleration": "Aceleração", + "Access": "Acesso", + "Actions": "Ações", "Active": "Ativo", "Active rule": "Regra ativa", "Add": "Adicionar", @@ -14,8 +18,11 @@ "Add Mid Radius": "Adicionar raio intermediário", "Add Row": "Adicionar linha", "Add condition": "Adicionar condição", + "Add or edit rule": "Adicionar ou editar regra", + "Against": "Contra", "Alignment": "Alinhamento", "All Sketch Points": "Todos os pontos do esboço", + "All components": "Todos os componentes", "All open designs": "Todos os projetos abertos", "Allowed expressions, separated by semicolons": "Expressões permitidas, separadas por ponto e vírgula", "Also deletes": "Também exclui", @@ -25,19 +32,33 @@ "Applied Radius": "Raio aplicado", "Apply To": "Aplicar a", "Apply to selection": "Aplicar à seleção", + "Apply your appearance first. Exports assigned appearances and materials created in this design.": "Aplique a aparência primeiro. Exporta as aparências atribuídas e os materiais criados neste projeto.", "Arc length": "Comprimento do arco", "Area": "Área", + "As-Built": "Como construído", + "Assign Rule": "Atribuir regra", "Attachment": "Fixação", + "BLEND SURFACE": "SUPERFÍCIE DE TRANSIÇÃO", + "BOUNDARY SURFACE": "SUPERFÍCIE DE CONTORNO", "BROWSER": "NAVEGADOR", "Bend Line Position": "Posição da linha de dobra", "Bend Position": "Posição da dobra", "Bend Radius": "Raio de dobra", + "Bend Table": "Tabela de dobras", "Bends": "Dobras", + "Bodies": "Corpos", "Body": "Corpo", "Boundary": "Contorno", "Bounding box": "Caixa delimitadora", + "CHECK": "VERIFICAR", + "COMPONENTS": "COMPONENTES", + "CONFIGURATIONS": "CONFIGURAÇÕES", + "CONSTRAIN": "RESTRINGIR", + "CONTACT": "CONTATO", + "CONVERT": "CONVERTER", "CSV or JSON: updates existing parameters, adds new ones": "CSV ou JSON: atualiza parâmetros existentes e adiciona novos", "Capture All Positions": "Capturar todas as posições", + "Capture Pos.": "Capturar pos.", "Catch Direction": "Direção do encaixe", "Cells": "Células", "Center X": "Centro X", @@ -48,15 +69,20 @@ "Check collisions": "Verificar colisões", "Checked": "Marcado", "Choose a new plane. Sketch geometry and dimensions stay unchanged in its two-dimensional coordinates.": "Escolha um novo plano. A geometria e as cotas do esboço permanecem inalteradas em suas coordenadas bidimensionais.", + "Choose…": "Escolher…", + "Circular": "Circular", "Circumference": "Circunferência", "Close draft": "Fechar rascunho", "Collisions": "Colisões", "Colour": "Cor", + "Comment": "Comentário", "Component1": "Componente1", + "Config Table": "Tabela de config.", "Configuration": "Configuração", "Configuration rules": "Regras de configuração", - "Construction": "Construção", "Contact": "Contato", + "Contact Sets": "Conjuntos de contato", + "Contact sets": "Conjuntos de contato", "Continuity": "Continuidade", "Copy Error Message": "Copiar mensagem de erro", "Copy Warning Message": "Copiar mensagem de aviso", @@ -69,69 +95,98 @@ "Counterbore depth": "Profundidade do rebaixo", "Countersink angle": "Ângulo do escareado", "Create Issue — review draft": "Criar issue — revisar rascunho", + "Cross curves": "Curvas transversais", "Cube": "Cubo", "Current orthographic view (1:1 mm)": "Vista ortográfica atual (1:1 mm)", "Current perspective view": "Vista em perspectiva atual", + "Curv. Comb": "Pente de curv.", "Curvature (G2)": "Curvatura (G2)", "Curvature change (G3)": "Variação de curvatura (G3)", "Customize Toolbar": "Personalizar barra de ferramentas", + "Delete": "Excluir", "Delete all": "Excluir tudo", "Delete rule": "Excluir regra", "Delete the row": "Excluir a linha", "Delete the set": "Excluir o conjunto", - "Delete this parameter": "Excluir este parâmetro", "Density": "Densidade", + "Dependents": "Dependentes", "Designs you open or save appear here.": "Os projetos que você abrir ou salvar aparecem aqui.", "Determined by To Object. Choose Angle to edit the angular extent.": "Determinado por Até o objeto. Escolha Ângulo para editar a extensão angular.", "Direction": "Direção", "Discard": "Descartar", "Do not export hidden edges": "Não exportar arestas ocultas", + "Don't ask again": "Não perguntar novamente", "Double-click to rename": "Clique duas vezes para renomear", "Double-clicking the middle button in the view: Home (the home view, framing what is shown), Fit (frame what is shown, keeping the orientation) or nothing": "Clique duplo com o botão do meio na vista: Início (a vista inicial, enquadrando o que é mostrado), Ajustar (enquadra o que é mostrado, mantendo a orientação) ou nada", "Drive Joint": "Acionar junta", + "Duration": "Duração", "Edges": "Arestas", + "Edit": "Editar", "Edit Profile Sketch": "Editar esboço do perfil", "Enable rule": "Ativar regra", "Enabled": "Ativado", + "End bulge": "Abaulamento final", + "End continuity": "Continuidade final", "Explode": "Explodir", + "Explode Text": "Decompor texto", "Export Animation…": "Exportar animação…", + "Export CSV…": "Exportar CSV…", "Export Current View as DXF": "Exportar vista atual como DXF", "Export Current View as DXF…": "Exportar vista atual como DXF…", + "Export DXF": "Exportar DXF", "Export DXF…": "Exportar DXF…", + "Export JSON…": "Exportar JSON…", "Export hidden edges as dashed lines": "Exportar arestas ocultas como linhas tracejadas", + "Expression": "Expressão", "Extend to meet": "Estender até encontrar", "Extents": "Extensões", + "FILES": "ARQUIVOS", + "FLAT": "PLANIFICAÇÃO", "Face": "Face", "Face attachment lost": "Fixação à face perdida", "Faces": "Faces", "Faces / edges / vertices": "Faces / arestas / vértices", + "Fastener": "Fixador", + "Favorites": "Favoritos", "Favourite": "Favorito", + "Feature": "Recurso", "Files from many CAD programs have Y up, so they open lying on their back here (Z up).": "Arquivos de muitos programas CAD usam Y para cima, então abrem deitados aqui (Z para cima).", "Filter": "Filtro", "Find in Browser": "Localizar no navegador", - "Flat": "Plano", + "Finish": "Acabamento", + "Flat Pattern": "Planificação", "Flat size": "Tamanho planificado", "Follow camera (Look At sketches)": "Seguir a câmera (Olhar para os esboços)", "Follow the camera (Look At sketches)": "Seguir a câmera (Olhar para os esboços)", "Font": "Fonte", + "From Bodies": "A partir de corpos", "From edges": "Arestas de origem", "Full Length": "Comprimento total", + "Gap": "Folga", "Grid": "Grade", + "HISTORY": "HISTÓRICO", "Height": "Altura", "Hidden edges": "Arestas ocultas", "Holes": "Furos", "Holes (edges on them)": "Furos (arestas neles)", "Home view": "Vista inicial", + "Horiz./Vert.": "Horiz./Vert.", + "IMAGES": "IMAGENS", + "Import…": "Importar…", "In This Design": "Neste projeto", "In place (surfaces)": "No lugar (superfícies)", "In plane": "No plano", "Inside": "Dentro", "Interferes": "Interfere", + "Isocurve": "Isocurva", "Issue title": "Título da issue", + "JOINTS": "JUNTAS", "Joint Origin1": "Origem da junta1", "Keep (points on it)": "Manter (pontos sobre ela)", "Keep Tools": "Manter ferramentas", "Keep of the other surface": "Manter da outra superfície", + "LIBRARY": "BIBLIOTECA", + "LINKS": "VÍNCULOS", "Later": "Depois", "Leave it": "Deixar assim", "Legacy face attachment. Rebinding to a certified face creates an exact attachment.": "Fixação de face antiga. Vincular novamente a uma face certificada cria uma fixação exata.", @@ -139,55 +194,85 @@ "Length units": "Unidades de comprimento", "Letter Spacing": "Espaçamento entre letras", "Library": "Biblioteca", + "Library file": "Arquivo de biblioteca", "Line Spacing": "Espaçamento entre linhas", + "Local library": "Biblioteca local", "Loop": "Laço", + "MANAGE": "GERENCIAR", + "MATERIALS": "MATERIAIS", + "MODEL": "MODELO", + "MOTION": "MOVIMENTO", "Margin": "Margem", "Mass": "Massa", + "Mass Center": "Centro de massa", + "Matched restrictions check the final values.": "As restrições cujas condições são atendidas verificam os valores finais.", "Material": "Material", "Max": "Máx.", "Mid Radius": "Raio intermediário", "Middle double-click": "Clique duplo do meio", "Min": "Mín.", "Mitre": "Meia-esquadria", + "Model Parameters": "Parâmetros do modelo", "Modeled": "Modelado", "More toolbar panels": "Mais painéis da barra de ferramentas", "Motion": "Movimento", + "Move / Copy": "Mover / Copiar", "Move Type": "Tipo de movimento", + "Move down": "Mover para baixo", "Move earlier": "Mover para antes", "Move later": "Mover para depois", + "Move up": "Mover para cima", "Name": "Nome", + "Nearest": "Mais próximo", + "New": "Novo", + "New Comp.": "Novo comp.", + "New Sketch": "Novo esboço", + "New rule…": "Nova regra…", + "New study": "Novo estudo", "No crash reports.": "Nenhum relatório de falha.", + "No matching appearance presets.": "Nenhuma predefinição de aparência correspondente.", "No matching appearances": "Nenhuma aparência correspondente", "No visible bodies to export.": "Nenhum corpo visível para exportar.", "None": "Nenhum", - "Normal to sketch": "Normal ao esboço", "Not available yet": "Ainda não disponível", "Notch": "Entalhe", + "OUTPUT": "SAÍDA", "Opacity": "Opacidade", "Open GitHub draft": "Abrir rascunho no GitHub", + "Open local libraries in the desktop app. You can export this design's library here.": "Abra bibliotecas locais no aplicativo para desktop. Você pode exportar a biblioteca deste projeto aqui.", "Open-source parametric 3D CAD in Rust. Licensed MIT OR Apache-2.0.": "CAD 3D paramétrico de código aberto em Rust. Licenciado sob MIT OU Apache-2.0.", + "Operator": "Operador", "Other side": "Outro lado", "Other surface (mutual trim)": "Outra superfície (aparo mútuo)", "Outside": "Fora", "Overall length": "Comprimento total", - "Parameter values": "Valores dos parâmetros", + "Param. Graph": "Gráfico de parâm.", + "Parameter": "Parâmetro", + "Parts": "Peças", "Pass through": "Atravessar", "Path": "Caminho", + "Pattern": "Padrão", "Per Edge": "Por aresta", "Pick the tool bodies": "Selecione os corpos de ferramenta", "Picked": "Selecionado", + "Picked point": "Ponto selecionado", "Place at the origin instead": "Colocar na origem", + "Plastic Rules": "Regras de plástico", "Playback": "Reprodução", + "Plot": "Gráfico", "Position": "Posição", "Position (0 to 1)": "Posição (0 a 1)", "Position (G0)": "Posição (G0)", "Position along the edge, 0 at the start end, 1 at the other": "Posição ao longo da aresta: 0 na extremidade inicial, 1 na outra", + "Preferences › Design turns the offer back on": "Preferências › Projeto reativa a oferta", "Preview Row": "Visualizar linha", "Preview leaves the current design unchanged.": "A visualização não altera o projeto atual.", "Profiles/Curves": "Perfis/Curvas", - "Projection": "Projeção", + "Quantity": "Quantidade", "RECENT": "RECENTES", + "REFERENCE": "REFERÊNCIA", "RULED SURFACE": "SUPERFÍCIE REGRADA", + "RULES": "REGRAS", "Radius Fit": "Ajuste de raio", "Ratio": "Razão", "Reattach selected face": "Fixar novamente na face selecionada", @@ -205,6 +290,8 @@ "Remove this point": "Remover este ponto", "Report a bug — review a screenshot and open a GitHub draft": "Relatar um bug — revise uma captura de tela e abra um rascunho no GitHub", "Reset Toolbar": "Redefinir barra de ferramentas", + "Resize Part": "Redimensionar peça", + "Restore View": "Restaurar vista", "Restore outer boundary": "Restaurar contorno externo", "Restore the inherited component or physical material appearance": "Restaurar a aparência herdada do componente ou do material físico", "Result": "Resultado", @@ -213,18 +300,27 @@ "Reverse Direction": "Inverter direção", "Revert": "Reverter", "Revert All Positions": "Reverter todas as posições", + "Revert Pos.": "Reverter pos.", "Revert Position": "Reverter posição", "Review the report and screenshot before opening GitHub.": "Revise o relatório e a captura de tela antes de abrir o GitHub.", "Rim Edge": "Aresta da borda", "Roll History Marker Here": "Mover o marcador do histórico para cá", "Round": "Arredondado", "Rule": "Regra", + "Rule name": "Nome da regra", + "Rules run from top to bottom. Matched drives change effective values.": "As regras são executadas de cima para baixo. As regras de controle cujas condições são atendidas alteram os valores efetivos.", + "SECTION": "SEÇÃO", + "SURFACE QUALITY": "QUALIDADE DA SUPERFÍCIE", "Save Rule": "Salvar regra", + "Save View": "Salvar vista", "Save the study as an animated GIF, seen as the viewport shows it": "Salvar o estudo como GIF animado, como a janela de visualização o mostra", "Saved preview. Geometry is being checked before editing.": "Visualização salva. A geometria está sendo verificada antes da edição.", "Scale factor": "Fator de escala", + "Scene": "Cena", "Search": "Pesquisar", "Search commands": "Pesquisar comandos", + "Search this library": "Pesquisar nesta biblioteca", + "Section": "Seção", "Select Other: hold the left button still on the model (or right-click › Select Other…) to list everything under the cursor; click again on the same spot to select the next thing there. Double-click the middle button to go Home (Preferences › Navigation).": "Selecionar outro: mantenha o botão esquerdo parado sobre o modelo (ou clique com o botão direito › Selecionar outro…) para listar tudo sob o cursor; clique de novo no mesmo ponto para selecionar o próximo item ali. Clique duas vezes com o botão do meio para ir ao Início (Preferências › Navegação).", "Select bodies (a face picks its body)": "Selecione corpos (uma face seleciona seu corpo)", "Select bodies or faces instead": "Selecionar corpos ou faces em vez disso", @@ -232,6 +328,7 @@ "Semantic faces share their appearance across instances.": "Faces semânticas compartilham a aparência entre instâncias.", "Send your report on GitHub": "Envie seu relatório no GitHub", "Shape": "Forma", + "Sheet Rules": "Regras de chapa", "Show Agent Cursor": "Mostrar cursor do agente", "Show in folder": "Mostrar na pasta", "Show the pointer an AI agent moves (#35)": "Mostrar o ponteiro que um agente de IA move (#35)", @@ -245,14 +342,18 @@ "Sketch points": "Pontos do esboço", "Slot width": "Largura do rasgo", "SolidCraft closed before these designs were saved. Their last autosave can be opened.": "O SolidCraft fechou antes de estes projetos serem salvos. O último salvamento automático deles pode ser aberto.", + "Specialise": "Especializar", "Speed": "Velocidade", "Stand it up": "Colocar em pé", "Stand it up: a quarter turn about X, as one Move feature you can undo.": "Colocar em pé: um quarto de volta em torno de X, como um recurso Mover que pode ser desfeito.", "Stand this part up?": "Colocar esta peça em pé?", + "Start bulge": "Abaulamento inicial", + "Start continuity": "Continuidade inicial", "Step": "Passo", "Steps": "Passos", "Stitch the kept pieces": "Costurar as partes mantidas", "Stitch to both bodies": "Costurar aos dois corpos", + "Study": "Estudo", "Style": "Estilo", "Suppressed": "Suprimido", "Surface": "Superfície", @@ -275,20 +376,24 @@ "To Offset": "Deslocamento final", "To edges": "Arestas de destino", "Tolerance": "Tolerância", + "Too close": "Muito próximo", "Trimming tool (plane, face or curves)": "Ferramenta de aparo (plano, face ou curvas)", "Turn off section analysis before exporting the view.": "Desative a análise de seção antes de exportar a vista.", "Type": "Tipo", "UNTRIM": "DESAPARAR", + "Unit": "Unidade", "Updating the preview": "Atualizando a visualização", "Use active author placement": "Usar o posicionamento de autoria ativo", "Use fixed plane": "Usar plano fixo", "Use saved fixed plane": "Usar o plano fixo salvo", "Use selected face as fixed plane": "Usar a face selecionada como plano fixo", + "User Parameters": "Parâmetros do usuário", "VIEW": "VISTA", + "VIEWS": "VISTAS", "Value": "Valor", + "Velocity": "Velocidade", "Vertices": "Vértices", "View navigator": "Navegador de vistas", - "Visible bodies only. Curves use line segments (0.01 mm tolerance).": "Somente corpos visíveis. As curvas usam segmentos de reta (tolerância de 0,01 mm).", "Volume": "Volume", "Wall": "Parede", "Wall Location": "Posição da parede", @@ -296,6 +401,13 @@ "When": "Quando", "Width": "Largura", "Will fail": "Vai falhar", + "X angle": "Ângulo X", + "X distance": "Distância X", + "Y angle": "Ângulo Y", + "Y distance": "Distância Y", + "Z angle": "Ângulo Z", + "Z distance": "Distância Z", + "Zebra": "Zebra", "angle, height": "ângulo, altura", "appearance.dielectric_ior": "IOR dielétrico", "appearance.metallic": "Metálico", @@ -304,14 +416,28 @@ "appearance.roughness": "Rugosidade", "appearance.surface_response": "Resposta da superfície", "browser.body_name": "Corpo{number}", + "browser.calibrate_title": "Calibrar: {name}", + "browser.capture_many": "{count} componentes foram movidos, mas suas posições não foram capturadas.", + "browser.capture_note": "Capturar posição mantém a nova posição; Reverter posição restaura a anterior.", + "browser.capture_one": "Um componente foi movido, mas sua posição não foi capturada.", "browser.component_name": "Componente{number}", + "browser.edit_canvas_title": "Editar tela: {name}", + "browser.move_title": "Mover: {name}", "browser.parameters": "Parâmetros ({count})", "browser.precision": "Precisão: {precision}", "browser.sketch_name": "Esboço{number}", "browser.units": "Unidades: {units}", + "cam.flat": "Face plana", + "cam.follower": "Seguidor", + "cam.knife": "Gume", + "cam.needs_joints": "precisa de uma junta que gire e outra que deslize ou oscile", + "cam.roller": "Rolete", + "cam.roller_pick": "Rolete (opcional)", + "cam.tip_pick": "Ponta (opcional)", "cmd.appearance_assign": "Aparência", "cmd.appearance_library": "Biblioteca de aparências", "cmd.appearance_list": "Listar aparências", + "cmd.assembly_bom": "Lista de materiais", "cmd.body_rename": "Renomear corpo", "cmd.browser_group": "Novo grupo", "cmd.browser_move": "Mover itens do navegador", @@ -333,10 +459,13 @@ "cmd.component_insert_design": "Inserir projeto", "cmd.component_links": "Listar vínculos", "cmd.component_list": "Listar componentes", + "cmd.component_metadata": "Propriedades da peça", + "cmd.component_metadata_set": "Alterar propriedades da peça", "cmd.component_move_bodies": "Mover corpos para o componente", "cmd.component_move_sketches": "Mover esboços para o componente", "cmd.component_paste_new": "Colar novo", "cmd.component_properties": "Propriedades físicas do componente", + "cmd.component_relink": "Revincular origem", "cmd.component_rename": "Renomear componente", "cmd.component_revert_position": "Reverter posição", "cmd.component_unlock": "Desbloquear conteúdo", @@ -388,6 +517,7 @@ "cmd.edit_checkpoint": "Ponto de restauração", "cmd.edit_restore_checkpoint": "Restaurar ponto de restauração", "cmd.engine_commands": "Listar comandos", + "cmd.engine_describe": "Descrever comando", "cmd.explode_create": "Vista explodida", "cmd.explode_delete": "Excluir vista explodida", "cmd.explode_list": "Listar vistas explodidas", @@ -401,6 +531,7 @@ "cmd.file_slicers": "Fatiadores instalados", "cmd.inspect_accessibility": "Análise de acessibilidade", "cmd.inspect_center_of_mass": "Centro de massa", + "cmd.inspect_clearance": "Folga", "cmd.inspect_compare": "Comparar corpos", "cmd.inspect_continuity": "Análise de continuidade", "cmd.inspect_curvature_comb": "Análise de pente de curvatura", @@ -410,13 +541,16 @@ "cmd.inspect_interference": "Interferência", "cmd.inspect_isocurve": "Análise de isocurvas", "cmd.inspect_minimum_radius": "Análise de raio mínimo", + "cmd.inspect_silhouette": "Silhueta", "cmd.inspect_zebra": "Análise zebra", "cmd.joint_as_built": "Junta como construída", + "cmd.joint_cam": "Came", "cmd.joint_create": "Junta", "cmd.joint_delete": "Excluir junta", "cmd.joint_drive": "Acionar juntas", "cmd.joint_edit": "Editar junta", "cmd.joint_gear": "Engrenagem", + "cmd.joint_inspect": "Inspecionar junta", "cmd.joint_limits": "Limites da junta", "cmd.joint_list": "Listar juntas", "cmd.joint_motion_link": "Vínculo de movimento", @@ -426,6 +560,7 @@ "cmd.joint_rigid_group": "Grupo rígido", "cmd.joint_screw": "Parafuso", "cmd.joint_solve": "Resolver juntas", + "cmd.joint_sweep": "Varredura de junta", "cmd.library_apply": "Aplicar entrada da biblioteca local", "cmd.library_export": "Exportar biblioteca do projeto", "cmd.library_inspect": "Inspecionar biblioteca local", @@ -443,8 +578,10 @@ "cmd.motion_delete": "Excluir estudo de movimento", "cmd.motion_export": "Exportar estudo de movimento", "cmd.motion_export_animation": "Exportar animação de movimento", + "cmd.motion_interference": "Interferência de movimento", "cmd.motion_list": "Listar estudos de movimento", "cmd.motion_play": "Reproduzir estudo de movimento", + "cmd.motion_plot": "Plotar estudo de movimento", "cmd.motion_study": "Estudo de movimento", "cmd.motion_trace": "Traçado de movimento", "cmd.motion_trace_keep": "Manter traçado de movimento", @@ -541,6 +678,8 @@ "cmd.sketch_isoparametric_curve": "Curva isoparamétrica", "cmd.sketch_line3d": "Linha 3D", "cmd.sketch_line_midpoint": "Linha pelo ponto médio", + "cmd.sketch_loose_ends": "Pontas soltas", + "cmd.sketch_loose_ends_tie": "Unir pontas soltas", "cmd.sketch_move": "Mover/Copiar entidades do esboço", "cmd.sketch_move3d": "Mover ponto 3D", "cmd.sketch_move_point": "Arrastar ponto do esboço", @@ -570,6 +709,7 @@ "cmd.sketch_spline_fit_point": "Spline por pontos de ajuste", "cmd.sketch_spun_profile": "Perfil de revolução", "cmd.sketch_toggle_driven": "Alternar cota conduzida", + "cmd.sketch_trim_path": "Aparar ao longo do caminho", "cmd.solid_align": "Alinhar", "cmd.solid_boundary_fill": "Preenchimento de contorno", "cmd.solid_bounding_solid": "Sólido envolvente", @@ -612,13 +752,23 @@ "cmd.timeline_roll_to": "Mover marcador do histórico", "cmd.timeline_rollback": "Mover marcador da linha do tempo", "cmd.timeline_suppress": "Suprimir recurso", + "cmd.view_ambient_occlusion": "Oclusão de ambiente", "cmd.view_apply": "Restaurar vista nomeada", "cmd.view_delete": "Excluir vista nomeada", + "cmd.view_graphics_preset": "Predefinição gráfica", "cmd.view_list": "Listar vistas nomeadas", "cmd.view_navigate": "Navegar na vista", "cmd.view_rename": "Renomear vista nomeada", "cmd.view_save": "Nova vista nomeada", - "command name": "nome do comando", + "color.copy": "Clique para copiar os valores da cor", + "color.edit": "Clique para editar a cor", + "color.gamma": "Mostrando valores de cor no espaço gama 0-255", + "color.hue": "Matiz", + "color.linear": "Mostrando valores de cor no espaço linear 0-1", + "color.saturation_value": "Saturação e valor", + "color.selected": "Cor selecionada", + "contact.components_count": "{count} componentes", + "contact.enabled_label": "ativado", "coupling.gear_1": "Engrenagem 1", "coupling.gear_1_pick": "Engrenagem 1 (opcional)", "coupling.gear_2": "Engrenagem 2", @@ -635,8 +785,30 @@ "coupling.rack": "Cremalheira", "coupling.radius_1": "Raio 1", "coupling.radius_2": "Raio 2", + "crash.announce": "O SolidCraft foi fechado inesperadamente ou encontrou um erro interno da última vez. Um relatório de falha foi salvo (Ajuda > Relatórios de falha…).", + "crash.copy_folder": "Copiar caminho da pasta", + "crash.copy_path": "Copiar caminho", + "crash.deleted": "{count} relatório(s) excluído(s).", + "crash.detected_time": "Detectado em {time} UTC", + "crash.intro": "Os relatórios de falha ficam neste computador e nunca são enviados a lugar nenhum. Relatar… abre um rascunho que você revisa antes de compartilhar qualquer coisa.", + "crash.kind_command": "Erro interno em um comando", + "crash.kind_internal": "Erro interno", + "crash.kind_kernel": "Erro do kernel (recuperado)", + "crash.kind_unclean": "Fechado inesperadamente", + "crash.previous_session": "Uma sessão anterior do SolidCraft terminou inesperadamente ou teve um erro interno. Encerramentos sem confirmação são detectados ao iniciar o aplicativo. Consulte Ajuda > Relatórios de falha… para ver os detalhes.", + "crash.replayable": "reproduzível", + "crash.report": "Relatar…", + "crash.unclean_explanation": "Detectado em uma inicialização posterior; o horário exato do encerramento não foi registrado. Um desligamento do sistema ou uma parada forçada também pode causar um encerramento sem confirmação.", + "delete.and_more": "… e mais {count}", + "dialog.bodies_count": "{count} corpos", + "dialog.clearance_invalid": "a folga deve ser um comprimento maior ou igual a 0", + "dialog.compute": "Calcular", + "dialog.compute_again": "Calcular novamente", "dialog.computing": "Calculando… {seconds} s", + "dialog.could_not_be_checked": "não foi possível verificar", "dialog.custom_axis": "↖ Eixo personalizado", + "dialog.dimension_insert_hint": "Clique duas vezes em outra cota de controle para inserir seu nome", + "dialog.dimension_name": "Cota: {name}", "dialog.edit_title": "EDITAR {title}", "dialog.select": "↖ Selecionar", "dialog.selected_count": "↖ {count} selecionados", @@ -648,9 +820,42 @@ "drive.stopped_by_contact": "Parado em {value}: {a} atravessaria {b}", "drive.stopped_by_loop": "Parado em {value}: o laço por {joint} não pode fechar mais", "drive.unconnected": "Não move nada: {part} não está conectado a nada fixo", - "expression, e.g. 25 mm": "expressão, p. ex. 25 mm", + "dxf.cancel_wait": "Aguardando a exportação parar…", + "dxf.cancelled": "Exportação DXF cancelada", + "dxf.cancelling": "Cancelando exportação DXF", + "dxf.exporting": "Exportando DXF", + "dxf.invalid_tolerance": "A tolerância da curva deve estar entre 0,0001 e 1 mm.", + "dxf.progress.index": "Preparando superfícies (2/5)", + "dxf.progress.meshes": "Preparando malhas (1/5)", + "dxf.progress.occlusion": "Resolvendo linhas ocultas (4/5)", + "dxf.progress.projection": "Projetando geometria (3/5)", + "dxf.progress.write": "Gravando DXF (5/5)", + "dxf.tolerance": "Tolerância da curva", + "dxf.tolerance_help": "Somente corpos visíveis. As curvas usam segmentos retos. Uma tolerância menor gera curvas mais finas e usa mais tempo e memória.", + "file_load.built": "Construídas até agora: {built} de {total} recursos.", + "file_load.converting": "Convertendo sólido {done} de {total}", + "file_load.inserting": "Inserindo geometria", + "file_load.opening": "Abrindo projeto", + "file_load.preparing_thumbnail": "Preparando a miniatura...", + "file_load.preparing_view": "Preparando a vista...", + "file_load.preview_note": "Pré-visualização salva. A geometria está sendo verificada antes da edição.", + "file_load.reading": "Lendo o arquivo...", + "file_load.reading_percent": "Lendo o arquivo... {percent}%", + "file_load.rebuilding": "Reconstruindo recurso {done} de {total}", + "file_load.recovering": "Recuperando projeto", + "file_load.stopping": "Aguardando a operação anterior parar...", + "file_load.waiting": "Aguardando operação de arquivo", "fits the face, e.g. M8": "se ajusta à face, p. ex. M8", "from the rule": "da regra", + "help.apache": "Licença Apache 2.0", + "help.attributions": "Atribuições (ATTRIBUTION.md)", + "help.build": "Versão {version} · commit {commit} · compilada em {date}", + "help.font_details": "A interface usa as fontes integradas do egui (Ubuntu Light e Hack, sob as licenças Ubuntu Font Licence e MIT/Bitstream Vera; Noto Emoji e a fonte de ícones emoji, sob OFL e MIT). O texto dos esboços usa Liberation Sans (SIL OFL 1.1). O pacote opcional de fontes da The Crafting Apps, craft-fonts (BIZ UDPGothic, Shippori Mincho, BIZ UDMincho, Noto Sans CJK SC, Noto Sans Arabic; SIL OFL 1.1), não está incluído nas compilações do SolidCraft.", + "help.fonts": "Fontes", + "help.licences": "Licenças", + "help.mit": "Licença MIT", + "help.notice": "NOTICE", + "help.third_party": "Licenças de terceiros", "home.documentation": "Documentação", "home.in_this_browser": "neste navegador", "home.missing": "ausente", @@ -676,9 +881,51 @@ "install.menu": "Instalar aplicativo…", "install.steps_intro": "O Safari instala aplicativos web pelos próprios menus:", "install.title": "Instalar o SolidCraft", + "issue.body_label": "Texto do relatório", + "issue.note_image_copied": "Cole a imagem no rascunho do GitHub ou salve o PNG se a cópia de imagem não estiver disponível.", + "issue.note_opened": "Revise o rascunho do GitHub e anexe a captura de tela. O botão Submit new issue do GitHub o publica.", + "issue.note_opened_copied": "Relatório copiado. Cole no rascunho do GitHub, anexe a captura de tela e clique em Submit new issue no GitHub.", + "issue.note_removed": "Captura de tela removida deste rascunho.", + "issue.note_report_copied": "Relatório copiado. Cole-o no rascunho do GitHub, se necessário.", + "issue.note_save_failed": "Não foi possível salvar a captura de tela: {error}", + "issue.note_saved": "Captura de tela salva. Anexe o PNG no rascunho do GitHub.", + "issue.save_screenshot": "Salvar captura de tela…", "joint.from_bodies_hint": "Cada corpo selecionado vai para um novo componente próprio e permanece onde está.", "joint.one_body": "As duas seleções estão em {body}. Selecione a segunda em outra peça.", "joint.one_component": "Estas peças são corpos de um mesmo componente: {bodies}. Uma junta move um componente em relação a outro, então cada peça precisa de seu próprio componente.", + "keymap.command_id": "ID do comando", + "keymap.empty": "Nenhum comando correspondente", + "keymap.use_anyway": "Usar {key} aqui mesmo assim", + "manage.appearance_hint": "Escolha uma aparência para a seleção ou arraste uma amostra para um corpo ou uma face.", + "manage.assign_hint": "Selecione corpos e escolha sua regra de projeto de peças plásticas.", + "manage.config_hint": "Edite as linhas, colunas e regras de configuração e depois ative uma linha ou visualize sua prévia.", + "manage.empty": "Nenhuma linha correspondente.", + "manage.material_hint": "Selecione corpos e escolha seu material físico.", + "manage.parameters_hint": "Edite expressões e unidades. As alterações são aplicadas ao pressionar Enter ou sair de um campo.", + "manage.rules_hint": "Escolha uma regra para editar ou crie uma nova. Confirme para salvar a regra.", + "measure.at": "Em", + "measure.item": "Item {number}", + "messages.ago_h": "há {n} h", + "messages.ago_min": "há {n} min", + "messages.ago_s": "há {n} s", + "messages.chip_hint": "Clique para ver todas as mensagens desta sessão", + "messages.clear": "Limpar", + "messages.copy_all": "Copiar tudo", + "messages.menu": "Mensagens…", + "messages.none": "Ainda não há mensagens.", + "messages.title": "Mensagens", + "motion.checked_to": "Verificado só até a etapa {step}: a verificação esgotou seu orçamento de trabalho", + "motion.collision": "{a} · {b}: etapas {steps}", + "motion.delete_key": "Excluir quadro-chave", + "motion.duration_hint": "segundos (vazio: por etapa)", + "motion.key_here": "Inserir quadro-chave aqui", + "motion.key_here_hint": "Adicionar um quadro-chave neste passo com o valor atual da junta", + "motion.no_collisions": "Sem colisões durante o estudo", + "motion.step_back": "Passo anterior", + "motion.step_forward": "Próximo passo", + "motion.to_end": "Para o fim", + "motion.to_start": "Para o início", + "motion.track_name": "Trilha {number}", "nav.touchpad.help": "Segure Shift e mova o ponteiro para deslocar; segure Alt/Option e mova para orbitar. Não é preciso botão do mouse. A rolagem vertical aplica zoom.", "nav.touchpad.label": "Touchpad", "nav.touchpad.orbit": "Orbitar (segure Alt/Option e mova; sem botão do mouse)", @@ -687,11 +934,13 @@ "nav.touchpad.zoom": "Zoom (rolagem vertical ou pinça)", "needs two joints": "precisa de duas juntas", "new configuration": "nova configuração", - "new name": "novo nome", "new parameter": "novo parâmetro", + "no hole": "sem furo", "no interference": "sem interferência", "no joint that moves yet": "ainda não há junta que se mova", "no picture": "sem imagem", + "none": "nenhum", + "parts.automatic_name": "automático", "pattern.alignment_2": "Alinhamento 2", "pattern.alignment_hint": "As contagens incluem o original. Centralizar equilibra as cópias; Inverter escolhe o lado extra para totais pares.", "pattern.direction_1": "Direção 1", @@ -699,12 +948,19 @@ "pattern.flip_direction": "Inverter direção", "pick a hole to seat it, or OK places it at the origin": "selecione um furo para assentá-la, ou OK a coloca na origem", "pick one or two vertices, edges or faces": "selecione um ou dois vértices, arestas ou faces", + "prefs.cpu": "CPU (software)", + "prefs.minutes_suffix": " min", + "properties.title": "Propriedades: {name}", + "recovery.days_ago": "há {count} dias", + "recovery.detail": "{file} · {features} recursos · salvo automaticamente {when}", + "recovery.hours_ago": "há {count} h", + "recovery.just_now": "agora mesmo", + "recovery.min_ago": "há {count} min", + "recovery.never_saved": "nunca salvo", "render.background": "Fundo da cena", "render.fit": "Enquadrar produto", - "render.image_cancel": "Cancelar renderização", "render.image_cancelled": "Renderização cancelada", "render.image_cancelling": "Cancelando", - "render.image_check": "Verificar pedido de renderização", "render.image_completed": "Imagem pronta para exportar", "render.image_encoding": "Codificando PNG", "render.image_export": "Exportar PNG", @@ -751,6 +1007,19 @@ "sample.plate.name": "Placa de exemplo", "sample.vents.about": "Rasgos em padrão retangular: linhas, colunas e passo são parâmetros", "sample.vents.name": "Placa de ventilação", + "search.command_keys": "Enter executar Shift+Enter executar e manter aberto Esc fechar", + "search.commands": "Comandos", + "search.design": "Neste projeto", + "search.feature": "Recurso", + "search.invalid": "Inválido", + "search.keys": "↑ ↓ escolher Enter executar Tab preencher nome Esc fechar", + "search.no_match": "Nenhum comando corresponde a '{query}'", + "search.parameter": "Parâmetro", + "search.recent": "Recentes", + "search.run": "Executar comando", + "search.suggest": "Você quis dizer {label}?", + "search.try": "Digite o nome de um comando, um recurso deste projeto ou um parâmetro. Para executar um comando com valores, digite seu id e um objeto JSON: {example}", + "search.valid": "Válido", "settings.display_quality_note": "Níveis mais finos desenham faces e arestas curvas mais suaves e demoram mais para gerar a malha. Só a janela de visualização muda, nunca o projeto ou as exportações.", "settings.frame_rate_note": "Mostra quadros por segundo no canto inferior direito da vista. Enquanto estiver ativo, a vista é redesenhada continuamente.", "settings.measure_axis_distances": "Mostrar distâncias X/Y/Z", @@ -761,29 +1030,51 @@ "settings.reset_intro": "Estas configurações não funcionam neste computador e impediriam o SolidCraft de iniciar, por isso foram alteradas:", "settings.reset_title": "As configurações foram alteradas", "settings.supersampling_note": "Desenha a vista em resolução maior e a filtra para baixo: arestas, linhas e grade mais suaves em telas abaixo de 4K. Custa tempo de GPU: cerca de 2,25× os pixels em 1,5× e 4× em 2×.", + "shortcut.json_error": "os parâmetros devem estar no formato JSON: {error}", + "shortcut.no_command": "o comando `{id}` não existe; o texto antes do JSON deve ser um ID de comando", + "shortcut.pin": "Fixar no topo da caixa S", + "shortcut.unpin": "Desafixar", "sketch.degrees_of_freedom": "{count} graus de liberdade", + "sketch.dof_left": "{count} graus de liberdade restantes", + "sketch.dof_left_one": "{count} grau de liberdade restante", "sketch.draw_curves": "Desenhar como {linetype}", "sketch.make_selection": "Converter a seleção em {linetype}", + "sketch.open_ends": "Abertas {count}", + "sketch.untied_ends": "Sem união {count}", + "sketch_panel.attached": "Anexado a {body} / {path}", + "sketch_panel.author": "Posicionamento de autoria: {path}", + "sketch_panel.dimension_hint": "Insira um valor ou uma expressão e pressione OK.", + "sketch_panel.move_hint": "Insira as distâncias e um ângulo e pressione OK.", + "sketch_panel.redefine_title": "{command}: {name}", + "sketch_panel.sheet_attachment": "Anexado a uma face plana de um corpo de chapa; acompanha esse painel quando a chapa muda.", + "sketch_panel.text_hint": "Edite o texto e seu posicionamento e pressione OK.", + "sketch_panel.use_plane": "Usar plano {plane}", "sketch_text.align_center": "Centro", "sketch_text.align_left": "Esquerda", "sketch_text.align_right": "Direita", "sketch_text.bold": "Negrito", "sketch_text.builtin_font": "{family} (incorporada)", - "sketch_text.font_search": "Pesquisar fontes", "sketch_text.italic": "Itálico", "sketch_text.loading_fonts": "Procurando fontes instaladas…", "sketch_text.on_path": "O texto segue seu caminho: a curva o posiciona", "sketch_text.path_clear": "Tirar o texto da curva", "sketch_text.path_hint": "Uma curva do esboço que o texto segue: clique aqui e depois na curva", "sketch_text.use_font_file": "Usar o arquivo de fonte {path}", + "solid": "sólido", "the parts library is not available": "a biblioteca de peças não está disponível", + "thread.automatic_size": "Tamanho automático", + "thread.designation": "Designação", + "thread.iso_metric": "Métrica ISO", + "thread.select_size": "Selecionar tamanho", "timeline.group": "Nova pasta de recursos", "timeline.move_many": "Mover itens da linha do tempo", "timeline.move_to_group": "Mover recursos para a pasta", "timeline.rename_group": "Renomear pasta de recursos", "timeline.reorder_many": "Reordenar recursos", "timeline.ungroup": "Remover pastas de recursos", + "to the face": "até a face", "to the next face": "até a próxima face", + "toolbar.customize_note": "Aba {tab}. Marque um comando para adicionar seu botão à barra de ferramentas. Você também pode arrastar uma linha do menu suspenso de um painel para a barra, arrastar um botão para fora da barra para removê-lo ou usar o alfinete de uma linha do menu suspenso.", "toolbar.image": "IMAGEM", "toolbar.render": "RENDERIZAR", "toolbar.render_scene": "CENA", @@ -792,18 +1083,21 @@ "trace.stopped_by_loop": "Termina na amostra {sample}: o laço por {joint} não pode fechar mais", "ui.1_degree_of_freedom": "1 grau de liberdade", "ui.3d_mouse_speed": "Velocidade do mouse 3D", - "ui.3d_mouse_windows": "Mouse 3D", "ui.3d_sketch": "Esboço 3D", - "ui.about": "Sobre", "ui.activate": "Ativar", "ui.active_component": "Componente ativo", + "ui.add_configuration": "Adicionar configuração", + "ui.add_parameter": "Adicionar parâmetro", "ui.agent_chat": "Chat com agente", + "ui.agent_chat_add": "Anexar arquivos", + "ui.agent_chat_add_file": "Escolher um arquivo…", "ui.agent_chat_allow": "Permitir", "ui.agent_chat_allowed": "Permitido", "ui.agent_chat_answered": "Resposta: {option}", "ui.agent_chat_approval": "Permitir que o agente faça isto?", "ui.agent_chat_attach_view": "Anexar vista", "ui.agent_chat_attach_view_tip": "Enviar uma imagem da vista atual com a mensagem", + "ui.agent_chat_attachable": "Imagens, PDFs, texto e arquivos CAD", "ui.agent_chat_auth_agent": "Entrar com {name}", "ui.agent_chat_auth_env": "Defina {vars} no seu ambiente e reinicie o SolidCraft.", "ui.agent_chat_auth_needed": "O agente pede que você entre. Você entra no próprio agente; o SolidCraft nunca vê sua senha ou chaves.", @@ -823,11 +1117,33 @@ "ui.agent_chat_deny": "Negar", "ui.agent_chat_desktop_only": "O chat com agente precisa do aplicativo para desktop.", "ui.agent_chat_detecting": "Procurando agentes…", + "ui.agent_chat_dock": "Acoplar no painel lateral", "ui.agent_chat_dock_left": "Encaixar à esquerda", "ui.agent_chat_dock_right": "Encaixar à direita", + "ui.agent_chat_drop_hint": "Solte para anexar à sua próxima mensagem", "ui.agent_chat_edit": "Editar", "ui.agent_chat_exited": "O agente parou.", "ui.agent_chat_failed_start": "O agente não pôde iniciar: {error}", + "ui.agent_chat_file_cad_not_read": "{name}: um arquivo CAD é importado para o projeto, não lido", + "ui.agent_chat_file_empty_picture": "{name}: imagem vazia", + "ui.agent_chat_file_error": "{name}: {error}", + "ui.agent_chat_file_heic": "{name}: imagens HEIC não podem ser lidas aqui; exporte como JPEG ou PNG primeiro", + "ui.agent_chat_file_importing": "Importando para o projeto…", + "ui.agent_chat_file_kinds": "{name}: é possível anexar imagens (PNG, JPEG, GIF, WebP, BMP, TIFF), arquivos de texto (inclusive SVG) e arquivos CAD (STEP, IGES, FreeCAD, Rhino, STL, 3MF, OBJ, glTF)", + "ui.agent_chat_file_loading": "Lendo o arquivo…", + "ui.agent_chat_file_not_a_file": "{name}: não é um arquivo", + "ui.agent_chat_file_not_a_picture": "{name}: não é uma imagem", + "ui.agent_chat_file_not_utf8": "{name}: não é texto UTF-8", + "ui.agent_chat_file_picture_too_big": "{name}: uma imagem pode ter no máximo {max} MB", + "ui.agent_chat_file_text_too_big": "{name}: um arquivo de texto pode ter no máximo {max} KB", + "ui.agent_chat_file_too_large": "{name}: grande demais", + "ui.agent_chat_file_too_large_to_send": "{name}: grande demais para enviar, mesmo reduzido", + "ui.agent_chat_file_unreadable_picture": "{name}: não é uma imagem que possa ser lida", + "ui.agent_chat_files": "Arquivos: {files}", + "ui.agent_chat_files_left_out": "No máximo {max} arquivos acompanham uma mensagem; deixados de fora: {files}", + "ui.agent_chat_files_loading": "Aguardando a leitura dos arquivos", + "ui.agent_chat_files_max": "No máximo {max} arquivos por mensagem", + "ui.agent_chat_import_failed": "{name}: falha na importação: {error}", "ui.agent_chat_intro": "Converse com um agente de programação que você já usa, ou com um endpoint de modelo que você escolher. Ele trabalha no projeto aberto pelas ferramentas do SolidCraft: as alterações aparecem conforme são feitas e se desfazem em um passo por mensagem. O que ele pode fazer sem perguntar é definido em Preferências > IA.", "ui.agent_chat_key_in_env": "chave definida", "ui.agent_chat_left": "Esquerda", @@ -836,18 +1152,23 @@ "ui.agent_chat_model_tip": "O modelo que o agente usa. Sua escolha é lembrada para este agente.", "ui.agent_chat_new": "Novo chat", "ui.agent_chat_new_confirm": "Começar um novo chat? O atual será apagado.", - "ui.agent_chat_new_yes": "Novo chat", + "ui.agent_chat_next_picture": "Próxima imagem", "ui.agent_chat_no_cli": "O solidcraft-cli não foi encontrado junto ao aplicativo, então o agente não consegue acessar o projeto.", "ui.agent_chat_no_control": "O endpoint do chat com agente não iniciou, então o agente não consegue acessar o projeto.", "ui.agent_chat_no_images": "Este agente não aceita imagens", + "ui.agent_chat_no_picture": "Não há imagem na área de transferência", "ui.agent_chat_none_found": "Nenhum agente de programação encontrado. Instale um destes e pressione Atualizar:", "ui.agent_chat_none_found_short": "Nenhum agente encontrado", "ui.agent_chat_not_installed": "Não instalado", "ui.agent_chat_not_signed_in": "não conectado", + "ui.agent_chat_own_window": "Janela própria", + "ui.agent_chat_paste_picture": "Colar uma imagem", "ui.agent_chat_permission": "O agente pede para executar: {title}", "ui.agent_chat_pick": "Agente", "ui.agent_chat_placeholder": "Peça ao agente para alterar o projeto…", "ui.agent_chat_placeholder_busy": "Enfileirar uma mensagem para quando o agente terminar (Ctrl+Enter: enviar agora)", + "ui.agent_chat_pop_out": "Abrir em janela própria, que você pode mover para outra tela", + "ui.agent_chat_previous_picture": "Imagem anterior", "ui.agent_chat_privacy": "Nada vai para lugar algum além do agente que você executa, na sua própria conta.", "ui.agent_chat_privacy_note": "O SolidCraft não envia nada a lugar nenhum: o agente que você executa fala com o próprio serviço, na sua própria conta. O SolidCraft nunca vê nem guarda chaves ou senhas.", "ui.agent_chat_queue": "Fila", @@ -857,6 +1178,8 @@ "ui.agent_chat_refresh": "Atualizar", "ui.agent_chat_refused": "Não permitido para o agente: {reason}", "ui.agent_chat_remove": "Remover da fila", + "ui.agent_chat_remove_file": "Remover desta mensagem", + "ui.agent_chat_remove_imported": "Remover desta mensagem; a peça permanece no projeto (Desfazer a remove)", "ui.agent_chat_right": "Direita", "ui.agent_chat_save": "Salvar", "ui.agent_chat_send": "Enviar", @@ -901,6 +1224,7 @@ "ui.ai_bad_url": "Digite uma URL que comece com http:// ou https://", "ui.ai_base_url": "URL base", "ui.ai_button": "IA", + "ui.ai_command_hint": "my-agent --acp", "ui.ai_copy_suffix": "cópia", "ui.ai_custom_url": "URL personalizada", "ui.ai_default": "Padrão", @@ -921,8 +1245,10 @@ "ui.ai_mode_edits_note": "Comandos de modelagem rodam sem perguntar; salvar, abrir, exportar e outras ações com arquivos ou destrutivas ainda perguntam.", "ui.ai_mode_global": "Como definido acima", "ui.ai_model": "Modelo", + "ui.ai_model_hint": "qwen3:14b", "ui.ai_modes_scope": "Estas configurações valem para as ferramentas do SolidCraft. As ferramentas do próprio agente (shell, edição de arquivos) seguem o modo do agente, que você escolhe no cabeçalho do painel de chat quando o agente tem modos.", "ui.ai_name": "Nome", + "ui.ai_name_hint": "Meu agente", "ui.ai_need_command": "Digite o comando que inicia o agente", "ui.ai_need_model": "Digite o nome do modelo", "ui.ai_no_answer": "O agente não respondeu a tempo", @@ -953,7 +1279,10 @@ "ui.ai_toolbar_button": "Mostrar botão na barra de ferramentas", "ui.ai_toolbar_button_note": "O botão de IA no fim direito da barra de ferramentas. Ctrl+Shift+A e o menu Exibir ainda abrem o painel.", "ui.ai_undo_tip": "Desfazer tudo o que o agente alterou nesta mensagem, em um passo", + "ui.ai_url_hint": "https://example.com/v1", "ui.all": "Tudo", + "ui.ambient_occlusion": "Oclusão de ambiente", + "ui.ambient_occlusion_help": "Sombreamento suave onde superfícies opacas se encontram. Requer a janela de visualização com GPU.", "ui.analysis": "Análise", "ui.angle": "Ângulo", "ui.angle_decimals": "Casas decimais de ângulo", @@ -964,7 +1293,8 @@ "ui.anti_aliasing": "Antisserrilhamento", "ui.apply": "Aplicar", "ui.arc": "Arco", - "ui.assemble": "Montar", + "ui.assistant": "Assistente", + "ui.assistant_waiting": "{count} aprovações aguardando", "ui.autosave_every": "Salvar automaticamente a cada", "ui.axes": "Eixos", "ui.axis": "Eixo", @@ -972,8 +1302,14 @@ "ui.base_point": "Ponto base", "ui.blocked": "Bloqueado", "ui.bodies": "Corpos", + "ui.bodies_all_if_none": "Corpos (todos se nenhum)", "ui.box": "Caixa", "ui.break": "Quebrar", + "ui.browser_bodies_one": "{count} corpo", + "ui.browser_bodies_other": "{count} corpos", + "ui.browser_collapse": "Recolher o navegador", + "ui.browser_expand": "Expandir o navegador", + "ui.browser_title": "Navegador", "ui.calibrate": "Calibrar", "ui.cancel": "Cancelar", "ui.canvases": "Telas de referência", @@ -983,7 +1319,6 @@ "ui.chamfer": "Chanfro", "ui.chamfer_type": "Tipo de chanfro", "ui.change_workspace": "Mudar espaço de trabalho", - "ui.chord_length": "Comprimento da corda", "ui.circle": "Círculo", "ui.circular_pattern": "Padrão circular", "ui.clear": "Limpar", @@ -1016,13 +1351,14 @@ "ui.command_done": "{command} concluído", "ui.command_palette_hint": "Digite um comando, p. ex. {example} — ou pressione S para pesquisar", "ui.concentric": "Concêntrico", - "ui.configurations": "Configurações", "ui.conic_curve": "Curva cônica", "ui.constant": "Constante", "ui.constraints_conflict": "Restrições em conflito", - "ui.construct": "Construir", "ui.construction": "Construção", "ui.context_menu": "Menu de contexto", + "ui.continuity_g0": "G0 vinco", + "ui.continuity_g1": "G1 tangente", + "ui.continuity_g2": "G2 curvatura", "ui.continuity_gap": "Folga", "ui.copy": "Copiar", "ui.corner": "Canto", @@ -1043,7 +1379,6 @@ "ui.cylinder": "Cilindro", "ui.dark": "Escuro", "ui.default_modelling_orientation": "Orientação padrão de modelagem", - "ui.degrees_of_freedom": "graus de liberdade", "ui.delete": "Excluir", "ui.depth": "Profundidade", "ui.design": "Projeto", @@ -1085,7 +1420,6 @@ "ui.equivalent_radius": "Raio equivalente", "ui.expand": "Expandir", "ui.exportDxf": "Exportar DXF…", - "ui.export_ellipsis": "Exportar...", "ui.export_ellipsis_keymap": "Exportar…", "ui.export_keymap_tip": "Teclas, favoritos da caixa S e a barra de ferramentas, como um arquivo", "ui.extend": "Estender", @@ -1109,8 +1443,16 @@ "ui.frame_rate": "Taxa de quadros", "ui.front": "Frente", "ui.fully_constrained": "Totalmente restrito", + "ui.function": "Função", "ui.general": "Geral", "ui.graphics": "Gráficos", + "ui.graphics_custom": "Personalizado", + "ui.graphics_performance": "Desempenho", + "ui.graphics_preset": "Predefinição gráfica", + "ui.graphics_preset_help": "Qualidade: oclusão de ambiente, qualidade de exibição Fina e supersampling adaptativo 2×. Desempenho: sem oclusão de ambiente, qualidade de exibição Normal e supersampling desativado. Alterações manuais mostram Personalizado. O MSAA permanece inalterado.", + "ui.graphics_quality": "Qualidade", + "ui.grid_follows_view": "A grade acompanha a vista", + "ui.grid_follows_view_hint": "As vistas laterais mostram a grade no plano vertical voltado para elas, em vez do solo", "ui.ground_shadow": "Sombra no chão", "ui.groupSelected": "Agrupar seleção", "ui.heading_add_ins": "COMPLEMENTOS", @@ -1137,6 +1479,7 @@ "ui.heading_home": "INÍCIO", "ui.heading_insert": "INSERIR", "ui.heading_inspect": "INSPECIONAR", + "ui.heading_interference": "INTERFERÊNCIA", "ui.heading_loft": "LOFT", "ui.heading_make": "FABRICAR", "ui.heading_measure": "MEDIR", @@ -1167,7 +1510,6 @@ "ui.heading_sheet_metal": "CHAPA METÁLICA", "ui.heading_shell": "CASCA", "ui.heading_sketch": "ESBOÇO", - "ui.heading_sketch_palette": "PALETA DE ESBOÇO", "ui.heading_sketch_scale": "ESCALA DO ESBOÇO", "ui.heading_solid": "SÓLIDO", "ui.heading_sphere": "ESFERA", @@ -1186,6 +1528,7 @@ "ui.hideOrigin": "Ocultar origem", "ui.hidePlanes": "Ocultar planos", "ui.hideProfile": "Ocultar perfil", + "ui.history_title": "Histórico", "ui.hole": "Furo", "ui.hole_tap_type": "Tipo de rosca do furo", "ui.hole_type": "Tipo de furo", @@ -1205,11 +1548,12 @@ "ui.length_decimals": "Casas decimais de comprimento", "ui.light": "Claro", "ui.line": "Linha", - "ui.linetype": "Tipo de linha", "ui.lock": "Bloquear", "ui.loft": "Loft", "ui.look_at": "Olhar para", "ui.look_at_anim_desc": "Vista do eixo, Olhar para, Início e Ajustar", + "ui.manipulator_free_alt": "Arrasto livre do manipulador também com Alt/Option", + "ui.manipulator_free_alt_tip": "Ativado: Alt/Option ou Ctrl/Cmd nas setas de extrusão / gizmo desativa o ajuste de valores. Desativado: somente Ctrl/Cmd.", "ui.manufacture": "Fabricação", "ui.material_review.axes": "Eixos locais do material; nenhuma orientação de corpo é atribuída.", "ui.material_review.claims": "Fontes e licenças são declarações não verificadas. Valores ausentes continuam desconhecidos.", @@ -1237,10 +1581,8 @@ "ui.mesh_format_3mf": "3MF", "ui.mesh_format_3mf_tagged": "3MF com marcação de faces", "ui.mesh_format_stl": "STL", - "ui.midpoint": "Ponto médio", "ui.mirror": "Espelhar", "ui.mirror_line": "Linha de espelho", - "ui.modify": "Modificar", "ui.move": "Mover", "ui.multiple": "Múltiplo", "ui.named_views": "Vistas nomeadas", @@ -1249,6 +1591,7 @@ "ui.newSketchGroup": "Novo grupo de esboços", "ui.new_body": "Novo corpo", "ui.new_design": "Novo projeto", + "ui.no_geometry_yet": "Ainda sem geometria", "ui.no_slicer_found": "Nenhum fatiador encontrado", "ui.normal": "Normal", "ui.normalConstruction": "Normal / Construção", @@ -1260,7 +1603,7 @@ "ui.offset_plane": "Plano deslocado", "ui.one_side": "Um lado", "ui.open": "Abrir", - "ui.open_ellipsis": "Abrir...", + "ui.open_ends_tip": "Não toca em nada", "ui.open_preferences": "Abrir preferências", "ui.open_recent": "Abrir recente", "ui.operation": "Operação", @@ -1269,12 +1612,14 @@ "ui.orbit_around": "Orbitar em torno de", "ui.orientation": "Orientação", "ui.origin": "Origem", - "ui.palette_points": "Pontos", - "ui.palette_profile": "Perfil", + "ui.palette_construction_mode": "Modo de construção (X)", + "ui.palette_more": "Mais", + "ui.palette_sketch_options": "Opções de esboço", "ui.pan": "Deslocar", "ui.pan_zoom_orbit": "Deslocar, zoom, orbitar", "ui.parallel": "Paralelo", "ui.parameters": "Parâmetros", + "ui.part_size_shared": "Reconstrói a peça, substituindo quaisquer recursos adicionados. Todas as ocorrências deste componente são atualizadas.", "ui.paste": "Colar", "ui.path": "Caminho", "ui.pattern_on_path": "Padrão no caminho", @@ -1286,6 +1631,12 @@ "ui.placement": "Posicionamento", "ui.plane": "Plano", "ui.plane_at_angle": "Plano em ângulo", + "ui.plugins": "Plug-ins", + "ui.plugins_desktop": "Os plug-ins estão disponíveis no aplicativo para desktop.", + "ui.plugins_empty": "Nenhum plug-in instalado.", + "ui.plugins_note": "Cada plug-in é uma pasta dentro de {path} com um plugin.json. O SolidCraft lê esse arquivo e não executa nenhum código da pasta. Desativar um plug-in mantém a instalação.", + "ui.plugins_skipped": "{count} pasta(s) não puderam ser lidas.", + "ui.plugins_version": "{version}", "ui.point": "Ponto", "ui.point_under_the_cursor": "Ponto sob o cursor", "ui.points": "Pontos", @@ -1304,11 +1655,17 @@ "ui.quit": "Sair", "ui.radial_context_menu": "Menu de contexto radial", "ui.radius": "Raio", - "ui.radius_type": "Tipo de raio", + "ui.rail": "Trilho", + "ui.rail_fit": "Ajuste de trilho", "ui.reachable": "Alcançável", "ui.rectangle": "Retângulo", "ui.rectangular_pattern": "Padrão retangular", "ui.redo": "Refazer", + "ui.relink_design_changed": "A montagem mudou durante a escolha da origem. Inicie Revincular origem novamente.", + "ui.relink_done": "Origem revinculada em todas as instâncias.", + "ui.relink_not_linked": "Este componente não está vinculado a um projeto de origem.", + "ui.relink_select_one": "Selecione primeiro um componente vinculado ou uma de suas instâncias.", + "ui.relink_source_all": "Revincular origem (todas as instâncias)…", "ui.removeFromToolbar": "Remover da barra de ferramentas", "ui.removeSection": "Remover seção", "ui.render": "Renderizar", @@ -1320,12 +1677,16 @@ "ui.reset_the_settings_on_this_page": "Redefinir as configurações desta página", "ui.restore": "Restaurar", "ui.restore_defaults": "Restaurar padrões", + "ui.reverse_horizontal_pan_direction": "Inverter direção do deslocamento horizontal", + "ui.reverse_horizontal_pan_tip": "A rolagem horizontal com dois dedos e a roda de polegar deslocam no sentido oposto", "ui.reverse_zoom_direction": "Inverter direção do zoom", "ui.revolve": "Revolução", + "ui.ribbon_exit": "Sair", + "ui.ribbon_pin_footer": "Os comandos fixados aparecem na faixa de opções. Passe o mouse sobre uma linha para fixar ou desafixar.", + "ui.ribbon_workspace": "Espaço de trabalho", "ui.right": "Direita", "ui.save": "Salvar", "ui.save_as": "Salvar como", - "ui.save_as_ellipsis": "Salvar como...", "ui.save_mesh_no_slicer": "Nenhum fatiador encontrado: escolha Personalizado… e selecione seu programa fatiador, ou desative Enviar ao fatiador", "ui.save_mesh_pick_bodies": "Selecione os corpos a salvar", "ui.save_mesh_temp_failed": "Não foi possível criar {folder}: {error}", @@ -1333,12 +1694,15 @@ "ui.sbox_pin": "Fixar no topo da caixa S", "ui.sbox_unpin": "Desafixar", "ui.scale": "Escala", + "ui.second_rail": "Segundo trilho", "ui.section_analysis": "Análise de seção", "ui.select": "Selecionar", "ui.selectOther": "Selecionar outro…", "ui.selectTangentChain": "Selecionar cadeia tangente", - "ui.select_other_hint": "Selecionar outro: mantenha o botão esquerdo parado sobre o modelo (ou clique com o botão direito › Selecionar outro…) para listar tudo sob o cursor; clique de novo no mesmo ponto para selecionar o próximo item ali.", "ui.selection": "Seleção", + "ui.selection_modifiers": "Modificadores de seleção", + "ui.selection_shift_add_only": "Shift+clique adiciona sem remover", + "ui.selection_shift_add_only_tip": "Ativado: Shift adiciona itens, Ctrl/Cmd alterna. Desativado (padrão): Shift e Ctrl/Cmd alternam.", "ui.send": "Enviar", "ui.send_to_slicer": "Enviar ao fatiador", "ui.sent_to_slicer": "Enviado para {slicer}", @@ -1354,7 +1718,6 @@ "ui.show_constraints": "Restrições", "ui.show_construction_geometries": "Geometrias de construção", "ui.show_dimensions": "Cotas", - "ui.show_points": "Mostrar pontos", "ui.show_profile": "Mostrar perfil", "ui.show_projected_geometries": "Geometrias projetadas", "ui.simple": "Simples", @@ -1363,8 +1726,8 @@ "ui.sketch": "Esboço", "ui.sketch_dimension": "Cota do esboço", "ui.sketch_grid": "Grade do esboço", + "ui.sketch_modifiers": "Modificadores de esboço", "ui.sketch_scale": "Escala do esboço", - "ui.sketch_status": "Estado do esboço", "ui.sketches": "Esboços", "ui.slice": "Fatiar", "ui.slicer": "Fatiador", @@ -1410,11 +1773,14 @@ "ui.stand_up_tip": "Depois que um arquivo STEP ou IGES abrir com Z para cima, oferecer um quarto de volta em torno de X", "ui.start": "Início", "ui.start_over": "Recomeçar", - "ui.start_radius": "Raio inicial", + "ui.start_page": "Página inicial", + "ui.stretch": "Esticar", "ui.supersampling": "Supersampling (SSAA)", "ui.supersampling_adaptive": "Só quando a vista está parada", "ui.supersampling_off": "Desativado (1×)", "ui.suppress": "Suprimir", + "ui.suppress_auto_snap": "Suprimir ajuste automático ao desenhar / arrastar", + "ui.suppress_auto_snap_note": "Padrão: Ctrl/Cmd ou Alt/Option suprimem cada um o ajuste do esboço. Escolha uma única tecla para restringir.", "ui.sweep": "Varredura", "ui.sweep_follow_direction": "Seguir direção", "ui.sweep_keep_as_drawn": "Manter como desenhado", @@ -1429,6 +1795,8 @@ "ui.theme": "Tema", "ui.thickness": "Espessura", "ui.thread": "Rosca", + "ui.tie_ends": "Unir", + "ui.tie_ends_tip": "Restringir todas as pontas sem união", "ui.timeline_bottom": "Linha do tempo inferior", "ui.timeline_left_note": "O layout à esquerda mostra a barra de retrocesso acima do navegador de peças e cena.", "ui.timeline_left_sidebar": "Barra lateral esquerda", @@ -1451,16 +1819,28 @@ "ui.units_of_new_designs": "Unidades de novos projetos", "ui.unlock": "Desbloquear", "ui.unsuppress": "Reativar", + "ui.untied_ends_tip": "Toca apenas por posição", "ui.untitled": "Sem título", "ui.up_axis_note": "Qual eixo aponta para cima nas vistas (vista do eixo, Início, Olhar para). Os projetos não mudam.", "ui.updateToCurrentView": "Atualizar para a vista atual", - "ui.variable": "Variável", "ui.view_centre": "Centro da vista", "ui.visual_shaded_hidden_edges": "Sombreado com arestas ocultas", "ui.visual_shaded_with_edges": "Sombreado com arestas", "ui.visual_style": "Estilo visual", "ui.visual_wireframe": "Aramado", "ui.workspace": "espaço de trabalho", + "ui.workspace_animation_description": "Vistas explodidas, estudos de movimento e storyboards", + "ui.workspace_available": "Disponível", + "ui.workspace_current": "Atual", + "ui.workspace_design_description": "Esboçar, modelar, montar e inspecionar", + "ui.workspace_design_tabs": "Modelo · Superfície · Montagem · Inserir · Inspecionar · Gerenciar · Vista", + "ui.workspace_drawing_description": "Desenhos 2D com vistas, cotas e legendas", + "ui.workspace_footer": "Todo espaço de trabalho usa o mesmo projeto, histórico e seleção; só as guias da faixa de opções mudam. O seletor fica bloqueado enquanto um esboço ou recurso está sendo editado.", + "ui.workspace_manufacture_description": "Fatiamento, trajetórias de ferramenta e configuração", + "ui.workspace_planned": "Planejado", + "ui.workspace_render_description": "Pré-visualização do produto, configurações de cena e imagens renderizadas", + "ui.workspace_render_tabs": "Cena · Imagem", + "ui.workspace_simulation_description": "Cargas, restrições e resultados", "ui.x_distance": "Distância X", "ui.y_distance": "Distância Y", "ui.y_up": "Y para cima", @@ -1470,7 +1850,6 @@ "ui.zoom_to_the_cursor": "Zoom em direção ao cursor", "update.available": "O SolidCraft {version} está disponível", "update.button": "Atualizar", - "update.button_tip": "O SolidCraft {version} está disponível", "update.button_version": "Atualizar para {version}", "update.check_automatically": "Verificar atualizações automaticamente", "update.check_now": "Verificar agora", @@ -1502,5 +1881,6 @@ "update.title": "Atualização disponível", "update.up_to_date": "O SolidCraft está atualizado.", "update.update_now": "Atualizar agora", - "update.you_have": "Você tem a {version}." + "update.you_have": "Você tem a {version}.", + "↑ ↓ choose · Enter / Tab complete · Esc dismiss": "↑ ↓ escolher · Enter / Tab completar · Esc fechar" } diff --git a/assets/locales/ru.json b/assets/locales/ru.json index dcabf2861..af783abcc 100644 --- a/assets/locales/ru.json +++ b/assets/locales/ru.json @@ -1,8 +1,16 @@ { "0 turns it off": "0 отключает", + "1. Open GitHub draft below, then paste the report copied to your clipboard.": "1. Откройте черновик на GitHub ниже, затем вставьте отчёт, скопированный в буфер обмена.", + "1. Open GitHub draft below. Your title and report will be filled in.": "1. Откройте черновик на GitHub ниже. Заголовок и отчёт будут заполнены автоматически.", + "2. Attach your screenshot: copy and paste it, or save and upload the PNG.": "2. Приложите снимок экрана: скопируйте и вставьте его либо сохраните и загрузите PNG.", + "2D": "2D", + "3. Click Submit new issue on GitHub to send your report.": "3. Нажмите Submit new issue на GitHub, чтобы отправить отчёт.", "A new configuration, a copy of the active one": "Новая конфигурация — копия активной", + "ARRANGE": "РАСПОЛОЖЕНИЕ", "About SolidCraft": "О SolidCraft", "Acceleration": "Ускорение", + "Access": "Доступ", + "Actions": "Действия", "Active": "Активный", "Active rule": "Активное правило", "Add": "Добавить", @@ -10,6 +18,7 @@ "Add Mid Radius": "Добавить средний радиус", "Add Row": "Добавить строку", "Add condition": "Добавить условие", + "Add or edit rule": "Добавить или изменить правило", "Against": "Против", "Alignment": "Выравнивание", "All Sketch Points": "Все точки эскиза", @@ -23,35 +32,56 @@ "Applied Radius": "Применённый радиус", "Apply To": "Применить к", "Apply to selection": "Применить к выделению", + "Apply your appearance first. Exports assigned appearances and materials created in this design.": "Сначала примените внешний вид. Экспортирует назначенные внешние виды и материалы, созданные в этом дизайне.", + "Arc length": "Длина дуги", "Area": "Площадь", + "As-Built": "По месту", + "Assign Rule": "Назначить правило", "Attachment": "Привязка", + "BLEND SURFACE": "СОПРЯГАЮЩАЯ ПОВЕРХНОСТЬ", + "BOUNDARY SURFACE": "ГРАНИЧНАЯ ПОВЕРХНОСТЬ", "BROWSER": "БРАУЗЕР", "Bend Line Position": "Положение линии гиба", "Bend Position": "Положение гиба", "Bend Radius": "Радиус гиба", + "Bend Table": "Таблица сгибов", "Bends": "Гибы", + "Bodies": "Тела", "Body": "Тело", "Boundary": "Граница", "Bounding box": "Габаритная рамка", + "CHECK": "ПРОВЕРКА", + "COMPONENTS": "КОМПОНЕНТЫ", + "CONFIGURATIONS": "КОНФИГУРАЦИИ", + "CONSTRAIN": "ОГРАНИЧЕНИЯ", + "CONTACT": "КОНТАКТ", + "CONVERT": "ПРЕОБРАЗОВАНИЕ", "CSV or JSON: updates existing parameters, adds new ones": "CSV или JSON: обновляет существующие параметры, добавляет новые", "Capture All Positions": "Зафиксировать все положения", + "Capture Pos.": "Запомнить поз.", "Catch Direction": "Направление защёлкивания", "Cells": "Ячейки", "Center X": "Центр X", "Center Y": "Центр Y", "Center of mass": "Центр масс", + "Centre to centre": "От центра до центра", "Chamfer Type": "Тип фаски", "Check collisions": "Проверить столкновения", "Checked": "Включено", "Choose a new plane. Sketch geometry and dimensions stay unchanged in its two-dimensional coordinates.": "Выберите новую плоскость. Геометрия и размеры эскиза останутся неизменными в её двумерных координатах.", + "Choose…": "Выбрать…", + "Circular": "Круговой", + "Circumference": "Окружность", "Close draft": "Закрыть анализ уклонов", "Collisions": "Столкновения", "Colour": "Цвет", + "Comment": "Комментарий", "Component1": "Компонент1", + "Config Table": "Таблица конфигураций", "Configuration": "Конфигурация", "Configuration rules": "Правила конфигурации", - "Construction": "Вспомогательная", "Contact": "Контакт", + "Contact Sets": "Наборы контактов", "Contact sets": "Наборы контактов", "Continuity": "Непрерывность", "Copy Error Message": "Скопировать сообщение об ошибке", @@ -65,57 +95,98 @@ "Counterbore depth": "Глубина цековки", "Countersink angle": "Угол зенковки", "Create Issue — review draft": "Создать Issue — проверить черновик", + "Cross curves": "Поперечные кривые", "Cube": "Куб", + "Current orthographic view (1:1 mm)": "Текущий ортогональный вид (1:1 мм)", + "Current perspective view": "Текущий перспективный вид", + "Curv. Comb": "Гребень кривизны", "Curvature (G2)": "Кривизна (G2)", "Curvature change (G3)": "Изменение кривизны (G3)", "Customize Toolbar": "Настроить панель инструментов", + "Delete": "Удалить", "Delete all": "Удалить все", "Delete rule": "Удалить правило", "Delete the row": "Удалить строку", "Delete the set": "Удалить набор", - "Delete this parameter": "Удалить этот параметр", "Density": "Плотность", + "Dependents": "Зависимые", "Designs you open or save appear here.": "Здесь появляются открытые и сохранённые дизайны.", "Determined by To Object. Choose Angle to edit the angular extent.": "Определяется параметром «До объекта». Выберите «Угол», чтобы задать угловой предел.", "Direction": "Направление", "Discard": "Отменить", + "Do not export hidden edges": "Не экспортировать скрытые рёбра", + "Don't ask again": "Больше не спрашивать", "Double-click to rename": "Двойной щелчок — переименовать", "Double-clicking the middle button in the view: Home (the home view, framing what is shown), Fit (frame what is shown, keeping the orientation) or nothing": "Двойной щелчок средней кнопкой в виде: «Главная» (главный вид, кадрирует показанное), «Вписать» (кадрирует, сохраняя ориентацию) или ничего", "Drive Joint": "Привод сопряжения", "Duration": "Длительность", "Edges": "Рёбра", + "Edit": "Изменить", "Edit Profile Sketch": "Редактировать эскиз профиля", "Enable rule": "Включить правило", "Enabled": "Включено", + "End bulge": "Выпуклость в конце", + "End continuity": "Непрерывность в конце", "Explode": "Разобрать", + "Explode Text": "Разбить текст", "Export Animation…": "Экспортировать анимацию…", + "Export CSV…": "Экспорт CSV…", + "Export Current View as DXF": "Экспортировать текущий вид в DXF", + "Export Current View as DXF…": "Экспортировать текущий вид в DXF…", + "Export DXF": "Экспорт в DXF", + "Export DXF…": "Экспорт в DXF…", + "Export JSON…": "Экспорт JSON…", + "Export hidden edges as dashed lines": "Экспортировать скрытые рёбра штриховыми линиями", + "Expression": "Выражение", "Extend to meet": "Продлить до пересечения", "Extents": "Пределы", + "FILES": "ФАЙЛЫ", + "FLAT": "РАЗВЁРТКА", + "Face": "Грань", "Face attachment lost": "Привязка к грани потеряна", "Faces": "Грани", "Faces / edges / vertices": "Грани / рёбра / вершины", + "Fastener": "Крепёж", + "Favorites": "Избранное", "Favourite": "Избранное", + "Feature": "Операция", "Files from many CAD programs have Y up, so they open lying on their back here (Z up).": "Файлы многих CAD-программ ориентированы Y вверх, поэтому здесь они открываются лёжа на спине (Z вверх).", "Filter": "Фильтр", "Find in Browser": "Найти в браузере", - "Flat": "Плоский", + "Finish": "Завершить", + "Flat Pattern": "Развёртка", "Flat size": "Размер развёртки", "Follow camera (Look At sketches)": "Следовать за камерой (эскизы «Взгляд на»)", "Follow the camera (Look At sketches)": "Следовать за камерой (эскизы «Взгляд на»)", "Font": "Шрифт", + "From Bodies": "Из тел", "From edges": "Начальные рёбра", "Full Length": "Полная длина", + "Gap": "Зазор", "Grid": "Сетка", + "HISTORY": "ИСТОРИЯ", "Height": "Высота", + "Hidden edges": "Скрытые рёбра", + "Holes": "Отверстия", + "Holes (edges on them)": "Отверстия (рёбра на них)", "Home view": "Главный вид", + "Horiz./Vert.": "Гориз./верт.", + "IMAGES": "ИЗОБРАЖЕНИЯ", + "Import…": "Импорт…", "In This Design": "В этом дизайне", + "In place (surfaces)": "На месте (поверхности)", "In plane": "В плоскости", + "Inside": "Внутри", "Interferes": "Пересекается", + "Isocurve": "Изокривая", "Issue title": "Заголовок Issue", + "JOINTS": "СОЕДИНЕНИЯ", "Joint Origin1": "Точка сопряжения1", "Keep (points on it)": "Оставить (точки на нём)", "Keep Tools": "Оставить инструменты", "Keep of the other surface": "Оставить от другой поверхности", + "LIBRARY": "БИБЛИОТЕКА", + "LINKS": "ССЫЛКИ", "Later": "Позже", "Leave it": "Оставить как есть", "Legacy face attachment. Rebinding to a certified face creates an exact attachment.": "Устаревшая привязка к грани. Перепривязка к сертифицированной грани создаёт точную привязку.", @@ -123,54 +194,92 @@ "Length units": "Единицы длины", "Letter Spacing": "Межбуквенный интервал", "Library": "Библиотека", + "Library file": "Файл библиотеки", "Line Spacing": "Межстрочный интервал", + "Local library": "Локальная библиотека", "Loop": "Контур", + "MANAGE": "УПРАВЛЕНИЕ", + "MATERIALS": "МАТЕРИАЛЫ", + "MODEL": "МОДЕЛЬ", + "MOTION": "ДВИЖЕНИЕ", "Margin": "Отступ", "Mass": "Масса", + "Mass Center": "Центр масс", + "Matched restrictions check the final values.": "Ограничения, условия которых выполнены, проверяют итоговые значения.", "Material": "Материал", + "Max": "Макс.", "Mid Radius": "Средний радиус", "Middle double-click": "Двойной щелчок средней кнопкой", + "Min": "Мин.", + "Mitre": "Усовка", + "Model Parameters": "Параметры модели", "Modeled": "Смоделировано", "More toolbar panels": "Другие панели инструментов", "Motion": "Движение", + "Move / Copy": "Переместить / копировать", "Move Type": "Тип перемещения", + "Move down": "Переместить вниз", "Move earlier": "Сдвинуть раньше", "Move later": "Сдвинуть позже", + "Move up": "Переместить вверх", "Name": "Имя", + "Nearest": "Ближайший", + "New": "Создать", + "New Comp.": "Нов. комп.", + "New Sketch": "Новый эскиз", + "New rule…": "Новое правило…", "New study": "Новое исследование", "No crash reports.": "Нет отчётов о сбоях.", + "No matching appearance presets.": "Нет подходящих наборов внешнего вида.", "No matching appearances": "Нет подходящих внешних видов", - "Normal to sketch": "По нормали к эскизу", + "No visible bodies to export.": "Нет видимых тел для экспорта.", + "None": "Нет", "Not available yet": "Пока недоступно", "Notch": "Вырез", + "OUTPUT": "ВЫВОД", "Opacity": "Непрозрачность", "Open GitHub draft": "Открыть черновик на GitHub", + "Open local libraries in the desktop app. You can export this design's library here.": "Открывайте локальные библиотеки в настольном приложении. Здесь можно экспортировать библиотеку этого дизайна.", "Open-source parametric 3D CAD in Rust. Licensed MIT OR Apache-2.0.": "Открытая параметрическая 3D CAD на Rust. Лицензия MIT OR Apache-2.0.", + "Operator": "Оператор", "Other side": "Другая сторона", "Other surface (mutual trim)": "Другая поверхность (взаимная обрезка)", - "Parameter values": "Значения параметров", + "Outside": "Снаружи", + "Overall length": "Общая длина", + "Param. Graph": "Граф параметров", + "Parameter": "Параметр", + "Parts": "Детали", "Pass through": "Через точки", "Path": "Траектория", + "Pattern": "Массив", "Per Edge": "По каждому ребру", "Pick the tool bodies": "Выберите тела-инструменты", + "Picked": "Выбрано", "Picked point": "Выбранная точка", "Place at the origin instead": "Разместить в начале координат", + "Plastic Rules": "Правила для пластика", "Playback": "Воспроизведение", "Plot": "График", "Position": "Положение", "Position (0 to 1)": "Положение (от 0 до 1)", "Position (G0)": "Положение (G0)", "Position along the edge, 0 at the start end, 1 at the other": "Положение вдоль ребра: 0 — начало, 1 — конец", + "Preferences › Design turns the offer back on": "Настройки › Дизайн снова включают это предложение", "Preview Row": "Строка предпросмотра", "Preview leaves the current design unchanged.": "Предпросмотр не меняет текущий дизайн.", + "Profiles/Curves": "Профили/кривые", "Quantity": "Величина", "RECENT": "НЕДАВНИЕ", + "REFERENCE": "ССЫЛОЧНАЯ ГЕОМЕТРИЯ", + "RULED SURFACE": "ЛИНЕЙЧАТАЯ ПОВЕРХНОСТЬ", + "RULES": "ПРАВИЛА", "Radius Fit": "Подобрать радиус", "Ratio": "Отношение", "Reattach selected face": "Перепривязать выбранную грань", "Recover": "Восстановить", "Recover unsaved design?": "Восстановить несохранённый дизайн?", "Rectangular": "Прямоугольная", + "Reference face": "Базовая грань", "Remove Tools": "Убрать инструменты", "Remove from list": "Убрать из списка", "Remove override": "Убрать переопределение", @@ -181,6 +290,9 @@ "Remove this point": "Удалить эту точку", "Report a bug — review a screenshot and open a GitHub draft": "Сообщить об ошибке — проверьте скриншот и откройте черновик на GitHub", "Reset Toolbar": "Сбросить панель инструментов", + "Resize Part": "Изменить размер детали", + "Restore View": "Восстановить вид", + "Restore outer boundary": "Восстановить внешнюю границу", "Restore the inherited component or physical material appearance": "Вернуть унаследованный внешний вид компонента или физического материала", "Result": "Результат", "Retake screenshot": "Сделать скриншот заново", @@ -188,24 +300,35 @@ "Reverse Direction": "Обратить направление", "Revert": "Вернуть", "Revert All Positions": "Вернуть все положения", + "Revert Pos.": "Вернуть поз.", "Revert Position": "Вернуть положение", "Review the report and screenshot before opening GitHub.": "Проверьте отчёт и скриншот перед открытием GitHub.", "Rim Edge": "Кромка обода", "Roll History Marker Here": "Переместить маркер истории сюда", "Round": "Круглая", "Rule": "Правило", + "Rule name": "Имя правила", + "Rules run from top to bottom. Matched drives change effective values.": "Правила выполняются сверху вниз. Управляющие правила, условия которых выполнены, изменяют действующие значения.", + "SECTION": "СЕЧЕНИЕ", + "SURFACE QUALITY": "КАЧЕСТВО ПОВЕРХНОСТИ", "Save Rule": "Сохранить правило", + "Save View": "Сохранить вид", "Save the study as an animated GIF, seen as the viewport shows it": "Сохранить исследование как анимированный GIF, как его показывает видовой экран", "Saved preview. Geometry is being checked before editing.": "Сохранённый предпросмотр. Геометрия проверяется перед редактированием.", "Scale factor": "Коэффициент масштаба", + "Scene": "Сцена", "Search": "Поиск", "Search commands": "Поиск команд", + "Search this library": "Поиск в этой библиотеке", + "Section": "Сечение", "Select Other: hold the left button still on the model (or right-click › Select Other…) to list everything under the cursor; click again on the same spot to select the next thing there. Double-click the middle button to go Home (Preferences › Navigation).": "Выбрать другое: удерживайте левую кнопку на модели (или правый щелчок › Выбрать другое…), чтобы увидеть всё под курсором; повторный щелчок в том же месте выбирает следующий объект. Двойной щелчок средней кнопкой — «Главная» (Настройки › Навигация).", "Select bodies (a face picks its body)": "Выберите тела (выбор грани выбирает её тело)", "Select bodies or faces instead": "Вместо этого выберите тела или грани", "Selection filter": "Фильтр выделения", "Semantic faces share their appearance across instances.": "Семантические грани разделяют внешний вид между вхождениями.", + "Send your report on GitHub": "Отправить отчёт на GitHub", "Shape": "Форма", + "Sheet Rules": "Правила для листового металла", "Show Agent Cursor": "Показывать курсор агента", "Show in folder": "Показать в папке", "Show the pointer an AI agent moves (#35)": "Показывать указатель, которым двигается ИИ-агент (#35)", @@ -217,11 +340,15 @@ "Sketch geometry and profiles": "Геометрия и профили эскиза", "Sketch plane has no body-face attachment.": "Плоскость эскиза не привязана к грани тела.", "Sketch points": "Точки эскиза", + "Slot width": "Ширина паза", "SolidCraft closed before these designs were saved. Their last autosave can be opened.": "SolidCraft закрылся до сохранения этих дизайнов. Можно открыть последнюю автосохранённую версию.", + "Specialise": "Специализировать", "Speed": "Скорость", "Stand it up": "Поставить вертикально", "Stand it up: a quarter turn about X, as one Move feature you can undo.": "Поставить вертикально: четверть оборота вокруг X одной операцией «Переместить», которую можно отменить.", "Stand this part up?": "Поставить эту деталь вертикально?", + "Start bulge": "Выпуклость в начале", + "Start continuity": "Непрерывность в начале", "Step": "Шаг", "Steps": "Шаги", "Stitch the kept pieces": "Сшить оставленные части", @@ -240,29 +367,47 @@ "Then": "Затем", "These features will be deleted:": "Эти операции будут удалены:", "These features will fail:": "Эти операции завершатся с ошибкой:", + "Thickness Outside": "Толщина снаружи", + "Thin": "Тонкий", + "Thin Extrude": "Тонкое выдавливание", "This child is shared. Deleting it removes it from every copy of its parent.": "Этот дочерний объект общий. Его удаление затронет все копии родителя.", "This child is shared. Position changes apply to every copy of its parent.": "Этот дочерний объект общий. Изменения положения применятся ко всем копиям родителя.", "This face cannot provide a durable attachment. Choose another face or explicitly use a fixed plane.": "Эта грань не может обеспечить надёжную привязку. Выберите другую грань или явно используйте фиксированную плоскость.", "To Offset": "До смещения", "To edges": "Конечные рёбра", "Tolerance": "Допуск", + "Too close": "Слишком близко", "Trimming tool (plane, face or curves)": "Инструмент обрезки (плоскость, грань или кривые)", + "Turn off section analysis before exporting the view.": "Отключите анализ сечения перед экспортом вида.", "Type": "Тип", + "UNTRIM": "ОТМЕНА ОБРЕЗКИ", + "Unit": "Единица", "Updating the preview": "Обновление предпросмотра", "Use active author placement": "Использовать активное исходное положение", "Use fixed plane": "Использовать фиксированную плоскость", "Use saved fixed plane": "Использовать сохранённую фиксированную плоскость", "Use selected face as fixed plane": "Использовать выбранную грань как фиксированную плоскость", + "User Parameters": "Пользовательские параметры", "VIEW": "ВИД", + "VIEWS": "ВИДЫ", "Value": "Значение", "Velocity": "Скорость", "Vertices": "Вершины", "View navigator": "Навигатор видов", "Volume": "Объём", "Wall": "Стенка", + "Wall Location": "Расположение стенки", + "Wall Thickness": "Толщина стенки", "When": "Когда", "Width": "Ширина", "Will fail": "Завершится с ошибкой", + "X angle": "Угол X", + "X distance": "Расстояние X", + "Y angle": "Угол Y", + "Y distance": "Расстояние Y", + "Z angle": "Угол Z", + "Z distance": "Расстояние Z", + "Zebra": "Зебра", "angle, height": "угол, высота", "appearance.dielectric_ior": "Показатель преломления диэлектрика", "appearance.metallic": "Металличность", @@ -271,7 +416,13 @@ "appearance.roughness": "Шероховатость", "appearance.surface_response": "Поведение поверхности", "browser.body_name": "Тело{number}", + "browser.calibrate_title": "Калибровка: {name}", + "browser.capture_many": "Компоненты ({count}) перемещены, но их положения не зафиксированы.", + "browser.capture_note": "«Зафиксировать положение» сохраняет новое положение; «Вернуть положение» восстанавливает прежнее.", + "browser.capture_one": "Компонент перемещён, но его положение не зафиксировано.", "browser.component_name": "Компонент{number}", + "browser.edit_canvas_title": "Редактирование холста: {name}", + "browser.move_title": "Переместить: {name}", "browser.parameters": "Параметры ({count})", "browser.precision": "Точность: {precision}", "browser.sketch_name": "Эскиз{number}", @@ -286,6 +437,7 @@ "cmd.appearance_assign": "Внешний вид", "cmd.appearance_library": "Библиотека внешних видов", "cmd.appearance_list": "Список внешних видов", + "cmd.assembly_bom": "Спецификация", "cmd.body_rename": "Переименовать тело", "cmd.browser_group": "Новая группа", "cmd.browser_move": "Переместить объекты браузера", @@ -307,10 +459,13 @@ "cmd.component_insert_design": "Вставить дизайн", "cmd.component_links": "Список связей", "cmd.component_list": "Список компонентов", + "cmd.component_metadata": "Свойства детали", + "cmd.component_metadata_set": "Изменить свойства детали", "cmd.component_move_bodies": "Переместить тела в компонент", "cmd.component_move_sketches": "Переместить эскизы в компонент", "cmd.component_paste_new": "Вставить как новый", "cmd.component_properties": "Физические свойства компонента", + "cmd.component_relink": "Перепривязать источник", "cmd.component_rename": "Переименовать компонент", "cmd.component_revert_position": "Вернуть положение", "cmd.component_unlock": "Разблокировать содержимое", @@ -362,6 +517,7 @@ "cmd.edit_checkpoint": "Контрольная точка", "cmd.edit_restore_checkpoint": "Вернуть контрольную точку", "cmd.engine_commands": "Список команд", + "cmd.engine_describe": "Описание команды", "cmd.explode_create": "Разобранный вид", "cmd.explode_delete": "Удалить разобранный вид", "cmd.explode_list": "Список разобранных видов", @@ -375,6 +531,7 @@ "cmd.file_slicers": "Установленные слайсеры", "cmd.inspect_accessibility": "Анализ доступности", "cmd.inspect_center_of_mass": "Центр масс", + "cmd.inspect_clearance": "Зазор", "cmd.inspect_compare": "Сравнить тела", "cmd.inspect_continuity": "Анализ непрерывности", "cmd.inspect_curvature_comb": "Анализ кривизны (гребёнка)", @@ -384,6 +541,7 @@ "cmd.inspect_interference": "Интерференция", "cmd.inspect_isocurve": "Анализ изолиний", "cmd.inspect_minimum_radius": "Анализ минимального радиуса", + "cmd.inspect_silhouette": "Силуэт", "cmd.inspect_zebra": "Зебра-анализ", "cmd.joint_as_built": "Сопряжение на месте", "cmd.joint_cam": "Кулачок", @@ -392,6 +550,7 @@ "cmd.joint_drive": "Привод сопряжений", "cmd.joint_edit": "Изменить сопряжение", "cmd.joint_gear": "Зубчатая передача", + "cmd.joint_inspect": "Проверить сопряжение", "cmd.joint_limits": "Ограничения сопряжения", "cmd.joint_list": "Список сопряжений", "cmd.joint_motion_link": "Связь движений", @@ -402,11 +561,15 @@ "cmd.joint_screw": "Винт", "cmd.joint_solve": "Решить сопряжения", "cmd.joint_sweep": "Прогон сопряжения", + "cmd.library_apply": "Применить элемент локальной библиотеки", + "cmd.library_export": "Экспорт библиотеки дизайнов", + "cmd.library_inspect": "Просмотр локальной библиотеки", "cmd.material_assign": "Физический материал", "cmd.material_create": "Новый физический материал", "cmd.material_delete": "Удалить физический материал", "cmd.material_edit": "Изменить физический материал", "cmd.material_list": "Список материалов", + "cmd.material_properties_directional": "Направленный модуль упругости", "cmd.material_properties_validate": "Проверить данные физического материала", "cmd.mesh_convert": "Преобразовать меш", "cmd.model_edges": "Список рёбер", @@ -469,6 +632,7 @@ "cmd.sheet_fold": "Гиб", "cmd.sheet_hem": "Кромка", "cmd.sheet_manage_rules": "Правила листового металла", + "cmd.sheet_perforate": "Перфорация", "cmd.sheet_refold": "Повторный гиб", "cmd.sheet_rules": "Список правил листового металла", "cmd.sheet_unfold": "Разогнуть", @@ -514,6 +678,8 @@ "cmd.sketch_isoparametric_curve": "Изопараметрическая кривая", "cmd.sketch_line3d": "3D-линия", "cmd.sketch_line_midpoint": "Линия от середины", + "cmd.sketch_loose_ends": "Свободные концы", + "cmd.sketch_loose_ends_tie": "Связать свободные концы", "cmd.sketch_move": "Переместить/Копировать объекты эскиза", "cmd.sketch_move3d": "Переместить 3D-точку", "cmd.sketch_move_point": "Перетащить точку эскиза", @@ -543,6 +709,7 @@ "cmd.sketch_spline_fit_point": "Сплайн по точкам сглаживания", "cmd.sketch_spun_profile": "Профиль вращения", "cmd.sketch_toggle_driven": "Переключить справочный размер", + "cmd.sketch_trim_path": "Обрезать вдоль пути", "cmd.solid_align": "Выровнять", "cmd.solid_boundary_fill": "Заполнение по границе", "cmd.solid_bounding_solid": "Габаритное тело", @@ -558,8 +725,10 @@ "cmd.surface_blend": "Сопряжённая поверхность", "cmd.surface_boundary": "Поверхность по границе", "cmd.surface_extrude": "Выдавливание поверхности", + "cmd.surface_fair": "Сгладить поверхность", "cmd.surface_fillet": "Скругление поверхности", "cmd.surface_loft": "Лофт поверхности", + "cmd.surface_match": "Согласовать поверхность", "cmd.surface_offset": "Смещённая поверхность", "cmd.surface_patch": "Заплатка", "cmd.surface_reverse_normal": "Обратить нормаль", @@ -570,9 +739,11 @@ "cmd.surface_thicken": "Утолщить", "cmd.surface_unstitch": "Расшить", "cmd.surface_untrim": "Отменить обрезку", + "cmd.timeline_add": "Добавить записанную операцию", "cmd.timeline_compute_all": "Пересчитать всё", "cmd.timeline_copy": "Копировать операции", "cmd.timeline_dependents": "Зависимые операции", + "cmd.timeline_export_script": "Экспорт скрипта команд", "cmd.timeline_inspect": "Инспекция операции", "cmd.timeline_paste": "Вставить операции", "cmd.timeline_redefine": "Изменить операцию", @@ -589,7 +760,15 @@ "cmd.view_navigate": "Навигация вида", "cmd.view_rename": "Переименовать именованный вид", "cmd.view_save": "Новый именованный вид", - "command name": "имя команды", + "color.copy": "Щёлкните, чтобы скопировать значения цвета", + "color.edit": "Щёлкните, чтобы изменить цвет", + "color.gamma": "Значения цвета показаны в гамма-пространстве 0–255", + "color.hue": "Оттенок", + "color.linear": "Значения цвета показаны в линейном пространстве 0–1", + "color.saturation_value": "Насыщенность и яркость", + "color.selected": "Выбранный цвет", + "contact.components_count": "Компонентов: {count}", + "contact.enabled_label": "включено", "coupling.gear_1": "Шестерня 1", "coupling.gear_1_pick": "Шестерня 1 (необязательно)", "coupling.gear_2": "Шестерня 2", @@ -606,7 +785,30 @@ "coupling.rack": "Рейка", "coupling.radius_1": "Радиус 1", "coupling.radius_2": "Радиус 2", + "crash.announce": "В прошлый раз SolidCraft неожиданно закрылся или столкнулся с внутренней ошибкой. Отчёт о сбое сохранён (Справка > Отчёты о сбоях…).", + "crash.copy_folder": "Копировать путь к папке", + "crash.copy_path": "Копировать путь", + "crash.deleted": "Удалено отчётов: {count}.", + "crash.detected_time": "Обнаружено {time} UTC", + "crash.intro": "Отчёты о сбоях хранятся на этом компьютере и никуда не отправляются. «Отправить отчёт…» открывает черновик, который вы проверяете до отправки.", + "crash.kind_command": "Внутренняя ошибка в команде", + "crash.kind_internal": "Внутренняя ошибка", + "crash.kind_kernel": "Ошибка ядра (восстановлено)", + "crash.kind_unclean": "Неожиданное закрытие", + "crash.previous_session": "Предыдущий сеанс SolidCraft завершился неожиданно или столкнулся с внутренней ошибкой. Отчёты о некорректных завершениях выявляются при запуске. Подробности: Справка > Отчёты о сбоях…", + "crash.replayable": "воспроизводимый", + "crash.report": "Отправить отчёт…", + "crash.unclean_explanation": "Обнаружено при следующем запуске; точное время завершения не записано. Некорректное завершение могут вызвать и выключение системы или принудительная остановка.", + "delete.and_more": "… и ещё {count}", + "dialog.bodies_count": "Тел: {count}", + "dialog.clearance_invalid": "зазор должен быть длиной 0 или больше", + "dialog.compute": "Вычислить", + "dialog.compute_again": "Вычислить снова", + "dialog.computing": "Вычисление… {seconds} с", + "dialog.could_not_be_checked": "не удалось проверить", "dialog.custom_axis": "↖ Своя ось", + "dialog.dimension_insert_hint": "Дважды щёлкните другой управляющий размер, чтобы вставить его имя", + "dialog.dimension_name": "Размер: {name}", "dialog.edit_title": "ИЗМЕНИТЬ: {title}", "dialog.select": "↖ Выбрать", "dialog.selected_count": "↖ Выбрано: {count}", @@ -618,9 +820,42 @@ "drive.stopped_by_contact": "Остановлено на {value}: {a} прошёл бы сквозь {b}", "drive.stopped_by_loop": "Остановлено на {value}: контур через {joint} дальше не замыкается", "drive.unconnected": "Ничего не движется: {part} не соединён ни с чем закреплённым", - "expression, e.g. 25 mm": "выражение, напр. 25 мм", + "dxf.cancel_wait": "Ожидание остановки экспорта…", + "dxf.cancelled": "Экспорт в DXF отменён", + "dxf.cancelling": "Отмена экспорта в DXF", + "dxf.exporting": "Экспорт в DXF", + "dxf.invalid_tolerance": "Допуск кривых должен быть от 0,0001 до 1 мм.", + "dxf.progress.index": "Подготовка поверхностей (2/5)", + "dxf.progress.meshes": "Подготовка сеток (1/5)", + "dxf.progress.occlusion": "Определение скрытых линий (4/5)", + "dxf.progress.projection": "Проецирование геометрии (3/5)", + "dxf.progress.write": "Запись DXF (5/5)", + "dxf.tolerance": "Допуск кривых", + "dxf.tolerance_help": "Только видимые тела. Кривые аппроксимируются отрезками. Меньший допуск даёт более точные кривые, но требует больше времени и памяти.", + "file_load.built": "Построено: {built} из {total} операций.", + "file_load.converting": "Преобразование тела {done} из {total}", + "file_load.inserting": "Вставка геометрии", + "file_load.opening": "Открытие дизайна", + "file_load.preparing_thumbnail": "Подготовка миниатюры...", + "file_load.preparing_view": "Подготовка вида...", + "file_load.preview_note": "Сохранённый предпросмотр. Перед редактированием проверяется геометрия.", + "file_load.reading": "Чтение файла...", + "file_load.reading_percent": "Чтение файла... {percent}%", + "file_load.rebuilding": "Перестроение операции {done} из {total}", + "file_load.recovering": "Восстановление дизайна", + "file_load.stopping": "Ожидание остановки предыдущей операции...", + "file_load.waiting": "Ожидание файловой операции", "fits the face, e.g. M8": "подходит грани, напр. M8", "from the rule": "из правила", + "help.apache": "Лицензия Apache 2.0", + "help.attributions": "Сведения об авторстве (ATTRIBUTION.md)", + "help.build": "Версия {version} · коммит {commit} · сборка от {date}", + "help.font_details": "Интерфейс использует встроенные шрифты egui (Ubuntu Light и Hack под лицензиями Ubuntu Font Licence и MIT/Bitstream Vera; Noto Emoji и шрифт значков эмодзи под лицензиями OFL и MIT). Для текста эскизов используется Liberation Sans (SIL OFL 1.1). Необязательный пакет шрифтов The Crafting Apps, craft-fonts (BIZ UDPGothic, Shippori Mincho, BIZ UDMincho, Noto Sans CJK SC, Noto Sans Arabic; SIL OFL 1.1), не входит в сборки SolidCraft.", + "help.fonts": "Шрифты", + "help.licences": "Лицензии", + "help.mit": "Лицензия MIT", + "help.notice": "NOTICE", + "help.third_party": "Лицензии сторонних компонентов", "home.documentation": "Документация", "home.in_this_browser": "в этом браузере", "home.missing": "отсутствует", @@ -646,20 +881,66 @@ "install.menu": "Установить приложение…", "install.steps_intro": "Safari устанавливает веб-приложения через собственные меню:", "install.title": "Установка SolidCraft", + "issue.body_label": "Текст отчёта", + "issue.note_image_copied": "Вставьте изображение в черновик на GitHub или сохраните PNG, если копирование изображения недоступно.", + "issue.note_opened": "Проверьте черновик на GitHub и приложите снимок экрана. Опубликует его кнопка Submit new issue на GitHub.", + "issue.note_opened_copied": "Отчёт скопирован. Вставьте его в черновик на GitHub, приложите снимок экрана и нажмите Submit new issue.", + "issue.note_removed": "Снимок экрана удалён из этого черновика.", + "issue.note_report_copied": "Отчёт скопирован. При необходимости вставьте его в черновик на GitHub.", + "issue.note_save_failed": "Не удалось сохранить снимок экрана: {error}", + "issue.note_saved": "Снимок экрана сохранён. Приложите PNG в черновике на GitHub.", + "issue.save_screenshot": "Сохранить снимок экрана…", "joint.from_bodies_hint": "Каждое выбранное тело переходит в свой новый компонент и остаётся на месте.", "joint.one_body": "Оба выбора на {body}. Выберите второй на другой детали.", "joint.one_component": "Эти детали - тела одного компонента: {bodies}. Сопряжение двигает один компонент относительно другого, поэтому каждой детали нужен свой компонент.", + "keymap.command_id": "ID команды", + "keymap.empty": "Нет подходящих команд", + "keymap.use_anyway": "Всё равно использовать здесь {key}", + "manage.appearance_hint": "Выберите внешний вид для выделенных объектов или перетащите образец на тело или грань.", + "manage.assign_hint": "Выберите тела и правило проектирования пластиковых деталей для них.", + "manage.config_hint": "Измените строки, столбцы и правила конфигурации, затем активируйте строку или просмотрите её.", + "manage.empty": "Нет подходящих строк.", + "manage.material_hint": "Выберите тела и их физический материал.", + "manage.parameters_hint": "Измените выражения и единицы. Изменения применяются по нажатию Enter или при выходе из поля.", + "manage.rules_hint": "Выберите правило для редактирования или создайте новое. Подтвердите, чтобы сохранить правило.", + "measure.at": "В точке", + "measure.item": "Элемент {number}", + "messages.ago_h": "{n} ч назад", + "messages.ago_min": "{n} мин назад", + "messages.ago_s": "{n} с назад", + "messages.chip_hint": "Щёлкните, чтобы увидеть все сообщения этого сеанса", + "messages.clear": "Очистить", + "messages.copy_all": "Копировать все", + "messages.menu": "Сообщения…", + "messages.none": "Сообщений пока нет.", + "messages.title": "Сообщения", "motion.checked_to": "Проверено только до шага {step}: проверка исчерпала свой бюджет работы", "motion.collision": "{a} · {b}: шаги {steps}", + "motion.delete_key": "Удалить ключевой кадр", "motion.duration_hint": "секунды (пусто: на шаг)", + "motion.key_here": "Вставить ключевой кадр здесь", + "motion.key_here_hint": "Добавить ключевой кадр на этом шаге с текущим значением сопряжения", "motion.no_collisions": "За всё исследование столкновений нет", + "motion.step_back": "Шаг назад", + "motion.step_forward": "Шаг вперёд", + "motion.to_end": "В конец", + "motion.to_start": "В начало", + "motion.track_name": "Дорожка {number}", + "nav.touchpad.help": "Удерживайте Shift и двигайте указатель для панорамирования; удерживайте Alt/Option и двигайте для вращения. Нажимать кнопку мыши не нужно. Вертикальная прокрутка изменяет масштаб.", + "nav.touchpad.label": "Тачпад", + "nav.touchpad.orbit": "Вращение (удерживайте Alt/Option и двигайте; без кнопки мыши)", + "nav.touchpad.pan": "Панорамирование (удерживайте Shift и двигайте; без кнопки мыши)", + "nav.touchpad.scroll": "На тачпаде масштаб меняется вертикальной прокруткой. Настройка панорамирования двумя пальцами сохраняется для других пресетов.", + "nav.touchpad.zoom": "Масштаб (вертикальная прокрутка или щипок)", "needs two joints": "нужны два сопряжения", "new configuration": "новая конфигурация", - "new name": "новое имя", "new parameter": "новый параметр", + "no hole": "без отверстия", "no interference": "нет интерференции", "no joint that moves yet": "пока нет подвижных сопряжений", "no picture": "нет картинки", + "none": "нет", + "parts.automatic_name": "автоматически", "pattern.alignment_2": "Выравнивание 2", "pattern.alignment_hint": "Количество включает оригинал. Центрирование распределяет копии по обе стороны; при чётном количестве смена направления выбирает сторону с дополнительной копией.", "pattern.direction_1": "Направление 1", @@ -667,12 +948,19 @@ "pattern.flip_direction": "Изменить направление", "pick a hole to seat it, or OK places it at the origin": "выберите отверстие для установки, или OK разместит в начале координат", "pick one or two vertices, edges or faces": "выберите одну-две вершины, ребра или грани", + "prefs.cpu": "ЦП (программный)", + "prefs.minutes_suffix": " min", + "properties.title": "Свойства: {name}", + "recovery.days_ago": "{count} дн. назад", + "recovery.detail": "{file} · операций: {features} · автосохранение {when}", + "recovery.hours_ago": "{count} ч назад", + "recovery.just_now": "только что", + "recovery.min_ago": "{count} мин назад", + "recovery.never_saved": "не сохранялось", "render.background": "Фон сцены", "render.fit": "Вписать модель", - "render.image_cancel": "Отменить рендеринг", "render.image_cancelled": "Рендеринг отменён", "render.image_cancelling": "Отмена", - "render.image_check": "Проверить запрос рендеринга", "render.image_completed": "Изображение готово к экспорту", "render.image_encoding": "Кодирование PNG", "render.image_export": "Экспорт PNG", @@ -719,6 +1007,21 @@ "sample.plate.name": "Образец пластины", "sample.vents.about": "Пазы в прямоугольном массиве: число рядов, столбцов и шаг заданы параметрами", "sample.vents.name": "Вентиляционная пластина", + "search.command_keys": "Enter выполнить Shift+Enter выполнить и оставить открытым Esc закрыть", + "search.commands": "Команды", + "search.design": "В этом дизайне", + "search.feature": "Операция", + "search.invalid": "Недопустимо", + "search.keys": "↑ ↓ выбрать Enter выполнить Tab подставить имя Esc закрыть", + "search.no_match": "Нет команды, соответствующей «{query}»", + "search.parameter": "Параметр", + "search.recent": "Недавние", + "search.run": "Выполнить команду", + "search.suggest": "Вы имели в виду {label}?", + "search.try": "Введите название команды, операцию этого дизайна или параметр. Чтобы выполнить команду со значениями, введите её id и объект JSON: {example}", + "search.valid": "Допустимо", + "settings.display_quality_note": "Более высокие уровни рисуют криволинейные грани и рёбра глаже, но сетка строится дольше. Меняется только видовой экран, но не дизайн и не экспорт.", + "settings.frame_rate_note": "Показывает кадры в секунду в правом нижнем углу вида. Пока включено, вид перерисовывается непрерывно.", "settings.measure_axis_distances": "Расстояния X/Y/Z", "settings.measure_axis_distances_help": "Показывать размеры вдоль мировых осей вместе с общим расстоянием, пока открыто окно измерения.", "settings.msaa_applies_on_restart": "Сглаживание вступит в силу при следующем запуске SolidCraft", @@ -726,29 +1029,52 @@ "settings.msaa_unsupported": "Не поддерживается этим графическим устройством", "settings.reset_intro": "Эти настройки не работают на этом компьютере и могли бы помешать запуску SolidCraft, поэтому они были изменены:", "settings.reset_title": "Настройки были изменены", + "settings.supersampling_note": "Рисует вид в более высоком разрешении и уменьшает его: рёбра, линии и сетка выглядят глаже на экранах ниже 4K. Требует времени GPU: около 2,25× пикселей при 1,5× и 4× при 2×.", + "shortcut.json_error": "параметры должны быть в формате JSON: {error}", + "shortcut.no_command": "команда `{id}` не найдена; текст перед JSON должен быть ID команды", + "shortcut.pin": "Закрепить вверху поля S", + "shortcut.unpin": "Открепить", "sketch.degrees_of_freedom": "Степеней свободы: {count}", + "sketch.dof_left": "Осталось степеней свободы: {count}", + "sketch.dof_left_one": "Осталась {count} степень свободы", "sketch.draw_curves": "Рисовать как {linetype}", "sketch.make_selection": "Преобразовать выделение в {linetype}", + "sketch.open_ends": "Открытых: {count}", + "sketch.untied_ends": "Несвязанных: {count}", + "sketch_panel.attached": "Привязано к {body} / {path}", + "sketch_panel.author": "Исходное размещение: {path}", + "sketch_panel.dimension_hint": "Введите значение или выражение, затем нажмите OK.", + "sketch_panel.move_hint": "Введите расстояния и угол, затем нажмите OK.", + "sketch_panel.redefine_title": "{command}: {name}", + "sketch_panel.sheet_attachment": "Привязано к плоской грани листового тела; следует за этой панелью при изменении листа.", + "sketch_panel.text_hint": "Измените текст и его размещение, затем нажмите OK.", + "sketch_panel.use_plane": "Использовать плоскость {plane}", "sketch_text.align_center": "По центру", "sketch_text.align_left": "По левому краю", "sketch_text.align_right": "По правому краю", "sketch_text.bold": "Полужирный", "sketch_text.builtin_font": "{family} (встроенный)", - "sketch_text.font_search": "Поиск шрифтов", "sketch_text.italic": "Курсив", "sketch_text.loading_fonts": "Поиск установленных шрифтов…", "sketch_text.on_path": "Текст следует по траектории: кривая задаёт его положение", "sketch_text.path_clear": "Снять текст с кривой", "sketch_text.path_hint": "Кривая эскиза, вдоль которой идёт текст: щёлкните здесь, затем по кривой", "sketch_text.use_font_file": "Использовать файл шрифта {path}", + "solid": "тело", "the parts library is not available": "библиотека деталей недоступна", + "thread.automatic_size": "Автоматический размер", + "thread.designation": "Обозначение", + "thread.iso_metric": "Метрическая ISO", + "thread.select_size": "Выберите размер", "timeline.group": "Новая папка операций", "timeline.move_many": "Переместить объекты шкалы", "timeline.move_to_group": "Переместить операции в папку", "timeline.rename_group": "Переименовать папку операций", "timeline.reorder_many": "Изменить порядок операций", "timeline.ungroup": "Убрать папки операций", + "to the face": "до грани", "to the next face": "до следующей грани", + "toolbar.customize_note": "Вкладка {tab}. Отметьте команду, чтобы добавить её кнопку на панель инструментов. Можно также перетащить строку из выпадающего меню панели на панель инструментов, перетащить кнопку за пределы панели для удаления или использовать значок закрепления в строке выпадающего меню.", "toolbar.image": "ИЗОБРАЖЕНИЕ", "toolbar.render": "РЕНДЕРИНГ", "toolbar.render_scene": "СЦЕНА", @@ -757,13 +1083,203 @@ "trace.stopped_by_loop": "Заканчивается на отсчёте {sample}: контур через {joint} дальше не замыкается", "ui.1_degree_of_freedom": "1 степень свободы", "ui.3d_mouse_speed": "Скорость 3D-мыши", - "ui.3d_mouse_windows": "3D-мышь", "ui.3d_sketch": "3D-эскиз", - "ui.about": "О программе", "ui.activate": "Активировать", "ui.active_component": "Активный компонент", + "ui.add_configuration": "Добавить конфигурацию", + "ui.add_parameter": "Добавить параметр", + "ui.agent_chat": "Чат с агентом", + "ui.agent_chat_add": "Прикрепить файлы", + "ui.agent_chat_add_file": "Выбрать файл…", + "ui.agent_chat_allow": "Разрешить", + "ui.agent_chat_allowed": "Разрешено", + "ui.agent_chat_answered": "Ответ: {option}", + "ui.agent_chat_approval": "Разрешить агенту сделать это?", + "ui.agent_chat_attach_view": "Прикрепить вид", + "ui.agent_chat_attach_view_tip": "Отправить с сообщением изображение текущего вида", + "ui.agent_chat_attachable": "Изображения, PDF, текст и файлы CAD", + "ui.agent_chat_auth_agent": "Войти через {name}", + "ui.agent_chat_auth_env": "Задайте {vars} в окружении и перезапустите SolidCraft.", + "ui.agent_chat_auth_needed": "Агент просит войти в систему. Вход выполняется через самого агента; SolidCraft никогда не видит ваш пароль или ключи.", + "ui.agent_chat_auth_none": "Агент не предлагает способа входа: войдите так, как описано в его документации.", + "ui.agent_chat_auth_retry": "Я вошёл: подключиться снова", + "ui.agent_chat_auth_terminal": "Выполните это в терминале, затем снова нажмите «Подключить»:", + "ui.agent_chat_auth_title": "Вход в агент", + "ui.agent_chat_cancel": "Отмена", + "ui.agent_chat_changes": "Изменений: {n}, один шаг отмены", + "ui.agent_chat_changes_of": "Изменений: {n}/{limit}", + "ui.agent_chat_close": "Закрыть", + "ui.agent_chat_command": "Команда агента", + "ui.agent_chat_connect": "Подключить", + "ui.agent_chat_copy": "Копировать", + "ui.agent_chat_custom_hint": "Любая программа, поддерживающая Agent Client Protocol через stdin и stdout. Оболочка для запуска не используется.", + "ui.agent_chat_denied": "Отклонено", + "ui.agent_chat_deny": "Отклонить", + "ui.agent_chat_desktop_only": "Чат с агентом требует настольного приложения.", + "ui.agent_chat_detecting": "Поиск агентов…", + "ui.agent_chat_dock": "Закрепить в боковой панели", + "ui.agent_chat_dock_left": "Закрепить слева", + "ui.agent_chat_dock_right": "Закрепить справа", + "ui.agent_chat_drop_hint": "Отпустите, чтобы прикрепить к следующему сообщению", + "ui.agent_chat_edit": "Изменить", + "ui.agent_chat_exited": "Агент остановлен.", + "ui.agent_chat_failed_start": "Не удалось запустить агент: {error}", + "ui.agent_chat_file_cad_not_read": "{name}: файл CAD импортируется в дизайн, а не читается", + "ui.agent_chat_file_empty_picture": "{name}: пустое изображение", + "ui.agent_chat_file_error": "{name}: {error}", + "ui.agent_chat_file_heic": "{name}: изображения HEIC здесь не читаются; сначала экспортируйте в JPEG или PNG", + "ui.agent_chat_file_importing": "Импорт в дизайн…", + "ui.agent_chat_file_kinds": "{name}: можно прикреплять изображения (PNG, JPEG, GIF, WebP, BMP, TIFF), текстовые файлы (включая SVG) и файлы CAD (STEP, IGES, FreeCAD, Rhino, STL, 3MF, OBJ, glTF)", + "ui.agent_chat_file_loading": "Чтение файла…", + "ui.agent_chat_file_not_a_file": "{name}: не файл", + "ui.agent_chat_file_not_a_picture": "{name}: не изображение", + "ui.agent_chat_file_not_utf8": "{name}: не текст UTF-8", + "ui.agent_chat_file_picture_too_big": "{name}: изображение не может быть больше {max} МБ", + "ui.agent_chat_file_text_too_big": "{name}: текстовый файл не может быть больше {max} КБ", + "ui.agent_chat_file_too_large": "{name}: слишком большой", + "ui.agent_chat_file_too_large_to_send": "{name}: слишком большой для отправки, даже после уменьшения", + "ui.agent_chat_file_unreadable_picture": "{name}: изображение, которое не удаётся прочитать", + "ui.agent_chat_files": "Файлы: {files}", + "ui.agent_chat_files_left_out": "К одному сообщению можно приложить не более {max} файлов; не добавлены: {files}", + "ui.agent_chat_files_loading": "Ожидание чтения файлов", + "ui.agent_chat_files_max": "Не более {max} файлов в одном сообщении", + "ui.agent_chat_import_failed": "{name}: не удалось импортировать: {error}", + "ui.agent_chat_intro": "Общайтесь с уже используемым кодирующим агентом или выбранной конечной точкой модели. Он работает с открытым дизайном через инструменты SolidCraft: изменения видны по мере выполнения и отменяются одним шагом на сообщение. Что ему разрешено без запроса, задаётся в Настройки > ИИ.", + "ui.agent_chat_key_in_env": "ключ задан", + "ui.agent_chat_left": "Слева", + "ui.agent_chat_limit": "Агент достиг предела в {limit} изменений на одно сообщение. Отправьте ещё одно сообщение, чтобы он продолжил.", + "ui.agent_chat_minimize": "Свернуть в полосу", + "ui.agent_chat_model_tip": "Модель, которую использует агент. Ваш выбор запоминается для этого агента.", + "ui.agent_chat_new": "Новый чат", + "ui.agent_chat_new_confirm": "Начать новый чат? Текущий будет очищен.", + "ui.agent_chat_next_picture": "Следующее изображение", + "ui.agent_chat_no_cli": "solidcraft-cli не найден рядом с приложением, поэтому агент не может получить доступ к дизайну.", + "ui.agent_chat_no_control": "Конечная точка чата с агентом не запустилась, поэтому агент не может получить доступ к дизайну.", + "ui.agent_chat_no_images": "Этот агент не принимает изображения", + "ui.agent_chat_no_picture": "В буфере обмена нет изображения", + "ui.agent_chat_none_found": "Кодирующий агент не найден. Установите один из них и нажмите «Обновить»:", + "ui.agent_chat_none_found_short": "Агент не найден", + "ui.agent_chat_not_installed": "Не установлен", + "ui.agent_chat_not_signed_in": "вход не выполнен", + "ui.agent_chat_own_window": "Отдельное окно", + "ui.agent_chat_paste_picture": "Вставить изображение", + "ui.agent_chat_permission": "Агент просит выполнить: {title}", + "ui.agent_chat_pick": "Агент", + "ui.agent_chat_placeholder": "Попросите агента изменить дизайн…", + "ui.agent_chat_placeholder_busy": "Поставьте сообщение в очередь на момент, когда агент закончит (Ctrl+Enter: отправить сейчас)", + "ui.agent_chat_pop_out": "Открыть в отдельном окне, которое можно перенести на другой экран", + "ui.agent_chat_previous_picture": "Предыдущее изображение", + "ui.agent_chat_privacy": "Ничего не уходит никуда, кроме запускаемого вами агента, под вашей учётной записью.", + "ui.agent_chat_privacy_note": "SolidCraft ничего никуда не отправляет: запускаемый вами агент обращается к своему сервису под вашей учётной записью. SolidCraft никогда не видит и не хранит ключ или пароль.", + "ui.agent_chat_queue": "В очередь", + "ui.agent_chat_queue_full": "Слишком много сообщений в ожидании: удалите одно или дождитесь агента.", + "ui.agent_chat_queued": "В очереди", + "ui.agent_chat_queued_stopped": "В очереди (остановлено, не отправлено)", + "ui.agent_chat_refresh": "Обновить", + "ui.agent_chat_refused": "Агенту не разрешено: {reason}", + "ui.agent_chat_remove": "Убрать из очереди", + "ui.agent_chat_remove_file": "Убрать из этого сообщения", + "ui.agent_chat_remove_imported": "Убрать из этого сообщения; деталь останется в дизайне (Отмена удалит её)", + "ui.agent_chat_right": "Справа", + "ui.agent_chat_save": "Сохранить", + "ui.agent_chat_send": "Отправить", + "ui.agent_chat_send_now": "Отправить сейчас", + "ui.agent_chat_send_now_tip": "Остановить текущий шаг агента и отправить это следующим (Ctrl+Enter)", + "ui.agent_chat_side": "Сторона чата с агентом", + "ui.agent_chat_signed_in": "вход выполнен", + "ui.agent_chat_state_auth": "Требуется вход", + "ui.agent_chat_state_busy": "Работает…", + "ui.agent_chat_state_exited": "Агент остановлен", + "ui.agent_chat_state_off": "Не подключён", + "ui.agent_chat_state_ready": "Готов", + "ui.agent_chat_state_starting": "Запуск…", + "ui.agent_chat_stop": "Остановить", + "ui.agent_chat_stop_tip": "Остановить агента и всё, что он запустил", + "ui.agent_chat_stop_turn_tip": "Остановить агента (Esc). Сообщения в очереди остаются в очереди.", + "ui.agent_chat_turn_limit": "Изменений на сообщение", + "ui.agent_chat_undo_changes": "Отменить эти изменения", + "ui.agent_chat_undo_label": "Чат с агентом: {message}", + "ui.agent_chat_undone": "(отменено)", + "ui.agent_chat_view_attached": "Вид прикреплён", "ui.agent_cursor": "Курсор агента", "ui.agent_cursor_speed": "Скорость курсора агента", + "ui.ai_add": "Добавить", + "ui.ai_add_agent": "Добавить агент…", + "ui.ai_add_agent_title": "Добавить агент", + "ui.ai_add_api": "API, совместимый с OpenAI", + "ui.ai_add_custom": "Своя команда", + "ui.ai_add_installed": "Установленный агент", + "ui.ai_add_installed_note": "Ваша собственная запись для установленного агента, например с другими аргументами. Установленные агенты перечисляются сами.", + "ui.ai_added": "добавлен", + "ui.ai_agent_mode_tip": "Собственный режим агента: его инструменты (оболочка, правка файлов) подчиняются ему. Инструменты SolidCraft подчиняются разрешениям в Настройки > ИИ.", + "ui.ai_agents": "Агенты", + "ui.ai_always_allow": "Всегда разрешать", + "ui.ai_always_allow_tip": "Разрешить {tool} для этого агента впредь без запроса", + "ui.ai_always_allowed": "Всегда разрешено", + "ui.ai_always_allowed_none": "Пока ничего не разрешено навсегда. Ответы «Всегда разрешать», данные в чате, перечисляются здесь.", + "ui.ai_auto_allowed": "Разрешено автоматически: {title} ({why})", + "ui.ai_auto_mode": "ваша настройка разрешений", + "ui.ai_auto_ours": "SolidCraft сам проверяет свои инструменты", + "ui.ai_auto_remembered": "вы выбрали «Всегда разрешать»", + "ui.ai_bad_url": "Введите URL, начинающийся с http:// или https://", + "ui.ai_base_url": "Базовый URL", + "ui.ai_button": "ИИ", + "ui.ai_command_hint": "my-agent --acp", + "ui.ai_copy_suffix": "копия", + "ui.ai_custom_url": "Свой URL", + "ui.ai_default": "По умолчанию", + "ui.ai_http_busy": "конечная точка занята или превысила лимит; повторите позже", + "ui.ai_http_key": "конечная точка отклонила ключ: проверьте его в Настройки > ИИ", + "ui.ai_http_not_found": "нет такой конечной точки или модели: проверьте базовый URL и имя модели", + "ui.ai_key": "Ключ API", + "ui.ai_key_hint": "необязательно; хранится в системной связке ключей", + "ui.ai_key_needs_https": "Ключ отправляется только по HTTPS или на этот компьютер.", + "ui.ai_key_note": "Хранится в системной связке ключей, а не в настройках SolidCraft. Для локального сервера оставьте пустым.", + "ui.ai_keychain_error": "Системная связка ключей отказала: {error}", + "ui.ai_mode_all": "Разрешать всё", + "ui.ai_mode_all_note": "Ничего не спрашивается. Отчёты о сбоях остаются недоступными, ограничения по папкам действуют.", + "ui.ai_mode_all_warning": "Агент может сохранять, перезаписывать, экспортировать и заменять ваш дизайн без запроса. Используйте это только с доверенным агентом и для сохранённых дизайнов.", + "ui.ai_mode_ask": "Спрашивать каждый раз", + "ui.ai_mode_ask_note": "Каждое изменение дизайна и каждое действие с файлами ждёт вашего «Разрешить».", + "ui.ai_mode_edits": "Автоматически разрешать правки модели", + "ui.ai_mode_edits_note": "Команды моделирования выполняются без запроса; сохранение, открытие, экспорт и другие файловые или разрушающие действия по-прежнему требуют подтверждения.", + "ui.ai_mode_global": "Как задано выше", + "ui.ai_model": "Модель", + "ui.ai_model_hint": "qwen3:14b", + "ui.ai_modes_scope": "Эти настройки относятся к инструментам SolidCraft. Собственные инструменты агента (его оболочка, правка файлов) подчиняются его собственному режиму, который выбирается в заголовке панели чата, если у агента есть режимы.", + "ui.ai_name": "Имя", + "ui.ai_name_hint": "Мой агент", + "ui.ai_need_command": "Введите команду запуска агента", + "ui.ai_need_model": "Введите имя модели", + "ui.ai_no_answer": "Агент не ответил вовремя", + "ui.ai_no_http": "Эта сборка не может обращаться к конечным точкам API", + "ui.ai_no_keychain": "Системная связка ключей недоступна, поэтому ключ сохранить нельзя. Локальный сервер без ключа по-прежнему работает.", + "ui.ai_panel": "Панель", + "ui.ai_permissions": "Разрешения", + "ui.ai_preset": "Пресет", + "ui.ai_remove": "Удалить", + "ui.ai_request_limit": "остановлено после 24 запросов на одно сообщение; отправьте ещё одно сообщение, чтобы продолжить", + "ui.ai_reset": "Сбросить", + "ui.ai_settings": "Настройки ИИ…", + "ui.ai_show_features": "Показывать функции ИИ", + "ui.ai_show_features_note": "Чат с агентом: панель, в которой уже используемый вами кодирующий агент или выбранная конечная точка модели работает с открытым дизайном. Выключено: нет кнопки ИИ, сочетания клавиш, пункта меню и панели, ничего не ищется и не запускается.", + "ui.ai_switch_tip": "Сменить агента для этого разговора", + "ui.ai_test": "Проверить", + "ui.ai_test_acp_ok": "Отвечает: {agent}", + "ui.ai_test_acp_tip": "Ненадолго запускает агент, запрашивает у него сеанс и снова завершает его", + "ui.ai_test_api_tip": "Запрашивает у конечной точки список моделей", + "ui.ai_test_no_model": "Доступно: моделей {count}, но нет {model}", + "ui.ai_test_ok": "Доступно: моделей {count}", + "ui.ai_testing": "Проверка…", + "ui.ai_tool_done": "готово", + "ui.ai_tool_failed": "сбой", + "ui.ai_tool_running": "выполняется", + "ui.ai_tool_unfold": "Щёлкните, чтобы показать результат", + "ui.ai_tool_waiting": "ожидание", + "ui.ai_toolbar_button": "Показывать кнопку «Ассистент» в панели приложения", + "ui.ai_toolbar_button_note": "Кнопка «Ассистент» в панели приложения. Ctrl+Shift+A и меню «Вид» по-прежнему открывают панель.", + "ui.ai_undo_tip": "Отменить всё, что агент изменил для этого сообщения, одним шагом", + "ui.ai_url_hint": "https://example.com/v1", "ui.all": "Все", "ui.ambient_occlusion": "Окружающее затенение", "ui.ambient_occlusion_help": "Мягкое затенение в местах соприкосновения непрозрачных поверхностей. Требуется видовой экран GPU.", @@ -777,15 +1293,23 @@ "ui.anti_aliasing": "Сглаживание", "ui.apply": "Применить", "ui.arc": "Дуга", - "ui.assemble": "Сборка", + "ui.assistant": "Ассистент", + "ui.assistant_waiting": "Ожидают подтверждения: {count}", "ui.autosave_every": "Автосохранение каждые", "ui.axes": "Оси", "ui.axis": "Ось", "ui.back": "Назад", "ui.base_point": "Базовая точка", + "ui.blocked": "Заблокировано", "ui.bodies": "Тела", + "ui.bodies_all_if_none": "Тела (все, если не выбраны)", "ui.box": "Бокс", "ui.break": "Разорвать", + "ui.browser_bodies_one": "{count} тело", + "ui.browser_bodies_other": "{count} тел", + "ui.browser_collapse": "Свернуть браузер", + "ui.browser_expand": "Развернуть браузер", + "ui.browser_title": "Браузер", "ui.calibrate": "Калибровать", "ui.cancel": "Отмена", "ui.canvases": "Подложки", @@ -795,7 +1319,6 @@ "ui.chamfer": "Фаска", "ui.chamfer_type": "Тип фаски", "ui.change_workspace": "Сменить рабочую область", - "ui.chord_length": "Длина хорды", "ui.circle": "Окружность", "ui.circular_pattern": "Круговой массив", "ui.clear": "Очистить", @@ -828,13 +1351,14 @@ "ui.command_done": "{command} — готово", "ui.command_palette_hint": "Введите команду, напр. {example} — или нажмите S для поиска", "ui.concentric": "Концентричность", - "ui.configurations": "Конфигурации", "ui.conic_curve": "Коническая кривая", "ui.constant": "Постоянный", "ui.constraints_conflict": "Ограничения конфликтуют", - "ui.construct": "Построение", "ui.construction": "Вспомогательная", "ui.context_menu": "Контекстное меню", + "ui.continuity_g0": "G0, излом", + "ui.continuity_g1": "G1, касательная", + "ui.continuity_g2": "G2, кривизна", "ui.continuity_gap": "Зазор", "ui.copy": "Копировать", "ui.corner": "Угол", @@ -855,7 +1379,6 @@ "ui.cylinder": "Цилиндр", "ui.dark": "Тёмная", "ui.default_modelling_orientation": "Ориентация моделирования по умолчанию", - "ui.degrees_of_freedom": "степеней свободы", "ui.delete": "Удалить", "ui.depth": "Глубина", "ui.design": "Дизайн", @@ -873,6 +1396,11 @@ "ui.diameter": "Диаметр", "ui.dimension": "Размер", "ui.direction": "Направление", + "ui.display_quality": "Качество отображения", + "ui.display_quality_coarse": "Грубое", + "ui.display_quality_fine": "Точное", + "ui.display_quality_normal": "Обычное", + "ui.display_quality_ultra": "Ультра", "ui.distance": "Расстояние", "ui.distance_1": "Расстояние 1", "ui.distance_2": "Расстояние 2", @@ -892,7 +1420,6 @@ "ui.equivalent_radius": "Эквивалентный радиус", "ui.expand": "Развернуть", "ui.exportDxf": "Экспорт DXF…", - "ui.export_ellipsis": "Экспорт...", "ui.export_ellipsis_keymap": "Экспорт…", "ui.export_keymap_tip": "Сочетания клавиш, избранное панели S и панель инструментов — в файл", "ui.extend": "Удлинить", @@ -913,8 +1440,10 @@ "ui.flat": "Плоский", "ui.flip": "Перевернуть", "ui.format": "Формат", + "ui.frame_rate": "Частота кадров", "ui.front": "Спереди", "ui.fully_constrained": "Полностью определён", + "ui.function": "Функция", "ui.general": "Общие", "ui.graphics": "Графика", "ui.graphics_custom": "Настраиваемый", @@ -922,6 +1451,8 @@ "ui.graphics_preset": "Графический профиль", "ui.graphics_preset_help": "Качество: окружающее затенение, детальная тесселяция и адаптивный суперсэмплинг 2×. Производительность: без затенения, обычная тесселяция и без суперсэмплинга. Ручные изменения отображаются как настраиваемые. MSAA не меняется.", "ui.graphics_quality": "Качество", + "ui.grid_follows_view": "Сетка следует за видом", + "ui.grid_follows_view_hint": "На боковых видах сетка показывается на вертикальной плоскости, обращённой к вам, а не на земле", "ui.ground_shadow": "Тень на земле", "ui.groupSelected": "Группировать выбранное", "ui.heading_add_ins": "НАДСТРОЙКИ", @@ -948,6 +1479,7 @@ "ui.heading_home": "ГЛАВНАЯ", "ui.heading_insert": "ВСТАВИТЬ", "ui.heading_inspect": "ИНСПЕКЦИЯ", + "ui.heading_interference": "ПЕРЕСЕЧЕНИЯ", "ui.heading_loft": "ЛОФТ", "ui.heading_make": "ИЗГОТОВЛЕНИЕ", "ui.heading_measure": "ИЗМЕРИТЬ", @@ -978,7 +1510,6 @@ "ui.heading_sheet_metal": "ЛИСТОВОЙ МЕТАЛЛ", "ui.heading_shell": "ОБОЛОЧКА", "ui.heading_sketch": "ЭСКИЗ", - "ui.heading_sketch_palette": "ПАЛИТРА ЭСКИЗА", "ui.heading_sketch_scale": "МАСШТАБ ЭСКИЗА", "ui.heading_solid": "ТЕЛО", "ui.heading_sphere": "СФЕРА", @@ -997,6 +1528,7 @@ "ui.hideOrigin": "Скрыть начало координат", "ui.hidePlanes": "Скрыть плоскости", "ui.hideProfile": "Скрыть профиль", + "ui.history_title": "История", "ui.hole": "Отверстие", "ui.hole_tap_type": "Тип резьбы отверстия", "ui.hole_type": "Тип отверстия", @@ -1016,11 +1548,12 @@ "ui.length_decimals": "Знаков после запятой (длины)", "ui.light": "Светлая", "ui.line": "Линия", - "ui.linetype": "Тип линии", "ui.lock": "Заблокировать", "ui.loft": "Лофт", "ui.look_at": "Взгляд на", "ui.look_at_anim_desc": "Осевые виды, «Взгляд на», «Главная» и «Вписать»", + "ui.manipulator_free_alt": "Свободное перетаскивание манипулятора также по Alt/Option", + "ui.manipulator_free_alt_tip": "Вкл.: Alt/Option или Ctrl/Cmd на стрелках выдавливания / гизмо отключают привязку значений. Выкл.: только Ctrl/Cmd.", "ui.manufacture": "Производство", "ui.material_review.axes": "Локальные оси материала; ориентация тела не назначается.", "ui.material_review.claims": "Источники и лицензии указаны без проверки. Отсутствующие значения остаются неизвестными.", @@ -1048,10 +1581,8 @@ "ui.mesh_format_3mf": "3MF", "ui.mesh_format_3mf_tagged": "3MF с метками граней", "ui.mesh_format_stl": "STL", - "ui.midpoint": "Середина", "ui.mirror": "Зеркало", "ui.mirror_line": "Линия зеркала", - "ui.modify": "Изменение", "ui.move": "Переместить", "ui.multiple": "Несколько", "ui.named_views": "Именованные виды", @@ -1060,6 +1591,7 @@ "ui.newSketchGroup": "Новая группа эскизов", "ui.new_body": "Новое тело", "ui.new_design": "Новый дизайн", + "ui.no_geometry_yet": "Геометрии пока нет", "ui.no_slicer_found": "Слайсер не найден", "ui.normal": "Нормаль", "ui.normalConstruction": "Обычная / Вспомогательная", @@ -1071,7 +1603,7 @@ "ui.offset_plane": "Смещённая плоскость", "ui.one_side": "Одна сторона", "ui.open": "Открыть", - "ui.open_ellipsis": "Открыть...", + "ui.open_ends_tip": "Ничего не касается", "ui.open_preferences": "Открыть настройки", "ui.open_recent": "Открыть недавние", "ui.operation": "Операция", @@ -1080,12 +1612,14 @@ "ui.orbit_around": "Вращать вокруг", "ui.orientation": "Ориентация", "ui.origin": "Начало координат", - "ui.palette_points": "Точки", - "ui.palette_profile": "Профиль", + "ui.palette_construction_mode": "Вспомогательный режим (X)", + "ui.palette_more": "Ещё", + "ui.palette_sketch_options": "Параметры эскиза", "ui.pan": "Панорамирование", "ui.pan_zoom_orbit": "Панорама, масштаб, орбита", "ui.parallel": "Параллельность", "ui.parameters": "Параметры", + "ui.part_size_shared": "Перестраивает деталь, заменяя все добавленные операции. Обновляются все вхождения этого компонента.", "ui.paste": "Вставить", "ui.path": "Траектория", "ui.pattern_on_path": "Массив по траектории", @@ -1097,6 +1631,12 @@ "ui.placement": "Размещение", "ui.plane": "Плоскость", "ui.plane_at_angle": "Плоскость под углом", + "ui.plugins": "Плагины", + "ui.plugins_desktop": "Плагины доступны в настольном приложении.", + "ui.plugins_empty": "Плагины не установлены.", + "ui.plugins_note": "Каждый плагин — папка внутри {path} с файлом plugin.json. SolidCraft читает этот файл и не выполняет код из папки. Отключение плагина оставляет его установленным.", + "ui.plugins_skipped": "Не удалось прочитать папок: {count}.", + "ui.plugins_version": "{version}", "ui.point": "Точка", "ui.point_under_the_cursor": "Точка под курсором", "ui.points": "Точки", @@ -1109,15 +1649,23 @@ "ui.project": "Проецировать", "ui.project_face_edges_sketch": "Проецировать рёбра граней в новые эскизы", "ui.properties": "Свойства", + "ui.pull_direction": "Направление вытягивания", "ui.quantity": "Количество", "ui.quantity_2": "Количество 2", "ui.quit": "Выход", "ui.radial_context_menu": "Радиальное контекстное меню", "ui.radius": "Радиус", - "ui.radius_type": "Тип радиуса", + "ui.rail": "Направляющая", + "ui.rail_fit": "Подгонка по направляющей", + "ui.reachable": "Достижимо", "ui.rectangle": "Прямоугольник", "ui.rectangular_pattern": "Прямоугольный массив", "ui.redo": "Повторить", + "ui.relink_design_changed": "Сборка изменилась во время выбора источника. Запустите «Перепривязать источник» снова.", + "ui.relink_done": "Источник перепривязан для всех экземпляров.", + "ui.relink_not_linked": "Этот компонент не связан с исходным дизайном.", + "ui.relink_select_one": "Сначала выберите один связанный компонент или один из его экземпляров.", + "ui.relink_source_all": "Перепривязать источник (все экземпляры)…", "ui.removeFromToolbar": "Убрать с панели", "ui.removeSection": "Убрать сечение", "ui.render": "Рендер", @@ -1129,12 +1677,16 @@ "ui.reset_the_settings_on_this_page": "Сбросить настройки этой страницы", "ui.restore": "Восстановить", "ui.restore_defaults": "Восстановить по умолчанию", + "ui.reverse_horizontal_pan_direction": "Обратить направление горизонтального панорамирования", + "ui.reverse_horizontal_pan_tip": "Горизонтальная прокрутка двумя пальцами и колесо под большим пальцем панорамируют в другую сторону", "ui.reverse_zoom_direction": "Обратить направление масштабирования", "ui.revolve": "Вращение", + "ui.ribbon_exit": "Выход", + "ui.ribbon_pin_footer": "Закреплённые команды отображаются на ленте. Наведите курсор на строку, чтобы закрепить или открепить её.", + "ui.ribbon_workspace": "Рабочая область", "ui.right": "Справа", "ui.save": "Сохранить", "ui.save_as": "Сохранить как", - "ui.save_as_ellipsis": "Сохранить как...", "ui.save_mesh_no_slicer": "Слайсер не найден: выберите «Другая…» и укажите программу или отключите «Отправить в слайсер»", "ui.save_mesh_pick_bodies": "Выберите тела для сохранения", "ui.save_mesh_temp_failed": "Не удалось создать {folder}: {error}", @@ -1142,12 +1694,15 @@ "ui.sbox_pin": "Закрепить вверху панели S", "ui.sbox_unpin": "Открепить", "ui.scale": "Масштаб", + "ui.second_rail": "Вторая направляющая", "ui.section_analysis": "Анализ сечения", "ui.select": "Выбрать", "ui.selectOther": "Выбрать другое…", "ui.selectTangentChain": "Выбрать касательную цепочку", - "ui.select_other_hint": "Выбрать другое: удерживайте левую кнопку на модели (или правый щелчок › Выбрать другое…), чтобы увидеть всё под курсором; повторный щелчок в том же месте выбирает следующий объект.", "ui.selection": "Выделение", + "ui.selection_modifiers": "Модификаторы выбора", + "ui.selection_shift_add_only": "Shift+щелчок добавляет без удаления", + "ui.selection_shift_add_only_tip": "Вкл.: Shift добавляет объекты, Ctrl/Cmd переключает. Выкл. (по умолчанию): Shift и Ctrl/Cmd оба переключают.", "ui.send": "Отправить", "ui.send_to_slicer": "Отправить в слайсер", "ui.sent_to_slicer": "Отправлено в {slicer}", @@ -1163,7 +1718,6 @@ "ui.show_constraints": "Ограничения", "ui.show_construction_geometries": "Вспомогательная геометрия", "ui.show_dimensions": "Размеры", - "ui.show_points": "Показать точки", "ui.show_profile": "Показать профиль", "ui.show_projected_geometries": "Спроецированная геометрия", "ui.simple": "Простой", @@ -1172,8 +1726,8 @@ "ui.sketch": "Эскиз", "ui.sketch_dimension": "Размер эскиза", "ui.sketch_grid": "Сетка эскиза", + "ui.sketch_modifiers": "Модификаторы эскиза", "ui.sketch_scale": "Масштаб эскиза", - "ui.sketch_status": "Статус эскиза", "ui.sketches": "Эскизы", "ui.slice": "Срез", "ui.slicer": "Слайсер", @@ -1219,8 +1773,14 @@ "ui.stand_up_tip": "Если файл STEP или IGES открывается с Z вверх, предложить поворот на четверть оборота вокруг X", "ui.start": "Старт", "ui.start_over": "Начать заново", - "ui.start_radius": "Начальный радиус", + "ui.start_page": "Начальная страница", + "ui.stretch": "Растяжение", + "ui.supersampling": "Суперсэмплинг (SSAA)", + "ui.supersampling_adaptive": "Только когда вид неподвижен", + "ui.supersampling_off": "Выкл. (1×)", "ui.suppress": "Подавить", + "ui.suppress_auto_snap": "Подавлять автопривязку при рисовании / перетаскивании", + "ui.suppress_auto_snap_note": "По умолчанию: Ctrl/Cmd или Alt/Option подавляют привязку эскиза. Выберите одну клавишу, чтобы сузить это.", "ui.sweep": "Сдвиг", "ui.sweep_follow_direction": "Следовать направлению", "ui.sweep_keep_as_drawn": "Как нарисовано", @@ -1235,11 +1795,14 @@ "ui.theme": "Тема", "ui.thickness": "Толщина", "ui.thread": "Резьба", + "ui.tie_ends": "Связать", + "ui.tie_ends_tip": "Наложить ограничения на все несвязанные концы", "ui.timeline_bottom": "Шкала внизу", "ui.timeline_left_note": "В левом макете полоса отката находится над браузером деталей и сцены.", "ui.timeline_left_sidebar": "Левая боковая панель", "ui.tip_angle": "Угол при вершине", "ui.to_object": "До объекта", + "ui.tool_direction": "Направление инструмента", "ui.top": "Сверху", "ui.torus": "Тор", "ui.total_angle": "Полный угол", @@ -1256,21 +1819,68 @@ "ui.units_of_new_designs": "Единицы новых дизайнов", "ui.unlock": "Разблокировать", "ui.unsuppress": "Восстановить операцию", + "ui.untied_ends_tip": "Касается только по положению", "ui.untitled": "Без имени", "ui.up_axis_note": "Какая ось направлена вверх в видах (осевые виды, «Главная», «Взгляд на»). Дизайны не меняются.", "ui.updateToCurrentView": "Обновить до текущего вида", - "ui.variable": "Переменный", "ui.view_centre": "Центр вида", "ui.visual_shaded_hidden_edges": "Заполненный с невидимыми рёбрами", "ui.visual_shaded_with_edges": "Заполненный с рёбрами", "ui.visual_style": "Стиль отображения", "ui.visual_wireframe": "Каркас", "ui.workspace": "рабочая область", + "ui.workspace_animation_description": "Разнесённые виды, исследования движения и раскадровки", + "ui.workspace_available": "Доступно", + "ui.workspace_current": "Текущее", + "ui.workspace_design_description": "Эскиз, моделирование, сборка и проверка", + "ui.workspace_design_tabs": "Модель · Поверхность · Сборка · Вставка · Проверка · Управление · Вид", + "ui.workspace_drawing_description": "2D-чертежи с видами, размерами и основными надписями", + "ui.workspace_footer": "Все рабочие среды работают с одним дизайном, историей и выбором; меняются только вкладки ленты. Переключатель заблокирован, пока редактируется эскиз или операция.", + "ui.workspace_manufacture_description": "Слайсинг, траектории инструмента и наладка", + "ui.workspace_planned": "Запланировано", + "ui.workspace_render_description": "Предпросмотр изделия, настройки сцены и отрендеренные изображения", + "ui.workspace_render_tabs": "Сцена · Изображение", + "ui.workspace_simulation_description": "Нагрузки, ограничения и результаты", "ui.x_distance": "Расстояние X", "ui.y_distance": "Расстояние Y", "ui.y_up": "Y вверх", "ui.z_up": "Z вверх", "ui.zoom": "Масштаб", "ui.zoom_to_cursor_tip": "Колесо масштабирует к точке под курсором (выкл.: к центру вида)", - "ui.zoom_to_the_cursor": "Масштаб к курсору" + "ui.zoom_to_the_cursor": "Масштаб к курсору", + "update.available": "Доступен SolidCraft {version}", + "update.button": "Обновить", + "update.button_version": "Обновить до {version}", + "update.check_automatically": "Проверять обновления автоматически", + "update.check_now": "Проверить сейчас", + "update.checking": "Проверка…", + "update.copy": "Копировать", + "update.dmg_opened": "Образ диска открыт и проверен: перетащите SolidCraft в «Программы», заменив старую копию, затем перезапустите SolidCraft.", + "update.download": "Скачать", + "update.download_open": "Скачать и открыть", + "update.downloading": "Загрузка и проверка… {done} из {total} МБ", + "update.failed": "Не удалось проверить: {error}", + "update.file": "Будет скачан файл {file}.", + "update.install_failed": "Обновление не установилось: {error}. Ничего не изменено; кнопка «Скачать» загрузит пакет.", + "update.install_msi": "Установить (закроет SolidCraft)", + "update.installed": "SolidCraft {version} установлен. Перезапустите, чтобы использовать его.", + "update.installer_started": "Установщик запустится после закрытия SolidCraft.", + "update.later": "Напомнить позже", + "update.no_notes": "У этого выпуска нет примечаний.", + "update.package_hint": "Эта копия установлена из {kind}. Скачайте новый пакет, затем установите его командой:", + "update.prefs_dev": "Это сборка для разработки ({version}): она не проверяет обновления.", + "update.prefs_flatpak": "Эту копию ({version}) обновляет Flatpak: выполните {command} или воспользуйтесь центром приложений. SolidCraft не проверяет обновления.", + "update.prefs_label": "Обновления", + "update.prefs_note": "Это SolidCraft {version} ({kind}). При проверке у GitHub запрашивается последний выпуск, больше ничего не отправляется.", + "update.release_page": "Открыть страницу выпуска", + "update.restart": "Перезапустить сейчас", + "update.restart_later": "Позже", + "update.show": "Показать обновление до {version}", + "update.skip": "Пропустить эту версию", + "update.system_hint": "Эта копия — {kind}. Обновите её командой:", + "update.title": "Доступно обновление", + "update.up_to_date": "SolidCraft обновлён до последней версии.", + "update.update_now": "Обновить сейчас", + "update.you_have": "У вас {version}.", + "↑ ↓ choose · Enter / Tab complete · Esc dismiss": "↑ ↓ выбрать · Enter / Tab дополнить · Esc закрыть" } diff --git a/assets/locales/tr.json b/assets/locales/tr.json index cb505510b..dd532e6dd 100644 --- a/assets/locales/tr.json +++ b/assets/locales/tr.json @@ -3,11 +3,14 @@ "1. Open GitHub draft below, then paste the report copied to your clipboard.": "1. Aşağıdaki GitHub taslağını açın, ardından panoya kopyalanan raporu yapıştırın.", "1. Open GitHub draft below. Your title and report will be filled in.": "1. Aşağıdaki GitHub taslağını açın. Başlığınız ve raporunuz otomatik olarak doldurulur.", "2. Attach your screenshot: copy and paste it, or save and upload the PNG.": "2. Ekran görüntüsünü ekleyin: kopyalayıp yapıştırın veya PNG olarak kaydedip yükleyin.", + "2D": "2D", "3. Click Submit new issue on GitHub to send your report.": "3. Raporu göndermek için GitHub'da Submit new issue düğmesine tıklayın.", "A new configuration, a copy of the active one": "Etkin konfigürasyonun kopyası olan yeni bir konfigürasyon", - "AI": "AI", + "ARRANGE": "DÜZENLE", "About SolidCraft": "SolidCraft hakkında", "Acceleration": "İvme", + "Access": "Erişim", + "Actions": "Eylemler", "Active": "Etkin", "Active rule": "Etkin kural", "Add": "Ekle", @@ -15,6 +18,7 @@ "Add Mid Radius": "Ara yarıçap ekle", "Add Row": "Satır ekle", "Add condition": "Koşul ekle", + "Add or edit rule": "Kural ekle veya düzenle", "Against": "Karşı", "Alignment": "Hizalama", "All Sketch Points": "Tüm eskiz noktaları", @@ -28,18 +32,33 @@ "Applied Radius": "Uygulanan yarıçap", "Apply To": "Uygulama hedefi", "Apply to selection": "Seçime uygula", + "Apply your appearance first. Exports assigned appearances and materials created in this design.": "Önce görünümünüzü uygulayın. Atanan görünümleri ve bu tasarımda oluşturulan malzemeleri dışa aktarır.", "Arc length": "Yay uzunluğu", "Area": "Alan", + "As-Built": "Montaj Hâli", + "Assign Rule": "Kural ata", "Attachment": "Bağlama", + "BLEND SURFACE": "GEÇİŞ YÜZEYİ", + "BOUNDARY SURFACE": "SINIR YÜZEYİ", "BROWSER": "TARAYICI", "Bend Line Position": "Büküm çizgisi konumu", "Bend Position": "Büküm konumu", "Bend Radius": "Büküm yarıçapı", + "Bend Table": "Büküm tablosu", "Bends": "Bükümler", + "Bodies": "Gövdeler", "Body": "Gövde", + "Boundary": "Sınır", "Bounding box": "Sınırlayıcı kutu", + "CHECK": "DENETLE", + "COMPONENTS": "BİLEŞENLER", + "CONFIGURATIONS": "YAPILANDIRMALAR", + "CONSTRAIN": "KISITLA", + "CONTACT": "TEMAS", + "CONVERT": "DÖNÜŞTÜR", "CSV or JSON: updates existing parameters, adds new ones": "CSV veya JSON: mevcut parametreleri günceller, yenilerini ekler", "Capture All Positions": "Tüm konumları yakala", + "Capture Pos.": "Konumu yakala", "Catch Direction": "Yakalama yönü", "Cells": "Hücreler", "Center X": "Merkez X", @@ -50,81 +69,124 @@ "Check collisions": "Çarpışmaları kontrol et", "Checked": "Kontrol edildi", "Choose a new plane. Sketch geometry and dimensions stay unchanged in its two-dimensional coordinates.": "Yeni bir düzlem seçin. Eskiz geometrisi ve ölçüler, iki boyutlu koordinatlarında değişmeden kalır.", + "Choose…": "Seç…", + "Circular": "Dairesel", "Circumference": "Çevre", "Close draft": "Taslağı kapat", "Collisions": "Çarpışmalar", "Colour": "Renk", + "Comment": "Yorum", "Component1": "Bileşen1", + "Config Table": "Yapılandırma tablosu", "Configuration": "Konfigürasyon", "Configuration rules": "Konfigürasyon kuralları", - "Construction": "Yapı çizgisi", "Contact": "Temas", + "Contact Sets": "Temas kümeleri", "Contact sets": "Temas kümeleri", + "Continuity": "Süreklilik", "Copy Error Message": "Hata mesajını kopyala", "Copy Warning Message": "Uyarı mesajını kopyala", "Copy all licences": "Tüm lisansları kopyala", "Copy diagnostic information": "Tanılama bilgilerini kopyala", "Copy report": "Raporu kopyala", "Copy screenshot": "Ekran görüntüsünü kopyala", + "Corner Relief": "Köşe boşluğu", "Corner Relief Shape": "Köşe boşaltma şekli", "Counterbore depth": "Düz havşa derinliği", "Countersink angle": "Konik havşa açısı", "Create Issue — review draft": "Sorun oluştur — taslağı gözden geçirin", + "Cross curves": "Çapraz eğriler", "Cube": "Küp", + "Current orthographic view (1:1 mm)": "Geçerli ortografik görünüm (1:1 mm)", + "Current perspective view": "Geçerli perspektif görünüm", + "Curv. Comb": "Eğrilik taragı", + "Curvature (G2)": "Eğrilik (G2)", "Curvature change (G3)": "Eğrilik değişimi (G3)", "Customize Toolbar": "Araç çubuğunu özelleştir", + "Delete": "Sil", "Delete all": "Tümünü sil", "Delete rule": "Kuralı sil", "Delete the row": "Satırı sil", "Delete the set": "Kümeyi sil", - "Delete this parameter": "Bu parametreyi sil", "Density": "Yoğunluk", + "Dependents": "Bağımlılar", "Designs you open or save appear here.": "Açtığınız veya kaydettiğiniz tasarımlar burada görünür.", "Determined by To Object. Choose Angle to edit the angular extent.": "Nesneye kadar seçeneğiyle belirlenir. Açısal kapsamı düzenlemek için Açı seçeneğini seçin.", "Direction": "Yön", "Discard": "At", + "Do not export hidden edges": "Gizli kenarları dışa aktarma", + "Don't ask again": "Bir daha sorma", "Double-click to rename": "Yeniden adlandırmak için çift tıklayın", "Double-clicking the middle button in the view: Home (the home view, framing what is shown), Fit (frame what is shown, keeping the orientation) or nothing": "Görünümde orta tuşla çift tıklama: Başlangıç (gösterileni çerçeveleyen başlangıç görünümü), Sığdır (yönü koruyarak gösterileni çerçeveler) veya hiçbir şey", "Drive Joint": "Bağlantıyı tahrik et", "Duration": "Süre", "Edges": "Kenarlar", + "Edit": "Düzenle", "Edit Profile Sketch": "Profil eskizini düzenle", "Enable rule": "Kuralı etkinleştir", "Enabled": "Etkin", + "End bulge": "Bitiş şişkinliği", + "End continuity": "Bitiş sürekliliği", "Explode": "Patlat", + "Explode Text": "Metni parçala", "Export Animation…": "Animasyonu dışa aktar…", + "Export CSV…": "CSV dışa aktar…", + "Export Current View as DXF": "Geçerli görünümü DXF olarak dışa aktar", + "Export Current View as DXF…": "Geçerli görünümü DXF olarak dışa aktar…", + "Export DXF": "DXF'i dışa aktar", + "Export DXF…": "DXF'i dışa aktar…", + "Export JSON…": "JSON dışa aktar…", + "Export hidden edges as dashed lines": "Gizli kenarları kesikli çizgi olarak dışa aktar", + "Expression": "İfade", "Extend to meet": "Buluşana kadar uzat", "Extents": "Kapsamlar", + "FILES": "DOSYALAR", + "FLAT": "AÇINIM", "Face": "Yüz", "Face attachment lost": "Yüze bağlama kayboldu", "Faces": "Yüzler", "Faces / edges / vertices": "Yüzler / kenarlar / köşe noktaları", + "Fastener": "Bağlantı elemanı", + "Favorites": "Sık kullanılanlar", "Favourite": "Favori", + "Feature": "Özellik", "Files from many CAD programs have Y up, so they open lying on their back here (Z up).": "Birçok CAD programının dosyalarında Y yukarıyı gösterir; bu yüzden burada (Z yukarı) sırtüstü yatar hâlde açılırlar.", "Filter": "Filtre", "Find in Browser": "Tarayıcıda bul", - "Flat": "Düz", + "Finish": "Bitir", + "Flat Pattern": "Açınım", "Flat size": "Açınım boyutu", "Follow camera (Look At sketches)": "Kamera takibi (eskizlerde Bak)", "Follow the camera (Look At sketches)": "Kamera takibi (eskizlerde Bak)", "Font": "Yazı tipi", + "From Bodies": "Gövdelerden", "From edges": "Başlangıç kenarları", "Full Length": "Tam uzunluk", + "Gap": "Boşluk", "Grid": "Izgara", + "HISTORY": "GEÇMİŞ", "Height": "Yükseklik", + "Hidden edges": "Gizli kenarlar", "Holes": "Delikler", "Holes (edges on them)": "Delikler (kenarları)", "Home view": "Başlangıç görünümü", + "Horiz./Vert.": "Yatay/Dikey", + "IMAGES": "GÖRSELLER", + "Import…": "İçe aktar…", "In This Design": "Bu tasarımda", "In place (surfaces)": "Yerinde (yüzeyler)", "In plane": "Düzlemde", "Inside": "İç", "Interferes": "Girişim var", + "Isocurve": "İzoeğri", "Issue title": "Sorun başlığı", + "JOINTS": "MAFSALLAR", "Joint Origin1": "Bağlantı orijini1", "Keep (points on it)": "Koru (üzerindeki noktalar)", "Keep Tools": "Araçları koru", "Keep of the other surface": "Diğer yüzeyden korunacak", + "LIBRARY": "KİTAPLIK", + "LINKS": "BAĞLANTILAR", "Later": "Daha sonra", "Leave it": "Olduğu gibi bırak", "Legacy face attachment. Rebinding to a certified face creates an exact attachment.": "Eski tip yüz bağlaması. Doğrulanmış bir yüze yeniden bağlamak tam bir bağlama oluşturur.", @@ -132,59 +194,91 @@ "Length units": "Uzunluk birimleri", "Letter Spacing": "Harf aralığı", "Library": "Kitaplık", + "Library file": "Kitaplık dosyası", "Line Spacing": "Satır aralığı", + "Local library": "Yerel kitaplık", "Loop": "Döngü", + "MANAGE": "YÖNET", + "MATERIALS": "MALZEMELER", + "MODEL": "MODEL", + "MOTION": "HAREKET", "Margin": "Kenar boşluğu", "Mass": "Kütle", + "Mass Center": "Kütle merkezi", + "Matched restrictions check the final values.": "Koşulları sağlanan kısıtlamalar son değerleri denetler.", "Material": "Malzeme", "Max": "Maks", "Mid Radius": "Ara yarıçap", "Middle double-click": "Orta tuşla çift tıklama", "Min": "Min", "Mitre": "Gönye", + "Model Parameters": "Model parametreleri", "Modeled": "Modellenmiş", "More toolbar panels": "Diğer araç çubuğu panelleri", "Motion": "Hareket", + "Move / Copy": "Taşı / Kopyala", "Move Type": "Taşıma türü", + "Move down": "Aşağı taşı", "Move earlier": "Öne al", "Move later": "Sonraya al", + "Move up": "Yukarı taşı", "Name": "Ad", + "Nearest": "En yakın", + "New": "Yeni", + "New Comp.": "Yeni bileşen", + "New Sketch": "Yeni eskiz", + "New rule…": "Yeni kural…", "New study": "Yeni etüt", "No crash reports.": "Çökme raporu yok.", + "No matching appearance presets.": "Eşleşen görünüm ön ayarı yok.", "No matching appearances": "Eşleşen görünüm yok", + "No visible bodies to export.": "Dışa aktarılacak görünür gövde yok.", "None": "Hiçbiri", - "Normal to sketch": "Eskize dik", "Not available yet": "Henüz kullanılamıyor", + "Notch": "Çentik", + "OUTPUT": "ÇIKTI", "Opacity": "Opaklık", "Open GitHub draft": "GitHub taslağını aç", + "Open local libraries in the desktop app. You can export this design's library here.": "Yerel kitaplıkları masaüstü uygulamasında açın. Bu tasarımın kitaplığını buradan dışa aktarabilirsiniz.", "Open-source parametric 3D CAD in Rust. Licensed MIT OR Apache-2.0.": "Rust ile yazılmış açık kaynaklı parametrik 3D CAD. Lisans: MIT OR Apache-2.0.", + "Operator": "İşleç", "Other side": "Diğer taraf", "Other surface (mutual trim)": "Diğer yüzey (karşılıklı kırpma)", "Outside": "Dış", "Overall length": "Toplam uzunluk", - "Parameter values": "Parametre değerleri", + "Param. Graph": "Parametre grafiği", + "Parameter": "Parametre", + "Parts": "Parçalar", + "Pass through": "İçinden geçir", "Path": "Yol", + "Pattern": "Dizi", "Per Edge": "Kenar başına", "Pick the tool bodies": "Araç gövdelerini seçin", "Picked": "Seçilenler", "Picked point": "Seçilen nokta", "Place at the origin instead": "Bunun yerine orijine yerleştir", + "Plastic Rules": "Plastik kuralları", "Playback": "Oynatma", "Plot": "Grafik", "Position": "Konum", "Position (0 to 1)": "Konum (0 ile 1 arası)", + "Position (G0)": "Konum (G0)", "Position along the edge, 0 at the start end, 1 at the other": "Kenar boyunca konum: başlangıç ucunda 0, diğer uçta 1", + "Preferences › Design turns the offer back on": "Tercihler › Tasarım teklifi yeniden açar", "Preview Row": "Satırı önizle", "Preview leaves the current design unchanged.": "Önizleme geçerli tasarımı değiştirmez.", "Profiles/Curves": "Profiller/Eğriler", "Quantity": "Büyüklük", "RECENT": "SON KULLANILANLAR", + "REFERENCE": "REFERANS", "RULED SURFACE": "REGLE YÜZEY", + "RULES": "KURALLAR", "Radius Fit": "Yarıçap uydurma", "Ratio": "Oran", "Reattach selected face": "Seçili yüze yeniden bağla", "Recover": "Kurtar", "Recover unsaved design?": "Kaydedilmemiş tasarım kurtarılsın mı?", + "Rectangular": "Dikdörtgen", "Reference face": "Referans yüzü", "Remove Tools": "Araçları kaldır", "Remove from list": "Listeden kaldır", @@ -196,6 +290,8 @@ "Remove this point": "Bu noktayı kaldır", "Report a bug — review a screenshot and open a GitHub draft": "Hata bildir — ekran görüntüsünü kontrol edin ve bir GitHub taslağı açın", "Reset Toolbar": "Araç çubuğunu sıfırla", + "Resize Part": "Parçayı yeniden boyutlandır", + "Restore View": "Görünümü geri yükle", "Restore outer boundary": "Dış sınırı geri yükle", "Restore the inherited component or physical material appearance": "Bileşenden veya fiziksel malzemeden devralınan görünümü geri yükle", "Result": "Sonuç", @@ -204,18 +300,27 @@ "Reverse Direction": "Yönü ters çevir", "Revert": "Geri al", "Revert All Positions": "Tüm konumları geri al", + "Revert Pos.": "Konumu geri al", "Revert Position": "Konumu geri al", "Review the report and screenshot before opening GitHub.": "GitHub'ı açmadan önce raporu ve ekran görüntüsünü gözden geçirin.", "Rim Edge": "Ağız kenarı", "Roll History Marker Here": "Geçmiş işaretçisini buraya taşı", "Round": "Yuvarlak", "Rule": "Kural", + "Rule name": "Kural adı", + "Rules run from top to bottom. Matched drives change effective values.": "Kurallar yukarıdan aşağıya çalışır. Koşulları sağlanan sürücü kurallar etkin değerleri değiştirir.", + "SECTION": "KESİT", + "SURFACE QUALITY": "YÜZEY KALİTESİ", "Save Rule": "Kuralı kaydet", + "Save View": "Görünümü kaydet", "Save the study as an animated GIF, seen as the viewport shows it": "Etüdü görünüm alanında göründüğü gibi animasyonlu GIF olarak kaydet", "Saved preview. Geometry is being checked before editing.": "Kaydedilmiş önizleme. Düzenlemeden önce geometri kontrol ediliyor.", "Scale factor": "Ölçek faktörü", + "Scene": "Sahne", "Search": "Ara", "Search commands": "Komutlarda ara", + "Search this library": "Bu kitaplıkta ara", + "Section": "Kesit", "Select Other: hold the left button still on the model (or right-click › Select Other…) to list everything under the cursor; click again on the same spot to select the next thing there. Double-click the middle button to go Home (Preferences › Navigation).": "Diğerini seç: İmlecin altındaki her şeyi listelemek için sol tuşu model üzerinde hareket ettirmeden basılı tutun (veya sağ tık › Diğerini seç…); oradaki bir sonraki öğeyi seçmek için aynı noktaya tekrar tıklayın. Başlangıç görünümüne dönmek için orta tuşla çift tıklayın (Ayarlar › Gezinme).", "Select bodies (a face picks its body)": "Gövdeleri seçin (bir yüz kendi gövdesini seçer)", "Select bodies or faces instead": "Bunun yerine gövde veya yüz seçin", @@ -223,6 +328,7 @@ "Semantic faces share their appearance across instances.": "Anlamsal yüzler görünümlerini örnekler arasında paylaşır.", "Send your report on GitHub": "Raporunuzu GitHub üzerinden gönderin", "Shape": "Şekil", + "Sheet Rules": "Sac kuralları", "Show Agent Cursor": "Ajan imlecini göster", "Show in folder": "Klasörde göster", "Show the pointer an AI agent moves (#35)": "Bir AI ajanının hareket ettirdiği imleci göster (#35)", @@ -236,10 +342,13 @@ "Sketch points": "Eskiz noktaları", "Slot width": "Yuva genişliği", "SolidCraft closed before these designs were saved. Their last autosave can be opened.": "SolidCraft bu tasarımlar kaydedilmeden önce kapandı. Son otomatik kayıtları açılabilir.", + "Specialise": "Özelleştir", "Speed": "Hız", "Stand it up": "Dik çevir", "Stand it up: a quarter turn about X, as one Move feature you can undo.": "Dik çevir: X etrafında çeyrek tur; geri alınabilen tek bir Taşı özelliği olarak eklenir.", "Stand this part up?": "Bu parça dik çevrilsin mi?", + "Start bulge": "Başlangıç şişkinliği", + "Start continuity": "Başlangıç sürekliliği", "Step": "Adım", "Steps": "Adımlar", "Stitch the kept pieces": "Korunan parçaları dik", @@ -250,7 +359,9 @@ "Surface": "Yüzey", "Swap Ends": "Uçları değiştir", "TRIM": "KIRP", + "Tangent (G1)": "Teğet (G1)", "Tangent Chain": "Teğet zincir", + "Tear": "Yırtık", "The dashed sketch is a saved plane guide. Select a new face to repair the attachment.": "Kesikli eskiz, kaydedilmiş bir düzlem kılavuzudur. Bağlamayı onarmak için yeni bir yüz seçin.", "The saved author occurrence is missing. Select a valid author placement before rebinding.": "Kaydedilmiş kaynak örnek eksik. Yeniden bağlamadan önce geçerli bir kaynak yerleşimi seçin.", "Then": "Sonra", @@ -265,15 +376,20 @@ "To Offset": "Ofsete kadar", "To edges": "Bitiş kenarları", "Tolerance": "Tolerans", + "Too close": "Çok yakın", "Trimming tool (plane, face or curves)": "Kırpma aracı (düzlem, yüz veya eğriler)", + "Turn off section analysis before exporting the view.": "Görünümü dışa aktarmadan önce kesit analizini kapatın.", "Type": "Tür", "UNTRIM": "KIRPMAYI KALDIR", + "Unit": "Birim", "Updating the preview": "Önizleme güncelleniyor", "Use active author placement": "Etkin kaynak yerleşimini kullan", "Use fixed plane": "Sabit düzlem kullan", "Use saved fixed plane": "Kaydedilmiş sabit düzlemi kullan", "Use selected face as fixed plane": "Seçili yüzü sabit düzlem olarak kullan", + "User Parameters": "Kullanıcı parametreleri", "VIEW": "GÖRÜNÜM", + "VIEWS": "GÖRÜNÜMLER", "Value": "Değer", "Velocity": "Hız", "Vertices": "Köşe noktaları", @@ -285,6 +401,13 @@ "When": "Eğer", "Width": "Genişlik", "Will fail": "Başarısız olacak", + "X angle": "X açısı", + "X distance": "X mesafesi", + "Y angle": "Y açısı", + "Y distance": "Y mesafesi", + "Z angle": "Z açısı", + "Z distance": "Z mesafesi", + "Zebra": "Zebra", "angle, height": "açı, yükseklik", "appearance.dielectric_ior": "Dielektrik kırılma indisi", "appearance.metallic": "Metaliklik", @@ -293,14 +416,28 @@ "appearance.roughness": "Pürüzlülük", "appearance.surface_response": "Yüzey davranışı", "browser.body_name": "Gövde {number}", + "browser.calibrate_title": "Kalibre et: {name}", + "browser.capture_many": "{count} bileşen taşındı ancak konumları yakalanmadı.", + "browser.capture_note": "Konumu yakala yeni konumu korur; Konumu geri al önceki konuma döndürür.", + "browser.capture_one": "Bir bileşen taşındı ancak konumu yakalanmadı.", "browser.component_name": "Bileşen {number}", + "browser.edit_canvas_title": "Tuvali düzenle: {name}", + "browser.move_title": "Taşı: {name}", "browser.parameters": "Parametreler ({count})", "browser.precision": "Hassasiyet: {precision}", "browser.sketch_name": "Eskiz {number}", "browser.units": "Birimler: {units}", + "cam.flat": "Düz yüz", + "cam.follower": "İzleyici", + "cam.knife": "Bıçak ucu", + "cam.needs_joints": "dönen bir bağlantı ile kayan veya sallanan bir bağlantı gerekir", + "cam.roller": "Makara", + "cam.roller_pick": "Makara (isteğe bağlı)", + "cam.tip_pick": "Uç (isteğe bağlı)", "cmd.appearance_assign": "Görünüm", "cmd.appearance_library": "Görünüm kitaplığı", "cmd.appearance_list": "Görünümleri listele", + "cmd.assembly_bom": "Malzeme listesi", "cmd.body_rename": "Gövdeyi yeniden adlandır", "cmd.browser_group": "Yeni grup", "cmd.browser_move": "Tarayıcı öğelerini taşı", @@ -322,10 +459,13 @@ "cmd.component_insert_design": "Tasarım ekle", "cmd.component_links": "Bağları listele", "cmd.component_list": "Bileşenleri listele", + "cmd.component_metadata": "Parça özellikleri", + "cmd.component_metadata_set": "Parça özelliklerini değiştir", "cmd.component_move_bodies": "Gövdeleri bileşene taşı", "cmd.component_move_sketches": "Eskizleri bileşene taşı", "cmd.component_paste_new": "Yeni olarak yapıştır", "cmd.component_properties": "Bileşenin fiziksel özellikleri", + "cmd.component_relink": "Kaynağı yeniden bağla", "cmd.component_rename": "Bileşeni yeniden adlandır", "cmd.component_revert_position": "Konumu geri al", "cmd.component_unlock": "İçeriğin kilidini aç", @@ -377,6 +517,7 @@ "cmd.edit_checkpoint": "Kontrol noktası", "cmd.edit_restore_checkpoint": "Kontrol noktasını geri yükle", "cmd.engine_commands": "Komutları listele", + "cmd.engine_describe": "Komutu açıkla", "cmd.explode_create": "Patlatılmış görünüm", "cmd.explode_delete": "Patlatılmış görünümü sil", "cmd.explode_list": "Patlatılmış görünümleri listele", @@ -390,6 +531,7 @@ "cmd.file_slicers": "Yüklü dilimleyiciler", "cmd.inspect_accessibility": "Erişilebilirlik analizi", "cmd.inspect_center_of_mass": "Kütle merkezi", + "cmd.inspect_clearance": "Açıklık", "cmd.inspect_compare": "Gövdeleri karşılaştır", "cmd.inspect_continuity": "Süreklilik kontrolü", "cmd.inspect_curvature_comb": "Eğrilik tarağı analizi", @@ -399,17 +541,24 @@ "cmd.inspect_interference": "Girişim", "cmd.inspect_isocurve": "İzoeğri analizi", "cmd.inspect_minimum_radius": "Minimum yarıçap analizi", + "cmd.inspect_silhouette": "Siluet", "cmd.inspect_zebra": "Zebra analizi", "cmd.joint_as_built": "Yerinde bağlantı", + "cmd.joint_cam": "Kam", "cmd.joint_create": "Bağlantı", "cmd.joint_delete": "Bağlantıyı sil", "cmd.joint_drive": "Bağlantıları tahrik et", "cmd.joint_edit": "Bağlantıyı düzenle", + "cmd.joint_gear": "Dişli", + "cmd.joint_inspect": "Bağlantıyı incele", "cmd.joint_limits": "Bağlantı sınırları", "cmd.joint_list": "Bağlantıları listele", "cmd.joint_motion_link": "Hareket bağı", "cmd.joint_origin": "Bağlantı orijini", + "cmd.joint_rack_pinion": "Kremayer ve pinyon", + "cmd.joint_reach": "Nokta erişimi", "cmd.joint_rigid_group": "Rijit grup", + "cmd.joint_screw": "Vida", "cmd.joint_solve": "Bağlantıları çöz", "cmd.joint_sweep": "Bağlantıyı tara", "cmd.library_apply": "Yerel kitaplık girişini uygula", @@ -434,6 +583,8 @@ "cmd.motion_play": "Hareket etüdünü oynat", "cmd.motion_plot": "Hareket etüdü grafiği", "cmd.motion_study": "Hareket etüdü", + "cmd.motion_trace": "Hareket izi", + "cmd.motion_trace_keep": "Hareket izini koru", "cmd.occurrence_copy": "Yapıştır (örnek)", "cmd.occurrence_ground": "Sabitle", "cmd.occurrence_move": "Örneği taşı", @@ -519,6 +670,7 @@ "cmd.sketch_fit_curves_to_section": "Eğrileri ağ kesitine uydur", "cmd.sketch_glyphs": "Kısıtlama simgeleri", "cmd.sketch_include_3d": "3D geometriyi dahil et", + "cmd.sketch_infinite": "Sonsuz çizgi", "cmd.sketch_insert_dxf": "DXF ekle", "cmd.sketch_insert_svg": "SVG ekle", "cmd.sketch_inspect": "Eskizi incele", @@ -526,6 +678,8 @@ "cmd.sketch_isoparametric_curve": "İzoparametrik eğri", "cmd.sketch_line3d": "3D çizgi", "cmd.sketch_line_midpoint": "Orta noktadan geçen çizgi", + "cmd.sketch_loose_ends": "Açık uçlar", + "cmd.sketch_loose_ends_tie": "Açık uçları bağla", "cmd.sketch_move": "Eskiz öğelerini taşı/kopyala", "cmd.sketch_move3d": "3D noktayı taşı", "cmd.sketch_move_point": "Eskiz noktasını sürükle", @@ -555,6 +709,7 @@ "cmd.sketch_spline_fit_point": "Uydurma noktalı spline", "cmd.sketch_spun_profile": "Döndürülmüş profil", "cmd.sketch_toggle_driven": "Türetilmiş ölçüyü aç/kapat", + "cmd.sketch_trim_path": "Yol boyunca buda", "cmd.solid_align": "Hizala", "cmd.solid_boundary_fill": "Sınır dolgusu", "cmd.solid_bounding_solid": "Sınırlayıcı gövde", @@ -570,8 +725,10 @@ "cmd.surface_blend": "Geçiş yüzeyi", "cmd.surface_boundary": "Sınır yüzeyi", "cmd.surface_extrude": "Yüzey ekstrüzyonu", + "cmd.surface_fair": "Yüzeyi düzgünleştir", "cmd.surface_fillet": "Yüzey yuvarlatma", "cmd.surface_loft": "Yüzey loftu", + "cmd.surface_match": "Yüzeyi eşle", "cmd.surface_offset": "Ofset yüzey", "cmd.surface_patch": "Yama", "cmd.surface_reverse_normal": "Normali ters çevir", @@ -595,15 +752,63 @@ "cmd.timeline_roll_to": "Geçmiş işaretçisini taşı", "cmd.timeline_rollback": "Zaman çizelgesi işaretçisini taşı", "cmd.timeline_suppress": "Özelliği bastır", + "cmd.view_ambient_occlusion": "Ortam tıkanması", "cmd.view_apply": "Adlandırılmış görünümü geri yükle", "cmd.view_delete": "Adlandırılmış görünümü sil", + "cmd.view_graphics_preset": "Grafik ön ayarı", "cmd.view_list": "Adlandırılmış görünümleri listele", "cmd.view_navigate": "Görünümde gezin", "cmd.view_rename": "Adlandırılmış görünümü yeniden adlandır", "cmd.view_save": "Yeni adlandırılmış görünüm", - "command name": "komut adı", + "color.copy": "Renk değerlerini kopyalamak için tıklayın", + "color.edit": "Rengi düzenlemek için tıklayın", + "color.gamma": "Renk değerleri 0-255 gama uzayında gösteriliyor", + "color.hue": "Ton", + "color.linear": "Renk değerleri 0-1 doğrusal uzayda gösteriliyor", + "color.saturation_value": "Doygunluk ve değer", + "color.selected": "Seçili renk", + "contact.components_count": "{count} bileşen", + "contact.enabled_label": "etkin", + "coupling.gear_1": "Dişli 1", + "coupling.gear_1_pick": "Dişli 1 (isteğe bağlı)", + "coupling.gear_2": "Dişli 2", + "coupling.gear_2_pick": "Dişli 2 (isteğe bağlı)", + "coupling.internal": "İç dişli", + "coupling.needs_turn_and_slide": "dönen bir bağlantı ile kayan bir bağlantı gerekir", + "coupling.needs_turns": "dönen iki bağlantı gerekir", + "coupling.not_round": "yuvarlak bir yüz değil", + "coupling.nut": "Somun", + "coupling.picked": "seçildi", + "coupling.pinion": "Pinyon", + "coupling.pinion_pick": "Pinyon (isteğe bağlı)", + "coupling.pitch": "Adım", + "coupling.rack": "Kremayer", + "coupling.radius_1": "Yarıçap 1", + "coupling.radius_2": "Yarıçap 2", + "crash.announce": "SolidCraft geçen sefer beklenmedik şekilde kapandı veya bir iç hata aldı. Bir çökme raporu kaydedildi (Yardım > Çökme raporları…).", + "crash.copy_folder": "Klasör yolunu kopyala", + "crash.copy_path": "Yolu kopyala", + "crash.deleted": "{count} rapor silindi.", + "crash.detected_time": "Tespit edildi: {time} UTC", + "crash.intro": "Çökme raporları bu bilgisayarda kalır ve hiçbir yere gönderilmez. Bildir… herhangi bir şey paylaşılmadan önce gözden geçireceğiniz bir taslak açar.", + "crash.kind_command": "Bir komutta iç hata", + "crash.kind_internal": "İç hata", + "crash.kind_kernel": "Çekirdek hatası (kurtarıldı)", + "crash.kind_unclean": "Beklenmedik şekilde kapandı", + "crash.previous_session": "Önceki bir SolidCraft oturumu beklenmedik şekilde sona erdi veya bir iç hata aldı. Temiz olmayan çıkışların raporları açılışta tespit edilir. Ayrıntılar için Yardım > Çökme raporları… bölümüne bakın.", + "crash.replayable": "yeniden oynatılabilir", + "crash.report": "Bildir…", + "crash.unclean_explanation": "Sonraki bir açılışta tespit edildi; tam çıkış zamanı kaydedilmedi. Sistemin kapanması veya zorla durdurulması da temiz olmayan çıkışa neden olabilir.", + "delete.and_more": "… ve {count} tane daha", + "dialog.bodies_count": "{count} gövde", + "dialog.clearance_invalid": "açıklık 0 veya daha büyük bir uzunluk olmalıdır", + "dialog.compute": "Hesapla", + "dialog.compute_again": "Yeniden hesapla", "dialog.computing": "Hesaplanıyor… {seconds} sn", + "dialog.could_not_be_checked": "denetlenemedi", "dialog.custom_axis": "↖ Özel eksen", + "dialog.dimension_insert_hint": "Adını eklemek için başka bir sürücü ölçüye çift tıklayın", + "dialog.dimension_name": "Ölçü: {name}", "dialog.edit_title": "{title} düzenleniyor", "dialog.select": "↖ Seç", "dialog.selected_count": "↖ {count} seçildi", @@ -615,9 +820,42 @@ "drive.stopped_by_contact": "{value} değerinde durdu: {a} ile {b} iç içe geçerdi", "drive.stopped_by_loop": "{value} değerinde durdu: {joint} üzerinden geçen döngü daha fazla kapatılamıyor", "drive.unconnected": "Hiçbir şey hareket etmiyor: {part} sabitlenmiş hiçbir parçaya bağlı değil", - "expression, e.g. 25 mm": "ifade, ör. 25 mm", + "dxf.cancel_wait": "Dışa aktarmanın durması bekleniyor…", + "dxf.cancelled": "DXF dışa aktarma iptal edildi", + "dxf.cancelling": "DXF dışa aktarma iptal ediliyor", + "dxf.exporting": "DXF dışa aktarılıyor", + "dxf.invalid_tolerance": "Eğri toleransı 0,0001 ile 1 mm arasında olmalıdır.", + "dxf.progress.index": "Yüzeyler hazırlanıyor (2/5)", + "dxf.progress.meshes": "Ağlar hazırlanıyor (1/5)", + "dxf.progress.occlusion": "Gizli çizgiler çözümleniyor (4/5)", + "dxf.progress.projection": "Geometri izdüşürülüyor (3/5)", + "dxf.progress.write": "DXF yazılıyor (5/5)", + "dxf.tolerance": "Eğri toleransı", + "dxf.tolerance_help": "Yalnızca görünür gövdeler. Eğriler düz parçalarla gösterilir. Daha küçük tolerans daha ince eğriler verir ve daha çok zaman ve bellek kullanır.", + "file_load.built": "Şu ana kadar oluşturulan: {built} / {total} özellik.", + "file_load.converting": "Katı {done} / {total} dönüştürülüyor", + "file_load.inserting": "Geometri ekleniyor", + "file_load.opening": "Tasarım açılıyor", + "file_load.preparing_thumbnail": "Küçük resim hazırlanıyor...", + "file_load.preparing_view": "Görünüm hazırlanıyor...", + "file_load.preview_note": "Kayıtlı önizleme. Düzenlemeden önce geometri denetleniyor.", + "file_load.reading": "Dosya okunuyor...", + "file_load.reading_percent": "Dosya okunuyor... %{percent}", + "file_load.rebuilding": "Özellik {done} / {total} yeniden oluşturuluyor", + "file_load.recovering": "Tasarım kurtarılıyor", + "file_load.stopping": "Önceki işlemin durması bekleniyor...", + "file_load.waiting": "Dosya işlemi bekleniyor", "fits the face, e.g. M8": "yüze uyar, ör. M8", "from the rule": "kuraldan", + "help.apache": "Apache lisansı 2.0", + "help.attributions": "Atıflar (ATTRIBUTION.md)", + "help.build": "Sürüm {version} · commit {commit} · derleme tarihi {date}", + "help.font_details": "Arayüz, egui'nin yerleşik yazı tiplerini kullanır (Ubuntu Font Licence ve MIT/Bitstream Vera lisansları altında Ubuntu Light ve Hack; OFL ve MIT altında Noto Emoji ve emoji simge yazı tipi). Eskiz metni Liberation Sans (SIL OFL 1.1) kullanır. The Crafting Apps'in isteğe bağlı yazı tipi paketi craft-fonts (BIZ UDPGothic, Shippori Mincho, BIZ UDMincho, Noto Sans CJK SC, Noto Sans Arabic; SIL OFL 1.1), SolidCraft derlemelerine dahil değildir.", + "help.fonts": "Yazı tipleri", + "help.licences": "Lisanslar", + "help.mit": "MIT lisansı", + "help.notice": "NOTICE", + "help.third_party": "Üçüncü taraf lisansları", "home.documentation": "Belgeler", "home.in_this_browser": "bu tarayıcıda", "home.missing": "eksik", @@ -643,13 +881,51 @@ "install.menu": "Uygulamayı yükle…", "install.steps_intro": "Safari web uygulamalarını kendi menüleri üzerinden yükler:", "install.title": "SolidCraft'ı yükle", + "issue.body_label": "Rapor metni", + "issue.note_image_copied": "Görseli GitHub taslağına yapıştırın; görsel kopyalama kullanılamıyorsa PNG'yi kaydedin.", + "issue.note_opened": "GitHub taslağını gözden geçirin ve ekran görüntüsünü ekleyin. GitHub'daki Submit new issue düğmesi raporu yayımlar.", + "issue.note_opened_copied": "Rapor kopyalandı. GitHub taslağına yapıştırın, ekran görüntüsünü ekleyin, ardından GitHub'da Submit new issue düğmesine tıklayın.", + "issue.note_removed": "Ekran görüntüsü bu taslaktan kaldırıldı.", + "issue.note_report_copied": "Rapor kopyalandı. Gerekirse GitHub taslağına yapıştırın.", + "issue.note_save_failed": "Ekran görüntüsü kaydedilemedi: {error}", + "issue.note_saved": "Ekran görüntüsü kaydedildi. PNG'yi GitHub taslağına ekleyin.", + "issue.save_screenshot": "Ekran görüntüsünü kaydet…", "joint.from_bodies_hint": "Seçilen her gövde kendi yeni bileşenine konur ve bulunduğu yerde kalır.", "joint.one_body": "Her iki seçim de {body} üzerinde. İkincisini başka bir parçada seçin.", "joint.one_component": "Bu parçalar tek bir bileşenin gövdeleridir: {bodies}. Bir bağlantı bir bileşeni diğerine göre hareket ettirir, bu nedenle her parçanın kendi bileşeni olması gerekir.", + "keymap.command_id": "Komut kimliği", + "keymap.empty": "Eşleşen komut yok", + "keymap.use_anyway": "Yine de burada {key} kullan", + "manage.appearance_hint": "Seçim için bir görünüm seçin veya bir örneği gövde ya da yüz üzerine sürükleyin.", + "manage.assign_hint": "Gövdeleri seçin ve plastik tasarım kurallarını belirleyin.", + "manage.config_hint": "Yapılandırma satırlarını, sütunlarını ve kurallarını düzenleyin, ardından bir satırı etkinleştirin veya önizleyin.", + "manage.empty": "Eşleşen satır yok.", + "manage.material_hint": "Gövdeleri seçin ve fiziksel malzemelerini belirleyin.", + "manage.parameters_hint": "İfadeleri ve birimleri düzenleyin. Değişiklikler Enter'a basıldığında veya alandan çıkıldığında uygulanır.", + "manage.rules_hint": "Düzenlemek için bir kural seçin veya yeni bir kural oluşturun. Kuralı kaydetmek için onaylayın.", + "measure.at": "Konum", + "measure.item": "Öğe {number}", + "messages.ago_h": "{n} sa. önce", + "messages.ago_min": "{n} dk. önce", + "messages.ago_s": "{n} sn. önce", + "messages.chip_hint": "Bu oturumun tüm iletileri için tıklayın", + "messages.clear": "Temizle", + "messages.copy_all": "Tümünü kopyala", + "messages.menu": "İletiler…", + "messages.none": "Henüz ileti yok.", + "messages.title": "İletiler", "motion.checked_to": "Yalnızca {step}. adıma kadar denetlendi: denetim iş bütçesini tüketti", "motion.collision": "{a} · {b}: adımlar {steps}", + "motion.delete_key": "Anahtar kareyi sil", "motion.duration_hint": "saniye (boş: adım başına)", + "motion.key_here": "Buraya anahtar kare ekle", + "motion.key_here_hint": "Bu adıma bağlantının mevcut değeriyle bir anahtar kare ekle", "motion.no_collisions": "Etüt boyunca çarpışma yok", + "motion.step_back": "Bir adım geri", + "motion.step_forward": "Bir adım ileri", + "motion.to_end": "Sona git", + "motion.to_start": "Başa git", + "motion.track_name": "İz {number}", "nav.touchpad.help": "Kaydırmak için Shift tuşunu basılı tutun ve imleci hareket ettirin; Alt/Option ile döndürün. Fare tuşu gerekmez. Dikey kaydırma yakınlaştırır.", "nav.touchpad.label": "Dokunmatik yüzey", "nav.touchpad.orbit": "Döndür (Alt/Option tuşunu basılı tutup hareket ettirin; fare tuşu olmadan)", @@ -658,11 +934,13 @@ "nav.touchpad.zoom": "Yakınlaştır (dikey kaydırın veya parmaklarınızı açıp kapatın)", "needs two joints": "iki bağlantı gerektirir", "new configuration": "yeni konfigürasyon", - "new name": "yeni ad", "new parameter": "yeni parametre", + "no hole": "delik yok", "no interference": "girişim yok", "no joint that moves yet": "henüz hareket eden bir bağlantı yok", "no picture": "resim yok", + "none": "yok", + "parts.automatic_name": "otomatik", "pattern.alignment_2": "Hizalama 2", "pattern.alignment_hint": "Adet, orijinali içerir. Ortala, kopyaları iki yana dağıtır; çift adetlerde yönü ters çevirme, fazladan kopyanın hangi tarafta olacağını belirler.", "pattern.direction_1": "Yön 1", @@ -670,12 +948,19 @@ "pattern.flip_direction": "Yönü ters çevir", "pick a hole to seat it, or OK places it at the origin": "yerleştirmek için bir delik seçin veya OK ile orijine yerleştirin", "pick one or two vertices, edges or faces": "bir veya iki köşe noktası, kenar ya da yüz seçin", + "prefs.cpu": "CPU (yazılım)", + "prefs.minutes_suffix": " min", + "properties.title": "Özellikler: {name}", + "recovery.days_ago": "{count} gün önce", + "recovery.detail": "{file} · {features} özellik · otomatik kaydedilen: {when}", + "recovery.hours_ago": "{count} sa. önce", + "recovery.just_now": "az önce", + "recovery.min_ago": "{count} dk. önce", + "recovery.never_saved": "hiç kaydedilmedi", "render.background": "Sahne arka planı", "render.fit": "Ürünü sığdır", - "render.image_cancel": "Render'ı iptal et", "render.image_cancelled": "Render iptal edildi", "render.image_cancelling": "İptal ediliyor", - "render.image_check": "Render isteğini kontrol et", "render.image_completed": "Resim dışa aktarmaya hazır", "render.image_encoding": "PNG kodlanıyor", "render.image_export": "PNG dışa aktar", @@ -722,53 +1007,97 @@ "sample.plate.name": "Örnek plaka", "sample.vents.about": "Dikdörtgen desende yuvalar: satırlar, sütunlar ve aralık parametredir", "sample.vents.name": "Havalandırma plakası", + "search.command_keys": "Enter çalıştır Shift+Enter çalıştır ve açık tut Esc kapat", + "search.commands": "Komutlar", + "search.design": "Bu tasarımda", + "search.feature": "Özellik", + "search.invalid": "Geçersiz", + "search.keys": "↑ ↓ seç Enter çalıştır Tab adı doldur Esc kapat", + "search.no_match": "'{query}' ile eşleşen komut yok", + "search.parameter": "Parametre", + "search.recent": "Son kullanılanlar", + "search.run": "Komutu çalıştır", + "search.suggest": "{label} mi demek istediniz?", + "search.try": "Bir komut adı, bu tasarımdaki bir özellik veya bir parametre yazın. Bir komutu değerlerle çalıştırmak için kimliğini ve bir JSON nesnesi yazın: {example}", + "search.valid": "Geçerli", "settings.display_quality_note": "Daha ince seviyeler eğri yüzeyleri ve kenarları daha pürüzsüz gösterir, ancak ağ oluşturma daha uzun sürer. Yalnızca görünüm değişir; tasarım ve dışa aktarımlar asla değişmez.", + "settings.frame_rate_note": "Görünümün sağ alt köşesinde saniyedeki kare sayısını gösterir. Açıkken görünüm sürekli yeniden çizilir.", + "settings.measure_axis_distances": "X/Y/Z mesafelerini göster", + "settings.measure_axis_distances_help": "Ölç açıkken toplam mesafenin yanında dünya ekseni bileşen ölçülerini gösterir.", "settings.msaa_applies_on_restart": "Kenar yumuşatma, SolidCraft bir sonraki başlatıldığında uygulanır", "settings.msaa_reset": "{setting}: {requested}× bu grafik aygıtı tarafından desteklenmiyor; {reset}× olarak ayarlandı (desteklenen: {supported}).", "settings.msaa_unsupported": "Bu grafik aygıtı tarafından desteklenmiyor", "settings.reset_intro": "Bu ayarlar bu bilgisayarda çalışmadığı ve SolidCraft'ın başlamasını engelleyeceği için değiştirildi:", "settings.reset_title": "Ayarlar değiştirildi", "settings.supersampling_note": "Görünümü daha yüksek çözünürlükte çizer ve küçültür: 4K altındaki ekranlarda kenarlar, çizgiler ve ızgaralar daha pürüzsüz görünür. GPU süresi gerektirir: 1,5× ayarında yaklaşık 2,25 kat, 2× ayarında 4 kat daha fazla piksel işlenir.", + "shortcut.json_error": "parametreler JSON biçiminde olmalıdır: {error}", + "shortcut.no_command": "`{id}` komutu yok; JSON'dan önceki metin bir komut kimliği olmalıdır", + "shortcut.pin": "S kutusunun üstüne sabitle", + "shortcut.unpin": "Sabitlemeyi kaldır", "sketch.degrees_of_freedom": "{count} serbestlik derecesi", + "sketch.dof_left": "Kalan serbestlik derecesi: {count}", + "sketch.dof_left_one": "Kalan serbestlik derecesi: {count}", "sketch.draw_curves": "{linetype} olarak çiz", "sketch.make_selection": "Seçimi {linetype} olarak işaretle", + "sketch.open_ends": "Açık {count}", + "sketch.untied_ends": "Bağlanmamış {count}", + "sketch_panel.attached": "Bağlı olduğu: {body} / {path}", + "sketch_panel.author": "Yazar yerleşimi: {path}", + "sketch_panel.dimension_hint": "Bir değer veya ifade girip Tamam’a basın.", + "sketch_panel.move_hint": "Uzaklıkları ve bir açı girip Tamam’a basın.", + "sketch_panel.redefine_title": "{command}: {name}", + "sketch_panel.sheet_attachment": "Sac gövdenin düz bir yüzüne bağlıdır; sac değiştiğinde bu paneli izler.", + "sketch_panel.text_hint": "Metni ve yerleşimini düzenleyip Tamam’a basın.", + "sketch_panel.use_plane": "{plane} düzlemini kullan", "sketch_text.align_center": "Orta", "sketch_text.align_left": "Sol", "sketch_text.align_right": "Sağ", "sketch_text.bold": "Kalın", "sketch_text.builtin_font": "{family} (yerleşik)", - "sketch_text.font_search": "Yazı tiplerini ara", "sketch_text.italic": "İtalik", "sketch_text.loading_fonts": "Yüklü yazı tipleri aranıyor…", "sketch_text.on_path": "Metin eğrisini izler: konumunu eğri belirler", "sketch_text.path_clear": "Metni eğriden ayır", "sketch_text.path_hint": "Metnin izleyeceği eskiz eğrisi: önce buraya, ardından eğriye tıklayın", "sketch_text.use_font_file": "{path} yazı tipi dosyasını kullan", + "solid": "katı", "the parts library is not available": "parça kitaplığı kullanılamıyor", + "thread.automatic_size": "Otomatik boyut", + "thread.designation": "Tanım", + "thread.iso_metric": "ISO metrik", + "thread.select_size": "Boyut seç", "timeline.group": "Yeni özellik klasörü oluştur", "timeline.move_many": "Zaman çizelgesi öğelerini taşı", "timeline.move_to_group": "Özellikleri klasöre taşı", "timeline.rename_group": "Özellik klasörünü yeniden adlandır", "timeline.reorder_many": "Özellikleri yeniden sırala", "timeline.ungroup": "Özellik klasörünü kaldır", + "to the face": "yüze kadar", "to the next face": "sonraki yüze kadar", + "toolbar.customize_note": "{tab} sekmesi. Bir komuta araç çubuğu düğmesi eklemek için komutu işaretleyin. Ayrıca panelin açılır menüsündeki bir satırı araç çubuğuna sürükleyebilir, bir düğmeyi kaldırmak için araç çubuğunun dışına sürükleyebilir veya açılır menü satırındaki raptiyeyi kullanabilirsiniz.", "toolbar.image": "RESİM", "toolbar.render": "RENDER", "toolbar.render_scene": "SAHNE", + "trace.points": "Yol boyunca {count} nokta", + "trace.stopped_by_contact": "Örnek {sample} noktasında biter: {a}, {b} içinden geçecek", + "trace.stopped_by_loop": "Örnek {sample} noktasında biter: {joint} üzerinden geçen döngü daha fazla kapanamaz", "ui.1_degree_of_freedom": "1 serbestlik derecesi", "ui.3d_mouse_speed": "3D fare hızı", - "ui.3d_mouse_windows": "3D fare (Windows)", "ui.3d_sketch": "3D eskiz", - "ui.about": "Hakkında", "ui.activate": "Etkinleştir", "ui.active_component": "Etkin bileşen", + "ui.add_configuration": "Yapılandırma ekle", + "ui.add_parameter": "Parametre ekle", "ui.agent_chat": "Ajan sohbeti", + "ui.agent_chat_add": "Dosya ekle", + "ui.agent_chat_add_file": "Dosya seç…", "ui.agent_chat_allow": "İzin ver", "ui.agent_chat_allowed": "İzin verildi", "ui.agent_chat_answered": "Yanıt: {option}", "ui.agent_chat_approval": "Ajanın bunu yapmasına izin verilsin mi?", "ui.agent_chat_attach_view": "Görünümü ekle", "ui.agent_chat_attach_view_tip": "Geçerli görünümün bir resmini mesajla birlikte gönder", + "ui.agent_chat_attachable": "Görseller, PDF'ler, metin ve CAD dosyaları", "ui.agent_chat_auth_agent": "{name} ile oturum aç", "ui.agent_chat_auth_env": "{vars} ortam değişkenlerini ayarlayın ve SolidCraft'ı yeniden başlatın.", "ui.agent_chat_auth_needed": "Ajan oturum açmanızı istiyor. Oturumu ajanın kendisinde açarsınız; SolidCraft parolanızı veya anahtarlarınızı asla görmez.", @@ -788,31 +1117,74 @@ "ui.agent_chat_deny": "Reddet", "ui.agent_chat_desktop_only": "Ajan sohbeti masaüstü uygulamasını gerektirir.", "ui.agent_chat_detecting": "Ajanlar aranıyor…", + "ui.agent_chat_dock": "Yan panele yerleştir", "ui.agent_chat_dock_left": "Sola yerleştir", "ui.agent_chat_dock_right": "Sağa yerleştir", + "ui.agent_chat_drop_hint": "Bir sonraki iletinize eklemek için bırakın", + "ui.agent_chat_edit": "Düzenle", "ui.agent_chat_exited": "Ajan sonlandırıldı.", "ui.agent_chat_failed_start": "Ajan başlatılamadı: {error}", + "ui.agent_chat_file_cad_not_read": "{name}: CAD dosyası okunmaz, tasarıma içe aktarılır", + "ui.agent_chat_file_empty_picture": "{name}: boş bir görsel", + "ui.agent_chat_file_error": "{name}: {error}", + "ui.agent_chat_file_heic": "{name}: HEIC görseller burada okunamaz; önce JPEG veya PNG olarak dışa aktarın", + "ui.agent_chat_file_importing": "Tasarıma içe aktarılıyor…", + "ui.agent_chat_file_kinds": "{name}: görseller (PNG, JPEG, GIF, WebP, BMP, TIFF), metin dosyaları (SVG dahil) ve CAD dosyaları (STEP, IGES, FreeCAD, Rhino, STL, 3MF, OBJ, glTF) eklenebilir", + "ui.agent_chat_file_loading": "Dosya okunuyor…", + "ui.agent_chat_file_not_a_file": "{name}: dosya değil", + "ui.agent_chat_file_not_a_picture": "{name}: görsel değil", + "ui.agent_chat_file_not_utf8": "{name}: UTF-8 metin değil", + "ui.agent_chat_file_picture_too_big": "{name}: bir görsel en fazla {max} MB olabilir", + "ui.agent_chat_file_text_too_big": "{name}: bir metin dosyası en fazla {max} KB olabilir", + "ui.agent_chat_file_too_large": "{name}: çok büyük", + "ui.agent_chat_file_too_large_to_send": "{name}: küçültülse bile göndermek için çok büyük", + "ui.agent_chat_file_unreadable_picture": "{name}: okunabilen bir görsel değil", + "ui.agent_chat_files": "Dosyalar: {files}", + "ui.agent_chat_files_left_out": "Bir iletiyle en fazla {max} dosya gider; dışarıda kalanlar: {files}", + "ui.agent_chat_files_loading": "Dosyaların okunması bekleniyor", + "ui.agent_chat_files_max": "Bir iletide en fazla {max} dosya olabilir", + "ui.agent_chat_import_failed": "{name}: içe aktarma başarısız oldu: {error}", "ui.agent_chat_intro": "Zaten kullandığınız bir kodlama ajanıyla veya seçtiğiniz bir model uç noktasıyla sohbet edin. Ajan, SolidCraft'ın araçlarıyla açık tasarım üzerinde çalışır: Değişiklikleri hemen görünür ve mesaj başına tek adımda geri alınabilir. Sormadan neleri yapabileceğini Ayarlar > AI altında belirlersiniz.", "ui.agent_chat_key_in_env": "anahtar ayarlı", "ui.agent_chat_left": "Sol", "ui.agent_chat_limit": "Ajan, bir mesaj için {limit} değişiklik sınırına ulaştı. Devam etmesi için başka bir mesaj gönderin.", "ui.agent_chat_minimize": "Bir çubuğa küçült", + "ui.agent_chat_model_tip": "Ajanın kullandığı model. Seçiminiz bu ajan için hatırlanır.", + "ui.agent_chat_new": "Yeni sohbet", + "ui.agent_chat_new_confirm": "Yeni bir sohbet başlatılsın mı? Geçerli sohbet temizlenir.", + "ui.agent_chat_next_picture": "Sonraki resim", "ui.agent_chat_no_cli": "solidcraft-cli uygulamanın yanında bulunamadı, bu yüzden ajan tasarıma erişemiyor.", "ui.agent_chat_no_control": "Ajan sohbetinin uç noktası başlatılmadı, bu yüzden ajan tasarıma erişemiyor.", "ui.agent_chat_no_images": "Bu ajan resim kabul etmiyor", + "ui.agent_chat_no_picture": "Panoda görsel yok", "ui.agent_chat_none_found": "Kodlama ajanı bulunamadı. Bunlardan birini yükleyin ve ardından Yenile'ye tıklayın:", "ui.agent_chat_none_found_short": "Ajan bulunamadı", "ui.agent_chat_not_installed": "Yüklü değil", "ui.agent_chat_not_signed_in": "oturum açık değil", + "ui.agent_chat_own_window": "Ayrı pencere", + "ui.agent_chat_paste_picture": "Görsel yapıştır", "ui.agent_chat_permission": "Ajan şunu çalıştırmak istiyor: {title}", "ui.agent_chat_pick": "Ajan", "ui.agent_chat_placeholder": "Ajandan tasarımı değiştirmesini isteyin…", + "ui.agent_chat_placeholder_busy": "Ajan bitince gönderilmek üzere ileti sıraya alın (Ctrl+Enter: şimdi gönder)", + "ui.agent_chat_pop_out": "Başka bir ekrana taşıyabileceğiniz ayrı bir pencerede aç", + "ui.agent_chat_previous_picture": "Önceki resim", "ui.agent_chat_privacy": "Kendi hesabınızla çalıştırdığınız ajan dışında hiçbir yere bir şey gitmez.", "ui.agent_chat_privacy_note": "SolidCraft hiçbir yere bir şey göndermez: Başlattığınız ajan, sizin hesabınızla kendi hizmetine bağlanır. SolidCraft hiçbir anahtarı veya parolayı görmez ve kaydetmez.", + "ui.agent_chat_queue": "Sıraya al", + "ui.agent_chat_queue_full": "Çok fazla ileti bekliyor: birini kaldırın veya ajanı bekleyin.", + "ui.agent_chat_queued": "Sırada", + "ui.agent_chat_queued_stopped": "Sırada (durduruldu, gönderilmedi)", "ui.agent_chat_refresh": "Yenile", "ui.agent_chat_refused": "Ajan için izin verilmiyor: {reason}", + "ui.agent_chat_remove": "Sıradan kaldır", + "ui.agent_chat_remove_file": "Bu iletiden çıkar", + "ui.agent_chat_remove_imported": "Bu iletiden çıkar; parça tasarımda kalır (Geri al onu kaldırır)", "ui.agent_chat_right": "Sağ", + "ui.agent_chat_save": "Kaydet", "ui.agent_chat_send": "Gönder", + "ui.agent_chat_send_now": "Şimdi gönder", + "ui.agent_chat_send_now_tip": "Ajanın geçerli adımını durdurur ve bunu sonraki olarak gönderir (Ctrl+Enter)", "ui.agent_chat_side": "Ajan sohbeti konumu", "ui.agent_chat_signed_in": "oturum açık", "ui.agent_chat_state_auth": "Oturum açılması gerekiyor", @@ -823,6 +1195,7 @@ "ui.agent_chat_state_starting": "Başlatılıyor…", "ui.agent_chat_stop": "Durdur", "ui.agent_chat_stop_tip": "Ajanı ve başlattığı her şeyi durdur", + "ui.agent_chat_stop_turn_tip": "Ajanı durdur (Esc). Sıradaki iletiler sırada kalır.", "ui.agent_chat_turn_limit": "Mesaj başına değişiklik", "ui.agent_chat_undo_changes": "Bu değişiklikleri geri al", "ui.agent_chat_undo_label": "Ajan sohbeti: {message}", @@ -851,6 +1224,7 @@ "ui.ai_bad_url": "http:// veya https:// ile başlayan bir URL girin", "ui.ai_base_url": "Temel URL", "ui.ai_button": "AI", + "ui.ai_command_hint": "my-agent --acp", "ui.ai_copy_suffix": "Kopya", "ui.ai_custom_url": "Özel URL", "ui.ai_default": "Varsayılan", @@ -871,8 +1245,10 @@ "ui.ai_mode_edits_note": "Modelleme komutları onay istemeden çalışır; kaydetme, açma, dışa aktarma ve diğer dosya ya da yıkıcı işlemler için yine onay istenir.", "ui.ai_mode_global": "Yukarıda ayarlandığı gibi", "ui.ai_model": "Model", + "ui.ai_model_hint": "qwen3:14b", "ui.ai_modes_scope": "Bu ayarlar SolidCraft araçları için geçerlidir. Bir ajanın kendi araçları (kabuğu, dosya değişiklikleri), ajanın modları varsa sohbet panelinin başlığında seçtiğiniz kendi modunu izler.", "ui.ai_name": "Ad", + "ui.ai_name_hint": "Ajanım", "ui.ai_need_command": "Ajanı başlatan komutu girin", "ui.ai_need_model": "Model adını girin", "ui.ai_no_answer": "Ajan zamanında yanıt vermedi", @@ -903,7 +1279,10 @@ "ui.ai_toolbar_button": "Araç çubuğunda düğmeyi göster", "ui.ai_toolbar_button_note": "Araç çubuğunun sağ ucundaki AI düğmesi. Ctrl+Shift+A ve Görünüm menüsü paneli açmaya devam eder.", "ui.ai_undo_tip": "Ajanın bu mesaj için değiştirdiği her şeyi tek adımda geri al", + "ui.ai_url_hint": "https://example.com/v1", "ui.all": "Tümü", + "ui.ambient_occlusion": "Ortam tıkanması", + "ui.ambient_occlusion_help": "Opak yüzeylerin birleştiği yerlerde yumuşak gölgelendirme. GPU görünümü gerektirir.", "ui.analysis": "Analiz", "ui.angle": "Açı", "ui.angle_decimals": "Açı ondalık basamakları", @@ -914,7 +1293,8 @@ "ui.anti_aliasing": "Kenar yumuşatma", "ui.apply": "Uygula", "ui.arc": "Yay", - "ui.assemble": "Montaj", + "ui.assistant": "Asistan", + "ui.assistant_waiting": "{count} onay bekliyor", "ui.autosave_every": "Otomatik kaydetme aralığı", "ui.axes": "Eksenler", "ui.axis": "Eksen", @@ -922,8 +1302,14 @@ "ui.base_point": "Temel nokta", "ui.blocked": "Engellenmiş", "ui.bodies": "Gövdeler", + "ui.bodies_all_if_none": "Gövdeler (yoksa tümü)", "ui.box": "Kutu", "ui.break": "Kır", + "ui.browser_bodies_one": "{count} gövde", + "ui.browser_bodies_other": "{count} gövde", + "ui.browser_collapse": "Tarayıcıyı daralt", + "ui.browser_expand": "Tarayıcıyı genişlet", + "ui.browser_title": "Tarayıcı", "ui.calibrate": "Kalibre et", "ui.cancel": "İptal", "ui.canvases": "Tuvaller", @@ -933,7 +1319,6 @@ "ui.chamfer": "Pah", "ui.chamfer_type": "Pah türü", "ui.change_workspace": "Çalışma alanını değiştir", - "ui.chord_length": "Kiriş uzunluğu", "ui.circle": "Daire", "ui.circular_pattern": "Dairesel desen", "ui.clear": "Temizle", @@ -966,13 +1351,14 @@ "ui.command_done": "{command} tamamlandı", "ui.command_palette_hint": "Bir komut yazın (ör. {example}) — veya aramak için S tuşuna basın", "ui.concentric": "Eş merkezli", - "ui.configurations": "Konfigürasyonlar", "ui.conic_curve": "Konik eğri", "ui.constant": "Sabit", "ui.constraints_conflict": "Kısıtlamalar çakışıyor", - "ui.construct": "Yapı", "ui.construction": "Yapı çizgisi", "ui.context_menu": "Bağlam menüsü", + "ui.continuity_g0": "G0 kırık", + "ui.continuity_g1": "G1 teğet", + "ui.continuity_g2": "G2 eğrilik", "ui.continuity_gap": "Boşluk", "ui.copy": "Kopyala", "ui.corner": "Köşe", @@ -993,7 +1379,6 @@ "ui.cylinder": "Silindir", "ui.dark": "Koyu", "ui.default_modelling_orientation": "Varsayılan modelleme yönü", - "ui.degrees_of_freedom": "Serbestlik dereceleri", "ui.delete": "Sil", "ui.depth": "Derinlik", "ui.design": "Tasarım", @@ -1035,7 +1420,6 @@ "ui.equivalent_radius": "Eşdeğer yarıçap", "ui.expand": "Genişlet", "ui.exportDxf": "DXF olarak dışa aktar…", - "ui.export_ellipsis": "Dışa aktar...", "ui.export_ellipsis_keymap": "Dışa aktar…", "ui.export_keymap_tip": "Tuşları, S kutusu favorilerini ve araç çubuğunu dosya olarak dışa aktarır", "ui.extend": "Uzat", @@ -1056,10 +1440,19 @@ "ui.flat": "Düz", "ui.flip": "Ters çevir", "ui.format": "Biçim", + "ui.frame_rate": "Kare hızı", "ui.front": "Ön", "ui.fully_constrained": "Tam kısıtlı", + "ui.function": "Fonksiyon", "ui.general": "Genel", "ui.graphics": "Grafik", + "ui.graphics_custom": "Özel", + "ui.graphics_performance": "Performans", + "ui.graphics_preset": "Grafik ön ayarı", + "ui.graphics_preset_help": "Kalite: ortam tıkanması, İnce ekran kalitesi ve uyarlanabilir 2× süper örnekleme. Performans: ortam tıkanması yok, Normal ekran kalitesi ve süper örnekleme kapalı. Elle yapılan değişiklikler Özel olarak görünür. MSAA değişmez.", + "ui.graphics_quality": "Kalite", + "ui.grid_follows_view": "Izgara görünümü izler", + "ui.grid_follows_view_hint": "Yan görünümlerde ızgara, zemin yerine onlara bakan dik düzlemde gösterilir", "ui.ground_shadow": "Zemin gölgesi", "ui.groupSelected": "Seçimi grupla", "ui.heading_add_ins": "EKLENTİLER", @@ -1086,6 +1479,7 @@ "ui.heading_home": "BAŞLANGIÇ", "ui.heading_insert": "EKLE", "ui.heading_inspect": "İNCELE", + "ui.heading_interference": "ÇAKIŞMA", "ui.heading_loft": "LOFT", "ui.heading_make": "ÜRET", "ui.heading_measure": "Ölç", @@ -1116,7 +1510,6 @@ "ui.heading_sheet_metal": "SAC METAL", "ui.heading_shell": "KABUK", "ui.heading_sketch": "ESKİZ", - "ui.heading_sketch_palette": "ESKİZ PALETİ", "ui.heading_sketch_scale": "ESKİZİ ÖLÇEKLENDİR", "ui.heading_solid": "KATI", "ui.heading_sphere": "KÜRE", @@ -1135,6 +1528,7 @@ "ui.hideOrigin": "Orijini gizle", "ui.hidePlanes": "Düzlemleri gizle", "ui.hideProfile": "Profili gizle", + "ui.history_title": "Geçmiş", "ui.hole": "Delik", "ui.hole_tap_type": "Diş türü", "ui.hole_type": "Delik türü", @@ -1142,6 +1536,7 @@ "ui.homeView": "Başlangıç görünümü", "ui.horizontal_vertical": "Yatay/Dikey", "ui.import_ellipsis": "İçe aktar…", + "ui.infinite": "Sonsuz", "ui.insert": "Ekle", "ui.inspect": "İncele", "ui.intersect": "Kesişim", @@ -1153,11 +1548,12 @@ "ui.length_decimals": "Uzunluk ondalık basamakları", "ui.light": "Açık", "ui.line": "Çizgi", - "ui.linetype": "Çizgi türü", "ui.lock": "Kilitle", "ui.loft": "Loft", "ui.look_at": "Bak", "ui.look_at_anim_desc": "Eksen görünümü, Bak, Başlangıç ve Sığdır", + "ui.manipulator_free_alt": "Manipülatör serbest sürükleme Alt/Option ile de", + "ui.manipulator_free_alt_tip": "Açık: ekstrüzyon / gizmo oklarında Alt/Option veya Ctrl/Cmd değer yakalamayı devre dışı bırakır. Kapalı: yalnızca Ctrl/Cmd.", "ui.manufacture": "Üretim", "ui.material_review.axes": "Malzemenin yerel eksenleri; gövde yönlendirmesi atanmadı.", "ui.material_review.claims": "Kaynaklar ve lisanslar doğrulanmamış beyanlardır. Eksik değerler bilinmiyor olarak kalır.", @@ -1185,10 +1581,8 @@ "ui.mesh_format_3mf": "3MF", "ui.mesh_format_3mf_tagged": "Yüz etiketli 3MF", "ui.mesh_format_stl": "STL", - "ui.midpoint": "Orta nokta", "ui.mirror": "Aynala", "ui.mirror_line": "Ayna çizgisi", - "ui.modify": "Değiştir", "ui.move": "Taşı", "ui.multiple": "Çoklu", "ui.named_views": "Adlandırılmış görünümler", @@ -1197,6 +1591,7 @@ "ui.newSketchGroup": "Yeni eskiz grubu", "ui.new_body": "Yeni gövde", "ui.new_design": "Yeni tasarım", + "ui.no_geometry_yet": "Henüz geometri yok", "ui.no_slicer_found": "Dilimleyici bulunamadı", "ui.normal": "Normal", "ui.normalConstruction": "Normal / Yapı", @@ -1208,7 +1603,7 @@ "ui.offset_plane": "Ofset düzlem", "ui.one_side": "Tek taraflı", "ui.open": "Aç", - "ui.open_ellipsis": "Aç...", + "ui.open_ends_tip": "Hiçbir şeye değmiyor", "ui.open_preferences": "Ayarları aç", "ui.open_recent": "Son kullanılanlar", "ui.operation": "İşlem", @@ -1217,12 +1612,14 @@ "ui.orbit_around": "Etrafında döndür", "ui.orientation": "Yönlendirme", "ui.origin": "Orijin", - "ui.palette_points": "Noktalar", - "ui.palette_profile": "Profil", + "ui.palette_construction_mode": "Yardımcı çizim modu (X)", + "ui.palette_more": "Diğer", + "ui.palette_sketch_options": "Eskiz seçenekleri", "ui.pan": "Kaydır", "ui.pan_zoom_orbit": "Kaydır, yakınlaştır, döndür", "ui.parallel": "Paralel", "ui.parameters": "Parametreler", + "ui.part_size_shared": "Parçayı yeniden oluşturur ve eklenen tüm özelliklerin yerine geçer. Bu bileşenin tüm örnekleri güncellenir.", "ui.paste": "Yapıştır", "ui.path": "Yol", "ui.pattern_on_path": "Yol üzerinde desen", @@ -1234,6 +1631,12 @@ "ui.placement": "Yerleşim", "ui.plane": "Düzlem", "ui.plane_at_angle": "Açılı düzlem", + "ui.plugins": "Eklentiler", + "ui.plugins_desktop": "Eklentiler masaüstü uygulamasında kullanılabilir.", + "ui.plugins_empty": "Kurulu eklenti yok.", + "ui.plugins_note": "Her eklenti, {path} içinde plugin.json içeren bir klasördür. SolidCraft bu dosyayı okur ve klasördeki hiçbir kodu çalıştırmaz. Bir eklentiyi kapatmak onu kurulu tutar.", + "ui.plugins_skipped": "{count} klasör okunamadı.", + "ui.plugins_version": "{version}", "ui.point": "Nokta", "ui.point_under_the_cursor": "İmlecin altındaki nokta", "ui.points": "Noktalar", @@ -1252,11 +1655,17 @@ "ui.quit": "Çıkış", "ui.radial_context_menu": "Dairesel bağlam menüsü", "ui.radius": "Yarıçap", - "ui.radius_type": "Yarıçap türü", + "ui.rail": "Ray", + "ui.rail_fit": "Ray uyumu", "ui.reachable": "Erişilebilir", "ui.rectangle": "Dikdörtgen", "ui.rectangular_pattern": "Dikdörtgen desen", "ui.redo": "Yinele", + "ui.relink_design_changed": "Kaynak seçilirken montaj değişti. Kaynağı yeniden bağla komutunu yeniden başlatın.", + "ui.relink_done": "Kaynak tüm örnekler için yeniden bağlandı.", + "ui.relink_not_linked": "Bu bileşen bir kaynak tasarıma bağlı değil.", + "ui.relink_select_one": "Önce bağlı bir bileşen veya örneklerinden birini seçin.", + "ui.relink_source_all": "Kaynağı yeniden bağla (tüm örnekler)…", "ui.removeFromToolbar": "Araç çubuğundan kaldır", "ui.removeSection": "Kesiti kaldır", "ui.render": "Render", @@ -1268,12 +1677,16 @@ "ui.reset_the_settings_on_this_page": "Bu sayfadaki ayarları sıfırla", "ui.restore": "Geri yükle", "ui.restore_defaults": "Varsayılanları geri yükle", + "ui.reverse_horizontal_pan_direction": "Yatay kaydırma yönünü ters çevir", + "ui.reverse_horizontal_pan_tip": "Yatay iki parmak kaydırma ve başparmak tekerleği diğer yöne kaydırır", "ui.reverse_zoom_direction": "Yakınlaştırma yönünü tersine çevir", "ui.revolve": "Döndür", + "ui.ribbon_exit": "Çıkış", + "ui.ribbon_pin_footer": "Sabitlenen komutlar şeritte görünür. Sabitlemek veya kaldırmak için bir satırın üzerine gelin.", + "ui.ribbon_workspace": "Çalışma alanı", "ui.right": "Sağ", "ui.save": "Kaydet", "ui.save_as": "Farklı kaydet", - "ui.save_as_ellipsis": "Farklı kaydet...", "ui.save_mesh_no_slicer": "Dilimleyici bulunamadı: “Özel…” seçeneğini seçip dilimleyici programını belirtin veya “Dilimleyiciye gönder” seçeneğini kapatın", "ui.save_mesh_pick_bodies": "Kaydedilecek gövdeleri seçin", "ui.save_mesh_temp_failed": "{folder} oluşturulamadı: {error}", @@ -1281,12 +1694,15 @@ "ui.sbox_pin": "S kutusunun en üstüne sabitle", "ui.sbox_unpin": "Sabitlemeyi kaldır", "ui.scale": "Ölçekle", + "ui.second_rail": "İkinci ray", "ui.section_analysis": "Kesit analizi", "ui.select": "Seç", "ui.selectOther": "Diğerini seç…", "ui.selectTangentChain": "Teğet zinciri seç", - "ui.select_other_hint": "Diğerini seç: İmlecin altındaki her şeyi listelemek için sol tuşu model üzerinde hareket ettirmeden basılı tutun (veya sağ tık › Diğerini seç…); oradaki bir sonraki öğeyi seçmek için aynı noktaya tekrar tıklayın.", "ui.selection": "Seçim", + "ui.selection_modifiers": "Seçim değiştiricileri", + "ui.selection_shift_add_only": "Shift+tıklama kaldırmadan ekler", + "ui.selection_shift_add_only_tip": "Açık: Shift öğe ekler, Ctrl/Cmd açıp kapatır. Kapalı (varsayılan): Shift ve Ctrl/Cmd ikisi de açıp kapatır.", "ui.send": "Gönder", "ui.send_to_slicer": "Dilimleyiciye gönder", "ui.sent_to_slicer": "{slicer} uygulamasına gönderildi", @@ -1302,7 +1718,6 @@ "ui.show_constraints": "Kısıtlamalar", "ui.show_construction_geometries": "Yapı geometrileri", "ui.show_dimensions": "Ölçüler", - "ui.show_points": "Noktaları göster", "ui.show_profile": "Profili göster", "ui.show_projected_geometries": "Yansıtılmış geometriler", "ui.simple": "Basit", @@ -1311,8 +1726,8 @@ "ui.sketch": "Eskiz", "ui.sketch_dimension": "Eskiz ölçüsü", "ui.sketch_grid": "Eskiz ızgarası", + "ui.sketch_modifiers": "Eskiz değiştiricileri", "ui.sketch_scale": "Eskiz ölçeği", - "ui.sketch_status": "Eskiz durumu", "ui.sketches": "Eskizler", "ui.slice": "Dilim", "ui.slicer": "Dilimleyici", @@ -1358,11 +1773,14 @@ "ui.stand_up_tip": "Bir STEP veya IGES dosyası Z yukarı olarak açıldığında X etrafında çeyrek tur döndürmeyi öner", "ui.start": "Başlangıç", "ui.start_over": "Baştan başla", - "ui.start_radius": "Başlangıç yarıçapı", + "ui.start_page": "Başlangıç sayfası", + "ui.stretch": "Esnet", "ui.supersampling": "Süper örnekleme (SSAA)", "ui.supersampling_adaptive": "Yalnızca görünüm hareketsizken", "ui.supersampling_off": "Kapalı (1×)", "ui.suppress": "Bastır", + "ui.suppress_auto_snap": "Çizim / sürükleme sırasında otomatik yakalamayı bastır", + "ui.suppress_auto_snap_note": "Varsayılan: Ctrl/Cmd veya Alt/Option eskiz yakalamasını ayrı ayrı bastırır. Daraltmak için tek bir tuş seçin.", "ui.sweep": "Süpür", "ui.sweep_follow_direction": "Yönü izle", "ui.sweep_keep_as_drawn": "Çizildiği gibi", @@ -1377,6 +1795,8 @@ "ui.theme": "Tema", "ui.thickness": "Kalınlık", "ui.thread": "Diş", + "ui.tie_ends": "Bağla", + "ui.tie_ends_tip": "Bağlanmamış tüm uçları kısıtla", "ui.timeline_bottom": "Zaman çizelgesi altta", "ui.timeline_left_note": "Sol düzende geri sarma işaretçisi, parça ve sahne tarayıcısının üzerinde gösterilir.", "ui.timeline_left_sidebar": "Sol kenar çubuğu", @@ -1399,16 +1819,28 @@ "ui.units_of_new_designs": "Yeni tasarımların birimleri", "ui.unlock": "Kilidi aç", "ui.unsuppress": "Bastırmayı kaldır", + "ui.untied_ends_tip": "Yalnızca konum olarak değiyor", "ui.untitled": "Adsız", "ui.up_axis_note": "Görünümlerde (eksen görünümü, Başlangıç, Bak) hangi eksenin yukarıyı gösterdiğini belirler. Tasarımlar değişmez.", "ui.updateToCurrentView": "Geçerli görünüme güncelle", - "ui.variable": "Değişken", "ui.view_centre": "Görünüm merkezi", "ui.visual_shaded_hidden_edges": "Gizli kenarlarla gölgeli", "ui.visual_shaded_with_edges": "Kenarlarla gölgeli", "ui.visual_style": "Görsel stil", "ui.visual_wireframe": "Tel kafes", "ui.workspace": "Çalışma alanı", + "ui.workspace_animation_description": "Patlatılmış görünümler, hareket çalışmaları ve hikâye panoları", + "ui.workspace_available": "Kullanılabilir", + "ui.workspace_current": "Geçerli", + "ui.workspace_design_description": "Eskiz çizin, modelleyin, montajlayın ve inceleyin", + "ui.workspace_design_tabs": "Modelle · Yüzey · Montajla · Ekle · İncele · Yönet · Görünüm", + "ui.workspace_drawing_description": "Görünümler, ölçüler ve başlık bloklarıyla 2B teknik resimler", + "ui.workspace_footer": "Her çalışma alanı aynı tasarım, geçmiş ve seçim üzerinde çalışır; yalnızca şerit sekmeleri değişir. Bir eskiz veya özellik düzenlenirken geçiş kilitlidir.", + "ui.workspace_manufacture_description": "Dilimleme, takım yolları ve kurulum", + "ui.workspace_planned": "Planlanan", + "ui.workspace_render_description": "Ürün önizlemesi, sahne ayarları ve render görüntüleri", + "ui.workspace_render_tabs": "Sahne · Görüntü", + "ui.workspace_simulation_description": "Yükler, kısıtlamalar ve sonuçlar", "ui.x_distance": "X mesafesi", "ui.y_distance": "Y mesafesi", "ui.y_up": "Y yukarı", @@ -1418,7 +1850,7 @@ "ui.zoom_to_the_cursor": "İmlece doğru yakınlaştır", "update.available": "SolidCraft {version} kullanılabilir", "update.button": "Güncelle", - "update.button_tip": "SolidCraft {version} kullanılabilir", + "update.button_version": "{version} sürümüne güncelle", "update.check_automatically": "Güncellemeleri otomatik denetle", "update.check_now": "Şimdi denetle", "update.checking": "Denetleniyor…", @@ -1449,5 +1881,6 @@ "update.title": "Güncelleme mevcut", "update.up_to_date": "SolidCraft güncel.", "update.update_now": "Şimdi güncelle", - "update.you_have": "Yüklü sürüm: {version}." + "update.you_have": "Yüklü sürüm: {version}.", + "↑ ↓ choose · Enter / Tab complete · Esc dismiss": "↑ ↓ seç · Enter / Tab tamamla · Esc kapat" } diff --git a/assets/locales/uk.json b/assets/locales/uk.json index 5957aee15..d046ea054 100644 --- a/assets/locales/uk.json +++ b/assets/locales/uk.json @@ -3,11 +3,14 @@ "1. Open GitHub draft below, then paste the report copied to your clipboard.": "1. Відкрийте чернетку GitHub нижче, а потім вставте звіт, скопійований у буфер обміну.", "1. Open GitHub draft below. Your title and report will be filled in.": "1. Відкрийте чернетку GitHub нижче. Заголовок і звіт буде заповнено.", "2. Attach your screenshot: copy and paste it, or save and upload the PNG.": "2. Додайте знімок екрана: скопіюйте й вставте його або збережіть і завантажте PNG.", + "2D": "2D", "3. Click Submit new issue on GitHub to send your report.": "3. Натисніть Submit new issue на GitHub, щоб надіслати звіт.", "A new configuration, a copy of the active one": "Нова конфігурація, копія активної", - "AI": "ШІ", + "ARRANGE": "РОЗТАШУВАННЯ", "About SolidCraft": "Про SolidCraft", "Acceleration": "Прискорення", + "Access": "Доступ", + "Actions": "Дії", "Active": "Активна", "Active rule": "Активне правило", "Add": "Додати", @@ -15,6 +18,7 @@ "Add Mid Radius": "Додати середній радіус", "Add Row": "Додати рядок", "Add condition": "Додати умову", + "Add or edit rule": "Додати або змінити правило", "Against": "Проти", "Alignment": "Вирівнювання", "All Sketch Points": "Усі точки ескізу", @@ -28,20 +32,33 @@ "Applied Radius": "Застосований радіус", "Apply To": "Застосувати до", "Apply to selection": "Застосувати до виділення", + "Apply your appearance first. Exports assigned appearances and materials created in this design.": "Спочатку застосуйте вигляд. Експортує призначені вигляди та матеріали, створені в цьому проєкті.", "Arc length": "Довжина дуги", "Area": "Площа", + "As-Built": "Як зібрано", + "Assign Rule": "Призначити правило", "Attachment": "Прив'язка", + "BLEND SURFACE": "ПОВЕРХНЯ ПЕРЕХОДУ", "BOUNDARY SURFACE": "ПОВЕРХНЯ ЗА МЕЖАМИ", "BROWSER": "БРАУЗЕР", "Bend Line Position": "Положення лінії згину", "Bend Position": "Положення згину", "Bend Radius": "Радіус згину", + "Bend Table": "Таблиця згинів", "Bends": "Згини", + "Bodies": "Тіла", "Body": "Тіло", "Boundary": "Межа", "Bounding box": "Обмежувальна рамка", + "CHECK": "ПЕРЕВІРКА", + "COMPONENTS": "КОМПОНЕНТИ", + "CONFIGURATIONS": "КОНФІГУРАЦІЇ", + "CONSTRAIN": "ОБМЕЖЕННЯ", + "CONTACT": "КОНТАКТ", + "CONVERT": "ПЕРЕТВОРЕННЯ", "CSV or JSON: updates existing parameters, adds new ones": "CSV або JSON: оновлює наявні параметри, додає нові", "Capture All Positions": "Зафіксувати всі положення", + "Capture Pos.": "Зафікс. полож.", "Catch Direction": "Напрямок зачеплення", "Cells": "Комірки", "Center X": "Центр X", @@ -52,15 +69,19 @@ "Check collisions": "Перевіряти зіткнення", "Checked": "Перевірено", "Choose a new plane. Sketch geometry and dimensions stay unchanged in its two-dimensional coordinates.": "Виберіть нову площину. Геометрія та розміри ескізу залишаються незмінними у своїх двовимірних координатах.", + "Choose…": "Вибрати…", + "Circular": "Круговий", "Circumference": "Довжина кола", "Close draft": "Закрити чернетку", "Collisions": "Зіткнення", "Colour": "Колір", + "Comment": "Коментар", "Component1": "Компонент1", + "Config Table": "Табл. конфігурацій", "Configuration": "Конфігурація", "Configuration rules": "Правила конфігурації", - "Construction": "Конструкційна", "Contact": "Контакт", + "Contact Sets": "Набори контактів", "Contact sets": "Набори контактів", "Continuity": "Неперервність", "Copy Error Message": "Копіювати повідомлення про помилку", @@ -78,15 +99,17 @@ "Cube": "Куб", "Current orthographic view (1:1 mm)": "Поточний ортографічний вид (1:1 mm)", "Current perspective view": "Поточний перспективний вид", + "Curv. Comb": "Гребінь кривини", "Curvature (G2)": "Кривина (G2)", "Curvature change (G3)": "Зміна кривини (G3)", "Customize Toolbar": "Налаштувати панель інструментів", + "Delete": "Видалити", "Delete all": "Видалити все", "Delete rule": "Видалити правило", "Delete the row": "Видалити рядок", "Delete the set": "Видалити набір", - "Delete this parameter": "Видалити цей параметр", "Density": "Густина", + "Dependents": "Залежні", "Designs you open or save appear here.": "Проєкти, які ви відкриваєте чи зберігаєте, з'являються тут.", "Determined by To Object. Choose Angle to edit the angular extent.": "Визначається об'єктом призначення. Виберіть «Кут», щоб редагувати кутову протяжність.", "Direction": "Напрямок", @@ -98,49 +121,72 @@ "Drive Joint": "Керувати з'єднанням", "Duration": "Тривалість", "Edges": "Ребра", + "Edit": "Змінити", "Edit Profile Sketch": "Редагувати ескіз профілю", "Enable rule": "Увімкнути правило", "Enabled": "Увімкнено", + "End bulge": "Роздуття кінця", + "End continuity": "Неперервність кінця", "Explode": "Рознести", "Explode Text": "Розібрати текст", "Export Animation…": "Експортувати анімацію…", + "Export CSV…": "Експорт CSV…", "Export Current View as DXF": "Експортувати поточний вид як DXF", "Export Current View as DXF…": "Експортувати поточний вид як DXF…", + "Export DXF": "Експорт DXF", "Export DXF…": "Експорт DXF…", + "Export JSON…": "Експорт JSON…", "Export hidden edges as dashed lines": "Експортувати приховані ребра як штрихові лінії", + "Expression": "Вираз", "Extend to meet": "Подовжити до перетину", "Extents": "Межі", + "FILES": "ФАЙЛИ", + "FLAT": "РОЗГОРТКА", "Face": "Грань", "Face attachment lost": "Втрачено прив'язку до грані", "Faces": "Грані", "Faces / edges / vertices": "Грані / ребра / вершини", + "Fastener": "Кріплення", + "Favorites": "Обране", "Favourite": "Обране", + "Feature": "Операція", "Files from many CAD programs have Y up, so they open lying on their back here (Z up).": "Файли з багатьох CAD-програм мають напрямок Y вгору, тому тут вони відкриваються лежачи на спині (Z вгору).", "Filter": "Фільтр", "Find in Browser": "Знайти в браузері", - "Flat": "Плоска", + "Finish": "Оздоблення", + "Flat Pattern": "Розгортка", "Flat size": "Розмір розгортки", "Follow camera (Look At sketches)": "Стежити за камерою (ескізи наведення)", "Follow the camera (Look At sketches)": "Стежити за камерою (ескізи наведення)", "Font": "Шрифт", + "From Bodies": "З тіл", "From edges": "Початкові ребра", "Full Length": "Повна довжина", + "Gap": "Зазор", "Grid": "Сітка", + "HISTORY": "ІСТОРІЯ", "Height": "Висота", "Hidden edges": "Приховані ребра", "Holes": "Отвори", "Holes (edges on them)": "Отвори (ребра на них)", "Home view": "Головний вид", + "Horiz./Vert.": "Гориз./верт.", + "IMAGES": "ЗОБРАЖЕННЯ", + "Import…": "Імпорт…", "In This Design": "У цьому проєкті", "In place (surfaces)": "На місці (поверхні)", "In plane": "У площині", "Inside": "Усередину", "Interferes": "Перетинається", + "Isocurve": "Ізокрива", "Issue title": "Заголовок повідомлення", + "JOINTS": "З’ЄДНАННЯ", "Joint Origin1": "Початок з'єднання1", "Keep (points on it)": "Залишити (точки на ньому)", "Keep Tools": "Зберегти інструменти", "Keep of the other surface": "Залишити від іншої поверхні", + "LIBRARY": "БІБЛІОТЕКА", + "LINKS": "ПОСИЛАННЯ", "Later": "Пізніше", "Leave it": "Залишити як є", "Legacy face attachment. Rebinding to a certified face creates an exact attachment.": "Застаріла прив'язка до грані. Повторна прив'язка до перевіреної грані створює точну прив'язку.", @@ -148,47 +194,70 @@ "Length units": "Одиниці довжини", "Letter Spacing": "Міжлітерний інтервал", "Library": "Бібліотека", + "Library file": "Файл бібліотеки", "Line Spacing": "Міжрядковий інтервал", + "Local library": "Локальна бібліотека", "Loop": "Контур", + "MANAGE": "КЕРУВАННЯ", + "MATERIALS": "МАТЕРІАЛИ", + "MODEL": "МОДЕЛЬ", + "MOTION": "РУХ", "Margin": "Відступ", "Mass": "Маса", + "Mass Center": "Центр мас", + "Matched restrictions check the final values.": "Обмеження, умови яких виконано, перевіряють кінцеві значення.", "Material": "Матеріал", "Max": "Макс.", "Mid Radius": "Середній радіус", "Middle double-click": "Подвійне клацання середньою кнопкою", "Min": "Мін.", "Mitre": "Скіс", + "Model Parameters": "Параметри моделі", "Modeled": "Змодельовано", "More toolbar panels": "Більше панелей інструментів", "Motion": "Рух", + "Move / Copy": "Перемістити / копіювати", "Move Type": "Тип переміщення", + "Move down": "Перемістити вниз", "Move earlier": "Перемістити раніше", "Move later": "Перемістити пізніше", + "Move up": "Перемістити вгору", "Name": "Назва", "Nearest": "Найближчі", + "New": "Створити", + "New Comp.": "Новий комп.", + "New Sketch": "Новий ескіз", + "New rule…": "Нове правило…", "New study": "Нове дослідження", "No crash reports.": "Немає звітів про збої.", + "No matching appearance presets.": "Немає відповідних наборів вигляду.", "No matching appearances": "Немає відповідних виглядів", "No visible bodies to export.": "Немає видимих тіл для експорту.", "None": "Немає", - "Normal to sketch": "За нормаллю до ескізу", "Not available yet": "Ще недоступно", "Notch": "Виріз", + "OUTPUT": "ВИВЕДЕННЯ", "Opacity": "Непрозорість", "Open GitHub draft": "Відкрити чернетку GitHub", + "Open local libraries in the desktop app. You can export this design's library here.": "Відкривайте локальні бібліотеки в настільному застосунку. Тут можна експортувати бібліотеку цього проєкту.", "Open-source parametric 3D CAD in Rust. Licensed MIT OR Apache-2.0.": "Параметричний 3D-CAD з відкритим вихідним кодом на Rust. Ліцензовано за MIT OR Apache-2.0.", + "Operator": "Оператор", "Other side": "Інший бік", "Other surface (mutual trim)": "Інша поверхня (взаємне обрізання)", "Outside": "Назовні", "Overall length": "Загальна довжина", - "Parameter values": "Значення параметрів", + "Param. Graph": "Граф парам.", + "Parameter": "Параметр", + "Parts": "Деталі", "Pass through": "Через точки", "Path": "Траєкторія", + "Pattern": "Масив", "Per Edge": "На кожне ребро", "Pick the tool bodies": "Виберіть тіла інструмента", "Picked": "Вибрано", "Picked point": "Вибрана точка", "Place at the origin instead": "Натомість розмістити в початку координат", + "Plastic Rules": "Правила пластику", "Playback": "Відтворення", "Plot": "Графік", "Position": "Положення", @@ -199,10 +268,11 @@ "Preview Row": "Рядок перегляду", "Preview leaves the current design unchanged.": "Попередній перегляд не змінює поточний проєкт.", "Profiles/Curves": "Профілі/криві", - "Projection": "Проєкція", "Quantity": "Величина", "RECENT": "НЕДАВНІ", + "REFERENCE": "ДОПОМІЖНА ГЕОМЕТРІЯ", "RULED SURFACE": "ЛІНІЙЧАСТА ПОВЕРХНЯ", + "RULES": "ПРАВИЛА", "Radius Fit": "Підгонка за радіусом", "Ratio": "Співвідношення", "Reattach selected face": "Повторно приєднати вибрану грань", @@ -220,6 +290,8 @@ "Remove this point": "Прибрати цю точку", "Report a bug — review a screenshot and open a GitHub draft": "Повідомити про помилку — переглянути знімок екрана й відкрити чернетку GitHub", "Reset Toolbar": "Скинути панель інструментів", + "Resize Part": "Змінити розмір деталі", + "Restore View": "Відновити вид", "Restore outer boundary": "Відновити зовнішню межу", "Restore the inherited component or physical material appearance": "Відновити успадкований вигляд компонента або фізичного матеріалу", "Result": "Результат", @@ -228,18 +300,27 @@ "Reverse Direction": "Обернути напрямок", "Revert": "Повернути", "Revert All Positions": "Повернути всі положення", + "Revert Pos.": "Скасув. полож.", "Revert Position": "Повернути положення", "Review the report and screenshot before opening GitHub.": "Перегляньте звіт і знімок екрана перед відкриттям GitHub.", "Rim Edge": "Крайове ребро", "Roll History Marker Here": "Перемістити маркер історії сюди", "Round": "Круглий", "Rule": "Правило", + "Rule name": "Назва правила", + "Rules run from top to bottom. Matched drives change effective values.": "Правила виконуються згори вниз. Керівні правила, умови яких виконано, змінюють дійсні значення.", + "SECTION": "ПЕРЕРІЗ", + "SURFACE QUALITY": "ЯКІСТЬ ПОВЕРХНІ", "Save Rule": "Зберегти правило", + "Save View": "Зберегти вид", "Save the study as an animated GIF, seen as the viewport shows it": "Зберегти дослідження як анімований GIF, як його показує вікно перегляду", "Saved preview. Geometry is being checked before editing.": "Збережений перегляд. Геометрію перевіряють перед редагуванням.", "Scale factor": "Коефіцієнт масштабу", + "Scene": "Сцена", "Search": "Пошук", "Search commands": "Пошук команд", + "Search this library": "Пошук у цій бібліотеці", + "Section": "Переріз", "Select Other: hold the left button still on the model (or right-click › Select Other…) to list everything under the cursor; click again on the same spot to select the next thing there. Double-click the middle button to go Home (Preferences › Navigation).": "Вибір іншого: утримуйте ліву кнопку нерухомо на моделі (або клацніть правою › Вибрати інше…), щоб побачити список усього під курсором; клацніть ще раз у тому ж місці, щоб вибрати наступний об'єкт там. Двічі клацніть середньою кнопкою, щоб перейти до головного виду (Налаштування › Навігація).", "Select bodies (a face picks its body)": "Виділяти тіла (грань виділяє своє тіло)", "Select bodies or faces instead": "Натомість виділіть тіла або грані", @@ -247,6 +328,7 @@ "Semantic faces share their appearance across instances.": "Семантичні грані спільно використовують свій вигляд між екземплярами.", "Send your report on GitHub": "Надіслати звіт на GitHub", "Shape": "Форма", + "Sheet Rules": "Правила листа", "Show Agent Cursor": "Показати курсор агента", "Show in folder": "Показати в теці", "Show the pointer an AI agent moves (#35)": "Показувати вказівник, яким рухає ШІ-агент (#35)", @@ -260,10 +342,13 @@ "Sketch points": "Точки ескізу", "Slot width": "Ширина паза", "SolidCraft closed before these designs were saved. Their last autosave can be opened.": "SolidCraft закрився до того, як ці проєкти було збережено. Можна відкрити їхнє останнє автозбереження.", + "Specialise": "Спеціалізувати", "Speed": "Швидкість", "Stand it up": "Вирівняти", "Stand it up: a quarter turn about X, as one Move feature you can undo.": "Вирівняти: поворот на чверть оберту навколо X як одна операція переміщення, яку можна скасувати.", "Stand this part up?": "Вирівняти цю деталь?", + "Start bulge": "Роздуття початку", + "Start continuity": "Неперервність початку", "Step": "Крок", "Steps": "Кроки", "Stitch the kept pieces": "Зшити залишені частини", @@ -296,17 +381,19 @@ "Turn off section analysis before exporting the view.": "Вимкніть аналіз перерізу перед експортом виду.", "Type": "Тип", "UNTRIM": "ЗНЯТИ ОБРІЗАННЯ", + "Unit": "Одиниця", "Updating the preview": "Оновлення попереднього перегляду", "Use active author placement": "Використати активне вихідне розміщення", "Use fixed plane": "Використати фіксовану площину", "Use saved fixed plane": "Використати збережену фіксовану площину", "Use selected face as fixed plane": "Використати вибрану грань як фіксовану площину", + "User Parameters": "Параметри користувача", "VIEW": "ВИД", + "VIEWS": "ВИГЛЯДИ", "Value": "Значення", "Velocity": "Швидкість", "Vertices": "Вершини", "View navigator": "Навігатор виду", - "Visible bodies only. Curves use line segments (0.01 mm tolerance).": "Лише видимі тіла. Криві подаються відрізками (допуск 0,01 mm).", "Volume": "Об'єм", "Wall": "Стінка", "Wall Location": "Розташування стінки", @@ -314,6 +401,13 @@ "When": "Коли", "Width": "Ширина", "Will fail": "Зазнає невдачі", + "X angle": "Кут X", + "X distance": "Відстань X", + "Y angle": "Кут Y", + "Y distance": "Відстань Y", + "Z angle": "Кут Z", + "Z distance": "Відстань Z", + "Zebra": "Зебра", "angle, height": "кут, висота", "appearance.dielectric_ior": "Діелектричний IOR", "appearance.metallic": "Металевість", @@ -322,7 +416,13 @@ "appearance.roughness": "Шорсткість", "appearance.surface_response": "Відгук поверхні", "browser.body_name": "Тіло{number}", + "browser.calibrate_title": "Калібрувати: {name}", + "browser.capture_many": "Компоненти ({count}) переміщено, але їхні положення не зафіксовано.", + "browser.capture_note": "«Зафіксувати положення» зберігає нове положення; «Відновити положення» повертає попереднє.", + "browser.capture_one": "Компонент переміщено, але його положення не зафіксовано.", "browser.component_name": "Компонент{number}", + "browser.edit_canvas_title": "Редагувати полотно: {name}", + "browser.move_title": "Перемістити: {name}", "browser.parameters": "Параметри ({count})", "browser.precision": "Точність: {precision}", "browser.sketch_name": "Ескіз{number}", @@ -337,6 +437,7 @@ "cmd.appearance_assign": "Вигляд", "cmd.appearance_library": "Бібліотека виглядів", "cmd.appearance_list": "Список виглядів", + "cmd.assembly_bom": "Специфікація матеріалів", "cmd.body_rename": "Перейменувати тіло", "cmd.browser_group": "Нова група", "cmd.browser_move": "Перемістити елементи браузера", @@ -358,10 +459,13 @@ "cmd.component_insert_design": "Вставити проєкт", "cmd.component_links": "Список зв'язків", "cmd.component_list": "Список компонентів", + "cmd.component_metadata": "Властивості деталі", + "cmd.component_metadata_set": "Змінити властивості деталі", "cmd.component_move_bodies": "Перемістити тіла до компонента", "cmd.component_move_sketches": "Перемістити ескізи до компонента", "cmd.component_paste_new": "Вставити як новий", "cmd.component_properties": "Фізичні властивості компонента", + "cmd.component_relink": "Переприв'язати джерело", "cmd.component_rename": "Перейменувати компонент", "cmd.component_revert_position": "Відновити положення", "cmd.component_unlock": "Розблокувати вміст", @@ -413,6 +517,7 @@ "cmd.edit_checkpoint": "Контрольна точка", "cmd.edit_restore_checkpoint": "Відновити контрольну точку", "cmd.engine_commands": "Список команд", + "cmd.engine_describe": "Описати команду", "cmd.explode_create": "Рознесений вид", "cmd.explode_delete": "Видалити рознесений вид", "cmd.explode_list": "Список рознесених видів", @@ -445,6 +550,7 @@ "cmd.joint_drive": "Керувати з'єднаннями", "cmd.joint_edit": "Редагувати з'єднання", "cmd.joint_gear": "Зубчаста передача", + "cmd.joint_inspect": "Перевірити з'єднання", "cmd.joint_limits": "Обмеження з'єднання", "cmd.joint_list": "Список з'єднань", "cmd.joint_motion_link": "Зв'язок руху", @@ -603,6 +709,7 @@ "cmd.sketch_spline_fit_point": "Сплайн за точками проходження", "cmd.sketch_spun_profile": "Профіль обертання", "cmd.sketch_toggle_driven": "Перемкнути ведений розмір", + "cmd.sketch_trim_path": "Обрізати вздовж шляху", "cmd.solid_align": "Вирівняти", "cmd.solid_boundary_fill": "Заповнення за межами", "cmd.solid_bounding_solid": "Охопне тіло", @@ -653,7 +760,15 @@ "cmd.view_navigate": "Навігація видом", "cmd.view_rename": "Перейменувати іменований вид", "cmd.view_save": "Новий іменований вид", - "command name": "назва команди", + "color.copy": "Клацніть, щоб скопіювати значення кольору", + "color.edit": "Клацніть, щоб змінити колір", + "color.gamma": "Значення кольору в гамма-просторі 0-255", + "color.hue": "Відтінок", + "color.linear": "Значення кольору в лінійному просторі 0-1", + "color.saturation_value": "Насиченість і яскравість", + "color.selected": "Вибраний колір", + "contact.components_count": "Компонентів: {count}", + "contact.enabled_label": "увімкнено", "coupling.gear_1": "Шестерня 1", "coupling.gear_1_pick": "Шестерня 1 (необов'язково)", "coupling.gear_2": "Шестерня 2", @@ -670,6 +785,21 @@ "coupling.rack": "Рейка", "coupling.radius_1": "Радіус 1", "coupling.radius_2": "Радіус 2", + "crash.announce": "SolidCraft неочікувано закрився або сталася внутрішня помилка минулого разу. Звіт про збій збережено (Довідка > Звіти про збої…).", + "crash.copy_folder": "Копіювати шлях до папки", + "crash.copy_path": "Копіювати шлях", + "crash.deleted": "Видалено звітів: {count}.", + "crash.detected_time": "Виявлено {time} UTC", + "crash.intro": "Звіти про збої залишаються на цьому комп'ютері й нікуди не надсилаються. «Повідомити…» відкриває чернетку, яку ви переглядаєте перед тим, як щось буде опубліковано.", + "crash.kind_command": "Внутрішня помилка в команді", + "crash.kind_internal": "Внутрішня помилка", + "crash.kind_kernel": "Помилка ядра (відновлено)", + "crash.kind_unclean": "Неочікуване закриття", + "crash.previous_session": "Попередній сеанс SolidCraft завершився неочікувано або сталася внутрішня помилка. Звіти про некоректні завершення виявляються під час запуску. Докладніше: Довідка > Звіти про збої…", + "crash.replayable": "відтворюваний", + "crash.report": "Повідомити…", + "crash.unclean_explanation": "Виявлено під час наступного запуску; точний час завершення не записано. Вимкнення системи або примусова зупинка також можуть спричинити некоректне завершення.", + "delete.and_more": "… і ще {count}", "dialog.bodies_count": "Тіл: {count}", "dialog.clearance_invalid": "зазор має бути довжиною 0 або більше", "dialog.compute": "Обчислити", @@ -677,6 +807,8 @@ "dialog.computing": "Обчислення… {seconds} с", "dialog.could_not_be_checked": "не вдалося перевірити", "dialog.custom_axis": "↖ Власна вісь", + "dialog.dimension_insert_hint": "Двічі клацніть інший керівний розмір, щоб вставити його назву", + "dialog.dimension_name": "Розмір: {name}", "dialog.edit_title": "РЕДАГУВАННЯ {title}", "dialog.select": "↖ Вибрати", "dialog.selected_count": "↖ Вибрано: {count}", @@ -700,9 +832,30 @@ "dxf.progress.write": "Запис DXF (5/5)", "dxf.tolerance": "Допуск кривої", "dxf.tolerance_help": "Лише видимі тіла. Криві подаються відрізками. Менший допуск дає точніші криві, але потребує більше часу й пам'яті.", - "expression, e.g. 25 mm": "вираз, напр. 25 mm", + "file_load.built": "Побудовано: {built} із {total} елементів.", + "file_load.converting": "Перетворення тіла {done} із {total}", + "file_load.inserting": "Вставлення геометрії", + "file_load.opening": "Відкриття проєкту", + "file_load.preparing_thumbnail": "Підготовка мініатюри...", + "file_load.preparing_view": "Підготовка виду...", + "file_load.preview_note": "Збережений перегляд. Геометрію перевіряють перед редагуванням.", + "file_load.reading": "Читання файлу...", + "file_load.reading_percent": "Читання файлу... {percent}%", + "file_load.rebuilding": "Перебудова елемента {done} із {total}", + "file_load.recovering": "Відновлення проєкту", + "file_load.stopping": "Очікування зупинки попередньої операції...", + "file_load.waiting": "Очікування файлової операції", "fits the face, e.g. M8": "відповідає грані, напр. M8", "from the rule": "з правила", + "help.apache": "Ліцензія Apache 2.0", + "help.attributions": "Відомості про авторство (ATTRIBUTION.md)", + "help.build": "Версія {version} · коміт {commit} · зібрано {date}", + "help.font_details": "Інтерфейс використовує вбудовані шрифти egui (Ubuntu Light і Hack під ліцензіями Ubuntu Font Licence та MIT/Bitstream Vera; Noto Emoji та шрифт піктограм емодзі під ліцензіями OFL і MIT). Для тексту ескізів використовується Liberation Sans (SIL OFL 1.1). Необов’язковий пакет шрифтів The Crafting Apps, craft-fonts (BIZ UDPGothic, Shippori Mincho, BIZ UDMincho, Noto Sans CJK SC, Noto Sans Arabic; SIL OFL 1.1), не входить до збірок SolidCraft.", + "help.fonts": "Шрифти", + "help.licences": "Ліцензії", + "help.mit": "Ліцензія MIT", + "help.notice": "NOTICE", + "help.third_party": "Ліцензії сторонніх компонентів", "home.documentation": "Документація", "home.in_this_browser": "у цьому браузері", "home.missing": "відсутній", @@ -728,13 +881,51 @@ "install.menu": "Встановити застосунок…", "install.steps_intro": "Safari встановлює вебзастосунки через власні меню:", "install.title": "Встановлення SolidCraft", + "issue.body_label": "Текст звіту", + "issue.note_image_copied": "Вставте зображення в чернетку GitHub або збережіть PNG, якщо копіювання зображень недоступне.", + "issue.note_opened": "Перегляньте чернетку GitHub і додайте знімок екрана. Кнопка Submit new issue на GitHub публікує її.", + "issue.note_opened_copied": "Звіт скопійовано. Вставте його в чернетку GitHub, додайте знімок екрана, потім натисніть Submit new issue на GitHub.", + "issue.note_removed": "Знімок екрана прибрано з цієї чернетки.", + "issue.note_report_copied": "Звіт скопійовано. За потреби вставте його в чернетку GitHub.", + "issue.note_save_failed": "Не вдалося зберегти знімок екрана: {error}", + "issue.note_saved": "Знімок екрана збережено. Додайте PNG у чернетку GitHub.", + "issue.save_screenshot": "Зберегти знімок екрана…", "joint.from_bodies_hint": "Кожне вибране тіло переходить у власний новий компонент і лишається на місці.", "joint.one_body": "Обидва вибори на {body}. Виберіть другий на іншій деталі.", "joint.one_component": "Ці деталі - тіла одного компонента: {bodies}. З'єднання рухає один компонент відносно іншого, тому кожній деталі потрібен власний компонент.", + "keymap.command_id": "ID команди", + "keymap.empty": "Немає відповідних команд", + "keymap.use_anyway": "Усе одно використовувати тут {key}", + "manage.appearance_hint": "Виберіть вигляд для виділених об’єктів або перетягніть зразок на тіло чи грань.", + "manage.assign_hint": "Виберіть тіла та їхнє правило проєктування пластикових деталей.", + "manage.config_hint": "Змініть рядки, стовпці та правила конфігурації, а потім активуйте рядок або перегляньте його.", + "manage.empty": "Немає відповідних рядків.", + "manage.material_hint": "Виберіть тіла та їхній фізичний матеріал.", + "manage.parameters_hint": "Змініть вирази й одиниці. Зміни застосовуються після натискання Enter або виходу з поля.", + "manage.rules_hint": "Виберіть правило для редагування або створіть нове. Підтвердьте, щоб зберегти правило.", + "measure.at": "У точці", + "measure.item": "Елемент {number}", + "messages.ago_h": "{n} год тому", + "messages.ago_min": "{n} хв тому", + "messages.ago_s": "{n} с тому", + "messages.chip_hint": "Клацніть, щоб побачити всі повідомлення цього сеансу", + "messages.clear": "Очистити", + "messages.copy_all": "Копіювати все", + "messages.menu": "Повідомлення…", + "messages.none": "Повідомлень поки немає.", + "messages.title": "Повідомлення", "motion.checked_to": "Перевірено лише до кроку {step}: перевірка вичерпала свій бюджет роботи", "motion.collision": "{a} · {b}: кроки {steps}", + "motion.delete_key": "Видалити ключовий кадр", "motion.duration_hint": "секунди (порожньо: на крок)", + "motion.key_here": "Вставити ключовий кадр тут", + "motion.key_here_hint": "Додати ключовий кадр на цьому кроці з поточним значенням з’єднання", "motion.no_collisions": "За все дослідження зіткнень немає", + "motion.step_back": "Крок назад", + "motion.step_forward": "Крок уперед", + "motion.to_end": "У кінець", + "motion.to_start": "На початок", + "motion.track_name": "Доріжка {number}", "nav.touchpad.help": "Утримуйте Shift і рухайте вказівник, щоб панорамувати; утримуйте Alt/Option і рухайте, щоб обертати. Кнопка миші не потрібна. Вертикальна прокрутка масштабує.", "nav.touchpad.label": "Трекпад", "nav.touchpad.orbit": "Обертання (утримуйте Alt/Option і рухайте; без кнопки миші)", @@ -743,13 +934,13 @@ "nav.touchpad.zoom": "Масштаб (вертикальна прокрутка або стискання)", "needs two joints": "потрібні два з'єднання", "new configuration": "нова конфігурація", - "new name": "нова назва", "new parameter": "новий параметр", "no hole": "без отвору", "no interference": "немає перетинів", "no joint that moves yet": "ще немає рухомого з'єднання", "no picture": "немає зображення", "none": "немає", + "parts.automatic_name": "автоматично", "pattern.alignment_2": "Вирівнювання 2", "pattern.alignment_hint": "Кількість включає оригінал. Центрування розподіляє копії з обох боків; за парної кількості зміна напрямку визначає бік із додатковою копією.", "pattern.direction_1": "Напрямок 1", @@ -757,12 +948,19 @@ "pattern.flip_direction": "Змінити напрямок", "pick a hole to seat it, or OK places it at the origin": "виберіть отвір для посадки, або OK розмістить його в початку координат", "pick one or two vertices, edges or faces": "виберіть одну-дві вершини, ребра або грані", + "prefs.cpu": "ЦП (програмний)", + "prefs.minutes_suffix": " min", + "properties.title": "Властивості: {name}", + "recovery.days_ago": "{count} дн. тому", + "recovery.detail": "{file} · елементів: {features} · автозбережено {when}", + "recovery.hours_ago": "{count} год тому", + "recovery.just_now": "щойно", + "recovery.min_ago": "{count} хв тому", + "recovery.never_saved": "ніколи не зберігалося", "render.background": "Фон сцени", "render.fit": "Вписати виріб", - "render.image_cancel": "Скасувати рендеринг", "render.image_cancelled": "Рендеринг скасовано", "render.image_cancelling": "Скасування", - "render.image_check": "Перевірити запит на рендеринг", "render.image_completed": "Зображення готове до експорту", "render.image_encoding": "Кодування PNG", "render.image_export": "Експортувати PNG", @@ -809,6 +1007,19 @@ "sample.plate.name": "Зразкова пластина", "sample.vents.about": "Пази в прямокутному масиві: рядки, стовпці та крок є параметрами", "sample.vents.name": "Вентиляційна пластина", + "search.command_keys": "Enter виконати Shift+Enter виконати й залишити відкритим Esc закрити", + "search.commands": "Команди", + "search.design": "У цьому проєкті", + "search.feature": "Елемент", + "search.invalid": "Недійсне", + "search.keys": "↑ ↓ вибрати Enter виконати Tab підставити назву Esc закрити", + "search.no_match": "Жодна команда не відповідає «{query}»", + "search.parameter": "Параметр", + "search.recent": "Недавні", + "search.run": "Виконати команду", + "search.suggest": "Ви мали на увазі {label}?", + "search.try": "Введіть назву команди, елемент цього проєкту або параметр. Щоб виконати команду зі значеннями, введіть її id та об'єкт JSON: {example}", + "search.valid": "Дійсне", "settings.display_quality_note": "Дрібніші рівні малюють криві грані й ребра плавнішими, але тріангуляція триває довше. Змінюється лише вікно перегляду, ніколи не проєкт чи експорт.", "settings.frame_rate_note": "Показує кадри за секунду в правому нижньому куті виду. Поки це ввімкнено, вид перемальовується безперервно.", "settings.measure_axis_distances": "Відстані X/Y/Z", @@ -819,17 +1030,30 @@ "settings.reset_intro": "Ці налаштування не працюють на цьому комп'ютері й не давали б SolidCraft запуститися, тому їх змінено:", "settings.reset_title": "Налаштування було змінено", "settings.supersampling_note": "Малює вид у вищій роздільності й потім зменшує його: плавніші ребра, лінії та сітка на екранах до 4K. Це коштує часу GPU: приблизно 2,25× пікселів за 1,5× і 4× за 2×.", + "shortcut.json_error": "параметри мають бути у форматі JSON: {error}", + "shortcut.no_command": "команду `{id}` не знайдено; текст перед JSON має бути ID команди", + "shortcut.pin": "Закріпити вгорі поля S", + "shortcut.unpin": "Відкріпити", "sketch.degrees_of_freedom": "{count} ступенів вільності", + "sketch.dof_left": "Залишилося ступенів свободи: {count}", + "sketch.dof_left_one": "Залишився {count} ступінь свободи", "sketch.draw_curves": "Малювати як {linetype}", "sketch.make_selection": "Перетворити виділене на {linetype}", "sketch.open_ends": "Відкритих: {count}", "sketch.untied_ends": "Незв'язаних: {count}", + "sketch_panel.attached": "Прив’язано до {body} / {path}", + "sketch_panel.author": "Початкове розміщення: {path}", + "sketch_panel.dimension_hint": "Введіть значення або вираз, потім натисніть OK.", + "sketch_panel.move_hint": "Введіть відстані та кут, потім натисніть OK.", + "sketch_panel.redefine_title": "{command}: {name}", + "sketch_panel.sheet_attachment": "Прив’язано до плоскої грані листового тіла; слідує за цією панеллю під час зміни листа.", + "sketch_panel.text_hint": "Змініть текст і його розміщення, потім натисніть OK.", + "sketch_panel.use_plane": "Використати площину {plane}", "sketch_text.align_center": "По центру", "sketch_text.align_left": "Ліворуч", "sketch_text.align_right": "Праворуч", "sketch_text.bold": "Жирний", "sketch_text.builtin_font": "{family} (вбудований)", - "sketch_text.font_search": "Пошук шрифтів", "sketch_text.italic": "Курсив", "sketch_text.loading_fonts": "Пошук встановлених шрифтів…", "sketch_text.on_path": "Текст дотримується своєї траєкторії: крива його розміщує", @@ -850,6 +1074,7 @@ "timeline.ungroup": "Прибрати теки операцій", "to the face": "до грані", "to the next face": "до наступної грані", + "toolbar.customize_note": "Вкладка {tab}. Позначте команду, щоб додати її кнопку на панель інструментів. Також можна перетягнути рядок зі спадного меню панелі на панель інструментів, перетягнути кнопку за межі панелі для видалення або скористатися значком закріплення в рядку спадного меню.", "toolbar.image": "ЗОБРАЖЕННЯ", "toolbar.render": "РЕНДЕР", "toolbar.render_scene": "СЦЕНА", @@ -858,11 +1083,11 @@ "trace.stopped_by_loop": "Закінчується на відліку {sample}: контур через {joint} далі не замикається", "ui.1_degree_of_freedom": "1 ступінь вільності", "ui.3d_mouse_speed": "Швидкість 3D-миші", - "ui.3d_mouse_windows": "3D-миша", "ui.3d_sketch": "3D-ескіз", - "ui.about": "Про програму", "ui.activate": "Активувати", "ui.active_component": "Активний компонент", + "ui.add_configuration": "Додати конфігурацію", + "ui.add_parameter": "Додати параметр", "ui.agent_chat": "Чат з агентом", "ui.agent_chat_add": "Прикріпити файли", "ui.agent_chat_add_file": "Вибрати файл…", @@ -904,6 +1129,7 @@ "ui.agent_chat_file_error": "{name}: {error}", "ui.agent_chat_file_heic": "{name}: зображення HEIC тут не читаються; спершу експортуйте його як JPEG або PNG", "ui.agent_chat_file_importing": "Імпортування в проєкт…", + "ui.agent_chat_file_kinds": "{name}: можна прикріплювати зображення (PNG, JPEG, GIF, WebP, BMP, TIFF), текстові файли (також SVG) і CAD-файли (STEP, IGES, FreeCAD, Rhino, STL, 3MF, OBJ, glTF)", "ui.agent_chat_file_loading": "Читання файлу…", "ui.agent_chat_file_not_a_file": "{name}: не файл", "ui.agent_chat_file_not_a_picture": "{name}: не зображення", @@ -926,7 +1152,7 @@ "ui.agent_chat_model_tip": "Модель, яку використовує агент. Ваш вибір запам'ятовується для цього агента.", "ui.agent_chat_new": "Новий чат", "ui.agent_chat_new_confirm": "Почати новий чат? Поточний буде очищено.", - "ui.agent_chat_new_yes": "Новий чат", + "ui.agent_chat_next_picture": "Наступне зображення", "ui.agent_chat_no_cli": "solidcraft-cli не знайдено поруч із програмою, тож агент не може дістатися до проєкту.", "ui.agent_chat_no_control": "Кінцева точка чату з агентом не запустилася, тож агент не може дістатися до проєкту.", "ui.agent_chat_no_images": "Цей агент не приймає зображень", @@ -942,6 +1168,7 @@ "ui.agent_chat_placeholder": "Попросіть агента змінити проєкт…", "ui.agent_chat_placeholder_busy": "Поставте повідомлення в чергу, доки агент завершить (Ctrl+Enter: надіслати зараз)", "ui.agent_chat_pop_out": "Відкрити у власному вікні, яке можна перемістити на інший екран", + "ui.agent_chat_previous_picture": "Попереднє зображення", "ui.agent_chat_privacy": "Нічого нікуди не надсилається, крім агента, який ви запускаєте, під вашим власним обліковим записом.", "ui.agent_chat_privacy_note": "SolidCraft нічого нікуди не надсилає: агент, який ви запускаєте, спілкується з власним сервісом під вашим обліковим записом. SolidCraft ніколи не бачить і не зберігає ключ чи пароль.", "ui.agent_chat_queue": "У чергу", @@ -997,6 +1224,7 @@ "ui.ai_bad_url": "Введіть URL-адресу, що починається з http:// або https://", "ui.ai_base_url": "Базова URL-адреса", "ui.ai_button": "ШІ", + "ui.ai_command_hint": "my-agent --acp", "ui.ai_copy_suffix": "копія", "ui.ai_custom_url": "Власна URL-адреса", "ui.ai_default": "Типовий", @@ -1017,8 +1245,10 @@ "ui.ai_mode_edits_note": "Команди моделювання виконуються без запиту; збереження, відкриття, експорт та інші файлові чи руйнівні дії все ще запитують.", "ui.ai_mode_global": "Як задано вище", "ui.ai_model": "Модель", + "ui.ai_model_hint": "qwen3:14b", "ui.ai_modes_scope": "Ці налаштування стосуються інструментів SolidCraft. Власні інструменти агента (його оболонка, його редагування файлів) підкоряються власному режиму агента, який ви вибираєте в заголовку панелі чату, коли агент має режими.", "ui.ai_name": "Назва", + "ui.ai_name_hint": "Мій агент", "ui.ai_need_command": "Введіть команду, що запускає агента", "ui.ai_need_model": "Введіть назву моделі", "ui.ai_no_answer": "Агент не відповів вчасно", @@ -1049,6 +1279,7 @@ "ui.ai_toolbar_button": "Показувати кнопку на панелі інструментів", "ui.ai_toolbar_button_note": "Кнопка ШІ в правому кінці панелі інструментів. Ctrl+Shift+A і меню «Вид» усе одно відкривають панель.", "ui.ai_undo_tip": "Скасувати все, що агент змінив для цього повідомлення, одним кроком", + "ui.ai_url_hint": "https://example.com/v1", "ui.all": "Усі", "ui.ambient_occlusion": "Окружне затінення", "ui.ambient_occlusion_help": "М'яке затінення в місцях, де стикаються непрозорі поверхні. Потребує вікна перегляду на GPU.", @@ -1062,7 +1293,8 @@ "ui.anti_aliasing": "Згладжування", "ui.apply": "Застосувати", "ui.arc": "Дуга", - "ui.assemble": "Скласти", + "ui.assistant": "Асистент", + "ui.assistant_waiting": "Очікують підтвердження: {count}", "ui.autosave_every": "Автозбереження кожні", "ui.axes": "Осі", "ui.axis": "Вісь", @@ -1073,6 +1305,11 @@ "ui.bodies_all_if_none": "Тіла (усі, якщо не вибрано)", "ui.box": "Куб", "ui.break": "Розірвати", + "ui.browser_bodies_one": "{count} тіло", + "ui.browser_bodies_other": "{count} тіл", + "ui.browser_collapse": "Згорнути браузер", + "ui.browser_expand": "Розгорнути браузер", + "ui.browser_title": "Браузер", "ui.calibrate": "Калібрувати", "ui.cancel": "Скасувати", "ui.canvases": "Полотна", @@ -1082,7 +1319,6 @@ "ui.chamfer": "Фаска", "ui.chamfer_type": "Тип фаски", "ui.change_workspace": "Змінити робочу область", - "ui.chord_length": "Довжина хорди", "ui.circle": "Коло", "ui.circular_pattern": "Круговий масив", "ui.clear": "Очистити", @@ -1115,11 +1351,9 @@ "ui.command_done": "{command} виконано", "ui.command_palette_hint": "Введіть команду, напр. {example} — або натисніть S для пошуку", "ui.concentric": "Концентричність", - "ui.configurations": "Конфігурації", "ui.conic_curve": "Конічна крива", "ui.constant": "Стала", "ui.constraints_conflict": "Конфлікт обмежень", - "ui.construct": "Побудувати", "ui.construction": "Конструкційна", "ui.context_menu": "Контекстне меню", "ui.continuity_g0": "G0 злам", @@ -1145,7 +1379,6 @@ "ui.cylinder": "Циліндр", "ui.dark": "Темна", "ui.default_modelling_orientation": "Типова орієнтація моделювання", - "ui.degrees_of_freedom": "ступенів вільності", "ui.delete": "Видалити", "ui.depth": "Глибина", "ui.design": "Проєкт", @@ -1187,7 +1420,6 @@ "ui.equivalent_radius": "Еквівалентний радіус", "ui.expand": "Розгорнути", "ui.exportDxf": "Експорт DXF…", - "ui.export_ellipsis": "Експорт...", "ui.export_ellipsis_keymap": "Експорт…", "ui.export_keymap_tip": "Клавіші, обрані в полі S і панель інструментів як файл", "ui.extend": "Подовжити", @@ -1211,6 +1443,7 @@ "ui.frame_rate": "Частота кадрів", "ui.front": "Спереду", "ui.fully_constrained": "Повністю визначений", + "ui.function": "Функція", "ui.general": "Загальні", "ui.graphics": "Графіка", "ui.graphics_custom": "Власний", @@ -1277,7 +1510,6 @@ "ui.heading_sheet_metal": "ЛИСТОВИЙ МЕТАЛ", "ui.heading_shell": "ОБОЛОНКА", "ui.heading_sketch": "ЕСКІЗ", - "ui.heading_sketch_palette": "ПАЛІТРА ЕСКІЗУ", "ui.heading_sketch_scale": "МАСШТАБ ЕСКІЗУ", "ui.heading_solid": "ТІЛО", "ui.heading_sphere": "КУЛЯ", @@ -1296,6 +1528,7 @@ "ui.hideOrigin": "Приховати початок координат", "ui.hidePlanes": "Приховати площини", "ui.hideProfile": "Приховати профіль", + "ui.history_title": "Історія", "ui.hole": "Отвір", "ui.hole_tap_type": "Тип різьби отвору", "ui.hole_type": "Тип отвору", @@ -1315,11 +1548,12 @@ "ui.length_decimals": "Знаки після коми для довжин", "ui.light": "Світла", "ui.line": "Пряма", - "ui.linetype": "Тип лінії", "ui.lock": "Заблокувати", "ui.loft": "Лофт", "ui.look_at": "Наведення", "ui.look_at_anim_desc": "Вид осі, наведення, головний і вписування", + "ui.manipulator_free_alt": "Вільне перетягування маніпулятора також з Alt/Option", + "ui.manipulator_free_alt_tip": "Увімк.: Alt/Option або Ctrl/Cmd на стрілках видавлювання / гізмо вимикає прив'язку до значень. Вимк.: лише Ctrl/Cmd.", "ui.manufacture": "Виготовлення", "ui.material_review.axes": "Локальні осі матеріалу; орієнтація тіла не призначається.", "ui.material_review.claims": "Джерела та ліцензії зазначені без перевірки. Відсутні значення залишаються невідомими.", @@ -1347,10 +1581,8 @@ "ui.mesh_format_3mf": "3MF", "ui.mesh_format_3mf_tagged": "3MF з мітками граней", "ui.mesh_format_stl": "STL", - "ui.midpoint": "Середня точка", "ui.mirror": "Дзеркало", "ui.mirror_line": "Вісь дзеркала", - "ui.modify": "Змінити", "ui.move": "Перемістити", "ui.multiple": "Кілька", "ui.named_views": "Іменовані види", @@ -1359,6 +1591,7 @@ "ui.newSketchGroup": "Нова група ескізів", "ui.new_body": "Нове тіло", "ui.new_design": "Новий проєкт", + "ui.no_geometry_yet": "Геометрії ще немає", "ui.no_slicer_found": "Слайсер не знайдено", "ui.normal": "Звичайна", "ui.normalConstruction": "Звичайна / конструкційна", @@ -1370,7 +1603,6 @@ "ui.offset_plane": "Зсунута площина", "ui.one_side": "Один бік", "ui.open": "Відкрити", - "ui.open_ellipsis": "Відкрити...", "ui.open_ends_tip": "Нічого не торкається", "ui.open_preferences": "Відкрити налаштування", "ui.open_recent": "Відкрити недавні", @@ -1380,12 +1612,14 @@ "ui.orbit_around": "Обертати навколо", "ui.orientation": "Орієнтація", "ui.origin": "Початок координат", - "ui.palette_points": "Точки", - "ui.palette_profile": "Профіль", + "ui.palette_construction_mode": "Допоміжний режим (X)", + "ui.palette_more": "Більше", + "ui.palette_sketch_options": "Параметри ескізу", "ui.pan": "Панорамувати", "ui.pan_zoom_orbit": "Панорамування, масштаб, обертання", "ui.parallel": "Паралельність", "ui.parameters": "Параметри", + "ui.part_size_shared": "Перебудовує деталь, замінюючи всі додані елементи. Усі входження цього компонента оновлюються.", "ui.paste": "Вставити", "ui.path": "Траєкторія", "ui.pattern_on_path": "Масив на траєкторії", @@ -1397,6 +1631,12 @@ "ui.placement": "Розміщення", "ui.plane": "Площина", "ui.plane_at_angle": "Площина під кутом", + "ui.plugins": "Плагіни", + "ui.plugins_desktop": "Плагіни доступні в настільному застосунку.", + "ui.plugins_empty": "Плагінів не встановлено.", + "ui.plugins_note": "Кожен плагін — це папка в {path} з файлом plugin.json. SolidCraft читає цей файл і не виконує жодного коду з папки. Вимкнення плагіна залишає його встановленим.", + "ui.plugins_skipped": "Не вдалося прочитати папок: {count}.", + "ui.plugins_version": "{version}", "ui.point": "Точка", "ui.point_under_the_cursor": "Точка під курсором", "ui.points": "Точки", @@ -1415,13 +1655,17 @@ "ui.quit": "Вихід", "ui.radial_context_menu": "Кругове контекстне меню", "ui.radius": "Радіус", - "ui.radius_type": "Тип радіуса", "ui.rail": "Напрямна", "ui.rail_fit": "Підгонка за напрямною", "ui.reachable": "Досяжні", "ui.rectangle": "Прямокутник", "ui.rectangular_pattern": "Прямокутний масив", "ui.redo": "Повторити", + "ui.relink_design_changed": "Збірка змінилася під час вибору джерела. Почніть «Переприв'язати джерело» знову.", + "ui.relink_done": "Джерело переприв'язано для всіх екземплярів.", + "ui.relink_not_linked": "Цей компонент не пов'язаний із проєктом-джерелом.", + "ui.relink_select_one": "Спершу виберіть один пов'язаний компонент або один з його екземплярів.", + "ui.relink_source_all": "Переприв'язати джерело (усі екземпляри)…", "ui.removeFromToolbar": "Прибрати з панелі інструментів", "ui.removeSection": "Прибрати розріз", "ui.render": "Візуалізувати", @@ -1437,10 +1681,12 @@ "ui.reverse_horizontal_pan_tip": "Горизонтальна прокрутка двома пальцями та бічне колесо панорамують у зворотний бік", "ui.reverse_zoom_direction": "Змінити напрямок масштабування", "ui.revolve": "Обертання", + "ui.ribbon_exit": "Вихід", + "ui.ribbon_pin_footer": "Закріплені команди відображаються на стрічці. Наведіть курсор на рядок, щоб закріпити або відкріпити його.", + "ui.ribbon_workspace": "Робоча область", "ui.right": "Справа", "ui.save": "Зберегти", "ui.save_as": "Зберегти як", - "ui.save_as_ellipsis": "Зберегти як...", "ui.save_mesh_no_slicer": "Слайсер не знайдено: виберіть «Власна…» і вкажіть свою програму-слайсер або вимкніть «Надіслати в слайсер»", "ui.save_mesh_pick_bodies": "Виберіть тіла для збереження", "ui.save_mesh_temp_failed": "Не вдалося створити {folder}: {error}", @@ -1453,8 +1699,10 @@ "ui.select": "Вибрати", "ui.selectOther": "Вибрати інше…", "ui.selectTangentChain": "Вибрати дотичний ланцюг", - "ui.select_other_hint": "Вибір іншого: утримуйте ліву кнопку нерухомо на моделі (або клацніть правою › Вибрати інше…), щоб побачити список усього під курсором; клацніть ще раз у тому ж місці, щоб вибрати наступний об'єкт там.", "ui.selection": "Виділення", + "ui.selection_modifiers": "Модифікатори вибору", + "ui.selection_shift_add_only": "Shift+клацання додає без вилучення", + "ui.selection_shift_add_only_tip": "Увімк.: Shift додає елементи, Ctrl/Cmd перемикає. Вимк. (типово): Shift і Ctrl/Cmd обидва перемикають.", "ui.send": "Надіслати", "ui.send_to_slicer": "Надіслати в слайсер", "ui.sent_to_slicer": "Надіслано в {slicer}", @@ -1470,7 +1718,6 @@ "ui.show_constraints": "Обмеження", "ui.show_construction_geometries": "Конструкційна геометрія", "ui.show_dimensions": "Розміри", - "ui.show_points": "Показати точки", "ui.show_profile": "Показати профіль", "ui.show_projected_geometries": "Проєкційна геометрія", "ui.simple": "Простий", @@ -1479,8 +1726,8 @@ "ui.sketch": "Ескіз", "ui.sketch_dimension": "Розмір ескізу", "ui.sketch_grid": "Сітка ескізу", + "ui.sketch_modifiers": "Модифікатори ескізу", "ui.sketch_scale": "Масштаб ескізу", - "ui.sketch_status": "Стан ескізу", "ui.sketches": "Ескізи", "ui.slice": "Розріз", "ui.slicer": "Слайсер", @@ -1526,12 +1773,14 @@ "ui.stand_up_tip": "Після відкриття файлу STEP або IGES з напрямком Z вгору пропонувати поворот на чверть оберту навколо X", "ui.start": "Початок", "ui.start_over": "Почати спочатку", - "ui.start_radius": "Початковий радіус", + "ui.start_page": "Початкова сторінка", "ui.stretch": "Розтягнути", "ui.supersampling": "Наддискретизація (SSAA)", "ui.supersampling_adaptive": "Лише коли вид нерухомий", "ui.supersampling_off": "Вимкнено (1×)", "ui.suppress": "Придушити", + "ui.suppress_auto_snap": "Пригнічувати автоприв'язку під час малювання / перетягування", + "ui.suppress_auto_snap_note": "Типово: Ctrl/Cmd або Alt/Option кожна пригнічує прив'язку ескізу. Виберіть одну клавішу, щоб звузити.", "ui.sweep": "Протягування", "ui.sweep_follow_direction": "Слідувати напрямку", "ui.sweep_keep_as_drawn": "Як намальовано", @@ -1574,13 +1823,24 @@ "ui.untitled": "Без назви", "ui.up_axis_note": "Яка вісь спрямована вгору у видах (вид осі, головний, наведення). Проєкти не змінюються.", "ui.updateToCurrentView": "Оновити до поточного виду", - "ui.variable": "Змінна", "ui.view_centre": "Центр виду", "ui.visual_shaded_hidden_edges": "Затінений із прихованими ребрами", "ui.visual_shaded_with_edges": "Затінений із ребрами", "ui.visual_style": "Стиль відображення", "ui.visual_wireframe": "Каркас", "ui.workspace": "робоча область", + "ui.workspace_animation_description": "Рознесені вигляди, дослідження руху та розкадрування", + "ui.workspace_available": "Доступно", + "ui.workspace_current": "Поточне", + "ui.workspace_design_description": "Ескіз, моделювання, збирання та перевірка", + "ui.workspace_design_tabs": "Модель · Поверхня · Збірка · Вставка · Перевірка · Керування · Вигляд", + "ui.workspace_drawing_description": "2D-креслення з видами, розмірами та штампами", + "ui.workspace_footer": "Кожне робоче середовище працює з тим самим проєктом, історією та вибором; змінюються лише вкладки стрічки. Перемикач заблоковано, поки редагується ескіз або елемент.", + "ui.workspace_manufacture_description": "Нарізання, траєкторії та налаштування", + "ui.workspace_planned": "Заплановано", + "ui.workspace_render_description": "Перегляд виробу, налаштування сцени та відтворені зображення", + "ui.workspace_render_tabs": "Сцена · Зображення", + "ui.workspace_simulation_description": "Навантаження, обмеження та результати", "ui.x_distance": "Відстань X", "ui.y_distance": "Відстань Y", "ui.y_up": "Y вгору", @@ -1590,7 +1850,6 @@ "ui.zoom_to_the_cursor": "Масштабувати до курсора", "update.available": "Доступна версія SolidCraft {version}", "update.button": "Оновити", - "update.button_tip": "Доступна версія SolidCraft {version}", "update.button_version": "Оновити до {version}", "update.check_automatically": "Автоматично перевіряти оновлення", "update.check_now": "Перевірити зараз", @@ -1622,5 +1881,6 @@ "update.title": "Доступне оновлення", "update.up_to_date": "SolidCraft оновлено.", "update.update_now": "Оновити зараз", - "update.you_have": "У вас версія {version}." + "update.you_have": "У вас версія {version}.", + "↑ ↓ choose · Enter / Tab complete · Esc dismiss": "↑ ↓ вибрати · Enter / Tab доповнити · Esc закрити" } diff --git a/assets/locales/vi.json b/assets/locales/vi.json index 623e5e343..970f0da2d 100644 --- a/assets/locales/vi.json +++ b/assets/locales/vi.json @@ -3,11 +3,14 @@ "1. Open GitHub draft below, then paste the report copied to your clipboard.": "1. Mở bản nháp GitHub bên dưới, sau đó dán báo cáo đã sao chép vào bộ nhớ tạm.", "1. Open GitHub draft below. Your title and report will be filled in.": "1. Mở bản nháp GitHub bên dưới. Tiêu đề và báo cáo sẽ được tự động điền.", "2. Attach your screenshot: copy and paste it, or save and upload the PNG.": "2. Đính kèm ảnh chụp màn hình: sao chép và dán, hoặc lưu và tải lên tệp PNG.", + "2D": "2D", "3. Click Submit new issue on GitHub to send your report.": "3. Nhấp vào 'Submit new issue' trên GitHub để gửi báo cáo.", "A new configuration, a copy of the active one": "Cấu hình mới, sao chép từ cấu hình hiện tại", - "AI": "AI", + "ARRANGE": "SẮP XẾP", "About SolidCraft": "Giới thiệu SolidCraft", "Acceleration": "Gia tốc", + "Access": "Truy cập", + "Actions": "Thao tác", "Active": "Đang kích hoạt", "Active rule": "Quy tắc đang kích hoạt", "Add": "Thêm", @@ -15,6 +18,7 @@ "Add Mid Radius": "Thêm bán kính giữa", "Add Row": "Thêm hàng", "Add condition": "Thêm điều kiện", + "Add or edit rule": "Thêm hoặc sửa quy tắc", "Against": "So với", "Alignment": "Căn chỉnh", "All Sketch Points": "Tất cả điểm phác thảo", @@ -28,20 +32,33 @@ "Applied Radius": "Bán kính áp dụng", "Apply To": "Áp dụng cho", "Apply to selection": "Áp dụng cho đối tượng đã chọn", + "Apply your appearance first. Exports assigned appearances and materials created in this design.": "Hãy áp dụng vật liệu bề mặt trước. Tệp xuất sẽ gồm các vật liệu bề mặt đã gán và vật liệu được tạo trong thiết kế này.", "Arc length": "Chiều dài cung tròn", "Area": "Diện tích", + "As-Built": "Như đã lắp", + "Assign Rule": "Gán quy tắc", "Attachment": "Mối liên kết", + "BLEND SURFACE": "MẶT NỐI MƯỢT", "BOUNDARY SURFACE": "BỀ MẶT BIÊN DẠNG", "BROWSER": "CÂY ĐỐI TƯỢNG", "Bend Line Position": "Vị trí đường chấn", "Bend Position": "Vị trí chấn", "Bend Radius": "Bán kính chấn uốn", + "Bend Table": "Bảng chấn", "Bends": "Các vị trí chấn", + "Bodies": "Thân khối", "Body": "Thân khối", "Boundary": "Biên dạng bao", "Bounding box": "Hộp bao ngoài", + "CHECK": "KIỂM TRA", + "COMPONENTS": "CHI TIẾT", + "CONFIGURATIONS": "CẤU HÌNH", + "CONSTRAIN": "RÀNG BUỘC", + "CONTACT": "TIẾP XÚC", + "CONVERT": "CHUYỂN ĐỔI", "CSV or JSON: updates existing parameters, adds new ones": "CSV hoặc JSON: cập nhật tham số hiện có, thêm tham số mới", "Capture All Positions": "Chụp lại tất cả vị trí", + "Capture Pos.": "Ghi vị trí", "Catch Direction": "Hướng chốt gài", "Cells": "Ô lưới", "Center X": "Tâm X", @@ -52,15 +69,19 @@ "Check collisions": "Kiểm tra va chạm", "Checked": "Đã chọn", "Choose a new plane. Sketch geometry and dimensions stay unchanged in its two-dimensional coordinates.": "Chọn một mặt phẳng mới. Hình học và kích thước phác thảo được giữ nguyên trong hệ tọa độ 2D.", + "Choose…": "Chọn…", + "Circular": "Tròn", "Circumference": "Chu vi", "Close draft": "Đóng bản nháp", "Collisions": "Va chạm", "Colour": "Màu sắc", + "Comment": "Ghi chú", "Component1": "Cụm chi tiết 1", + "Config Table": "Bảng cấu hình", "Configuration": "Cấu hình", "Configuration rules": "Quy tắc cấu hình", - "Construction": "Đường dựng hình (nét đứt)", "Contact": "Tiếp xúc", + "Contact Sets": "Tập hợp tiếp xúc", "Contact sets": "Tập hợp tiếp xúc", "Continuity": "Độ liên tục", "Copy Error Message": "Sao chép thông báo lỗi", @@ -78,14 +99,17 @@ "Cube": "Khối lập phương", "Current orthographic view (1:1 mm)": "Góc nhìn trực giao hiện tại (1:1 mm)", "Current perspective view": "Góc nhìn phối cảnh hiện tại", + "Curv. Comb": "Lược độ cong", "Curvature (G2)": "Độ cong (G2)", + "Curvature change (G3)": "Thay đổi độ cong (G3)", "Customize Toolbar": "Tùy biến thanh công cụ", + "Delete": "Xóa", "Delete all": "Xóa tất cả", "Delete rule": "Xóa quy tắc", "Delete the row": "Xóa hàng", "Delete the set": "Xóa tập hợp", - "Delete this parameter": "Xóa tham số này", "Density": "Khối lượng riêng", + "Dependents": "Phần phụ thuộc", "Designs you open or save appear here.": "Các thiết kế bạn mở hoặc lưu sẽ xuất hiện tại đây.", "Determined by To Object. Choose Angle to edit the angular extent.": "Được xác định theo Đến đối tượng (To Object). Chọn Góc để chỉnh sửa góc mở rộng.", "Direction": "Hướng", @@ -97,45 +121,72 @@ "Drive Joint": "Dẫn động khớp nối", "Duration": "Thời lượng", "Edges": "Các cạnh", + "Edit": "Sửa", "Edit Profile Sketch": "Chỉnh sửa phác thảo biên dạng", "Enable rule": "Bật quy tắc", "Enabled": "Đã kích hoạt", + "End bulge": "Độ phình cuối", + "End continuity": "Độ liên tục cuối", "Explode": "Phân rã", "Explode Text": "Phân rã văn bản", "Export Animation…": "Xuất hoạt cảnh…", + "Export CSV…": "Xuất CSV…", "Export Current View as DXF": "Xuất góc nhìn hiện tại dạng DXF", "Export Current View as DXF…": "Xuất góc nhìn hiện tại dạng DXF…", + "Export DXF": "Xuất DXF", "Export DXF…": "Xuất DXF…", + "Export JSON…": "Xuất JSON…", "Export hidden edges as dashed lines": "Xuất nét khuất dưới dạng đường nét đứt", + "Expression": "Biểu thức", + "Extend to meet": "Kéo dài đến giao nhau", "Extents": "Phạm vi kéo dài", + "FILES": "TỆP", + "FLAT": "PHẲNG", "Face": "Bề mặt", "Face attachment lost": "Mất liên kết bề mặt", "Faces": "Các bề mặt", "Faces / edges / vertices": "Bề mặt / Cạnh / Đỉnh", + "Fastener": "Chi tiết kẹp chặt", + "Favorites": "Yêu thích", "Favourite": "Yêu thích", + "Feature": "Tính năng", "Files from many CAD programs have Y up, so they open lying on their back here (Z up).": "Tệp từ nhiều phần mềm CAD có trục Y hướng lên, nên khi mở ở đây (trục Z hướng lên) mô hình sẽ nằm ngang.", "Filter": "Bộ lọc", "Find in Browser": "Tìm trong cây đối tượng", - "Flat": "Trải phẳng", + "Finish": "Hoàn tất", + "Flat Pattern": "Bản khai triển phẳng", "Flat size": "Kích thước phôi phẳng", "Follow camera (Look At sketches)": "Đi theo camera (Nhìn vuông góc phác thảo)", "Follow the camera (Look At sketches)": "Đi theo camera (Nhìn vuông góc phác thảo)", "Font": "Phông chữ", + "From Bodies": "Từ thân khối", + "From edges": "Từ các cạnh", "Full Length": "Toàn bộ chiều dài", + "Gap": "Khe hở", "Grid": "Lưới tọa độ", + "HISTORY": "LỊCH SỬ", "Height": "Chiều cao", "Hidden edges": "Nét khuất", "Holes": "Lỗ", "Holes (edges on them)": "Lỗ (các cạnh trên lỗ)", "Home view": "Góc nhìn chuẩn (Home)", + "Horiz./Vert.": "Ngang/Dọc", + "IMAGES": "HÌNH ẢNH", + "Import…": "Nhập…", "In This Design": "Trong thiết kế này", "In place (surfaces)": "Tại chỗ (các bề mặt)", "In plane": "Trong mặt phẳng", "Inside": "Bên trong", "Interferes": "Giao thoa va chạm", + "Isocurve": "Đường đẳng tham số", "Issue title": "Tiêu đề vấn đề", + "JOINTS": "KHỚP NỐI", "Joint Origin1": "Gốc khớp nối 1", + "Keep (points on it)": "Giữ lại (phía có các điểm)", "Keep Tools": "Giữ lại công cụ cắt", + "Keep of the other surface": "Giữ phần của bề mặt kia", + "LIBRARY": "THƯ VIỆN", + "LINKS": "LIÊN KẾT", "Later": "Để sau", "Leave it": "Giữ nguyên", "Legacy face attachment. Rebinding to a certified face creates an exact attachment.": "Liên kết bề mặt kiểu cũ. Gán lại vào một bề mặt hợp lệ sẽ tạo liên kết chính xác.", @@ -143,46 +194,70 @@ "Length units": "Đơn vị đo chiều dài", "Letter Spacing": "Khoảng cách chữ", "Library": "Thư viện", + "Library file": "Tệp thư viện", "Line Spacing": "Khoảng cách dòng", + "Local library": "Thư viện cục bộ", "Loop": "Vòng lặp kín", + "MANAGE": "QUẢN LÝ", + "MATERIALS": "VẬT LIỆU", + "MODEL": "MÔ HÌNH", + "MOTION": "CHUYỂN ĐỘNG", "Margin": "Lề biên", "Mass": "Khối lượng", + "Mass Center": "Tâm khối lượng", + "Matched restrictions check the final values.": "Các ràng buộc khớp sẽ kiểm tra giá trị cuối cùng.", "Material": "Vật liệu", "Max": "Tối đa", "Mid Radius": "Bán kính giữa", "Middle double-click": "Nhấp đúp chuột giữa", "Min": "Tối thiểu", "Mitre": "Góc vát chéo (Mitre)", + "Model Parameters": "Tham số mô hình", "Modeled": "Mô hình hóa", "More toolbar panels": "Thêm bảng thanh công cụ", "Motion": "Chuyển động", + "Move / Copy": "Di chuyển / Sao chép", "Move Type": "Kiểu di chuyển", + "Move down": "Chuyển xuống", "Move earlier": "Di chuyển lên trước", "Move later": "Di chuyển xuống sau", + "Move up": "Chuyển lên", "Name": "Tên", "Nearest": "Gần nhất", + "New": "Mới", + "New Comp.": "Chi tiết mới", + "New Sketch": "Phác thảo mới", + "New rule…": "Quy tắc mới…", "New study": "Nghiên cứu mới", "No crash reports.": "Không có báo cáo sự cố.", + "No matching appearance presets.": "Không có cài đặt sẵn vật liệu bề mặt phù hợp.", "No matching appearances": "Không có màu sắc/vật liệu phù hợp", "No visible bodies to export.": "Không có thân khối hiển thị nào để xuất.", "None": "Không có", - "Normal to sketch": "Vuông góc với phác thảo", "Not available yet": "Chưa khả dụng", "Notch": "Rãnh khía chữ V", + "OUTPUT": "ĐẦU RA", "Opacity": "Độ mờ đục", "Open GitHub draft": "Mở bản nháp trên GitHub", + "Open local libraries in the desktop app. You can export this design's library here.": "Hãy mở thư viện cục bộ trong ứng dụng máy tính. Bạn có thể xuất thư viện của thiết kế này tại đây.", "Open-source parametric 3D CAD in Rust. Licensed MIT OR Apache-2.0.": "Phần mềm CAD 3D tham số mã nguồn mở viết bằng Rust. Giấy phép MIT HOẶC Apache-2.0.", + "Operator": "Toán tử", "Other side": "Phía bên kia", + "Other surface (mutual trim)": "Bề mặt kia (cắt xén lẫn nhau)", "Outside": "Bên ngoài", "Overall length": "Chiều dài tổng thể", - "Parameter values": "Giá trị tham số", + "Param. Graph": "Đồ thị tham số", + "Parameter": "Tham số", + "Parts": "Chi tiết", "Pass through": "Đi xuyên qua", "Path": "Đường dẫn", + "Pattern": "Mảng", "Per Edge": "Theo từng cạnh", "Pick the tool bodies": "Chọn các thân khối làm công cụ cắt", "Picked": "Đã chọn", "Picked point": "Điểm đã chọn", "Place at the origin instead": "Đặt tại gốc tọa độ", + "Plastic Rules": "Quy tắc nhựa", "Playback": "Phát lại", "Plot": "Vẽ đồ thị", "Position": "Vị trí", @@ -193,10 +268,11 @@ "Preview Row": "Xem trước hàng", "Preview leaves the current design unchanged.": "Xem trước giữ nguyên thiết kế hiện tại không đổi.", "Profiles/Curves": "Biên dạng / Đường cong", - "Projection": "Phép chiếu", "Quantity": "Số lượng", "RECENT": "GẦN ĐÂY", + "REFERENCE": "THAM CHIẾU", "RULED SURFACE": "MẶT KẺ (RULED SURFACE)", + "RULES": "QUY TẮC", "Radius Fit": "Bán kính vừa vặn", "Ratio": "Tỷ lệ", "Reattach selected face": "Gắn lại bề mặt đã chọn", @@ -214,6 +290,8 @@ "Remove this point": "Xóa điểm này", "Report a bug — review a screenshot and open a GitHub draft": "Báo cáo sự cố — xem lại ảnh chụp màn hình và mở bản nháp trên GitHub", "Reset Toolbar": "Đặt lại thanh công cụ", + "Resize Part": "Đổi kích thước chi tiết", + "Restore View": "Khôi phục góc nhìn", "Restore outer boundary": "Khôi phục biên dạng bao ngoài", "Restore the inherited component or physical material appearance": "Khôi phục vẻ ngoài kế thừa từ cụm chi tiết hoặc vật liệu vật lý", "Result": "Kết quả", @@ -222,18 +300,27 @@ "Reverse Direction": "Đảo ngược hướng", "Revert": "Hoàn nguyên", "Revert All Positions": "Hoàn nguyên tất cả vị trí", + "Revert Pos.": "Hoàn nguyên vị trí", "Revert Position": "Hoàn nguyên vị trí", "Review the report and screenshot before opening GitHub.": "Xem lại báo cáo và ảnh chụp màn hình trước khi mở GitHub.", "Rim Edge": "Cạnh mép vành", "Roll History Marker Here": "Cuộn mốc lịch sử tới đây", "Round": "Bo tròn", "Rule": "Quy tắc", + "Rule name": "Tên quy tắc", + "Rules run from top to bottom. Matched drives change effective values.": "Các quy tắc chạy từ trên xuống dưới. Các thông số điều khiển khớp sẽ thay đổi giá trị hiệu lực.", + "SECTION": "MẶT CẮT", + "SURFACE QUALITY": "CHẤT LƯỢNG BỀ MẶT", "Save Rule": "Lưu quy tắc", + "Save View": "Lưu góc nhìn", "Save the study as an animated GIF, seen as the viewport shows it": "Lưu nghiên cứu chuyển động thành ảnh GIF động, theo đúng góc nhìn hiện tại", "Saved preview. Geometry is being checked before editing.": "Đã lưu bản xem trước. Hình học đang được kiểm tra trước khi chỉnh sửa.", "Scale factor": "Hệ số tỷ lệ", + "Scene": "Cảnh", "Search": "Tìm kiếm", "Search commands": "Tìm kiếm lệnh", + "Search this library": "Tìm trong thư viện này", + "Section": "Mặt cắt", "Select Other: hold the left button still on the model (or right-click › Select Other…) to list everything under the cursor; click again on the same spot to select the next thing there. Double-click the middle button to go Home (Preferences › Navigation).": "Chọn đối tượng khác: giữ nút chuột trái đứng yên trên mô hình (hoặc nhấp chuột phải › Chọn đối tượng khác…) để liệt kê mọi đối tượng dưới con trỏ; nhấp lại vào cùng vị trí đó để chọn đối tượng kế tiếp. Nhấp đúp chuột giữa để về Góc nhìn chuẩn (Tùy chọn cài đặt › Điều hướng).", "Select bodies (a face picks its body)": "Chọn thân khối (chọn một mặt sẽ chọn cả thân khối)", "Select bodies or faces instead": "Chọn thân khối hoặc bề mặt thay thế", @@ -241,6 +328,7 @@ "Semantic faces share their appearance across instances.": "Các bề mặt ngữ nghĩa dùng chung màu sắc bề mặt giữa các bản thể.", "Send your report on GitHub": "Gửi báo cáo của bạn trên GitHub", "Shape": "Hình dạng", + "Sheet Rules": "Quy tắc tấm kim loại", "Show Agent Cursor": "Hiển thị con trỏ của AI Agent", "Show in folder": "Hiển thị trong thư mục", "Show the pointer an AI agent moves (#35)": "Hiển thị con trỏ do AI Agent điều khiển (#35)", @@ -254,16 +342,23 @@ "Sketch points": "Điểm phác thảo", "Slot width": "Bề rộng rãnh then", "SolidCraft closed before these designs were saved. Their last autosave can be opened.": "SolidCraft đã đóng trước khi các thiết kế này được lưu. Bạn có thể mở bản tự động lưu gần nhất của chúng.", + "Specialise": "Chuyên biệt hóa", "Speed": "Tốc độ", "Stand it up": "Dựng đứng đối tượng", "Stand it up: a quarter turn about X, as one Move feature you can undo.": "Dựng đứng đối tượng: xoay 90° quanh trục X, dưới dạng một tính năng Di chuyển có thể hoàn tác.", "Stand this part up?": "Dựng đứng chi tiết này lên?", + "Start bulge": "Độ phình đầu", + "Start continuity": "Độ liên tục đầu", "Step": "Bước", "Steps": "Các bước", + "Stitch the kept pieces": "Khâu các phần được giữ lại", + "Stitch to both bodies": "Khâu vào cả hai thân khối", "Study": "Nghiên cứu", "Style": "Kiểu hiển thị", "Suppressed": "Bị tạm nén", + "Surface": "Bề mặt", "Swap Ends": "Hoán đổi hai đầu", + "TRIM": "CẮT XÉN", "Tangent (G1)": "Tiếp tuyến (G1)", "Tangent Chain": "Chuỗi tiếp tuyến", "Tear": "Xé rách mép chấn", @@ -279,22 +374,26 @@ "This child is shared. Position changes apply to every copy of its parent.": "Đối tượng con này được dùng chung. Thay đổi vị trí sẽ áp dụng cho mọi bản sao của đối tượng cha.", "This face cannot provide a durable attachment. Choose another face or explicitly use a fixed plane.": "Bề mặt này không thể tạo liên kết bền vững. Hãy chọn bề mặt khác hoặc sử dụng mặt phẳng cố định.", "To Offset": "Tới khoảng dời (Offset)", + "To edges": "Đến các cạnh", "Tolerance": "Dung sai", "Too close": "Quá gần", + "Trimming tool (plane, face or curves)": "Công cụ cắt (mặt phẳng, bề mặt hoặc đường cong)", "Turn off section analysis before exporting the view.": "Tắt phân tích mặt cắt trước khi xuất khung nhìn.", "Type": "Kiểu", "UNTRIM": "HỦY CẮT TỈA (UNTRIM)", + "Unit": "Đơn vị", "Updating the preview": "Đang cập nhật hình xem trước", "Use active author placement": "Sử dụng vị trí tác giả đang kích hoạt", "Use fixed plane": "Sử dụng mặt phẳng cố định", "Use saved fixed plane": "Sử dụng mặt phẳng cố định đã lưu", "Use selected face as fixed plane": "Sử dụng bề mặt đã chọn làm mặt phẳng cố định", + "User Parameters": "Tham số người dùng", "VIEW": "GÓC NHÌN", + "VIEWS": "GÓC NHÌN", "Value": "Giá trị", "Velocity": "Vận tốc", "Vertices": "Các đỉnh", "View navigator": "Khối điều hướng góc nhìn", - "Visible bodies only. Curves use line segments (0.01 mm tolerance).": "Chỉ các thân khối hiển thị. Đường cong sử dụng các đoạn thẳng (dung sai 0,01 mm).", "Volume": "Thể tích", "Wall": "Thành vách", "Wall Location": "Vị trí thành vách", @@ -302,6 +401,13 @@ "When": "Khi", "Width": "Bề rộng", "Will fail": "Sẽ phát sinh lỗi", + "X angle": "Góc X", + "X distance": "Khoảng cách X", + "Y angle": "Góc Y", + "Y distance": "Khoảng cách Y", + "Z angle": "Góc Z", + "Z distance": "Khoảng cách Z", + "Zebra": "Sọc vằn", "angle, height": "góc, chiều cao", "appearance.dielectric_ior": "Chỉ số khúc xạ điện môi (IOR)", "appearance.metallic": "Độ kim loại", @@ -310,7 +416,13 @@ "appearance.roughness": "Độ nhám bề mặt", "appearance.surface_response": "Phản hồi bề mặt", "browser.body_name": "Thân khối{number}", + "browser.calibrate_title": "Hiệu chuẩn: {name}", + "browser.capture_many": "{count} chi tiết đã được di chuyển nhưng vị trí chưa được ghi lại.", + "browser.capture_note": "Ghi vị trí sẽ giữ vị trí mới; Hoàn nguyên sẽ đặt lại như cũ.", + "browser.capture_one": "Một chi tiết đã được di chuyển nhưng vị trí chưa được ghi lại.", "browser.component_name": "Cụm chi tiết{number}", + "browser.edit_canvas_title": "Sửa ảnh nền Canvas: {name}", + "browser.move_title": "Di chuyển: {name}", "browser.parameters": "Bảng tham số ({count})", "browser.precision": "Độ chính xác: {precision}", "browser.sketch_name": "Phác thảo{number}", @@ -325,6 +437,7 @@ "cmd.appearance_assign": "Vẻ ngoài / Màu sắc", "cmd.appearance_library": "Thư viện màu sắc bề mặt", "cmd.appearance_list": "Danh sách màu sắc bề mặt", + "cmd.assembly_bom": "Bảng kê vật tư (BOM)", "cmd.body_rename": "Đổi tên thân khối", "cmd.browser_group": "Tạo nhóm mới", "cmd.browser_move": "Di chuyển mục trong cây đối tượng", @@ -346,10 +459,13 @@ "cmd.component_insert_design": "Chèn thiết kế vào cụm", "cmd.component_links": "Danh sách liên kết", "cmd.component_list": "Danh sách cụm chi tiết", + "cmd.component_metadata": "Thuộc tính chi tiết", + "cmd.component_metadata_set": "Thay đổi thuộc tính chi tiết", "cmd.component_move_bodies": "Di chuyển các thân khối vào cụm chi tiết", "cmd.component_move_sketches": "Di chuyển các phác thảo vào cụm chi tiết", "cmd.component_paste_new": "Dán Tạo mới", "cmd.component_properties": "Thuộc tính cơ lý của cụm chi tiết", + "cmd.component_relink": "Liên kết lại nguồn", "cmd.component_rename": "Đổi tên cụm chi tiết", "cmd.component_revert_position": "Hoàn nguyên vị trí cụm", "cmd.component_unlock": "Mở khóa nội dung cụm", @@ -401,6 +517,7 @@ "cmd.edit_checkpoint": "Điểm kiểm tra (Checkpoint)", "cmd.edit_restore_checkpoint": "Khôi phục điểm kiểm tra", "cmd.engine_commands": "Danh sách lệnh hệ thống", + "cmd.engine_describe": "Mô tả lệnh", "cmd.explode_create": "Tạo chế độ xem phân rã", "cmd.explode_delete": "Xóa chế độ xem phân rã", "cmd.explode_list": "Danh sách chế độ xem phân rã", @@ -433,6 +550,7 @@ "cmd.joint_drive": "Dẫn động các khớp nối", "cmd.joint_edit": "Chỉnh sửa khớp nối", "cmd.joint_gear": "Khớp bánh răng", + "cmd.joint_inspect": "Kiểm tra khớp nối", "cmd.joint_limits": "Giới hạn chuyển động khớp nối", "cmd.joint_list": "Danh sách các khớp nối", "cmd.joint_motion_link": "Liên kết truyền động", @@ -442,6 +560,7 @@ "cmd.joint_rigid_group": "Nhóm ngàm cứng (Rigid Group)", "cmd.joint_screw": "Khớp trục vít", "cmd.joint_solve": "Giải hệ thống khớp nối", + "cmd.joint_sweep": "Quét khớp nối", "cmd.library_apply": "Áp dụng mục thư viện cục bộ", "cmd.library_export": "Xuất thư viện thiết kế", "cmd.library_inspect": "Kiểm tra thư viện cục bộ", @@ -590,6 +709,7 @@ "cmd.sketch_spline_fit_point": "Đường cong Spline qua các điểm", "cmd.sketch_spun_profile": "Biên dạng xoay tròn (Spun Profile)", "cmd.sketch_toggle_driven": "Chuyển đổi kích thước tham chiếu (Driven Dimension)", + "cmd.sketch_trim_path": "Cắt xén dọc theo đường dẫn", "cmd.solid_align": "Căn chỉnh thân khối", "cmd.solid_boundary_fill": "Điền đầy biên dạng khối", "cmd.solid_bounding_solid": "Tạo khối bao ngoài", @@ -640,7 +760,15 @@ "cmd.view_navigate": "Điều hướng góc nhìn", "cmd.view_rename": "Đổi tên góc nhìn đã lưu", "cmd.view_save": "Tạo góc nhìn đã lưu mới", - "command name": "tên lệnh", + "color.copy": "Nhấp để sao chép giá trị màu", + "color.edit": "Nhấp để sửa màu", + "color.gamma": "Đang hiển thị giá trị màu trong không gian gamma 0-255", + "color.hue": "Sắc độ", + "color.linear": "Đang hiển thị giá trị màu trong không gian tuyến tính 0-1", + "color.saturation_value": "Độ bão hòa và giá trị", + "color.selected": "Màu đã chọn", + "contact.components_count": "{count} chi tiết", + "contact.enabled_label": "đã bật", "coupling.gear_1": "Bánh răng 1", "coupling.gear_1_pick": "Bánh răng 1 (tùy chọn)", "coupling.gear_2": "Bánh răng 2", @@ -657,6 +785,21 @@ "coupling.rack": "Thanh răng", "coupling.radius_1": "Bán kính 1", "coupling.radius_2": "Bán kính 2", + "crash.announce": "Lần trước SolidCraft đã đóng đột ngột hoặc gặp lỗi nội bộ. Báo cáo sự cố đã được lưu (Trợ giúp > Báo cáo sự cố…).", + "crash.copy_folder": "Sao chép đường dẫn thư mục", + "crash.copy_path": "Sao chép đường dẫn", + "crash.deleted": "Đã xóa {count} báo cáo.", + "crash.detected_time": "Phát hiện lúc {time} UTC", + "crash.intro": "Báo cáo sự cố được giữ trên máy tính này và không bao giờ được gửi đi đâu. Báo cáo… sẽ mở một bản nháp để bạn xem lại trước khi chia sẻ bất cứ điều gì.", + "crash.kind_command": "Lỗi nội bộ trong một lệnh", + "crash.kind_internal": "Lỗi nội bộ", + "crash.kind_kernel": "Lỗi nhân (đã khôi phục)", + "crash.kind_unclean": "Đóng đột ngột", + "crash.previous_session": "Một phiên SolidCraft trước đó đã kết thúc đột ngột hoặc gặp lỗi nội bộ. Các báo cáo từ lần thoát bất thường được phát hiện khi khởi động. Xem Trợ giúp > Báo cáo sự cố… để biết chi tiết.", + "crash.replayable": "có thể phát lại", + "crash.report": "Báo cáo…", + "crash.unclean_explanation": "Được phát hiện ở lần khởi chạy sau; thời điểm thoát chính xác không được ghi lại. Việc tắt máy hoặc buộc dừng cũng có thể gây ra thoát bất thường.", + "delete.and_more": "… và {count} mục khác", "dialog.bodies_count": "{count} thân khối", "dialog.clearance_invalid": "khoảng cách an toàn phải có chiều dài từ 0 trở lên", "dialog.compute": "Tính toán", @@ -664,6 +807,8 @@ "dialog.computing": "Đang tính toán… {seconds} s", "dialog.could_not_be_checked": "không thể kiểm tra", "dialog.custom_axis": "↖ Trục tùy chỉnh", + "dialog.dimension_insert_hint": "Nhấp vào một kích thước điều khiển khác để chèn tên của nó", + "dialog.dimension_name": "Kích thước: {name}", "dialog.edit_title": "CHỈNH SỬA {title}", "dialog.select": "↖ Chọn", "dialog.selected_count": "↖ {count} đã chọn", @@ -687,9 +832,30 @@ "dxf.progress.write": "Đang ghi tệp DXF (5/5)", "dxf.tolerance": "Dung sai đường cong", "dxf.tolerance_help": "Chỉ áp dụng cho các thân khối hiển thị. Đường cong sử dụng các đoạn thẳng. Dung sai nhỏ hơn cho đường cong mịn hơn nhưng tốn nhiều thời gian và bộ nhớ hơn.", - "expression, e.g. 25 mm": "biểu thức, ví dụ: 25 mm", + "file_load.built": "Đã dựng được: {built} trên {total} tính năng.", + "file_load.converting": "Đang chuyển đổi khối đặc {done} trên {total}", + "file_load.inserting": "Đang chèn hình học", + "file_load.opening": "Đang mở thiết kế", + "file_load.preparing_thumbnail": "Đang chuẩn bị ảnh thu nhỏ...", + "file_load.preparing_view": "Đang chuẩn bị góc nhìn...", + "file_load.preview_note": "Bản xem trước đã lưu. Hình học đang được kiểm tra trước khi chỉnh sửa.", + "file_load.reading": "Đang đọc tệp...", + "file_load.reading_percent": "Đang đọc tệp... {percent}%", + "file_load.rebuilding": "Đang dựng lại tính năng {done} trên {total}", + "file_load.recovering": "Đang khôi phục thiết kế", + "file_load.stopping": "Đang chờ thao tác trước đó dừng lại...", + "file_load.waiting": "Đang chờ thao tác tệp", "fits the face, e.g. M8": "vừa khít bề mặt, ví dụ M8", "from the rule": "từ quy tắc", + "help.apache": "Giấy phép Apache 2.0", + "help.attributions": "Ghi công (ATTRIBUTION.md)", + "help.build": "Phiên bản {version} · commit {commit} · dựng ngày {date}", + "help.font_details": "Giao diện sử dụng các phông chữ tích hợp của egui (Ubuntu Light và Hack, theo Ubuntu Font Licence và giấy phép MIT/Bitstream Vera; Noto Emoji và phông biểu tượng emoji, theo OFL và MIT). Văn bản phác thảo dùng Liberation Sans (SIL OFL 1.1). Gói phông chữ tùy chọn của Crafting Apps, craft-fonts (BIZ UDPGothic, Shippori Mincho, BIZ UDMincho, Noto Sans CJK SC, Noto Sans Arabic; SIL OFL 1.1), không được đóng gói kèm trong các bản dựng SolidCraft.", + "help.fonts": "Phông chữ", + "help.licences": "Giấy phép", + "help.mit": "Giấy phép MIT", + "help.notice": "NOTICE", + "help.third_party": "Giấy phép của bên thứ ba", "home.documentation": "Tài liệu hướng dẫn", "home.in_this_browser": "trong trình duyệt này", "home.missing": "thiếu", @@ -715,13 +881,51 @@ "install.menu": "Cài đặt ứng dụng…", "install.steps_intro": "Safari cài đặt ứng dụng web từ menu của chính nó:", "install.title": "Cài đặt SolidCraft", + "issue.body_label": "Nội dung báo cáo", + "issue.note_image_copied": "Hãy dán hình ảnh vào bản nháp GitHub, hoặc lưu tệp PNG nếu không thể sao chép hình ảnh.", + "issue.note_opened": "Hãy xem lại bản nháp GitHub và đính kèm ảnh chụp màn hình. Nút Submit new issue của GitHub sẽ đăng bản nháp.", + "issue.note_opened_copied": "Đã sao chép báo cáo. Hãy dán vào bản nháp GitHub, đính kèm ảnh chụp màn hình, rồi nhấp Submit new issue trên GitHub.", + "issue.note_removed": "Đã xóa ảnh chụp màn hình khỏi bản nháp này.", + "issue.note_report_copied": "Đã sao chép báo cáo. Hãy dán vào bản nháp GitHub nếu cần.", + "issue.note_save_failed": "Không thể lưu ảnh chụp màn hình: {error}", + "issue.note_saved": "Đã lưu ảnh chụp màn hình. Hãy đính kèm tệp PNG vào bản nháp GitHub.", + "issue.save_screenshot": "Lưu ảnh chụp màn hình…", "joint.from_bodies_hint": "Mỗi thân khối được chọn sẽ được chuyển thành một cụm chi tiết mới riêng biệt và giữ nguyên vị trí hiện tại.", "joint.one_body": "Cả hai điểm chọn đều nằm trên {body}. Vui lòng chọn điểm thứ hai trên chi tiết khác.", "joint.one_component": "Các chi tiết này thuộc cùng một cụm chi tiết: {bodies}. Khớp nối điều khiển một cụm chi tiết so với cụm chi tiết khác, vì vậy mỗi chi tiết cần một cụm chi tiết riêng.", + "keymap.command_id": "Mã lệnh", + "keymap.empty": "Không có lệnh phù hợp", + "keymap.use_anyway": "Vẫn dùng {key} tại đây", + "manage.appearance_hint": "Chọn một kiểu hiển thị cho phần đã chọn, hoặc kéo một mẫu màu thả lên thân khối hay bề mặt.", + "manage.assign_hint": "Chọn các thân khối và chọn quy tắc thiết kế nhựa cho chúng.", + "manage.config_hint": "Sửa các hàng, cột và quy tắc cấu hình, rồi kích hoạt hoặc xem trước một hàng.", + "manage.empty": "Không có hàng phù hợp.", + "manage.material_hint": "Chọn các thân khối và chọn vật liệu vật lý cho chúng.", + "manage.parameters_hint": "Sửa biểu thức và đơn vị. Thay đổi được áp dụng khi nhấn Enter hoặc khi rời khỏi ô nhập.", + "manage.rules_hint": "Chọn một quy tắc để sửa, hoặc tạo quy tắc mới. Xác nhận để lưu quy tắc.", + "measure.at": "Tại", + "measure.item": "Mục {number}", + "messages.ago_h": "{n} giờ trước", + "messages.ago_min": "{n} phút trước", + "messages.ago_s": "{n} giây trước", + "messages.chip_hint": "Nhấp để xem tất cả thông báo của phiên này", + "messages.clear": "Xóa", + "messages.copy_all": "Sao chép tất cả", + "messages.menu": "Thông báo…", + "messages.none": "Chưa có thông báo nào.", + "messages.title": "Thông báo", "motion.checked_to": "Chỉ kiểm tra đến bước {step}: đã hết giới hạn tác vụ", "motion.collision": "{a} · {b}: bước {steps}", + "motion.delete_key": "Xóa khóa", "motion.duration_hint": "giây (để trống: theo từng bước)", + "motion.key_here": "Đặt khóa tại đây", + "motion.key_here_hint": "Thêm một khóa tại bước này với giá trị hiện tại của khớp nối", "motion.no_collisions": "Không có va chạm trong suốt quá trình khảo sát", + "motion.step_back": "Lùi một bước", + "motion.step_forward": "Tiến một bước", + "motion.to_end": "Đến cuối", + "motion.to_start": "Về đầu", + "motion.track_name": "Rãnh {number}", "nav.touchpad.help": "Giữ Shift và di chuyển con trỏ để dời góc nhìn; giữ Alt/Option và di chuyển để xoay quanh tâm. Không cần nhấn nút chuột. Cuộn dọc để thu phóng.", "nav.touchpad.label": "Bàn di chuột (Touchpad)", "nav.touchpad.orbit": "Xoay quanh tâm (giữ Alt/Option và di chuyển; không cần nhấn chuột)", @@ -730,13 +934,13 @@ "nav.touchpad.zoom": "Thu phóng (cuộn dọc hoặc chụm ngón tay)", "needs two joints": "cần hai khớp nối", "new configuration": "cấu hình mới", - "new name": "tên mới", "new parameter": "tham số mới", "no hole": "không có lỗ", "no interference": "không có giao thoa", "no joint that moves yet": "chưa có khớp nối nào có thể chuyển động", "no picture": "không có ảnh", "none": "không có", + "parts.automatic_name": "tự động", "pattern.alignment_2": "Căn chỉnh 2", "pattern.alignment_hint": "Số lượng bao gồm cả bản gốc. Căn giữa sẽ cân bằng các bản sao; Đổi hướng sẽ chọn phía bổ sung cho tổng số chẵn.", "pattern.direction_1": "Hướng 1", @@ -744,12 +948,19 @@ "pattern.flip_direction": "Đổi chiều hướng", "pick a hole to seat it, or OK places it at the origin": "chọn một lỗ để lắp đặt, hoặc nhấn OK để đặt tại gốc tọa độ", "pick one or two vertices, edges or faces": "chọn một hoặc hai đỉnh, cạnh hoặc bề mặt", + "prefs.cpu": "CPU (phần mềm)", + "prefs.minutes_suffix": " phút", + "properties.title": "Thuộc tính: {name}", + "recovery.days_ago": "{count} ngày trước", + "recovery.detail": "{file} · {features} tính năng · tự động lưu {when}", + "recovery.hours_ago": "{count} giờ trước", + "recovery.just_now": "vừa xong", + "recovery.min_ago": "{count} phút trước", + "recovery.never_saved": "chưa từng lưu", "render.background": "Hình nền khung cảnh", "render.fit": "Thu phóng vừa sản phẩm", - "render.image_cancel": "Hủy bỏ Kết xuất hình ảnh", "render.image_cancelled": "Đã hủy kết xuất hình ảnh", "render.image_cancelling": "Đang hủy…", - "render.image_check": "Kiểm tra yêu cầu kết xuất", "render.image_completed": "Hình ảnh đã sẵn sàng để xuất", "render.image_encoding": "Đang mã hóa PNG", "render.image_export": "Xuất tệp PNG", @@ -796,6 +1007,19 @@ "sample.plate.name": "Tấm mẫu", "sample.vents.about": "Các rãnh then trong mảng chữ nhật: số hàng, số cột và bước rãnh là các tham số", "sample.vents.name": "Tấm khe thông gió", + "search.command_keys": "Enter chạy Shift+Enter chạy và giữ mở Esc đóng", + "search.commands": "Lệnh", + "search.design": "Trong thiết kế này", + "search.feature": "Tính năng", + "search.invalid": "Không hợp lệ", + "search.keys": "↑ ↓ chọn Enter chạy Tab điền tên Esc đóng", + "search.no_match": "Không có lệnh nào khớp với '{query}'", + "search.parameter": "Tham số", + "search.recent": "Gần đây", + "search.run": "Chạy lệnh", + "search.suggest": "Có phải bạn muốn nói {label}?", + "search.try": "Nhập tên lệnh, một tính năng trong thiết kế này hoặc một tham số. Để chạy lệnh kèm giá trị, hãy nhập mã lệnh và một đối tượng JSON: {example}", + "search.valid": "Hợp lệ", "settings.display_quality_note": "Mức độ chi tiết cao hơn giúp hiển thị các mặt cong và cạnh mượt mà hơn nhưng tốn nhiều thời gian tạo lưới hơn. Thiết lập này chỉ thay đổi vùng nhìn, không ảnh hưởng đến thiết kế hay dữ liệu xuất tệp.", "settings.frame_rate_note": "Hiển thị số khung hình trên giây (FPS) ở góc dưới bên phải khung nhìn. Khi bật, khung nhìn sẽ vẽ lại liên tục.", "settings.measure_axis_distances": "Hiển thị khoảng cách theo trục X/Y/Z", @@ -806,17 +1030,30 @@ "settings.reset_intro": "Các cài đặt sau không hoạt động trên máy tính này và có thể khiến SolidCraft không thể khởi động, vì vậy chúng đã được tự động điều chỉnh:", "settings.reset_title": "Cài đặt đã được thay đổi", "settings.supersampling_note": "Vẽ khung nhìn ở độ phân giải cao hơn rồi nén lại: giúp các cạnh, đường nét và lưới mượt mà hơn trên màn hình dưới 4K. Tính năng này tiêu tốn tài nguyên GPU: gấp khoảng 2,25 lần số điểm ảnh ở mức 1,5× và 4 lần ở mức 2×.", + "shortcut.json_error": "tham số phải là JSON: {error}", + "shortcut.no_command": "không có lệnh `{id}`; văn bản trước JSON phải là mã lệnh", + "shortcut.pin": "Ghim lên đầu hộp S", + "shortcut.unpin": "Bỏ ghim", "sketch.degrees_of_freedom": "{count} bậc tự do", + "sketch.dof_left": "Còn {count} bậc tự do", + "sketch.dof_left_one": "Còn {count} bậc tự do", "sketch.draw_curves": "Vẽ dưới dạng {linetype}", "sketch.make_selection": "Chuyển đổi vùng chọn sang {linetype}", "sketch.open_ends": "Đầu hở: {count}", "sketch.untied_ends": "Chưa khóa: {count}", + "sketch_panel.attached": "Gắn vào {body} / {path}", + "sketch_panel.author": "Vị trí gốc: {path}", + "sketch_panel.dimension_hint": "Nhập một giá trị hoặc biểu thức, rồi nhấn OK.", + "sketch_panel.move_hint": "Nhập các khoảng cách và một góc, rồi nhấn OK.", + "sketch_panel.redefine_title": "{command}: {name}", + "sketch_panel.sheet_attachment": "Gắn vào một mặt phẳng của thân khối tấm kim loại; phác thảo sẽ đi theo tấm đó khi tấm thay đổi.", + "sketch_panel.text_hint": "Sửa văn bản và vị trí của nó, rồi nhấn OK.", + "sketch_panel.use_plane": "Dùng mặt phẳng {plane}", "sketch_text.align_center": "Căn giữa", "sketch_text.align_left": "Trái", "sketch_text.align_right": "Phải", "sketch_text.bold": "In đậm", "sketch_text.builtin_font": "{family} (tích hợp sẵn)", - "sketch_text.font_search": "Tìm kiếm phông chữ", "sketch_text.italic": "In nghiêng", "sketch_text.loading_fonts": "Đang tìm kiếm các phông chữ đã cài đặt…", "sketch_text.on_path": "Văn bản đi theo đường dẫn: đường cong định vị văn bản", @@ -837,6 +1074,7 @@ "timeline.ungroup": "Xóa thư mục tính năng", "to the face": "tới bề mặt", "to the next face": "tới bề mặt tiếp theo", + "toolbar.customize_note": "Thẻ {tab}. Đánh dấu một lệnh để tạo nút trên thanh công cụ. Bạn cũng có thể kéo một hàng trong danh sách thả xuống của bảng lên thanh công cụ, kéo một nút ra khỏi thanh công cụ để gỡ bỏ, hoặc dùng biểu tượng ghim trên hàng trong danh sách thả xuống.", "toolbar.image": "HÌNH ẢNH", "toolbar.render": "KẾT XUẤT", "toolbar.render_scene": "BỐI CẢNH", @@ -845,11 +1083,11 @@ "trace.stopped_by_loop": "Kết thúc tại mẫu {sample}: vòng lặp qua {joint} không thể khép kín thêm được nữa", "ui.1_degree_of_freedom": "1 bậc tự do", "ui.3d_mouse_speed": "Tốc độ chuột 3D", - "ui.3d_mouse_windows": "Chuột 3D", "ui.3d_sketch": "3D Phác thảo", - "ui.about": "Thông tin phiên bản", "ui.activate": "Kích hoạt", "ui.active_component": "Cụm chi tiết đang kích hoạt", + "ui.add_configuration": "Thêm cấu hình", + "ui.add_parameter": "Thêm tham số", "ui.agent_chat": "Trò chuyện với AI Agent", "ui.agent_chat_add": "Đính kèm tệp", "ui.agent_chat_add_file": "Chọn một tệp…", @@ -891,6 +1129,7 @@ "ui.agent_chat_file_error": "{name}: {error}", "ui.agent_chat_file_heic": "{name}: hình ảnh định dạng HEIC không thể đọc tại đây; hãy xuất sang JPEG hoặc PNG trước", "ui.agent_chat_file_importing": "Đang nhập vào thiết kế…", + "ui.agent_chat_file_kinds": "{name}: có thể đính kèm ảnh (PNG, JPEG, GIF, WebP, BMP, TIFF), tệp văn bản (kể cả SVG) và tệp CAD (STEP, IGES, FreeCAD, Rhino, STL, 3MF, OBJ, glTF)", "ui.agent_chat_file_loading": "Đang đọc tệp…", "ui.agent_chat_file_not_a_file": "{name}: không phải là tệp hợp lệ", "ui.agent_chat_file_not_a_picture": "{name}: không phải là tệp ảnh", @@ -913,7 +1152,7 @@ "ui.agent_chat_model_tip": "Mô hình AI đang sử dụng. Lựa chọn của bạn sẽ được ghi nhớ cho Agent này.", "ui.agent_chat_new": "Cuộc trò chuyện mới", "ui.agent_chat_new_confirm": "Bắt đầu cuộc trò chuyện mới? Cuộc trò chuyện hiện tại sẽ bị xóa.", - "ui.agent_chat_new_yes": "Cuộc trò chuyện mới", + "ui.agent_chat_next_picture": "Ảnh kế tiếp", "ui.agent_chat_no_cli": "Không tìm thấy solidcraft-cli cạnh ứng dụng, vì vậy AI Agent không thể truy cập thiết kế.", "ui.agent_chat_no_control": "Điểm cuối trò chuyện của tác tử không thể khởi động, vì vậy AI Agent không thể truy cập thiết kế.", "ui.agent_chat_no_images": "AI Agent này không hỗ trợ tiếp nhận hình ảnh", @@ -929,6 +1168,7 @@ "ui.agent_chat_placeholder": "Yêu cầu AI Agent chỉnh sửa mô hình thiết kế…", "ui.agent_chat_placeholder_busy": "Xếp hàng tin nhắn khi AI Agent hoàn thành (Ctrl+Enter: gửi ngay)", "ui.agent_chat_pop_out": "Mở trong cửa sổ riêng để bạn có thể di chuyển sang màn hình khác", + "ui.agent_chat_previous_picture": "Ảnh trước", "ui.agent_chat_privacy": "Không có dữ liệu nào được gửi đi bất cứ đâu ngoại trừ tới tác tử bạn chạy, theo tài khoản của chính bạn.", "ui.agent_chat_privacy_note": "SolidCraft không gửi bất kỳ dữ liệu nào ra ngoài: AI Agent giao tiếp trực tiếp với dịch vụ bằng tài khoản của bạn. SolidCraft không bao giờ thấy hay lưu khóa/mật khẩu.", "ui.agent_chat_queue": "Hàng đợi", @@ -984,6 +1224,7 @@ "ui.ai_bad_url": "Nhập địa chỉ URL bắt đầu bằng http:// hoặc https://", "ui.ai_base_url": "URL cơ sở", "ui.ai_button": "AI", + "ui.ai_command_hint": "my-agent --acp", "ui.ai_copy_suffix": "sao chép", "ui.ai_custom_url": "URL tùy chỉnh", "ui.ai_default": "Mặc định", @@ -1004,8 +1245,10 @@ "ui.ai_mode_edits_note": "Các lệnh tạo mô hình sẽ chạy mà không cần hỏi; các hành động lưu, mở, xuất và các thao tác tệp hoặc hủy hoại khác vẫn sẽ hỏi ý kiến bạn.", "ui.ai_mode_global": "Theo cài đặt bên trên", "ui.ai_model": "Mô hình AI", + "ui.ai_model_hint": "qwen3:14b", "ui.ai_modes_scope": "Các cài đặt này áp dụng cho các công cụ của SolidCraft. Công cụ riêng của tác tử (shell hệ thống, chỉnh sửa tệp) tuân theo chế độ riêng của tác tử, được chọn trên thanh tiêu đề bảng điều khiển trò chuyện.", "ui.ai_name": "Tên", + "ui.ai_name_hint": "AI Agent của tôi", "ui.ai_need_command": "Nhập lệnh khởi chạy AI Agent", "ui.ai_need_model": "Nhập tên mô hình AI", "ui.ai_no_answer": "AI Agent không phản hồi kịp thời gian chờ", @@ -1036,6 +1279,7 @@ "ui.ai_toolbar_button": "Hiển thị nút trên thanh công cụ", "ui.ai_toolbar_button_note": "Nút AI ở góc phải thanh công cụ. Phím tắt Ctrl+Shift+A và menu Khung nhìn vẫn có thể mở bảng điều khiển.", "ui.ai_undo_tip": "Hoàn tác mọi thay đổi do tác tử thực hiện cho tin nhắn này, như một bước duy nhất", + "ui.ai_url_hint": "https://example.com/v1", "ui.all": "Tất cả", "ui.ambient_occlusion": "Đổ bóng che khuất môi trường (AO)", "ui.ambient_occlusion_help": "Hiệu ứng đổ bóng mềm tại nơi các mặt mờ đục tiếp xúc nhau. Yêu cầu khung nhìn GPU.", @@ -1049,16 +1293,23 @@ "ui.anti_aliasing": "Khử răng cưa", "ui.apply": "Áp dụng", "ui.arc": "Cung tròn", - "ui.assemble": "Lắp ráp", + "ui.assistant": "Trợ lý", + "ui.assistant_waiting": "{count} yêu cầu phê duyệt đang chờ", "ui.autosave_every": "Tự động lưu sau mỗi", "ui.axes": "Các trục", "ui.axis": "Trục", + "ui.back": "Quay lại", "ui.base_point": "Điểm chuẩn (Base point)", "ui.blocked": "Bị chặn", "ui.bodies": "Các thân khối", "ui.bodies_all_if_none": "Thân khối (tất cả nếu không chọn)", "ui.box": "Khối hộp", "ui.break": "Ngắt", + "ui.browser_bodies_one": "{count} thân khối", + "ui.browser_bodies_other": "{count} thân khối", + "ui.browser_collapse": "Thu gọn trình duyệt", + "ui.browser_expand": "Mở rộng trình duyệt", + "ui.browser_title": "Trình duyệt", "ui.calibrate": "Hiệu chuẩn", "ui.cancel": "Hủy bỏ", "ui.canvases": "Các ảnh nền Canvas", @@ -1068,7 +1319,6 @@ "ui.chamfer": "Vát mép", "ui.chamfer_type": "Kiểu vát mép", "ui.change_workspace": "Đổi không gian làm việc", - "ui.chord_length": "Chiều dài dây cung", "ui.circle": "Hình tròn", "ui.circular_pattern": "Mảng tròn quanh trục", "ui.clear": "Xóa", @@ -1101,11 +1351,9 @@ "ui.command_done": "Hoàn tất lệnh {command}", "ui.command_palette_hint": "Nhập một lệnh, ví dụ: {example} — hoặc nhấn S để tìm kiếm", "ui.concentric": "Đồng tâm", - "ui.configurations": "Các cấu hình", "ui.conic_curve": "Đường cong Conic", "ui.constant": "Hằng số", "ui.constraints_conflict": "Xung đột ràng buộc", - "ui.construct": "Dựng hình", "ui.construction": "Đường gióng dựng hình", "ui.context_menu": "Menu ngữ cảnh", "ui.continuity_g0": "Nếp gập G0", @@ -1131,7 +1379,6 @@ "ui.cylinder": "Hình trụ", "ui.dark": "Tối", "ui.default_modelling_orientation": "Hướng mô hình hóa mặc định", - "ui.degrees_of_freedom": "bậc tự do", "ui.delete": "Xóa", "ui.depth": "Độ sâu", "ui.design": "Thiết kế", @@ -1173,7 +1420,6 @@ "ui.equivalent_radius": "Bán kính tương đương", "ui.expand": "Mở rộng", "ui.exportDxf": "Xuất tệp DXF…", - "ui.export_ellipsis": "Xuất tệp...", "ui.export_ellipsis_keymap": "Xuất tệp…", "ui.export_keymap_tip": "Xuất phím tắt, danh sách S box yêu thích và thanh công cụ ra tệp", "ui.extend": "Kéo dài đường", @@ -1197,6 +1443,7 @@ "ui.frame_rate": "Tốc độ khung hình (FPS)", "ui.front": "Trước (Hình chiếu đứng)", "ui.fully_constrained": "Ràng buộc hoàn toàn", + "ui.function": "Hàm", "ui.general": "Chung", "ui.graphics": "Đồ họa", "ui.graphics_custom": "Tùy biến", @@ -1263,7 +1510,6 @@ "ui.heading_sheet_metal": "KIM LOẠI TẤM", "ui.heading_shell": "TẠO VỎ MỎNG", "ui.heading_sketch": "PHÁC THẢO", - "ui.heading_sketch_palette": "BẢNG ĐIỀU KHIỂN PHÁC THẢO", "ui.heading_sketch_scale": "TỶ LỆ PHÁC THẢO", "ui.heading_solid": "KHỐI ĐẶC", "ui.heading_sphere": "HÌNH CẦU", @@ -1282,6 +1528,7 @@ "ui.hideOrigin": "Ẩn Gốc tọa độ", "ui.hidePlanes": "Ẩn các mặt phẳng", "ui.hideProfile": "Ẩn biên dạng", + "ui.history_title": "Lịch sử", "ui.hole": "Tạo lỗ", "ui.hole_tap_type": "Kiểu ta-rô ren lỗ", "ui.hole_type": "Loại lỗ", @@ -1301,11 +1548,12 @@ "ui.length_decimals": "Số chữ số thập phân cho chiều dài", "ui.light": "Sáng", "ui.line": "Đoạn thẳng", - "ui.linetype": "Kiểu đường nét", "ui.lock": "Khóa", "ui.loft": "Vuốt nối biên dạng (Loft)", "ui.look_at": "Nhìn trực diện", "ui.look_at_anim_desc": "Góc nhìn theo trục, Nhìn thẳng, Chuẩn và Vừa vặn", + "ui.manipulator_free_alt": "Kéo tự do bộ thao tác cũng bằng Alt/Option", + "ui.manipulator_free_alt_tip": "Bật: Alt/Option hoặc Ctrl/Cmd trên các mũi tên đùn / gizmo sẽ tắt bước nhảy giá trị. Tắt: chỉ Ctrl/Cmd.", "ui.manufacture": "Gia công chế tạo", "ui.material_review.axes": "Các trục cục bộ của vật liệu; chưa gán hướng cho thân khối.", "ui.material_review.claims": "Nguồn gốc và giấy phép là thông tin chưa được kiểm chứng. Các giá trị thiếu vẫn ở dạng chưa biết.", @@ -1333,10 +1581,8 @@ "ui.mesh_format_3mf": "3MF", "ui.mesh_format_3mf_tagged": "3MF kèm thẻ bề mặt", "ui.mesh_format_stl": "STL", - "ui.midpoint": "Trung điểm", "ui.mirror": "Lấy đối xứng", "ui.mirror_line": "Đường đối xứng", - "ui.modify": "Hiệu chỉnh", "ui.move": "Di chuyển", "ui.multiple": "Nhiều đối tượng", "ui.named_views": "Các góc nhìn đã đặt tên", @@ -1345,6 +1591,7 @@ "ui.newSketchGroup": "Nhóm phác thảo mới", "ui.new_body": "Tạo mới Thân khối", "ui.new_design": "Thiết kế mới", + "ui.no_geometry_yet": "Chưa có hình học", "ui.no_slicer_found": "Không tìm thấy phần mềm cắt lớp (slicer)", "ui.normal": "Pháp tuyến", "ui.normalConstruction": "Nét thường / Đường dựng hình", @@ -1356,7 +1603,6 @@ "ui.offset_plane": "Mặt phẳng song song cách khoảng (Offset Plane)", "ui.one_side": "Một phía", "ui.open": "Mở tệp", - "ui.open_ellipsis": "Mở tệp...", "ui.open_ends_tip": "Không chạm vào đối tượng nào", "ui.open_preferences": "Mở tệp Tùy chọn cài đặt", "ui.open_recent": "Mở tệp gần đây", @@ -1366,12 +1612,14 @@ "ui.orbit_around": "Xoay quanh", "ui.orientation": "Định hướng", "ui.origin": "Gốc tọa độ", - "ui.palette_points": "Điểm", - "ui.palette_profile": "Biên dạng", + "ui.palette_construction_mode": "Chế độ đường dựng (X)", + "ui.palette_more": "Thêm", + "ui.palette_sketch_options": "Tùy chọn phác thảo", "ui.pan": "Dời góc nhìn (Pan)", "ui.pan_zoom_orbit": "Dời góc nhìn, thu phóng, xoay quanh tâm", "ui.parallel": "Song song", "ui.parameters": "Bảng tham số", + "ui.part_size_shared": "Dựng lại chi tiết, thay thế mọi tính năng đã thêm. Tất cả các lần xuất hiện của chi tiết này đều được cập nhật.", "ui.paste": "Dán", "ui.path": "Đường dẫn", "ui.pattern_on_path": "Mảng dọc theo đường dẫn", @@ -1383,6 +1631,12 @@ "ui.placement": "Vị trí đặt", "ui.plane": "Mặt phẳng", "ui.plane_at_angle": "Mặt phẳng theo góc", + "ui.plugins": "Plugin", + "ui.plugins_desktop": "Plugin có sẵn trong ứng dụng máy tính.", + "ui.plugins_empty": "Chưa cài plugin nào.", + "ui.plugins_note": "Mỗi plugin là một thư mục bên trong {path} có tệp plugin.json. SolidCraft đọc tệp đó và không chạy bất kỳ mã nào từ thư mục. Tắt một plugin vẫn giữ nó được cài đặt.", + "ui.plugins_skipped": "Không thể đọc {count} thư mục.", + "ui.plugins_version": "{version}", "ui.point": "Điểm", "ui.point_under_the_cursor": "Điểm dưới con trỏ", "ui.points": "Các điểm", @@ -1401,13 +1655,17 @@ "ui.quit": "Thoát ứng dụng", "ui.radial_context_menu": "Menu ngữ cảnh dạng vòng (Radial)", "ui.radius": "Bán kính", - "ui.radius_type": "Loại bán kính", "ui.rail": "Đường ray dẫn hướng", "ui.rail_fit": "Độ khớp đường dẫn (Rail Fit)", "ui.reachable": "Có thể tiếp cận", "ui.rectangle": "Hình chữ nhật", "ui.rectangular_pattern": "Mảng hình chữ nhật", "ui.redo": "Làm lại", + "ui.relink_design_changed": "Cụm lắp ráp đã thay đổi trong lúc chọn nguồn. Hãy bắt đầu lại Liên kết lại nguồn.", + "ui.relink_done": "Đã liên kết lại nguồn cho tất cả các thể hiện.", + "ui.relink_not_linked": "Chi tiết này chưa được liên kết với thiết kế nguồn nào.", + "ui.relink_select_one": "Hãy chọn trước một chi tiết được liên kết hoặc một thể hiện của nó.", + "ui.relink_source_all": "Liên kết lại nguồn (tất cả thể hiện)…", "ui.removeFromToolbar": "Xóa khỏi thanh công cụ", "ui.removeSection": "Xóa mặt cắt", "ui.render": "Kết xuất hình ảnh", @@ -1423,10 +1681,12 @@ "ui.reverse_horizontal_pan_tip": "Cuộn hai ngón tay theo phương ngang và con lăn phụ sẽ di chuyển góc nhìn theo chiều ngược lại", "ui.reverse_zoom_direction": "Đảo chiều thu phóng", "ui.revolve": "Xoay tròn tạo khối", + "ui.ribbon_exit": "Thoát", + "ui.ribbon_pin_footer": "Các lệnh đã ghim hiển thị trên ruy-băng. Rê chuột lên một hàng để ghim hoặc bỏ ghim.", + "ui.ribbon_workspace": "Không gian làm việc", "ui.right": "Phải (Hình chiếu cạnh)", "ui.save": "Lưu", "ui.save_as": "Lưu thành tệp mới", - "ui.save_as_ellipsis": "Lưu thành...", "ui.save_mesh_no_slicer": "Không tìm thấy phần mềm cắt lớp (slicer): hãy chọn Tùy chỉnh… và chỉ định chương trình cắt lớp, hoặc tắt tùy chọn Gửi đến slicer", "ui.save_mesh_pick_bodies": "Chọn các thân khối cần lưu", "ui.save_mesh_temp_failed": "Không thể tạo thư mục {folder}: {error}", @@ -1439,8 +1699,10 @@ "ui.select": "Chọn", "ui.selectOther": "Chọn đối tượng khác…", "ui.selectTangentChain": "Chọn chuỗi tiếp tuyến", - "ui.select_other_hint": "Chọn đối tượng khác: giữ nút chuột trái đứng yên trên mô hình (hoặc nhấp chuột phải › Chọn đối tượng khác…) để liệt kê mọi đối tượng dưới con trỏ; nhấp lại vào cùng vị trí đó để chọn đối tượng kế tiếp.", "ui.selection": "Vùng chọn", + "ui.selection_modifiers": "Phím bổ trợ chọn", + "ui.selection_shift_add_only": "Shift+nhấp chỉ thêm, không bỏ chọn", + "ui.selection_shift_add_only_tip": "Bật: Shift thêm mục, Ctrl/Cmd bật/tắt. Tắt (mặc định): cả Shift và Ctrl/Cmd đều bật/tắt.", "ui.send": "Gửi", "ui.send_to_slicer": "Gửi sang phần mềm cắt lát (Slicer)", "ui.sent_to_slicer": "Đã gửi sang {slicer}", @@ -1456,7 +1718,6 @@ "ui.show_constraints": "Các ràng buộc", "ui.show_construction_geometries": "Đối tượng dựng hình (nét đứt)", "ui.show_dimensions": "Các kích thước", - "ui.show_points": "Hiển thị điểm", "ui.show_profile": "Hiển thị biên dạng", "ui.show_projected_geometries": "Hình học đã chiếu", "ui.simple": "Đơn giản", @@ -1465,8 +1726,8 @@ "ui.sketch": "Phác thảo", "ui.sketch_dimension": "Phác thảo Kích thước", "ui.sketch_grid": "Lưới phác thảo", + "ui.sketch_modifiers": "Phím bổ trợ phác thảo", "ui.sketch_scale": "Tỷ lệ phác thảo", - "ui.sketch_status": "Trạng thái phác thảo", "ui.sketches": "Các phác thảo", "ui.slice": "Cắt lát", "ui.slicer": "Phần mềm cắt lát (Slicer)", @@ -1476,8 +1737,34 @@ "ui.smooth_wheel_zoom": "Thu phóng mượt bằng con lăn", "ui.smooth_wheel_zoom_tip": "Tắt tùy chọn này để áp dụng từng sự kiện con lăn ngay lập tức mà không có hiệu ứng làm mượt chuyển động", "ui.snap": "Bắt điểm", + "ui.space_mouse_calibrate": "Hiệu chuẩn…", + "ui.space_mouse_calibrate_tip": "Di chuyển núm điều khiển theo yêu cầu của cửa sổ để SolidCraft biết mỗi trục của chuột 3D này đi theo hướng nào và xa bao nhiêu. Được lưu cho chuột 3D này.", + "ui.space_mouse_calibrate_title": "Hiệu chuẩn chuột 3D", + "ui.space_mouse_calibrated": "Đã hiệu chuẩn", + "ui.space_mouse_calibration": "Hiệu chuẩn chuột 3D", + "ui.space_mouse_calibration_done": "Xong. Hãy lưu để dùng mỗi khi chuột 3D này được kết nối.", + "ui.space_mouse_calibration_no_response": "Một trục hầu như không di chuyển nên không thể hiệu chuẩn. Hãy bắt đầu lại và di chuyển núm điều khiển xa hơn mỗi lần.", + "ui.space_mouse_dead_zone": "Vùng chết", + "ui.space_mouse_dead_zone_tip": "Núm điều khiển phải di chuyển bao xa thì góc nhìn mới di chuyển, tính theo tỷ lệ hành trình tối đa. Hãy tăng giá trị này nếu góc nhìn bị trôi khi núm đang đứng yên.", + "ui.space_mouse_forget": "Xóa hiệu chuẩn", "ui.space_mouse_hint": "Di chuyển và xoay khung nhìn đồng thời; môi trường phác thảo chỉ sử dụng dời góc nhìn và thu phóng.", "ui.space_mouse_navigate": "Điều hướng bằng SpaceNavigator / SpaceMouse", + "ui.space_mouse_none": "Không tìm thấy chuột 3D", + "ui.space_mouse_not_calibrated": "Chưa hiệu chuẩn", + "ui.space_mouse_reading": "Giá trị đọc", + "ui.space_mouse_step_lift": "Nâng núm điều khiển lên, giữ nguyên, rồi thả ra.", + "ui.space_mouse_step_press": "Nhấn núm điều khiển xuống, giữ nguyên, rồi thả ra.", + "ui.space_mouse_step_pull": "Kéo núm điều khiển về phía bạn, giữ nguyên, rồi thả ra.", + "ui.space_mouse_step_push": "Đẩy núm điều khiển ra xa bạn, giữ nguyên, rồi thả ra.", + "ui.space_mouse_step_rest": "Bỏ tay khỏi núm điều khiển và để yên.", + "ui.space_mouse_step_slide_left": "Trượt núm điều khiển sang trái, giữ nguyên, rồi thả ra.", + "ui.space_mouse_step_slide_right": "Trượt núm điều khiển sang phải, giữ nguyên, rồi thả ra.", + "ui.space_mouse_step_tilt_back": "Nghiêng núm điều khiển về sau (cạnh trước nâng lên), giữ nguyên, rồi thả ra.", + "ui.space_mouse_step_tilt_forward": "Nghiêng núm điều khiển về trước (cạnh trước hạ xuống), giữ nguyên, rồi thả ra.", + "ui.space_mouse_step_tilt_left": "Nghiêng núm điều khiển sang trái (cạnh trái hạ xuống), giữ nguyên, rồi thả ra.", + "ui.space_mouse_step_tilt_right": "Nghiêng núm điều khiển sang phải (cạnh phải hạ xuống), giữ nguyên, rồi thả ra.", + "ui.space_mouse_step_twist_clockwise": "Xoay núm điều khiển theo chiều kim đồng hồ, giữ nguyên, rồi thả ra.", + "ui.space_mouse_step_twist_counterclockwise": "Xoay núm điều khiển ngược chiều kim đồng hồ, giữ nguyên, rồi thả ra.", "ui.spacing": "Khoảng cách", "ui.spacing_2": "Khoảng cách 2", "ui.sphere": "Hình cầu", @@ -1485,12 +1772,15 @@ "ui.split_body": "Chia tách khối", "ui.stand_up_tip": "Sau khi mở tệp STEP hoặc IGES với trục Z hướng lên, đề xuất xoay 90° quanh trục X", "ui.start": "Bắt đầu", - "ui.start_radius": "Bán kính bắt đầu", + "ui.start_over": "Bắt đầu lại", + "ui.start_page": "Trang bắt đầu", "ui.stretch": "Kéo giãn", "ui.supersampling": "Khử răng cưa SSAA", "ui.supersampling_adaptive": "Chỉ khi góc nhìn đứng yên", "ui.supersampling_off": "Tắt (1×)", "ui.suppress": "Tạm nén", + "ui.suppress_auto_snap": "Tắt tự động bắt điểm khi vẽ / kéo", + "ui.suppress_auto_snap_note": "Mặc định: Ctrl/Cmd hoặc Alt/Option đều tắt bắt điểm phác thảo. Hãy chọn một phím duy nhất để thu hẹp.", "ui.sweep": "Quét theo đường dẫn", "ui.sweep_follow_direction": "Theo hướng dẫn", "ui.sweep_keep_as_drawn": "Giữ nguyên như đã vẽ", @@ -1533,13 +1823,24 @@ "ui.untitled": "Chưa đặt tên", "ui.up_axis_note": "Trục nào hướng lên trên trong các góc nhìn (góc nhìn theo trục, Chuẩn, Nhìn thẳng). Các mô hình thiết kế không bị thay đổi.", "ui.updateToCurrentView": "Cập nhật theo góc nhìn hiện tại", - "ui.variable": "Biến thiên", "ui.view_centre": "Tâm góc nhìn", "ui.visual_shaded_hidden_edges": "Tô bóng kèm nét khuất", "ui.visual_shaded_with_edges": "Tô bóng kèm hiển thị cạnh", "ui.visual_style": "Kiểu hiển thị trực quan", "ui.visual_wireframe": "Khung dây (Wireframe)", "ui.workspace": "không gian làm việc", + "ui.workspace_animation_description": "Chế độ xem phân rã, nghiên cứu chuyển động và kịch bản hoạt cảnh", + "ui.workspace_available": "Có sẵn", + "ui.workspace_current": "Hiện tại", + "ui.workspace_design_description": "Phác thảo, dựng mô hình, lắp ráp và kiểm tra", + "ui.workspace_design_tabs": "Mô hình · Bề mặt · Lắp ráp · Chèn · Kiểm tra · Quản lý · Xem", + "ui.workspace_drawing_description": "Bản vẽ 2D với các hình chiếu, kích thước và khung tên", + "ui.workspace_footer": "Mọi không gian làm việc đều dùng chung một thiết kế, lịch sử và vùng chọn; chỉ các thẻ ruy-băng thay đổi. Bộ chuyển đổi bị khóa khi đang chỉnh sửa phác thảo hoặc tính năng.", + "ui.workspace_manufacture_description": "Cắt lớp, đường chạy dao và thiết lập", + "ui.workspace_planned": "Dự kiến", + "ui.workspace_render_description": "Xem trước sản phẩm, cài đặt cảnh và hình ảnh kết xuất", + "ui.workspace_render_tabs": "Cảnh · Hình ảnh", + "ui.workspace_simulation_description": "Tải trọng, ràng buộc và kết quả", "ui.x_distance": "X Khoảng cách", "ui.y_distance": "Y Khoảng cách", "ui.y_up": "Trục Y hướng lên", @@ -1549,7 +1850,6 @@ "ui.zoom_to_the_cursor": "Thu phóng theo con trỏ chuột", "update.available": "Đã có phiên bản SolidCraft {version}", "update.button": "Cập nhật", - "update.button_tip": "Đã có phiên bản SolidCraft {version}", "update.button_version": "Cập nhật lên {version}", "update.check_automatically": "Tự động kiểm tra bản cập nhật", "update.check_now": "Kiểm tra ngay", @@ -1581,5 +1881,6 @@ "update.title": "Đã có bản cập nhật", "update.up_to_date": "SolidCraft đã được cập nhật bản mới nhất.", "update.update_now": "Cập nhật ngay", - "update.you_have": "Bạn đang dùng phiên bản {version}." + "update.you_have": "Bạn đang dùng phiên bản {version}.", + "↑ ↓ choose · Enter / Tab complete · Esc dismiss": "↑ ↓ chọn · Enter / Tab hoàn tất · Esc bỏ qua" } diff --git a/assets/locales/zh.json b/assets/locales/zh.json index d7b941bac..7a266d3b3 100644 --- a/assets/locales/zh.json +++ b/assets/locales/zh.json @@ -3,11 +3,14 @@ "1. Open GitHub draft below, then paste the report copied to your clipboard.": "1. 点击下方按钮打开 GitHub 草稿,然后粘贴已复制到剪贴板的报告。", "1. Open GitHub draft below. Your title and report will be filled in.": "1. 点击下方按钮打开 GitHub 草稿。标题和报告将自动填入。", "2. Attach your screenshot: copy and paste it, or save and upload the PNG.": "2. 附上截图:复制并粘贴,或保存为 PNG 后上传。", + "2D": "2D", "3. Click Submit new issue on GitHub to send your report.": "3. 在 GitHub 上点击 Submit new issue 发送报告。", "A new configuration, a copy of the active one": "新建配置,为当前配置的副本", - "AI": "AI", + "ARRANGE": "排列", "About SolidCraft": "关于 SolidCraft", "Acceleration": "加速度", + "Access": "可达性", + "Actions": "操作", "Active": "活动", "Active rule": "活动规则", "Add": "添加", @@ -15,6 +18,7 @@ "Add Mid Radius": "添加中间半径", "Add Row": "添加行", "Add condition": "添加条件", + "Add or edit rule": "添加或编辑规则", "Against": "对照", "Alignment": "对齐", "All Sketch Points": "所有草图点", @@ -28,8 +32,11 @@ "Applied Radius": "应用半径", "Apply To": "应用于", "Apply to selection": "应用到选择", + "Apply your appearance first. Exports assigned appearances and materials created in this design.": "请先应用外观。导出已指定的外观和在此设计中创建的材质。", "Arc length": "弧长", "Area": "面积", + "As-Built": "现有位置", + "Assign Rule": "分配规则", "Attachment": "附着", "BLEND SURFACE": "混合曲面", "BOUNDARY SURFACE": "边界曲面", @@ -37,12 +44,21 @@ "Bend Line Position": "弯折线位置", "Bend Position": "折弯位置", "Bend Radius": "折弯半径", + "Bend Table": "折弯表", "Bends": "折弯", + "Bodies": "实体", "Body": "实体", "Boundary": "边界", "Bounding box": "边界框", + "CHECK": "检查", + "COMPONENTS": "组件", + "CONFIGURATIONS": "配置", + "CONSTRAIN": "约束", + "CONTACT": "接触", + "CONVERT": "转换", "CSV or JSON: updates existing parameters, adds new ones": "CSV 或 JSON:更新现有参数、添加新参数", "Capture All Positions": "捕获所有位置", + "Capture Pos.": "捕获位置", "Catch Direction": "卡扣方向", "Cells": "区域", "Center X": "中心 X", @@ -53,15 +69,19 @@ "Check collisions": "检查碰撞", "Checked": "已检查", "Choose a new plane. Sketch geometry and dimensions stay unchanged in its two-dimensional coordinates.": "选择一个新平面。草图几何和尺寸在其二维坐标中保持不变。", + "Choose…": "选择…", + "Circular": "圆周", "Circumference": "周长", "Close draft": "关闭草稿", "Collisions": "碰撞", "Colour": "颜色", + "Comment": "注释", "Component1": "组件1", + "Config Table": "配置表", "Configuration": "配置", "Configuration rules": "配置规则", - "Construction": "构造", "Contact": "接触", + "Contact Sets": "接触集", "Contact sets": "接触集", "Continuity": "连续性", "Copy Error Message": "复制错误消息", @@ -79,15 +99,17 @@ "Cube": "立方体", "Current orthographic view (1:1 mm)": "当前正交视图(1:1毫米)", "Current perspective view": "当前透视视图", + "Curv. Comb": "曲率梳", "Curvature (G2)": "曲率 (G2)", "Curvature change (G3)": "曲率变化 (G3)", "Customize Toolbar": "自定义工具栏", + "Delete": "删除", "Delete all": "全部删除", "Delete rule": "删除规则", "Delete the row": "删除此行", "Delete the set": "删除此集合", - "Delete this parameter": "删除此参数", "Density": "密度", + "Dependents": "依赖项", "Designs you open or save appear here.": "你打开或保存的设计会显示在此处。", "Determined by To Object. Choose Angle to edit the angular extent.": "由“到对象”确定。选择“角度”可编辑角度范围。", "Direction": "方向", @@ -99,6 +121,7 @@ "Drive Joint": "驱动接头", "Duration": "时长", "Edges": "边", + "Edit": "编辑", "Edit Profile Sketch": "编辑轮廓草图", "Enable rule": "启用规则", "Enabled": "已启用", @@ -107,43 +130,63 @@ "Explode": "爆炸", "Explode Text": "分解文字", "Export Animation…": "导出动画…", + "Export CSV…": "导出 CSV…", "Export Current View as DXF": "将当前视图导出为DXF", "Export Current View as DXF…": "将当前视图导出为DXF…", + "Export DXF": "导出DXF", "Export DXF…": "导出DXF…", + "Export JSON…": "导出 JSON…", "Export hidden edges as dashed lines": "以虚线导出隐藏线", + "Expression": "表达式", "Extend to meet": "延伸至相交", "Extents": "范围", + "FILES": "文件", + "FLAT": "展开", "Face": "面", "Face attachment lost": "面附着丢失", "Faces": "面", "Faces / edges / vertices": "面 / 边 / 顶点", + "Fastener": "紧固件", + "Favorites": "收藏", "Favourite": "收藏", + "Feature": "特征", "Files from many CAD programs have Y up, so they open lying on their back here (Z up).": "许多 CAD 程序的文件以 Y 为上轴,因此在此处打开时会平躺(Z 朝上)。", "Filter": "筛选", "Find in Browser": "在浏览器中查找", - "Flat": "平面", + "Finish": "完成", + "Flat Pattern": "展开图", "Flat size": "平板尺寸", "Follow camera (Look At sketches)": "跟随相机(注视草图)", "Follow the camera (Look At sketches)": "跟随相机(注视草图)", "Font": "字体", + "From Bodies": "从实体创建", "From edges": "起始边", "Full Length": "全长", + "Gap": "间隙", "Grid": "网格", + "HISTORY": "历史", "Height": "高度", "Hidden edges": "隐藏线", "Holes": "孔", "Holes (edges on them)": "孔(孔上的边)", "Home view": "主视图", + "Horiz./Vert.": "水平 / 垂直", + "IMAGES": "图像", + "Import…": "导入…", "In This Design": "在此设计中", "In place (surfaces)": "原位(曲面)", "In plane": "在平面内", "Inside": "内侧", "Interferes": "发生干涉", + "Isocurve": "等参线", "Issue title": "Issue 标题", + "JOINTS": "关节", "Joint Origin1": "接头原点1", "Keep (points on it)": "保留(其上的点)", "Keep Tools": "保留工具", "Keep of the other surface": "另一曲面保留的部分", + "LIBRARY": "库", + "LINKS": "链接", "Later": "稍后", "Leave it": "保持原样", "Legacy face attachment. Rebinding to a certified face creates an exact attachment.": "旧版面附着。重新绑定到经验证的面可创建精确附着。", @@ -151,47 +194,70 @@ "Length units": "长度单位", "Letter Spacing": "字间距", "Library": "零件库", + "Library file": "库文件", "Line Spacing": "行间距", + "Local library": "本地库", "Loop": "循环", + "MANAGE": "管理", + "MATERIALS": "材料", + "MODEL": "模型", + "MOTION": "运动", "Margin": "余量", "Mass": "质量", + "Mass Center": "质心", + "Matched restrictions check the final values.": "满足条件的限制规则检查最终值。", "Material": "材质", "Max": "最大", "Mid Radius": "中间半径", "Middle double-click": "中键双击", "Min": "最小", "Mitre": "斜接", + "Model Parameters": "模型参数", "Modeled": "已建模", "More toolbar panels": "更多工具栏面板", "Motion": "运动", + "Move / Copy": "移动 / 复制", "Move Type": "移动类型", + "Move down": "下移", "Move earlier": "向前移动", "Move later": "向后移动", + "Move up": "上移", "Name": "名称", "Nearest": "最近", + "New": "新建", + "New Comp.": "新建组件", + "New Sketch": "新建草图", + "New rule…": "新建规则…", "New study": "新建研究", "No crash reports.": "没有崩溃报告。", + "No matching appearance presets.": "没有匹配的外观预设。", "No matching appearances": "没有匹配的外观", "No visible bodies to export.": "没有可导出的可见实体。", "None": "无", - "Normal to sketch": "垂直于草图", "Not available yet": "暂不可用", "Notch": "缺口", + "OUTPUT": "输出", "Opacity": "不透明度", "Open GitHub draft": "打开 GitHub 草稿", + "Open local libraries in the desktop app. You can export this design's library here.": "请在桌面应用中打开本地库。您可以在此导出当前设计的库。", "Open-source parametric 3D CAD in Rust. Licensed MIT OR Apache-2.0.": "使用 Rust 编写的开源参数化 3D CAD。基于 MIT OR Apache-2.0 许可。", + "Operator": "运算符", "Other side": "另一侧", "Other surface (mutual trim)": "另一曲面(相互修剪)", "Outside": "外侧", "Overall length": "总长", - "Parameter values": "参数值", + "Param. Graph": "参数图", + "Parameter": "参数", + "Parts": "零件", "Pass through": "通过点", "Path": "路径", + "Pattern": "阵列", "Per Edge": "每条边", "Pick the tool bodies": "选择工具实体", "Picked": "所选", "Picked point": "选取的点", "Place at the origin instead": "改为放置在原点", + "Plastic Rules": "塑料规则", "Playback": "播放", "Plot": "图表", "Position": "位置", @@ -202,10 +268,11 @@ "Preview Row": "预览行", "Preview leaves the current design unchanged.": "预览不会更改当前设计。", "Profiles/Curves": "轮廓/曲线", - "Projection": "投影", "Quantity": "物理量", "RECENT": "最近使用", + "REFERENCE": "参考", "RULED SURFACE": "直纹曲面", + "RULES": "规则", "Radius Fit": "半径拟合", "Ratio": "比率", "Reattach selected face": "重新附着所选面", @@ -223,6 +290,8 @@ "Remove this point": "移除此点", "Report a bug — review a screenshot and open a GitHub draft": "报告缺陷 — 复核截图并开启 GitHub 草稿", "Reset Toolbar": "重置工具栏", + "Resize Part": "调整零件大小", + "Restore View": "恢复视图", "Restore outer boundary": "恢复外边界", "Restore the inherited component or physical material appearance": "还原继承的组件或物理材质外观", "Result": "结果", @@ -231,18 +300,27 @@ "Reverse Direction": "反向", "Revert": "还原", "Revert All Positions": "还原所有位置", + "Revert Pos.": "还原位置", "Revert Position": "恢复位置", "Review the report and screenshot before opening GitHub.": "打开 GitHub 前请审阅报告和截图。", "Rim Edge": "轮缘边", "Roll History Marker Here": "将历史标记滚动到此处", "Round": "圆角", "Rule": "规则", + "Rule name": "规则名称", + "Rules run from top to bottom. Matched drives change effective values.": "规则从上到下依次运行。满足条件的驱动规则更改有效值。", + "SECTION": "剖面", + "SURFACE QUALITY": "曲面质量", "Save Rule": "保存规则", + "Save View": "保存视图", "Save the study as an animated GIF, seen as the viewport shows it": "按视口中的显示将研究保存为动画 GIF", "Saved preview. Geometry is being checked before editing.": "已保存预览。编辑前正在检查几何。", "Scale factor": "比例因子", + "Scene": "场景", "Search": "搜索", "Search commands": "搜索命令", + "Search this library": "搜索此库", + "Section": "剖面", "Select Other: hold the left button still on the model (or right-click › Select Other…) to list everything under the cursor; click again on the same spot to select the next thing there. Double-click the middle button to go Home (Preferences › Navigation).": "“选择其他”:在模型上按住左键(或右键单击 › 选择其他…)列出光标下的所有对象;在同一位置再次单击可选择该处的下一个对象。双击中键转到主视图(首选项 › 导航)。", "Select bodies (a face picks its body)": "选择实体(单击面即选择其所属实体)", "Select bodies or faces instead": "改为选择实体或面", @@ -250,6 +328,7 @@ "Semantic faces share their appearance across instances.": "语义面在各实例间共享外观。", "Send your report on GitHub": "在 GitHub 上发送报告", "Shape": "形状", + "Sheet Rules": "钣金规则", "Show Agent Cursor": "显示代理光标", "Show in folder": "在文件夹中显示", "Show the pointer an AI agent moves (#35)": "显示 AI 代理移动的指针(#35)", @@ -263,6 +342,7 @@ "Sketch points": "草图点", "Slot width": "槽宽", "SolidCraft closed before these designs were saved. Their last autosave can be opened.": "SolidCraft 在这些设计保存前已关闭。可以打开它们的上次自动保存。", + "Specialise": "专用操作", "Speed": "速度", "Stand it up": "将其立起", "Stand it up: a quarter turn about X, as one Move feature you can undo.": "将其立起:绕 X 轴旋转四分之一周,作为一个可撤销的移动特征。", @@ -301,17 +381,19 @@ "Turn off section analysis before exporting the view.": "请关闭截面分析后再导出视图。", "Type": "类型", "UNTRIM": "取消修剪", + "Unit": "单位", "Updating the preview": "正在更新预览", "Use active author placement": "使用活动作者放置", "Use fixed plane": "使用固定平面", "Use saved fixed plane": "使用已保存的固定平面", "Use selected face as fixed plane": "使用所选面作为固定平面", + "User Parameters": "用户参数", "VIEW": "视图", + "VIEWS": "视图", "Value": "值", "Velocity": "速度", "Vertices": "顶点", "View navigator": "视图导航器", - "Visible bodies only. Curves use line segments (0.01 mm tolerance).": "仅导出可见实体。曲线以线段近似(公差0.01毫米)。", "Volume": "体积", "Wall": "壁厚", "Wall Location": "壁位置", @@ -319,6 +401,13 @@ "When": "条件", "Width": "宽度", "Will fail": "将失败", + "X angle": "X 角度", + "X distance": "X 距离", + "Y angle": "Y 角度", + "Y distance": "Y 距离", + "Z angle": "Z 角度", + "Z distance": "Z 距离", + "Zebra": "斑马纹", "angle, height": "角度、高度", "appearance.dielectric_ior": "电介质折射率", "appearance.metallic": "金属度", @@ -327,7 +416,13 @@ "appearance.roughness": "粗糙度", "appearance.surface_response": "表面响应", "browser.body_name": "实体{number}", + "browser.calibrate_title": "校准:{name}", + "browser.capture_many": "{count} 个组件已移动,但尚未捕获其位置。", + "browser.capture_note": "“捕获位置”保留新位置;“恢复位置”还原原先的位置。", + "browser.capture_one": "一个组件已移动,但尚未捕获其位置。", "browser.component_name": "组件{number}", + "browser.edit_canvas_title": "编辑画布:{name}", + "browser.move_title": "移动:{name}", "browser.parameters": "参数 ({count})", "browser.precision": "精度: {precision}", "browser.sketch_name": "草图{number}", @@ -665,7 +760,15 @@ "cmd.view_navigate": "导航视图", "cmd.view_rename": "重命名命名视图", "cmd.view_save": "新建命名视图", - "command name": "命令名称", + "color.copy": "单击复制颜色值", + "color.edit": "单击编辑颜色", + "color.gamma": "以 0–255 伽马空间显示颜色值", + "color.hue": "色相", + "color.linear": "以 0–1 线性空间显示颜色值", + "color.saturation_value": "饱和度和明度", + "color.selected": "所选颜色", + "contact.components_count": "{count} 个组件", + "contact.enabled_label": "已启用", "coupling.gear_1": "齿轮 1", "coupling.gear_1_pick": "齿轮 1(可选)", "coupling.gear_2": "齿轮 2", @@ -682,6 +785,21 @@ "coupling.rack": "齿条", "coupling.radius_1": "半径 1", "coupling.radius_2": "半径 2", + "crash.announce": "SolidCraft 上次意外关闭或发生了内部错误。崩溃报告已保存(帮助 > 崩溃报告…)。", + "crash.copy_folder": "复制文件夹路径", + "crash.copy_path": "复制路径", + "crash.deleted": "已删除 {count} 份报告。", + "crash.detected_time": "检测时间:{time} UTC", + "crash.intro": "崩溃报告保存在此计算机上,不会发送到任何地方。“报告…”会打开草稿,供您在分享前检查。", + "crash.kind_command": "命令内部错误", + "crash.kind_internal": "内部错误", + "crash.kind_kernel": "内核错误(已恢复)", + "crash.kind_unclean": "意外关闭", + "crash.previous_session": "较早的 SolidCraft 会话意外结束或发生了内部错误。未正常结束的会话会在启动时被检测到。详情请参阅 帮助 > 崩溃报告…。", + "crash.replayable": "可重放", + "crash.report": "报告…", + "crash.unclean_explanation": "在后续启动时检测到;未记录确切的退出时间。系统关机或强制停止也可能导致会话未正常结束。", + "delete.and_more": "…以及另外 {count} 项", "dialog.bodies_count": "{count} 个实体", "dialog.clearance_invalid": "间隙必须是 0 或更大的长度", "dialog.compute": "计算", @@ -689,6 +807,8 @@ "dialog.computing": "正在计算… {seconds} 秒", "dialog.could_not_be_checked": "无法检查", "dialog.custom_axis": "↖ 自定义轴", + "dialog.dimension_insert_hint": "单击其他驱动尺寸以插入其名称", + "dialog.dimension_name": "尺寸:{name}", "dialog.edit_title": "编辑 {title}", "dialog.select": "↖ 选择", "dialog.selected_count": "↖ 已选择 {count} 个", @@ -712,9 +832,30 @@ "dxf.progress.write": "正在写入 DXF (5/5)", "dxf.tolerance": "曲线公差", "dxf.tolerance_help": "仅导出可见实体。曲线使用直线段近似。公差越小,曲线越精细,但需要更多时间和内存。", - "expression, e.g. 25 mm": "表达式,例如 25 mm", + "file_load.built": "已构建:{built}/{total} 个特征。", + "file_load.converting": "正在转换实体 {done}/{total}", + "file_load.inserting": "正在插入几何体", + "file_load.opening": "正在打开设计", + "file_load.preparing_thumbnail": "正在准备缩略图...", + "file_load.preparing_view": "正在准备视图...", + "file_load.preview_note": "这是已保存的预览。正在检查几何体,完成后即可编辑。", + "file_load.reading": "正在读取文件...", + "file_load.reading_percent": "正在读取文件... {percent}%", + "file_load.rebuilding": "正在重建特征 {done}/{total}", + "file_load.recovering": "正在恢复设计", + "file_load.stopping": "正在等待上一次操作停止...", + "file_load.waiting": "正在等待文件操作", "fits the face, e.g. M8": "适配该面,例如 M8", "from the rule": "来自规则", + "help.apache": "Apache 许可证 2.0", + "help.attributions": "署名信息 (ATTRIBUTION.md)", + "help.build": "版本 {version} · 提交 {commit} · 构建日期 {date}", + "help.font_details": "界面使用 egui 的内置字体(Ubuntu Light 和 Hack,采用 Ubuntu Font Licence 和 MIT/Bitstream Vera 许可证;Noto Emoji 和表情图标字体,采用 OFL 和 MIT 许可证)。草图文本使用 Liberation Sans(SIL OFL 1.1)。The Crafting Apps 的可选字体包 craft-fonts(BIZ UDPGothic、Shippori Mincho、BIZ UDMincho、Noto Sans CJK SC、Noto Sans Arabic;SIL OFL 1.1)未随 SolidCraft 构建版本捆绑提供。", + "help.fonts": "字体", + "help.licences": "许可证", + "help.mit": "MIT 许可证", + "help.notice": "NOTICE", + "help.third_party": "第三方许可证", "home.documentation": "文档", "home.in_this_browser": "在此浏览器中", "home.missing": "文件不存在", @@ -740,9 +881,30 @@ "install.menu": "安装应用…", "install.steps_intro": "Safari 通过自身的菜单安装网页应用:", "install.title": "安装 SolidCraft", + "issue.body_label": "报告正文", + "issue.note_image_copied": "请将图片粘贴到 GitHub 草稿中。如果无法复制图片,请保存 PNG。", + "issue.note_opened": "请检查 GitHub 草稿并附上截图。点击 GitHub 的 Submit new issue 按钮即可发布。", + "issue.note_opened_copied": "报告已复制。请粘贴到 GitHub 草稿中,附上截图,然后在 GitHub 上点击 Submit new issue。", + "issue.note_removed": "已从此草稿中移除截图。", + "issue.note_report_copied": "报告已复制。如有需要,请将其粘贴到 GitHub 草稿中。", + "issue.note_save_failed": "无法保存截图:{error}", + "issue.note_saved": "截图已保存。请在 GitHub 草稿中附上 PNG。", + "issue.save_screenshot": "保存截图…", "joint.from_bodies_hint": "每个所选实体移入各自的新组件,位置保持不变。", "joint.one_body": "两次选择都在 {body} 上。请在另一个零件上选择第二个。", "joint.one_component": "这些零件是同一组件的实体:{bodies}。接头使一个组件相对另一个组件运动,因此每个零件都需要自己的组件。", + "keymap.command_id": "命令 ID", + "keymap.empty": "没有匹配的命令", + "keymap.use_anyway": "仍在此处使用 {key}", + "manage.appearance_hint": "为所选对象选择外观,或将色样拖到实体或面上。", + "manage.assign_hint": "选择实体并指定其塑料设计规则。", + "manage.config_hint": "编辑配置行、列和规则,然后激活或预览某一行。", + "manage.empty": "没有匹配的行。", + "manage.material_hint": "选择实体并指定其物理材质。", + "manage.parameters_hint": "编辑表达式和单位。按 Enter 或离开字段时应用更改。", + "manage.rules_hint": "选择要编辑的规则,或创建新规则。确认以保存规则。", + "measure.at": "位置", + "measure.item": "项目 {number}", "messages.ago_h": "{n} 小时前", "messages.ago_min": "{n} 分钟前", "messages.ago_s": "{n} 秒前", @@ -754,8 +916,16 @@ "messages.title": "消息", "motion.checked_to": "仅检查到第 {step} 步:检查已用完其工作量上限", "motion.collision": "{a} · {b}:第 {steps} 步", + "motion.delete_key": "删除关键帧", "motion.duration_hint": "秒(留空:按步)", + "motion.key_here": "在此添加关键帧", + "motion.key_here_hint": "在此步骤添加关键帧,使用关节的当前值", "motion.no_collisions": "整个研究中没有碰撞", + "motion.step_back": "上一步", + "motion.step_forward": "下一步", + "motion.to_end": "到结尾", + "motion.to_start": "到开头", + "motion.track_name": "轨道 {number}", "nav.touchpad.help": "按住 Shift 并移动指针可平移;按住 Alt/Option 并移动可旋转。无需按鼠标按钮。垂直滚动可缩放。", "nav.touchpad.label": "触控板", "nav.touchpad.orbit": "旋转(按住 Alt/Option 并移动,无需鼠标按钮)", @@ -764,13 +934,13 @@ "nav.touchpad.zoom": "缩放(垂直滚动或双指捏合)", "needs two joints": "需要两个接头", "new configuration": "新配置", - "new name": "新名称", "new parameter": "新参数", "no hole": "无孔", "no interference": "无干涉", "no joint that moves yet": "尚无运动接头", "no picture": "无图片", "none": "无", + "parts.automatic_name": "自动", "pattern.alignment_2": "对齐 2", "pattern.alignment_hint": "数量包含原始图形。居中时副本分布在两侧;数量为偶数时,反转可切换多一个副本的一侧。", "pattern.direction_1": "方向 1", @@ -778,12 +948,19 @@ "pattern.flip_direction": "反转方向", "pick a hole to seat it, or OK places it at the origin": "选择一个孔放置,或单击确定放置在原点", "pick one or two vertices, edges or faces": "选择一个或两个顶点、边或面", + "prefs.cpu": "CPU(软件)", + "prefs.minutes_suffix": " min", + "properties.title": "属性:{name}", + "recovery.days_ago": "{count} 天前", + "recovery.detail": "{file} · {features} 个特征 · 自动保存于 {when}", + "recovery.hours_ago": "{count} 小时前", + "recovery.just_now": "刚刚", + "recovery.min_ago": "{count} 分钟前", + "recovery.never_saved": "从未保存", "render.background": "场景背景", "render.fit": "适配产品视图", - "render.image_cancel": "取消渲染", "render.image_cancelled": "渲染已取消", "render.image_cancelling": "正在取消", - "render.image_check": "检查渲染请求", "render.image_completed": "图像可导出", "render.image_encoding": "正在编码 PNG", "render.image_export": "导出 PNG", @@ -830,6 +1007,19 @@ "sample.plate.name": "示例板", "sample.vents.about": "按矩形阵列排列的槽:行数、列数和间距均为参数", "sample.vents.name": "通风板", + "search.command_keys": "Enter 运行 Shift+Enter 运行并保持打开 Esc 关闭", + "search.commands": "命令", + "search.design": "此设计中", + "search.feature": "特征", + "search.invalid": "无效", + "search.keys": "↑ ↓ 选择 Enter 运行 Tab 补全名称 Esc 关闭", + "search.no_match": "没有与“{query}”匹配的命令", + "search.parameter": "参数", + "search.recent": "最近使用", + "search.run": "运行命令", + "search.suggest": "您是否想找 {label}?", + "search.try": "输入命令名称、此设计中的特征或参数。要带值运行命令,请输入其ID和JSON对象:{example}", + "search.valid": "有效", "settings.display_quality_note": "级别越精细,曲面和边显示越平滑,但网格生成耗时更长。只影响视口,不影响设计或导出。", "settings.frame_rate_note": "在视图右下角显示每秒帧数。开启时视图会持续重绘。", "settings.measure_axis_distances": "显示 X/Y/Z 距离", @@ -840,17 +1030,30 @@ "settings.reset_intro": "这些设置在此计算机上无法正常工作,会导致 SolidCraft 无法启动,因此已更改:", "settings.reset_title": "设置已更改", "settings.supersampling_note": "以更高分辨率绘制视图再缩小:在低于 4K 的屏幕上边、线和网格更平滑。会消耗 GPU 时间:1.5× 时约 2.25 倍像素,2× 时 4 倍。", + "shortcut.json_error": "参数必须采用 JSON 格式:{error}", + "shortcut.no_command": "没有命令 `{id}`;JSON 前的文本必须是命令 ID", + "shortcut.pin": "固定到 S 框顶部", + "shortcut.unpin": "取消固定", "sketch.degrees_of_freedom": "{count} 个自由度", + "sketch.dof_left": "剩余 {count} 个自由度", + "sketch.dof_left_one": "剩余 {count} 个自由度", "sketch.draw_curves": "绘制为 {linetype}", "sketch.make_selection": "将选择转换为 {linetype}", "sketch.open_ends": "开放 {count}", "sketch.untied_ends": "未约束 {count}", + "sketch_panel.attached": "附着到 {body} / {path}", + "sketch_panel.author": "创建时的放置:{path}", + "sketch_panel.dimension_hint": "输入数值或表达式,然后按“确定”。", + "sketch_panel.move_hint": "输入距离和角度,然后按“确定”。", + "sketch_panel.redefine_title": "{command}:{name}", + "sketch_panel.sheet_attachment": "附着到钣金实体的平面上;钣金变化时会跟随该面板。", + "sketch_panel.text_hint": "编辑文字及其位置,然后按“确定”。", + "sketch_panel.use_plane": "使用 {plane} 平面", "sketch_text.align_center": "居中", "sketch_text.align_left": "左对齐", "sketch_text.align_right": "右对齐", "sketch_text.bold": "粗体", "sketch_text.builtin_font": "{family}(内置)", - "sketch_text.font_search": "搜索字体", "sketch_text.italic": "斜体", "sketch_text.loading_fonts": "正在查找已安装字体…", "sketch_text.on_path": "文字沿路径排列:由曲线放置", @@ -871,6 +1074,7 @@ "timeline.ungroup": "移除特征文件夹", "to the face": "到面", "to the next face": "到下一个面", + "toolbar.customize_note": "{tab} 选项卡。勾选命令可将其按钮添加到工具栏。您也可以将面板下拉菜单中的某一行拖到工具栏,将按钮拖出工具栏以移除,或使用下拉菜单行中的固定图标。", "toolbar.image": "图像", "toolbar.render": "渲染", "toolbar.render_scene": "场景", @@ -879,11 +1083,11 @@ "trace.stopped_by_loop": "在采样 {sample} 处结束:经过 {joint} 的环路无法再闭合", "ui.1_degree_of_freedom": "1 个自由度", "ui.3d_mouse_speed": "3D 鼠标速度", - "ui.3d_mouse_windows": "3D 鼠标", "ui.3d_sketch": "3D 草图", - "ui.about": "关于", "ui.activate": "激活", "ui.active_component": "活动组件", + "ui.add_configuration": "添加配置", + "ui.add_parameter": "添加参数", "ui.agent_chat": "智能体聊天", "ui.agent_chat_add": "附加文件", "ui.agent_chat_add_file": "选择文件…", @@ -925,6 +1129,7 @@ "ui.agent_chat_file_error": "{name}:{error}", "ui.agent_chat_file_heic": "{name}:这里无法读取 HEIC 图片;请先导出为 JPEG 或 PNG", "ui.agent_chat_file_importing": "正在导入设计…", + "ui.agent_chat_file_kinds": "{name}:可以附加图片(PNG、JPEG、GIF、WebP、BMP、TIFF)、文本文件(包括 SVG)和 CAD 文件(STEP、IGES、FreeCAD、Rhino、STL、3MF、OBJ、glTF)", "ui.agent_chat_file_loading": "正在读取文件…", "ui.agent_chat_file_not_a_file": "{name}:不是文件", "ui.agent_chat_file_not_a_picture": "{name}:不是图片", @@ -947,7 +1152,7 @@ "ui.agent_chat_model_tip": "智能体使用的模型。你的选择会为此智能体记住。", "ui.agent_chat_new": "新对话", "ui.agent_chat_new_confirm": "开始新对话?当前对话将被清除。", - "ui.agent_chat_new_yes": "新对话", + "ui.agent_chat_next_picture": "下一张图片", "ui.agent_chat_no_cli": "在应用旁边未找到 solidcraft-cli,因此智能体无法访问设计。", "ui.agent_chat_no_control": "智能体聊天的端点未能启动,因此智能体无法访问设计。", "ui.agent_chat_no_images": "该智能体不接收图片", @@ -963,6 +1168,7 @@ "ui.agent_chat_placeholder": "让智能体修改设计…", "ui.agent_chat_placeholder_busy": "输入消息,待智能体完成后发送(Ctrl+Enter:立即发送)", "ui.agent_chat_pop_out": "在独立窗口中打开(可移到另一个屏幕)", + "ui.agent_chat_previous_picture": "上一张图片", "ui.agent_chat_privacy": "除了你以自己的账户运行的智能体之外,不会向任何地方发送任何内容。", "ui.agent_chat_privacy_note": "SolidCraft 不向任何地方发送任何内容:你运行的智能体以你自己的账户与它自己的服务通信。SolidCraft 从不查看或保存任何密钥或密码。", "ui.agent_chat_queue": "加入队列", @@ -1018,6 +1224,7 @@ "ui.ai_bad_url": "请输入以 http:// 或 https:// 开头的 URL", "ui.ai_base_url": "基础 URL", "ui.ai_button": "AI", + "ui.ai_command_hint": "my-agent --acp", "ui.ai_copy_suffix": "副本", "ui.ai_custom_url": "自定义 URL", "ui.ai_default": "默认", @@ -1038,8 +1245,10 @@ "ui.ai_mode_edits_note": "建模命令无需询问即可运行;保存、打开、导出等文件操作或破坏性操作仍会询问。", "ui.ai_mode_global": "按上方设置", "ui.ai_model": "模型", + "ui.ai_model_hint": "qwen3:14b", "ui.ai_modes_scope": "这些设置适用于 SolidCraft 的工具。智能体自己的工具(它的 shell、文件编辑)遵循智能体自己的模式;如果智能体提供模式,可在聊天面板标题栏中选择。", "ui.ai_name": "名称", + "ui.ai_name_hint": "我的智能体", "ui.ai_need_command": "请输入启动智能体的命令", "ui.ai_need_model": "请输入模型名称", "ui.ai_no_answer": "智能体未及时响应", @@ -1070,6 +1279,7 @@ "ui.ai_toolbar_button": "在工具栏显示按钮", "ui.ai_toolbar_button_note": "工具栏右端的 AI 按钮。Ctrl+Shift+A 和视图菜单仍可打开面板。", "ui.ai_undo_tip": "将智能体为此消息所做的全部更改一步撤销", + "ui.ai_url_hint": "https://example.com/v1", "ui.all": "全部", "ui.ambient_occlusion": "环境光遮蔽", "ui.ambient_occlusion_help": "在不透明表面相接处添加柔和阴影。需要 GPU 视口。", @@ -1083,7 +1293,8 @@ "ui.anti_aliasing": "抗锯齿", "ui.apply": "应用", "ui.arc": "圆弧", - "ui.assemble": "装配", + "ui.assistant": "助手", + "ui.assistant_waiting": "{count} 个批准请求等待中", "ui.autosave_every": "自动保存间隔", "ui.axes": "轴", "ui.axis": "轴", @@ -1094,6 +1305,11 @@ "ui.bodies_all_if_none": "实体(未选择则全部)", "ui.box": "长方体", "ui.break": "打断", + "ui.browser_bodies_one": "{count} 个实体", + "ui.browser_bodies_other": "{count} 个实体", + "ui.browser_collapse": "折叠浏览器", + "ui.browser_expand": "展开浏览器", + "ui.browser_title": "浏览器", "ui.calibrate": "校准", "ui.cancel": "取消", "ui.canvases": "画布", @@ -1103,7 +1319,6 @@ "ui.chamfer": "倒角", "ui.chamfer_type": "倒角类型", "ui.change_workspace": "更改工作区", - "ui.chord_length": "弦长", "ui.circle": "圆", "ui.circular_pattern": "圆形阵列", "ui.clear": "清除", @@ -1136,11 +1351,9 @@ "ui.command_done": "{command} 完成", "ui.command_palette_hint": "输入命令,例如 {example} — 或按 S 搜索", "ui.concentric": "同心", - "ui.configurations": "配置", "ui.conic_curve": "圆锥曲线", "ui.constant": "恒定", "ui.constraints_conflict": "约束冲突", - "ui.construct": "构造", "ui.construction": "构造", "ui.context_menu": "上下文菜单", "ui.continuity_g0": "G0 折痕", @@ -1166,7 +1379,6 @@ "ui.cylinder": "圆柱体", "ui.dark": "深色", "ui.default_modelling_orientation": "默认建模方向", - "ui.degrees_of_freedom": "自由度", "ui.delete": "删除", "ui.depth": "深度", "ui.design": "设计", @@ -1208,7 +1420,6 @@ "ui.equivalent_radius": "等效半径", "ui.expand": "展开", "ui.exportDxf": "导出 DXF…", - "ui.export_ellipsis": "导出...", "ui.export_ellipsis_keymap": "导出…", "ui.export_keymap_tip": "将按键、S 框收藏和工具栏导出为文件", "ui.extend": "延伸", @@ -1232,6 +1443,7 @@ "ui.frame_rate": "帧率", "ui.front": "前视", "ui.fully_constrained": "完全约束", + "ui.function": "函数", "ui.general": "常规", "ui.graphics": "图形", "ui.graphics_custom": "自定义", @@ -1298,7 +1510,6 @@ "ui.heading_sheet_metal": "钣金", "ui.heading_shell": "抽壳", "ui.heading_sketch": "草图", - "ui.heading_sketch_palette": "草图面板", "ui.heading_sketch_scale": "草图缩放", "ui.heading_solid": "实体", "ui.heading_sphere": "球体", @@ -1317,6 +1528,7 @@ "ui.hideOrigin": "隐藏原点", "ui.hidePlanes": "隐藏平面", "ui.hideProfile": "隐藏轮廓", + "ui.history_title": "历史", "ui.hole": "孔", "ui.hole_tap_type": "孔攻丝类型", "ui.hole_type": "孔类型", @@ -1336,7 +1548,6 @@ "ui.length_decimals": "长度小数位", "ui.light": "浅色", "ui.line": "直线", - "ui.linetype": "线型", "ui.lock": "锁定", "ui.loft": "放样", "ui.look_at": "朝向", @@ -1370,10 +1581,8 @@ "ui.mesh_format_3mf": "3MF", "ui.mesh_format_3mf_tagged": "带面标签的 3MF", "ui.mesh_format_stl": "STL", - "ui.midpoint": "中点", "ui.mirror": "镜像", "ui.mirror_line": "镜像线", - "ui.modify": "修改", "ui.move": "移动", "ui.multiple": "多个", "ui.named_views": "命名视图", @@ -1394,7 +1603,6 @@ "ui.offset_plane": "偏移平面", "ui.one_side": "单侧", "ui.open": "打开", - "ui.open_ellipsis": "打开...", "ui.open_ends_tip": "未接触任何曲线", "ui.open_preferences": "打开首选项", "ui.open_recent": "打开最近", @@ -1404,8 +1612,9 @@ "ui.orbit_around": "环绕", "ui.orientation": "定向", "ui.origin": "原点", - "ui.palette_points": "点", - "ui.palette_profile": "轮廓", + "ui.palette_construction_mode": "构造模式 (X)", + "ui.palette_more": "更多", + "ui.palette_sketch_options": "草图选项", "ui.pan": "平移", "ui.pan_zoom_orbit": "平移、缩放、环绕", "ui.parallel": "平行", @@ -1446,7 +1655,6 @@ "ui.quit": "退出", "ui.radial_context_menu": "环形上下文菜单", "ui.radius": "半径", - "ui.radius_type": "半径类型", "ui.rail": "导轨", "ui.rail_fit": "导轨适配方式", "ui.reachable": "可到达", @@ -1473,10 +1681,12 @@ "ui.reverse_horizontal_pan_tip": "水平双指滚动和拇指滚轮向相反方向平移", "ui.reverse_zoom_direction": "反转缩放方向", "ui.revolve": "旋转", + "ui.ribbon_exit": "退出", + "ui.ribbon_pin_footer": "固定的命令显示在功能区中。将指针悬停在行上可固定或取消固定。", + "ui.ribbon_workspace": "工作区", "ui.right": "右视", "ui.save": "保存", "ui.save_as": "另存为", - "ui.save_as_ellipsis": "另存为...", "ui.save_mesh_no_slicer": "未找到切片软件:请选择“自定义…”并指定切片软件程序,或关闭“发送到切片软件”", "ui.save_mesh_pick_bodies": "请选择要保存的实体", "ui.save_mesh_temp_failed": "无法创建 {folder}:{error}", @@ -1489,7 +1699,6 @@ "ui.select": "选择", "ui.selectOther": "选择其他…", "ui.selectTangentChain": "选择相切链", - "ui.select_other_hint": "“选择其他”:在模型上按住左键(或右键单击 › 选择其他…)列出光标下的所有对象;在同一位置再次单击可选择该处的下一个对象。", "ui.selection": "选择", "ui.selection_modifiers": "选择修饰键", "ui.selection_shift_add_only": "Shift+点击仅添加、不取消选择", @@ -1509,7 +1718,6 @@ "ui.show_constraints": "约束", "ui.show_construction_geometries": "构造几何图元", "ui.show_dimensions": "尺寸", - "ui.show_points": "显示点", "ui.show_profile": "显示轮廓", "ui.show_projected_geometries": "投影几何", "ui.simple": "简单", @@ -1520,7 +1728,6 @@ "ui.sketch_grid": "草图网格", "ui.sketch_modifiers": "草图修饰键", "ui.sketch_scale": "草图比例", - "ui.sketch_status": "草图状态", "ui.sketches": "草图", "ui.slice": "切片", "ui.slicer": "切片软件", @@ -1566,7 +1773,7 @@ "ui.stand_up_tip": "当 Z 朝上的 STEP 或 IGES 文件打开后,提示绕 X 轴旋转四分之一周", "ui.start": "开始", "ui.start_over": "重新开始", - "ui.start_radius": "起始半径", + "ui.start_page": "起始页", "ui.stretch": "伸展", "ui.supersampling": "超级采样 (SSAA)", "ui.supersampling_adaptive": "仅在视图静止时", @@ -1616,13 +1823,24 @@ "ui.untitled": "无标题", "ui.up_axis_note": "视图中朝上的轴(轴视图、主视图、注视)。设计本身不变。", "ui.updateToCurrentView": "更新为当前视图", - "ui.variable": "变量", "ui.view_centre": "视图中心", "ui.visual_shaded_hidden_edges": "带隐藏边的着色", "ui.visual_shaded_with_edges": "带边着色", "ui.visual_style": "视觉样式", "ui.visual_wireframe": "线框", "ui.workspace": "工作区", + "ui.workspace_animation_description": "爆炸视图、运动研究和故事板", + "ui.workspace_available": "可用", + "ui.workspace_current": "当前", + "ui.workspace_design_description": "草图、建模、装配和检查", + "ui.workspace_design_tabs": "模型 · 曲面 · 装配 · 插入 · 检查 · 管理 · 视图", + "ui.workspace_drawing_description": "包含视图、尺寸和标题栏的二维图纸", + "ui.workspace_footer": "所有工作区使用同一设计、历史记录和选择,仅功能区选项卡发生变化。编辑草图或特征时,切换器将被锁定。", + "ui.workspace_manufacture_description": "切片、刀具路径和设置", + "ui.workspace_planned": "计划中", + "ui.workspace_render_description": "产品预览、场景设置和渲染图像", + "ui.workspace_render_tabs": "场景 · 图像", + "ui.workspace_simulation_description": "载荷、约束和结果", "ui.x_distance": "X 距离", "ui.y_distance": "Y 距离", "ui.y_up": "Y 朝上", @@ -1632,7 +1850,6 @@ "ui.zoom_to_the_cursor": "缩放到光标", "update.available": "SolidCraft {version} 已发布", "update.button": "更新", - "update.button_tip": "SolidCraft {version} 已发布", "update.button_version": "更新到 {version}", "update.check_automatically": "自动检查更新", "update.check_now": "立即检查", @@ -1664,5 +1881,6 @@ "update.title": "有可用更新", "update.up_to_date": "SolidCraft 已是最新版本。", "update.update_now": "立即更新", - "update.you_have": "当前版本为 {version}。" + "update.you_have": "当前版本为 {version}。", + "↑ ↓ choose · Enter / Tab complete · Esc dismiss": "↑ ↓ 选择 · Enter / Tab 补全 · Esc 关闭" } diff --git a/assets/styles/ui/palettes.rs b/assets/styles/ui/palettes.rs index a03f75766..6cd46af07 100644 --- a/assets/styles/ui/palettes.rs +++ b/assets/styles/ui/palettes.rs @@ -8,7 +8,67 @@ const fn icon_primary(rgb: [u8; 3]) -> Color32 { impl Tokens { pub const fn light() -> Tokens { Tokens { + space_2: 2.0, + space_3: 3.0, + space_4: 4.0, + space_6: 6.0, + space_8: 8.0, + space_10: 10.0, + space_12: 12.0, + space_14: 14.0, + space_16: 16.0, + space_24: 24.0, + radius_sm: 4, + radius_md: 6, + radius_lg: 8, + radius_xl: 10, + font_badge: 9.5, + font_micro: 10.0, + font_panel: 10.5, + font_small: 11.0, + font_caption: 11.5, + font_body: 12.0, + font_label: 12.5, + font_button: 13.0, + font_heading: 14.0, + font_triad: 8.0, + font_compass: 13.5, + font_subtitle: 15.0, + font_intro: 16.0, + font_article_heading: 17.0, + font_title: 22.0, + font_display: 26.0, + control_height: 28.0, + form_ink: Color32::from_rgb(27, 36, 48), + form_dim: Color32::from_rgb(74, 88, 104), + form_primary: Color32::from_rgb(35, 110, 173), + form_error: Color32::from_rgb(161, 52, 44), + form_error_fill: Color32::from_rgb(252, 239, 237), + form_success: Color32::from_rgb(39, 107, 44), + form_success_fill: Color32::from_rgb(229, 242, 230), + control_radius: 6, + form_label_width: 70.0, + form_gap_y: 5.0, + form_footer_height: 48.0, + form_header_height: 40.0, + form_card_width: 264.0, + form_icon_size: 19.0, + form_close_size: 26.0, + form_inset: 9.0, + form_icon_inset: 4.5, + form_section_icon_size: 11.0, + form_checkbox_height: 22.0, + form_button_height: 28.0, + sketch_palette_width: 232.0, + sketch_mode_size: 36.0, + sketch_mode_radius: 7, + sketch_mode_border: 1.5, + sketch_palette_alpha: 0.96, + sketch_mode_tint: 0.12, + sketch_footer_icon_size: 15.0, + font_section_tracking: 0.04, app_bar: Color32::from_rgb(52, 56, 64), + app_bar_separator: Color32::from_rgb(136, 145, 160), toolbar: Color32::from_rgb(246, 247, 249), panel: Color32::from_rgb(250, 251, 252), panel_header: Color32::from_rgb(236, 238, 242), @@ -18,6 +78,32 @@ impl Tokens { accent: Color32::from_rgb(38, 120, 218), accent_soft: Color32::from_rgb(214, 230, 250), sketch_accent: icon_primary(crate::icon_svg::SKETCH_PRIMARY[0]), + // Icon palette active-3 ramps; these accents have no compiled constants yet. + surface_accent: Color32::from_rgb(164, 80, 0), + mesh_accent: Color32::from_rgb(130, 103, 0), + form_accent: Color32::from_rgb(115, 73, 205), + render_accent: Color32::from_rgb(174, 45, 113), + sketch_ink: Color32::from_rgb(5, 127, 69), + sketch_soft: Color32::from_rgb(237, 247, 241), + surface_fill: Color32::from_rgb(164, 80, 0), + surface_ink: Color32::from_rgb(164, 80, 0), + surface_soft: Color32::from_rgb(251, 235, 216), + mesh_fill: Color32::from_rgb(224, 178, 0), + mesh_ink: Color32::from_rgb(138, 109, 0), + mesh_soft: Color32::from_rgb(255, 248, 220), + form_fill: Color32::from_rgb(115, 73, 205), + form_tab_ink: Color32::from_rgb(115, 73, 205), + form_soft: Color32::from_rgb(238, 232, 250), + sheet_fill: Color32::from_rgb(30, 111, 150), + sheet_ink: Color32::from_rgb(30, 111, 150), + sheet_soft: Color32::from_rgb(225, 240, 247), + render_fill: Color32::from_rgb(168, 50, 110), + render_ink: Color32::from_rgb(168, 50, 110), + render_soft: Color32::from_rgb(248, 230, 239), + tab_on_fill_dark: Color32::BLACK, + on_accent: Color32::WHITE, + agent_ok: Color32::from_rgb(76, 194, 122), + agent_busy: Color32::from_rgb(108, 180, 240), error: Color32::from_rgb(214, 54, 54), warning: Color32::from_rgb(222, 150, 30), icon: Color32::from_rgb(70, 78, 92), @@ -69,7 +155,7 @@ impl Tokens { sketch_point_free: Color32::from_rgb(30, 90, 200), section_cap: Color32::from_rgb(214, 128, 72), dialog_bg: Color32::from_rgb(250, 251, 252), - dialog_border: Color32::from_rgb(208, 212, 220), + dialog_border: Color32::from_rgb(213, 219, 227), chip: Color32::from_rgb(38, 120, 218), heading_bg: Color32::from_rgb(218, 223, 231), subheading_bg: Color32::from_rgb(234, 237, 242), @@ -81,6 +167,18 @@ impl Tokens { rubber_band: Color32::from_rgb(30, 120, 230), app_bar_text: Color32::from_rgb(230, 234, 242), app_bar_hover: Color32::from_rgba_unmultiplied_const(255, 255, 255, 28), + app_bar_hover_subtle: Color32::from_rgba_unmultiplied_const(255, 255, 255, 18), + app_bar_hover_button: Color32::from_rgba_unmultiplied_const(255, 255, 255, 30), + app_bar_hover_strong: Color32::from_rgba_unmultiplied_const(255, 255, 255, 40), + app_bar_tab_active: Color32::from_rgb(53, 59, 71), + dialog_body: Color32::from_rgb(255, 255, 255), + dialog_footer: Color32::from_rgb(244, 246, 249), + dialog_rule: Color32::from_rgb(230, 234, 240), + control_fill: Color32::from_rgb(255, 255, 255), + control_border: Color32::from_rgb(195, 203, 214), + dialog_label: Color32::from_rgb(58, 70, 86), + selected_ink: Color32::from_rgb(26, 80, 127), + selected_bg: Color32::from_rgb(232, 241, 250), timeline_item: Color32::WHITE, timeline_item_error: Color32::from_rgb(250, 220, 220), timeline_marker: Color32::from_rgb(70, 76, 88), @@ -134,8 +232,38 @@ impl Tokens { } pub const fn dark() -> Tokens { let mut t = Tokens::light(); + // Shared typography and dense form dimensions stay identical in both palettes. + t.font_triad = 8.0; + t.font_compass = 13.5; + t.font_subtitle = 15.0; + t.font_intro = 16.0; + t.font_article_heading = 17.0; + t.font_title = 22.0; + t.font_display = 26.0; + t.control_height = 28.0; + t.control_radius = 6; + t.form_label_width = 70.0; + t.form_gap_y = 5.0; + t.form_footer_height = 48.0; + t.form_header_height = 40.0; + t.form_card_width = 264.0; + t.form_icon_size = 19.0; + t.form_close_size = 26.0; + t.form_inset = 9.0; + t.form_icon_inset = 4.5; + t.form_section_icon_size = 11.0; + t.form_checkbox_height = 22.0; + t.form_button_height = 28.0; + t.sketch_palette_width = 232.0; + t.sketch_mode_size = 36.0; + t.sketch_mode_radius = 7; + t.sketch_mode_border = 1.5; + t.sketch_palette_alpha = 0.96; + t.sketch_mode_tint = 0.12; + t.sketch_footer_icon_size = 15.0; + t.font_section_tracking = 0.04; t.app_bar = Color32::from_rgb(28, 31, 38); - t.toolbar = Color32::from_rgb(37, 41, 49); + t.toolbar = Color32::from_rgb(39, 43, 52); t.panel = Color32::from_rgb(39, 43, 52); t.panel_header = Color32::from_rgb(47, 52, 62); t.border = Color32::from_rgb(63, 69, 82); @@ -144,6 +272,36 @@ impl Tokens { t.accent = Color32::from_rgb(58, 136, 238); t.accent_soft = Color32::from_rgb(42, 70, 110); t.sketch_accent = icon_primary(crate::icon_svg::SKETCH_PRIMARY[1]); + t.surface_accent = Color32::from_rgb(149, 104, 45); + t.mesh_accent = Color32::from_rgb(133, 113, 0); + t.form_accent = Color32::from_rgb(123, 99, 166); + t.render_accent = Color32::from_rgb(224, 116, 174); + t.sketch_ink = Color32::from_rgb(70, 190, 120); + t.sketch_soft = Color32::from_rgb(31, 59, 43); + t.surface_fill = Color32::from_rgb(178, 106, 20); + t.surface_ink = Color32::from_rgb(224, 145, 74); + t.surface_soft = Color32::from_rgb(69, 51, 30); + t.mesh_fill = Color32::from_rgb(198, 168, 0); + t.mesh_ink = Color32::from_rgb(212, 183, 38); + t.mesh_soft = Color32::from_rgb(65, 57, 26); + t.form_fill = Color32::from_rgb(138, 111, 204); + t.form_tab_ink = Color32::from_rgb(179, 155, 238); + t.form_soft = Color32::from_rgb(55, 47, 79); + t.sheet_fill = Color32::from_rgb(42, 127, 168); + t.sheet_ink = Color32::from_rgb(79, 179, 217); + t.sheet_soft = Color32::from_rgb(31, 58, 71); + t.render_fill = Color32::from_rgb(200, 88, 143); + t.render_ink = Color32::from_rgb(224, 116, 174); + t.render_soft = Color32::from_rgb(64, 35, 54); + t.tab_on_fill_dark = Color32::BLACK; + t.dialog_body = Color32::from_rgb(59, 68, 83); + t.dialog_footer = Color32::from_rgb(47, 52, 62); + t.dialog_rule = Color32::from_rgb(53, 59, 71); + t.control_fill = Color32::from_rgb(39, 43, 52); + t.control_border = Color32::from_rgb(74, 82, 98); + t.dialog_label = Color32::from_rgb(180, 187, 200); + t.selected_ink = Color32::from_rgb(156, 199, 245); + t.selected_bg = Color32::from_rgb(42, 70, 110); t.construction_geom = icon_primary(crate::icon_svg::CONSTRUCTION_PRIMARY[1]); t.error = Color32::from_rgb(240, 100, 96); t.warning = Color32::from_rgb(236, 170, 70); @@ -185,6 +343,13 @@ impl Tokens { t.box_crossing = Color32::from_rgb(80, 200, 120); t.bend_up = Color32::from_rgb(110, 200, 120); t.bend_down = Color32::from_rgb(240, 150, 80); + t.form_ink = t.text; + t.form_dim = t.text_dim; + t.form_primary = t.accent; + t.form_error = t.error; + t.form_error_fill = t.timeline_item_error; + t.form_success = Color32::from_rgb(143, 219, 154); + t.form_success_fill = Color32::from_rgb(44, 74, 51); t } @@ -202,6 +367,12 @@ impl Tokens { t.analysis.draft = [positive, [0.95, 0.90, 0.60], negative]; t.analysis.access = [positive, negative]; t.analysis.hatch = true; + // Keep validation badges separate from red errors under both red-green + // simulations, while retaining their explicit Valid / Not valid labels. + t.form_success_fill = if dark { Color32::from_rgb(44, 57, 67) } else { Color32::from_rgb(227, 227, 246) }; + if !dark { + t.form_success = Color32::from_rgb(39, 88, 78); + } // The icons that show the same meanings follow; on the dark toolbar the blue is a little // stronger, to stay clear of the icon fill. let good = if dark { Color32::from_rgb(35, 115, 245) } else { Color32::from_rgb(51, 115, 230) }; @@ -209,7 +380,11 @@ impl Tokens { t.icons.axes[1] = t.triad[1]; t.icons.access = [good, Color32::from_rgb(217, 102, 13)]; t.construction_geom = icon_primary(crate::icon_svg::CONSTRUCTION_RED_GREEN[dark as usize]); + t.glyph_text = icon_primary(crate::icon_svg::CONSTRAINT_RED_GREEN[dark as usize]); t.icons.draft = [good, Color32::from_rgb(242, 230, 153)]; + t.surface_accent = if dark { Color32::from_rgb(200, 135, 55) } else { Color32::from_rgb(164, 80, 0) }; + t.mesh_accent = if dark { Color32::from_rgb(190, 175, 70) } else { Color32::from_rgb(130, 103, 0) }; + t.form_accent = if dark { Color32::from_rgb(165, 135, 220) } else { Color32::from_rgb(115, 73, 205) }; if dark { t.bend_up = Color32::from_rgb(110, 165, 255); t.bend_down = Color32::from_rgb(240, 180, 70); @@ -229,6 +404,11 @@ impl Tokens { pub(super) const fn blue_yellow(self, dark: bool) -> Tokens { let mut t = self; t.analysis.hatch = true; + t.surface_accent = if dark { Color32::from_rgb(210, 120, 95) } else { Color32::from_rgb(164, 65, 50) }; + t.mesh_accent = if dark { Color32::from_rgb(200, 175, 135) } else { Color32::from_rgb(130, 103, 65) }; + t.form_accent = if dark { Color32::from_rgb(150, 140, 210) } else { Color32::from_rgb(115, 73, 170) }; + // Green and blue status lights merge for tritan vision; use rose for working. + t.agent_busy = Color32::from_rgb(232, 150, 190); t.preview_sketch = Color32::from_rgb(125, 180, 105); t.glyph_text = icon_primary(crate::icon_svg::CONSTRAINT_BLUE_YELLOW[dark as usize]); t.construction_geom = icon_primary(crate::icon_svg::CONSTRUCTION_BLUE_YELLOW[dark as usize]); diff --git a/crates/doc/src/document.rs b/crates/doc/src/document.rs index 02afec755..2a3ea293b 100644 --- a/crates/doc/src/document.rs +++ b/crates/doc/src/document.rs @@ -2637,6 +2637,103 @@ impl Document { } } + /// Rename body `old` to `new` where the design keeps things by body name outside its + /// features: materials, appearances, configuration columns, offsets, components and the + /// browser's groups and order. (The features are the rename command's to change.) + pub fn rename_body_keys(&mut self, old: &str, new: &str) { + if let Some(m) = self.materials.remove(old) { + self.materials.insert(new.to_string(), m); + } + if let Some(c) = self.appearances.bodies.remove(old) { + self.appearances.bodies.insert(new.to_string(), c); + } + for f in self.appearances.faces.iter_mut().filter(|f| f.body == old) { + f.body = new.to_string(); + } + for column in &mut self.configs.columns { + match column { + crate::config::Column::Material(body) | crate::config::Column::Appearance(body) if *body == old => { + *body = new.to_string(); + } + crate::config::Column::FaceAppearance(target) if target.body == old => { + target.body = new.to_string(); + } + _ => {} + } + } + if let Some(o) = self.body_offsets.remove(old) { + self.body_offsets.insert(new.to_string(), o); + } + if let Some(c) = self.body_components.remove(old) { + self.body_components.insert(new.to_string(), c); + } + for g in self.browser_groups.iter_mut().filter(|g| g.folder == "bodies") { + for k in g.items.iter_mut().filter(|k| *k == old) { + *k = new.to_string(); + } + } + for (_, v) in self.browser_order.iter_mut().filter(|(k, _)| k.ends_with("/bodies")) { + for k in v.iter_mut().filter(|k| *k == old) { + *k = new.to_string(); + } + } + } + + /// The single body rename (old name, new name) that turns `previous` into this design, + /// when that is all that changed: the features' stored body names (`made` gives the names + /// each feature's bodies have now, by feature id) and what [`Document::rename_body_keys`] + /// renames. `None` for any other change. + pub fn body_rename_from(&self, previous: &Document, made: impl Fn(u64) -> Vec) -> Option<(String, String)> { + if self.features.len() != previous.features.len() { + return None; + } + let mut rename: Option<(String, String)> = None; + for (a, b) in previous.features.iter().zip(&self.features) { + if a.id != b.id { + return None; + } + if a.body_names == b.body_names { + continue; + } + let now = made(a.id); + for (k, name) in b.body_names.iter().enumerate() { + let current = now.get(k); + // Slots the rename left alone, and the ones it set to the names they have now. + if a.body_names.get(k) == Some(name) || name.trim().is_empty() || current == Some(name) { + continue; + } + let pair = (current?.clone(), name.clone()); + match &rename { + Some(r) if *r != pair => return None, + _ => rename = Some(pair), + } + } + } + let (old, new) = rename?; + let mut expected = previous.clone(); + for (f, g) in expected.features.iter_mut().zip(&self.features) { + f.body_names.clone_from(&g.body_names); + } + expected.rename_body_keys(&old, &new); + (expected == *self).then_some((old, new)) + } + + /// The feature whose name alone turns `previous` into this design, when that is all that + /// changed. + pub fn feature_rename_from(&self, previous: &Document) -> Option { + if self.features.len() != previous.features.len() { + return None; + } + let mut renamed = previous.features.iter().zip(&self.features).filter(|(a, b)| a.id == b.id && a.name != b.name); + let (_, b) = renamed.next()?; + if renamed.next().is_some() { + return None; + } + let mut expected = previous.clone(); + expected.feature_mut(b.id)?.name.clone_from(&b.name); + (expected == *self).then_some(b.id) + } + /// A complete structural proof: no non-render field is allowed to differ. Keeping this /// comparison based on the whole Document also includes fields added in future versions. /// The clone/comparison is only needed when render intent actually differs. diff --git a/crates/doc/src/eval.rs b/crates/doc/src/eval.rs index 82dd4c7db..fdea27a9c 100644 --- a/crates/doc/src/eval.rs +++ b/crates/doc/src/eval.rs @@ -163,6 +163,40 @@ impl ModelBody { .clone() } + /// [`ModelBody::plan_mesh`] if it is made already; otherwise it is made on a worker thread + /// (once, however often this is asked) and `None` comes back meanwhile, so a caller drawing a + /// frame (a face highlighted under the pointer) is not held up by a large body's plan + /// (#3745): the plan mesh of a long modelled thread takes most of a second. The browser + /// build has no threads: there it is made now. + pub fn plan_mesh_soon(&self) -> Option> { + let q = crate::display_quality::current(); + let cell = self.plan_mesh.get(q.index())?; + if let Some(mesh) = cell.get() { + return mesh.clone(); + } + #[cfg(not(target_arch = "wasm32"))] + { + static WARMING: std::sync::Mutex> = std::sync::Mutex::new(Vec::new()); + let key = Arc::as_ptr(&self.plan_mesh) as usize + q.index(); + let Ok(mut warming) = WARMING.lock() else { return None }; + if warming.contains(&key) { + return None; + } + let body = self.clone(); + let started = std::thread::Builder::new().name("plan-mesh".into()).spawn(move || { + let _ = body.plan_mesh_at(q); + if let Ok(mut warming) = WARMING.lock() { + warming.retain(|k| *k != key); + } + }); + if started.is_ok() { + warming.push(key); + return None; + } + } + self.plan_mesh_at(q) + } + /// The display plan and its mesh `k` steps finer than `q` (view-dependent refinement, #1320; /// see [`crate::display_quality::refinement_for`]). Step 0 is the cached plan at `q`; finer /// steps are made on each call and kept by the viewport, which evicts them when it runs over @@ -1494,6 +1528,107 @@ impl Model { } } +impl Model { + /// Follow a rename of body `old` to `new` without evaluating anything (#3044): `doc` is the + /// design after the rename, which changed nothing but names, so every result keeps its + /// geometry and meshes and only the body's name (and the names worked out from it) changes. + /// False, leaving the model as it was, when the rename can't be followed that way and the + /// design must be evaluated: the model isn't the design's, the body is changed by a later + /// feature, or is sheet metal, threaded, or named in a later feature's face references. + pub fn rename_body(&mut self, doc: &Document, old: &str, new: &str) -> bool { + if self.results.len() != doc.features.len() || self.results.iter().zip(&doc.features).any(|(r, f)| r.id != f.id || r.stale) { + return false; + } + let Some(at) = self.results.iter().position(|r| r.state.body(old).is_some()) else { return false }; + let Some(made) = self.results.get(at).and_then(|r| r.state.body(old)).map(|b| Arc::as_ptr(&b.mesh)) else { return false }; + // Untouched from the feature that made it to the end, and nothing else holds its name. + let untouched = self.results.iter().skip(at).all(|r| r.state.body(old).is_some_and(|b| Arc::as_ptr(&b.mesh) == made)); + let named_elsewhere = self + .results + .iter() + .any(|r| r.state.body(new).is_some() || r.state.sheets.iter().any(|x| x.body == old) || r.state.threads.iter().any(|t| t.body == old)); + let faces_named = doc.features.iter().skip(at + 1).any(|f| f.face_names.iter().any(|n| n.contains(old))); + if !untouched || named_elsewhere || faces_named { + return false; + } + // States shared between results stay shared. + let mut renamed: std::collections::HashMap<*const ModelState, Arc> = std::collections::HashMap::new(); + for r in self.results.iter_mut().skip(at) { + let state = renamed + .entry(Arc::as_ptr(&r.state)) + .or_insert_with(|| { + let mut st = (*r.state).clone(); + for b in st.bodies.iter_mut().filter(|b| b.name == old) { + b.name = new.to_string(); + b.names = b.names.renamed(); + } + Arc::new(st) + }) + .clone(); + r.state = state; + } + self.refingerprint(doc); + true + } + + /// Follow a rename of feature `id` to `doc`'s name for it without evaluating anything: a + /// feature's name labels it (its result, its sketch, its construction geometry) but builds + /// nothing. False, leaving the model as it was, when the model isn't the design's, the + /// feature failed, or a later failed feature's error quotes its old name: evaluate then. + pub fn rename_feature(&mut self, doc: &Document, id: u64) -> bool { + if self.results.len() != doc.features.len() || self.results.iter().zip(&doc.features).any(|(r, f)| r.id != f.id || r.stale) { + return false; + } + let Some(name) = doc.feature(id).map(|f| f.name.clone()) else { return false }; + let Some(at) = self.results.iter().position(|r| r.id == id) else { return false }; + // An error may quote the old name: the feature's own, or a later one's that refers to it + // by id (a pattern of it: "{name} cannot be patterned or mirrored yet"). + let old = self.results.get(at).map(|r| r.name.clone()).unwrap_or_default(); + if self.results.iter().skip(at).any(|r| r.error.as_deref().is_some_and(|e| r.id == id || e.contains(&old))) { + return false; + } + if let Some(r) = self.results.get_mut(at) { + r.name.clone_from(&name); + } + let mut renamed: std::collections::HashMap<*const ModelState, Arc> = std::collections::HashMap::new(); + for r in self.results.iter_mut().skip(at) { + let labels = r.state.sketches.iter().any(|k| k.feature == id) || r.state.construct.iter().any(|c| c.feature == id); + if !labels { + continue; + } + let state = renamed + .entry(Arc::as_ptr(&r.state)) + .or_insert_with(|| { + let mut st = (*r.state).clone(); + for k in st.sketches.iter_mut().filter(|k| k.feature == id) { + Arc::make_mut(k).name.clone_from(&name); + } + for c in st.construct.iter_mut().filter(|c| c.feature == id) { + c.name.clone_from(&name); + } + Arc::new(st) + }) + .clone(); + r.state = state; + } + self.refingerprint(doc); + true + } + + /// Set every result's fingerprint to `doc`'s, so the next evaluation reuses every result + /// (after a change that builds nothing differently). + fn refingerprint(&mut self, doc: &Document) { + let (vals, _) = evaluation_values(doc); + let marker = doc.marker.unwrap_or(usize::MAX); + self.step_digests = StepDigests::of(doc, &self.step_digests); + let mut prev = 0; + for (i, (r, f)) in self.results.iter_mut().zip(&doc.features).enumerate() { + prev = chain_fingerprint(doc, &vals, f, prev, i >= marker, &self.step_digests); + r.fingerprint = prev; + } + } +} + /// Key of the design's length unit (mm per unit) among the values (no parameter can be named /// so). pub(crate) const DESIGN_LEN: &str = "\u{1}design_len"; diff --git a/crates/doc/src/joints.rs b/crates/doc/src/joints.rs index a099d7963..f929d1714 100644 --- a/crates/doc/src/joints.rs +++ b/crates/doc/src/joints.rs @@ -1235,6 +1235,29 @@ fn closure_gaps(tree: &Tree, closing: &[u64], vals: &Values, scale: f64, out: &m Some(()) } +/// How far a closing joint may be off before it is a conflict: its frames apart by more than +/// this many millimetres or turned by more than this many radians. +const CONFLICT_MM: f64 = 1e-6; +const CONFLICT_RAD: f64 = 1e-8; + +/// The largest gap (`closure_gaps`, for loops of size `scale`) that still passes the conflict +/// check, with room to spare. +fn loose_gap(scale: f64) -> f64 { + CONFLICT_MM.min(CONFLICT_RAD * scale) / 4.0 +} + +/// Close loops whose gaps `f` gives from `x`, and the tolerance to keep them closed to from here +/// on: `tol`, or, where they come no closer than that but within `loose`, a little more than they +/// do come. Faces modelled a few nanometres apart along parallel axes leave a gap no value of a +/// planar loop takes out; the loop still moves, as closed as it is. `None` when they can't close. +fn close_within(f: &mut dyn FnMut(&[f64]) -> Option>, x: &mut Vec, bounds: &[(f64, f64)], tol: f64, loose: f64) -> Option { + if least_squares(f, x, bounds, tol) { + return Some(tol); + } + let left = largest(&f(x)?); + (left <= loose).then(|| (4.0 * left).clamp(tol, loose.max(tol))) +} + /// Occurrences whose degrees of freedom are worked out through their loops, at most; the rest /// keep the tree's count. const MAX_DOF_OCCURRENCES: usize = 256; @@ -1287,7 +1310,7 @@ fn nearby_pose(tree: &Tree, groups: &[Group], asm: &Assembly, linked: &BTreeSet< closure_gaps(tree, closing, &work, scale, &mut out)?; out.iter().all(|v| v.is_finite()).then_some(out) }; - if least_squares(&mut gaps, &mut x, &bounds, (1e-10 * scale).min(1e-7)) + if close_within(&mut gaps, &mut x, &bounds, (1e-10 * scale).min(1e-7), loose_gap(scale)).is_some() && x.iter().zip(&x0).zip(&step).all(|((a, b), d)| (a - b).abs() <= 4.0 * d) && gaps(&x).is_some() { @@ -1525,11 +1548,15 @@ fn close_group( if moves.is_empty() && gaps(&x0, 1.0).is_some_and(|r| largest(&r) <= tol) { return Some(BTreeMap::new()); } - // A loop open at the start closes first. + // A loop open at the start closes first. One that comes only to within the conflict check + // (`close_within`) moves on as closed as it is; with nothing held moving, one that started + // that close is left as it is. let mut x = x0; - if largest(&gaps(&x, 0.0)?) > tol && !least_squares(&mut |x| gaps(x, 0.0), &mut x, &bounds, tol) { - return None; - } + let start = largest(&gaps(&x, 0.0)?); + let tol = match close_within(&mut |x| gaps(x, 0.0), &mut x, &bounds, tol, loose_gap(scale))? { + t if t > tol && moves.is_empty() && start <= t => return Some(BTreeMap::new()), + t => t, + }; let (mut t, mut dt) = (if moves.is_empty() { 1.0 } else { 0.0 }, first); let mut at = effective(&x, t); while t < 1.0 { @@ -1680,7 +1707,7 @@ pub fn solve_holding(doc: &Document, st: &ModelState, held: &Held) -> Solution { let (Some(want), Some((_, fb))) = (tree.step(*id, true, ta, &vals), tree.frames.get(id)) else { continue }; // Measured at the joint, where the loop solver closes it. let (dt, da) = mismatch(&mat_mul(&want, fb), &mat_mul(tb, fb)); - if dt > 1e-6 || da > 1e-8 { + if dt > CONFLICT_MM || da > CONFLICT_RAD { sol.conflicts.push(( j.id, j.name.clone(), diff --git a/crates/doc/src/joints_reach.rs b/crates/doc/src/joints_reach.rs index 07bd137f4..4a5f4fbf2 100644 --- a/crates/doc/src/joints_reach.rs +++ b/crates/doc/src/joints_reach.rs @@ -9,8 +9,8 @@ use solidcraft_geom::Vec3; use solidcraft_sketch::linalg; use super::{ - Assembly, Held, MAX_LOOP_VALUES, MAX_LOOP_WORK, MAX_LOOPS, Solution, Tree, Values, apply_links, build, closure_gaps, jacobian, joint_values, - largest, least_squares, limit_bounds, link_chains, loop_groups, loop_scale, unknowns, + Assembly, Held, MAX_LOOP_VALUES, MAX_LOOP_WORK, MAX_LOOPS, Solution, Tree, Values, apply_links, build, close_within, closure_gaps, jacobian, + joint_values, largest, least_squares, limit_bounds, link_chains, loop_groups, loop_scale, loose_gap, unknowns, }; use crate::{Document, ModelState, apply_point, apply_vector, mat_mul}; @@ -159,7 +159,7 @@ pub fn reach(doc: &Document, st: &ModelState, r: &Reach) -> Result().sqrt(); let before = f(&x0).map_or(f64::INFINITY, |r| miss(&r)); - let res = approach(&mut f, &|a, b| stride(asm, &vals, &vars, &paced, a, b), mt, &mut x, &bounds, &cap, tol) + let res = approach(&mut f, &|a, b| stride(asm, &vals, &vars, &paced, a, b), mt, &mut x, &bounds, &cap, tol, loose_gap(scale)) .ok_or("a closed loop on its chain is open and can't close (joint.list shows its conflict)")?; let mut out = Reached::default(); let point_miss = res.iter().take(3).map(|v| v * v).sum::().sqrt(); @@ -219,7 +219,7 @@ pub fn reach(doc: &Document, st: &ModelState, r: &Reach) -> Result Option>, stride: &dyn Fn(&[f64], &[f64]) -> f64, @@ -322,16 +322,20 @@ fn approach( bounds: &[(f64, f64)], cap: &[f64], tol: f64, + loose: f64, ) -> Option> { let n = x.len(); let miss = |r: &[f64]| r.iter().take(mt).map(|v| v * v).sum::(); - let close = |f: &mut dyn FnMut(&[f64]) -> Option>, x: &mut Vec| { - least_squares(&mut |y| f(y).map(|r| r.get(mt..).unwrap_or_default().to_vec()), x, bounds, tol * LOOP_WEIGHT) - }; + // The loops close first, to `tol` or as near as they come within `loose` (`close_within`), + // and stay that closed. let loops = f(x)?.len() > mt; - if loops && !close(f, x) { - return None; + let mut loop_tol = tol * LOOP_WEIGHT; + if loops { + loop_tol = close_within(&mut |y| f(y).map(|r| r.get(mt..).unwrap_or_default().to_vec()), x, bounds, loop_tol, loose * LOOP_WEIGHT)?; } + let close = |f: &mut dyn FnMut(&[f64]) -> Option>, x: &mut Vec| { + least_squares(&mut |y| f(y).map(|r| r.get(mt..).unwrap_or_default().to_vec()), x, bounds, loop_tol) + }; let mut r = f(x)?; let (mut lambda, mut kicked) = (1e-3, false); for _ in 0..MAX_REACH_STEPS { diff --git a/crates/doc/src/naming.rs b/crates/doc/src/naming.rs index 71d32e6ee..1801fca6f 100644 --- a/crates/doc/src/naming.rs +++ b/crates/doc/src/naming.rs @@ -85,6 +85,17 @@ impl NameCell { pub(crate) fn id(&self) -> usize { Arc::as_ptr(&self.names) as usize } + /// The same origin, lineage and depth with nothing worked out yet: for a body given a new + /// name, whose faces' names may be made from it. + pub(crate) fn renamed(&self) -> Self { + NameCell { + origin: self.origin.clone(), + lineage: self.lineage.clone(), + copy_of: self.copy_of.clone(), + saved_depth: self.saved_depth, + ..NameCell::default() + } + } fn shared(names: Arc) -> Self { let cell = OnceLock::new(); let _ = cell.set(names); diff --git a/crates/doc/src/placed_mesh.rs b/crates/doc/src/placed_mesh.rs index f07d48e0c..6da3c4e08 100644 --- a/crates/doc/src/placed_mesh.rs +++ b/crates/doc/src/placed_mesh.rs @@ -201,6 +201,23 @@ mod tests { } } + /// #3745: a highlight never waits for a body's plan mesh: the first ask starts it on a + /// worker and answers `None`, and once made it is the plan mesh, in the body's own cell. + #[test] + fn plan_mesh_soon_makes_it_on_a_worker() { + let body = ModelBody::new("Pin".into(), kernel::cylinder(Vec3::ZERO, Vec3::Z, 2., 8.).unwrap(), 1); + assert!(body.plan_mesh_soon().is_none(), "not made in the asking frame"); + let began = std::time::Instant::now(); + let soon = loop { + if let Some(mesh) = body.plan_mesh_soon() { + break mesh; + } + assert!(began.elapsed() < std::time::Duration::from_secs(30), "the worker made it"); + std::thread::sleep(std::time::Duration::from_millis(2)); + }; + assert!(Arc::ptr_eq(&soon, &body.plan_mesh().unwrap()), "the same mesh, in the body's cell"); + } + #[test] fn world_instances_warm_one_definition_and_an_edit_replaces_it() { let mut doc = crate::Document::new("instances"); diff --git a/crates/engine/src/boolean_regression_tests.rs b/crates/engine/src/boolean_regression_tests.rs index 8cf79c6f1..2ed8cf4d5 100644 --- a/crates/engine/src/boolean_regression_tests.rs +++ b/crates/engine/src/boolean_regression_tests.rs @@ -1119,3 +1119,34 @@ fn cut_beside_a_sealed_void_keeps_the_body() { println!("rotated box beside a void: {got:.6} mm³, expected {want:.6}"); assert!((got - want).abs() < 1e-5 * want, "{got} vs {want}"); } + +/// The reference mesh of loft bodies joined into a bike frame covers each face once: within 1% +/// of the area of a mesh at a tenth of the tolerance. The trimmed loft sides were meshed with a +/// flat sheet through the down tube (Delaunay in raw parameters on a strip stretched twentyfold: +/// two and a half times the area), and the seat tube's side with slivers across it (a boundary +/// polyline hooking back past its vertex dropped a trimming curve's constraints). +#[test] +fn joined_loft_frames_reference_mesh_covers_each_face_once() { + for (script, name) in [ + (include_str!("../../../examples/regressions/loft_join_bracket_hull_triangle.json"), "DT2"), + (include_str!("../../../examples/regressions/front_triangle_hull_triangle.json"), "FrontTriangle"), + ] { + let s = replay(script); + let state = s.model.state(); + let body = &state.body(name).unwrap().body; + let per_face = |m: &solidcraft_geom::Mesh| { + let mut a = vec![0.0; body.face_count()]; + for (t, f) in m.triangles.iter().zip(&m.tri_face) { + let [p0, p1, p2] = t.map(|i| m.positions[i as usize]); + a[*f as usize] += (p1 - p0).cross(p2 - p0).len() / 2.0; + } + a + }; + let size = body.size(); + let mesh = per_face(&body.reference_display_mesh_angular(size * 3e-4, 12f64.to_radians()).unwrap()); + let fine = per_face(&body.reference_display_mesh_angular(size * 3e-5, 3f64.to_radians()).unwrap()); + for (fi, (m, f)) in mesh.iter().zip(&fine).enumerate() { + assert!((m - f).abs() <= 0.01 * f.max(1.0), "{name} face {fi}: mesh {m:.0} mm², finer mesh {f:.0} mm²"); + } + } +} diff --git a/crates/engine/src/cmd/browser.rs b/crates/engine/src/cmd/browser.rs index 1de6dd786..824808a98 100644 --- a/crates/engine/src/cmd/browser.rs +++ b/crates/engine/src/cmd/browser.rs @@ -508,20 +508,6 @@ fn view_list(s: &mut Session, _p: &Value) -> Result { Ok(json!({ "views": s.doc.named_views })) } -/// Rename an item key in the browser's groups and orders of a folder. -fn rename_key(d: &mut solidcraft_doc::Document, folder: &str, old: &str, new: &str) { - for g in d.browser_groups.iter_mut().filter(|g| g.folder == folder) { - for k in g.items.iter_mut().filter(|k| *k == old) { - *k = new.to_string(); - } - } - for (_, v) in d.browser_order.iter_mut().filter(|(k, _)| k.ends_with(&format!("/{folder}"))) { - for k in v.iter_mut().filter(|k| *k == old) { - *k = new.to_string(); - } - } -} - /// The keys whose strings name bodies, alone or in a list (`body`, `targets`…), at any depth of a /// feature: its own fields and the face, edge and link references inside it. const BODY_KEYS: [&str; 5] = ["body", "bodies", "target", "targets", "tools"]; @@ -638,33 +624,7 @@ fn rename_body(s: &mut Session, p: &Value) -> Result { if let Some(e) = failed { return Err(bad(cmd, e)); } - if let Some(m) = d.materials.remove(&old) { - d.materials.insert(name.to_string(), m); - } - if let Some(c) = d.appearances.bodies.remove(&old) { - d.appearances.bodies.insert(name.to_string(), c); - } - for f in d.appearances.faces.iter_mut().filter(|f| f.body == old) { - f.body = name.to_string(); - } - for column in &mut d.configs.columns { - match column { - solidcraft_doc::config::Column::Material(body) | solidcraft_doc::config::Column::Appearance(body) if *body == old => { - *body = name.to_string(); - } - solidcraft_doc::config::Column::FaceAppearance(target) if target.body == old => { - target.body = name.to_string(); - } - _ => {} - } - } - if let Some(o) = d.body_offsets.remove(&old) { - d.body_offsets.insert(name.to_string(), o); - } - if let Some(c) = d.body_components.remove(&old) { - d.body_components.insert(name.to_string(), c); - } - rename_key(d, "bodies", &old, name); + d.rename_body_keys(&old, name); for b in s.visibility.hidden_bodies.iter_mut().filter(|b| **b == old) { *b = name.to_string(); } @@ -864,6 +824,44 @@ mod tests { assert!(names(&s).contains(&"Body2".to_string()) && names(&s).contains(&"Body4".to_string()), "{:?}", names(&s)); } + /// #3044: a rename changes names only, so it, its undo and its redo evaluate nothing: every + /// body keeps its geometry and display mesh, and the model is the one evaluating the renamed + /// design gives. + #[test] + fn renaming_a_body_evaluates_nothing() { + let mut s = Session::default(); + run(&mut s, "solid.box", json!({"length": 10, "width": 10, "height": 10, "body_name": "A"})); + run(&mut s, "solid.box", json!({"length": 5, "width": 5, "height": 5, "center": [20, 0, 2.5], "operation": "new", "body_name": "B"})); + run(&mut s, "appearance.assign", json!({"bodies": ["A"], "appearance": "Aluminum - Satin"})); + let meshes = |s: &Session| s.model.state().bodies.iter().map(|b| std::sync::Arc::as_ptr(&b.mesh())).collect::>(); + let shown = meshes(&s); + s.evaluations = 0; + run(&mut s, "body.rename", json!({"body": "A", "name": "Plate"})); + assert_eq!(s.evaluations, 0, "a rename evaluates nothing"); + assert_eq!(names(&s), vec!["Plate".to_string(), "B".to_string()]); + assert_eq!(meshes(&s), shown, "the bodies keep their meshes"); + assert!(s.doc.appearances.bodies.contains_key("Plate")); + // The same model as evaluating the renamed design. + let mut fresh = Session::new((*s.doc).clone()); + fresh.refresh(); + assert_eq!(names(&fresh), names(&s)); + s.refresh(); + assert_eq!(s.model.last_recomputed, 0, "the next evaluation reuses every result"); + s.evaluations = 0; + run(&mut s, "edit.undo", json!({})); + assert_eq!(names(&s), vec!["A".to_string(), "B".to_string()]); + run(&mut s, "edit.redo", json!({})); + assert_eq!(names(&s), vec!["Plate".to_string(), "B".to_string()]); + assert_eq!(s.evaluations, 0, "undo and redo of a rename evaluate nothing"); + assert_eq!(meshes(&s), shown); + // A body a later feature uses is renamed in that feature too: that is evaluated. + run(&mut s, "solid.combine", json!({"target": "Plate", "tools": ["B"], "operation": "join", "keep_tools": true})); + s.evaluations = 0; + run(&mut s, "body.rename", json!({"body": "B", "name": "Tool"})); + assert!(s.evaluations > 0); + assert!(names(&s).contains(&"Tool".to_string())); + } + #[test] fn renaming_a_body_leaves_other_text_with_its_name_alone() { let mut s = Session::default(); diff --git a/crates/engine/src/cmd/clearance.rs b/crates/engine/src/cmd/clearance.rs index 2ef36228f..902005f53 100644 --- a/crates/engine/src/cmd/clearance.rs +++ b/crates/engine/src/cmd/clearance.rs @@ -19,13 +19,13 @@ use crate::params::{bad, num, str_, string_list}; use crate::{Result, Session}; pub static COMMANDS: &[CommandSpec] = &[CommandSpec::new("inspect.clearance", "Clearance", clearance).icon("interference").noundo().params( - "bodies?: [names] (default: every solid body, in world placement, but those in `against`); against?: [names] (only pairs with one body in `bodies` and the other here); \ + "bodies?: [names] (default: every solid body, in world placement, but those in `against`; mesh bodies are not measured); against?: [names] (only pairs with one body in `bodies` and the other here); \ min_volume?: mm³ (default 0.01: smaller overlaps count as contact); clearance?: mm (default 0: report pairs closer than this); \ nearest?: n (each body of `bodies` gets its n nearest others); skip_within?: \"occurrence\" (pairs of bodies of one occurrence) | \ \"component\" (pairs of bodies inside one placed component, its subcomponents included) | null; tolerance?: mm (default 1e-6: a gap \ below it is contact, 0) → overlaps: [{a, b, volume_mm3, area_mm2, bbox, center}]; near: [{a, b, distance_mm, from, to, overlap_mm3?: \ a contact's shared volume below min_volume, exact?: false when measured on the meshes}], nearest by body (the same for pairs that overlap: 0); \ - nearest: {body: [{body, distance_mm}]}; unchecked: [{a, b, reason}] (pairs whose overlap could not be worked out); pairs_checked; \ + nearest: {body: [{body, distance_mm}]}; unchecked: [{a, b, reason}] (pairs whose overlap could not be worked out; each mesh body, STL/3MF/OBJ import, is not measured and is listed as {a: name, b: null, reason: \"mesh body: not checked\"}, also when named in `bodies` or `against`; the result's `bodies` counts the solid bodies only); pairs_checked; \ pairs_reused (of those, measured by an earlier call: neither body changed or moved since); pairs_pruned (ruled out by their boxes); ms. Distances are measured on the exact faces and edges, the meshes only rule pairs out", )]; @@ -92,12 +92,19 @@ fn clearance(s: &mut Session, p: &Value) -> Result { }; let st = s.world_state(); - let solid: Vec<&solidcraft_doc::ModelBody> = st.bodies.iter().filter(|b| !b.body.is_mesh()).collect(); + let (mesh_bodies, solid): (Vec<&solidcraft_doc::ModelBody>, Vec<&solidcraft_doc::ModelBody>) = st.bodies.iter().partition(|b| b.body.is_mesh()); + // Mesh bodies are not measured. A mesh body named in `bodies` or `against` is left out of the + // pairs and listed as unchecked, rather than refused as "no solid body". let named = |key: &str| -> Result> { let names = string_list(p, key); let mut out = Vec::new(); for n in &names { - let i = solid.iter().position(|b| &b.name == n).ok_or_else(|| bad(cmd, format!("no solid body `{n}`")))?; + let Some(i) = solid.iter().position(|b| &b.name == n) else { + if mesh_bodies.iter().any(|b| &b.name == n) { + continue; + } + return Err(bad(cmd, format!("no solid body `{n}`"))); + }; if !out.contains(&i) { out.push(i); } @@ -249,7 +256,15 @@ fn clearance(s: &mut Session, p: &Value) -> Result { let results = results.into_iter().map(|r| r.unwrap_or_else(|| Ok(PairResult::default()))); let mut known: HashMap<(usize, usize), f64> = HashMap::new(); - let (mut overlaps, mut near, mut unchecked) = (Vec::new(), Vec::new(), Vec::new()); + let (mut overlaps, mut near) = (Vec::new(), Vec::new()); + // The mesh bodies the call was about (every one without `bodies`, else those named in + // `bodies` or `against`) come first, so "nothing found" is not read as "no overlap". + let asked: Vec = ["bodies", "against"].iter().flat_map(|k| string_list(p, k)).collect(); + let mut unchecked: Vec = mesh_bodies + .iter() + .filter(|b| p.get("bodies").is_none_or(Value::is_null) || asked.contains(&b.name)) + .map(|b| json!({"a": b.name, "b": null, "reason": super::interference::MESH_NOT_CHECKED})) + .collect(); let name = |i: usize| solid.get(i).map_or("", |b| b.name.as_str()); for (&(i, j), r) in close.iter().zip(results) { let r = match r { diff --git a/crates/engine/src/cmd/clearance_tests.rs b/crates/engine/src/cmd/clearance_tests.rs index 16bc3fda7..5cfa44b66 100644 --- a/crates/engine/src/cmd/clearance_tests.rs +++ b/crates/engine/src/cmd/clearance_tests.rs @@ -474,6 +474,57 @@ fn a_roller_pressed_into_a_large_plate_is_reported() { assert!((f(&overlaps[0]["volume_mm3"]) - want).abs() < 0.01 * want, "{want} {res}"); } +/// Two STL copies of a cube inserted into a design. Returns the names of the two mesh bodies. +fn insert_two_mesh_cubes(s: &mut Session, tag: &str) -> Vec { + let dir = std::env::temp_dir().join(format!("solidcraft-mesh-unchecked-{tag}-{}", std::process::id())); + let _ = std::fs::remove_dir_all(&dir); + std::fs::create_dir_all(&dir).unwrap(); + let stl = dir.join("cube.stl"); + let mut cube = Session::default(); + run(&mut cube, "solid.box", json!({"length": 20, "width": 20, "height": 20, "corner": [0, 0, 0], "body_name": "Cube"})); + run(&mut cube, "file.export", json!({"path": stl.to_string_lossy()})); + for _ in 0..2 { + run(s, "file.insert_mesh", json!({"path": stl.to_string_lossy()})); + } + let _ = std::fs::remove_dir_all(&dir); + s.world_state().bodies.iter().filter(|b| b.body.is_mesh()).map(|b| b.name.clone()).collect() +} + +/// #3249: mesh bodies are not measured, and used to vanish from the answer (`bodies: 0`, nothing +/// unchecked). They are listed in `unchecked` with a reason, and naming one in `bodies` or +/// `against` is not "no solid body". +#[test] +fn mesh_bodies_are_listed_as_unchecked_and_can_be_named() { + let mut s = Session::default(); + let meshes = insert_two_mesh_cubes(&mut s, "clearance"); + assert_eq!(meshes.len(), 2, "{meshes:?}"); + let r = run(&mut s, "inspect.clearance", json!({"clearance": 1})); + assert_eq!((r["bodies"].as_u64(), r["pairs_checked"].as_u64()), (Some(0), Some(0)), "{r}"); + let unchecked = r["unchecked"].as_array().cloned().unwrap_or_default(); + assert_eq!(unchecked.len(), 2, "{r}"); + for (u, name) in unchecked.iter().zip(&meshes) { + assert_eq!(u["a"].as_str(), Some(name.as_str()), "{r}"); + assert!(u["b"].is_null(), "{r}"); + assert_eq!(u["reason"], "mesh body: not checked", "{r}"); + } + // Beside solid bodies: those are measured, the meshes are still listed. + cube(&mut s, "A", 10.0, [100.0, 0.0, 0.0]); + cube(&mut s, "B", 10.0, [105.0, 0.0, 0.0]); + let r = run(&mut s, "inspect.clearance", json!({})); + assert_eq!(r["bodies"], 2, "{r}"); + assert_eq!(r["overlaps"].as_array().map(Vec::len), Some(1), "{r}"); + assert_eq!(r["unchecked"].as_array().map(Vec::len), Some(2), "{r}"); + // A mesh body named in `bodies` or `against` is listed, not refused; an unknown name still is. + for params in [json!({"bodies": ["A", meshes[0]]}), json!({"bodies": ["A"], "against": [meshes[0]]})] { + let r = run(&mut s, "inspect.clearance", params.clone()); + let unchecked = r["unchecked"].as_array().cloned().unwrap_or_default(); + assert_eq!(unchecked.len(), 1, "{params}: {r}"); + assert_eq!(unchecked[0]["a"].as_str(), Some(meshes[0].as_str()), "{params}: {r}"); + } + let e = s.execute("inspect.clearance", &json!({"bodies": ["Nope"]})).unwrap_err().to_string(); + assert!(e.contains("`Nope`"), "{e}"); +} + /// A pin turned from a profile (its wall in three faces) in the bore of a tube of its own size /// (in two faces), its end inside the bore, a hair off the axis, and a slit tube with the pin /// through it: touching, not overlapping. Their facets cross where one body's faces end on the diff --git a/crates/engine/src/cmd/contact_sweep.rs b/crates/engine/src/cmd/contact_sweep.rs index 7004e9a7e..e253aea34 100644 --- a/crates/engine/src/cmd/contact_sweep.rs +++ b/crates/engine/src/cmd/contact_sweep.rs @@ -302,9 +302,10 @@ impl ContactGeometry { let cost = ma .positions .len() - .saturating_add(ma.triangles.len().saturating_mul(4)) + // 4 sample points and 3 edges to probe per triangle of `a` against each triangle of `b` (#3323), and the other way round. + .saturating_add(ma.triangles.len().saturating_mul(7)) .saturating_mul(mb.triangles.len()) - .saturating_add(mb.positions.len().saturating_add(mb.triangles.len().saturating_mul(4)).saturating_mul(ma.triangles.len())); + .saturating_add(mb.positions.len().saturating_add(mb.triangles.len().saturating_mul(7)).saturating_mul(ma.triangles.len())); *work = work.saturating_add(cost); if *work > budget { return Err(limit("motion exceeds contact sweep collision budget; simplify the contact set or use smaller increments")); @@ -522,8 +523,8 @@ fn tri_distance(a: &[Vec3; 3], b: &[Vec3; 3]) -> (f64, Vec3, Vec3) { best } -/// Where segment pq passes through triangle t (None: it misses, or lies in its plane). -fn segment_hits_triangle(p: Vec3, q: Vec3, t: &[Vec3; 3]) -> Option { +/// Where the segment `p`→`q` hits triangle `t` (endpoints count), if it crosses its plane. +pub(super) fn segment_hits_triangle(p: Vec3, q: Vec3, t: &[Vec3; 3]) -> Option { let d = q - p; let (e1, e2) = (t[1] - t[0], t[2] - t[0]); let h = d.cross(e2); diff --git a/crates/engine/src/cmd/edit_tests.rs b/crates/engine/src/cmd/edit_tests.rs index e29aede83..bdc464f7b 100644 --- a/crates/engine/src/cmd/edit_tests.rs +++ b/crates/engine/src/cmd/edit_tests.rs @@ -746,3 +746,64 @@ fn edit_takes_dotted_keys_and_numbers_for_expressions() { } assert_eq!(*s.doc, before); } + +/// #3044: renaming a feature labels it and builds nothing, so it, its undo and its redo evaluate +/// nothing, and leave the model evaluating the renamed design gives (the result's, the sketch's +/// and the construction plane's names). A rename other features follow is evaluated. +#[test] +fn renaming_a_feature_evaluates_nothing() { + let mut s = Session::default(); + run(&mut s, "construct.plane.offset", json!({"base": "XY", "offset": 5, "name": "Shelf"})); + run(&mut s, "sketch.create", json!({"plane": "XY", "name": "Outline"})); + run(&mut s, "sketch.rectangle.two_point", json!({"p0": [0, 0], "p1": [10, 6]})); + run(&mut s, "sketch.finish", json!({})); + run(&mut s, "solid.extrude", json!({"distance": 4, "name": "Plate"})); + let labels = |s: &Session| { + let st = s.model.state(); + let results: Vec = s.model.results.iter().map(|r| r.name.clone()).collect(); + let sketches: Vec = st.sketches.iter().map(|k| k.name.clone()).collect(); + let planes: Vec = st.construct.iter().map(|c| c.name.clone()).collect(); + (results, sketches, planes) + }; + for (feature, name) in [("Outline", "Profile"), ("Plate", "Base plate")] { + s.evaluations = 0; + run(&mut s, "timeline.rename", json!({"feature": feature, "name": name})); + assert_eq!(s.evaluations, 0, "renaming {feature} evaluates nothing"); + let mut fresh = Session::new((*s.doc).clone()); + fresh.refresh(); + assert_eq!(labels(&s), labels(&fresh)); + s.refresh(); + assert_eq!(s.model.last_recomputed, 0, "the next evaluation reuses every result"); + } + let renamed = labels(&s); + s.evaluations = 0; + run(&mut s, "edit.undo", json!({})); + assert!(labels(&s).0.contains(&"Profile".to_string()) && labels(&s).0.contains(&"Plate".to_string())); + run(&mut s, "edit.redo", json!({})); + assert_eq!(labels(&s), renamed); + assert_eq!(s.evaluations, 0, "undo and redo of a rename evaluate nothing"); + // A sketch on the plane names it: renaming the plane renames it there too, which is evaluated. + run(&mut s, "sketch.create", json!({"plane": "Shelf", "name": "Top"})); + run(&mut s, "sketch.finish", json!({})); + s.evaluations = 0; + run(&mut s, "timeline.rename", json!({"feature": "Shelf", "name": "Ledge"})); + assert!(s.evaluations > 0); + assert!(labels(&s).2.contains(&"Ledge".to_string())); + // A failed pattern's error quotes its source's name: renaming the source is evaluated, so + // the error names it as an evaluation does. + run(&mut s, "solid.pattern.rectangular", json!({"features": ["Base plate"], "dir1": [0, 0, 1], "count1": 2, "spacing1": 10, "name": "Copies"})); + let copies = s.doc.find_feature("Copies").unwrap().id; + if let Some(solidcraft_doc::FeatureKind::Pattern { features, .. }) = s.doc_mut().feature_mut(copies).map(|f| &mut f.kind) { + *features = vec!["Top".into()]; + } + s.refresh(); + let failed = |s: &Session| s.model.results.iter().filter_map(|r| r.error.clone()).collect::>(); + assert!(failed(&s).iter().any(|e| e.contains("Top")), "{:?}", failed(&s)); + s.evaluations = 0; + run(&mut s, "timeline.rename", json!({"feature": "Top", "name": "Lid sketch"})); + assert!(s.evaluations > 0, "a later error quotes the old name"); + assert!(failed(&s).iter().any(|e| e.contains("Lid sketch")), "{:?}", failed(&s)); + let mut fresh = Session::new((*s.doc).clone()); + fresh.refresh(); + assert_eq!(failed(&s), failed(&fresh)); +} diff --git a/crates/engine/src/cmd/interference.rs b/crates/engine/src/cmd/interference.rs index 06c5c1bfc..43781bb66 100644 --- a/crates/engine/src/cmd/interference.rs +++ b/crates/engine/src/cmd/interference.rs @@ -31,6 +31,8 @@ const MAX_BUDGET_S: f64 = 86_400.0; /// How many chord tolerances apart (of both meshes together) two meshes must be to clear a pair /// without intersecting it: twice what the tolerances allow, for meshers that sag a little more. const MESH_MARGIN: f64 = 4.0; +/// Why a mesh body is listed under `unchecked` (here and in `inspect.clearance`). +pub(super) const MESH_NOT_CHECKED: &str = "mesh body: not checked"; /// Most pairs listed under `slowest`. const SLOWEST: usize = 8; @@ -73,8 +75,8 @@ pub(super) fn interference(s: &mut Session, p: &Value) -> Result { let budget = std::time::Duration::from_secs_f64(budget_s); let want = string_list(p, "bodies"); let st = s.world_state(); - let bodies: Vec<&solidcraft_doc::ModelBody> = - st.bodies.iter().filter(|b| want.is_empty() || want.contains(&b.name)).filter(|b| !b.body.is_mesh()).collect(); + let (meshes_left, bodies): (Vec<&solidcraft_doc::ModelBody>, Vec<&solidcraft_doc::ModelBody>) = + st.bodies.iter().filter(|b| want.is_empty() || want.contains(&b.name)).partition(|b| b.body.is_mesh()); // The bodies' display meshes, made once (in parallel) and kept on the bodies: a design open // in the app has them already. @@ -152,7 +154,9 @@ pub(super) fn interference(s: &mut Session, p: &Value) -> Result { let (done, threads) = run_jobs(jobs, left); let waited_ms = waited.elapsed().as_secs_f64() * 1000.0; - let (mut hits, mut unchecked, mut timed) = (Vec::new(), Vec::new(), Vec::new()); + // Mesh bodies are not intersected: say so, rather than let `count: 0` read as "no overlap". + let mut unchecked: Vec = meshes_left.iter().map(|b| json!({"a": b.name, "b": null, "reason": MESH_NOT_CHECKED})).collect(); + let (mut hits, mut timed) = (Vec::new(), Vec::new()); let (mut not_checked, mut boolean_ms, mut tessellate_ms) = (0usize, 0.0, 0.0); for ((a, b), d) in done { let Some(d) = d else { diff --git a/crates/engine/src/cmd/interference_tests.rs b/crates/engine/src/cmd/interference_tests.rs index 9d65ee89a..2be9c0383 100644 --- a/crates/engine/src/cmd/interference_tests.rs +++ b/crates/engine/src/cmd/interference_tests.rs @@ -108,3 +108,51 @@ fn pairs_left_when_the_budget_runs_out_are_listed_not_checked() { assert!(s.execute("inspect.interference", &json!({"budget_s": bad})).is_err(), "{bad}"); } } + +/// Two STL copies of a cube inserted into a design. Returns the names of the two mesh bodies. +pub(super) fn insert_two_mesh_cubes(s: &mut Session, tag: &str) -> Vec { + let dir = std::env::temp_dir().join(format!("solidcraft-mesh-unchecked-{tag}-{}", std::process::id())); + let _ = std::fs::remove_dir_all(&dir); + std::fs::create_dir_all(&dir).unwrap(); + let stl = dir.join("cube.stl"); + let mut cube = Session::default(); + run(&mut cube, "solid.box", json!({"length": 20, "width": 20, "height": 20, "corner": [0, 0, 0], "body_name": "Cube"})); + run(&mut cube, "file.export", json!({"path": stl.to_string_lossy()})); + for _ in 0..2 { + run(s, "file.insert_mesh", json!({"path": stl.to_string_lossy()})); + } + let _ = std::fs::remove_dir_all(&dir); + s.world_state().bodies.iter().filter(|b| b.body.is_mesh()).map(|b| b.name.clone()).collect() +} + +/// #3249: mesh bodies (STL, 3MF, OBJ imports) are not intersected, but they used to vanish from +/// the answer: `count: 0, unchecked: []` read as "no collision". Each is now listed in `unchecked` +/// with a reason, and the solid bodies are checked as before. +#[test] +fn mesh_bodies_are_listed_as_unchecked_not_dropped() { + let mut s = Session::default(); + let meshes = insert_two_mesh_cubes(&mut s, "interference"); + assert_eq!(meshes.len(), 2, "{meshes:?}"); + // Only meshes: nothing is checked, and both are said to be left out. + let i = run(&mut s, "inspect.interference", json!({})); + assert_eq!((i["count"].as_u64(), i["checked"].as_u64()), (Some(0), Some(0)), "{i}"); + let unchecked = i["unchecked"].as_array().cloned().unwrap_or_default(); + assert_eq!(unchecked.len(), 2, "{i}"); + for (u, name) in unchecked.iter().zip(&meshes) { + assert_eq!(u["a"].as_str(), Some(name.as_str()), "{i}"); + assert!(u["b"].is_null(), "{i}"); + assert_eq!(u["reason"], "mesh body: not checked", "{i}"); + } + // With solid bodies beside them: those are checked, the meshes are still listed. + run(&mut s, "solid.box", json!({"length": 10, "width": 10, "height": 10, "corner": [100, 0, 0], "operation": "new", "body_name": "A"})); + run(&mut s, "solid.box", json!({"length": 10, "width": 10, "height": 10, "corner": [105, 0, 0], "operation": "new", "body_name": "B"})); + let i = run(&mut s, "inspect.interference", json!({})); + assert_eq!((i["count"].as_u64(), i["checked"].as_u64()), (Some(1), Some(2)), "{i}"); + assert_eq!(i["unchecked"].as_array().map(Vec::len), Some(2), "{i}"); + // Naming only solid bodies lists no mesh; naming a mesh body lists just that one. + let i = run(&mut s, "inspect.interference", json!({"bodies": ["A", "B"]})); + assert_eq!(i["unchecked"].as_array().map(Vec::len), Some(0), "{i}"); + let i = run(&mut s, "inspect.interference", json!({"bodies": ["A", meshes[0]]})); + assert_eq!(i["checked"], 1, "{i}"); + assert_eq!(i["unchecked"][0]["a"].as_str(), Some(meshes[0].as_str()), "{i}"); +} diff --git a/crates/engine/src/cmd/joints.rs b/crates/engine/src/cmd/joints.rs index bac77a780..9917c5dd2 100644 --- a/crates/engine/src/cmd/joints.rs +++ b/crates/engine/src/cmd/joints.rs @@ -94,7 +94,7 @@ pub static COMMANDS: &[CommandSpec] = &[ ), CommandSpec::new("joint.solve", "Solve Joints", solve_cmd).icon("compute").params("re-place the occurrences from the joints → conflicts, errors, dof"), CommandSpec::new("inspect.interference", "Interference", super::interference::interference).at("SOLID", "INSPECT").icon("interference").noundo().params( - "bodies?: [names] (default: all, in world placement); budget_s?: seconds (default 240, at most 86400: pairs not finished by then are listed in unchecked as \"not checked: the time budget … ran out\" and the call returns) → interferences: pairs that overlap with the overlap volume, area, bounding box and centre (a pin a hair off the axis of a hole of its size also has near_coaxial: {offset_mm, length_mm}, its volume the crescent the walls share); unchecked: pairs that could not be checked, with the reason. Bodies are pruned by bounding box first, then by their display meshes (pairs whose meshes stay apart by more than their chord tolerances, neither inside the other, are clear without a boolean), so any number of bodies is fine; the pairs left are intersected exactly, in parallel on desktop, the slowest first; at most 20000 pairs whose boxes overlap are intersected per call (truncated: true and skipped_pairs: n say when more were left out). Also: pairs_candidate (boxes overlap), pairs_cleared (by the meshes), pairs_intersected, pairs_not_checked, budget_exceeded, threads (worker threads; 0: on the calling thread), boolean_ms and tessellate_ms (kernel time summed over the pairs), slowest: [{a, b, ms, boolean_ms, tessellate_ms}] and ms", + "bodies?: [names] (default: all, in world placement); budget_s?: seconds (default 240, at most 86400: pairs not finished by then are listed in unchecked as \"not checked: the time budget … ran out\" and the call returns) → interferences: pairs that overlap with the overlap volume, area, bounding box and centre (a pin a hair off the axis of a hole of its size also has near_coaxial: {offset_mm, length_mm}, its volume the crescent the walls share); unchecked: [{a, b, reason}], the pairs that could not be checked, with the reason, and each mesh body (STL, 3MF or OBJ import: not intersected) as {a: name, b: null, reason: \"mesh body: not checked\"}, so count: 0 is not read as no overlap (checked counts the solid bodies). Bodies are pruned by bounding box first, then by their display meshes (pairs whose meshes stay apart by more than their chord tolerances, neither inside the other, are clear without a boolean), so any number of bodies is fine; the pairs left are intersected exactly, in parallel on desktop, the slowest first; at most 20000 pairs whose boxes overlap are intersected per call (truncated: true and skipped_pairs: n say when more were left out). Also: pairs_candidate (boxes overlap), pairs_cleared (by the meshes), pairs_intersected, pairs_not_checked, budget_exceeded, threads (worker threads; 0: on the calling thread), boolean_ms and tessellate_ms (kernel time summed over the pairs), slowest: [{a, b, ms, boolean_ms, tessellate_ms}] and ms", ), ]; diff --git a/crates/engine/src/cmd/joints_tests.rs b/crates/engine/src/cmd/joints_tests.rs index af2590786..736757088 100644 --- a/crates/engine/src/cmd/joints_tests.rs +++ b/crates/engine/src/cmd/joints_tests.rs @@ -549,6 +549,104 @@ fn slider_crank_moves_the_piston() { } } +/// A slotted-arm drive: a clamp turns about the origin (Yaw) and carries a pin 26 from it; an arm +/// turns about a shaft 52 out on a motor fixed to the ground, and the pin slides in the arm's slot +/// (Slot: its frame at the shaft, x along the slot towards the pin). Every joint of the loop +/// moves when it does, the slot's included. The pin's face sits `gap` mm off the arm's along +/// the axes: a gap no value of the loop takes out, within the conflict check. +fn slotted_arm(yaw_first: bool, gap: f64) -> Session { + let mut s = Session::default(); + for (name, x) in [("Ground", 0.0), ("Clamp", 26.0), ("Motor", 52.0), ("Arm", 40.0)] { + part(&mut s, name, [x - 1.0, -1.0, -5.0]); + } + let g = occ(&s, "Ground"); + run(&mut s, "occurrence.ground", json!({"occurrence": g, "grounded": true})); + // The joint order sets the tree: with the yaw first, the arm hangs from the clamp through the + // slot and the arm's shaft closes the loop; with the motor first, the slot closes it. + if yaw_first { + pin(&mut s, "revolute", "Yaw", "Ground", "Clamp", Vec3::ZERO, Vec3::Z); + } + pin(&mut s, "rigid", "Mount", "Ground", "Motor", Vec3::new(52.0, 0.0, 0.0), Vec3::Z); + if !yaw_first { + pin(&mut s, "revolute", "Yaw", "Ground", "Clamp", Vec3::ZERO, Vec3::Z); + } + pin(&mut s, "revolute", "Shaft", "Arm", "Motor", Vec3::new(52.0, 0.0, 0.0), Vec3::Z); + let r = run( + &mut s, + "joint.create", + json!({"type": "pin_slot", "a": framed("Arm", [52.0, 0.0, 0.0], [0.0, 0.0, 1.0], [-1.0, 0.0, 0.0]), + "b": framed("Clamp", [26.0, 0.0, gap], [0.0, 0.0, 1.0], [-1.0, 0.0, 0.0]), "flip": true, "values": [0, 26], "name": "Slot"}), + ); + assert_eq!(r["conflicts"].as_array().map(Vec::len), Some(0), "{r}"); + s +} + +/// A joint's stored values. +fn values_of(s: &Session, joint: &str) -> Vec { + s.doc.assembly.joints.iter().find(|j| j.name == joint).map(|j| j.values.clone()).unwrap_or_default() +} + +/// Driving either end of the slotted arm moves the other: the arm turns atan(26 sin θ / (52 − +/// 26 cos θ)) for a yaw θ, and the pin slides out from 26 to √(26² + 52² − 2·26·52 cos θ). +#[test] +fn slotted_arm_drives_both_ways() { + for (yaw_first, gap) in [(false, 0.0), (true, 0.0), (false, 3e-8), (true, 3e-8)] { + slotted_arm_drives(yaw_first, gap); + } +} + +fn slotted_arm_drives(yaw_first: bool, gap: f64) { + let mut s = slotted_arm(yaw_first, gap); + let (shaft, pin_at) = (Vec3::new(52.0, 0.0, 0.0), Vec3::new(26.0, 0.0, 0.0)); + let check = |s: &Session, what: &str| { + let th = values_of(s, "Yaw").first().copied().unwrap_or(f64::NAN); + let p = Vec3::new(26.0 * th.cos(), 26.0 * th.sin(), 0.0); + assert!(near(place(s, "Clamp", pin_at), p), "{what}: pin {:?} wants {p:?}", place(s, "Clamp", pin_at)); + let arm = values_of(s, "Shaft").first().copied().unwrap_or(f64::NAN); + let want = (26.0 * th.sin()).atan2(52.0 - 26.0 * th.cos()); + assert!((arm.abs() - want.abs()).abs() < 1e-6, "{what}: arm {arm} wants ±{want}"); + // The arm's slot points at the pin, which sits as far out as the slot says. + let tip = place(s, "Arm", Vec3::new(40.0, 0.0, 0.0)); + let along = (p - shaft) * (1.0 / (p - shaft).len()); + assert!(near(tip, shaft + along * 12.0), "{what}: arm tip {tip:?}"); + let slide = values_of(s, "Slot").get(1).copied().unwrap_or(f64::NAN); + assert!((slide.abs() - (p - shaft).len()).abs() < 1e-6, "{what}: slide {slide} wants {}", (p - shaft).len()); + }; + check(&s, &format!("yaw first {yaw_first}, gap {gap}, at rest")); + for v in [10.0, 40.0, -40.0, 0.0] { + let r = run(&mut s, "joint.drive", json!({"joint": "Yaw", "value": v})); + assert!( + r["stopped_by_loop"].is_null() && r["conflicts"].as_array().map(Vec::len) == Some(0), + "yaw first {yaw_first}, gap {gap}, yaw {v}°: {r}" + ); + assert!((values_of(&s, "Yaw").first().copied().unwrap_or(f64::NAN) - f64::to_radians(v)).abs() < 1e-9); + check(&s, &format!("yaw first {yaw_first}, gap {gap}, yaw {v}°")); + } + let slide = values_of(&s, "Slot").get(1).copied().unwrap_or(f64::NAN).abs(); + assert!((slide - 26.0).abs() < 1e-6, "{slide}"); + for v in [15.0, -27.0, 27.0] { + let r = run(&mut s, "joint.drive", json!({"joint": "Shaft", "value": v})); + assert!( + r["stopped_by_loop"].is_null() && r["conflicts"].as_array().map(Vec::len) == Some(0), + "yaw first {yaw_first}, gap {gap}, arm {v}°: {r}" + ); + assert!((values_of(&s, "Shaft").first().copied().unwrap_or(f64::NAN) - f64::to_radians(v)).abs() < 1e-9); + check(&s, &format!("yaw first {yaw_first}, gap {gap}, arm {v}°")); + } + // The clamp's pin reaches a point on its circle, the arm following. + let (th, at) = (20f64.to_radians(), place(&s, "Clamp", pin_at)); + let r = run(&mut s, "joint.reach", json!({"occurrence": "Clamp", "at": [at.x, at.y, at.z], "point": [26.0 * th.cos(), 26.0 * th.sin(), 0.0]})); + assert!(r["reached"] == json!(true) && r["stopped_by_loop"].is_null(), "yaw first {yaw_first}, gap {gap}, reach: {r}"); + check(&s, &format!("yaw first {yaw_first}, gap {gap}, reach")); + // A limit on the arm stops the yaw where the arm meets it. + run(&mut s, "joint.limits", json!({"joint": "Shaft", "min": -20, "max": 20})); + let r = run(&mut s, "joint.drive", json!({"joint": "Yaw", "value": 40})); + assert!(r["stopped_by_loop"].is_object() && r["conflicts"].as_array().map(Vec::len) == Some(0), "yaw first {yaw_first}, gap {gap}, limit: {r}"); + check(&s, &format!("yaw first {yaw_first}, gap {gap}, limit")); + let arm = values_of(&s, "Shaft").first().copied().unwrap_or(f64::NAN).abs().to_degrees(); + assert!(arm > 19.9 && arm <= 20.0 + 1e-9, "yaw first {yaw_first}, gap {gap}: the arm stopped at {arm}°"); +} + /// A joint frame on an occurrence, by origin and axes. fn framed(o: &str, origin: [f64; 3], z: [f64; 3], x: [f64; 3]) -> Value { json!({"occurrence": o, "frame": {"origin": origin, "z": z, "x": x}}) diff --git a/crates/engine/src/cmd/motion.rs b/crates/engine/src/cmd/motion.rs index d83094a84..e49e97334 100644 --- a/crates/engine/src/cmd/motion.rs +++ b/crates/engine/src/cmd/motion.rs @@ -179,6 +179,8 @@ pub fn collisions(s: &Session) -> Vec<(String, String, f64)> { /// How deep one body reaches into the other, when more than a touch (`None`: apart or /// touching). Points of each tessellation (vertices, edge midpoints, triangle centres) are /// tested against the other closed mesh: inside by ray parity, and deeper than the tolerance. +/// Edges are tested for crossing the other's surface too: plates crossing face to face have +/// no sample point inside (#3323). fn overlap(a: &Body, b: &Body) -> Option { let (ma, mb) = (a.tessellate((a.size() * 1e-3).max(1e-3)).ok()?, b.tessellate((b.size() * 1e-3).max(1e-3)).ok()?); mesh_overlap(&ma, &mb, 1e-4 * a.size().max(b.size()).max(1.0)) @@ -208,8 +210,10 @@ fn deepest(a: &solidcraft_geom::Mesh, b: &solidcraft_geom::Mesh, tol: f64) -> f6 let tb = tris(b); let bx = b.bounds(); let mut pts: Vec = a.positions.clone(); + let mut edges: Vec<(Vec3, Vec3)> = Vec::new(); for [p, q, r] in tris(a) { pts.extend([(p + q) * 0.5, (q + r) * 0.5, (r + p) * 0.5, (p + q + r) * (1.0 / 3.0)]); + edges.extend([(p, q), (q, r), (r, p)]); } let mut best = 0.0f64; for p in pts.into_iter().take(200_000) { @@ -227,6 +231,52 @@ fn deepest(a: &solidcraft_geom::Mesh, b: &solidcraft_geom::Mesh, tol: f64) -> f6 best = d; } } + for (p, q) in edges.into_iter().take(200_000) { + best = best.max(crossing(p, q, &tb, bx, tol)); + } + best +} + +/// Where the edge `p`→`q` of one mesh reaches through the surface `tb` of the other: the +/// depth, or 0 when it misses, only touches, or grazes (the middle of the chord it cuts must +/// lie inside, deeper than `tol`, as elsewhere in the check). Two plates crossing each other's +/// faces put no vertex, mid-edge or triangle centre of either inside the other — the chord an +/// edge cuts is how that crossing is seen (#3323). +fn crossing(p: Vec3, q: Vec3, tb: &[[Vec3; 3]], bx: Aabb3, tol: f64) -> f64 { + if p.x.max(q.x) < bx.min.x - tol + || p.x.min(q.x) > bx.max.x + tol + || p.y.max(q.y) < bx.min.y - tol + || p.y.min(q.y) > bx.max.y + tol + || p.z.max(q.z) < bx.min.z - tol + || p.z.min(q.z) > bx.max.z + tol + { + return 0.0; + } + let d = q - p; + let len2 = d.dot(d); + if len2 <= 0.0 { + return 0.0; + } + // Where the edge crosses the surface, along the edge. A crossing at a vertex or along an + // edge shared by two triangles is found twice (or more); merges of neighbours leave the + // entry and exit of each chord as one pair each. + let mut hits: Vec = tb.iter().filter_map(|t| contact_sweep::segment_hits_triangle(p, q, t)).map(|h| (h - p).dot(d) / len2).collect(); + if hits.len() < 2 { + return 0.0; + } + hits.sort_by(|x, y| x.total_cmp(y)); + hits.dedup_by(|x, y| (*x - *y).abs() < 1e-6); + let mut best = 0.0; + for pair in hits.chunks(2) { + if pair.len() < 2 { + break; + } + let m = p + d * ((pair[0] + pair[1]) * 0.5); + let deep = tb.iter().map(|[a, b, c]| closest(m, *a, *b, *c).dist(m)).fold(f64::MAX, f64::min); + if deep > tol.max(best) && inside(m, tb) { + best = deep; + } + } best } diff --git a/crates/engine/src/cmd/motion_tests.rs b/crates/engine/src/cmd/motion_tests.rs index 44974d82b..5d7594f7c 100644 --- a/crates/engine/src/cmd/motion_tests.rs +++ b/crates/engine/src/cmd/motion_tests.rs @@ -71,6 +71,57 @@ fn contact_sets_stop_a_driven_joint_at_touching() { assert!(s.execute("contact.create", &json!({"occurrences": ["A"]})).is_err()); } +/// A base plate and a lid plate (both 40 × 40 × 3) hinged along their shared edge, driven +/// past flat by `angle` degrees. +fn hinged_plates(angle: f64) -> Session { + let mut s = Session::default(); + run( + &mut s, + "solid.box", + json!({"length": 40.0, "width": 40.0, "height": 3.0, "corner": [-20.0, -40.0, 0.0], "operation": "new", "body_name": "BasePlate"}), + ); + run( + &mut s, + "solid.box", + json!({"length": 40.0, "width": 40.0, "height": 3.0, "corner": [-20.0, 0.0, 0.0], "operation": "new", "body_name": "LidPlate"}), + ); + run(&mut s, "component.create", json!({"name": "Base", "parent": "root", "activate": false})); + run(&mut s, "component.move_bodies", json!({"bodies": ["BasePlate"], "component": "Base"})); + run(&mut s, "component.create", json!({"name": "Lid", "parent": "root", "activate": false})); + run(&mut s, "component.move_bodies", json!({"bodies": ["LidPlate"], "component": "Lid"})); + run(&mut s, "occurrence.ground", json!({"occurrence": "Base:1", "grounded": true})); + run( + &mut s, + "joint.create", + json!({"type": "revolute", "name": "Hinge", "flip": true, "limits": [[0.0, 270.0]], + "a": {"occurrence": "Base", "point": [0.0, 0.0, 3.0], "z": [1.0, 0.0, 0.0]}, + "b": {"occurrence": "Lid", "point": [0.0, 0.0, 3.0], "z": [1.0, 0.0, 0.0]}}), + ); + run(&mut s, "joint.drive", json!({"joint": "Hinge", "value": angle, "quiet": true})); + run(&mut s, "contact.create", json!({"occurrences": ["Base:1", "Lid:1"]})); + s +} + +/// Regression (#3323): past the angles where a corner lies inside the other plate, no vertex, +/// mid-edge or triangle centre of either plate is inside it, and `contact.check` reported no +/// collision while `inspect.interference` found the overlap. The faces crossing is the +/// collision; the check must see it. +#[test] +fn contact_check_finds_plates_crossing_face_to_face() { + // Flat against the base: touching is not crossing. + let mut s = hinged_plates(180.0); + assert_eq!(run(&mut s, "contact.check", json!({}))["collisions"].as_array().map(Vec::len), Some(0), "flat"); + for angle in [210.0, 240.0, 270.0] { + let mut s = hinged_plates(angle); + let collisions = run(&mut s, "contact.check", json!({}))["collisions"].clone(); + let c = collisions.as_array().unwrap(); + assert_eq!(c.len(), 1, "{angle}°: {c:?}"); + assert_eq!(c[0]["a"], "Base:1"); + assert_eq!(c[0]["b"], "Lid:1"); + assert!(c[0]["depth_mm"].as_f64().unwrap() > 0.5, "{angle}°: {c:?}"); + } +} + #[test] fn contact_uses_preserved_body_placements_after_component_reassignment() { let mut s = Session::default(); diff --git a/crates/engine/src/cmd/sketch.rs b/crates/engine/src/cmd/sketch.rs index 96d9bc5b0..63f827732 100644 --- a/crates/engine/src/cmd/sketch.rs +++ b/crates/engine/src/cmd/sketch.rs @@ -78,7 +78,7 @@ pub static COMMANDS: &[CommandSpec] = &[ .icon("circle3") .enabled(in_sketch) .params(concat!("p0, p1, p2", connect_doc!(), created_doc!())), - CommandSpec::new("sketch.arc.three_point", "3-Point Arc", arc_three).at("SKETCH", "CREATE").icon("arc3").enabled(in_sketch).params(concat!("start, end, through", connect_doc!(), created_doc!())), + CommandSpec::new("sketch.arc.three_point", "3-Point Arc", arc_three).at("SKETCH", "CREATE").icon("arc3").enabled(in_sketch).params(concat!("start, end, through: [x,y] or point ref (a referenced through point stays on the arc)", connect_doc!(), created_doc!())), CommandSpec::new("sketch.arc.center_point", "Center Point Arc", arc_center) .at("SKETCH", "CREATE") .icon("arc_center") @@ -117,7 +117,7 @@ pub static COMMANDS: &[CommandSpec] = &[ .at("SKETCH", "CONSTRAINTS") .icon("c_hv") .enabled(in_sketch) - .params("line: id | points: [a, b]; mode?: horizontal|vertical"), + .params("line: id | points: [a, b] (point ids or {midpoint: line_id}; accepted midpoints reuse or create a point with a Midpoint constraint); mode?: horizontal|vertical"), CommandSpec::new("sketch.constraint.coincident", "Coincident", c_coincident) .at("SKETCH", "CONSTRAINTS") .icon("c_coincident") @@ -1193,18 +1193,22 @@ fn arc_three(s: &mut Session, p: &Value) -> Result { let id = str_(p, "id").map(str::to_string); let (out, info) = draw(s, p, cmd, |sk, doc| { let (a, b) = (req_parg(sk, doc, p, "start", cmd)?, req_parg(sk, doc, p, "end", cmd)?); - let t = req_vec2(cmd, p, "through")?; - let (o, _) = circumcircle(a.pos(), t, b.pos()).ok_or_else(|| bad(cmd, "the points are collinear"))?; + let t = req_parg(sk, doc, p, "through", cmd)?; + let (o, _) = circumcircle(a.pos(), t.pos(), b.pos()).ok_or_else(|| bad(cmd, "the points are collinear"))?; // Counter-clockwise from start to end must pass the through point; otherwise swap. let ang = |q: Vec2| (q - o).angle(); let ccw_span = |from: f64, to: f64| (to - from).rem_euclid(std::f64::consts::TAU); - let ccw = ccw_span(ang(a.pos()), ang(t)) < ccw_span(ang(a.pos()), ang(b.pos())); + let ccw = ccw_span(ang(a.pos()), ang(t.pos())) < ccw_span(ang(a.pos()), ang(b.pos())); let (s0, e0) = if ccw { (a, b) } else { (b, a) }; let ci = sk.add_arc(o, s0.pos(), e0.pos(), [None, s0.idx(), e0.idx()], id.as_deref())?; if let Some(c) = sk.curves.get_mut(ci) { c.reversed = !ccw; } - Ok((ids_of(sk, &[ci]), Vec::new())) + let mut cons = Vec::new(); + if let Some(point) = t.idx() { + cons.push(add_c(sk, ConstraintKind::PointOnCurve { p: point, c: ci })?); + } + Ok((ids_of(sk, &[ci]), cons)) })?; Ok(result(out, info)) } @@ -1621,14 +1625,68 @@ pub(super) fn residual_of(sk: &Sketch, id: &str) -> Option { sk.constraints.iter().position(|c| c.id == id).and_then(|ci| solidcraft_sketch::constraint_residual(sk, ci)) } +/// Temporary pick intent. Saved sketches use ordinary points and constraints only. +#[derive(Clone, Copy, PartialEq, Eq)] +enum AlignmentTarget { + Point(usize), + Midpoint(usize), +} + +impl AlignmentTarget { + fn materialize(self, sk: &mut Sketch) -> Result { + match self { + Self::Point(p) => Ok(p), + Self::Midpoint(l) => { + // Reuse an existing associative midpoint, including one created by drawing. + // Coincident coordinates alone are insufficient: its relationship must exist. + if let Some(p) = sk.constraints.iter().find_map(|c| match c.kind { + ConstraintKind::Midpoint { p, l: line } if line == l && !c.driven => Some(p), + _ => None, + }) { + return Ok(p); + } + let cmd = "sketch.constraint.horizontal_vertical"; + let (a, b) = line_pts(sk, l).ok_or_else(|| bad(cmd, "a midpoint reference needs a line"))?; + let p = sk.add_point((a + b) * 0.5, None)?; + add_c(sk, ConstraintKind::Midpoint { p, l })?; + Ok(p) + } + } + } +} + fn c_horizontal_vertical(s: &mut Session, p: &Value) -> Result { let cmd = "sketch.constraint.horizontal_vertical"; let mode = str_(p, "mode").map(str::to_ascii_lowercase); constrain(s, p, cmd, |sk| { if let Some(pts) = p.get("points").and_then(Value::as_array) { - let a = point_ref(sk, pts.first(), cmd, "points[0]")?; - let b = point_ref(sk, pts.get(1), cmd, "points[1]")?; - let d = sk.point(b).unwrap_or_default() - sk.point(a).unwrap_or_default(); + if pts.len() != 2 { + return Err(bad(cmd, "`points` needs exactly two point references")); + } + let target = |v: &Value| -> Result { + if let Some(line) = v.get("midpoint") { + let l = curve_ref(sk, Some(line), cmd, "midpoint")?; + if !matches!(sk.curves.get(l).map(|c| &c.kind), Some(CurveKind::Line { .. })) { + return Err(bad(cmd, "a midpoint reference needs a line")); + } + Ok(AlignmentTarget::Midpoint(l)) + } else { + Ok(AlignmentTarget::Point(point_ref(sk, Some(v), cmd, "points")?)) + } + }; + // Validate both intents before materializing either. Hover and a pending first + // pick never change the sketch; this command accepts both in one undo step. + let a = target(pts.first().ok_or_else(|| bad(cmd, "missing first point"))?)?; + let b = target(pts.get(1).ok_or_else(|| bad(cmd, "missing second point"))?)?; + if a == b { + return Err(bad(cmd, "alignment needs two distinct point references")); + } + let a = a.materialize(sk)?; + let b = b.materialize(sk)?; + if a == b { + return Err(bad(cmd, "alignment needs two distinct points")); + } + let d = sk.point(b).ok_or_else(|| bad(cmd, "invalid second point"))? - sk.point(a).ok_or_else(|| bad(cmd, "invalid first point"))?; let horiz = match mode.as_deref() { Some("horizontal") => true, Some("vertical") => false, @@ -2075,9 +2133,15 @@ fn dimension(s: &mut Session, p: &Value) -> Result { (ConstraintKind::PointLineDistance { p: bq, l: a, value: d }, d) } } else { - match text_at { - Some(t) => angle_by_sector(a, b, (a0, a1), (b0, b1), t).ok_or_else(|| bad(cmd, "cannot place that angle"))?, - None => { + match (text_at, angle_from_shared_end(a, b, (a0, a1), (b0, b1))) { + (Some(t), _) => angle_by_sector(a, b, (a0, a1), (b0, b1), t).ok_or_else(|| bad(cmd, "cannot place that angle"))?, + // Two lines from one point (two radii, a corner) measure the angle + // between them, from that point towards their other ends (#2724). + (None, Some((between, supplement))) => { + alt = Some(supplement); + between + } + (None, None) => { let mut ang = da.cross(db).atan2(da.dot(db)); let (mut ka, mut kb) = (a, b); if ang < 0.0 { @@ -2295,6 +2359,39 @@ fn angle_by_sector(a: usize, b: usize, (a0, a1): (Vec2, Vec2), (b0, b1): (Vec2, None } +/// The angle dimension between two lines that run from one shared end, measured from that end +/// towards their other ends (#2724), and its supplement; None when they share no end or are +/// collinear. +fn angle_from_shared_end( + a: usize, + b: usize, + (a0, a1): (Vec2, Vec2), + (b0, b1): (Vec2, Vec2), +) -> Option<((ConstraintKind, f64), (ConstraintKind, f64))> { + let tol = 1e-9 * a0.dist(a1).max(b0.dist(b1)).max(1.0); + // The sign that turns each line's direction into its ray away from the shared end. + let (sa, sb) = [(a0, b0, 1.0, 1.0), (a0, b1, 1.0, -1.0), (a1, b0, -1.0, 1.0), (a1, b1, -1.0, -1.0)] + .into_iter() + .find(|(p, q, ..)| p.dist(*q) <= tol) + .map(|(_, _, sa, sb)| (sa, sb))?; + let (ra, rb) = ((a1 - a0) * sa, (b1 - b0) * sb); + let mut ang = ra.cross(rb).atan2(ra.dot(rb)); + let (mut first, mut second) = ((a, sa), (b, sb)); + if ang < 0.0 { + ang = -ang; + std::mem::swap(&mut first, &mut second); + } + if !(ang > 1e-9 && ang < std::f64::consts::PI - 1e-9) { + return None; + } + // The constraint turns the first line's direction onto the second's, negated when the + // two rays run against their lines' directions differently. + let flip = first.1 * second.1 < 0.0; + let between = (ConstraintKind::Angle { a: first.0, b: second.0, value: ang, flip }, ang); + let supplement = (ConstraintKind::Angle { a: second.0, b: first.0, value: std::f64::consts::PI - ang, flip: !flip }, std::f64::consts::PI - ang); + Some((between, supplement)) +} + pub(super) fn round6(x: f64) -> f64 { (x * 1e6).round() / 1e6 } diff --git a/crates/engine/src/cmd/sketch_constraints_tests.rs b/crates/engine/src/cmd/sketch_constraints_tests.rs index 56063ccdc..f835ded7e 100644 --- a/crates/engine/src/cmd/sketch_constraints_tests.rs +++ b/crates/engine/src/cmd/sketch_constraints_tests.rs @@ -313,6 +313,47 @@ fn an_angle_between_lines_takes_the_reading_nearest_its_value_and_reports_degree assert_eq!(d["unit"], "mm", "{d}"); } +#[test] +fn an_angle_between_two_lines_from_one_point_measures_the_angle_between_them() { + // #2724: two radii of a circle 120° apart measured 60°, and 150° apart 30°. + for deg in [30.0_f64, 60.0, 90.0, 120.0, 150.0] { + let far = [20.0 * deg.to_radians().cos(), 20.0 * deg.to_radians().sin()]; + // Both drawn out from the centre, the second drawn in towards it, or a corner. + let shapes = [ + vec![json!([[0, 0], [20, 0]]), json!([[0, 0], far])], + vec![json!([[0, 0], [20, 0]]), json!([far, [0, 0]])], + vec![json!([[20, 0], [0, 0], far])], + ]; + for (i, lines) in shapes.iter().enumerate() { + let mut s = new_sketch(); + for pts in lines { + run(&mut s, "sketch.line", json!({"points": pts, "connect": false})); + } + let d = run(&mut s, "sketch.dimension", json!({"entities": ["l1", "l2"]})); + assert!((d["measured"].as_f64().unwrap() - deg).abs() < 1e-4, "{deg}° shape {i}: {d}"); + } + // A value turns the corner's sides to it, keeping them on the same side of each other. + let mut s = new_sketch(); + run(&mut s, "sketch.line", json!({"points": [[20, 0], [0, 0], far], "connect": false})); + let want = deg + 10.0; + let d = run(&mut s, "sketch.dimension", json!({"entities": ["l1", "l2"], "value": format!("{want} deg")})); + assert!((d["measured"].as_f64().unwrap() - want).abs() < 1e-6, "{deg}°: {d}"); + let sk = sketch(&s); + let line = |l: &str| crate::cmd::sketch::line_pts(&sk, sk.curve_index(l).unwrap()).unwrap(); + let ((a0, a1), (b0, b1)) = (line("l1"), line("l2")); + assert!(a1.dist(b0) < 1e-9, "the corner stays joined"); + let (ra, rb) = (a0 - a1, b1 - b0); + let between = ra.cross(rb).abs().atan2(ra.dot(rb)).to_degrees(); + assert!((between - want).abs() < 1e-6, "{deg}°: the sides are {between}° apart"); + } + // Lines that share no end keep the acute reading. + let mut s = new_sketch(); + run(&mut s, "sketch.line", json!({"points": [[0, 0], [20, 0]], "connect": false})); + run(&mut s, "sketch.line", json!({"points": [[30, 10], [40, 27.3205]], "connect": false})); + let d = run(&mut s, "sketch.dimension", json!({"entities": ["l1", "l2"]})); + assert!((d["measured"].as_f64().unwrap() - 60.0).abs() < 1e-3, "{d}"); +} + #[test] fn symmetry_moves_a_free_line_between_two_fixed_lines() { // #1796: with both mirrored lines fixed, the symmetry line between them (a free construction @@ -332,3 +373,202 @@ fn symmetry_moves_a_free_line_between_two_fixed_lines() { assert!((at(end).x - x).abs() < 1e-9, "{end} moved to {:?}", at(end)); } } + +#[test] +fn midpoint_alignment_persists_undoes_and_survives_endpoint_edits() { + use solidcraft_sketch::ConstraintKind; + for mode in ["horizontal", "vertical"] { + for reverse in [false, true] { + let mut s = new_sketch(); + run(&mut s, "sketch.line", json!({"points":[[10,10],[30,20]],"infer":false,"connect":false})); + run(&mut s, "sketch.point", json!({"point":[24,40],"id":"target"})); + let before = s.doc.to_json(); + let undo = s.undo.len(); + let refs = if reverse { json!(["target",{"midpoint":"l1"}]) } else { json!([{"midpoint":"l1"},"target"]) }; + let result = run(&mut s, "sketch.constraint.horizontal_vertical", json!({"points":refs,"mode":mode})); + assert_eq!(result["created"]["points"].as_array().unwrap().len(), 1); + assert_eq!(result["created"]["constraints"].as_array().unwrap().len(), 2); + assert_eq!(result["sketch"]["dof"], 5, "H/V removes one degree of freedom; the midpoint adds none"); + assert!(result["created"]["curves"].as_array().unwrap().is_empty()); + assert_eq!(s.undo.len(), undo + 1); + let after = s.doc.to_json(); + run(&mut s, "edit.undo", json!({})); + assert_eq!(s.doc.to_json(), before); + run(&mut s, "edit.redo", json!({})); + assert_eq!(s.doc.to_json(), after); + let mut reopened = Session::new(solidcraft_doc::Document::from_json(&after).unwrap()); + reopened.active_sketch = s.active_sketch; + for end in [[50., -15.], [-20., 65.]] { + run(&mut reopened, "sketch.move_point", json!({"point":"l1.end","to":end})); + let sk = sketch(&reopened); + let point = sk.point(sk.resolve_point("target").unwrap()).unwrap(); + let mid = line_midpoint(&sk, "l1"); + assert!((if mode == "horizontal" { point.y - mid.y } else { point.x - mid.x }).abs() < 1e-6); + assert_eq!(sk.points.len(), 5); + } + let sk = sketch(&reopened); + assert!(sk.constraints.iter().any(|c| matches!(c.kind, ConstraintKind::Midpoint { .. }))); + assert!(sk.constraints.iter().any(|c| matches!(c.kind, ConstraintKind::HorizontalPoints { .. } | ConstraintKind::VerticalPoints { .. }))); + run(&mut reopened, "sketch.delete", json!({"entities":["l1"]})); + assert!(!sketch(&reopened).constraints.iter().any(|c| matches!(c.kind, ConstraintKind::Midpoint { .. }))); + assert!(sketch(&reopened).constraints.iter().any(|c| c.id == result["constraint"].as_str().unwrap())); + } + } +} + +#[test] +fn midpoint_alignment_rejects_invalid_or_conflicting_references_atomically() { + let mut s = new_sketch(); + run(&mut s, "sketch.line", json!({"points":[[10,10],[30,20]],"infer":false,"connect":false})); + run(&mut s, "sketch.circle.center", json!({"center":[40,50],"radius":3})); + run(&mut s, "sketch.constraint.fix", json!({"entities":["l1","c1"]})); + for points in [ + json!([{"midpoint":"l1"},"c1.center"]), + json!([{"midpoint":"c1"},"origin"]), + json!([{"midpoint":"missing"},"origin"]), + json!([{"midpoint":"l1"},{"midpoint":"l1"}]), + json!([{"midpoint":12},"origin"]), + json!([{"midpoint":"l1"}]), + json!([{"midpoint":"l1"},"origin","c1.center"]), + ] { + let before = s.doc.to_json(); + let undo = s.undo.len(); + assert!(s.execute("sketch.constraint.horizontal_vertical", &json!({"points":points,"mode":"vertical"})).is_err(), "{points}"); + assert_eq!(s.doc.to_json(), before); + assert_eq!(s.undo.len(), undo); + } +} + +fn line_midpoint(sk: &solidcraft_sketch::Sketch, id: &str) -> Vec2 { + // Read the curve's current endpoints: after a corner cut an original endpoint + // id can still name the retained construction side's corner. + let solidcraft_sketch::CurveKind::Line { a, b } = sk.curves[sk.curve_index(id).unwrap()].kind else { panic!("expected line") }; + (sk.point(a).unwrap() + sk.point(b).unwrap()) * 0.5 +} + +#[test] +fn midpoint_alignment_reuses_associative_points_and_rejects_self_alignment() { + use solidcraft_sketch::ConstraintKind; + let mut s = new_sketch(); + run(&mut s, "sketch.line", json!({"points":[[10,10],[30,20]],"infer":false,"connect":false})); + // A drawing-time midpoint is an ordinary, reusable point too. + run(&mut s, "sketch.line", json!({"points":["mid:l1",[20,40]],"infer":false,"connect":false})); + run(&mut s, "sketch.point", json!({"point":[24,50],"id":"target"})); + let count = sketch(&s).points.len(); + let result = run(&mut s, "sketch.constraint.horizontal_vertical", json!({"points":[{"midpoint":"l1"},"target"],"mode":"vertical"})); + assert!(result["created"]["points"].as_array().unwrap().is_empty()); + assert_eq!(result["created"]["constraints"].as_array().unwrap().len(), 1); + let sk = sketch(&s); + assert_eq!(sk.points.len(), count); + assert_eq!(sk.constraints.iter().filter(|c| matches!(c.kind, ConstraintKind::Midpoint { .. })).count(), 1); + for refs in [json!([{"midpoint":"l1"},"l2.start"]), json!(["l2.start",{"midpoint":"l1"}])] { + let before = s.doc.to_json(); + let undo = s.undo.len(); + assert!(s.execute("sketch.constraint.horizontal_vertical", &json!({"points":refs})).is_err()); + assert_eq!(s.doc.to_json(), before); + assert_eq!(s.undo.len(), undo); + } +} + +#[test] +fn midpoint_alignment_constraints_delete_independently_and_leave_the_point() { + use solidcraft_sketch::ConstraintKind; + for delete_midpoint in [false, true] { + let mut s = new_sketch(); + run(&mut s, "sketch.line", json!({"points":[[10,10],[30,20]],"infer":false,"connect":false})); + run(&mut s, "sketch.point", json!({"point":[24,40],"id":"target"})); + run(&mut s, "sketch.constraint.fix", json!({"entity":"l1"})); + let result = run(&mut s, "sketch.constraint.horizontal_vertical", json!({"points":[{"midpoint":"l1"},"target"],"mode":"vertical"})); + let sk = sketch(&s); + let helper = result["created"]["points"][0].as_str().unwrap().to_string(); + let mid = sk.constraints.iter().find(|c| matches!(c.kind, ConstraintKind::Midpoint { .. })).unwrap().id.clone(); + let hv = result["constraint"].as_str().unwrap().to_string(); + let deleted = if delete_midpoint { &mid } else { &hv }; + let retained = if delete_midpoint { &hv } else { &mid }; + let before = s.doc.to_json(); + run(&mut s, "sketch.delete", json!({"entities":[deleted]})); + let sk = sketch(&s); + assert!(sk.resolve_point(&helper).is_some()); + assert!(sk.constraints.iter().any(|c| &c.id == retained)); + assert!(!sk.constraints.iter().any(|c| &c.id == deleted)); + assert_eq!(sk.points.len(), 5); + let after = s.doc.to_json(); + run(&mut s, "edit.undo", json!({})); + assert_eq!(s.doc.to_json(), before); + run(&mut s, "edit.redo", json!({})); + assert_eq!(s.doc.to_json(), after); + let mut reopened = Session::new(solidcraft_doc::Document::from_json(&after).unwrap()); + reopened.active_sketch = s.active_sketch; + assert_eq!(sketch(&reopened).points.len(), 5); + if delete_midpoint { + // Once its defining relation is deleted it is an ordinary free point. + run(&mut reopened, "sketch.move_point", json!({"point":helper,"to":[55,65]})); + let sk = sketch(&reopened); + let helper = sk.point(sk.resolve_point(&helper).unwrap()).unwrap(); + let target = sk.point(sk.resolve_point("target").unwrap()).unwrap(); + assert!((helper.x - target.x).abs() < 1e-6); + assert!(helper.dist(line_midpoint(&sk, "l1")) > 1.0); + } else { + run(&mut reopened, "sketch.move_point", json!({"point":"target","to":[55,65]})); + let sk = sketch(&reopened); + let helper = sk.point(sk.resolve_point(&helper).unwrap()).unwrap(); + assert!(helper.dist(line_midpoint(&sk, "l1")) < 1e-6); + assert!((sk.point(sk.resolve_point("target").unwrap()).unwrap().x - helper.x).abs() > 1.0); + } + } +} + +#[test] +fn midpoint_alignment_keeps_original_side_after_fillet_and_chamfer() { + use solidcraft_sketch::ConstraintKind; + for (command, params) in + [("sketch.fillet", json!({"point":"l1.end","radius":3})), ("sketch.chamfer.equal_distance", json!({"point":"l1.end","distance":3}))] + { + let mut s = new_sketch(); + run(&mut s, "sketch.line", json!({"points":[[10,10],[50,10],[50,40]],"infer":true})); + run(&mut s, "sketch.point", json!({"point":[32,60],"id":"target"})); + let aligned = run(&mut s, "sketch.constraint.horizontal_vertical", json!({"points":[{"midpoint":"l1"},"target"],"mode":"vertical"})); + let helper = aligned["created"]["points"][0].as_str().unwrap(); + let before = sketch(&s); + let original_mid = before.point(before.resolve_point(helper).unwrap()).unwrap(); + run(&mut s, command, params); + let after = s.doc.to_json(); + let mut reopened = Session::new(solidcraft_doc::Document::from_json(&after).unwrap()); + reopened.active_sketch = s.active_sketch; + let sk = sketch(&reopened); + let (point, line) = sk + .constraints + .iter() + .find_map(|c| match c.kind { + ConstraintKind::Midpoint { p, l } => Some((p, l)), + _ => None, + }) + .unwrap(); + assert!(sk.curves[line].construction); + let mid = sk.point(point).unwrap(); + assert!(mid.dist(original_mid) < 1e-5, "{command}: {mid:?} vs {original_mid:?}"); + assert!((sk.point(sk.resolve_point("target").unwrap()).unwrap().x - mid.x).abs() < 1e-6); + assert!(mid.dist(line_midpoint(&sk, "l1")) > 0.5, "midpoint belongs to original full side"); + assert!(mid.dist(line_midpoint(&sk, &sk.curves[line].id)) < 1e-6); + } +} + +#[test] +fn midpoint_alignment_remaps_after_unrelated_geometry_is_deleted() { + use solidcraft_sketch::ConstraintKind; + let mut s = new_sketch(); + run(&mut s, "sketch.line", json!({"points":[[-30,-20],[-10,-10]],"infer":false,"connect":false})); + run(&mut s, "sketch.line", json!({"points":[[10,10],[30,20]],"infer":false,"connect":false})); + run(&mut s, "sketch.point", json!({"point":[24,40],"id":"target"})); + let result = run(&mut s, "sketch.constraint.horizontal_vertical", json!({"points":[{"midpoint":"l2"},"target"],"mode":"vertical"})); + run(&mut s, "sketch.delete", json!({"entities":["l1"]})); + run(&mut s, "sketch.move_point", json!({"point":"l2.end","to":[60,-10]})); + let sk = sketch(&s); + let helper = sk.point(sk.resolve_point(result["created"]["points"][0].as_str().unwrap()).unwrap()).unwrap(); + assert!(helper.dist(line_midpoint(&sk, "l2")) < 1e-6); + assert!((sk.point(sk.resolve_point("target").unwrap()).unwrap().x - helper.x).abs() < 1e-6); + assert!(sk.constraints.iter().any(|c| matches!(c.kind, ConstraintKind::Midpoint { l: 0, .. }))); + // Deleting the helper itself removes its H/V and Midpoint relationships. + run(&mut s, "sketch.delete", json!({"entities":[result["created"]["points"][0]]})); + assert!(sketch(&s).constraints.is_empty()); +} diff --git a/crates/engine/src/cmd/sketch_modify_tests.rs b/crates/engine/src/cmd/sketch_modify_tests.rs index b8a1f21b3..a65fbf258 100644 --- a/crates/engine/src/cmd/sketch_modify_tests.rs +++ b/crates/engine/src/cmd/sketch_modify_tests.rs @@ -337,6 +337,60 @@ fn a_tangent_arc_starts_from_a_trimmed_end() { ); } +#[test] +fn three_point_arc_keeps_referenced_through_points_when_dimensions_change() { + for (through, scale) in [(json!("height.end"), 1.0), (json!({"ref":"height.end"}), 1.0), (json!("mid:height"), 2.0)] { + for reverse in [false, true] { + let mut s = new_sketch(); + run(&mut s, "sketch.line", json!({"points":[[-20,0],[20,0]],"ids":["base"]})); + run(&mut s, "sketch.constraint.fix", json!({"entity":"base"})); + run(&mut s, "sketch.line", json!({"points":["origin",[0,10.0 * scale]],"ids":["height"],"infer":true})); + let dim = run(&mut s, "sketch.dimension", json!({"entities":["height"],"value":10.0 * scale})); + let before = s.doc.to_json(); + let (start, end) = if reverse { ("base.end", "base.start") } else { ("base.start", "base.end") }; + let out = run(&mut s, "sketch.arc.three_point", json!({"start":start,"end":end,"through":through,"id":"arc"})); + let sk = sketch(&s); + let arc = sk.curve_index("arc").unwrap(); + let constraint = sk.constraints.iter().find(|k| matches!(k.kind, ConstraintKind::PointOnCurve { c, .. } if c == arc)).unwrap(); + assert!(ids(&out["created"]["constraints"]).contains(&constraint.id), "{out}"); + run(&mut s, "edit.undo", json!({})); + assert_eq!(s.doc.to_json(), before, "the arc and its attachment are one undo step"); + run(&mut s, "edit.redo", json!({})); + run(&mut s, "parameters.change", json!({"name":dim["param"],"expression":format!("{} mm", 15.0 * scale)})); + + let sid = s.active_sketch.unwrap(); + // Saving and reopening preserves the ordinary point-on-curve constraint too. + let reopened = Session::new(solidcraft_doc::Document::from_json(&s.doc.to_json()).unwrap()); + for session in [&s, &reopened] { + let state = session.model.state(); + let ss = state.sketch(sid).unwrap(); + let sk = &ss.sketch; + let arc = sk.curve_index("arc").unwrap(); + assert!(ss.report.ok(), "{:?}", ss.report); + assert!(close(sk.radius(arc).unwrap(), 125.0 / 6.0), "{:?}", sk.radius(arc)); + let shape = sk.shape(arc).unwrap(); + for point in [Vec2::new(-20.0, 0.0), Vec2::new(20.0, 0.0), Vec2::new(0.0, 15.0)] { + assert!(shape.dist(point) < 1e-6, "{through}, reverse={reverse}: {point:?}"); + } + } + } + } +} + +#[test] +fn three_point_arc_coordinates_stay_free_and_invalid_references_are_atomic() { + let mut s = new_sketch(); + run(&mut s, "sketch.line", json!({"points":["origin",[0,10]],"ids":["height"]})); + let out = run(&mut s, "sketch.arc.three_point", json!({"start":[-20,0],"end":[20,0],"through":[0,10],"id":"arc","connect":false})); + assert!(ids(&out["created"]["constraints"]).is_empty(), "coordinates must not fix the arc or attach it to a nearby point"); + let before = s.doc.to_json(); + for through in [json!("missing.end"), json!({"ref":"missing.end"}), json!([null, 10]), json!("origin"), json!("mid:height")] { + // The midpoint snap creates a point before the collinear arc is refused. + assert!(s.execute("sketch.arc.three_point", &json!({"start":[0,-10],"end":[0,20],"through":through})).is_err(), "{through}"); + assert_eq!(s.doc.to_json(), before, "failed through point {through} changed the sketch"); + } +} + #[test] fn new_creation_tools() { let mut s = new_sketch(); diff --git a/crates/engine/src/cmd/sketch_ux_tests.rs b/crates/engine/src/cmd/sketch_ux_tests.rs index b3d2c040b..da750c193 100644 --- a/crates/engine/src/cmd/sketch_ux_tests.rs +++ b/crates/engine/src/cmd/sketch_ux_tests.rs @@ -60,7 +60,7 @@ fn every_dimension_kind_has_a_drawable_frame() { } for f in [ DimFrame::Linear { p0: Default::default(), p1: Default::default(), dir: Default::default() }, - DimFrame::Radial { center: Default::default(), radius: 1.0, diameter: true }, + DimFrame::Radial { center: Default::default(), radius: 1.0, diameter: true, arc: None }, DimFrame::Angular { vertex: Default::default(), d0: Default::default(), sweep: 1.0 }, DimFrame::ArcLength { center: Default::default(), radius: 1.0, start: 0.0, sweep: 1.0 }, ] { diff --git a/crates/engine/src/crash.rs b/crates/engine/src/crash.rs index 6342e048a..c7cfee7bb 100644 --- a/crates/engine/src/crash.rs +++ b/crates/engine/src/crash.rs @@ -76,7 +76,8 @@ pub struct Summary { pub id: String, /// `command_panic`, `panic`, `kernel_panic_recovered` or `unclean_exit`. pub kind: String, - /// When it first happened (UTC). + /// When the report was first recorded (UTC). Unclean exits are recorded at a later launch, + /// which may be days after the session ended, rather than at the exact exit time. pub time: String, pub message: String, /// The command running when it happened, if one was. diff --git a/crates/engine/src/lib.rs b/crates/engine/src/lib.rs index e34aeb615..3eae93671 100644 --- a/crates/engine/src/lib.rs +++ b/crates/engine/src/lib.rs @@ -149,6 +149,14 @@ pub enum Sel { }, } +/// A body rename between two designs (see `Session::body_renames`). +struct BodyRename { + before: std::sync::Weak, + after: std::sync::Weak, + old: String, + new: String, +} + /// One undo step. #[derive(Clone, Debug)] pub struct Snapshot { @@ -246,6 +254,9 @@ pub struct Session { /// Pairs `inspect.clearance` measured, by the bodies' geometry where they stood (shared with /// scratch copies): a body that did not change or move is not measured again. clearance_cache: std::sync::Arc>, + /// Recent body renames: the design before and after each, and the names, so undo and redo + /// follow them without evaluating either. + body_renames: Vec, /// Features copied with `timeline.copy` (pasted by `timeline.paste`). pub clipboard: Vec, /// Sketch geometry copied with `sketch.copy` (pasted by `sketch.paste`). @@ -399,6 +410,7 @@ impl Session { occurrence_visibility_cache: Default::default(), removed_later_cache: Default::default(), clearance_cache: Default::default(), + body_renames: Vec::new(), clipboard: Vec::new(), sketch_clipboard: None, section: None, @@ -620,6 +632,54 @@ impl Session { } } + /// [`Session::refresh`] after the design changed from `previous`; a change that only renamed + /// a body or a feature (or undid or redid such a rename) renames it in the model instead, + /// which keeps every result and mesh (#3044). + fn refresh_from(&mut self, previous: &Arc) { + if let Some((old, new)) = self.body_rename(previous) + && self.model.rename_body(&self.doc, &old, &new) + { + self.revision += 1; + if !self.doc.assembly.joints.is_empty() { + cmd::joints::resolve(self); + } + return; + } + // A feature's name labels it and builds nothing. + if let Some(id) = self.doc.feature_rename_from(previous) + && self.model.rename_feature(&self.doc, id) + { + self.revision += 1; + return; + } + self.refresh(); + } + + /// The body rename that turned `previous` into the design (old name, new name), if that is + /// the whole change: one this session made (either way round), else one the designs show. + fn body_rename(&mut self, previous: &Arc) -> Option<(String, String)> { + let holds = |w: &std::sync::Weak, d: &Arc| w.upgrade().is_some_and(|x| Arc::ptr_eq(&x, d)); + self.body_renames.retain(|r| r.before.strong_count() > 0 && r.after.strong_count() > 0); + for r in &self.body_renames { + if holds(&r.before, previous) && holds(&r.after, &self.doc) { + return Some((r.old.clone(), r.new.clone())); + } + if holds(&r.after, previous) && holds(&r.before, &self.doc) { + return Some((r.new.clone(), r.old.clone())); + } + } + let model = &self.model; + let made = |id: u64| -> Vec { + model.result(id).map(|r| r.state.bodies.iter().filter(|b| b.feature == id).map(|b| b.name.clone()).collect()).unwrap_or_default() + }; + let (old, new) = self.doc.body_rename_from(previous, made)?; + self.body_renames.push(BodyRename { before: Arc::downgrade(previous), after: Arc::downgrade(&self.doc), old: old.clone(), new: new.clone() }); + if self.body_renames.len() > MAX_UNDO { + self.body_renames.remove(0); + } + Some((old, new)) + } + /// Only persistent render intent, or only part properties, changed. Never evaluate or clear /// a stale model here. fn render_only_change(&self, before: &Snapshot) -> bool { @@ -766,7 +826,7 @@ impl Session { match live_edit { Some(edit) => self.refresh_live(edit), None if render_only => self.refresh_render(&previous_doc), - None => self.refresh(), + None => self.refresh_from(&previous_doc), } } Ok(v) @@ -874,6 +934,7 @@ impl Session { occurrence_visibility_cache: Default::default(), removed_later_cache: Default::default(), clearance_cache: self.clearance_cache.clone(), + body_renames: Vec::new(), clipboard: self.clipboard.clone(), sketch_clipboard: self.sketch_clipboard.clone(), section: None, diff --git a/crates/engine/src/tests.rs b/crates/engine/src/tests.rs index d7aafdc3d..42d9f57fe 100644 --- a/crates/engine/src/tests.rs +++ b/crates/engine/src/tests.rs @@ -1543,6 +1543,31 @@ fn section_analysis() { assert_eq!(s.undo.len(), undo); } +/// A section index finds the same cut segments, in the same order, as cutting every triangle: +/// tilted and axis normals, cuts through vertices, at the ends and beyond the part. +#[test] +fn section_index_cuts_like_every_triangle() { + let mut s = Session::default(); + run(&mut s, "solid.cylinder", json!({"radius": 12, "height": 30})); + run(&mut s, "solid.box", json!({"length": 40, "width": 30, "height": 8, "operation": "join"})); + let st = s.model.state(); + let m = st.bodies.first().unwrap().mesh(); + assert!(m.triangles.len() > 64, "enough triangles for several slabs: {}", m.triangles.len()); + for n in [Vec3::Z, -Vec3::Y, Vec3::new(1.0, 2.0, 3.0).normalized().unwrap(), Vec3::new(-0.3, 0.1, 0.9).normalized().unwrap()] { + let index = view::SectionIndex::new(&m, n); + let heights: Vec = m.positions.iter().map(|p| n.dot(*p)).collect(); + let (lo, hi) = heights.iter().fold((f64::INFINITY, f64::NEG_INFINITY), |(a, b), h| (a.min(*h), b.max(*h))); + let mut cuts: Vec = (0..=40).map(|k| lo - 1.0 + (hi - lo + 2.0) * k as f64 / 40.0).collect(); + cuts.extend(heights.iter().step_by(7).copied()); + cuts.extend([lo, hi]); + for at in cuts { + let o = n * at; + let segments = view::section_segments(&m, o, n); + assert_eq!(index.segments(&m, o), segments, "{n:?} at {at}"); + } + } +} + /// Press Pull: positive pulls a face out, negative pushes it in (a cut), edges get a fillet. #[test] fn press_pull() { @@ -3791,3 +3816,84 @@ fn a_tapered_side_drawn_in_two_collinear_pieces_is_one_face() { let m = run(&mut s, "inspect.measure", json!({})); assert_eq!(m["bodies"][0]["kernel"]["faces"], 6, "{m}"); } + +/// #3044: renaming a body of an imported assembly (a part placed twice, so the file has more +/// solids than the part has bodies) evaluates nothing, not even the file again, and leaves the +/// model evaluating the renamed design gives; undo does the same. +#[test] +fn renaming_an_imported_assembly_body_reads_nothing_again() { + let dir = std::env::temp_dir().join(format!("solidcraft-step-rename-{}", std::process::id())); + std::fs::create_dir_all(&dir).unwrap(); + let mut a = Session::default(); + run(&mut a, "solid.box", json!({"length": 10, "width": 10, "height": 10, "body_name": "Cube"})); + run(&mut a, "solid.box", json!({"length": 4, "width": 4, "height": 4, "center": [30, 0, 2], "operation": "new", "body_name": "Pin"})); + run(&mut a, "component.from_bodies", json!({"bodies": ["Cube"]})); + run(&mut a, "occurrence.copy", json!({"component": "Cube", "translate": [0, 40, 0]})); + let p = dir.join("Assembly.step"); + run(&mut a, "file.export", json!({"path": p.to_string_lossy()})); + let mut s = Session::default(); + run(&mut s, "doc.open", json!({"path": p.to_string_lossy()})); + let names = |s: &Session| s.model.state().bodies.iter().map(|b| b.name.clone()).collect::>(); + let before = names(&s); + let body = before.first().cloned().unwrap(); + s.evaluations = 0; + run(&mut s, "body.rename", json!({"body": body, "name": "Renamed"})); + assert_eq!(s.evaluations, 0, "a rename evaluates nothing"); + let after = names(&s); + assert_eq!(after.first().map(String::as_str), Some("Renamed")); + assert_eq!(after.len(), before.len()); + let mut fresh = Session::new((*s.doc).clone()); + fresh.refresh(); + assert_eq!(names(&fresh), after, "the same names as evaluating the renamed design"); + run(&mut s, "edit.undo", json!({})); + assert_eq!(names(&s), before); + assert_eq!(s.evaluations, 0, "nor does its undo"); + let _ = std::fs::remove_dir_all(&dir); +} + +/// #3044: on a design with thousands of bodies the cheap commands stay cheap: showing, hiding, +/// selecting, colouring and renaming a body or a feature, and undoing them, recompute no feature +/// (renames don't even look over the timeline) and leave every body's display mesh as it was, so +/// nothing is meshed or uploaded again. +#[test] +fn cheap_commands_on_thousands_of_bodies_evaluate_nothing() { + let mut s = Session::default(); + for k in 0..2 { + run( + &mut s, + "solid.box", + json!({"length": 4, "width": 4, "height": 4, "center": [0, 6 * k, 2], "operation": "new", "name": format!("Seed{k}")}), + ); + run( + &mut s, + "solid.pattern.rectangular", + json!({"features": [format!("Seed{k}")], "dir1": [1, 0, 0], "count1": 1000, "spacing1": 6, "name": format!("Row{k}")}), + ); + } + let st = s.model.state(); + assert_eq!(st.bodies.len(), 2000); + let meshes = |s: &Session| s.model.state().bodies.iter().map(|b| std::sync::Arc::as_ptr(&b.mesh())).collect::>(); + let shown = meshes(&s); + s.refresh(); + for (command, params) in [ + ("select.set", json!({"items": [{"type": "body", "name": "Body7"}]})), + ("browser.visibility", json!({"visible": false, "items": ["Body7"]})), + ("browser.visibility", json!({"visible": true, "items": ["Body7"]})), + ("appearance.assign", json!({"bodies": ["Body7"], "appearance": "Aluminum - Satin"})), + ("body.rename", json!({"body": "Body7", "name": "Renamed"})), + ("timeline.rename", json!({"feature": "Row1", "name": "Second row"})), + ("edit.undo", json!({})), + ("edit.undo", json!({})), + ("edit.redo", json!({})), + ] { + s.evaluations = 0; + run(&mut s, command, params); + // Renames are followed in the model; the rest may look over the timeline, which then + // finds every result as it was. + assert_eq!(s.model.last_recomputed, 0, "{command} recomputed a feature"); + if command.ends_with("rename") { + assert_eq!(s.evaluations, 0, "{command} evaluated the design"); + } + } + assert_eq!(meshes(&s), shown, "every body keeps its mesh"); +} diff --git a/crates/engine/src/view.rs b/crates/engine/src/view.rs index 4ce7ec792..64863cc01 100644 --- a/crates/engine/src/view.rs +++ b/crates/engine/src/view.rs @@ -544,25 +544,104 @@ fn build_scene( /// Where the plane through `o` with normal `n` cuts a mesh: one segment per crossed triangle, /// nudged a hair to the kept side (so the clip leaves them drawn). pub fn section_segments(m: &solidcraft_geom::Mesh, o: Vec3, n: Vec3) -> Vec<(Vec3, Vec3)> { - let eps = 1e-4 * (1.0 + m.bounds().diagonal()); + let eps = section_nudge(m); let mut out = Vec::new(); for t in &m.triangles { - let Some(p) = m.tri(t) else { continue }; - let d = p.map(|q| n.dot(q - o)); - let mut pts = Vec::with_capacity(2); - for (i, j) in [(0, 1), (1, 2), (2, 0)] { - if (d[i] < 0.0) != (d[j] < 0.0) { - let s = d[i] / (d[i] - d[j]); - pts.push(p[i] + (p[j] - p[i]) * s - n * eps); - } - } - if let [a, b] = pts[..] { - out.push((a, b)); - } + cut_triangle(m, t, o, n, eps, &mut out); } out } +/// How far [`section_segments`] nudges the cut to the kept side. +fn section_nudge(m: &solidcraft_geom::Mesh) -> f64 { + 1e-4 * (1.0 + m.bounds().diagonal()) +} + +/// The segment where the plane through `o` with normal `n` crosses triangle `t`, if it does. +fn cut_triangle(m: &solidcraft_geom::Mesh, t: &[u32; 3], o: Vec3, n: Vec3, eps: f64, out: &mut Vec<(Vec3, Vec3)>) { + let Some(p) = m.tri(t) else { return }; + let d = p.map(|q| n.dot(q - o)); + let mut pts = Vec::with_capacity(2); + for (i, j) in [(0, 1), (1, 2), (2, 0)] { + if (d[i] < 0.0) != (d[j] < 0.0) { + let s = d[i] / (d[i] - d[j]); + pts.push(p[i] + (p[j] - p[i]) * s - n * eps); + } + } + if let [a, b] = pts[..] { + out.push((a, b)); + } +} + +/// A mesh's triangles sorted into slabs along one normal, so cuts with that normal at any +/// height look only at the triangles of one slab: dragging a Section Analysis keeps the normal +/// and moves the cut, and an imported part can have millions of triangles. The same segments +/// as [`section_segments`]. +pub struct SectionIndex { + normal: Vec3, + /// The lowest height (`normal · p`) of the mesh, and the slab thickness. + start: f64, + step: f64, + /// Per slab, the triangles whose heights reach into it. + slabs: Vec>, + eps: f64, +} + +/// Slabs a [`SectionIndex`] makes, at most. +const SECTION_SLABS: usize = 4096; + +impl SectionIndex { + pub fn new(m: &solidcraft_geom::Mesh, normal: Vec3) -> SectionIndex { + let heights: Vec> = m + .triangles + .iter() + .map(|t| { + let d = m.tri(t)?.map(|q| normal.dot(q)); + Some((d[0].min(d[1]).min(d[2]), d[0].max(d[1]).max(d[2]))) + }) + .collect(); + let (lo, hi) = heights.iter().flatten().fold((f64::INFINITY, f64::NEG_INFINITY), |(a, b), (l, h)| (a.min(*l), b.max(*h))); + let count = if lo.is_finite() && hi.is_finite() { (m.triangles.len() / 64).clamp(1, SECTION_SLABS) } else { 0 }; + let step = if count > 0 && hi > lo { (hi - lo) / count as f64 } else { 1.0 }; + let mut index = SectionIndex { normal, start: lo, step, slabs: vec![Vec::new(); count], eps: section_nudge(m) }; + for (i, h) in heights.iter().enumerate() { + let (Some((l, h)), Ok(i)) = (h, u32::try_from(i)) else { continue }; + for k in index.slab(*l)..=index.slab(*h) { + if let Some(slab) = index.slabs.get_mut(k) { + slab.push(i); + } + } + } + index + } + + /// The normal this index was made for. + pub fn normal(&self) -> Vec3 { + self.normal + } + + fn slab(&self, height: f64) -> usize { + let k = ((height - self.start) / self.step).floor(); + if k.is_finite() { (k.max(0.0) as usize).min(self.slabs.len().saturating_sub(1)) } else { 0 } + } + + /// [`section_segments`] of `m` (the mesh this index was made from) at the plane through + /// `o` with this index's normal. + pub fn segments(&self, m: &solidcraft_geom::Mesh, o: Vec3) -> Vec<(Vec3, Vec3)> { + let mut out = Vec::new(); + let at = self.normal.dot(o); + if self.slabs.is_empty() || !at.is_finite() || at < self.start { + return out; + } + for i in self.slabs.get(self.slab(at)).into_iter().flatten() { + if let Some(t) = m.triangles.get(*i as usize) { + cut_triangle(m, t, o, self.normal, self.eps, &mut out); + } + } + out + } +} + /// Is a sketch drawn? The active one is; others unless hidden. Finished sketches are hidden /// once a feature uses them, by default, unless shown one by one. pub fn sketch_shown(s: &Session, id: u64) -> bool { diff --git a/crates/kernel/src/body.rs b/crates/kernel/src/body.rs index 5b082e649..b70d4ed6b 100644 --- a/crates/kernel/src/body.rs +++ b/crates/kernel/src/body.rs @@ -256,7 +256,7 @@ const MIN_DISPLAY_ANGLE: f64 = std::f64::consts::PI / 180.0; /// non-manifold shells an import can produce). Boundaries that lie on their surface only within /// tolerance (imports, boolean results) are projected onto it. fn mesh_shells(solid: &Solid, tol: f64) -> Vec { - mesh_shells_within(solid, Deflection { rulings: true, ..Deflection::chord(tol) }) + mesh_shells_within(solid, Deflection { display: true, ..Deflection::chord(tol) }) } /// [`mesh_shells`] divided by a chord tolerance and, when it has one, a bound on the angle a @@ -1242,9 +1242,9 @@ impl Body { } } let deflection = if angle.is_finite() && angle > 0.0 { - Deflection { chord: tol, angle: angle.max(MIN_DISPLAY_ANGLE), floor: tol * DISPLAY_ANGLE_FLOOR, rulings: true } + Deflection { chord: tol, angle: angle.max(MIN_DISPLAY_ANGLE), floor: tol * DISPLAY_ANGLE_FLOOR, display: true } } else { - Deflection { rulings: true, ..Deflection::chord(tol) } + Deflection { display: true, ..Deflection::chord(tol) } }; guard("tessellate", || { let meshed = mesh_shells_within(&self.solid, deflection); diff --git a/crates/kernel/src/edge_polyline_tests.rs b/crates/kernel/src/edge_polyline_tests.rs index 88d068e9d..a3d558573 100644 --- a/crates/kernel/src/edge_polyline_tests.rs +++ b/crates/kernel/src/edge_polyline_tests.rs @@ -121,7 +121,7 @@ fn same_division(curve: &Curve, d: Deflection) -> Vec { /// The chord tolerance alone (booleans), then with the display's facet angle. fn deflections(tol: f64) -> [Deflection; 2] { - [Deflection::chord(tol), Deflection { chord: tol, angle: DISPLAY_ANGLE, floor: tol * 0.05, rulings: true }] + [Deflection::chord(tol), Deflection { chord: tol, angle: DISPLAY_ANGLE, floor: tol * 0.05, display: true }] } #[test] diff --git a/crates/kernel/src/lib.rs b/crates/kernel/src/lib.rs index 4d01043c1..239e719c1 100644 --- a/crates/kernel/src/lib.rs +++ b/crates/kernel/src/lib.rs @@ -272,3 +272,6 @@ pub fn guard(what: &str, f: impl FnOnce() -> Result) -> Result { #[cfg(test)] mod tests; + +#[cfg(test)] +mod trimmed_face_mesh_tests; diff --git a/crates/kernel/src/thin_face_tests.rs b/crates/kernel/src/thin_face_tests.rs index faef716b9..6107619a9 100644 --- a/crates/kernel/src/thin_face_tests.rs +++ b/crates/kernel/src/thin_face_tests.rs @@ -69,7 +69,7 @@ fn a_face_touching_its_own_edge_meshes() { let face = mt::Face::new(vec![wire], mt::Surface::Plane(plane)); let shell: mt::Shell = vec![face].into(); for tol in [0.3, 0.08, 0.02, 0.005] { - let meshed = shell.robust_triangulation_within(Deflection { rulings: true, ..Deflection::chord(tol) }); + let meshed = shell.robust_triangulation_within(Deflection { display: true, ..Deflection::chord(tol) }); let face = meshed.face_iter().next().unwrap(); let boundary: Vec = face.boundaries()[0].edge_iter().flat_map(|e| e.oriented_curve().0.into_iter().skip(1)).collect(); let mesh = face.surface().unwrap(); diff --git a/crates/kernel/src/trimmed_face_mesh_tests.rs b/crates/kernel/src/trimmed_face_mesh_tests.rs new file mode 100644 index 000000000..f1423f05c --- /dev/null +++ b/crates/kernel/src/trimmed_face_mesh_tests.rs @@ -0,0 +1,78 @@ +//! Tessellation of trimmed loft faces after a boolean: no triangle may leave the face. + +use std::f64::consts::FRAC_PI_2; + +use solidcraft_geom::{Loop2, Plane, Seg2, Vec2, Vec3}; +use truck_modeling::{self as mt, SearchNearestParameter}; + +use crate::*; + +/// Counter-clockwise rounded rectangle centred on the origin. +fn rounded(w: f64, h: f64, r: f64) -> Loop2 { + let (x, y) = (w / 2.0, h / 2.0); + let arc = |cx: f64, cy: f64, start: f64| Seg2::Arc { center: Vec2::new(cx, cy), radius: r, start, sweep: FRAC_PI_2 }; + Loop2 { + segs: vec![ + arc(x - r, -y + r, -FRAC_PI_2), + Seg2::Line { a: Vec2::new(x, -y + r), b: Vec2::new(x, y - r) }, + arc(x - r, y - r, 0.0), + Seg2::Line { a: Vec2::new(x - r, y), b: Vec2::new(-x + r, y) }, + arc(-x + r, y - r, FRAC_PI_2), + Seg2::Line { a: Vec2::new(-x, y - r), b: Vec2::new(-x, -y + r) }, + arc(-x + r, -y + r, 2.0 * FRAC_PI_2), + Seg2::Line { a: Vec2::new(-x + r, -y), b: Vec2::new(x - r, -y) }, + ], + } +} + +/// The down tube of a bicycle frame: rounded-rectangle sections lofted along a bend. +fn tube() -> Body { + let s = |o: [f64; 3], y: [f64; 3], w: f64, h: f64, r: f64| { + (Plane::new(Vec3::new(o[0], o[1], o[2]), Vec3::Y, Vec3::new(y[0], y[1], y[2])).unwrap(), rounded(w, h, r)) + }; + loft(&[ + s([8.0, 0.0, 3.0], [-0.178, 0.0, 0.984], 38.0, 36.0, 10.8), + s([80.0, 0.0, 16.0], [-0.211, 0.0, 0.977], 60.0, 52.0, 15.6), + s([175.0, 0.0, 40.0], [-0.596, 0.0, 0.803], 76.0, 66.0, 19.8), + s([314.248, 0.0, 271.657], [-0.857, 0.0, 0.515], 74.0, 66.0, 19.8), + s([422.553, 0.0, 451.835], [-0.857, 0.0, 0.515], 66.0, 60.0, 18.0), + s([484.441, 0.0, 554.793], [-0.857, 0.0, 0.515], 46.0, 44.0, 13.2), + ]) + .unwrap() +} + +/// Each face's mesh area, and how far its triangles' centroids lie off its surface at most. +fn per_face(body: &Body, mesh: &solidcraft_geom::Mesh) -> Vec<(f64, f64)> { + use mt::ParametricSurface; + let faces: Vec<&mt::Face> = body.solid.face_iter().collect(); + let mut out = vec![(0.0, 0.0f64); faces.len()]; + for (t, &f) in mesh.triangles.iter().zip(&mesh.tri_face) { + let ([a, b, c], Some(face), Some(slot)) = (mesh.tri(t).unwrap(), faces.get(f as usize), out.get_mut(f as usize)) else { continue }; + slot.0 += (b - a).cross(c - a).len() / 2.0; + let g = (a + b + c) / 3.0; + let surface = face.oriented_surface(); + let (u, v) = surface.search_nearest_parameter(mt::Point3::new(g.x, g.y, g.z), None, 50).unwrap(); + slot.1 = slot.1.max(crate::body::from_p3(surface.subs(u, v)).dist(g)); + } + out +} + +/// A lofted tube whose side faces are ruled across (straight section edges) and long along +/// the loft, joined to a cylinder that trims their ends: the display mesh of a trimmed side +/// fanned one trimming node to boundary nodes hundreds of millimetres away (Delaunay in raw +/// parameters on a strip stretched twentyfold), a flat sheet off the surface. +#[test] +fn trimmed_ruled_loft_faces_mesh_on_their_surfaces() { + let tube = tube(); + let shell = cylinder(Vec3::new(0.0, -36.5, 0.0), Vec3::Y, 23.0, 73.0).unwrap(); + let joined = boolean(&tube, &shell, BoolOp::Union).unwrap().unwrap(); + let tol = (joined.size() * 1e-3).max(1e-3); + let display = per_face(&joined, &joined.reference_display_mesh_angular(tol, DISPLAY_ANGLE).unwrap()); + let fine = per_face(&joined, &joined.tessellate(tol / 8.0).unwrap()); + for (fi, ((area, off), (fine_area, _))) in display.iter().zip(&fine).enumerate() { + // A centroid sags at most about the chord tolerance (the bad sheet was 7 mm off at 0.6). + assert!(*off < 2.0 * tol, "face {fi}: a triangle lies {off:.2} mm off the surface (tolerance {tol:.2})"); + // Covered once: the area of a much finer mesh (the bad face had two and a half times it). + assert!((area - fine_area).abs() < 0.02 * fine_area, "face {fi}: mesh area {area:.0} mm², finer mesh {fine_area:.0} mm²"); + } +} diff --git a/crates/sketch/src/dims.rs b/crates/sketch/src/dims.rs index 7d4acb808..403510d7e 100644 --- a/crates/sketch/src/dims.rs +++ b/crates/sketch/src/dims.rs @@ -19,8 +19,9 @@ pub enum DimFrame { /// The distance from `p0` to `p1` along the unit direction `dir` (aligned, horizontal or /// vertical). Linear { p0: Vec2, p1: Vec2, dir: Vec2 }, - /// Radius or diameter of a circle or arc. - Radial { center: Vec2, radius: f64, diameter: bool }, + /// Radius or diameter of a circle or arc. `arc` is the arc's (start angle, counter-clockwise + /// sweep), None for a full circle: an arrow past the arc's ends gets an extension of the arc. + Radial { center: Vec2, radius: f64, diameter: bool, arc: Option<(f64, f64)> }, /// The angle at `vertex` from the unit ray `d0`, counter-clockwise by `sweep` radians. Angular { vertex: Vec2, d0: Vec2, sweep: f64 }, /// Length along an arc around `center` from angle `start` by `sweep`. @@ -104,11 +105,15 @@ pub fn dim_frame(sk: &Sketch, k: &ConstraintKind) -> Option { DimFrame::Linear { p0, p1, dir: unit(p1 - p0, normal) } } Radius { c, .. } | Diameter { c, .. } => { - let radius = match sk.curves.get(c)?.kind { - CurveKind::Ellipse { r, .. } => r, - _ => sk.radius(c)?, + let (radius, arc) = match sk.curves.get(c)?.kind { + CurveKind::Ellipse { r, .. } => (r, None), + CurveKind::Arc { .. } => match sk.segs(c).first()? { + solidcraft_geom::Seg2::Arc { radius, start, sweep, .. } => (*radius, Some((*start, *sweep))), + _ => return None, + }, + _ => (sk.radius(c)?, None), }; - DimFrame::Radial { center: sk.center(c)?, radius, diameter: matches!(k, Diameter { .. }) } + DimFrame::Radial { center: sk.center(c)?, radius, diameter: matches!(k, Diameter { .. }), arc } } ArcLength { c, .. } => match sk.segs(c).first()? { solidcraft_geom::Seg2::Arc { center, radius, start, sweep } => { @@ -189,6 +194,21 @@ fn arc_pts(c: Vec2, r: f64, a0: f64, sweep: f64) -> Vec { (0..=n).map(|i| c + Vec2::from_angle(a0 + sweep * i as f64 / n as f64) * r).collect() } +/// The arc around `c` from the nearer end of the arc (`start`, counter-clockwise by `sweep`) to +/// angle `at`, and `over` past it; None when `at` lies on the arc. +fn arc_extension(c: Vec2, r: f64, start: f64, sweep: f64, at: f64, over: f64) -> Option> { + if !(r > 0.0 && r.is_finite() && sweep.is_finite() && at.is_finite()) { + return None; + } + let ta = (at - start).rem_euclid(std::f64::consts::TAU); + if ta <= sweep + 1e-9 { + return None; + } + let past = over / r; + let (after_end, before_start) = (ta - sweep, std::f64::consts::TAU - ta); + Some(if after_end <= before_start { arc_pts(c, r, start + sweep, after_end + past) } else { arc_pts(c, r, at - past, before_start + past) }) +} + /// The lines a linear dimension's two extension lines may start from (#1361), for its `p0` and /// `p1` sides: a dimension to a line reaches the nearest part of that line, not the foot of the /// measured point, and a dimension between two parallel lines reaches the nearest part of the @@ -285,12 +305,21 @@ pub fn dim_layout_reaching(f: &DimFrame, text: Option, px: f64, half: Vec2 } } } - DimFrame::Radial { center, radius, diameter } => { + DimFrame::Radial { center, radius, diameter, arc } => { let t = text.unwrap_or_else(|| Vec2::new(1.0, 1.0) * ((radius + 18.0 * px) * std::f64::consts::FRAC_1_SQRT_2)); let u = t.normalized().unwrap_or(Vec2::new(1.0, 1.0) * std::f64::consts::FRAC_1_SQRT_2); let d = t.len(); let at = center + u * radius; out.text = center + t; + // An arrow past the ends of an arc points at the arc's extension (#3393). + if let Some((start, sweep)) = arc { + let tips: &[Vec2] = if diameter { &[u, -u] } else { &[u] }; + for tip in tips { + if let Some(ext) = arc_extension(center, radius, start, sweep, tip.angle(), over) { + out.lines.push(ext); + } + } + } let rim = half.x * u.x.abs() + half.y * u.y.abs() + gap; let from = if diameter { center - u * radius } else { center }; if d > radius { @@ -402,20 +431,54 @@ mod tests { let at = Vec2::new(7.0, 30.0); let enc = encode_text(&f, at); assert!(close(dim_layout(&f, Some(enc), 0.1, Vec2::ZERO).text, at)); - let r = DimFrame::Radial { center: Vec2::new(5.0, 5.0), radius: 3.0, diameter: true }; + let r = DimFrame::Radial { center: Vec2::new(5.0, 5.0), radius: 3.0, diameter: true, arc: None }; assert!(close(dim_layout(&r, Some(encode_text(&r, at)), 0.1, Vec2::ZERO).text, at)); } #[test] fn diameter_has_arrows_on_both_sides() { - let r = DimFrame::Radial { center: Vec2::ZERO, radius: 10.0, diameter: true }; + let r = DimFrame::Radial { center: Vec2::ZERO, radius: 10.0, diameter: true, arc: None }; let l = dim_layout(&r, Some(Vec2::new(20.0, 0.0)), 0.1, Vec2::new(2.0, 1.0)); assert_eq!(l.arrows.len(), 2); assert!(close(l.arrows[0].0, Vec2::new(10.0, 0.0)) && close(l.arrows[1].0, Vec2::new(-10.0, 0.0))); - let r = DimFrame::Radial { center: Vec2::ZERO, radius: 10.0, diameter: false }; + let r = DimFrame::Radial { center: Vec2::ZERO, radius: 10.0, diameter: false, arc: None }; assert_eq!(dim_layout(&r, None, 0.1, Vec2::ZERO).arrows.len(), 1); } + #[test] + fn an_arrow_past_the_end_of_an_arc_points_at_its_extension() { + // #3393: a quarter arc from 0° to 90°; a radius dimension dragged to 135° gets the arc + // continued from its 90° end round to the arrow, and a little past it. + let mut sk = Sketch::new(); + let c = sk.add_arc(Vec2::ZERO, Vec2::new(10.0, 0.0), Vec2::new(0.0, 10.0), [None, None, None], None).unwrap_or(0); + let f = + dim_frame(&sk, &ConstraintKind::Radius { c, value: 10.0 }).unwrap_or(DimFrame::Linear { p0: Vec2::ZERO, p1: Vec2::ZERO, dir: Vec2::X }); + let DimFrame::Radial { arc: Some((start, sweep)), .. } = f else { panic!("an arc's frame keeps its span: {f:?}") }; + assert!(start.abs() < 1e-9 && (sweep - std::f64::consts::FRAC_PI_2).abs() < 1e-9); + let on_circle = |line: &Vec| line.len() > 2 && line.iter().all(|p| (p.len() - 10.0).abs() < 1e-9); + let lay = dim_layout(&f, Some(Vec2::from_angle(0.75 * std::f64::consts::PI) * 20.0), 0.1, Vec2::new(2.0, 1.0)); + let ext: Vec<_> = lay.lines.iter().filter(|l| on_circle(l)).collect(); + assert_eq!(ext.len(), 1, "{:?}", lay.lines); + let (first, last) = (ext[0][0], ext[0][ext[0].len() - 1]); + assert!(first.dist(Vec2::new(0.0, 10.0)) < 1e-9, "starts at the arc's end: {first:?}"); + assert!((last.angle() - (0.75 * std::f64::consts::PI + 0.4 / 10.0)).abs() < 1e-9, "ends just past the arrow: {last:?}"); + // Dragged before the start (at -45°) the extension runs from the arrow to the start. + let lay = dim_layout(&f, Some(Vec2::from_angle(-0.25 * std::f64::consts::PI) * 20.0), 0.1, Vec2::new(2.0, 1.0)); + let ext: Vec<_> = lay.lines.iter().filter(|l| on_circle(l)).collect(); + assert_eq!(ext.len(), 1); + assert!(ext[0][ext[0].len() - 1].dist(Vec2::new(10.0, 0.0)) < 1e-9); + // On the arc, or on a full circle, nothing is added. + let on_arc = dim_layout(&f, Some(Vec2::from_angle(0.25 * std::f64::consts::PI) * 20.0), 0.1, Vec2::new(2.0, 1.0)); + assert!(!on_arc.lines.iter().any(on_circle)); + let circle = DimFrame::Radial { center: Vec2::ZERO, radius: 10.0, diameter: false, arc: None }; + assert!(!dim_layout(&circle, Some(Vec2::new(-20.0, 0.0)), 0.1, Vec2::ZERO).lines.iter().any(on_circle)); + // A diameter of the arc extends towards both arrows. + let DimFrame::Radial { center, radius, arc, .. } = f else { return }; + let dia = DimFrame::Radial { center, radius, diameter: true, arc }; + let lay = dim_layout(&dia, Some(Vec2::from_angle(0.75 * std::f64::consts::PI) * 20.0), 0.1, Vec2::new(2.0, 1.0)); + assert_eq!(lay.lines.iter().filter(|l| on_circle(l)).count(), 2); + } + #[test] fn angle_frame_uses_the_rays_toward_the_lines() { let mut sk = Sketch::new(); @@ -440,7 +503,7 @@ mod tests { let m = sk.add_line(Vec2::new(30.0, -80.0), Vec2::new(30.0, 90.0), None, None, None).unwrap_or(0); let p = sk.curves[m].kind.point_ids()[0]; let k = ConstraintKind::PointLineDistance { p, l, value: 30.0 }; - let f = dim_frame(&sk, &k).unwrap_or(DimFrame::Radial { center: Vec2::ZERO, radius: 1.0, diameter: false }); + let f = dim_frame(&sk, &k).unwrap_or(DimFrame::Radial { center: Vec2::ZERO, radius: 1.0, diameter: false, arc: None }); let reach = dim_reach(&sk, &k); assert!(reach[0].is_some() && reach[1].is_some()); let extension_ys = |at: Vec2| -> Vec<(f64, f64)> { diff --git a/crates/ui-egui/Cargo.toml b/crates/ui-egui/Cargo.toml index d1bf0fc4b..0f25e308e 100644 --- a/crates/ui-egui/Cargo.toml +++ b/crates/ui-egui/Cargo.toml @@ -36,6 +36,10 @@ tiny-skia = { workspace = true } # updated by its installer (MIT; already in the tree as a build dependency). winreg = "0.56" +[dev-dependencies] +# Parse the source guard structurally, including code after inline test modules. +syn = { workspace = true, features = ["visit"] } + # Pictures pasted into the agent chat; already in the tree, with the same features, through # egui-winit's clipboard. [target.'cfg(not(target_arch = "wasm32"))'.dependencies] diff --git a/crates/ui-egui/build.rs b/crates/ui-egui/build.rs index 797da0514..79c9c0b0f 100644 --- a/crates/ui-egui/build.rs +++ b/crates/ui-egui/build.rs @@ -132,6 +132,7 @@ fn icon_data() -> Result<(), String> { ("CONSTRUCTION_PRIMARY", palette.get("accents").and_then(|v| v.get("construction"))), ("SKETCH_RED_GREEN", palette.get("variants").and_then(|v| v.get("red-green")).and_then(|v| v.get("sketch"))), ("CONSTRUCTION_RED_GREEN", palette.get("variants").and_then(|v| v.get("red-green")).and_then(|v| v.get("construction"))), + ("CONSTRAINT_RED_GREEN", palette.get("variants").and_then(|v| v.get("red-green")).and_then(|v| v.get("constraint"))), ("CONSTRUCTION_BLUE_YELLOW", palette.get("variants").and_then(|v| v.get("blue-yellow")).and_then(|v| v.get("construction"))), ("CONSTRAINT_BLUE_YELLOW", palette.get("variants").and_then(|v| v.get("blue-yellow")).and_then(|v| v.get("constraint"))), ] { diff --git a/crates/ui-egui/src/agent_chat/markdown_view.rs b/crates/ui-egui/src/agent_chat/markdown_view.rs index 2d8d6ebfb..ba8647329 100644 --- a/crates/ui-egui/src/agent_chat/markdown_view.rs +++ b/crates/ui-egui/src/agent_chat/markdown_view.rs @@ -5,6 +5,7 @@ //! so the parsed blocks are kept per conversation item and parsed again only when its text //! changes. +use crate::fonts::RichTextExt as _; use std::hash::{Hash, Hasher}; use std::sync::Arc; @@ -41,9 +42,11 @@ fn job(ui: &egui::Ui, spans: &[Span], size: f32, color: Color32) -> LayoutJob { let plain = TextFormat { font_id: base.clone(), color, ..Default::default() }; match s { Span::Text(x) => j.append(x, 0.0, plain), - Span::Bold(x) => j.append(x, 0.0, TextFormat { color: t.text, ..plain }), + Span::Bold(x) => j.append(x, 0.0, TextFormat { font_id: crate::fonts::semibold(size), color: t.text, ..plain }), Span::Italic(x) => j.append(x, 0.0, TextFormat { italics: true, ..plain }), - Span::Code(x) => j.append(x, 0.0, TextFormat { font_id: FontId::monospace(size - 1.0), background: t.field, ..plain }), + Span::Code(x) => { + j.append(x, 0.0, TextFormat { font_id: FontId::monospace(size - (t.font_button - t.font_body)), background: t.field, ..plain }) + } Span::Link { label, .. } => j.append(label, 0.0, TextFormat { color: t.accent, underline: Stroke::new(1.0, t.accent), ..plain }), } } @@ -58,6 +61,7 @@ fn host(url: &str) -> &str { /// A paragraph's text, then its links as buttons (a laid-out text cannot be clicked in parts). fn spans(ui: &mut egui::Ui, spans: &[Span], size: f32, color: Color32) { + let t = Tokens::get(); ui.add(egui::Label::new(job(ui, spans, size, color)).selectable(true).wrap()); let links: Vec<(&str, &str)> = spans.iter().filter_map(|s| if let Span::Link { label, url } = s { Some((label.as_str(), url.as_str())) } else { None }).collect(); @@ -66,7 +70,7 @@ fn spans(ui: &mut egui::Ui, spans: &[Span], size: f32, color: Color32) { for (label, url) in links { // The text above already shows the label; the button says where it goes. let to = format!("↗ {}", host(url)); - ui.hyperlink_to(RichText::new(to).size(size - 1.0), url).on_hover_text(format!("{label}: {url}")); + ui.hyperlink_to(RichText::new(to).size(size - (t.font_button - t.font_body)), url).on_hover_text(format!("{label}: {url}")); } }); } @@ -75,24 +79,28 @@ fn spans(ui: &mut egui::Ui, spans: &[Span], size: f32, color: Color32) { /// Draw `src` as Markdown. `slot`: the conversation item it belongs to. pub fn show(ui: &mut egui::Ui, slot: usize, src: &str) { let t = Tokens::get(); - let size = 13.0; + let size = t.font_button; let parsed = blocks(ui.ctx(), slot, src); for block in parsed.iter() { match block { Block::Paragraph(s) => spans(ui, s, size, t.text), Block::Heading { level, spans: s } => { let size = match level { - 1 => 17.0, - 2 => 15.0, - _ => 14.0, + 1 => t.font_article_heading, + 2 => t.font_subtitle, + _ => t.font_heading, }; ui.add_space(4.0); - ui.add(egui::Label::new(RichText::new(markdown::plain(s)).size(size).strong().color(t.text)).selectable(true).wrap()); + ui.add(egui::Label::new(RichText::new(markdown::plain(s)).size(size).semibold().color(t.text)).selectable(true).wrap()); } Block::Code { text, .. } => { egui::Frame::NONE.fill(t.field).corner_radius(4.0).inner_margin(Margin::same(6)).show(ui, |ui| { ui.set_width(ui.available_width()); - ui.add(egui::Label::new(RichText::new(text).monospace().size(size - 1.0).color(t.text)).selectable(true).wrap()); + ui.add( + egui::Label::new(RichText::new(text).monospace().size(size - (t.font_button - t.font_body)).color(t.text)) + .selectable(true) + .wrap(), + ); if ui.small_button(tr("ui.agent_chat_copy")).clicked() { ui.ctx().copy_text(text.clone()); } @@ -116,7 +124,7 @@ pub fn show(ui: &mut egui::Ui, slot: usize, src: &str) { } Block::Pre(text) => { egui::ScrollArea::horizontal().id_salt(("agent_chat_pre", slot, text.len())).show(ui, |ui| { - ui.add(egui::Label::new(RichText::new(text).monospace().size(size - 2.0).color(t.text)).selectable(true)); + ui.add(egui::Label::new(RichText::new(text).monospace().size(t.font_small).color(t.text)).selectable(true)); }); } Block::Rule => { diff --git a/crates/ui-egui/src/agent_chat/mod.rs b/crates/ui-egui/src/agent_chat/mod.rs index 4dad5c60c..b1f8bb606 100644 --- a/crates/ui-egui/src/agent_chat/mod.rs +++ b/crates/ui-egui/src/agent_chat/mod.rs @@ -638,11 +638,67 @@ pub fn shown(app: &SolveApp) -> bool { app.preferences.ai_features && cfg!(not(target_arch = "wasm32")) } -/// The AI button at the toolbar row's right end is shown. -pub fn toolbar_button_shown(app: &SolveApp) -> bool { +/// The Assistant button in the application bar is shown (honours the existing preference). +pub fn app_bar_button_shown(app: &SolveApp) -> bool { shown(app) && app.preferences.ai_toolbar_button } +/// The application bar's status mark, independent of panel layout and painting. +#[derive(Clone, Copy, Debug, PartialEq, Eq)] +pub(crate) enum AssistantMark { + Quiet, + Ready, + Busy, + NeedsAuth, + Stopped, + Waiting(usize), +} + +fn assistant_mark_for(state: State, login: &str, configured: bool, waiting: usize, stopped: bool, failed: bool) -> AssistantMark { + if waiting > 0 { + return AssistantMark::Waiting(waiting); + } + if state == State::NeedsAuth { + return AssistantMark::NeedsAuth; + } + if state == State::Exited || stopped || failed { + return AssistantMark::Stopped; + } + match state { + State::Busy | State::Starting => AssistantMark::Busy, + // A live session is stronger evidence than an older discovery login probe. + State::Ready => AssistantMark::Ready, + State::Off if configured && matches!(login, "signed_in" | "key") => AssistantMark::Ready, + State::Off if configured && login == "signed_out" => AssistantMark::NeedsAuth, + _ => AssistantMark::Quiet, + } +} + +pub(crate) fn assistant_mark(app: &SolveApp) -> AssistantMark { + let chat = &app.agent_chat; + let current = agents::current(app); + assistant_mark_for( + chat.state(), + current.as_ref().map_or("", |e| e.login), + current.is_some(), + chat.waiting(), + chat.stopped, + chat.ended.as_deref() == Some("error"), + ) +} + +pub(crate) fn assistant_tip(mark: AssistantMark) -> String { + let state = match mark { + AssistantMark::Quiet => tr("ui.agent_chat_state_off").to_string(), + AssistantMark::Ready => tr("ui.agent_chat_state_ready").to_string(), + AssistantMark::Busy => tr("ui.agent_chat_state_busy").to_string(), + AssistantMark::NeedsAuth => tr("ui.agent_chat_state_auth").to_string(), + AssistantMark::Stopped => tr("ui.agent_chat_state_exited").to_string(), + AssistantMark::Waiting(count) => trf("ui.assistant_waiting", &[("count", &count.to_string())]), + }; + format!("{} (Ctrl+Shift+A) — {state}", tr("ui.assistant")) +} + /// Whether a permission question is about one of SolidCraft's own tools (which SolidCraft's own /// gate checks): the agents name MCP tools after their server. fn solidcraft_tool(title: &str) -> bool { diff --git a/crates/ui-egui/src/agent_chat/panel.rs b/crates/ui-egui/src/agent_chat/panel.rs index 8f6c792c2..0b108f177 100644 --- a/crates/ui-egui/src/agent_chat/panel.rs +++ b/crates/ui-egui/src/agent_chat/panel.rs @@ -2,10 +2,12 @@ //! or in Preferences), resizable, folded to a thin strip with Minimise, closed with ×. Its side, //! width and fold are preferences, so they come back next time. +use crate::fonts::RichTextExt as _; use egui::{Align, Align2, Color32, Id, Layout, Rect, RichText, Sense, Stroke, pos2, vec2}; use super::*; use crate::theme::Tokens; +use crate::ui_kit; pub const MIN_WIDTH: f32 = 280.0; pub const MAX_WIDTH: f32 = 760.0; @@ -109,7 +111,7 @@ pub fn show(app: &mut SolveApp, ui: &mut egui::Ui) { .size_range(MIN_WIDTH..=MAX_WIDTH) .resizable(true) .frame(egui::Frame::NONE.fill(t.panel).inner_margin(egui::Margin::symmetric(8, 6))) - .show(ui, |ui| body(app, ui, left)); + .show(ui, |ui| ui_kit::scope(ui, |ui| body(app, ui, left))); crate::scenario::publish_rect("agent_chat:panel", r.response.rect); app.agent_chat.panel_rect = Some(r.response.rect); #[cfg(not(target_arch = "wasm32"))] @@ -134,13 +136,13 @@ fn picture_strip(ui: &mut egui::Ui, n: usize, pictures: &[Picture]) -> Option texture, // Being decoded: a spinner the size of a thumbnail's corner, until it is in. Shown::Loading => { - ui.add(egui::Spinner::new().size(THUMB_MAX.1 / 2.0)); + ui.add(egui::Spinner::new().size(t.space_24)); continue; } // Not a readable picture: its name, or the plain caption. Shown::Failed => { let caption = if picture.note.is_empty() { tr("ui.agent_chat_view_attached").to_string() } else { picture.note.clone() }; - ui.label(RichText::new(caption).color(t.text_dim).size(11.0)); + ui.label(RichText::new(caption).color(t.text_dim).size(t.font_small)); continue; } }; @@ -184,9 +186,9 @@ fn gallery_window(app: &mut SolveApp, ctx: &egui::Context) { let modal = egui::Modal::new(Id::new("sc_agent_chat_gallery")).show(ctx, |ui| { ui.set_max_width(max.x); ui.horizontal(|ui| { - let prev = ui.add_enabled(count > 1, egui::Button::new("‹")); + let prev = ui_kit::button(ui, tr("ui.agent_chat_previous_picture"), ui_kit::Button::Enabled(count > 1)); crate::scenario::publish_handle("agent_chat:gallery_prev", prev.rect.center()); - let next = ui.add_enabled(count > 1, egui::Button::new("›")); + let next = ui_kit::button(ui, tr("ui.agent_chat_next_picture"), ui_kit::Button::Enabled(count > 1)); crate::scenario::publish_handle("agent_chat:gallery_next", next.rect.center()); if prev.clicked() { step = -1; @@ -203,7 +205,7 @@ fn gallery_window(app: &mut SolveApp, ctx: &egui::Context) { crate::scenario::publish_rect("agent_chat:gallery_picture", resp.rect); } Shown::Loading => { - ui.add(egui::Spinner::new().size(32.0)); + ui.add(egui::Spinner::new().size(t.space_24)); } Shown::Failed => { ui.label(RichText::new(tr("ui.agent_chat_view_attached")).color(t.text_dim)); @@ -242,7 +244,7 @@ fn drop_hint(ctx: &egui::Context, area: Rect) { let painter = ctx.layer_painter(egui::LayerId::new(egui::Order::Foreground, Id::new("sc_agent_chat_drop_hint"))); let zone = area.shrink(6.0); painter.rect(zone, 10.0, t.accent.gamma_multiply(0.16), Stroke::new(2.0, t.accent), egui::StrokeKind::Inside); - let font = egui::FontId::proportional(14.0); + let font = egui::FontId::proportional(Tokens::get().font_heading); let text = painter.layout(tr("ui.agent_chat_drop_hint").to_string(), font, t.text, (zone.width() - 24.0).max(40.0)); let at = zone.center() - text.size() / 2.0; painter.galley(at, text, t.text); @@ -301,7 +303,7 @@ fn window(app: &mut SolveApp, ctx: &egui::Context) { ctx.show_viewport_immediate(egui::ViewportId::from_hash_of("sc_agent_chat_window"), builder, |ui, class| { let t = Tokens::get(); let frame = egui::Frame::NONE.fill(t.panel).inner_margin(egui::Margin::symmetric(8, 6)); - let r = egui::CentralPanel::default().frame(frame).show(ui, |ui| body(app, ui, false)); + let r = egui::CentralPanel::default().frame(frame).show(ui, |ui| ui_kit::scope(ui, |ui| body(app, ui, false))); // The picture viewer opens over this window, where the click was, not over the main one. gallery_window(app, ui.ctx()); if class == egui::ViewportClass::EmbeddedWindow { @@ -359,7 +361,7 @@ fn glyph_button(ui: &mut egui::Ui, kind: &str, tip: &str) -> egui::Response { let p = ui.painter(); match kind { "minimize" => { - p.line_segment([c + vec2(-5.0, 4.0), c + vec2(5.0, 4.0)], s); + ui_kit::disclosure(p, c, true, t.text); } "close" => { p.line_segment([c + vec2(-4.5, -4.5), c + vec2(4.5, 4.5)], s); @@ -415,14 +417,20 @@ fn strip(app: &mut SolveApp, ui: &mut egui::Ui) { if resp.hovered() { ui.painter().rect_filled(button, 4.0, t.hover); } - crate::icons::paint(ui.painter(), button.shrink(4.0), "agent_chat", t.icon, t.icon_fill, t.accent); + ui_kit::disclosure(ui.painter(), button.center(), false, t.text); let state = app.agent_chat.state(); ui.painter().circle_filled(pos2(r.center().x, button.bottom() + 10.0), 3.5, state_color(state)); let waiting = app.agent_chat.waiting(); if waiting > 0 { let at = button.right_top() + vec2(-3.0, 3.0); ui.painter().circle_filled(at, 6.5, t.warning); - ui.painter().text(at, Align2::CENTER_CENTER, waiting.min(9).to_string(), egui::FontId::proportional(9.5), t.panel); + ui.painter().text( + at, + Align2::CENTER_CENTER, + waiting.min(9).to_string(), + egui::FontId::proportional(crate::theme::Tokens::get().font_badge), + t.panel, + ); } ui.painter().line_segment( if app.preferences.agent_chat_side == "left" { [r.right_top(), r.right_bottom()] } else { [r.left_top(), r.left_bottom()] }, @@ -451,7 +459,9 @@ fn header(app: &mut SolveApp, ui: &mut egui::Ui, left: bool) { } } } - let l = ui.label(RichText::new(tr("ui.agent_chat")).strong().size(14.0)); + let l = ui.label( + RichText::new(tr("ui.agent_chat")).semibold().color(crate::theme::Tokens::get().text).size(crate::theme::Tokens::get().font_heading), + ); grip.union(l.rect) }; let mut s = state.label().to_string(); @@ -495,9 +505,9 @@ fn header(app: &mut SolveApp, ui: &mut egui::Ui, left: bool) { #[cfg(not(target_arch = "wasm32"))] { let b = if state.running() { - ui.button(tr("ui.agent_chat_stop")).on_hover_text(tr("ui.agent_chat_stop_tip")) + ui_kit::button(ui, tr("ui.agent_chat_stop"), ui_kit::Button::Normal).on_hover_text(tr("ui.agent_chat_stop_tip")) } else { - ui.button(tr("ui.agent_chat_connect")) + ui_kit::button(ui, tr("ui.agent_chat_connect"), ui_kit::Button::Normal) }; crate::scenario::publish_handle("agent_chat:connect", b.rect.center()); if b.clicked() { @@ -539,7 +549,7 @@ fn dock_drag(app: &mut SolveApp, ui: &egui::Ui, drag: &egui::Response, left: boo zone.center(), Align2::CENTER_CENTER, tr(if to_left { "ui.agent_chat_dock_left" } else { "ui.agent_chat_dock_right" }), - egui::FontId::proportional(14.0), + egui::FontId::proportional(crate::theme::Tokens::get().font_heading), t.text, ); } @@ -570,17 +580,16 @@ fn desktop_body(app: &mut SolveApp, ui: &mut egui::Ui) { } let state = app.agent_chat.state(); if app.agent_chat.confirm_new { - let t = Tokens::get(); - egui::Frame::NONE.fill(t.accent_soft).corner_radius(6.0).inner_margin(egui::Margin::same(6)).show(ui, |ui| { + ui_kit::scope(ui, |ui| { ui.set_width(ui.available_width()); - ui.label(tr("ui.agent_chat_new_confirm")); + ui_kit::text(ui, tr("ui.agent_chat_new_confirm"), ui_kit::Text::Report("new_chat", false)); ui.horizontal(|ui| { - let yes = ui.button(tr("ui.agent_chat_new_yes")); + let yes = ui_kit::button(ui, tr("ui.agent_chat_new"), ui_kit::Button::Normal); crate::scenario::publish_handle("agent_chat:new_confirm", yes.rect.center()); if yes.clicked() { new_chat(app); } - if ui.button(tr("ui.agent_chat_cancel")).clicked() { + if ui_kit::button(ui, tr("ui.agent_chat_cancel"), ui_kit::Button::Normal).clicked() { app.agent_chat.confirm_new = false; } }); @@ -615,16 +624,18 @@ fn desktop_body(app: &mut SolveApp, ui: &mut egui::Ui) { if focused { super::paste::handle(app, ui); } - let edit = egui::TextEdit::multiline(&mut app.agent_chat.input) - .hint_text(tr(if busy { "ui.agent_chat_placeholder_busy" } else { "ui.agent_chat_placeholder" })) - .desired_rows(2) - .desired_width(f32::INFINITY) - .id_salt("sc_agent_chat_input"); let r = egui::ScrollArea::vertical() .id_salt("sc_agent_chat_input_scroll") .max_height(edit_max) .auto_shrink([false, true]) - .show(ui, |ui| ui.add(edit)) + .show(ui, |ui| { + ui_kit::message_field( + ui, + Id::new("sc_agent_chat_input"), + &mut app.agent_chat.input, + tr(if busy { "ui.agent_chat_placeholder_busy" } else { "ui.agent_chat_placeholder" }), + ) + }) .inner; crate::scenario::publish_rect("agent_chat:input", r.rect); // macOS shows a window's cursors only while it is the active window: over the text box of a @@ -640,8 +651,7 @@ fn desktop_body(app: &mut SolveApp, ui: &mut egui::Ui) { add_menu(app, ui); // A message waits for files still being read. let reading = !app.agent_chat.loading.is_empty(); - let send_b = ui - .add_enabled(!reading, egui::Button::new(tr(if busy { "ui.agent_chat_queue" } else { "ui.agent_chat_send" }))) + let send_b = ui_kit::button(ui, tr(if busy { "ui.agent_chat_queue" } else { "ui.agent_chat_send" }), ui_kit::Button::Enabled(!reading)) .on_disabled_hover_text(tr("ui.agent_chat_files_loading")); crate::scenario::publish_handle("agent_chat:send", send_b.rect.center()); send_clicked = send_b.clicked(); @@ -649,7 +659,8 @@ fn desktop_body(app: &mut SolveApp, ui: &mut egui::Ui) { // A picture of the view goes with the message to agents that take pictures. let images = app.agent_chat.images || !state.running(); let attach = ui - .add_enabled(images, egui::Checkbox::new(&mut app.agent_chat.attach_view, tr("ui.agent_chat_attach_view"))) + .add_enabled_ui(images, |ui| ui_kit::checkbox(ui, tr("ui.agent_chat_attach_view"), &mut app.agent_chat.attach_view)) + .inner .on_hover_text(tr("ui.agent_chat_attach_view_tip")) .on_disabled_hover_text(tr("ui.agent_chat_no_images")); crate::scenario::publish_handle("agent_chat:attach", attach.rect.center()); @@ -693,32 +704,10 @@ pub(super) fn login_chip(ui: &mut egui::Ui, login: &str) { _ => return, }; egui::Frame::NONE.stroke(Stroke::new(1.0, color)).corner_radius(8.0).inner_margin(egui::Margin::symmetric(6, 1)).show(ui, |ui| { - ui.label(RichText::new(text).color(color).size(11.0)); + ui.label(RichText::new(text).color(color).size(crate::theme::Tokens::get().font_small)); }); } -/// A small mark for an agent's kind: a terminal prompt for a program, a cloud for an endpoint. -pub(super) fn kind_icon(ui: &mut egui::Ui, kind: agents::Kind) { - let t = Tokens::get(); - let (r, _) = ui.allocate_exact_size(vec2(16.0, 14.0), Sense::hover()); - let p = ui.painter(); - let s = Stroke::new(1.3, t.text_dim); - match kind { - agents::Kind::Acp => { - p.rect_stroke(r.shrink(1.0), 2.0, s, egui::StrokeKind::Inside); - p.line_segment([r.left_top() + vec2(4.0, 4.0), r.left_top() + vec2(7.0, 7.0)], s); - p.line_segment([r.left_top() + vec2(7.0, 7.0), r.left_top() + vec2(4.0, 10.0)], s); - p.line_segment([r.left_top() + vec2(8.5, 10.0), r.left_top() + vec2(12.0, 10.0)], s); - } - agents::Kind::Api => { - let c = r.center(); - p.circle_stroke(c + vec2(-3.0, 1.5), 3.2, s); - p.circle_stroke(c + vec2(1.0, -1.0), 4.2, s); - p.circle_stroke(c + vec2(4.0, 2.0), 2.8, s); - } - } -} - /// The header's second row: the agent this conversation uses (a compact switcher), the agent's /// own mode when it has modes, and the state of its login. #[cfg(not(target_arch = "wasm32"))] @@ -736,31 +725,29 @@ fn switcher(app: &mut SolveApp, ui: &mut egui::Ui) { (ui.available_width() - if app.agent_chat.modes.is_empty() { 4.0 } else { 116.0 } - if models { 146.0 } else { 0.0 }).clamp(90.0, 260.0); let mut picked: Option = None; let mut add = false; - let combo = egui::ComboBox::from_id_salt("sc_agent_switch").width(w).selected_text(RichText::new(label).strong()).show_ui(ui, |ui| { - for e in &all { - let sel = current.as_ref().is_some_and(|c| c.id == e.id); - let r = ui.horizontal(|ui| { - kind_icon(ui, e.kind); - let r = ui.selectable_label(sel, &e.name); - ui.label(RichText::new(e.detail()).color(t.text_dim).size(11.0)); - login_chip(ui, e.login); - r - }); - crate::scenario::publish_handle(&format!("agent_chat:agent:{}", e.id), r.inner.rect.center()); - if r.inner.clicked() { - picked = Some(e.id.clone()); - } - } - ui.separator(); - if ui.selectable_label(false, tr("ui.ai_add_agent")).clicked() { - add = true; - } - if ui.selectable_label(false, tr("ui.ai_settings")).clicked() { - crate::prefs::open_at(app, crate::prefs::PAGE_AI); - } - }); - crate::scenario::publish_handle("agent_chat:switcher", combo.response.rect.center()); - combo.response.on_hover_text(tr("ui.ai_switch_tip")); + let combo = ui + .allocate_ui(vec2(w, t.control_height), |ui| { + ui_kit::dropdown_menu(ui, "sc_agent_switch", &label, |ui| { + for e in &all { + let sel = current.as_ref().is_some_and(|c| c.id == e.id); + let r = ui_kit::list_picker(ui, &e.id, &e.name, sel).on_hover_text(format!("{} {}", e.detail(), e.login)); + crate::scenario::publish_handle(&format!("agent_chat:agent:{}", e.id), r.rect.center()); + if r.clicked() { + picked = Some(e.id.clone()); + } + } + ui.separator(); + if ui_kit::list_picker(ui, "add", tr("ui.ai_add_agent"), false).clicked() { + add = true; + } + if ui_kit::list_picker(ui, "settings", tr("ui.ai_settings"), false).clicked() { + crate::prefs::open_at(app, crate::prefs::PAGE_AI); + } + }) + }) + .inner; + crate::scenario::publish_handle("agent_chat:switcher", combo.rect.center()); + combo.on_hover_text(tr("ui.ai_switch_tip")); if add { super::settings::open_add(app); } @@ -775,15 +762,19 @@ fn switcher(app: &mut SolveApp, ui: &mut egui::Ui) { let modes = app.agent_chat.modes.clone(); let cur = modes.iter().find(|(id, _)| *id == app.agent_chat.mode).map_or_else(|| app.agent_chat.mode.clone(), |(_, n)| n.clone()); let mut pick: Option = None; - let r = egui::ComboBox::from_id_salt("sc_agent_mode").width(100.0).selected_text(cur).show_ui(ui, |ui| { - for (id, name) in &modes { - if ui.selectable_label(*id == app.agent_chat.mode, name).clicked() { - pick = Some(id.clone()); - } - } - }); - crate::scenario::publish_handle("agent_chat:mode", r.response.rect.center()); - r.response.on_hover_text(tr("ui.ai_agent_mode_tip")); + let r = ui + .allocate_ui(vec2(t.form_label_width, t.control_height), |ui| { + ui_kit::dropdown_menu(ui, "sc_agent_mode", &cur, |ui| { + for (id, name) in &modes { + if ui_kit::list_picker(ui, id, name, *id == app.agent_chat.mode).clicked() { + pick = Some(id.clone()); + } + } + }) + }) + .inner; + crate::scenario::publish_handle("agent_chat:mode", r.rect.center()); + r.on_hover_text(tr("ui.ai_agent_mode_tip")); if let Some(m) = pick { set_mode(app, &m); } @@ -793,32 +784,35 @@ fn switcher(app: &mut SolveApp, ui: &mut egui::Ui) { let list = app.agent_chat.models.clone(); let cur = list.iter().find(|m| m.id == app.agent_chat.model).map_or_else(|| app.agent_chat.model.clone(), |m| m.name.clone()); let mut pick: Option = None; - let r = egui::ComboBox::from_id_salt("sc_agent_model").width(140.0).truncate().selected_text(cur).show_ui(ui, |ui| { - for m in &list { - let row = ui.selectable_label(m.id == app.agent_chat.model, &m.name); - let row = if m.description.is_empty() { row } else { row.on_hover_text(&m.description) }; - crate::scenario::publish_handle(&format!("agent_chat:model:{}", m.id), row.rect.center()); - if row.clicked() { - pick = Some(m.id.clone()); - } - } - }); - crate::scenario::publish_handle("agent_chat:model", r.response.rect.center()); - r.response.on_hover_text(tr("ui.agent_chat_model_tip")); + let r = ui + .allocate_ui(vec2(t.form_label_width, t.control_height), |ui| { + ui_kit::dropdown_menu(ui, "sc_agent_model", &cur, |ui| { + for m in &list { + let row = ui_kit::list_picker(ui, &m.id, &m.name, m.id == app.agent_chat.model); + let row = if m.description.is_empty() { row } else { row.on_hover_text(&m.description) }; + crate::scenario::publish_handle(&format!("agent_chat:model:{}", m.id), row.rect.center()); + if row.clicked() { + pick = Some(m.id.clone()); + } + } + }) + }) + .inner; + crate::scenario::publish_handle("agent_chat:model", r.rect.center()); + r.on_hover_text(tr("ui.agent_chat_model_tip")); if let Some(m) = pick { set_model(app, &m); } } }); if let Some(a) = &app.agent_chat.auth_status { - ui.label(RichText::new(a).color(t.text_dim).size(11.0)); + ui.label(RichText::new(a).color(t.text_dim).size(crate::theme::Tokens::get().font_small)); } } /// Before the first connection: what's installed, how to install the rest, and Add agent. #[cfg(not(target_arch = "wasm32"))] fn picker(app: &mut SolveApp, ui: &mut egui::Ui) { - let t = Tokens::get(); let open = app.agent_chat.picking.unwrap_or(!app.agent_chat.state().running() && app.agent_chat.items.is_empty()); if !open { return; @@ -826,33 +820,23 @@ fn picker(app: &mut SolveApp, ui: &mut egui::Ui) { let all = agents::entries(app); let current = agents::current(app); ui.horizontal(|ui| { - ui.label(RichText::new(tr("ui.agent_chat_pick")).strong()); + ui_kit::text(ui, tr("ui.agent_chat_pick"), ui_kit::Text::Inline); ui.with_layout(Layout::right_to_left(Align::Center), |ui| { let refreshing = app.agent_chat.detecting.is_some(); - if ui.add_enabled(!refreshing, egui::Button::new(tr("ui.agent_chat_refresh")).small()).clicked() { + if ui_kit::button(ui, tr("ui.agent_chat_refresh"), ui_kit::Button::Enabled(!refreshing)).clicked() { refresh(app, ui.ctx()); } - if ui.small_button(tr("ui.ai_add_agent")).clicked() { + if ui_kit::button(ui, tr("ui.ai_add_agent"), ui_kit::Button::Small).clicked() { super::settings::open_add(app); } }); }); if app.agent_chat.detecting.is_some() { - ui.label(RichText::new(tr("ui.agent_chat_detecting")).color(t.text_dim)); + ui_kit::text(ui, tr("ui.agent_chat_detecting"), ui_kit::Text::Note("detecting")); } for e in &all { let selected = current.as_ref().is_some_and(|c| c.id == e.id); - let fill = if selected { t.accent_soft } else { Color32::TRANSPARENT }; - let r = egui::Frame::NONE.fill(fill).corner_radius(5.0).inner_margin(egui::Margin::symmetric(6, 3)).show(ui, |ui| { - ui.set_width(ui.available_width()); - ui.horizontal(|ui| { - kind_icon(ui, e.kind); - ui.label(RichText::new(&e.name).strong().color(t.text)); - ui.label(RichText::new(e.detail()).color(t.text_dim).size(11.0)); - ui.with_layout(Layout::right_to_left(Align::Center), |ui| login_chip(ui, e.login)); - }); - }); - let resp = ui.interact(r.response.rect, Id::new(("sc_agent_pick", &e.id)), Sense::click()); + let resp = ui_kit::list_picker(ui, &e.id, &e.name, selected).on_hover_text(format!("{} {}", e.detail(), e.login)); crate::scenario::publish_handle(&format!("agent_chat:pick:{}", e.id), resp.rect.center()); if resp.clicked() { app.agent_chat.agent_id = Some(e.id.clone()); @@ -861,66 +845,63 @@ fn picker(app: &mut SolveApp, ui: &mut egui::Ui) { let missing: Vec = app.agent_chat.detection.as_ref().map(|d| d.missing.clone()).unwrap_or_default(); if !missing.is_empty() { let heading = if all.is_empty() { tr("ui.agent_chat_none_found") } else { tr("ui.agent_chat_not_installed") }; - egui::CollapsingHeader::new(RichText::new(heading).color(t.text_dim)).id_salt("sc_agent_missing").default_open(all.is_empty()).show( - ui, - |ui| { - for m in missing { - ui.horizontal(|ui| { - ui.label(RichText::new(m.name).strong()); - if ui.small_button(tr("ui.agent_chat_copy")).on_hover_text(m.install).clicked() { - ui.ctx().copy_text(m.install.to_string()); - } - }); - ui.add(egui::Label::new(RichText::new(m.install).monospace().size(11.0).color(t.text_dim)).selectable(true).wrap()); - } - }, - ); + ui_kit::section(ui, "sc_agent_missing", heading, all.is_empty(), |ui| { + for m in missing { + ui.horizontal(|ui| { + ui_kit::text(ui, m.name, ui_kit::Text::Inline); + if ui_kit::button(ui, tr("ui.agent_chat_copy"), ui_kit::Button::Small).on_hover_text(m.install).clicked() { + ui.ctx().copy_text(m.install.to_string()); + } + }); + ui_kit::text(ui, m.install, ui_kit::Text::Report(m.name, false)); + } + }); } } #[cfg(not(target_arch = "wasm32"))] fn auth_box(app: &mut SolveApp, ui: &mut egui::Ui) { - let t = Tokens::get(); - egui::Frame::group(ui.style()).stroke(Stroke::new(1.0, t.warning)).show(ui, |ui| { + ui_kit::section(ui, "authentication", tr("ui.agent_chat_auth_title"), true, |ui| { ui.set_width(ui.available_width()); - ui.label(RichText::new(tr("ui.agent_chat_auth_title")).strong()); - ui.label(RichText::new(tr("ui.agent_chat_auth_needed")).color(t.text_dim)); + ui_kit::text(ui, tr("ui.agent_chat_auth_needed"), ui_kit::Text::Note("auth_needed")); let methods = app.agent_chat.auth.clone(); let base = app.agent_chat.argv.iter().map(|a| quote(a)).collect::>().join(" "); if methods.is_empty() { - ui.label(tr("ui.agent_chat_auth_none")); + ui_kit::text(ui, tr("ui.agent_chat_auth_none"), ui_kit::Text::Note("auth_none")); } for m in methods { - ui.add_space(4.0); + ui.add_space(crate::theme::Tokens::get().space_4); let desc = m.description.trim(); - ui.label(RichText::new(if desc.is_empty() || desc == m.name { m.name.clone() } else { format!("{} — {desc}", m.name) }).strong()); + ui_kit::text( + ui, + &if desc.is_empty() || desc == m.name { m.name.clone() } else { format!("{} — {desc}", m.name) }, + ui_kit::Text::Report(&m.id, false), + ); match &m.kind { acp::AuthKind::Terminal { args, .. } => { - ui.label(tr("ui.agent_chat_auth_terminal")); + ui_kit::text(ui, tr("ui.agent_chat_auth_terminal"), ui_kit::Text::Note("terminal")); let cmd = format!("{base} {}", args.iter().map(|a| quote(a)).collect::>().join(" ")); ui.horizontal_wrapped(|ui| { - egui::Frame::NONE.fill(t.toolbar).corner_radius(4.0).inner_margin(egui::Margin::symmetric(6, 3)).show(ui, |ui| { - ui.add(egui::Label::new(RichText::new(&cmd).monospace().size(11.0)).selectable(true).wrap()); - }); - if ui.small_button(tr("ui.agent_chat_copy")).clicked() { + ui_kit::text(ui, &cmd, ui_kit::Text::Report("auth_command", false)); + if ui_kit::button(ui, tr("ui.agent_chat_copy"), ui_kit::Button::Small).clicked() { ui.ctx().copy_text(cmd.clone()); } }); } acp::AuthKind::Agent => { - let b = ui.button(trf("ui.agent_chat_auth_agent", &[("name", &m.name)])); + let b = ui_kit::button(ui, trf("ui.agent_chat_auth_agent", &[("name", &m.name)]), ui_kit::Button::Normal); crate::scenario::publish_handle(&format!("agent_chat:auth:{}", m.id), b.rect.center()); if b.clicked() { app.agent_chat.authenticate(&m.id); } } acp::AuthKind::EnvVar { vars } => { - ui.label(trf("ui.agent_chat_auth_env", &[("vars", &vars.join(", "))])); + ui_kit::text(ui, &trf("ui.agent_chat_auth_env", &[("vars", &vars.join(", "))]), ui_kit::Text::Report("auth_environment", false)); } } } - ui.add_space(4.0); - if ui.button(tr("ui.agent_chat_auth_retry")).clicked() { + ui.add_space(crate::theme::Tokens::get().space_4); + if ui_kit::button(ui, tr("ui.agent_chat_auth_retry"), ui_kit::Button::Normal).clicked() { connect(app, ui.ctx()); } }); @@ -950,7 +931,7 @@ fn conversation(app: &mut SolveApp, ui: &mut egui::Ui) { } } else if *image { // Taken when the agent starts on the message: nothing to show yet. - ui.label(RichText::new(tr("ui.agent_chat_view_attached")).color(t.text_dim).size(11.0)); + ui.label(RichText::new(tr("ui.agent_chat_view_attached")).color(t.text_dim).size(t.font_small)); } files_line(ui, files.iter().map(String::as_str)); }); @@ -981,7 +962,7 @@ fn conversation(app: &mut SolveApp, ui: &mut egui::Ui) { Item::Permission { title, options, answer: given, .. } => { egui::Frame::group(ui.style()).stroke(Stroke::new(1.0, t.accent)).show(ui, |ui| { ui.set_width(ui.available_width()); - ui.label(RichText::new(trf("ui.agent_chat_permission", &[("title", title)])).strong()); + ui.label(RichText::new(trf("ui.agent_chat_permission", &[("title", title)])).semibold().color(crate::theme::Tokens::get().text)); match given { Some(a) => { ui.label(RichText::new(trf("ui.agent_chat_answered", &[("option", a)])).color(t.text_dim)); @@ -989,9 +970,11 @@ fn conversation(app: &mut SolveApp, ui: &mut egui::Ui) { None => { ui.horizontal_wrapped(|ui| { for o in options { - let b = egui::Button::new(&o.name); - let b = if o.kind.starts_with("allow") { b.fill(t.accent_soft) } else { b }; - let r = ui.add(b); + let r = if o.kind.starts_with("allow") { + ui_kit::primary_button(ui, &o.name) + } else { + ui_kit::button(ui, &o.name, ui_kit::Button::Normal) + }; crate::scenario::publish_handle(&format!("agent_chat:permission:{}", o.id), r.rect.center()); if r.clicked() { answer = Some((n, Some(o.id.clone()))); @@ -1005,8 +988,8 @@ fn conversation(app: &mut SolveApp, ui: &mut egui::Ui) { Item::Approval { id, title, tool, answer: given } => { egui::Frame::group(ui.style()).stroke(Stroke::new(1.5, t.warning)).show(ui, |ui| { ui.set_width(ui.available_width()); - ui.label(RichText::new(tr("ui.agent_chat_approval")).strong()); - ui.add(egui::Label::new(RichText::new(title).monospace().size(11.5)).selectable(true).wrap()); + ui.label(RichText::new(tr("ui.agent_chat_approval")).semibold().color(crate::theme::Tokens::get().text)); + ui.add(egui::Label::new(RichText::new(title).monospace().size(crate::theme::Tokens::get().font_caption)).selectable(true).wrap()); match given { Some(true) => { ui.label(RichText::new(tr("ui.agent_chat_allowed")).color(t.text_dim)); @@ -1016,9 +999,10 @@ fn conversation(app: &mut SolveApp, ui: &mut egui::Ui) { } None => { ui.horizontal(|ui| { - let allow = ui.add(egui::Button::new(tr("ui.agent_chat_allow")).fill(t.accent_soft)); - let always = ui.button(tr("ui.ai_always_allow")).on_hover_text(trf("ui.ai_always_allow_tip", &[("tool", tool)])); - let deny = ui.button(tr("ui.agent_chat_deny")); + let allow = ui_kit::primary_button(ui, tr("ui.agent_chat_allow")); + let always = ui_kit::button(ui, tr("ui.ai_always_allow"), ui_kit::Button::Normal) + .on_hover_text(trf("ui.ai_always_allow_tip", &[("tool", tool)])); + let deny = ui_kit::button(ui, tr("ui.agent_chat_deny"), ui_kit::Button::Normal); crate::scenario::publish_handle("agent_chat:allow", allow.rect.center()); crate::scenario::publish_handle("agent_chat:always", always.rect.center()); crate::scenario::publish_handle("agent_chat:deny", deny.rect.center()); @@ -1039,11 +1023,11 @@ fn conversation(app: &mut SolveApp, ui: &mut egui::Ui) { Item::Changes { steps, doc, undone } => { ui.horizontal(|ui| { let text = trf("ui.agent_chat_changes", &[("n", &steps.to_string())]); - ui.label(RichText::new(text).color(t.text_dim).size(11.5)); + ui.label(RichText::new(text).color(t.text_dim).size(crate::theme::Tokens::get().font_caption)); if *undone { - ui.label(RichText::new(tr("ui.agent_chat_undone")).color(t.text_dim).size(11.5)); + ui.label(RichText::new(tr("ui.agent_chat_undone")).color(t.text_dim).size(crate::theme::Tokens::get().font_caption)); } else if Arc::ptr_eq(doc, ¤t_doc) { - let b = ui.button(tr("ui.agent_chat_undo_changes")).on_hover_text(tr("ui.ai_undo_tip")); + let b = ui_kit::button(ui, tr("ui.agent_chat_undo_changes"), ui_kit::Button::Normal).on_hover_text(tr("ui.ai_undo_tip")); crate::scenario::publish_handle("agent_chat:undo", b.rect.center()); if b.clicked() { undo = Some(n); @@ -1071,15 +1055,15 @@ fn conversation(app: &mut SolveApp, ui: &mut egui::Ui) { ui.set_width(ui.available_width()); ui.horizontal(|ui| { let tag = if stopped && !busy { "ui.agent_chat_queued_stopped" } else { "ui.agent_chat_queued" }; - ui.label(RichText::new(tr(tag)).color(t.accent).strong().size(11.0)); + ui.label(RichText::new(tr(tag)).color(t.accent).semibold().size(crate::theme::Tokens::get().font_small)); ui.with_layout(Layout::right_to_left(Align::Center), |ui| { - let x = ui.add(egui::Button::new(RichText::new("×").size(14.0)).frame(false)).on_hover_text(tr("ui.agent_chat_remove")); + let x = ui_kit::button(ui, "×", ui_kit::Button::Small).on_hover_text(tr("ui.agent_chat_remove")); crate::scenario::publish_handle(&format!("agent_chat:pending_remove:{n}"), x.rect.center()); if x.clicked() { remove = Some(n); } if editing.as_ref().is_none_or(|(i, _)| *i != n) { - let e = ui.add(egui::Button::new(RichText::new(tr("ui.agent_chat_edit")).size(11.5)).frame(false)); + let e = ui_kit::button(ui, tr("ui.agent_chat_edit"), ui_kit::Button::Small); crate::scenario::publish_handle(&format!("agent_chat:pending_edit:{n}"), e.rect.center()); if e.clicked() { start_edit = Some((n, p.text.clone())); @@ -1089,13 +1073,13 @@ fn conversation(app: &mut SolveApp, ui: &mut egui::Ui) { }); match (&editing, edit_buf.as_mut()) { (Some((i, _)), Some(buf)) if *i == n => { - let te = ui.add(egui::TextEdit::multiline(buf).desired_rows(2).desired_width(f32::INFINITY)); + let te = ui_kit::message_field(ui, Id::new(("sc_agent_pending_input", n)), buf, ""); crate::scenario::publish_rect("agent_chat:pending_input", te.rect); ui.horizontal(|ui| { - if ui.button(tr("ui.agent_chat_save")).clicked() { + if ui_kit::button(ui, tr("ui.agent_chat_save"), ui_kit::Button::Normal).clicked() { edit_done = Some((n, Some(buf.clone()))); } - if ui.button(tr("ui.agent_chat_cancel")).clicked() { + if ui_kit::button(ui, tr("ui.agent_chat_cancel"), ui_kit::Button::Normal).clicked() { edit_done = Some((n, None)); } }); @@ -1105,7 +1089,7 @@ fn conversation(app: &mut SolveApp, ui: &mut egui::Ui) { ui.add(egui::Label::new(RichText::new(&p.text).color(t.text)).selectable(true).wrap()); } if p.image { - ui.label(RichText::new(tr("ui.agent_chat_view_attached")).color(t.text_dim).size(11.0)); + ui.label(RichText::new(tr("ui.agent_chat_view_attached")).color(t.text_dim).size(crate::theme::Tokens::get().font_small)); } files_line(ui, p.files.iter().map(|f| f.name.as_str())); } @@ -1115,11 +1099,11 @@ fn conversation(app: &mut SolveApp, ui: &mut egui::Ui) { if !app.agent_chat.pending.is_empty() && editing.is_none() { ui.horizontal(|ui| { if busy { - let b = ui.button(tr("ui.agent_chat_send_now")).on_hover_text(tr("ui.agent_chat_send_now_tip")); + let b = ui_kit::button(ui, tr("ui.agent_chat_send_now"), ui_kit::Button::Normal).on_hover_text(tr("ui.agent_chat_send_now_tip")); crate::scenario::publish_handle("agent_chat:send_now", b.rect.center()); send_now_clicked = b.clicked(); } else { - let b = ui.add(egui::Button::new(tr("ui.agent_chat_send")).fill(t.accent_soft)); + let b = ui_kit::primary_button(ui, tr("ui.agent_chat_send")); crate::scenario::publish_handle("agent_chat:send_queue", b.rect.center()); send_queue_clicked = b.clicked(); } @@ -1134,7 +1118,7 @@ fn conversation(app: &mut SolveApp, ui: &mut egui::Ui) { ui.add_space(12.0); ui.label(RichText::new(tr("ui.agent_chat_intro")).color(t.text_dim)); ui.add_space(6.0); - ui.label(RichText::new(tr("ui.agent_chat_privacy")).color(t.text_dim).size(11.0)); + ui.label(RichText::new(tr("ui.agent_chat_privacy")).color(t.text_dim).size(crate::theme::Tokens::get().font_small)); } if let Some((n, text)) = edit_done { if let (Some(text), Some(p)) = (text.filter(|t| !t.trim().is_empty()), app.agent_chat.pending.get_mut(n)) { @@ -1173,7 +1157,7 @@ fn files_line<'a>(ui: &mut egui::Ui, names: impl Iterator) { let list = names.collect::>().join(", "); if !list.is_empty() { let t = Tokens::get(); - ui.add(egui::Label::new(RichText::new(trf("ui.agent_chat_files", &[("files", &list)])).color(t.text_dim).size(11.0)).wrap()); + ui.add(egui::Label::new(RichText::new(trf("ui.agent_chat_files", &[("files", &list)])).color(t.text_dim).size(t.font_small)).wrap()); } } @@ -1248,11 +1232,11 @@ fn loading_chip(ui: &mut egui::Ui, name: &str, importing: bool, i: usize, w: f32 ui.horizontal(|ui| { ui.spacing_mut().item_spacing.x = 4.0; let doing = tr(if importing { "ui.agent_chat_file_importing" } else { "ui.agent_chat_file_loading" }); - let mark = ui.add(egui::Spinner::new().size(16.0)).on_hover_text(doing).rect.width(); + let mark = ui.add(egui::Spinner::new().size(t.form_icon_size)).on_hover_text(doing).rect.width(); let name_w = (inner - mark - 18.0 - 8.0).max(8.0); ui.allocate_ui(vec2(name_w, 20.0), |ui| { ui.set_width(name_w); - ui.add(egui::Label::new(RichText::new(name).size(11.5).color(t.text_dim)).truncate()) + ui.add(egui::Label::new(RichText::new(name).size(t.font_small).color(t.text_dim)).truncate()) }) .inner .on_hover_text(name); @@ -1295,14 +1279,20 @@ fn chip(ui: &mut egui::Ui, thumbs: &mut std::collections::HashMap) -> Test { Test::Running(rx) } -fn test_line(ui: &mut egui::Ui, t: &Option<&Test>) { - let tk = Tokens::get(); - match t { +fn test_line(ui: &mut egui::Ui, test: &Option<&Test>) { + match test { Some(Test::Running(_)) => { - ui.label(RichText::new(tr("ui.ai_testing")).color(tk.text_dim).size(11.0)); + ui_kit::text(ui, tr("ui.ai_testing"), ui_kit::Text::Note("testing")); } - Some(Test::Done(Ok(m))) => { - ui.label(RichText::new(m.clone()).color(tk.accent).size(11.0)); + Some(Test::Done(Ok(message))) => { + ui_kit::text(ui, message, ui_kit::Text::Report("test_ok", false)); } - Some(Test::Done(Err(e))) => { - ui.add(egui::Label::new(RichText::new(e).color(tk.error).size(11.0)).wrap()); + Some(Test::Done(Err(error))) => { + ui_kit::text(ui, error, ui_kit::Text::Report("test_error", true)); } None => {} } } -fn section(ui: &mut egui::Ui, title: &str) { - ui.add_space(10.0); - ui.label(RichText::new(title).strong().size(13.0)); - ui.separator(); -} - -fn note(ui: &mut egui::Ui, text: &str) { - let t = Tokens::get(); - ui.add(egui::Label::new(RichText::new(text).size(11.0).color(t.text_dim)).wrap()); -} - /// The AI page of Settings. pub fn page(app: &mut SolveApp, ui: &mut egui::Ui) { - let t = Tokens::get(); - let r = ui.checkbox(&mut app.preferences.ai_features, RichText::new(tr("ui.ai_show_features")).strong()); + let r = ui_kit::checkbox(ui, tr("ui.ai_show_features"), &mut app.preferences.ai_features); crate::scenario::publish_handle("prefs:ai_features", r.rect.center()); - note(ui, tr("ui.ai_show_features_note")); + ui_kit::text(ui, tr("ui.ai_show_features_note"), ui_kit::Text::Note("features")); if cfg!(target_arch = "wasm32") { - note(ui, tr("ui.agent_chat_desktop_only")); + ui_kit::text(ui, tr("ui.agent_chat_desktop_only"), ui_kit::Text::Note("desktop")); return; } if !app.preferences.ai_features { return; } - ui.add_enabled_ui(true, |ui| { - let r = ui.checkbox(&mut app.preferences.ai_toolbar_button, tr("ui.ai_toolbar_button")); - crate::scenario::publish_handle("prefs:ai_toolbar_button", r.rect.center()); - }); - note(ui, tr("ui.ai_toolbar_button_note")); + let r = ui_kit::checkbox(ui, tr("ui.ai_toolbar_button"), &mut app.preferences.ai_toolbar_button); + crate::scenario::publish_handle("prefs:ai_toolbar_button", r.rect.center()); + ui_kit::text(ui, tr("ui.ai_toolbar_button_note"), ui_kit::Text::Note("toolbar")); #[cfg(not(target_arch = "wasm32"))] { if app.agent_chat.detection.is_none() && app.agent_chat.detecting.is_none() { @@ -140,153 +123,139 @@ pub fn page(app: &mut SolveApp, ui: &mut egui::Ui) { } agents_section(app, ui); } - section(ui, tr("ui.ai_permissions")); - for m in Mode::ALL { - let r = ui.radio_value(&mut app.preferences.ai_permissions, m, m.label()); - crate::scenario::publish_handle(&format!("prefs:ai_mode:{}", m.id()), r.rect.center()); - note( - ui, - tr(match m { - Mode::Ask => "ui.ai_mode_ask_note", - Mode::Edits => "ui.ai_mode_edits_note", - Mode::All => "ui.ai_mode_all_note", - }), - ); - } - if app.preferences.ai_permissions == Mode::All { - egui::Frame::NONE.stroke(Stroke::new(1.0, t.warning)).corner_radius(4.0).inner_margin(egui::Margin::same(6)).show(ui, |ui| { - ui.add(egui::Label::new(RichText::new(tr("ui.ai_mode_all_warning")).color(t.warning)).wrap()); - }); - } - note(ui, tr("ui.ai_modes_scope")); - // "Always allow" answers. - let remembered: Vec<(String, Vec)> = - app.preferences.agent_always_allow.iter().filter(|(_, v)| !v.is_empty()).map(|(k, v)| (k.clone(), v.clone())).collect(); - ui.add_space(4.0); - ui.label(RichText::new(tr("ui.ai_always_allowed")).strong()); - if remembered.is_empty() { - note(ui, tr("ui.ai_always_allowed_none")); - } - let names: std::collections::HashMap = agents::entries(app).into_iter().map(|e| (e.id, e.name)).collect(); - for (agent, tools) in remembered { - ui.horizontal_wrapped(|ui| { - ui.label(names.get(&agent).cloned().unwrap_or_else(|| agent.clone())); - for tool in &tools { - ui.label(RichText::new(tool).monospace().size(11.0).color(t.text_dim)); + ui_kit::section(ui, "permissions", tr("ui.ai_permissions"), true, |ui| { + for mode in Mode::ALL { + let r = ui_kit::list_picker(ui, mode.id(), mode.label(), app.preferences.ai_permissions == mode); + crate::scenario::publish_handle(&format!("prefs:ai_mode:{}", mode.id()), r.rect.center()); + if r.clicked() { + app.preferences.ai_permissions = mode; } - if ui.small_button(tr("ui.ai_reset")).clicked() { - app.preferences.agent_always_allow.remove(&agent); + ui_kit::text( + ui, + tr(match mode { + Mode::Ask => "ui.ai_mode_ask_note", + Mode::Edits => "ui.ai_mode_edits_note", + Mode::All => "ui.ai_mode_all_note", + }), + ui_kit::Text::Note(mode.id()), + ); + } + if app.preferences.ai_permissions == Mode::All { + ui_kit::text(ui, tr("ui.ai_mode_all_warning"), ui_kit::Text::Report("permissions_warning", true)); + } + ui_kit::text(ui, tr("ui.ai_modes_scope"), ui_kit::Text::Note("scope")); + ui_kit::section(ui, "always_allowed", tr("ui.ai_always_allowed"), true, |ui| { + let remembered: Vec<_> = + app.preferences.agent_always_allow.iter().filter(|(_, v)| !v.is_empty()).map(|(k, v)| (k.clone(), v.clone())).collect(); + if remembered.is_empty() { + ui_kit::text(ui, tr("ui.ai_always_allowed_none"), ui_kit::Text::Note("none")); + } + let names: std::collections::HashMap<_, _> = agents::entries(app).into_iter().map(|e| (e.id, e.name)).collect(); + for (agent, tools) in remembered { + ui_kit::label_actions(ui, names.get(&agent).unwrap_or(&agent), |ui| { + if ui_kit::button(ui, tr("ui.ai_reset"), ui_kit::Button::Small).clicked() { + app.preferences.agent_always_allow.remove(&agent); + } + }); + ui_kit::text(ui, &tools.join(", "), ui_kit::Text::Report(&agent, false)); } }); - } - section(ui, tr("ui.ai_panel")); - egui::Grid::new("sc_ai_panel_grid").num_columns(2).spacing([16.0, 6.0]).show(ui, |ui| { - ui.label(tr("ui.agent_chat_side")); - ui.horizontal(|ui| { - let p = &mut app.preferences; - let (left, popped) = (p.agent_chat_side == "left", p.agent_chat_popped); - if ui.radio(left && !popped, tr("ui.agent_chat_left")).clicked() { - p.agent_chat_side = "left".into(); - p.agent_chat_popped = false; - } - if ui.radio(!left && !popped, tr("ui.agent_chat_right")).clicked() { - p.agent_chat_side = "right".into(); - p.agent_chat_popped = false; - } - #[cfg(not(target_arch = "wasm32"))] - if ui.radio(popped, tr("ui.agent_chat_own_window")).on_hover_text(tr("ui.agent_chat_pop_out")).clicked() { - p.agent_chat_popped = true; - } - }); - ui.end_row(); - ui.label(tr("ui.agent_chat_turn_limit")); - ui.add(egui::DragValue::new(&mut app.preferences.agent_chat_turn_limit).range(1..=200)); - ui.end_row(); }); - ui.add_space(6.0); - note(ui, tr("ui.agent_chat_privacy_note")); + ui_kit::section(ui, "panel", tr("ui.ai_panel"), true, |ui| { + ui_kit::row(ui, tr("ui.agent_chat_side"), |ui| { + let p = &mut app.preferences; + let mut selected = if p.agent_chat_popped { 2 } else { usize::from(p.agent_chat_side != "left") }; + let options = [tr("ui.agent_chat_left"), tr("ui.agent_chat_right"), tr("ui.agent_chat_own_window")]; + if ui_kit::segmented(ui, &mut selected, &options, Default::default()) { + p.agent_chat_popped = selected == 2; + if selected < 2 { + p.agent_chat_side = if selected == 0 { "left" } else { "right" }.into(); + } + } + }); + ui_kit::row(ui, tr("ui.agent_chat_turn_limit"), |ui| { + ui_kit::number_field(ui, &mut app.preferences.agent_chat_turn_limit, 1..=200, 1.0, ""); + }); + ui_kit::text(ui, tr("ui.agent_chat_privacy_note"), ui_kit::Text::Note("privacy")); + }); } /// The agents: found and added, with Test, Default, a permission override and Remove. #[cfg(not(target_arch = "wasm32"))] fn agents_section(app: &mut SolveApp, ui: &mut egui::Ui) { - let t = Tokens::get(); - section(ui, tr("ui.ai_agents")); for test in app.agent_chat.settings.tests.values_mut() { test.poll(); } let all = agents::entries(app); let d = &app.preferences.agent_default; let default = if all.iter().any(|e| &e.id == d) { Some(d.clone()) } else { all.first().map(|e| e.id.clone()) }; - if app.agent_chat.detecting.is_some() { - ui.label(RichText::new(tr("ui.agent_chat_detecting")).color(t.text_dim)); - } else if all.is_empty() { - note(ui, tr("ui.agent_chat_none_found")); - } let mut remove: Option = None; let mut test: Option = None; - for e in &all { - egui::Frame::NONE.stroke(Stroke::new(1.0, t.border)).corner_radius(5.0).inner_margin(egui::Margin::symmetric(8, 5)).show(ui, |ui| { - ui.set_width(ui.available_width()); - ui.horizontal(|ui| { - super::panel::kind_icon(ui, e.kind); - ui.label(RichText::new(&e.name).strong()); - ui.label(RichText::new(e.detail()).color(t.text_dim).size(11.0)); + ui_kit::section(ui, "agents", tr("ui.ai_agents"), true, |ui| { + if app.agent_chat.detecting.is_some() { + ui_kit::text(ui, tr("ui.agent_chat_detecting"), ui_kit::Text::Note("detecting")); + } else if all.is_empty() { + ui_kit::text(ui, tr("ui.agent_chat_none_found"), ui_kit::Text::Note("none")); + } + for e in &all { + ui_kit::section(ui, &e.id, &e.name, true, |ui| { + ui_kit::text(ui, &e.detail(), ui_kit::Text::Report("detail", false)); super::panel::login_chip(ui, e.login); if !e.found { - ui.label(RichText::new(tr("ui.ai_added")).color(t.text_dim).size(11.0)); + ui_kit::text(ui, tr("ui.ai_added"), ui_kit::Text::Note("added")); } - }); - ui.horizontal(|ui| { - let is_default = default.as_deref() == Some(e.id.as_str()); - if ui.radio(is_default, tr("ui.ai_default")).clicked() { - app.preferences.agent_default = e.id.clone(); - } - let b = ui.small_button(tr("ui.ai_test")); - crate::scenario::publish_handle(&format!("prefs:ai_test:{}", e.id), b.rect.center()); - if b.on_hover_text(tr(if e.kind == Kind::Acp { "ui.ai_test_acp_tip" } else { "ui.ai_test_api_tip" })).clicked() { - test = Some(e.clone()); - } - // Its own permission mode, or the global one. - let cur = app.preferences.agent_permissions.get(&e.id).copied(); - let shown = cur.map_or_else(|| tr("ui.ai_mode_global").to_string(), |m| m.label().to_string()); - let mut pick: Option> = None; - egui::ComboBox::from_id_salt(("sc_ai_mode", &e.id)).width(150.0).selected_text(shown).show_ui(ui, |ui| { - if ui.selectable_label(cur.is_none(), tr("ui.ai_mode_global")).clicked() { - pick = Some(None); - } - for m in Mode::ALL { - if ui.selectable_label(cur == Some(m), m.label()).clicked() { - pick = Some(Some(m)); - } + ui.horizontal_wrapped(|ui| { + if ui_kit::list_picker(ui, &e.id, tr("ui.ai_default"), default.as_deref() == Some(e.id.as_str())).clicked() { + app.preferences.agent_default = e.id.clone(); } }); - match pick { - Some(Some(m)) => { - app.preferences.agent_permissions.insert(e.id.clone(), m); + ui_kit::row(ui, tr("ui.ai_permissions"), |ui| { + let cur = app.preferences.agent_permissions.get(&e.id).copied(); + let shown = cur.map_or_else(|| tr("ui.ai_mode_global").to_string(), |m| m.label().to_string()); + let mut pick: Option> = None; + ui_kit::dropdown_menu(ui, ("sc_ai_mode", &e.id), &shown, |ui| { + if ui_kit::list_picker(ui, "global", tr("ui.ai_mode_global"), cur.is_none()).clicked() { + pick = Some(None); + } + for m in Mode::ALL { + if ui_kit::list_picker(ui, m.id(), m.label(), cur == Some(m)).clicked() { + pick = Some(Some(m)); + } + } + }); + match pick { + Some(Some(m)) => { + app.preferences.agent_permissions.insert(e.id.clone(), m); + } + Some(None) => { + app.preferences.agent_permissions.remove(&e.id); + } + None => {} } - Some(None) => { - app.preferences.agent_permissions.remove(&e.id); + }); + ui.horizontal_wrapped(|ui| { + let b = ui_kit::button(ui, tr("ui.ai_test"), ui_kit::Button::Normal); + crate::scenario::publish_handle(&format!("prefs:ai_test:{}", e.id), b.rect.center()); + if b.on_hover_text(tr(if e.kind == Kind::Acp { "ui.ai_test_acp_tip" } else { "ui.ai_test_api_tip" })).clicked() { + test = Some(e.clone()); } - None => {} - } - if !e.found && ui.small_button(tr("ui.ai_remove")).clicked() { - remove = Some(e.id.clone()); - } + if !e.found && ui_kit::button(ui, tr("ui.ai_remove"), ui_kit::Button::Normal).clicked() { + remove = Some(e.id.clone()); + } + }); + test_line(ui, &app.agent_chat.settings.tests.get(&e.id)); }); - test_line(ui, &app.agent_chat.settings.tests.get(&e.id)); + } + ui.horizontal_wrapped(|ui| { + let b = ui_kit::button(ui, tr("ui.ai_add_agent"), ui_kit::Button::Normal); + crate::scenario::publish_handle("prefs:ai_add", b.rect.center()); + if b.clicked() { + open_add(app); + } + if ui_kit::button(ui, tr("ui.agent_chat_refresh"), ui_kit::Button::Enabled(app.agent_chat.detecting.is_none())).clicked() { + refresh(app, &ui.ctx().clone()); + } }); - ui.add_space(3.0); - } - ui.horizontal(|ui| { - let b = ui.button(tr("ui.ai_add_agent")); - crate::scenario::publish_handle("prefs:ai_add", b.rect.center()); - if b.clicked() { - open_add(app); - } - if ui.add_enabled(app.agent_chat.detecting.is_none(), egui::Button::new(tr("ui.agent_chat_refresh"))).clicked() { - refresh(app, &ui.ctx().clone()); - } }); if let Some(e) = test { let key = if e.key { app.services.secrets.as_ref().and_then(|s| s.get(&e.id).ok().flatten()) } else { None }; @@ -322,145 +291,121 @@ pub fn dialog(app: &mut SolveApp, ctx: &egui::Context) { let mut open = true; let mut add = false; let mut test = false; - let t = Tokens::get(); - egui::Window::new(tr("ui.ai_add_agent_title")) - .id(egui::Id::new("sc_ai_add")) - .collapsible(false) - .resizable(false) - .default_width(460.0) - .pivot(egui::Align2::CENTER_CENTER) - .default_pos(ctx.content_rect().center()) - .open(&mut open) - .order(egui::Order::Foreground) - .show(ctx, |ui| { + let (closed, action) = ui_kit::Window::new(egui::Id::new("sc_ai_add"), "settings", tr("ui.ai_add_agent_title")) + .cards(2.0) + .fields() + .actions(tr("ui.ai_add"), "Cancel", None) + .show(ctx, true, |ui| { let Some(s) = app.agent_chat.settings.add.as_mut() else { return }; if let Some(test) = s.test.as_mut() { test.poll(); } - ui.horizontal(|ui| { - for (k, label) in - [(AddKind::Installed, "ui.ai_add_installed"), (AddKind::Custom, "ui.ai_add_custom"), (AddKind::Api, "ui.ai_add_api")] + let kinds = [(AddKind::Installed, "ui.ai_add_installed"), (AddKind::Custom, "ui.ai_add_custom"), (AddKind::Api, "ui.ai_add_api")]; + ui_kit::row(ui, tr("ui.ai_preset"), |ui| { + let mut selected = kinds.iter().position(|(k, _)| *k == s.kind).unwrap_or(0); + let labels = kinds.map(|(_, key)| tr(key)); + if ui_kit::segmented(ui, &mut selected, &labels, ui_kit::Segments { compact: true, ..Default::default() }) + && let Some((kind, _)) = kinds.get(selected) { - let r = ui.selectable_value(&mut s.kind, k, tr(label)); - crate::scenario::publish_handle(&format!("ai_add:{label}"), r.rect.center()); - if r.clicked() { - s.error = None; - s.test = None; - s.command.clear(); - s.name.clear(); - if k == AddKind::Api - && let Some((name, url, _)) = agents::API_PRESETS.get(s.preset) - { - s.name = name.to_string(); - s.base_url = url.to_string(); - } + s.kind = *kind; + s.error = None; + s.test = None; + } + for (_, key) in kinds { + if let Some(at) = crate::scenario::handle_at(&format!("dialog:{}:{}", tr("ui.ai_preset"), tr(key))) { + crate::scenario::publish_handle(&format!("ai_add:{key}"), at); } } }); - ui.separator(); - egui::Grid::new("sc_ai_add_grid").num_columns(2).spacing([12.0, 8.0]).show(ui, |ui| match s.kind { + match s.kind { AddKind::Installed => { - ui.label(tr("ui.agent_chat_pick")); - if found.is_empty() { - ui.label(RichText::new(tr("ui.agent_chat_none_found_short")).color(t.text_dim)); - } else { - let sel = found.get(s.installed).map(|e| e.name.clone()).unwrap_or_default(); - egui::ComboBox::from_id_salt("sc_ai_add_installed").width(260.0).selected_text(sel).show_ui(ui, |ui| { - for (i, e) in found.iter().enumerate() { - if ui.selectable_value(&mut s.installed, i, format!("{} {}", e.name, e.detail())).clicked() { - s.command = e.argv.iter().map(|a| super::panel::quote(a)).collect::>().join(" "); - s.name = format!("{} ({})", e.name, tr("ui.ai_copy_suffix")); + ui_kit::row(ui, tr("ui.agent_chat_pick"), |ui| { + if found.is_empty() { + ui_kit::text(ui, tr("ui.agent_chat_none_found_short"), ui_kit::Text::Inline); + } else { + let sel = found.get(s.installed).map(|e| e.name.clone()).unwrap_or_default(); + ui_kit::dropdown_menu(ui, "sc_ai_add_installed", &sel, |ui| { + for (i, e) in found.iter().enumerate() { + if ui_kit::list_picker(ui, &e.id, &format!("{} {}", e.name, e.detail()), s.installed == i).clicked() { + s.installed = i; + s.command = e.argv.iter().map(|a| super::panel::quote(a)).collect::>().join(" "); + s.name = format!("{} ({})", e.name, tr("ui.ai_copy_suffix")); + } } - } - }); - } - ui.end_row(); + }); + } + }); if s.command.is_empty() && let Some(e) = found.get(s.installed) { s.command = e.argv.iter().map(|a| super::panel::quote(a)).collect::>().join(" "); s.name = format!("{} ({})", e.name, tr("ui.ai_copy_suffix")); } - ui.label(tr("ui.ai_name")); - ui.add(egui::TextEdit::singleline(&mut s.name).desired_width(300.0)); - ui.end_row(); - ui.label(tr("ui.agent_chat_command")); - ui.add(egui::TextEdit::singleline(&mut s.command).desired_width(300.0)); - ui.end_row(); - ui.label(""); - ui.add(egui::Label::new(RichText::new(tr("ui.ai_add_installed_note")).size(11.0).color(t.text_dim)).wrap()); - ui.end_row(); + ui_kit::row(ui, tr("ui.ai_name"), |ui| { + ui_kit::text_field(ui, &mut s.name, ""); + }); + ui_kit::row(ui, tr("ui.agent_chat_command"), |ui| { + ui_kit::text_field(ui, &mut s.command, ""); + }); + ui_kit::text(ui, tr("ui.ai_add_installed_note"), ui_kit::Text::Note("installed")); } AddKind::Custom => { - ui.label(tr("ui.ai_name")); - ui.add(egui::TextEdit::singleline(&mut s.name).hint_text("My agent").desired_width(300.0)); - ui.end_row(); - ui.label(tr("ui.agent_chat_command")); - ui.add(egui::TextEdit::singleline(&mut s.command).hint_text("my-agent --acp").desired_width(300.0)); - ui.end_row(); - ui.label(""); - ui.add(egui::Label::new(RichText::new(tr("ui.agent_chat_custom_hint")).size(11.0).color(t.text_dim)).wrap()); - ui.end_row(); + ui_kit::row(ui, tr("ui.ai_name"), |ui| { + ui_kit::text_field(ui, &mut s.name, tr("ui.ai_name_hint")); + }); + ui_kit::row(ui, tr("ui.agent_chat_command"), |ui| { + ui_kit::text_field(ui, &mut s.command, tr("ui.ai_command_hint")); + }); + ui_kit::text(ui, tr("ui.agent_chat_custom_hint"), ui_kit::Text::Note("custom")); } AddKind::Api => { - ui.label(tr("ui.ai_preset")); - let presets: Vec = - agents::API_PRESETS.iter().map(|p| p.0.to_string()).chain(std::iter::once(tr("ui.ai_custom_url").to_string())).collect(); - let sel = presets.get(s.preset).cloned().unwrap_or_default(); - egui::ComboBox::from_id_salt("sc_ai_add_preset").width(200.0).selected_text(sel).show_ui(ui, |ui| { - for (i, p) in presets.iter().enumerate() { - if ui.selectable_value(&mut s.preset, i, p).clicked() { - if let Some((name, url, _)) = agents::API_PRESETS.get(i) { - s.base_url = url.to_string(); - s.name = name.to_string(); - } else { - s.base_url.clear(); + let presets: Vec<_> = agents::API_PRESETS.iter().map(|p| p.0).chain(std::iter::once(tr("ui.ai_custom_url"))).collect(); + ui_kit::row(ui, tr("ui.ai_preset"), |ui| { + ui_kit::dropdown_menu(ui, "sc_ai_add_preset", presets.get(s.preset).copied().unwrap_or_default(), |ui| { + for (index, preset) in presets.iter().enumerate() { + if ui_kit::list_picker(ui, preset, preset, s.preset == index).clicked() { + s.preset = index; + if let Some((name, url, _)) = agents::API_PRESETS.get(index) { + s.base_url = url.to_string(); + s.name = name.to_string(); + } else { + s.base_url.clear(); + } } } - } + }); }); - ui.end_row(); - ui.label(tr("ui.ai_name")); - ui.add(egui::TextEdit::singleline(&mut s.name).desired_width(300.0)); - ui.end_row(); - ui.label(tr("ui.ai_base_url")); - ui.add(egui::TextEdit::singleline(&mut s.base_url).hint_text("https://example.com/v1").desired_width(300.0)); - ui.end_row(); - ui.label(tr("ui.ai_model")); - ui.add(egui::TextEdit::singleline(&mut s.model).hint_text("qwen3:14b").desired_width(300.0)); - ui.end_row(); - ui.label(tr("ui.ai_key")); - ui.add_enabled( - has_keychain, - egui::TextEdit::singleline(&mut s.key).password(true).hint_text(tr("ui.ai_key_hint")).desired_width(300.0), - ); - ui.end_row(); - ui.label(""); - let note = if has_keychain { tr("ui.ai_key_note") } else { tr("ui.ai_no_keychain") }; - ui.add(egui::Label::new(RichText::new(note).size(11.0).color(t.text_dim)).wrap()); - ui.end_row(); - ui.label(""); - ui.horizontal(|ui| { - if ui.button(tr("ui.ai_test")).clicked() { - test = true; - } - test_line(ui, &s.test.as_ref()); + ui_kit::row(ui, tr("ui.ai_name"), |ui| { + ui_kit::text_field(ui, &mut s.name, ""); }); - ui.end_row(); + ui_kit::row(ui, tr("ui.ai_base_url"), |ui| { + ui_kit::text_field(ui, &mut s.base_url, tr("ui.ai_url_hint")); + }); + ui_kit::row(ui, tr("ui.ai_model"), |ui| { + ui_kit::text_field(ui, &mut s.model, tr("ui.ai_model_hint")); + }); + ui_kit::row(ui, tr("ui.ai_key"), |ui| { + ui.add_enabled_ui(has_keychain, |ui| { + let r = ui_kit::password_field(ui, egui::Id::new("sc_ai_add_key"), &mut s.key, tr("ui.ai_key_hint")); + crate::scenario::publish_target("ai_add:key", r.rect); + }); + }); + ui_kit::text(ui, tr(if has_keychain { "ui.ai_key_note" } else { "ui.ai_no_keychain" }), ui_kit::Text::Note("keychain")); + if ui_kit::button(ui, tr("ui.ai_test"), ui_kit::Button::Normal).clicked() { + test = true; + } + test_line(ui, &s.test.as_ref()); } - }); - if let Some(e) = &s.error { - ui.label(RichText::new(e).color(t.error)); } - ui.separator(); - ui.horizontal(|ui| { - let b = ui.add(egui::Button::new(tr("ui.ai_add")).fill(t.accent_soft)); - crate::scenario::publish_handle("ai_add:add", b.rect.center()); - if b.clicked() { - add = true; - } - }); + if let Some(e) = &s.error { + ui_kit::text(ui, e, ui_kit::Text::Report("add_error", true)); + } }); + if let Some(rect) = crate::scenario::rect_of("dialog:ok") { + crate::scenario::publish_handle("ai_add:add", rect.center()); + } + add |= action == ui_kit::Action::Ok; + open &= !closed && action != ui_kit::Action::Cancel; if test { #[cfg(not(target_arch = "wasm32"))] if let Some(s) = app.agent_chat.settings.add.as_ref() { @@ -546,3 +491,38 @@ fn add_agent(app: &mut SolveApp) -> Result<(), String> { app.preferences.agents.push(c); Ok(()) } + +#[cfg(all(test, not(target_arch = "wasm32")))] +mod card_tests { + use super::*; + use crate::scenario::{self, Harness}; + use serde_json::json; + + #[test] + fn add_agent_card_retains_kind_handles_draft_and_validation() { + let mut h = Harness::new(); + h.app.home.open = false; + h.app.preferences.ai_features = true; + h.app.agent_chat.detection = Some(Default::default()); + open_add(&mut h.app); + h.frames(4); + h.step(&json!({"click":{"handle":"ai_add:ui.ai_add_custom"}})).unwrap(); + assert_eq!(h.app.agent_chat.settings.add.as_ref().unwrap().kind, AddKind::Custom); + h.step(&json!({"click":{"handle":"ai_add:add"}})).unwrap(); + assert!(h.app.agent_chat.settings.add.as_ref().unwrap().error.is_some()); + let add = h.app.agent_chat.settings.add.as_mut().unwrap(); + add.name = "Local fixture".into(); + add.command = "solidcraft-fixture-agent --acp".into(); + h.frames(3); + h.step(&json!({"click":{"handle":"ai_add:add"}})).unwrap(); + assert!(h.app.agent_chat.settings.add.is_none()); + assert!(h.app.preferences.agents.iter().any(|e| e.name == "Local fixture")); + open_add(&mut h.app); + h.frames(3); + h.step(&json!({"click":{"handle":"ai_add:ui.ai_add_api"}})).unwrap(); + assert!(scenario::handle_at("ai_add:key").is_some()); + assert!(h.app.services.secrets.is_none(), "this fixture has no keychain"); + h.step(&json!({"key":"Escape"})).unwrap(); + assert!(h.app.agent_chat.settings.add.is_none()); + } +} diff --git a/crates/ui-egui/src/agent_chat/tests.rs b/crates/ui-egui/src/agent_chat/tests.rs index 97bf62975..193abff08 100644 --- a/crates/ui-egui/src/agent_chat/tests.rs +++ b/crates/ui-egui/src/agent_chat/tests.rs @@ -79,7 +79,7 @@ fn ask(tx: &Sender, method: &str, params: Value) -> Receiver (SolveApp, Script, egui::Context) { let script = Script::default(); app.agent_chat.backend = Some(Box::new(script.clone())); app.agent_chat.state = Some(State::Ready); - (app, script, egui::Context::default()) + (app, script, crate::fonts::test_context()) } fn ended(script: &Script, reason: &str) { @@ -631,7 +631,7 @@ done let mut app = SolveApp::new(solidcraft_engine::Session::default(), crate::Services::default()); app.agent_chat.backend = Some(Box::new(acp_client::AcpBackend::start(&argv, start).unwrap())); app.agent_chat.state = Some(State::Starting); - let ctx = egui::Context::default(); + let ctx = crate::fonts::test_context(); let until = |app: &mut SolveApp, what: &str, done: &dyn Fn(&SolveApp) -> bool| { let t = std::time::Instant::now(); while !done(app) { @@ -724,7 +724,7 @@ done let mut app = SolveApp::new(solidcraft_engine::Session::default(), crate::Services::default()); app.agent_chat.backend = Some(Box::new(acp_client::AcpBackend::start(&argv, start).unwrap())); app.agent_chat.state = Some(State::Starting); - let ctx = egui::Context::default(); + let ctx = crate::fonts::test_context(); let until = |app: &mut SolveApp, done: &dyn Fn(&SolveApp) -> bool| { let t = std::time::Instant::now(); while !done(app) { @@ -842,7 +842,7 @@ done app.agent_chat.state = Some(State::Starting); app.agent_chat.running_id = "fake".into(); app.preferences.agent_models.insert("fake".into(), "smart".into()); - let ctx = egui::Context::default(); + let ctx = crate::fonts::test_context(); let t = std::time::Instant::now(); loop { poll(&mut app, &ctx); @@ -1413,6 +1413,44 @@ fn an_agents_markdown_is_drawn_as_blocks() { h.frames(3); } +#[test] +fn assistant_marks_follow_chat_login_turns_and_approvals() { + use AssistantMark::*; + let mark = |state, login, configured| assistant_mark_for(state, login, configured, 0, false, false); + assert_eq!(mark(State::Off, "", false), Quiet); + assert_eq!(mark(State::Off, "signed_in", false), Quiet); + for login in ["", "unknown"] { + assert_eq!(mark(State::Off, login, true), Quiet); + } + for login in ["signed_in", "key"] { + assert_eq!(mark(State::Off, login, true), Ready); + } + assert_eq!(mark(State::Off, "signed_out", true), NeedsAuth); + for login in ["", "signed_out", "unknown", "signed_in"] { + for (state, expected) in + [(State::Ready, Ready), (State::Busy, Busy), (State::Starting, Busy), (State::NeedsAuth, NeedsAuth), (State::Exited, Stopped)] + { + assert_eq!(mark(state, login, true), expected); + assert_eq!(assistant_mark_for(state, login, true, 12, false, false), Waiting(12)); + } + } + assert_eq!(assistant_mark_for(State::Ready, "signed_in", true, 0, true, false), Stopped); + assert_eq!(assistant_mark_for(State::Ready, "signed_in", true, 0, false, true), Stopped); +} + +#[test] +fn assistant_click_and_shortcut_toggle_the_same_panel_without_a_connection() { + let mut h = crate::scenario::Harness::new(); + h.frames(3); + assert_eq!(assistant_mark(&h.app), AssistantMark::Quiet); + assert!(crate::scenario::handle_at("toolbar:ai").is_none()); + h.step(&json!({"click":{"handle":"titlebar:assistant"}})).unwrap(); + assert!(h.app.agent_chat.open); + h.step(&json!({"key":"A", "shift":true,"cmd":true})).unwrap(); + assert!(!h.app.agent_chat.open); + assert!(h.app.agent_chat.backend.is_none()); +} + /// A long message scrolls inside its box: the buttons under the box stay in the window (#2224). /// Measured against the panel's bottom once the agents on this machine have been looked for: /// what that finds (and the status it reports) arrives in its own time and may change what is diff --git a/crates/ui-egui/src/agent_cursor.rs b/crates/ui-egui/src/agent_cursor.rs index 7844ad6b3..3e929fa2c 100644 --- a/crates/ui-egui/src/agent_cursor.rs +++ b/crates/ui-egui/src/agent_cursor.rs @@ -101,8 +101,15 @@ pub fn speed_slider(ui: &mut egui::Ui, speed: &mut Speed) -> egui::Response { Speed::Times(x) => x.clamp(1.0, 5.0), Speed::Instant => 5.5, }; - let r = ui.add( - egui::Slider::new(&mut v, 1.0..=5.5).step_by(0.5).custom_formatter(|v, _| if v > 5.25 { "Instant".into() } else { Speed::Times(v).label() }), + let r = crate::ui_kit::slider( + ui, + &mut v, + 1.0..=5.5, + crate::ui_kit::Slider { + step: Some(0.5), + format: |v| if v > 5.25 { crate::i18n::tr_label("Instant").into() } else { Speed::Times(v).label() }, + ..Default::default() + }, ); if r.changed() { *speed = if v > 5.25 { Speed::Instant } else { Speed::Times(v) }; @@ -197,7 +204,8 @@ const NOT_PLACES: [&str; 14] = /// A command's toolbar button, or its panel when the button sits in a drop-down. fn button(command: &str) -> Option { let spec = solidcraft_engine::find_command(command)?; - crate::scenario::handle_at(&format!("toolbar:{}", spec.id)).or_else(|| crate::scenario::handle_at(&format!("panel:{}:{}", spec.tab, spec.panel))) + crate::scenario::handle_at(&format!("toolbar:{}", spec.id)) + .or_else(|| crate::workspace::destination(spec).and_then(|(t, p)| crate::scenario::handle_at(&format!("panel:{t}:{p}")))) } /// Where the pointer goes for a command: its toolbar button (or its panel), then its picks on diff --git a/crates/ui-egui/src/bom_panel.rs b/crates/ui-egui/src/bom_panel.rs index 5bab059de..d57c05522 100644 --- a/crates/ui-egui/src/bom_panel.rs +++ b/crates/ui-egui/src/bom_panel.rs @@ -89,17 +89,26 @@ pub fn show(app: &mut SolveApp, ctx: &egui::Context) { let bom = d.rows(app); let rows: Vec = bom["rows"].as_array().cloned().unwrap_or_default(); let (mut export, mut apply_row) = (None, None); - let title = RichText::new(crate::i18n::tr_label("Bill of Materials")).strong().size(13.0); + let title = RichText::new(crate::i18n::tr_label("Bill of Materials")).strong().size(t.font_button); crate::frame::window(ctx, title, crate::frame::Width::Wide).id(egui::Id::new("sc_bom")).open(&mut open).resizable(true).show(ctx, |ui| { - ui.horizontal(|ui| { + ui.horizontal_wrapped(|ui| { let was = (d.top, d.by_definition, d.group_children); - ui.selectable_value(&mut d.top, false, "Parts only"); - ui.selectable_value(&mut d.top, true, "Top level"); + let mut levels = usize::from(d.top); + let levels_width = crate::ui_kit::ContentWidth::button(ui, "Parts only").max(crate::ui_kit::ContentWidth::button(ui, "Top level")) * 2.0; + ui.allocate_ui(egui::vec2(levels_width, crate::ui_kit::row_height()), |ui| { + crate::ui_kit::segmented(ui, &mut levels, &["Parts only", "Top level"], Default::default()); + }); + d.top = levels == 1; ui.separator(); - ui.selectable_value(&mut d.by_definition, false, "By part number"); - ui.selectable_value(&mut d.by_definition, true, "By definition"); + let mut grouping = usize::from(d.by_definition); + let grouping_width = + crate::ui_kit::ContentWidth::button(ui, "By part number").max(crate::ui_kit::ContentWidth::button(ui, "By definition")) * 2.0; + ui.allocate_ui(egui::vec2(grouping_width, crate::ui_kit::row_height()), |ui| { + crate::ui_kit::segmented(ui, &mut grouping, &["By part number", "By definition"], Default::default()); + }); + d.by_definition = grouping == 1; ui.separator(); - ui.checkbox(&mut d.group_children, "Sub-parts in their part's row"); + crate::ui_kit::checkbox(ui, "Sub-parts in their part's row", &mut d.group_children); if was != (d.top, d.by_definition, d.group_children) { d.picked = None; } @@ -113,7 +122,7 @@ pub fn show(app: &mut SolveApp, ctx: &egui::Context) { ui.end_row(); for (i, row) in rows.iter().enumerate() { let picked = d.picked == Some(i); - if ui.selectable_label(picked, text(row, "item")).clicked() { + if crate::ui_kit::list_picker(ui, &i.to_string(), &text(row, "item"), picked).clicked() { d.picked = if picked { None } else { Some(i) }; d.fields = [text(row, "part_number"), text(row, "description"), text(row, "revision")]; } @@ -141,11 +150,13 @@ pub fn show(app: &mut SolveApp, ctx: &egui::Context) { egui::Grid::new("sc_bom_edit").num_columns(2).spacing([12.0, 6.0]).show(ui, |ui| { for (label, field) in ["Part number", "Description", "Revision"].into_iter().zip(d.fields.iter_mut()) { ui.label(label); - ui.add(egui::TextEdit::singleline(field).desired_width(280.0)); + ui.allocate_ui(egui::vec2(280.0, crate::ui_kit::row_height()), |ui| { + crate::ui_kit::cell_editor(ui, ui.make_persistent_id(label), field, label, false); + }); ui.end_row(); } }); - if ui.button("Apply").clicked() { + if crate::ui_kit::button(ui, "Apply", crate::ui_kit::Button::Normal).clicked() { apply_row = Some(row.clone()); } } @@ -155,7 +166,7 @@ pub fn show(app: &mut SolveApp, ctx: &egui::Context) { ui.separator(); ui.horizontal(|ui| { for (label, ext) in [("Export CSV…", "csv"), ("Export JSON…", "json")] { - if ui.button(label).clicked() { + if crate::ui_kit::button(ui, label, crate::ui_kit::Button::Normal).clicked() { export = Some(ext); } } diff --git a/crates/ui-egui/src/browser.rs b/crates/ui-egui/src/browser.rs index 04c457275..3c65076fd 100644 --- a/crates/ui-egui/src/browser.rs +++ b/crates/ui-egui/src/browser.rs @@ -30,7 +30,7 @@ mod model_tests; use crate::icons::glyphs::badge; use std::collections::BTreeSet; -use egui::{Color32, FontId, Pos2, Rect, RichText, Sense, Stroke, pos2, vec2}; +use egui::{Color32, FontId, Pos2, Rect, Sense, Stroke, pos2, vec2}; use serde_json::{Value, json}; use solidcraft_engine::Sel; use solidcraft_engine::doc::FeatureKind; @@ -59,6 +59,8 @@ pub fn drawn_occurrences() -> Vec<(Vec, String, Rect, bool)> { /// Browser state kept between frames. #[derive(Default)] pub struct TreeState { + /// The floating browser card is folded to its header. + pub panel_collapsed: bool, /// Geometry and assembly queries, independent of the camera, selection and row visibility. model: Option, /// Folders closed by the user (keys like `c0/bodies`). @@ -174,14 +176,14 @@ pub fn group_name(app: &SolveApp, id: u64) -> Option { pub fn group_items(app: &SolveApp, id: u64, scope: &str) -> Vec { let Some(g) = find_group(app, id) else { return Vec::new() }; let mut v = vec![ - Item::action("ui.rename", "Rename", "").with(json!({ "group": id })), + Item::action("ui.rename", "Rename", "rename").with(json!({ "group": id })), Item::action("ui.ungroup", "Ungroup", "folder").with(json!({ "group": id })), Item::sep(), // The group itself: its items keep their own state. Item::action("ui.folderVisible", "Show/Hide", "eye").key("V").with(json!({ "key": format!("{scope}/g{id}") })), ]; if g.folder == "bodies" { - v.push(Item::action("ui.isolate", "Isolate", "").with(json!({ "bodies": group_bodies(app, id) }))); + v.push(Item::action("ui.isolate", "Isolate", "body").with(json!({ "bodies": group_bodies(app, id) }))); } v } @@ -274,7 +276,11 @@ pub fn group_action(app: &mut SolveApp, action: &str, p: &Value) { // Drawing // --------------------------------------------------------------------------------------------- -const ROW_H: f32 = 22.0; +const ROW_H: f32 = 26.0; +/// The floating card's inner margin: the header highlight sits this far from the card's top, left +/// and right edges, so its corners are concentric with the card's. +const CARD_INSET: f32 = 4.0; +const HEADER_H: f32 = 26.0; const INDENT: f32 = 14.0; /// Opacity of a dimmed row's icon (a hidden body, sketch, origin item, …). const DIM_ICON_OPACITY: f32 = 0.4; @@ -348,7 +354,7 @@ pub(crate) fn draw_row(ui: &mut egui::Ui, id: egui::Id, row: &Row) -> RowResp { let dragged_over = egui::DragAndDrop::has_any_payload(ui.ctx()) && ui.input(|i| i.pointer.hover_pos()).is_some_and(|p| r.contains(p)); let mut out = RowResp { rect: Some(r), hovered: resp.hovered() || dragged_over, ..Default::default() }; if row.selected { - ui.painter().rect_filled(r, 3.0, t.accent_soft); + ui.painter().rect_filled(r, 3.0, crate::theme::TabAccent::current(ui.ctx()).soft); } else if resp.hovered() || row.mark == Mark::Here { ui.painter().rect_filled(r, 3.0, t.hover); } @@ -387,9 +393,7 @@ pub(crate) fn draw_row(ui: &mut egui::Ui, id: egui::Id, row: &Row) -> RowResp { let hover_on = resp.hover_pos().map_or(0, at); // Fold arrow. if let Some(open) = row.fold { - let ar = Rect::from_center_size(pos2(x + 6.0, cy), vec2(12.0, 12.0)); - let ink = if hover_on == 1 { t.text } else { t.text_dim }; - crate::icons::glyphs::disclosure(ui.painter(), ar, open, ink); + crate::ui_kit::disclosure(ui.painter(), pos2(x + 6.0, cy), open, if hover_on == 1 { t.text } else { t.text_dim }); out.fold = resp.clicked() && click_on == 1; crate::scenario::publish_handle(&format!("fold:{}", row.label), fold_r.center()); } @@ -397,11 +401,8 @@ pub(crate) fn draw_row(ui: &mut egui::Ui, id: egui::Id, row: &Row) -> RowResp { // Eye. if let Some(vis) = row.eye { let er = Rect::from_center_size(pos2(x + 8.0, cy), vec2(15.0, 15.0)); - // A closed eye, or the eye of a faded row, draws faint like the row's icon. - icons::paint_icon(ui.painter(), er, "eye", if vis && !row.dim { 1.0 } else { DIM_ICON_OPACITY }); - if !vis { - ui.painter().line_segment([er.left_bottom() + vec2(2.0, -2.0), er.right_top() + vec2(-2.0, 2.0)], Stroke::new(1.4, t.text_dim)); - } + // Hidden or faded rows keep main's dimming, with the rounded suppression asset. + icons::paint_icon(ui.painter(), er, if vis { "eye" } else { "suppress" }, if vis && !row.dim { 0.85 } else { DIM_ICON_OPACITY }); out.eye = resp.clicked() && click_on == 2; crate::scenario::publish_handle(&format!("eye:{}", row.label), er.center()); } @@ -423,9 +424,11 @@ pub(crate) fn draw_row(ui: &mut egui::Ui, id: egui::Id, row: &Row) -> RowResp { icons::paint_icon(ui.painter(), ir, row.icon, if row.dim { DIM_ICON_OPACITY } else { 1.0 }); x += 21.0; } - let col = row.color.unwrap_or(if row.dim { t.text_dim } else { t.text }); + let col = + if row.selected { crate::theme::TabAccent::current(ui.ctx()).ink } else { row.color.unwrap_or(if row.dim { t.text_dim } else { t.text }) }; let label_display = if row.name { crate::i18n::tr_name(row.label) } else { crate::i18n::tr_dyn(row.label) }; - let galley = ui.painter().layout_no_wrap(label_display, FontId::proportional(12.5), col); + let font = if row.selected { crate::fonts::semibold(t.font_label) } else { FontId::proportional(t.font_label) }; + let galley = ui.painter().layout_no_wrap(label_display, font, col); let lw = galley.size().x; ui.painter().galley(pos2(x, cy - galley.size().y / 2.0), galley, col); let mut bx = (x + lw + 6.0).min(r.right() - 16.0); @@ -669,12 +672,11 @@ fn browser_panel(app: &mut SolveApp, ui: &mut egui::Ui, timeline_above: bool) { DRAWN.with(|d| d.borrow_mut().clear()); OCCURRENCES.with(|d| d.borrow_mut().clear()); let mut acts = Actions::default(); - let remembered = app.preferences.browser_width; - let width = if remembered.is_finite() { remembered.clamp(MIN_BROWSER_WIDTH, MAX_BROWSER_WIDTH) } else { crate::prefs::DEFAULT_BROWSER_WIDTH }; + let width = browser_width(app.preferences.browser_width); let panel = egui::Panel::left("sc_browser") .exact_size(width) .resizable(false) - .frame(egui::Frame::NONE.fill(t.panel).inner_margin(egui::Margin::symmetric(6, 6))) + .frame(egui::Frame::NONE.fill(t.panel).inner_margin(egui::Margin::symmetric(t.space_6 as i8, t.space_6 as i8))) .show(ui, |ui| { if timeline_above { let available = ui.available_height(); @@ -700,75 +702,148 @@ fn browser_panel(app: &mut SolveApp, ui: &mut egui::Ui, timeline_above: bool) { ui.painter().hline(rect.x_range(), rect.center().y, egui::Stroke::new(1.0, t.border)); crate::scenario::publish_handle("left-history-divider", rect.center()); } - let arrow = if browser_collapsed { "▶" } else { "▼" }; - let response = - ui.add(egui::Button::new(RichText::new(format!("{arrow} BROWSER")).size(11.0).strong().color(t.text_dim)).frame(false)); + let (rect, response) = ui.allocate_exact_size(vec2(ui.available_width(), crate::ui_kit::row_height()), Sense::click()); + crate::ui_kit::disclosure( + ui.painter(), + pos2(rect.left() + t.form_section_icon_size / 2.0, rect.center().y), + !browser_collapsed, + t.text_dim, + ); + ui.painter().text( + pos2(rect.left() + t.form_section_icon_size + t.space_8, rect.center().y), + egui::Align2::LEFT_CENTER, + "BROWSER", + crate::fonts::semibold(t.font_small), + t.text_dim, + ); + response + .widget_info(|| egui::WidgetInfo::selected(egui::WidgetType::CollapsingHeader, ui.is_enabled(), !browser_collapsed, "BROWSER")); crate::scenario::publish_handle("left-browser-toggle", response.rect.center()); if response.clicked() { app.preferences.timeline_left_browser_collapsed = !browser_collapsed; } if !browser_collapsed { - ui.add_space(4.0); + ui.add_space(t.space_4); browser_rows(app, ui, &mut acts); } } else { - browser_contents(app, ui, &mut acts); + browser_contents(app, ui, &mut acts, false); } }); - // The sidebar's right edge is a drag handle; the width it is dragged to is remembered. - let rect = panel.response.rect; - let rail = egui::Rect::from_x_y_ranges(rect.right() - BROWSER_RAIL..=rect.right(), rect.y_range()); - let response = ui.interact(rail, egui::Id::new("sc_browser_rail"), egui::Sense::drag()).on_hover_cursor(egui::CursorIcon::ResizeHorizontal); + resize_browser(app, ui, panel.response.rect, width); + finish_browser(app, ui, acts); +} + +fn browser_width(remembered: f32) -> f32 { + if remembered.is_finite() { remembered.clamp(MIN_BROWSER_WIDTH, MAX_BROWSER_WIDTH) } else { crate::prefs::DEFAULT_BROWSER_WIDTH } +} + +fn resize_browser(app: &mut SolveApp, ui: &egui::Ui, rect: Rect, width: f32) { + let rail = Rect::from_x_y_ranges(rect.right() - BROWSER_RAIL..=rect.right(), rect.y_range()); + let response = ui.interact(rail, egui::Id::new("sc_browser_rail"), Sense::drag()).on_hover_cursor(egui::CursorIcon::ResizeHorizontal); if response.dragged() { let delta = ui.input(|input| input.pointer.delta().x); if delta.is_finite() { app.preferences.browser_width = (width + delta).clamp(MIN_BROWSER_WIDTH, MAX_BROWSER_WIDTH); } } - crate::scenario::publish_handle("left-browser-rail", egui::pos2(rect.right() - BROWSER_RAIL / 2.0, rect.center().y)); - finish_browser(app, ui, acts); + crate::scenario::publish_handle("left-browser-rail", pos2(rect.right() - BROWSER_RAIL / 2.0, rect.center().y)); } -/// The tree on a translucent card over the workspace, instead of a column that takes width from -/// it (Preferences: "Float it over the workspace"). Drawn before the central view, in a layer -/// above it, so the viewport keeps the whole window and the card sits on top of it. -pub fn floating(app: &mut SolveApp, ui: &mut egui::Ui, viewport: egui::Rect) { +/// One browser card for the floating shell and the docked shell's optional overlay. +/// The preference keeps its translucent overlay semantics; the floating shell always has a card. +pub fn floating(app: &mut SolveApp, ui: &mut egui::Ui, available: Rect) { let t = Tokens::get(); app.tree.order.clear(); DRAWN.with(|d| d.borrow_mut().clear()); OCCURRENCES.with(|d| d.borrow_mut().clear()); let mut acts = Actions::default(); - let remembered = app.preferences.browser_width; - let width = if remembered.is_finite() { remembered.clamp(MIN_BROWSER_WIDTH, MAX_BROWSER_WIDTH) } else { crate::prefs::DEFAULT_BROWSER_WIDTH }; - // Tall enough for the tree, short enough to leave the view room; the rows scroll inside. - let height = (viewport.height() * 0.7).clamp(160.0, 560.0); - let card = crate::frame::area(egui::Id::new("sc_browser_float")).fixed_pos(viewport.min + vec2(8.0, 8.0)).order(egui::Order::Middle).show( - ui.ctx(), - |ui| { - egui::Frame::new() - .fill(t.panel.gamma_multiply(BROWSER_FLOAT_ALPHA)) - .stroke(egui::Stroke::new(1.0, t.border)) - .corner_radius(6) - .inner_margin(egui::Margin::symmetric(8, 6)) - .show(ui, |ui| { - ui.set_width(width - 16.0); - ui.set_max_height(height); - ui.label(RichText::new(crate::i18n::tr_label("BROWSER")).size(11.0).strong().color(t.text_dim)); - ui.add_space(4.0); - // The card hugs the tree, so it hides as little of the view as it can. - browser_rows_hugging(app, ui, &mut acts); - }); - }, - ); - crate::scenario::publish_rect("browser:float", card.response.rect); + let gap = crate::shell::SHELL_GAP; + let top_gap = if app.ui.layout == crate::shell::LayoutMode::Docked { gap } else { 0.0 }; + let width = browser_width(app.preferences.browser_width); + let bounds = floating_bounds(available, app.shell.history, width, top_gap); + app.shell.browser = None; + let min_height = HEADER_H + 2.0 * (CARD_INSET + 1.0); + if bounds.is_positive() && bounds.height() >= min_height { + let fill = if app.preferences.browser_float { t.panel.gamma_multiply(BROWSER_FLOAT_ALPHA) } else { t.panel }; + let frame = crate::frame::shell_card(fill).inner_margin(CARD_INSET as i8); + let inner_width = (bounds.width() - frame.total_margin().sum().x).max(0.0); + let inner_height = (bounds.height() - frame.total_margin().sum().y).max(0.0); + let card = crate::frame::area(egui::Id::new("sc_browser_card")).fixed_pos(bounds.min).order(egui::Order::Middle).show(ui.ctx(), |ui| { + let response = frame.show(ui, |ui| { + ui.set_width(inner_width); + ui.set_max_height(inner_height); + browser_contents(app, ui, &mut acts, true); + }); + resize_browser(app, ui, response.response.rect, width); + }); + let rect = card.response.rect; + app.shell.browser = Some(rect); + crate::scenario::publish_rect("browser:card", rect); + // Preserve the overlay handle used by main's automation. + if app.preferences.browser_float { + crate::scenario::publish_rect("browser:float", rect); + } + } finish_browser(app, ui, acts); } -fn browser_contents(app: &mut SolveApp, ui: &mut egui::Ui, acts: &mut Actions) { +fn floating_bounds(available: Rect, history: Option, width: f32, top_gap: f32) -> Rect { + let gap = crate::shell::SHELL_GAP; + let min = available.min + vec2(gap, top_gap); + let right = (available.right() - gap).max(min.x); + let bottom = history.map_or(available.bottom() - gap, |r| r.top() - gap).max(min.y); + Rect::from_min_max(min, pos2((min.x + width).min(right), bottom)) +} + +fn browser_contents(app: &mut SolveApp, ui: &mut egui::Ui, acts: &mut Actions, collapsible: bool) { let t = Tokens::get(); - ui.label(RichText::new(crate::i18n::tr_label("BROWSER")).size(11.0).strong().color(t.text_dim)); - ui.add_space(4.0); - browser_rows(app, ui, acts); + // Only the floating card folds; the docked column keeps its full height. + browser_header(app, ui, collapsible); + if collapsible && app.tree.panel_collapsed { + return; + } + ui.painter().hline(ui.max_rect().x_range(), ui.cursor().top() + 1.0, egui::Stroke::new(1.0, t.toolbar.lerp_to_gamma(t.border, 0.5))); + ui.add_space(t.space_3); + if collapsible { + browser_rows_hugging(app, ui, acts); + } else { + browser_rows(app, ui, acts); + } +} + +/// The header: the title, the body count and (on the floating card) a chevron that folds the +/// card to just this row. The whole row is the button. +fn browser_header(app: &mut SolveApp, ui: &mut egui::Ui, collapsible: bool) { + let t = Tokens::get(); + let (rect, _) = ui.allocate_exact_size(vec2(ui.available_width(), HEADER_H), Sense::hover()); + let response = ui.interact(rect, ui.id().with("browser_header"), if collapsible { Sense::click() } else { Sense::hover() }); + crate::scenario::publish_target("browser:header", rect); + let collapsed = collapsible && app.tree.panel_collapsed; + if collapsible && (response.hovered() || response.has_focus()) { + ui.painter().rect_filled(rect, t.radius_lg.saturating_sub(CARD_INSET as u8), t.hover); + } + let title = crate::i18n::tr("ui.browser_title").to_string(); + let kind = if collapsible { egui::WidgetType::Button } else { egui::WidgetType::Label }; + response.widget_info(|| egui::WidgetInfo::labeled(kind, true, &title)); + let galley = ui.painter().layout_no_wrap(title, crate::fonts::semibold(t.font_heading), t.text); + ui.painter().galley(pos2(rect.left() + t.space_6, rect.center().y - galley.size().y / 2.0), galley, t.text); + let mut right = rect.right() - t.space_6; + if collapsible { + crate::ui_kit::disclosure(ui.painter(), pos2(right - t.form_section_icon_size / 2.0, rect.center().y), !collapsed, t.text_dim); + right -= 18.0; + } + let bodies = app.session.model.state().bodies.len(); + let key = if bodies == 1 { "ui.browser_bodies_one" } else { "ui.browser_bodies_other" }; + let count = crate::i18n::format(key, &[("count", &bodies.to_string())]); + let galley = ui.painter().layout_no_wrap(count, FontId::proportional(t.font_body), t.text_dim); + ui.painter().galley(pos2(right - galley.size().x, rect.center().y - galley.size().y / 2.0), galley, t.text_dim); + if collapsible { + let tip = crate::i18n::tr(if collapsed { "ui.browser_expand" } else { "ui.browser_collapse" }); + if response.on_hover_text(tip).clicked() { + app.tree.panel_collapsed = !app.tree.panel_collapsed; + } + } } fn prepare_model(app: &mut SolveApp) { @@ -853,11 +928,10 @@ fn finish_browser(app: &mut SolveApp, ui: &mut egui::Ui, acts: Actions) { if let Some((at, target)) = acts.menu { crate::context_menu::open_for(app, at, target); } - occurrence_panel(app, ui); - capture_prompt(app, ui.ctx()); - canvas_panel(app, ui.ctx()); - let repair_anchor = app.viewport.rect.map(|rect| rect.right_top() + vec2(-16.0, 16.0)).unwrap_or_else(|| ui.ctx().content_rect().right_top()); - crate::sketch_attachment_ui::panel(app, ui.ctx(), repair_anchor); + crate::browser_prompts::occurrence_panel(app, ui); + crate::browser_prompts::capture_prompt(app, ui.ctx()); + crate::browser_canvas::panel(app, ui.ctx()); + crate::sketch_attachment_ui::panel(app, ui.ctx()); } fn component_name(app: &SolveApp, id: u64) -> String { @@ -1262,7 +1336,7 @@ pub fn view_items(app: &SolveApp, name: &str) -> Vec { Item::action("ui.restoreView", "Restore", "home").with(json!({ "view": name })), Item::action("ui.updateView", "Update to Current View", "perspective").with(json!({ "view": name })).on_if(saved), Item::sep(), - Item::action("ui.rename", "Rename", "").with(json!({ "view": name })).on_if(saved), + Item::action("ui.rename", "Rename", "rename").with(json!({ "view": name })).on_if(saved), Item::action("view.delete", "Delete", "delete").with(json!({ "view": name })).on_if(saved), ] } @@ -1443,7 +1517,7 @@ pub fn canvas_items(app: &SolveApp, id: u64) -> Vec { Item::action("ui.calibrateCanvas", "Calibrate", "measure").with(json!({ "canvas": id })), Item::sep(), Item::action("ui.delete", "Delete", "delete").with(json!({ "canvases": [id] })), - Item::action("ui.rename", "Rename", "").with(json!({ "canvas": id })), + Item::action("ui.rename", "Rename", "rename").with(json!({ "canvas": id })), Item::sep(), Item::action("ui.canvasVisible", "Show/Hide", "eye").key("V").with(json!({ "canvas": id, "visible": !visible })), ] @@ -1456,7 +1530,7 @@ pub struct CanvasPanel { pub canvas: u64, pub calibrate: bool, /// Undo depth when the panel opened. - depth: usize, + pub(crate) depth: usize, pub a: [f64; 2], pub b: [f64; 2], pub distance: f64, @@ -1477,86 +1551,6 @@ impl CanvasPanel { } } -fn canvas_panel(app: &mut SolveApp, ctx: &egui::Context) { - let Some(mut m) = app.tree.canvas_panel.clone() else { return }; - let Some(c) = app.session.doc.canvases.iter().find(|c| c.id == m.canvas).cloned() else { - app.tree.canvas_panel = None; - return; - }; - let mut open = true; - let mut edit: Option = None; - let mut done = false; - let title = if m.calibrate { format!("Calibrate: {}", c.name) } else { format!("Edit Canvas: {}", c.name) }; - crate::frame::window(ctx, title, crate::frame::Width::Normal) - .id(egui::Id::new("sc_canvas_panel")) - .pivot(egui::Align2::LEFT_TOP) - .default_pos(panel_pos(app)) - .open(&mut open) - .resizable(false) - .collapsible(false) - .show(ctx, |ui| { - egui::Grid::new("sc_canvas_grid").num_columns(2).spacing([12.0, 6.0]).show(ui, |ui| { - if m.calibrate { - for (label, p) in [("Point A", &mut m.a), ("Point B", &mut m.b)] { - ui.label(label); - ui.horizontal(|ui| { - ui.add(crate::prefs::length_drag(&mut p[0], &app.session.doc.units, app.preferences.length_decimals)); - ui.add(crate::prefs::length_drag(&mut p[1], &app.session.doc.units, app.preferences.length_decimals)); - }); - ui.end_row(); - } - ui.label(crate::i18n::tr_label("Distance")); - ui.add(crate::prefs::length_drag(&mut m.distance, &app.session.doc.units, app.preferences.length_decimals).range(0.001..=1e6)); - ui.end_row(); - } else { - let (mut x, mut y, mut w, mut ang, mut op, mut flip) = (c.center.x, c.center.y, c.width, c.angle.to_degrees(), c.opacity, c.flip); - ui.label(crate::i18n::tr_label("Center X")); - let r1 = ui.add(crate::prefs::length_drag(&mut x, &app.session.doc.units, app.preferences.length_decimals)); - ui.end_row(); - ui.label(crate::i18n::tr_label("Center Y")); - let r2 = ui.add(crate::prefs::length_drag(&mut y, &app.session.doc.units, app.preferences.length_decimals)); - ui.end_row(); - ui.label(crate::i18n::tr_label("Width")); - let r3 = ui.add(crate::prefs::length_drag(&mut w, &app.session.doc.units, app.preferences.length_decimals).range(0.01..=1e6)); - ui.end_row(); - ui.label(crate::i18n::tr_label("Angle")); - let r4 = ui.add(egui::DragValue::new(&mut ang).speed(1.0).suffix(" deg").custom_parser(crate::prefs::parse_number)); - ui.end_row(); - ui.label(crate::i18n::tr_label("Opacity")); - let r5 = ui.add(egui::Slider::new(&mut op, 0.0..=1.0)); - ui.end_row(); - ui.label(crate::i18n::tr_label("Flip")); - let r6 = ui.checkbox(&mut flip, ""); - ui.end_row(); - if [r1, r2, r3, r4, r5, r6].iter().any(|r| r.changed()) { - edit = Some(json!({ "canvas": c.id, "center": [x, y], "width": w, "angle": ang, "opacity": op, "flip": flip })); - } - } - }); - ui.add_space(6.0); - if ui.button(if m.calibrate { "Calibrate" } else { "OK" }).clicked() { - done = true; - } - }); - if let Some(p) = edit - && app.run("canvas.edit", p).is_ok() - { - // One undo step for the whole edit. - if app.session.undo.len() > m.depth + 1 { - let keep = app.session.undo.get(m.depth).cloned(); - app.session.undo.truncate(m.depth); - app.session.undo.extend(keep); - } - } - if done && m.calibrate { - if app.run("canvas.calibrate", json!({ "canvas": c.id, "a": m.a, "b": m.b, "distance": m.distance })).is_ok() { - app.tree.canvas_panel = None; - } - return; - } - app.tree.canvas_panel = if done || !open { None } else { Some(m) }; -} - /// A browser click on a plane or axis: it goes to the open dialog's input if that takes it, /// otherwise it becomes the selection. fn pick_from_browser(app: &mut SolveApp, x: Sel) { @@ -2058,96 +2052,6 @@ fn apply_drop(app: &mut SolveApp, d: DropAction) { // Panels opened from the menus // --------------------------------------------------------------------------------------------- -/// Move/Copy of an occurrence: offsets and a rotation about Z, pending until Capture Position. -fn occurrence_panel(app: &mut SolveApp, ui: &mut egui::Ui) { - let Some(mut m) = app.tree.occurrence_move.clone() else { return }; - if !m.path.is_empty() - && let Err(error) = app.session.occurrence_placement(&m.path) - { - app.tree.occurrence_move = None; - app.set_status(error.to_string(), true); - return; - } - if m.baseline.is_none() { - m.had_pending = app.session.pending_moves.contains_key(&m.occurrence); - m.baseline = app - .session - .pending_moves - .get(&m.occurrence) - .copied() - .or_else(|| app.session.doc.occurrences.iter().find(|o| o.id == m.occurrence).map(|o| o.transform)); - } - let ctx = ui.ctx().clone(); - if m.pivot.is_none() { - m.pivot = if m.path.is_empty() { - occurrence_origin(app, m.occurrence) - } else { - app.session.occurrence_placement(&m.path).ok().map(|p| solidcraft_engine::doc::apply_point(&p.world, solidcraft_engine::geom::Vec3::ZERO)) - }; - } - let name = app.session.doc.occurrences.iter().find(|o| o.id == m.occurrence).map(|o| o.name.clone()).unwrap_or_default(); - let mut open = true; - let mut action: Option<&str> = None; - let before = (m.translate, m.angles); - crate::frame::window(&ctx, format!("Move: {name}"), crate::frame::Width::Normal) - .id(egui::Id::new("sc_occ_move")) - .pivot(egui::Align2::LEFT_TOP) - .default_pos(panel_pos(app)) - .open(&mut open) - .resizable(false) - .collapsible(false) - .show(&ctx, |ui| { - if !m.path.is_empty() && app.session.occurrence_scope_count(&m.path).is_ok_and(|n| n > 1) { - ui.label(crate::i18n::tr_label("This child is shared. Position changes apply to every copy of its parent.")); - } - egui::Grid::new("sc_occ_grid").num_columns(2).spacing([12.0, 6.0]).show(ui, |ui| { - for (k, axis) in ["X distance", "Y distance", "Z distance"].iter().enumerate() { - ui.label(*axis); - if let Some(v) = m.translate.get_mut(k) { - let response = ui.add(crate::prefs::length_drag(v, &app.session.doc.units, app.preferences.length_decimals)); - crate::scenario::publish_handle(&format!("occurrence-move:distance:{k}"), response.rect.center()); - } - ui.end_row(); - } - for (k, axis) in ["X angle", "Y angle", "Z angle"].iter().enumerate() { - ui.label(*axis); - if let Some(v) = m.angles.get_mut(k) { - let response = ui.add(egui::DragValue::new(v).speed(1.0).suffix(" deg").custom_parser(crate::prefs::parse_number)); - crate::scenario::publish_handle(&format!("occurrence-move:angle:{k}"), response.rect.center()); - } - ui.end_row(); - } - }); - ui.add_space(6.0); - ui.horizontal(|ui| { - if ui.button(crate::i18n::tr_label("Capture All Positions")).clicked() { - action = Some("capture"); - } - if ui.button(crate::i18n::tr_label("Revert All Positions")).clicked() { - action = Some("revert"); - } - }); - }); - if (m.translate, m.angles) != before { - apply_occurrence_move(app, &m); - } - match action { - Some("capture") => { - let _ = app.run("component.capture_position", json!({})); - app.tree.occurrence_move = None; - } - Some(_) => { - let _ = app.run("component.revert_position", json!({})); - app.tree.occurrence_move = None; - } - None if !open => { - revert_occurrence_dialog(app, &m); - app.tree.occurrence_move = None; - } - None => app.tree.occurrence_move = Some(m), - } -} - pub(crate) fn revert_occurrence_dialog(app: &mut SolveApp, m: &OccMove) { if m.had_pending { let _ = app.run("occurrence.move", json!({"occurrence":m.occurrence,"base_transform":m.baseline,"capture":false})); @@ -2253,7 +2157,7 @@ pub fn dims_overlay(app: &SolveApp, ctx: &egui::Context) { let col = if c.driven { tk.dimension_driven } else { tk.dimension }; let galley = painter.layout_no_wrap( crate::dim_view::label(&c.kind, expr, c.driven, &app.session.doc.units, app.preferences.length_decimals), - FontId::proportional(11.5), + FontId::proportional(tk.font_caption), col, ); let size = galley.size() + vec2(6.0, 2.0); @@ -2275,9 +2179,12 @@ pub fn dims_overlay(app: &SolveApp, ctx: &egui::Context) { } } -/// Where the browser's panels open: the viewport's top left corner. -fn panel_pos(app: &SolveApp) -> Pos2 { - app.viewport.rect.map(|r| r.left_top() + vec2(16.0, 16.0)).unwrap_or(pos2(270.0, 140.0)) +/// Keep browser panels beside the browser and below the ribbon, including the floating shell. +pub(crate) fn panel_pos(app: &SolveApp) -> Pos2 { + app.viewport + .rect + .map(|r| crate::shell::content_rect(app, r).left_top() + vec2(Tokens::get().space_16, Tokens::get().space_16)) + .unwrap_or(pos2(270.0, 140.0)) } /// The Capture Position question stands for saving. @@ -2315,47 +2222,8 @@ pub fn answer_capture(app: &mut SolveApp, action: &str) -> Result<(), String> { Ok(()) } -fn capture_prompt(app: &mut SolveApp, ctx: &egui::Context) { - if app.tree.capture_prompt.is_none() { - return; - } - let n = app.session.pending_moves.len(); - let mut answer: Option<&str> = None; - crate::frame::window(ctx, crate::i18n::tr_label("Capture Position"), crate::frame::Width::Normal) - .id(egui::Id::new("sc_capture_prompt")) - .collapsible(false) - .resizable(false) - .anchor(egui::Align2::CENTER_CENTER, vec2(0.0, -80.0)) - .show(ctx, |ui| { - ui.label(if n == 1 { - "A component was moved but its position isn't captured.".to_string() - } else { - format!("{n} components were moved but their positions aren't captured.") - }); - ui.label(RichText::new("Capture keeps the new position; Revert puts it back.").color(Tokens::get().text_dim)); - ui.add_space(6.0); - ui.horizontal(|ui| { - if ui.button(crate::i18n::tr_label("Capture Position")).clicked() { - answer = Some("capture"); - } - if ui.button(crate::i18n::tr_label("Revert")).clicked() { - answer = Some("revert"); - } - if ui.button("Cancel").clicked() { - answer = Some("cancel"); - } - }); - if ui.input(|i| i.key_pressed(egui::Key::Escape)) { - answer = Some("cancel"); - } - }); - if let Some(a) = answer { - let _ = answer_capture(app, a); - } -} - /// Where an occurrence's origin is now (with its pending move). -fn occurrence_origin(app: &SolveApp, occurrence: u64) -> Option { +pub(crate) fn occurrence_origin(app: &SolveApp, occurrence: u64) -> Option { let o = app.session.doc.occurrences.iter().find(|o| o.id == occurrence)?; let parent = app.session.doc.component_transform(o.parent); let own = app.session.pending_moves.get(&occurrence).copied().unwrap_or(o.transform); @@ -2371,3 +2239,7 @@ pub(crate) fn body_rows(app: &SolveApp) -> Vec { #[cfg(test)] #[path = "section_browser_tests.rs"] mod section_browser_tests; + +#[cfg(test)] +#[path = "browser_card_tests.rs"] +mod card_tests; diff --git a/crates/ui-egui/src/browser_canvas.rs b/crates/ui-egui/src/browser_canvas.rs new file mode 100644 index 000000000..96e4337f8 --- /dev/null +++ b/crates/ui-egui/src/browser_canvas.rs @@ -0,0 +1,129 @@ +//! The Edit Canvas / Calibrate card the Browser opens for a reference image: position, size, +//! angle, opacity and flip (live, one undo step per opening), or two points on the image and +//! their true distance. + +use serde_json::{Value, json}; + +use crate::SolveApp; +use crate::browser::panel_pos; +use crate::ui_kit; + +pub(crate) fn panel(app: &mut SolveApp, ctx: &egui::Context) { + let Some(mut m) = app.tree.canvas_panel.clone() else { return }; + let Some(c) = app.session.doc.canvases.iter().find(|c| c.id == m.canvas).cloned() else { + app.tree.canvas_panel = None; + return; + }; + let mut edit: Option = None; + let (units, decimals) = (app.session.doc.units.clone(), app.preferences.length_decimals); + let title = crate::i18n::format(if m.calibrate { "browser.calibrate_title" } else { "browser.edit_canvas_title" }, &[("name", &c.name)]); + let at = panel_pos(app); + let (calibrate, name) = (m.calibrate, c.id); + let (ok, cancel) = if calibrate { (crate::i18n::tr_label("Calibrate"), crate::i18n::tr("ui.cancel")) } else { ("", crate::i18n::tr("ui.close")) }; + let (closed, action) = ui_kit::Window::new(egui::Id::new("sc_canvas_panel"), "canvas", &title) + .placed(egui::Align2::LEFT_TOP, at) + .fields() + .actions(ok, cancel, None) + .show(ctx, true, |ui| { + if calibrate { + for (label, p) in [("Point A", &mut m.a), ("Point B", &mut m.b)] { + ui_kit::row(ui, crate::i18n::tr_label(label), |ui| { + let [x, y] = p; + ui.horizontal(|ui| { + ui_kit::length_field(ui, x, &units, decimals); + ui_kit::length_field(ui, y, &units, decimals); + }); + }); + } + ui_kit::row(ui, crate::i18n::tr_label("Distance"), |ui| ui_kit::length_field(ui, &mut m.distance, &units, decimals)); + m.distance = m.distance.clamp(0.001, 1e6); + } else { + let (mut x, mut y, mut w, mut ang, mut op, mut flip) = (c.center.x, c.center.y, c.width, c.angle.to_degrees(), c.opacity, c.flip); + let mut changed = false; + changed |= ui_kit::row(ui, crate::i18n::tr_label("Center X"), |ui| ui_kit::length_field(ui, &mut x, &units, decimals)).changed(); + changed |= ui_kit::row(ui, crate::i18n::tr_label("Center Y"), |ui| ui_kit::length_field(ui, &mut y, &units, decimals)).changed(); + changed |= ui_kit::row(ui, crate::i18n::tr_label("Width"), |ui| ui_kit::length_field(ui, &mut w, &units, decimals)).changed(); + changed |= ui_kit::row(ui, crate::i18n::tr_label("Angle"), |ui| ui_kit::angle_field(ui, &mut ang)).changed(); + changed |= + ui_kit::row(ui, crate::i18n::tr_label("Opacity"), |ui| ui_kit::slider(ui, &mut op, 0.0..=1.0, Default::default())).changed(); + if ui_kit::checkbox_row(ui, "flip", crate::i18n::tr_label("Flip"), flip) { + flip = !flip; + changed = true; + } + if changed { + edit = Some(json!({ "canvas": name, "center": [x, y], "width": w.clamp(0.01, 1e6), "angle": ang, "opacity": op, "flip": flip })); + } + } + }); + if let Some(p) = edit + && app.run("canvas.edit", p).is_ok() + { + // One undo step for the whole edit. + if app.session.undo.len() > m.depth + 1 { + let keep = app.session.undo.get(m.depth).cloned(); + app.session.undo.truncate(m.depth); + app.session.undo.extend(keep); + } + } + if action == ui_kit::Action::Ok { + if app.run("canvas.calibrate", json!({ "canvas": c.id, "a": m.a, "b": m.b, "distance": m.distance })).is_ok() { + app.tree.canvas_panel = None; + } + return; + } + app.tree.canvas_panel = if closed || action == ui_kit::Action::Cancel { None } else { Some(m) }; +} + +#[cfg(test)] +mod tests { + use serde_json::json; + + fn canvas(h: &mut crate::scenario::Harness) -> u64 { + let mut png = b"\x89PNG\r\n\x1a\n\0\0\0\rIHDR".to_vec(); + png.extend(400u32.to_be_bytes()); + png.extend(200u32.to_be_bytes()); + png.extend([8, 6, 0, 0, 0, 0, 0, 0, 0]); + let data = solidcraft_engine::doc::canvas::base64_encode(&png); + h.app.run("canvas.insert", json!({"data": data, "plane": "XY", "width": 80})).unwrap()["canvas"].as_u64().unwrap() + } + + #[test] + fn edit_canvas_is_a_card_whose_close_keeps_the_live_edits() { + let mut h = crate::scenario::Harness::new(); + h.app.home.open = false; + let id = canvas(&mut h); + h.app.tree.canvas_panel = Some(crate::browser::CanvasPanel::new(&h.app, id, false)); + h.frames(4); + assert!(crate::scenario::handle_at("dialog:close").is_some() && h.widget("Close").is_some()); + assert!(h.widget("Calibrate").is_none(), "editing has no Calibrate action"); + for row in ["dialog:length:Center X", "dialog:angle:Angle", "dialog:slider:Opacity"] { + assert!(crate::scenario::handle_at(row).is_some(), "{row}"); + } + h.step(&json!({"widget": "Close"})).unwrap(); + h.frames(2); + assert!(h.app.tree.canvas_panel.is_none()); + assert_eq!(h.app.session.doc.canvases.len(), 1); + } + + #[test] + fn calibrate_runs_the_command_and_cancel_leaves_the_canvas_alone() { + let mut h = crate::scenario::Harness::new(); + h.app.home.open = false; + let id = canvas(&mut h); + let width = |h: &crate::scenario::Harness| h.app.session.doc.canvases[0].width; + h.app.tree.canvas_panel = Some(crate::browser::CanvasPanel::new(&h.app, id, true)); + h.frames(4); + h.step(&json!({"widget": "Cancel"})).unwrap(); + h.frames(2); + assert!(h.app.tree.canvas_panel.is_none()); + assert!((width(&h) - 80.0).abs() < 1e-9); + let mut panel = crate::browser::CanvasPanel::new(&h.app, id, true); + panel.distance = 40.0; + h.app.tree.canvas_panel = Some(panel); + h.frames(4); + h.step(&json!({"widget": "Calibrate"})).unwrap(); + h.frames(2); + assert!(h.app.tree.canvas_panel.is_none()); + assert!((width(&h) - 40.0).abs() < 1e-6, "calibrating to half the distance halves the image: {}", width(&h)); + } +} diff --git a/crates/ui-egui/src/browser_card_tests.rs b/crates/ui-egui/src/browser_card_tests.rs new file mode 100644 index 000000000..dc579ea63 --- /dev/null +++ b/crates/ui-egui/src/browser_card_tests.rs @@ -0,0 +1,241 @@ +use super::*; +use crate::scenario::{Harness, handle_at, rect_of}; +use crate::shell::{LayoutMode, SHELL_GAP}; + +#[test] +fn browser_card_shrinks_and_scrolls_without_covering_history() { + let mut h = Harness::new(); + h.call("ui.resize", json!({"width":1400,"height":900})); + h.settle(); + let short = rect_of("browser:card").unwrap(); + let history = rect_of("history:card").unwrap(); + assert_eq!(short.left(), SHELL_GAP); + assert_eq!(short.width(), 250.0); + assert_eq!(short.top(), rect_of("ribbon:card").unwrap().bottom() + SHELL_GAP); + assert!(short.bottom() < history.top() - SHELL_GAP); + assert!(drawn_rows().iter().all(|(_, rect, _, _)| rect.height() == 26.0)); + + for i in 0..35 { + h.app.run("sketch.create", json!({"plane":"XY", "name":format!("Sketch{i}")})).unwrap(); + h.app.run("sketch.finish", json!({})).unwrap(); + } + h.settle(); + let tall = rect_of("browser:card").unwrap(); + assert!(tall.height() > short.height()); + assert!((tall.bottom() - (history.top() - SHELL_GAP)).abs() < 1.0, "{tall:?} {history:?}"); + assert!(h.app.viewport.rect.unwrap().contains_rect(tall)); + assert!(handle_at("row:Sketch34").is_none(), "last row starts below the scroll clip"); + let camera = h.app.cam; + h.call("ui.scroll", json!({"x":tall.center().x,"y":tall.center().y,"delta":-1800})); + h.settle(); + assert!(handle_at("row:Sketch34").is_some(), "scrolling must reveal the last row"); + assert_eq!(h.app.cam, camera); + assert_eq!(rect_of("browser:card").unwrap(), tall); + + h.call("ui.set", json!({"layout":"docked"})); + h.settle(); + assert!(rect_of("browser:card").is_none()); + assert_eq!(h.app.viewport.rect.unwrap().left(), 250.0); + assert!(drawn_rows().iter().all(|(_, rect, _, _)| rect.height() == 26.0)); + h.call("ui.set", json!({"layout":"floating"})); + h.app.tree.collapsed.insert("c0".into()); + h.settle(); + assert!(rect_of("browser:card").unwrap().height() < short.height()); +} + +#[test] +fn selected_row_paints_tab_soft_fill_and_accent_text_in_both_layouts() { + let previous = crate::theme::is_dark(); + for dark in [false, true] { + crate::theme::set_dark(dark); + for mode in [LayoutMode::Floating, LayoutMode::Docked] { + for tab in ["MODEL", "SKETCH", "SURFACE", "MESH", "FORM", "SHEET METAL", "RENDER"] { + let ctx = crate::fonts::test_context(); + let mut app = SolveApp::new(Default::default(), Default::default()); + app.ui.layout = mode; + app.ui.tab = tab.into(); + crate::theme::TabAccent::publish(&app, &ctx); + let accent = crate::theme::TabAccent::for_tab(&Tokens::get(), tab); + let mut row_rect = Rect::NOTHING; + let out = crate::test_support::frame(&ctx, egui::RawInput::default(), |ui| { + let row = Row { selected: true, label: "Selected body", dim: true, color: Some(Tokens::get().error), ..Default::default() }; + row_rect = draw_row(ui, egui::Id::new("selected-row"), &row).rect.unwrap(); + }); + assert_eq!(row_rect.height(), 26.0); + assert!(out.shapes.iter().any(|s| matches!(&s.shape, egui::Shape::Rect(r) if r.rect == row_rect && r.fill == accent.soft))); + assert!( + out.shapes + .iter() + .any(|s| matches!(&s.shape, egui::Shape::Text(t) if t.galley.text() == "Selected body" && t.fallback_color == accent.ink)) + ); + } + } + } + crate::theme::set_dark(previous); +} + +#[test] +fn card_and_column_keep_body_eyes_menus_and_group_drops() { + for mode in [LayoutMode::Floating, LayoutMode::Docked] { + let mut h = Harness::new(); + h.app.ui.layout = mode; + for (name, x) in [("One", 0), ("Two", 20)] { + h.app.run("solid.box", json!({"length":10,"width":10,"height":10,"corner":[x,0,0],"operation":"new_body","body_name":name})).unwrap(); + } + let group = + h.app.run("browser.group", json!({"component":0,"folder":"bodies","items":["One"],"name":"Group"})).unwrap()["group"].as_u64().unwrap(); + h.settle(); + h.step(&json!({"click":{"handle":"eye:Two"}})).unwrap(); + assert!(h.app.session.visibility.hidden_bodies.iter().any(|name| name == "Two")); + h.step(&json!({"click":{"handle":"eye:Two"}})).unwrap(); + assert!(!h.app.session.visibility.hidden_bodies.iter().any(|name| name == "Two")); + h.step(&json!({"click":{"handle":"row:Two"},"button":"right"})).unwrap(); + assert!(matches!(&h.app.menu.target, crate::context_menu::Target::Body { name } if name == "Two")); + h.step(&json!({"key":"Escape"})).unwrap(); + h.step(&json!({"drag":[{"handle":"row:Two"},{"handle":"row:Group (1)"}]})).unwrap(); + h.settle(); + let group = h.app.session.doc.browser_groups.iter().find(|g| g.id == group).unwrap(); + assert!(group.items.iter().any(|name| name == "Two"), "body drop into the folder failed in {mode:?}"); + } +} + +#[test] +fn browser_header_folds_the_floating_card_to_its_header_and_back() { + let mut h = Harness::new(); + h.call("ui.resize", json!({"width":1400,"height":900})); + h.settle(); + let open = rect_of("browser:card").unwrap(); + assert!(!h.app.tree.panel_collapsed); + let at = handle_at("browser:header").unwrap(); + h.call("ui.click", json!({"x":at.x,"y":at.y})); + h.settle(); + let folded = rect_of("browser:card").unwrap(); + assert!(h.app.tree.panel_collapsed); + assert!(folded.height() < 60.0 && folded.height() < open.height(), "{folded:?} {open:?}"); + assert_eq!(folded.top(), open.top()); + assert!(drawn_rows().is_empty() || handle_at("row:Plate").is_none()); + h.call("ui.click", json!({"x":at.x,"y":at.y})); + h.settle(); + assert!(!h.app.tree.panel_collapsed); + assert!((rect_of("browser:card").unwrap().height() - open.height()).abs() < 1.0); +} + +/// Tiny or odd window sizes never panic: the cards leave out what cannot fit. +#[test] +fn tiny_floating_windows_never_panic() { + for (w, h) in [(100, 60), (240, 90), (320, 140), (700, 150), (700, 300), (1400, 120), (180, 800)] { + for scale in [1.0, 2.0] { + let mut harness = Harness::new(); + harness.call("ui.resize", json!({"width": w, "height": h})); + harness.call("ui.prefs", json!({"ui_scale": scale})); + harness.app.run("sketch.create", json!({"plane": "XY"})).unwrap(); + harness.settle(); + for mode in [LayoutMode::Floating, LayoutMode::Docked] { + harness.app.ui.layout = mode; + harness.settle(); + } + } + } +} + +/// Both shell layouts share one tree and one saved width. Docked can switch its card +/// back into a column; Floating keeps its card when the overlay preference is cleared. +#[test] +fn one_browser_keeps_its_resized_width_across_layouts_and_overlay_preferences() { + let mut h = Harness::new(); + h.call("ui.resize", json!({"width":1400,"height":900})); + for mode in [LayoutMode::Floating, LayoutMode::Docked] { + for overlay in [false, true] { + h.app.ui.layout = mode; + h.app.preferences.browser_float = overlay; + h.app.preferences.browser_width = 310.0; + h.settle(); + let card = mode == LayoutMode::Floating || overlay; + assert_eq!(rect_of("browser:card").is_some(), card); + assert_eq!(crate::scenario::handles("browser:header").len(), 1, "only one browser header"); + assert_eq!(drawn_rows().iter().filter(|(name, ..)| name == "Untitled").count(), 1, "only one tree"); + if card { + assert!((rect_of("browser:card").unwrap().width() - 310.0).abs() < 1.0); + } else { + assert_eq!(h.app.viewport.rect.unwrap().left(), 310.0); + } + let rail = handle_at("left-browser-rail").unwrap(); + h.call("ui.drag", json!({"x0":rail.x,"y0":rail.y,"x1":rail.x+60.0,"y1":rail.y,"steps":6})); + h.settle(); + let width = h.app.preferences.browser_width; + assert!(width > 340.0 && width <= MAX_BROWSER_WIDTH, "{mode:?}, overlay={overlay}: {width}"); + h.app.ui.layout = LayoutMode::Docked; + h.app.preferences.browser_float = false; + h.settle(); + assert!((h.app.viewport.rect.unwrap().left() - width).abs() < 1.0, "the column uses the card's saved width"); + } + } +} +#[test] +fn browser_title_uses_a_single_semibold_run() { + let ctx = crate::fonts::test_context(); + let mut app = SolveApp::new(Default::default(), Default::default()); + let output = crate::test_support::frame(&ctx, egui::RawInput::default(), |ui| { + ui.set_width(250.0); + browser_header(&mut app, ui, true); + }); + let title = crate::i18n::tr("ui.browser_title"); + let titles: Vec<_> = output + .shapes + .iter() + .filter_map(|s| match &s.shape { + egui::Shape::Text(text) if text.galley.text() == title => Some(text), + _ => None, + }) + .collect(); + assert_eq!(titles.len(), 1); + assert_eq!(titles[0].galley.job.sections[0].format.font_id, crate::fonts::semibold(Tokens::get().font_heading)); +} + +#[test] +fn resizing_browser_card_and_column_persists_width_including_floating_preference() { + for (mode, float, left_history) in [ + (LayoutMode::Floating, false, false), + (LayoutMode::Docked, false, false), + (LayoutMode::Docked, true, false), + (LayoutMode::Floating, true, true), + (LayoutMode::Docked, true, true), + ] { + let mut h = Harness::new(); + h.app.ui.layout = mode; + h.app.preferences.browser_float = float; + h.app.preferences.timeline_left = left_history; + h.call("ui.resize", json!({"width":1400,"height":900})); + h.settle(); + let before = h.app.viewport.rect.unwrap(); + let at = handle_at("left-browser-rail").unwrap(); + h.call("ui.drag", json!({"x0":at.x,"y0":at.y,"x1":at.x+80.0,"y1":at.y,"steps":8})); + h.settle(); + let width = h.app.preferences.browser_width; + assert!(width > crate::prefs::DEFAULT_BROWSER_WIDTH + 40.0, "{mode:?}, float={float}, width={width}"); + if mode == LayoutMode::Floating || float { + assert!((rect_of("browser:card").unwrap().width() - width).abs() < 1.0); + assert_eq!(h.app.viewport.rect.unwrap(), before, "the card leaves the projection intact"); + } else { + assert!((h.app.viewport.rect.unwrap().left() - width).abs() < 1.0); + } + let mut restored = SolveApp::new(Default::default(), Default::default()); + restored.load_prefs(&h.app.prefs()); + assert_eq!(restored.preferences.browser_width, width); + assert_eq!(restored.preferences.browser_float, float); + } +} + +#[test] +fn browser_width_rejects_hostile_preferences_and_tiny_windows_still_fit() { + for width in [f32::NAN, f32::INFINITY, f32::NEG_INFINITY] { + assert_eq!(browser_width(width), crate::prefs::DEFAULT_BROWSER_WIDTH); + } + assert_eq!(browser_width(-100.0), MIN_BROWSER_WIDTH); + assert_eq!(browser_width(f32::MAX), MAX_BROWSER_WIDTH); + let available = Rect::from_min_size(Pos2::ZERO, vec2(100.0, 300.0)); + for top_gap in [0.0, crate::shell::SHELL_GAP] { + let bounds = floating_bounds(available, None, MAX_BROWSER_WIDTH, top_gap); + assert!(available.contains_rect(bounds)); + } +} diff --git a/crates/ui-egui/src/browser_model_tests.rs b/crates/ui-egui/src/browser_model_tests.rs index 8f4ceadc6..c2c3f41a8 100644 --- a/crates/ui-egui/src/browser_model_tests.rs +++ b/crates/ui-egui/src/browser_model_tests.rs @@ -3,17 +3,7 @@ use std::sync::Arc; use serde_json::json; use solidcraft_engine::Sel; -use crate::scenario::Harness; - -fn fixture() -> (Harness, u64, u64) { - let mut h = Harness::new(); - let part = h.app.run("component.create", json!({"name":"Block"})).unwrap(); - let component = part["component"].as_u64().unwrap(); - let occurrence = part["occurrence"].as_u64().unwrap(); - h.app.run("solid.box", json!({"length":10,"width":10,"height":10})).unwrap(); - h.app.run("component.activate", json!({"component":0})).unwrap(); - (h, component, occurrence) -} +use crate::test_support::component_box as fixture; #[test] fn navigating_and_selecting_reuse_placements_but_rows_read_live_view_state() { diff --git a/crates/ui-egui/src/browser_prompts.rs b/crates/ui-egui/src/browser_prompts.rs new file mode 100644 index 000000000..bab9dd292 --- /dev/null +++ b/crates/ui-egui/src/browser_prompts.rs @@ -0,0 +1,122 @@ +//! The two prompts the Browser opens over the viewport: Move/Copy of an occurrence (offsets and +//! turns, pending until Capture Position) and the Capture Position question asked before a +//! command or a save while components are moved but not captured. + +use serde_json::json; + +use crate::SolveApp; +use crate::browser::{answer_capture, apply_occurrence_move, occurrence_origin, panel_pos, revert_occurrence_dialog}; +use crate::ui_kit; + +/// Move/Copy of an occurrence: offsets and a rotation about Z, pending until Capture Position. +pub(crate) fn occurrence_panel(app: &mut SolveApp, ui: &mut egui::Ui) { + let Some(mut m) = app.tree.occurrence_move.clone() else { return }; + if !m.path.is_empty() + && let Err(error) = app.session.occurrence_placement(&m.path) + { + app.tree.occurrence_move = None; + app.set_status(error.to_string(), true); + return; + } + if m.baseline.is_none() { + m.had_pending = app.session.pending_moves.contains_key(&m.occurrence); + m.baseline = app + .session + .pending_moves + .get(&m.occurrence) + .copied() + .or_else(|| app.session.doc.occurrences.iter().find(|o| o.id == m.occurrence).map(|o| o.transform)); + } + let ctx = ui.ctx().clone(); + if m.pivot.is_none() { + m.pivot = if m.path.is_empty() { + occurrence_origin(app, m.occurrence) + } else { + app.session.occurrence_placement(&m.path).ok().map(|p| solidcraft_engine::doc::apply_point(&p.world, solidcraft_engine::geom::Vec3::ZERO)) + }; + } + let name = app.session.doc.occurrences.iter().find(|o| o.id == m.occurrence).map(|o| o.name.clone()).unwrap_or_default(); + let before = (m.translate, m.angles); + let shared = !m.path.is_empty() && app.session.occurrence_scope_count(&m.path).is_ok_and(|n| n > 1); + let title = crate::i18n::format("browser.move_title", &[("name", &name)]); + let at = panel_pos(app); + let (units, decimals) = (app.session.doc.units.clone(), app.preferences.length_decimals); + let (closed, action) = ui_kit::Window::new(egui::Id::new("sc_occ_move"), "move", &title) + .placed(egui::Align2::LEFT_TOP, at) + .fields() + .cards(2.0) + .actions("Capture All Positions", "Cancel", Some("Revert All Positions")) + .show(&ctx, true, |ui| { + if shared { + ui_kit::text( + ui, + crate::i18n::tr_label("This child is shared. Position changes apply to every copy of its parent."), + ui_kit::Text::Note("shared"), + ); + } + for (k, axis) in ["X distance", "Y distance", "Z distance"].into_iter().enumerate() { + if let Some(v) = m.translate.get_mut(k) { + let response = ui_kit::row(ui, crate::i18n::tr_label(axis), |ui| ui_kit::length_field(ui, v, &units, decimals)); + crate::scenario::publish_handle(&format!("occurrence-move:distance:{k}"), response.rect.center()); + } + } + for (k, axis) in ["X angle", "Y angle", "Z angle"].into_iter().enumerate() { + if let Some(v) = m.angles.get_mut(k) { + let response = ui_kit::row(ui, crate::i18n::tr_label(axis), |ui| ui_kit::angle_field(ui, v)); + crate::scenario::publish_handle(&format!("occurrence-move:angle:{k}"), response.rect.center()); + } + } + }); + if (m.translate, m.angles) != before { + apply_occurrence_move(app, &m); + } + match action { + ui_kit::Action::Ok => { + let _ = app.run("component.capture_position", json!({})); + app.tree.occurrence_move = None; + } + ui_kit::Action::Apply => { + let _ = app.run("component.revert_position", json!({})); + app.tree.occurrence_move = None; + } + ui_kit::Action::Cancel => { + revert_occurrence_dialog(app, &m); + app.tree.occurrence_move = None; + } + ui_kit::Action::None if closed => { + revert_occurrence_dialog(app, &m); + app.tree.occurrence_move = None; + } + ui_kit::Action::None => app.tree.occurrence_move = Some(m), + } +} + +/// The Capture Position question: capture, revert or cancel the waiting command (or save). +pub(crate) fn capture_prompt(app: &mut SolveApp, ctx: &egui::Context) { + if app.tree.capture_prompt.is_none() { + return; + } + let n = app.session.pending_moves.len(); + let (closed, action) = ui_kit::Window::new(egui::Id::new("sc_capture_prompt"), "capture", crate::i18n::tr_label("Capture Position")) + .anchor(egui::Align2::CENTER_CENTER, egui::vec2(0.0, -80.0)) + .actions("Capture Position", "Cancel", Some("Revert")) + .show(ctx, true, |ui| { + let question = if n == 1 { + crate::i18n::tr("browser.capture_one").to_string() + } else { + crate::i18n::format("browser.capture_many", &[("count", &n.to_string())]) + }; + ui_kit::text(ui, &question, ui_kit::Text::Report("question", false)); + ui_kit::text(ui, crate::i18n::tr("browser.capture_note"), ui_kit::Text::Note("capture")); + }); + let answer = match action { + ui_kit::Action::Ok => Some("capture"), + ui_kit::Action::Apply => Some("revert"), + ui_kit::Action::Cancel => Some("cancel"), + ui_kit::Action::None if closed => Some("cancel"), + ui_kit::Action::None => None, + }; + if let Some(answer) = answer { + let _ = answer_capture(app, answer); + } +} diff --git a/crates/ui-egui/src/canvas.rs b/crates/ui-egui/src/canvas.rs index a6944e88b..2203d74b4 100644 --- a/crates/ui-egui/src/canvas.rs +++ b/crates/ui-egui/src/canvas.rs @@ -571,7 +571,7 @@ fn value_box(ui: &mut egui::Ui, label: &str, value: &mut String, at: Pos2, selec crate::frame::area(egui::Id::new("sc_canvas_area")).fixed_pos(at).order(egui::Order::Foreground).show(ui.ctx(), |ui| { egui::Frame::popup(ui.style()).inner_margin(egui::Margin::symmetric(6, 3)).show(ui, |ui| { ui.horizontal(|ui| { - ui.label(egui::RichText::new(crate::i18n::tr_label(label)).color(t.text_dim).size(11.5)); + ui.label(egui::RichText::new(crate::i18n::tr_label(label)).color(t.text_dim).size(crate::theme::Tokens::get().font_caption)); let r = ui.add(egui::TextEdit::singleline(value).id(id).desired_width(72.0)); crate::params_dialog::complete(ui, &r, value); if select_all { @@ -889,10 +889,9 @@ fn measure_line(app: &SolveApp, painter: &egui::Painter, proj: &Proj, r: &serde_ painter.circle(s, 3.5, t.manipulator, Stroke::new(1.0, Color32::WHITE)); } let mid = sa + (sb - sa) * 0.5 + vec2(10.0, -14.0); - let galley = painter.layout_no_wrap(crate::prefs::show_mm(app, d, 1), egui::FontId::proportional(12.5), t.text); + let galley = painter.layout_no_wrap(crate::prefs::show_mm(app, d, 1), egui::FontId::proportional(crate::theme::Tokens::get().font_label), t.text); let rect = egui::Rect::from_min_size(mid, galley.size() + vec2(10.0, 6.0)); - crate::scenario::publish_handle("measure:label", rect.center()); - crate::scenario::publish_rect("measure:label", rect); + crate::scenario::publish_target("measure:label", rect); if app.preferences.measure_axis_distances { measure_components(app, painter, proj, a, b, rect); } @@ -931,7 +930,7 @@ fn measure_components(app: &SolveApp, painter: &egui::Painter, proj: &Proj, a: V (total.center(), vec2(20.0, 20.0)) }; let text = format!("{}: {}", axis.to_uppercase(), crate::prefs::show_mm(app, distance, 1)); - let galley = painter.layout_no_wrap(text, egui::FontId::proportional(12.5), t.text); + let galley = painter.layout_no_wrap(text, egui::FontId::proportional(crate::theme::Tokens::get().font_label), t.text); let size = galley.size() + vec2(10.0, 6.0); let bounds = proj.rect.shrink(4.0); let clamp = |rect: egui::Rect| { @@ -959,8 +958,7 @@ fn measure_components(app: &SolveApp, painter: &egui::Painter, proj: &Proj, a: V painter.rect(rect, 3.0, t.overlay, Stroke::new(1.0, color), egui::StrokeKind::Inside); painter.galley(rect.min + vec2(5.0, 3.0), galley, t.text); let handle = format!("measure:label:{axis}"); - crate::scenario::publish_handle(&handle, rect.center()); - crate::scenario::publish_rect(&handle, rect); + crate::scenario::publish_target(&handle, rect); occupied.push(rect); } } @@ -1178,7 +1176,10 @@ fn draw_revolve( } } if to_mode { - crate::frame::area(egui::Id::new("sc_canvas_area")).fixed_pos(box_at).order(egui::Order::Foreground).show(ui.ctx(), |ui| { + // This badge is read-only. Its placement follows the model and can overlap the + // command dialog, whose buttons must keep receiving clicks. + let area = crate::frame::area(egui::Id::new("sc_canvas_area")).fixed_pos(box_at).order(egui::Order::Foreground).interactable(false); + area.show(ui.ctx(), |ui| { egui::Frame::popup(ui.style()).inner_margin(egui::Margin::symmetric(6, 3)).show(ui, |ui| { let text = if extent.curved_to { "To surface".into() diff --git a/crates/ui-egui/src/colour_tokens_tests.rs b/crates/ui-egui/src/colour_tokens_tests.rs index 1576eb97d..8239e2330 100644 --- a/crates/ui-egui/src/colour_tokens_tests.rs +++ b/crates/ui-egui/src/colour_tokens_tests.rs @@ -75,17 +75,14 @@ const ALLOWED_LITERALS: &[(&str, usize, &str)] = &[ ("dialogs_library.rs", 1, "a library appearance's swatch: the colour is the fact"), ("dialogs_assembly.rs", 1, "the interference fill, shaded from its token"), ("dialogs_motion.rs", 1, "a white outline"), - ("documents.rs", 4, "white hover overlays on document tabs"), ("frame.rs", 1, "the window shadow"), ("gizmo.rs", 2, "the gizmo's neutral grey ball"), ("icons.rs", 1, "the white tint that carries an icon image's opacity"), - ("home.rs", 4, "white ink on accent buttons, and thumbnail tints"), + ("home.rs", 2, "thumbnail tints"), ("ref_images.rs", 1, "a reference image's opacity tint"), - ("sketch_palette.rs", 1, "white text on the accent button"), - ("sketch_text.rs", 1, "white text on the selection chip"), ("theme_files.rs", 1, "a colour read from a theme file, which sets tokens"), - ("titlebar.rs", 4, "the window close button's red hover (the system's convention), white hovers and ink"), - ("toolbar.rs", 3, "white hover overlays and the version text"), + ("titlebar.rs", 2, "the window close button's red hover (the system's convention) and white ink"), + ("toolbar.rs", 1, "the version text"), ]; const COLOUR_LITERALS: &[&str] = &[ @@ -124,23 +121,30 @@ fn colours_outside_the_theme_are_only_the_listed_neutral_ones() { let root = std::path::Path::new(env!("CARGO_MANIFEST_DIR")); let dirs = [root.join("src"), root.join("../../assets/icons/ui/source")]; let mut found = Vec::new(); - for dir in &dirs { - let entries = std::fs::read_dir(dir).unwrap_or_else(|e| panic!("{}: {e}", dir.display())); - for entry in entries.flatten() { - let path = entry.path(); - let name = path.file_name().and_then(|n| n.to_str()).unwrap_or_default().to_string(); - if !name.ends_with(".rs") || name.ends_with("_tests.rs") || name == "theme.rs" { + fn scan(dir: &std::path::Path, prefix: &str, found: &mut Vec) { + for entry in std::fs::read_dir(dir).unwrap() { + let path = entry.unwrap().path(); + let name = path.file_name().unwrap().to_str().unwrap(); + let relative = format!("{prefix}{name}"); + if path.is_dir() { + scan(&path, &format!("{relative}/"), found); continue; } - let src = std::fs::read_to_string(&path).unwrap_or_default(); + if !name.ends_with(".rs") || name.ends_with("_tests.rs") || matches!(name, "theme.rs" | "gallery.rs" | "test_support.rs") { + continue; + } + let src = std::fs::read_to_string(&path).unwrap(); let code = src.split("#[cfg(test)]").next().unwrap_or(&src); let n: usize = COLOUR_LITERALS.iter().map(|p| code.matches(p).count()).sum(); - let allowed = ALLOWED_LITERALS.iter().find(|(f, _, _)| *f == name).map_or(0, |(_, n, _)| *n); + let allowed = ALLOWED_LITERALS.iter().find(|(f, _, _)| *f == relative).map_or(0, |(_, n, _)| *n); if n > allowed { - found.push(format!("{name}: {n} colour literal(s), at most {allowed} allowed")); + found.push(format!("{relative}: {n} colour literal(s), at most {allowed} allowed")); } } } + for dir in &dirs { + scan(dir, "", &mut found); + } assert!(found.is_empty(), "colour literals outside theme::Tokens: {found:?}"); } diff --git a/crates/ui-egui/src/colour_vision_tests.rs b/crates/ui-egui/src/colour_vision_tests.rs index 9a96b8792..dc63b066c 100644 --- a/crates/ui-egui/src/colour_vision_tests.rs +++ b/crates/ui-egui/src/colour_vision_tests.rs @@ -278,6 +278,18 @@ fn groups(t: &Tokens) -> Vec { &[("timeline_item", t.timeline_item), ("timeline_item_error", t.timeline_item_error), ("hover", t.hover), ("accent_soft", t.accent_soft)], &[], ), + group("card text", &[("form_ink", t.form_ink), ("form_error", t.form_error)], &[("dialog_body", t.dialog_body)]), + group("card hints", &[("form_dim", t.form_dim)], &[("dialog_body", t.dialog_body)]), + group("card primary", &[("form_primary", t.form_primary)], &[("dialog_body", t.dialog_body)]), + // Validation is identified by its words as well as colour. Measure both the + // ink and badge surfaces against the corresponding failure states. + group( + "card validation", + &[("form_success", t.form_success), ("form_error", t.form_error)], + &[("form_success_fill", t.form_success_fill), ("form_error_fill", t.form_error_fill)], + ), + group("validation status", &[("form_success", t.form_success), ("error", t.error)], &[("panel", t.panel)]), + group("validation surfaces", &[("form_success_fill", t.form_success_fill), ("form_error_fill", t.form_error_fill)], &[]), group("UI text", &[("error", t.error), ("warning", t.warning), ("text", t.text)], &[("panel", t.panel)]), group("origin axes", &[("axis_x", t.axis_x), ("axis_y", t.axis_y), ("axis_z", t.axis_z)], &[("viewport_top", t.viewport_top)]), group("view triad", &[("triad[0]", t.triad[0]), ("triad[1]", t.triad[1]), ("triad[2]", t.triad[2])], &[("viewport_top", t.viewport_top)]), @@ -356,8 +368,36 @@ fn groups(t: &Tokens) -> Vec { &[("app_bar_icon[0]", t.app_bar_icon[0]), ("app_bar_icon[1]", t.app_bar_icon[1]), ("app_bar_icon[2]", t.app_bar_icon[2])], &[("app_bar", t.app_bar)], ), + // Tab names and icons identify the tabs; each accent must read against the toolbar. + group("surface tab", &[("surface_accent", t.surface_accent)], &[("toolbar", t.toolbar)]), + group("mesh tab", &[("mesh_accent", t.mesh_accent)], &[("toolbar", t.toolbar)]), + group("form tab", &[("form_accent", t.form_accent)], &[("toolbar", t.toolbar)]), + group("agent status", &[("agent_ok", t.agent_ok), ("agent_busy", t.agent_busy)], &[("app_bar", t.app_bar)]), group("logo", &[("logo[0]", t.logo[0]), ("logo[1]", t.logo[1]), ("logo[2]", t.logo[2])], &[("app_bar", t.app_bar)]), ]; + // Tab fills and small-text inks have distinct jobs: compare each with its actual + // grounds, rather than with the same-hue fill/ink. WCAG text ratios are also guarded + // in theme::tests::tab_accents_hold_wcag_small_text_contrast_in_both_themes. + for (name, ink_name, ink, soft_name, soft) in [ + ("sketch tab text", "sketch_ink", t.sketch_ink, "sketch_soft", t.sketch_soft), + ("surface tab text", "surface_ink", t.surface_ink, "surface_soft", t.surface_soft), + ("mesh tab text", "mesh_ink", t.mesh_ink, "mesh_soft", t.mesh_soft), + ("form tab text", "form_tab_ink", t.form_tab_ink, "form_soft", t.form_soft), + ("sheet tab text", "sheet_ink", t.sheet_ink, "sheet_soft", t.sheet_soft), + ("render tab text", "render_ink", t.render_ink, "render_soft", t.render_soft), + ] { + out.push(group(name, &[(ink_name, ink)], &[(soft_name, soft), ("panel", t.panel)])); + } + for (name, key, fill) in [ + ("surface tab fill", "surface_fill", t.surface_fill), + ("mesh tab fill", "mesh_fill", t.mesh_fill), + ("form tab fill", "form_fill", t.form_fill), + ("sheet tab fill", "sheet_fill", t.sheet_fill), + ("render tab fill", "render_fill", t.render_fill), + ] { + out.push(group(name, &[(key, fill)], &[("panel", t.panel)])); + } + out.push(group("dark pill text", &[("tab_on_fill_dark", t.tab_on_fill_dark)], &[("mesh_fill", t.mesh_fill)])); // The removed part of a cut preview is translucent over the body. if let Some(sel) = out.iter_mut().find(|g| g.name == "selection") { sel.members.push(("preview_cut", over(t.preview_cut, t.body))); @@ -371,6 +411,71 @@ const SHADED: [&str; 2] = ["analysis.draft", "analysis.access"]; /// Tokens no colour vision mode needs to keep apart, and why. A new token fails /// `every_token_is_measured_or_carries_no_meaning` until it is in a group above or here. const NO_MEANING: &[(&str, &str)] = &[ + ("space_2", "layout dimension"), + ("space_3", "layout dimension"), + ("space_4", "layout dimension"), + ("space_6", "layout dimension"), + ("space_8", "layout dimension"), + ("space_10", "layout dimension"), + ("space_12", "layout dimension"), + ("space_14", "layout dimension"), + ("space_16", "layout dimension"), + ("space_24", "layout dimension"), + ("radius_sm", "layout dimension"), + ("radius_md", "layout dimension"), + ("radius_lg", "layout dimension"), + ("radius_xl", "layout dimension"), + ("font_badge", "layout dimension"), + ("font_micro", "layout dimension"), + ("font_panel", "layout dimension"), + ("font_small", "layout dimension"), + ("font_caption", "layout dimension"), + ("font_body", "layout dimension"), + ("font_label", "layout dimension"), + ("font_button", "layout dimension"), + ("font_heading", "layout dimension"), + ("font_triad", "layout dimension"), + ("font_compass", "layout dimension"), + ("font_subtitle", "layout dimension"), + ("font_intro", "layout dimension"), + ("font_article_heading", "layout dimension"), + ("font_title", "layout dimension"), + ("font_display", "layout dimension"), + ("control_height", "layout dimension"), + ("control_radius", "layout dimension"), + ("form_label_width", "layout dimension"), + ("form_gap_y", "layout dimension"), + ("form_footer_height", "layout dimension"), + ("form_header_height", "layout dimension"), + ("form_card_width", "layout dimension"), + ("form_icon_size", "layout dimension"), + ("form_close_size", "layout dimension"), + ("form_inset", "layout dimension"), + ("form_icon_inset", "layout dimension"), + ("form_section_icon_size", "layout dimension"), + ("form_checkbox_height", "layout dimension"), + ("form_button_height", "layout dimension"), + ("sketch_palette_width", "layout dimension"), + ("sketch_mode_size", "layout dimension"), + ("sketch_mode_radius", "layout dimension"), + ("sketch_mode_border", "layout dimension"), + ("sketch_palette_alpha", "neutral panel opacity"), + ("sketch_mode_tint", "selected background tint of the measured sketch accent"), + ("sketch_footer_icon_size", "layout dimension"), + ("font_section_tracking", "layout dimension"), + ("on_accent", "ink on an accent fill"), + ("app_bar_hover_subtle", "translucent hover chrome"), + ("app_bar_hover_button", "translucent hover chrome"), + ("app_bar_hover_strong", "translucent hover chrome"), + ("app_bar_tab_active", "the active document tab's surface"), + ("dialog_footer", "dense dialog footer band"), + ("dialog_rule", "dense dialog divider"), + ("control_fill", "input control fill"), + ("control_border", "input control border"), + ("dialog_label", "dense dialog field label"), + ("selected_ink", "foreground of selected elements"), + ("selected_bg", "background of selected elements"), + ("render_accent", "the Render workspace's identity colour"), // The window's chrome: grounds, text and borders (measured as grounds where meaning sits on them). ("panel_header", "chrome"), ("border", "chrome"), @@ -384,6 +489,7 @@ const NO_MEANING: &[(&str, &str)] = &[ ("subheading_bg", "chrome"), ("overlay", "a chip's ground over the view"), ("app_bar_text", "text"), + ("app_bar_separator", "neutral chrome divider"), ("app_bar_hover", "a hovered tab, translucent white"), ("timeline_marker", "the rollback marker, alone"), ("field", "a field's ground"), @@ -635,18 +741,53 @@ fn each_mode_changes_only_its_table() { "icons.draft", "bend_up", "bend_down", + "surface_accent", + "mesh_accent", + "form_accent", "sketch_accent", "preview_sketch", + "form_success_fill", ]; - let mut red_green_light = red_green_both.to_vec(); - red_green_light.extend(["sketch_projected", "sketch_locked", "timeline_item_error", "construction_geom"]); + let mut red_green_light = + red_green_both.into_iter().filter(|name| !["surface_accent", "mesh_accent", "form_accent"].contains(name)).collect::>(); + red_green_light.extend(["sketch_projected", "sketch_locked", "timeline_item_error", "construction_geom", "glyph_text", "form_success"]); for (dark, mode, want) in [ (false, ColorVision::Protan, set(&red_green_light)), (true, ColorVision::Protan, set(&red_green_both)), (false, ColorVision::Deutan, set(&red_green_light)), (true, ColorVision::Deutan, set(&red_green_both)), - (false, ColorVision::Tritan, set(&["sketch_locked", "box_crossing", "construction_geom", "preview_sketch", "analysis.hatch"])), - (true, ColorVision::Tritan, set(&["sketch_locked", "box_crossing", "construction_geom", "glyph_text", "preview_sketch", "analysis.hatch"])), + ( + false, + ColorVision::Tritan, + set(&[ + "surface_accent", + "mesh_accent", + "form_accent", + "agent_busy", + "sketch_locked", + "box_crossing", + "construction_geom", + "glyph_text", + "preview_sketch", + "analysis.hatch", + ]), + ), + ( + true, + ColorVision::Tritan, + set(&[ + "surface_accent", + "mesh_accent", + "form_accent", + "agent_busy", + "sketch_locked", + "box_crossing", + "construction_geom", + "glyph_text", + "preview_sketch", + "analysis.hatch", + ]), + ), ] { let base = Tokens::themed(dark, ColorVision::Off); assert_eq!(changed_fields(&base, &Tokens::themed(dark, mode)), want, "{mode:?}, dark {dark}"); @@ -689,6 +830,33 @@ fn every_mode_keeps_colours_apart_for_its_eye() { } } +/// Badge meaning must survive each simulation even for subtle default tints (which +/// the general groups check may otherwise skip when they are close for normal vision). +#[test] +fn validation_badges_are_distinct_and_readable_in_every_mode() { + let mut failures = Vec::new(); + for dark in [false, true] { + for mode in std::iter::once(ColorVision::Off).chain(MODES) { + let t = Tokens::themed(dark, mode); + for (name, other) in [("form_error", t.form_error), ("error", t.error)] { + let distance = worst(mode, rgb(t.form_success), rgb(other)); + if distance < FLOOR { + failures.push(format!("{mode:?} dark={dark} form_success vs {name}: {distance:.2}")); + } + } + let distance = worst(mode, rgb(t.form_success_fill), rgb(t.form_error_fill)); + if distance < FLOOR { + failures.push(format!("{mode:?} dark={dark} validation fills: {distance:.2}")); + } + let contrast = crate::theme::contrast_ratio(t.form_success, t.form_success_fill); + if contrast < 4.5 { + failures.push(format!("{mode:?} dark={dark} success contrast: {contrast:.2}")); + } + } + } + assert!(failures.is_empty(), "{}", failures.join("\n")); +} + #[test] fn the_shader_gets_the_modes_colours_and_its_stripes() { for dark in [false, true] { diff --git a/crates/ui-egui/src/configuration_rules_ui.rs b/crates/ui-egui/src/configuration_rules_ui.rs index e88ec8379..4f5089108 100644 --- a/crates/ui-egui/src/configuration_rules_ui.rs +++ b/crates/ui-egui/src/configuration_rules_ui.rs @@ -1,6 +1,7 @@ //! Structured configuration rule editing and non-mutating row preview. use crate::SolveApp; -use egui::{RichText, Ui}; +use crate::ui_kit; +use egui::Ui; use serde_json::{Value, json}; use solidcraft_engine::doc::config::{Column, ConfigRule, RuleCondition, RuleEffect, RuleOperator}; @@ -11,6 +12,9 @@ pub struct Editor { preview: Option, preview_revision: u64, + pub(super) new_values: std::collections::BTreeMap, + pub(super) adding_row: bool, + pub(super) focus_new_row: bool, pub(super) drafts: std::collections::BTreeMap<(String, String), String>, pub(super) table: Option<(u64, Value)>, } @@ -29,21 +33,39 @@ impl Default for Editor { preview: None, preview_revision: 0, + new_values: Default::default(), + adding_row: false, + focus_new_row: false, drafts: Default::default(), table: None, } } } fn choose(ui: &mut Ui, id: &str, value: &mut String, options: &[String]) { - egui::ComboBox::from_id_salt(id).selected_text(if value.is_empty() { "Choose…" } else { value.as_str() }).width(130.0).show_ui(ui, |ui| { - for option in options { - ui.selectable_value(value, option.clone(), option); - } - }); + let mut labels = vec![crate::i18n::tr_label("Choose…")]; + labels.extend(options.iter().map(String::as_str)); + let mut selected = options.iter().position(|o| o == value).map_or(0, |i| i + 1); + let before = selected; + let label = match id { + "rule_length_units" => "Length units", + "rule_effect_kind" => "Then", + "condition_kind" => "When", + "effect_parameter" | "range_parameter" | "allowed_parameter" | "condition_parameter" => "Parameter", + "effect_feature" | "condition_feature" => "Feature", + "preview_configuration" => "Configuration", + _ => id, + }; + ui_kit::row(ui, label, |ui| ui_kit::dropdown(ui, id, &mut selected, &labels)); + if before != selected + && let Some(choice) = selected.checked_sub(1).and_then(|i| options.get(i)) + { + *value = choice.clone(); + } } fn expression(ui: &mut Ui, label: &str, value: &mut String) { - ui.label(label); - ui.add(egui::TextEdit::singleline(value).desired_width(160.0)); + ui_kit::row(ui, label, |ui| { + ui_kit::text_field(ui, value, label); + }); } pub(super) fn show(ui: &mut Ui, app: &mut SolveApp, error: &mut Option, editor: &mut Editor) { @@ -57,38 +79,17 @@ pub(super) fn show(ui: &mut Ui, app: &mut SolveApp, error: &mut Option, let features: Vec<(u64, String)> = app.session.doc.features.iter().map(|f| (f.id, f.name.clone())).collect(); let suppression_features: Vec<(u64, String)> = features.iter().filter(|(id, _)| app.session.doc.configs.columns.contains(&Column::Suppress(*id))).cloned().collect(); - ui.separator(); - ui.label(RichText::new(crate::i18n::tr_label("Configuration rules")).strong()); - ui.add(egui::Label::new("Rules run from top to bottom. Matched drives change effective values.").wrap()); - ui.add(egui::Label::new("Matched restrictions check the final values.").wrap()); + ui_kit::divider(ui, "configuration_rules"); + ui_kit::text(ui, crate::i18n::tr_label("Configuration rules"), ui_kit::Text::Heading("rules_heading")); + ui_kit::text( + ui, + crate::i18n::tr_label("Rules run from top to bottom. Matched drives change effective values."), + ui_kit::Text::Note("rules_drives"), + ); + ui_kit::text(ui, crate::i18n::tr_label("Matched restrictions check the final values."), ui_kit::Text::Note("rules_restrictions")); for (index, rule) in rules.iter().enumerate() { ui.push_id(&rule.id, |ui| { - ui.horizontal(|ui| { - let mut enabled = rule.enabled; - if ui.checkbox(&mut enabled, "").on_hover_text(crate::i18n::tr_label("Enable rule")).changed() { - let mut r = rule.clone(); - r.enabled = enabled; - *error = app.run("config.rule", json!({"rule":r})).err(); - } - ui.add(egui::Label::new(&rule.name).truncate()); - if ui.small_button("Edit").clicked() { - editor.rule = rule.clone(); - } - if ui.add_enabled(index > 0, egui::Button::new("↑").small()).on_hover_text(crate::i18n::tr_label("Move earlier")).clicked() { - *error = app.run("config.rule", json!({"id":rule.id,"index":index-1})).err(); - } - if ui - .add_enabled(index + 1 < rules.len(), egui::Button::new("↓").small()) - .on_hover_text(crate::i18n::tr_label("Move later")) - .clicked() - { - *error = app.run("config.rule", json!({"id":rule.id,"index":index+1})).err(); - } - if ui.small_button("Delete").clicked() { - *error = app.run("config.rule", json!({"id":rule.id,"delete":true})).err(); - } - }); - ui.label(match &rule.effect { + let summary = match &rule.effect { RuleEffect::DriveParameter { parameter, expression } => format!("Drives {parameter} = {expression}"), RuleEffect::DriveSuppression { feature, value } => format!( "Drives suppression {} = {value}", @@ -96,21 +97,46 @@ pub(super) fn show(ui: &mut Ui, app: &mut SolveApp, error: &mut Option, ), RuleEffect::ParameterRange { parameter, minimum, maximum } => format!("Restricts {parameter}: {minimum} through {maximum}"), RuleEffect::AllowParameterValues { parameter, expressions } => format!("Restricts {parameter}: {}", expressions.join(", ")), - }); + }; + let actions_width = ["Edit", "↑", "↓", "Delete"].iter().map(|label| ui_kit::ContentWidth::button(ui, label)).sum::() + + crate::theme::Tokens::get().space_4 * 3.0; + let mut enabled = rule.enabled; + if ui_kit::summary_row(ui, &rule.name, &summary, &mut enabled, actions_width, |ui| { + if ui_kit::button(ui, crate::i18n::tr_label("Edit"), ui_kit::Button::Normal).clicked() { + editor.rule = rule.clone(); + } + let up = ui_kit::button(ui, "↑", ui_kit::Button::Enabled(index > 0)).on_hover_text(crate::i18n::tr_label("Move earlier")); + crate::scenario::publish_handle(&format!("config:rule:{}:up", rule.id), up.rect.center()); + if up.clicked() { + *error = app.run("config.rule", json!({"id":rule.id,"index":index-1})).err(); + } + if ui_kit::button(ui, "↓", ui_kit::Button::Enabled(index + 1 < rules.len())) + .on_hover_text(crate::i18n::tr_label("Move later")) + .clicked() + { + *error = app.run("config.rule", json!({"id":rule.id,"index":index+1})).err(); + } + if ui_kit::button(ui, crate::i18n::tr_label("Delete"), ui_kit::Button::Normal).clicked() { + *error = app.run("config.rule", json!({"id":rule.id,"delete":true})).err(); + } + }) { + let mut updated = rule.clone(); + updated.enabled = enabled; + *error = app.run("config.rule", json!({"rule":updated})).err(); + } }); } - ui.collapsing("Add or edit rule", |ui| { - ui.horizontal(|ui| { + ui_kit::section(ui, "rule_editor", "Add or edit rule", false, |ui| { + ui.vertical(|ui| { expression(ui, "Rule name", &mut editor.rule.name); - ui.checkbox(&mut editor.rule.enabled, crate::i18n::tr_label("Enabled")); - if ui.small_button("New").clicked() { + ui_kit::checkbox(ui, crate::i18n::tr_label("Enabled"), &mut editor.rule.enabled); + if ui_kit::button(ui, crate::i18n::tr_label("New"), ui_kit::Button::Small).clicked() { editor.rule = Editor::default().rule; } }); let mut length_unit = editor.rule.length_unit.clone().unwrap_or_else(|| app.session.doc.units.clone()); let old_unit = length_unit.clone(); - ui.horizontal(|ui| { - ui.label(crate::i18n::tr_label("Length units")); + ui.vertical(|ui| { choose(ui, "rule_length_units", &mut length_unit, &["mm".into(), "cm".into(), "m".into(), "in".into(), "ft".into()]); }); if length_unit != old_unit { @@ -125,8 +151,7 @@ pub(super) fn show(ui: &mut Ui, app: &mut SolveApp, error: &mut Option, } .to_string(); let prior = effect_kind.clone(); - ui.horizontal(|ui| { - ui.label(crate::i18n::tr_label("Then")); + ui.vertical(|ui| { choose( ui, "rule_effect_kind", @@ -145,36 +170,37 @@ pub(super) fn show(ui: &mut Ui, app: &mut SolveApp, error: &mut Option, } match &mut editor.rule.effect { RuleEffect::DriveParameter { parameter, expression: value } => { - ui.horizontal(|ui| { + ui.vertical(|ui| { choose(ui, "effect_parameter", parameter, ¶meters); expression(ui, "Value", value); }); } RuleEffect::DriveSuppression { feature, value } => { - ui.horizontal(|ui| { + ui.vertical(|ui| { feature_choice(ui, "effect_feature", feature, &suppression_features); - ui.checkbox(value, crate::i18n::tr_label("Suppressed")); + ui_kit::checkbox(ui, crate::i18n::tr_label("Suppressed"), value); }); } RuleEffect::ParameterRange { parameter, minimum, maximum } => { choose(ui, "range_parameter", parameter, ¶meters); - ui.horizontal(|ui| { + ui.vertical(|ui| { expression(ui, "Minimum", minimum); }); - ui.horizontal(|ui| { + ui.vertical(|ui| { expression(ui, "Maximum", maximum); }); } RuleEffect::AllowParameterValues { parameter, expressions } => { choose(ui, "allowed_parameter", parameter, ¶meters); let mut text = expressions.join("; "); - ui.label(crate::i18n::tr_label("Allowed expressions, separated by semicolons")); - if ui.add(egui::TextEdit::singleline(&mut text).desired_width(300.0)).changed() { + if ui_kit::row(ui, "Allowed expressions, separated by semicolons", |ui| ui_kit::text_field(ui, &mut text, "").1) { *expressions = text.split(';').map(|s| s.trim().to_string()).collect(); } } } - if ui.add_enabled(!app.session.doc.configs.rows.is_empty(), egui::Button::new(crate::i18n::tr_label("Save Rule"))).clicked() { + let save = ui_kit::button(ui, "Save Rule", ui_kit::Button::Enabled(!app.session.doc.configs.rows.is_empty())); + crate::scenario::publish_handle("config:save_rule", save.rect.center()); + if save.clicked() { let result = (|| -> Result<(), String> { let mut rule = editor.rule.clone(); if rule.id.is_empty() { @@ -187,92 +213,110 @@ pub(super) fn show(ui: &mut Ui, app: &mut SolveApp, error: &mut Option, *error = result.err(); } }); - let rows: Vec = app.session.doc.configs.rows.iter().map(|r| r.name.clone()).collect(); - if !rows.contains(&editor.row) { - editor.row = app.session.doc.configs.active.clone().or_else(|| rows.first().cloned()).unwrap_or_default(); - } - let previous_row = editor.row.clone(); - ui.horizontal(|ui| { - choose(ui, "preview_configuration", &mut editor.row, &rows); - if ui.add_enabled(!editor.row.is_empty(), egui::Button::new(crate::i18n::tr_label("Preview Row"))).clicked() { - match app.session.execute("config.preview", &json!({"row":editor.row})) { - Ok(result) => { - editor.preview = Some(result); - editor.preview_revision = app.session.revision; - *error = None; - } - Err(e) => { - editor.preview = None; - *error = Some(e.to_string()); + ui_kit::section(ui, "preview", "Preview", true, |ui| { + let rows: Vec = app.session.doc.configs.rows.iter().map(|r| r.name.clone()).collect(); + if !rows.contains(&editor.row) { + editor.row = app.session.doc.configs.active.clone().or_else(|| rows.first().cloned()).unwrap_or_default(); + } + let previous_row = editor.row.clone(); + ui.vertical(|ui| { + choose(ui, "preview_configuration", &mut editor.row, &rows); + let preview = ui_kit::button(ui, "Preview Row", ui_kit::Button::Enabled(!editor.row.is_empty())); + crate::scenario::publish_handle("config:preview_row", preview.rect.center()); + if preview.clicked() { + match app.session.execute("config.preview", &json!({"row":editor.row})) { + Ok(result) => { + editor.preview = Some(result); + editor.preview_revision = app.session.revision; + *error = None; + } + Err(e) => { + editor.preview = None; + *error = Some(e.to_string()); + } } } + }); + if previous_row != editor.row { + editor.preview = None; + } + if let Some(preview) = &editor.preview { + ui_kit::section(ui, "rule_preview", &format!("Preview: {}", preview["active"].as_str().unwrap_or("row")), false, |ui| { + report(ui, crate::i18n::tr_label("Preview leaves the current design unchanged.")); + if let Some(styles) = preview["styles"].as_array() { + for style in styles { + report( + ui, + format!( + "{}: {} (shared definition)", + style["target"].as_str().unwrap_or("Appearance"), + if style["dormant"].as_bool() == Some(true) { "dormant" } else { "resolved" } + ), + ); + } + } + if let Some(trace) = preview["trace"].as_array() { + for entry in trace { + report( + ui, + format!( + "{} — {}", + entry["name"].as_str().unwrap_or("rule"), + if entry["matched"].as_bool() == Some(true) { "matched" } else { "skipped" } + ), + ); + if entry["matched"].as_bool() == Some(true) + && let Ok(effect) = serde_json::from_value::(entry["effect"].clone()) + { + report( + ui, + match effect { + RuleEffect::DriveParameter { parameter, expression } => format!("Driven: {parameter} = {expression}"), + RuleEffect::DriveSuppression { feature, value } => format!( + "Driven: {} is {}", + features.iter().find(|f| f.0 == feature).map(|f| f.1.as_str()).unwrap_or("feature"), + if value { "suppressed" } else { "unsuppressed" } + ), + RuleEffect::ParameterRange { parameter, minimum, maximum } => { + format!("Restricted: {parameter}, {minimum} through {maximum}") + } + RuleEffect::AllowParameterValues { parameter, expressions } => { + format!("Restricted: {parameter}, {}", expressions.join("; ")) + } + }, + ); + } + } + } + if let Some(parameters) = preview["parameters"].as_array() { + for parameter in parameters { + if let Some(name) = parameter["name"].as_str() + && all_parameters.iter().any(|p| p == name) + { + let response = ui_kit::text( + ui, + &format!("{name} = {}", parameter["expression"].as_str().unwrap_or("")), + ui_kit::Text::Report("preview_parameter", false), + ); + crate::scenario::publish_handle(&format!("config:preview:param:{name}"), response.rect.center()); + } + } + } + }); } }); - if previous_row != editor.row { - editor.preview = None; - } - if let Some(preview) = &editor.preview { - ui.collapsing(format!("Preview: {}", preview["active"].as_str().unwrap_or("row")), |ui| { - ui.label(crate::i18n::tr_label("Preview leaves the current design unchanged.")); - if let Some(styles) = preview["styles"].as_array() { - for style in styles { - ui.add( - egui::Label::new(format!( - "{}: {} (shared definition)", - style["target"].as_str().unwrap_or("Appearance"), - if style["dormant"].as_bool() == Some(true) { "dormant" } else { "resolved" } - )) - .wrap(), - ); - } - } - if let Some(trace) = preview["trace"].as_array() { - for entry in trace { - ui.label(format!( - "{} — {}", - entry["name"].as_str().unwrap_or("rule"), - if entry["matched"].as_bool() == Some(true) { "matched" } else { "skipped" } - )); - if entry["matched"].as_bool() == Some(true) - && let Ok(effect) = serde_json::from_value::(entry["effect"].clone()) - { - ui.label(match effect { - RuleEffect::DriveParameter { parameter, expression } => format!("Driven: {parameter} = {expression}"), - RuleEffect::DriveSuppression { feature, value } => format!( - "Driven: {} is {}", - features.iter().find(|f| f.0 == feature).map(|f| f.1.as_str()).unwrap_or("feature"), - if value { "suppressed" } else { "unsuppressed" } - ), - RuleEffect::ParameterRange { parameter, minimum, maximum } => { - format!("Restricted: {parameter}, {minimum} through {maximum}") - } - RuleEffect::AllowParameterValues { parameter, expressions } => { - format!("Restricted: {parameter}, {}", expressions.join("; ")) - } - }); - } - } - } - if let Some(parameters) = preview["parameters"].as_array() { - for parameter in parameters { - if let Some(name) = parameter["name"].as_str() - && all_parameters.iter().any(|p| p == name) - { - ui.label(format!("{name} = {}", parameter["expression"].as_str().unwrap_or(""))); - } - } - } - }); - } } +fn report(ui: &mut Ui, text: impl AsRef) { + ui_kit::text(ui, crate::i18n::tr_label(text.as_ref()), ui_kit::Text::Report("rule_report", false)); +} + fn feature_choice(ui: &mut Ui, id: &str, feature: &mut u64, features: &[(u64, String)]) { - egui::ComboBox::from_id_salt(id) - .selected_text(features.iter().find(|f| f.0 == *feature).map(|f| f.1.as_str()).unwrap_or("Choose feature…")) - .show_ui(ui, |ui| { - for (id, name) in features { - ui.selectable_value(feature, *id, name); - } - }); + let options: Vec<_> = features.iter().map(|(_, name)| name.clone()).collect(); + let mut selected = features.iter().find(|f| f.0 == *feature).map(|f| f.1.clone()).unwrap_or_default(); + choose(ui, id, &mut selected, &options); + if let Some((id, _)) = features.iter().find(|(_, name)| *name == selected) { + *feature = *id; + } } fn condition_editor(ui: &mut Ui, condition: &mut RuleCondition, parameters: &[String], features: &[(u64, String)], depth: usize) { @@ -290,8 +334,7 @@ fn condition_editor(ui: &mut Ui, condition: &mut RuleCondition, parameters: &[St if depth < 8 { choices.extend(["All".into(), "Any".into(), "Not".into()]); } - ui.horizontal(|ui| { - ui.label(crate::i18n::tr_label("When")); + ui.vertical(|ui| { choose(ui, "condition_kind", &mut kind, &choices); }); if previous != kind { @@ -310,37 +353,29 @@ fn condition_editor(ui: &mut Ui, condition: &mut RuleCondition, parameters: &[St } match condition { RuleCondition::Parameter { parameter, operator, expression } => { - ui.horizontal(|ui| { + ui.vertical(|ui| { choose(ui, "condition_parameter", parameter, parameters); - egui::ComboBox::from_id_salt("condition_operator") - .width(45.0) - .selected_text(match operator { - RuleOperator::Eq => "=", - RuleOperator::Ne => "≠", - RuleOperator::Lt => "<", - RuleOperator::Le => "≤", - RuleOperator::Gt => ">", - RuleOperator::Ge => "≥", - }) - .show_ui(ui, |ui| { - for (label, op) in [ - ("=", RuleOperator::Eq), - ("≠", RuleOperator::Ne), - ("<", RuleOperator::Lt), - ("≤", RuleOperator::Le), - (">", RuleOperator::Gt), - ("≥", RuleOperator::Ge), - ] { - ui.selectable_value(operator, op, label); - } - }); - ui.add(egui::TextEdit::singleline(expression).desired_width(110.0)); + let operators = [ + ("=", RuleOperator::Eq), + ("≠", RuleOperator::Ne), + ("<", RuleOperator::Lt), + ("≤", RuleOperator::Le), + (">", RuleOperator::Gt), + ("≥", RuleOperator::Ge), + ]; + let mut index = operators.iter().position(|(_, op)| op == operator).unwrap_or(0); + let labels: Vec<_> = operators.iter().map(|(label, _)| *label).collect(); + ui_kit::row(ui, "Operator", |ui| ui_kit::dropdown(ui, "condition_operator", &mut index, &labels)); + if let Some((_, op)) = operators.get(index) { + *operator = *op; + } + ui_kit::row(ui, "Expression", |ui| ui_kit::field(ui, expression)); }); } RuleCondition::Suppression { feature, value } => { - ui.horizontal(|ui| { + ui.vertical(|ui| { feature_choice(ui, "condition_feature", feature, features); - ui.checkbox(value, crate::i18n::tr_label("Suppressed")); + ui_kit::checkbox(ui, crate::i18n::tr_label("Suppressed"), value); }); } RuleCondition::All { conditions } | RuleCondition::Any { conditions } => { @@ -349,7 +384,7 @@ fn condition_editor(ui: &mut Ui, condition: &mut RuleCondition, parameters: &[St ui.push_id(index, |ui| { ui.indent("condition_group", |ui| { condition_editor(ui, child, parameters, features, depth + 1); - if ui.small_button("Remove condition").clicked() { + if ui_kit::button(ui, crate::i18n::tr_label("Remove condition"), ui_kit::Button::Small).clicked() { remove = Some(index); } }); @@ -358,7 +393,7 @@ fn condition_editor(ui: &mut Ui, condition: &mut RuleCondition, parameters: &[St if let Some(index) = remove { conditions.remove(index); } - if ui.add_enabled(conditions.len() < 32, egui::Button::new(crate::i18n::tr_label("Add condition")).small()).clicked() { + if ui_kit::button(ui, "Add condition", ui_kit::Button::Enabled(conditions.len() < 32)).clicked() { conditions.push(RuleCondition::Always); } } diff --git a/crates/ui-egui/src/configurations_ui.rs b/crates/ui-egui/src/configurations_ui.rs new file mode 100644 index 000000000..28e315f09 --- /dev/null +++ b/crates/ui-egui/src/configurations_ui.rs @@ -0,0 +1,449 @@ +//! Manage configuration table. Commands and cell decoding remain in dialogs_motion. +use super::{cell_value, column_parts, configuration_rules_ui, table, unit_of}; +use crate::{SolveApp, ui_kit}; +use serde_json::{Value, json}; +/// The Configurations table, its rules and errors. +pub(super) fn configurations_rows( + app: &mut SolveApp, + ui: &mut egui::Ui, + new_row: &mut String, + error: &mut Option, + rule_editor: &mut configuration_rules_ui::Editor, +) { + // Physical materials for the configuration table's Library: the library's, then the design's own. + let material_names = app.session.doc.material_names(); + let revision = app.session.revision; + let v = rule_editor.table.as_ref().filter(|(r, _)| *r == revision).map(|(_, v)| v.clone()).unwrap_or_else(|| { + let value = app.session.execute("config.table", &json!({})).unwrap_or(Value::Null); + rule_editor.table = Some((revision, value.clone())); + value + }); + let mut tb = table(&v); + // Bare numbers show with their parameter's unit ("40" is 40 mm), as Fusion shows them. + let kinds = app.session.doc.all_param_exprs(); + for (_, vals) in &mut tb.rows { + for (c, val) in tb.columns.iter().zip(vals.iter_mut()) { + let (kind, n) = column_parts(c); + if kind == "param" + && val.trim().parse::().is_ok() + && let Some(unit) = app.session.doc.param(n).map(|parameter| parameter.unit.clone()).or_else(|| { + kinds.iter().find(|x| x.0 == n).and_then(|x| { + unit_of(x.2).map(|unit| { + if x.2 == solidcraft_engine::doc::expr::Kind::Length { app.session.doc.units.clone() } else { unit.to_string() } + }) + }) + }) + { + *val = format!("{} {unit}", val.trim()); + } + } + } + let run = |app: &mut SolveApp, error: &mut Option, id: &str, p: Value| { + *error = app.run(id, p).err(); + }; + let labels: Vec<_> = std::iter::once(crate::i18n::tr_label("Configuration").to_owned()) + .chain(tb.columns.iter().map(|c| { + let (kind, name) = column_parts(c); + v["targets"] + .as_array() + .and_then(|targets| targets.iter().find(|target| target["key"].as_str() == Some(c))) + .and_then(|target| target["label"].as_str()) + .filter(|_| matches!(kind, "component_appearance" | "face_appearance")) + .map(str::to_string) + .unwrap_or_else(|| match kind { + "material" => format!("{}: {name}", crate::i18n::tr_label("Material")), + "appearance" => format!("{}: {name}", crate::i18n::tr_label("Appearance")), + "suppress" => format!("{}: {name}", crate::i18n::tr_label("Suppress")), + _ => name.to_owned(), + }) + })) + .chain(std::iter::once(crate::i18n::tr_label("Actions").to_owned())) + .collect(); + let gap = ui.spacing().item_spacing.x; + let name_width = tb.rows.iter().map(|(name, _)| ui_kit::ContentWidth::name(ui, name)).fold(0.0, f32::max); + let status_width = (ui_kit::ContentWidth::label(ui, "Active") + gap + ui_kit::ContentWidth::button(ui, "Apply")) + .max(ui_kit::ContentWidth::button(ui, "Activate")); + let columns: Vec<_> = labels + .iter() + .enumerate() + .map(|(index, label)| { + let min_width = if index == 0 { + name_width + gap + status_width + crate::theme::Tokens::get().space_24 + } else { + ui_kit::row_height() * 2.0 + crate::theme::Tokens::get().space_24 + }; + if index == labels.len() - 1 { + ui_kit::Column::new(label, 0.0) + .icon_only() + .min_content_width(crate::theme::Tokens::get().control_height + crate::theme::Tokens::get().space_12) + } else { + let weight = if index == 0 { + 1.6 + } else { + match tb.columns.get(index - 1).map(|column| column_parts(column).0) { + Some("param") => 0.9, + Some("suppress") => 1.1, + Some("material") => 1.2, + _ => 1.3, + } + }; + ui_kit::Column::new(label, weight).flex().min_content_width(min_width) + } + }) + .collect(); + ui_kit::table_custom(ui, "configuration_table", &columns, crate::i18n::tr("manage.empty"), |ui, table| { + table.headers(ui, |ui, index| { + if index == labels.len() - 1 { + column_menu(app, ui, error, &tb.columns); + true + } else if index > 0 { + if let (Some(column), Some(label)) = (tb.columns.get(index - 1), labels.get(index)) + && ui_kit::removable_header(ui, label) + { + let (kind, name) = column_parts(column); + let key = if kind == "suppress" { "feature" } else { kind }; + run(app, error, "config.column", json!({key:if kind == "face_appearance" {column.as_str()} else {name},"delete":true})); + } + true + } else { + false + } + }); + for (name, values) in &tb.rows { + let active = tb.active.as_deref() == Some(name.as_str()); + table.row(ui, name, active, |row| { + row.cell(|ui| { + // A measured name slot keeps status/actions inside the Configuration column. + ui.allocate_ui_with_layout( + egui::vec2(name_width, ui_kit::row_height()), + egui::Layout::left_to_right(egui::Align::Center), + |ui| { + ui_kit::text(ui, name, ui_kit::Text::NameCell(true)); + }, + ); + if active { + ui_kit::active_pill(ui); + if v.get("matches").and_then(Value::as_bool) == Some(false) { + let apply = ui_kit::button(ui, crate::i18n::tr_label("Apply"), ui_kit::Button::Small); + crate::scenario::publish_handle(&format!("config:activate:{name}"), apply.rect.center()); + if apply.clicked() { + run(app, error, "config.activate", json!({"row":name})); + } + } + } else { + let activate = ui_kit::button(ui, crate::i18n::tr_label("Activate"), ui_kit::Button::Small); + crate::scenario::publish_handle(&format!("config:activate:{name}"), activate.rect.center()); + if activate.clicked() { + run(app, error, "config.activate", json!({"row":name})); + } + } + }); + for (column, value) in tb.columns.iter().zip(values) { + row.cell(|ui| { + let (kind, _) = column_parts(column); + let shown = display_cell(kind, value); + let key = (name.clone(), column.clone()); + let mut text = rule_editor.drafts.get(&key).cloned().unwrap_or_else(|| shown.clone()); + let id = ui.make_persistent_id(&key); + let (response, choice) = value_control(ui, id, &mut text, kind, &material_names); + if let Some(choice) = choice { + run(app, error, "config.row", json!({"name":name,"values":{column:choice}})); + } + crate::scenario::publish_handle(&format!("config:cell:{name}:{column}"), response.rect.center()); + let focused = response.has_focus(); + let completed = crate::params_dialog::complete(ui, &response, &mut text); + if response.changed() || completed { + rule_editor.drafts.insert(key.clone(), text.clone()); + } + let enter = !completed && focused && ui.input_mut(|i| i.consume_key(egui::Modifiers::NONE, egui::Key::Enter)); + if response.lost_focus() || enter { + rule_editor.drafts.remove(&key); + if text != shown { + run(app, error, "config.row", json!({"name":name,"values":{column:cell_value(column,&text)}})); + } + } + }); + } + row.cell(|ui| { + if ui_kit::bin_button(ui, "Delete the row").clicked() { + run(app, error, "config.row", json!({"name":name,"delete":true})); + } + }); + }); + } + if rule_editor.adding_row { + let menu_was_open = egui::Popup::is_any_open(ui.ctx()); + let mut commit = false; + let mut discard = false; + let mut left = false; + let reveal = rule_editor.focus_new_row; + let response = ui + .push_id("configuration_draft", |ui| { + table.row(ui, "new", false, |row| { + row.cell(|ui| { + let id = ui.make_persistent_id("new_configuration"); + let focused = ui.memory(|m| m.has_focus(id) || m.had_focus_last_frame(id)); + let response = ui_kit::cell_editor(ui, id, new_row, "new configuration", false); + crate::scenario::publish_handle("config:new:name", response.rect.center()); + if rule_editor.focus_new_row { + response.request_focus(); + rule_editor.focus_new_row = false; + } + commit = focused && ui.input_mut(|i| i.consume_key(egui::Modifiers::NONE, egui::Key::Enter)); + left = response.lost_focus(); + }); + let source = tb.rows.iter().find(|(name, _)| tb.active.as_ref() == Some(name)); + for (index, column) in tb.columns.iter().enumerate() { + row.cell(|ui| { + let mut value = rule_editor.new_values.get(column).cloned().unwrap_or_else(|| { + source + .and_then(|(_, values)| values.get(index)) + .map(|value| display_cell(column_parts(column).0, value)) + .unwrap_or_default() + }); + let (kind, _) = column_parts(column); + let (response, choice) = value_control(ui, ui.id().with(column), &mut value, kind, &material_names); + let picked = choice.is_some(); + if let Some(choice) = choice { + value = choice; + } + crate::scenario::publish_handle(&format!("config:new:cell:{column}"), response.rect.center()); + let completed = crate::params_dialog::complete(ui, &response, &mut value); + if response.changed() || completed || picked { + rule_editor.new_values.insert(column.clone(), value); + } + let focused = response.has_focus() || response.lost_focus(); + left |= response.lost_focus(); + commit |= !completed && focused && ui.input_mut(|i| i.consume_key(egui::Modifiers::NONE, egui::Key::Enter)); + }); + } + row.cell(|ui| { + discard = ui_kit::bin_button(ui, "Delete the row").clicked(); + }); + }) + }) + .inner; + if reveal { + table.reveal_row(response.rect); + } + let abandoned = new_row.trim().is_empty() + && !menu_was_open + && ui.input(|i| i.pointer.any_click() && i.pointer.interact_pos().is_some_and(|p| !response.rect.contains(p))); + if discard || abandoned { + rule_editor.adding_row = false; + new_row.clear(); + rule_editor.new_values.clear(); + } else if commit || (left && !new_row.trim().is_empty()) { + let name = if new_row.trim().is_empty() { + (tb.rows.len() + 1..).map(|k| format!("Configuration{k}")).find(|n| !tb.rows.iter().any(|r| &r.0 == n)).unwrap_or_default() + } else { + new_row.trim().to_string() + }; + let values: serde_json::Map = + rule_editor.new_values.iter().map(|(col, text)| (col.clone(), cell_value(col, text))).collect(); + let mut params = json!({"name":name}); + if !values.is_empty() { + params["values"] = Value::Object(values); + } + if let Some(active) = &tb.active { + params["from"] = json!(active); + } + run(app, error, "config.row", params); + new_row.clear(); + rule_editor.adding_row = false; + rule_editor.new_values.clear(); + } + } + if table.add_prompt(ui, "Add configuration", "A new configuration, a copy of the active one").clicked() { + rule_editor.adding_row = true; + rule_editor.focus_new_row = true; + } + }); + configuration_rules_ui::show(ui, app, error, rule_editor); + if let Some(styles) = v["style_status"].as_array() { + for style in styles.iter().filter(|style| style["dormant"].as_bool() == Some(true)) { + ui_kit::text( + ui, + &format!("{}: appearance dormant while its feature is suppressed", style["target"].as_str().unwrap_or("Face")), + ui_kit::Text::Report("dormant", false), + ); + } + } + if let Some(message) = v["style_error"].as_str() { + ui_kit::text(ui, message, ui_kit::Text::Error("style_error")); + } + if let Some(message) = error { + ui_kit::text(ui, message, ui_kit::Text::Error("config_error")); + } + // Table cells and rule editors own Enter. As in the legacy wide manager, it + // commits an edited cell without also submitting the enclosing card. + ui.input_mut(|input| input.consume_key(egui::Modifiers::NONE, egui::Key::Enter)); +} + +fn column_menu(app: &mut SolveApp, ui: &mut egui::Ui, error: &mut Option, columns: &[String]) { + let run = |app: &mut SolveApp, error: &mut Option, id: &str, params: Value| { + *error = app.run(id, params).err(); + }; + // A column: a parameter's value or a feature's suppression. + let mut options: Vec<(String, Value)> = Vec::new(); + for p in app.session.doc.all_param_exprs() { + if !columns.contains(&format!("param:{}", p.0)) { + options.push((format!("{} (parameter)", p.0), json!({ "param": p.0 }))); + } + } + for f in &app.session.doc.features { + if !columns.contains(&format!("suppress:{}", f.name)) { + options.push((format!("Suppress {}", f.name), json!({ "feature": f.name }))); + } + } + for body in &app.session.model.state().bodies { + for kind in ["material", "appearance"] { + if !columns.contains(&format!("{kind}:{}", body.name)) { + options.push((format!("{} ({kind})", body.name), json!({kind: body.name}))); + } + } + } + for component in &app.session.doc.components { + if component.id != 0 && !columns.contains(&format!("component_appearance:{}", component.id)) { + options.push((format!("{} (component appearance)", component.name), json!({"component_appearance":component.id}))); + } + } + for selected in &app.session.selection { + if let solidcraft_engine::Sel::Face { body, point, .. } = selected { + options.push((format!("Selected face on {body} (shared appearance)"), json!({"face_appearance":{"body":body,"point":point}}))); + } + } + let mut pick: Option = None; + ui_kit::plus_header(ui, |ui| { + egui::ScrollArea::vertical().max_height(crate::theme::Tokens::get().space_24 * 12.0).show(ui, |ui| { + for (label, p) in &options { + if ui_kit::button(ui, label.as_str(), ui_kit::Button::Normal).clicked() { + pick = Some(p.clone()); + ui.close(); + } + } + ui_kit::action_menu(ui, "Face Appearance", |ui| { + ui_kit::text( + ui, + crate::i18n::tr_label("Semantic faces share their appearance across instances."), + ui_kit::Text::Note("semantic_faces"), + ); + let state = app.session.model.state(); + for body in &state.bodies { + if body.body.is_mesh() { + continue; + } + ui_kit::action_menu(ui, &format!("Faces on {}", body.name), |ui| { + if let Ok(faces) = body.body.faces((body.body.size() * 2e-3).max(1e-3)) { + let mut seen = std::collections::BTreeSet::new(); + let mesh = body.mesh(); + let mut points = std::collections::BTreeMap::new(); + for (triangle, index) in mesh.triangles.iter().zip(&mesh.tri_face) { + if let std::collections::btree_map::Entry::Vacant(entry) = points.entry(*index as usize) + && let Some([a, b, c]) = mesh.tri(triangle) + { + entry.insert((a + b + c) * (1. / 3.)); + } + } + for face in faces { + // A curved face centroid can lie on another surface. + // Pick an interior triangle point on this actual face. + let Some(point) = points.get(&face.index).copied() else { continue }; + let Ok(target) = app.session.doc.configuration_face_target(body, face.index, point) else { continue }; + let supported = if target.certificate.is_some() { + // Capture read this exact face's current source certificate. + // Enumerate its pieces once in the command, not per menu face. + app.session.doc.certify_config_face(&target).is_ok() + } else { + app.session.doc.configuration_face_indices(body, &target).is_ok() + }; + if !supported || !seen.insert(target.name.clone()) { + continue; + } + let Some((_, role)) = target.name.split_once(':') else { continue }; + if ui_kit::button(ui, role, ui_kit::Button::Normal).clicked() { + pick = Some(json!({"face_appearance":{"target":target}})); + ui.close(); + } + } + } + }); + } + }); + }); + }); + if let Some(p) = pick { + // The first column starts the table (with a Default row of the current values). + let (id, p) = if columns.is_empty() { + ( + "config.configure", + if let Some(n) = p.get("param") { + json!({ "params": [n] }) + } else if let Some(n) = p.get("feature") { + json!({ "features": [n] }) + } else if let Some(n) = p.get("material") { + json!({ "materials": [n] }) + } else if let Some(n) = p.get("component_appearance") { + json!({ "component_appearances": [n] }) + } else if let Some(n) = p.get("face_appearance") { + json!({ "face_appearances": [n] }) + } else { + json!({ "appearances": [p.get("appearance")] }) + }, + ) + } else { + ("config.column", p) + }; + run(app, error, id, p); + } +} + +fn display_cell(kind: &str, value: &str) -> String { + if (kind == "material" || matches!(kind, "appearance" | "component_appearance" | "face_appearance")) && value.eq_ignore_ascii_case("Default") { + return String::new(); + } + if matches!(kind, "appearance" | "component_appearance" | "face_appearance") { + solidcraft_engine::doc::config::appearance_cell(value) + .ok() + .flatten() + .filter(|look| solidcraft_engine::doc::appearance::library(&look.name).as_ref() == Some(look)) + .map(|look| look.name) + .unwrap_or_else(|| value.to_owned()) + } else { + value.to_owned() + } +} + +fn value_control(ui: &mut egui::Ui, id: egui::Id, text: &mut String, kind: &str, material_names: &[String]) -> (egui::Response, Option) { + let appearance = matches!(kind, "appearance" | "component_appearance" | "face_appearance"); + let mut choice = None; + let response = if kind == "material" || appearance { + let follow = if kind == "appearance" { + "Follow material" + } else if appearance { + "Follow inherited appearance" + } else { + "Default material" + }; + ui_kit::library_cell(ui, id, text, follow, |ui| { + if ui_kit::button(ui, crate::i18n::tr_label(follow), ui_kit::Button::Normal).clicked() { + choice = Some("Default".to_owned()); + ui.close(); + } + let choices: Vec<_> = if kind == "material" { + material_names.iter().filter(|n| *n != "Default").map(String::as_str).collect() + } else { + solidcraft_engine::doc::appearance::LIBRARY.iter().map(|(name, _, _)| *name).collect() + }; + for name in choices { + if ui_kit::button(ui, name, ui_kit::Button::Normal).clicked() { + choice = Some(name.to_owned()); + ui.close(); + } + } + }) + } else { + ui_kit::cell_editor(ui, id, text, "", false) + }; + (response, choice) +} diff --git a/crates/ui-egui/src/context_menu.rs b/crates/ui-egui/src/context_menu.rs index 9f0a6315e..da64bd183 100644 --- a/crates/ui-egui/src/context_menu.rs +++ b/crates/ui-egui/src/context_menu.rs @@ -11,14 +11,12 @@ //! state; [`items`] lists them and [`run_item`] runs one, so the control channel (`ui.menu`, //! `ui.menuPick`) and tests reach everything a click does. -use egui::{Align2, Color32, FontId, Pos2, Rect, Sense, Stroke, Vec2, pos2, vec2}; +use egui::{Color32, Pos2, Rect, Sense, Vec2, pos2, vec2}; use serde::Serialize; use serde_json::{Value, json}; use solidcraft_engine::Sel; -use crate::theme::Tokens; - -use crate::{SolveApp, icons}; +use crate::SolveApp; /// What a menu is about. #[derive(Clone, Debug, Default, PartialEq, Serialize, serde::Deserialize)] @@ -103,6 +101,10 @@ pub struct Item { pub icon: String, #[serde(skip_serializing_if = "Option::is_none")] pub params: Option, + #[serde(skip_serializing_if = "Vec::is_empty")] + pub children: Vec, + #[serde(skip_serializing_if = "Option::is_none")] + pub swatch: Option<[u8; 3]>, } impl Item { @@ -111,10 +113,28 @@ impl Item { act(id, label, icon) } pub fn sep() -> Item { - Item { id: "-".into(), label: String::new(), shortcut: String::new(), enabled: false, icon: String::new(), params: None } + Item { + id: "-".into(), + label: String::new(), + shortcut: String::new(), + enabled: false, + icon: String::new(), + params: None, + children: Vec::new(), + swatch: None, + } } fn heading(label: &str) -> Item { - Item { id: format!("#{label}"), label: label.into(), shortcut: String::new(), enabled: false, icon: String::new(), params: None } + Item { + id: format!("#{label}"), + label: label.into(), + shortcut: String::new(), + enabled: false, + icon: String::new(), + params: None, + children: Vec::new(), + swatch: None, + } } fn is_sep(&self) -> bool { self.id == "-" @@ -154,12 +174,23 @@ pub(crate) fn cmd(app: &SolveApp, id: &str, label: &str) -> Item { enabled: info.as_ref().is_some_and(|i| i.enabled), icon: info.map(|i| i.icon.to_string()).unwrap_or_default(), params: None, + children: Vec::new(), + swatch: None, } } /// A view action (`ui.*`). pub(crate) fn act(id: &str, label: &str, icon: &str) -> Item { - Item { id: id.into(), label: label.into(), shortcut: String::new(), enabled: true, icon: icon.into(), params: None } + Item { + id: id.into(), + label: label.into(), + shortcut: String::new(), + enabled: true, + icon: icon.into(), + params: None, + children: Vec::new(), + swatch: None, + } } /// Menu state kept between frames. The anchor is `app.viewport.context_menu`. @@ -168,6 +199,8 @@ pub struct MenuState { pub target: Target, /// The list row chosen with the arrow keys (Enter runs it). pub key_row: Option, + submenu: Option, + submenu_key: Option, /// The radial ring is shown (viewport menus). pub radial: bool, /// The right button is held through the menu: releasing over a direction picks it. @@ -214,8 +247,8 @@ pub struct Rename { /// Radial slots, clockwise from the top. const DIRS: usize = 8; /// Half axes of the ring of radial items. -const RX: f32 = 118.0; -const RY: f32 = 84.0; +const RX: f32 = crate::ui_kit::RADIAL_RADIUS; +const RY: f32 = crate::ui_kit::RADIAL_RADIUS; // --------------------------------------------------------------------------------------------- // What the menus offer @@ -265,32 +298,6 @@ fn body_feature(app: &SolveApp, body: &str) -> Option { app.session.world_state().body(body).map(|b| b.feature) } -/// The bodies a target stands for. -pub fn target_bodies(app: &SolveApp, target: &Target) -> Vec { - match target { - Target::Viewport => touched_bodies(app), - Target::Body { name } => vec![name.clone()], - Target::Component { id } => component_bodies(app, *id), - Target::Occurrence { path } => app.session.occurrence_bodies(path, true).unwrap_or_default(), - Target::Group { id, .. } => crate::browser::group_bodies(app, *id), - Target::Sketch { .. } - | Target::Feature { .. } - | Target::Plane { .. } - | Target::OriginPlane { .. } - | Target::Folder { .. } - | Target::Canvas { .. } - | Target::Origin - | Target::Units - | Target::Joint { .. } - | Target::ToolbarCommand { .. } - | Target::Toolbar - | Target::Workspace - | Target::NamedViews - | Target::NamedView { .. } - | Target::Section => Vec::new(), - } -} - /// Bodies in a component and its subcomponents. pub fn component_bodies(app: &SolveApp, id: u64) -> Vec { let doc = &app.session.doc; @@ -335,8 +342,8 @@ pub fn items(app: &SolveApp, target: &Target) -> Vec { Target::Body { name } => body_items(app, std::slice::from_ref(name), true), Target::Sketch { id } => sketch_items(app, *id), Target::Feature { id } => vec![ - act("ui.editFeature", "Edit Feature", "").with(json!({"feature":id})).on(app.session.doc.feature(*id).is_some()), - act("ui.findTimeline", "Find in Timeline", "").with(json!({"feature":id})).on(app.session.doc.feature(*id).is_some()), + act("ui.editFeature", "Edit Feature", "edit").with(json!({"feature":id})).on(app.session.doc.feature(*id).is_some()), + act("ui.findTimeline", "Find in Timeline", "rollback").with(json!({"feature":id})).on(app.session.doc.feature(*id).is_some()), ], Target::Plane { id } => plane_items(app, *id), Target::OriginPlane { name } => origin_plane_items(app, name), @@ -360,8 +367,8 @@ pub fn items(app: &SolveApp, target: &Target) -> Vec { .key(if rendering { "current" } else { "" }) .on(app.session.active_sketch.is_none() && app.tool.is_none() && app.dialog.is_none() && !app.file_load.busy()), ]; - for w in ["Animation", "Simulation", "Manufacture", "Drawing"] { - v.push(act("ui.workspace", w, "").key("coming later").on(false)); + for (w, icon) in [("Animation", "ws_animate"), ("Simulation", ""), ("Manufacture", ""), ("Drawing", "ws_drawing")] { + v.push(act("ui.workspace", w, icon).key("coming later").on(false)); } v } @@ -379,6 +386,43 @@ pub fn items(app: &SolveApp, target: &Target) -> Vec { v.push(Item::sep()); v.push(act("ui.groupSelected", "Group Selected", "folder").with(p)); } + for item in &mut v { + if item.id != "ui.appearance" { + continue; + } + let original = item.clone(); + let params = item.params.clone().unwrap_or_else(|| { + let faces: Vec<_> = app + .session + .selection + .iter() + .filter_map(|s| match s { + Sel::Face { body, point, .. } => Some(json!({"body":body,"point":[point.x, point.y, point.z]})), + _ => None, + }) + .collect(); + if faces.is_empty() { json!({"bodies": touched_bodies(app)}) } else { json!({"faces":faces}) } + }); + let targets = if let Some(component) = params.get("component").and_then(Value::as_u64).filter(|id| *id != 0) { + json!({"components": [component.to_string()]}) + } else { + params + }; + item.children.push(original); + if ["bodies", "components", "faces"].iter().any(|key| targets.get(key).and_then(Value::as_array).is_some_and(|v| !v.is_empty())) { + for look in crate::dialogs_appearance::builtin() { + let mut params = targets.clone(); + params["appearance"] = json!(look.name); + params["color"] = json!(crate::dialogs_appearance::hex(look.color)); + params["opacity"] = json!(look.opacity); + let mut child = cmd(app, "appearance.assign", &look.name).with(params); + child.swatch = Some(look.color); + item.children.push(child); + } + item.children.push(Item::sep()); + item.children.push(cmd(app, "appearance.assign", "Remove override").with(targets)); + } + } v } @@ -425,7 +469,7 @@ fn viewport_items(app: &SolveApp) -> Vec { } // Everything under the cursor, for what lies beneath something else. if app.menu.over_geometry { - v.push(act("ui.selectOther", "Select Other…", "").key("Hold click")); + v.push(act("ui.selectOther", "Select Other…", "select").key("Hold click")); v.push(Item::sep()); } if app.session.active_sketch.is_some() { @@ -457,7 +501,7 @@ fn viewport_items(app: &SolveApp) -> Vec { v.push(cmd(app, "solid.extrude", "Extrude")); v.push(cmd(app, "construct.plane.offset", "Offset Plane")); v.push(cmd(app, "solid.shell", "Shell")); - v.push(act("ui.editFeature", "Edit Feature", "").with(json!({ "feature": feature })).on(feature.is_some())); + v.push(act("ui.editFeature", "Edit Feature", "edit").with(json!({ "feature": feature })).on(feature.is_some())); v.push(act("ui.editSketch", "Edit Profile Sketch", "sketch").with(json!({ "sketch": sketch })).on(sketch.is_some())); v.push(Item::sep()); v.push(act("ui.appearance", "Appearance", "appearance").key("A")); @@ -467,8 +511,8 @@ fn viewport_items(app: &SolveApp) -> Vec { v.push(act("ui.delete", "Delete", "delete").key("Del")); v.push(act(if hidden { "ui.show" } else { "ui.hide" }, "Show/Hide", "eye").key("V").with(json!({ "bodies": [face] }))); v.push(Item::sep()); - v.push(act("ui.findBrowser", "Find in Browser", "").with(json!({ "body": face, "feature": feature })).on(feature.is_some())); - v.push(act("ui.findTimeline", "Find in Timeline", "").with(json!({ "feature": feature })).on(feature.is_some())); + v.push(act("ui.findBrowser", "Find in Browser", "list").with(json!({ "body": face, "feature": feature })).on(feature.is_some())); + v.push(act("ui.findTimeline", "Find in Timeline", "rollback").with(json!({ "feature": feature })).on(feature.is_some())); v.push(Item::sep()); v.push(cmd(app, "solid.press_pull", "Press Pull")); v.push(cmd(app, "inspect.measure", "Measure")); @@ -481,10 +525,10 @@ fn viewport_items(app: &SolveApp) -> Vec { v.push(act("ui.delete", "Delete", "delete").key("Del")); v.push(act(if hidden { "ui.show" } else { "ui.hide" }, "Show/Hide", "eye").key("V").with(json!({ "bodies": [body] }))); v.push(Item::sep()); - v.push(act("ui.findBrowser", "Find in Browser", "").with(json!({ "body": body }))); + v.push(act("ui.findBrowser", "Find in Browser", "list").with(json!({ "body": body }))); v.push(act("ui.saveMesh", "Save As Mesh", "export").with(json!({ "bodies": [body] }))); v.push(Item::sep()); - v.push(act("ui.tangentChain", "Select Tangent Chain", "")); + v.push(act("ui.tangentChain", "Select Tangent Chain", "chain")); v.push(cmd(app, "inspect.measure", "Measure")); } else if has(|s| matches!(s, Sel::Body { .. })) { v.extend(body_items(app, &sel_bodies(app), false)); @@ -507,7 +551,7 @@ fn viewport_items(app: &SolveApp) -> Vec { || !app.session.visibility.hidden_sketches.is_empty() || !app.session.visibility.hidden_folders.is_empty(); v.push(act("ui.showAll", "Show All", "eye").on(anything_hidden)); - v.push(act("ui.showAll", "Unisolate", "").on(!app.session.visibility.hidden_bodies.is_empty())); + v.push(act("ui.showAll", "Unisolate", "eye").on(!app.session.visibility.hidden_bodies.is_empty())); v.push(Item::sep()); v.push(cmd(app, "solid.extrude", "Extrude")); v.push(cmd(app, "solid.fillet", "Fillet")); @@ -528,7 +572,7 @@ fn viewport_items(app: &SolveApp) -> Vec { v.push(cmd(app, "parts.resize", "Change Part Size").with(json!({"component":component}))); } v.push(Item::sep()); - v.push(act("ui.clear", "Clear Selection", "").key("Esc")); + v.push(act("ui.clear", "Clear Selection", "close").key("Esc")); } v } @@ -543,7 +587,7 @@ fn body_items(app: &SolveApp, bodies: &[String], browser: bool) -> Vec { act("ui.moveBodies", "Move/Copy", "move").key("M").with(json!({ "bodies": names })).on(!locked), cmd(app, "component.from_bodies", "Create Components from Bodies").with(json!({ "bodies": names })), Item::sep(), - act("ui.material", "Physical Material", "").with(json!({ "bodies": names })), + act("ui.material", "Physical Material", "material").with(json!({ "bodies": names })), act("ui.appearance", "Appearance", "appearance").key("A").with(json!({ "bodies": names })), act("ui.properties", "Properties", "measure").with(json!({ "bodies": names })), Item::sep(), @@ -552,11 +596,11 @@ fn body_items(app: &SolveApp, bodies: &[String], browser: bool) -> Vec { Item::sep(), act("ui.delete", "Delete", "delete").key("Del").with(json!({ "items": items })).on(!locked), cmd(app, "solid.remove", "Remove").with(json!({ "bodies": names })).on(!locked), - act("ui.rename", "Rename", "").with(json!({ "body": bodies.first() })).on(one), + act("ui.rename", "Rename", "rename").with(json!({ "body": bodies.first() })).on(one), Item::sep(), act(if all_hidden { "ui.show" } else { "ui.hide" }, "Show/Hide", "eye").key("V").with(json!({ "bodies": names })), - act("ui.lock", if locked { "Unlock" } else { "Lock" }, "").with(json!({ "bodies": names })), - act("ui.isolate", "Isolate", "").with(json!({ "bodies": names })), + act("ui.lock", if locked { "Unlock" } else { "Lock" }, "ground").with(json!({ "bodies": names })), + act("ui.isolate", "Isolate", "body").with(json!({ "bodies": names })), ]; if one { let b = bodies.first().cloned().unwrap_or_default(); @@ -565,9 +609,9 @@ fn body_items(app: &SolveApp, bodies: &[String], browser: bool) -> Vec { } v.push(Item::sep()); if !browser { - v.push(act("ui.findBrowser", "Find in Browser", "").with(json!({ "body": b }))); + v.push(act("ui.findBrowser", "Find in Browser", "list").with(json!({ "body": b }))); } - v.push(act("ui.findTimeline", "Find in Timeline", "").with(json!({ "body": b }))); + v.push(act("ui.findTimeline", "Find in Timeline", "rollback").with(json!({ "body": b }))); } v } @@ -586,14 +630,14 @@ fn sketch_items(app: &SolveApp, id: u64) -> Vec { act("ui.exportDxf", "Export DXF…", "export").with(json!({ "sketch": id })), Item::sep(), act("ui.delete", "Delete", "delete").key("Del").with(json!({ "items": [{"type": "feature", "id": id}] })), - act("ui.rename", "Rename", "").with(json!({ "feature": id })), + act("ui.rename", "Rename", "rename").with(json!({ "feature": id })), Item::sep(), - act("ui.lookAt", "Look At", "").with(json!({ "sketch": id })), - act("ui.sketchProfile", if profiles { "Hide Profile" } else { "Show Profile" }, "").with(json!({ "sketch": id })), + act("ui.lookAt", "Look At", "lookat").with(json!({ "sketch": id })), + act("ui.sketchProfile", if profiles { "Hide Profile" } else { "Show Profile" }, "sketch").with(json!({ "sketch": id })), act("ui.sketchDims", if dims { "Hide Dimension" } else { "Show Dimension" }, "dimension").with(json!({ "sketch": id })), act(if visible { "ui.hideSketch" } else { "ui.showSketch" }, "Show/Hide", "eye").key("V").with(json!({ "sketch": id })), Item::sep(), - act("ui.findTimeline", "Find in Timeline", "").with(json!({ "feature": id })), + act("ui.findTimeline", "Find in Timeline", "rollback").with(json!({ "feature": id })), ] } @@ -607,11 +651,11 @@ fn plane_items(app: &SolveApp, id: u64) -> Vec { act("ui.editFeature", "Edit Feature", "plane").with(json!({ "feature": id })), Item::sep(), act("ui.delete", "Delete", "delete").key("Del").with(json!({ "items": [{"type": "feature", "id": id}] })), - act("ui.rename", "Rename", "").with(json!({ "feature": id })), + act("ui.rename", "Rename", "rename").with(json!({ "feature": id })), Item::sep(), act("ui.originPart", "Show/Hide", "eye").key("V").with(json!({ "keys": [f.name], "show": !visible })), Item::sep(), - act("ui.findTimeline", "Find in Timeline", "").with(json!({ "feature": id })), + act("ui.findTimeline", "Find in Timeline", "rollback").with(json!({ "feature": id })), ] } @@ -637,14 +681,14 @@ fn joint_items(app: &SolveApp, id: u64) -> Vec { let hidden = !joints.iter().any(|j| app.session.joint_visible(*j)); vec![ act("ui.editJoint", "Edit Joint", "joint").with(json!({ "joint": id })), - act("ui.editJoint", "Edit Joint Limits", "").with(json!({ "joint": id })).on(!rigid), - act("ui.driveJoint", "Drive Joint", "").with(json!({ "joint": id })).on(!rigid), - act("ui.animateJoint", "Animate Joint", "").with(json!({ "joint": id })).on(!rigid && !j.suppressed), - act("ui.findJoint", "Find in Window", "").with(json!({ "joint": id })), + act("ui.editJoint", "Edit Joint Limits", "joint").with(json!({ "joint": id })).on(!rigid), + act("ui.driveJoint", "Drive Joint", "drive").with(json!({ "joint": id })).on(!rigid), + act("ui.animateJoint", "Animate Joint", "play").with(json!({ "joint": id })).on(!rigid && !j.suppressed), + act("ui.findJoint", "Find in Window", "fit").with(json!({ "joint": id })), cmd(app, "joint.edit", if j.suppressed { "Unsuppress" } else { "Suppress" }).with(json!({ "joint": id, "suppressed": !j.suppressed })), Item::sep(), act("ui.delete", "Delete", "delete").key("Del").with(json!({ "joints": [id] })), - act("ui.rename", "Rename", "").with(json!({ "joint": id })), + act("ui.rename", "Rename", "rename").with(json!({ "joint": id })), Item::sep(), // Hiding a joint hides only its glyph: it still constrains and moves the parts. act("browser.visibility", "Show/Hide", "eye").key("V").with(json!({ "joints": joints, "visible": hidden })), @@ -733,12 +777,12 @@ fn component_items(app: &SolveApp, id: u64) -> Vec { } v.push(cmd(app, "component.create", "New Component").with(json!({ "parent": id }))); if id == 0 { - v.push(act("ui.copyDesign", "Copy", "").key("Ctrl+C")); - v.push(act("ui.paste", "Paste", "").key("Ctrl+V").on(crate::edit_clipboard::can_paste(app))); + v.push(act("ui.copyDesign", "Copy", "copy").key("Ctrl+C")); + v.push(act("ui.paste", "Paste", "paste").key("Ctrl+V").on(crate::edit_clipboard::can_paste(app))); v.push(cmd(app, "component.from_bodies", "Create Components from Bodies").with(json!({ "bodies": names })).on(!bodies.is_empty())); } v.push(Item::sep()); - v.push(act("ui.material", "Physical Material", "").with(json!({ "bodies": names })).on(!bodies.is_empty())); + v.push(act("ui.material", "Physical Material", "material").with(json!({ "bodies": names })).on(!bodies.is_empty())); v.push( act("ui.appearance", "Appearance", "appearance") .key("A") @@ -761,11 +805,11 @@ fn component_items(app: &SolveApp, id: u64) -> Vec { v.push(cmd(app, "component.paste_new", "Paste New").with(json!({ "component": id, "translate": [10, 10, 0] }))); v.push(act("ui.delete", "Delete", "delete").key("Del").with(json!({ "occurrences": [occ.map(|o| o.id)] })).on(occ.is_some())); } - v.push(act("ui.rename", "Rename", "").with(json!({ "component": id }))); + v.push(act("ui.rename", "Rename", "rename").with(json!({ "component": id }))); v.push(Item::sep()); v.push(act(if hidden { "ui.show" } else { "ui.hide" }, "Show/Hide", "eye").key("V").with(json!({ "bodies": names })).on(!bodies.is_empty())); v.push(act("ui.showAll", "Show All Bodies", "eye")); - v.push(act("ui.isolate", "Isolate", "").with(json!({ "bodies": names })).on(!bodies.is_empty() && id != 0)); + v.push(act("ui.isolate", "Isolate", "body").with(json!({ "bodies": names })).on(!bodies.is_empty() && id != 0)); v.push(act("ui.newGroup", "New Group", "folder").with(json!({ "component": id }))); v } @@ -819,7 +863,7 @@ fn sketch_entity_items(app: &SolveApp) -> Vec { v.push(cmd(app, "sketch.circle.center", "Circle")); v.push(cmd(app, "sketch.dimension", "Sketch Dimension")); v.push(Item::sep()); - v.push(act("ui.paste", "Paste", "").key("Ctrl+V").on(app.session.sketch_clipboard.is_some())); + v.push(act("ui.paste", "Paste", "paste").key("Ctrl+V").on(app.session.sketch_clipboard.is_some())); return v; } let ents: Vec = curves.iter().chain(points.iter()).cloned().collect(); @@ -835,9 +879,9 @@ fn sketch_entity_items(app: &SolveApp) -> Vec { v.extend(explode_text(app)); } v.push(cmd(app, "sketch.move", "Move/Copy").key("M")); - v.push(act("ui.cut", "Cut", "").key("Ctrl+X")); - v.push(act("ui.copy", "Copy", "").key("Ctrl+C")); - v.push(act("ui.paste", "Paste", "").key("Ctrl+V").on(app.session.sketch_clipboard.is_some())); + v.push(act("ui.cut", "Cut", "cut").key("Ctrl+X")); + v.push(act("ui.copy", "Copy", "copy").key("Ctrl+C")); + v.push(act("ui.paste", "Paste", "paste").key("Ctrl+V").on(app.session.sketch_clipboard.is_some())); if !curves.is_empty() { v.push(cmd(app, "sketch.construction", "Normal / Construction").with(json!({ "curves": curves }))); } @@ -1446,6 +1490,8 @@ pub fn open(app: &mut SolveApp, at: Pos2) { /// Open a menu for a target (the radial ring only for the viewport). pub fn open_for(app: &mut SolveApp, at: Pos2, target: Target) { app.menu.key_row = None; + app.menu.submenu = None; + app.menu.submenu_key = None; app.menu.radial = target == Target::Viewport && app.preferences.radial_context_menu; app.menu.target = target; app.menu.flick = false; @@ -1482,12 +1528,23 @@ pub fn describe(app: &SolveApp) -> Value { return json!({ "open": false, "pending": app.menu.pending.is_some() }); }; let radial = if app.menu.radial { radial_items(app) } else { Vec::new() }; + let describe_items = |items: Vec| { + items + .into_iter() + .map(|item| { + let placeholder = !item.icon.is_empty() && crate::icon_svg::resolve(&item.icon).placeholder; + let mut value = json!(item); + value["placeholder"] = json!(placeholder); + value + }) + .collect::>() + }; json!({ "open": true, "at": [at.x, at.y], "target": app.menu.target, - "radial": radial, - "items": items(app, &app.menu.target), + "radial": describe_items(radial), + "items": describe_items(items(app, &app.menu.target)), "rename": app.menu.rename.as_ref().map(|r| r.text.clone()), }) } @@ -1497,7 +1554,9 @@ pub fn pick(app: &mut SolveApp, key: &str) -> Result { let Some(at) = app.viewport.context_menu else { return Err("no menu is open".into()) }; let target = app.menu.target.clone(); let mut all = if app.menu.radial { radial_items(app) } else { Vec::new() }; - all.extend(items(app, &target)); + let roots = items(app, &target); + all.extend(roots.iter().cloned()); + all.extend(roots.into_iter().flat_map(|item| item.children)); let item = all.into_iter().find(|i| !i.is_sep() && !i.is_heading() && (i.id == key || i.label == key)).ok_or_else(|| format!("no menu item `{key}`"))?; if !item.enabled { @@ -1510,8 +1569,8 @@ pub fn pick(app: &mut SolveApp, key: &str) -> Result { /// Where the radial menu goes so its ring stays on screen. fn radial_center(at: Pos2, screen: Rect) -> Pos2 { - let mx = RX + 165.0; - let my = RY + 34.0; + let mx = RX + 4.0; + let my = RY + 4.0; let x = if screen.width() > 2.0 * mx { at.x.clamp(screen.left() + mx, screen.right() - mx) } else { screen.center().x }; let y = if screen.height() > 2.0 * my { at.y.clamp(screen.top() + my, screen.bottom() - my) } else { screen.center().y }; pos2(x, y) @@ -1519,15 +1578,15 @@ fn radial_center(at: Pos2, screen: Rect) -> Pos2 { /// Height of a list of items as [`list_row`] draws them in [`menu_frame`] (margins and border). fn list_height(items: &[Item]) -> f32 { - 10.0 + items + 14.0 + items .iter() .map(|i| { if i.is_sep() { - 7.0 + 11.0 } else if i.is_heading() { - 20.0 - } else { 24.0 + } else { + 30.0 } }) .sum::() @@ -1536,16 +1595,16 @@ fn list_height(items: &[Item]) -> f32 { /// Where the list goes next to a ring centred at `c`: below it when it fits, otherwise beside /// it (right, else left), kept on screen. fn list_place(c: Pos2, h: f32, screen: Rect) -> Pos2 { - let below = c.y + RY + 26.0; + let below = c.y + RY + 12.0; if below + h <= screen.bottom() - 4.0 { return pos2((c.x - LIST_W / 2.0).clamp(screen.left() + 4.0, (screen.right() - LIST_W - 4.0).max(screen.left())), below); } let y = (c.y - h / 2.0).clamp(screen.top() + 4.0, (screen.bottom() - h - 4.0).max(screen.top())); - let right = c.x + RX + 170.0; + let right = c.x + RX + 12.0; if right + LIST_W <= screen.right() - 4.0 { return pos2(right, y); } - pos2((c.x - RX - 170.0 - LIST_W).max(screen.left() + 4.0), y) + pos2((c.x - RX - 12.0 - LIST_W).max(screen.left() + 4.0), y) } /// Width of list menus. @@ -1579,28 +1638,6 @@ fn sector(d: Vec2) -> Option { Some((k.rem_euclid(DIRS as i64)) as usize) } -/// The rectangle of radial slot `k` with a label of `size`. -fn slot_rect(c: Pos2, k: usize, size: Vec2) -> Rect { - let a = (k as f32 * 45.0).to_radians(); - let p = c + vec2(a.sin() * RX, -a.cos() * RY); - let (sx, sy) = (a.sin(), -a.cos()); - let ax = if sx > 0.3 { - 0.0 - } else if sx < -0.3 { - 1.0 - } else { - 0.5 - }; - let ay = if sy > 0.9 { - 0.0 - } else if sy < -0.9 { - 1.0 - } else { - 0.5 - }; - Rect::from_min_size(p - vec2(size.x * ax, size.y * ay), size) -} - /// Press-and-hold of the right button in the viewport opens the menu; releasing over a /// direction picks it. fn track_hold(app: &mut SolveApp, ctx: &egui::Context) { @@ -1662,9 +1699,8 @@ pub fn show(app: &mut SolveApp, ctx: &egui::Context) { crate::browser::dims_overlay(app, ctx); track_hold(app, ctx); show_rename(app, ctx); - show_props(app, ctx); + crate::design_properties::show_object(app, ctx); let Some(at) = app.viewport.context_menu else { return }; - let t = Tokens::get(); let screen = ctx.content_rect(); let target = app.menu.target.clone(); let list = items(app, &target); @@ -1672,46 +1708,17 @@ pub fn show(app: &mut SolveApp, ctx: &egui::Context) { let pointer = ctx.input(|i| i.pointer.latest_pos()); let mut inside = app.menu.opener.is_some_and(|r| pointer.is_some_and(|p| r.contains(p))); - let list_at = if app.menu.radial { + let list_at = if target == Target::Workspace { + pos2(at.x.clamp(screen.left(), (screen.right() - 470.0).max(screen.left())), at.y) + } else if app.menu.radial { let c = radial_center(at, screen); let radial = radial_items(app); - let area = Rect::from_center_size(c, vec2(2.0 * (RX + 165.0), 2.0 * (RY + 34.0))); + let area = Rect::from_center_size(c, vec2(2.0 * (RX + 4.0), 2.0 * (RY + 4.0))); inside |= pointer.is_some_and(|p| area.contains(p)); let hot = pointer.and_then(|p| sector(p - c)); let resp = crate::frame::area(egui::Id::new("sc_marking_menu")).fixed_pos(area.min).order(egui::Order::Foreground).show(ctx, |ui| { - let (r, _) = ui.allocate_exact_size(area.size(), Sense::hover()); - let painter = ui.painter_at(r.expand(4.0)); - let font = FontId::proportional(13.0); - // Centre: a ring with a pointer toward the hot direction. - let direction = hot.zip(pointer).map(|(k, p)| ((p - c).normalized(), radial.get(k).is_some_and(|i| i.enabled))); - crate::icons::glyphs::radial_centre(&painter, c, direction, t); - for (k, item) in radial.iter().enumerate() { - let display_label = crate::i18n::tr_label(&item.label); - let galley = painter.layout_no_wrap(display_label.to_string(), font.clone(), if item.enabled { t.text } else { t.text_dim }); - let size = vec2(galley.size().x + 40.0, 28.0); - let rr = slot_rect(c, k, size); - let resp = ui.interact(rr, ui.id().with(("radial", k)), Sense::click()); - let lit = item.enabled && (resp.hovered() || hot == Some(k)); - painter.rect( - rr, - 14.0, - if lit { t.accent_soft } else { t.panel }, - Stroke::new(1.0, if lit { t.accent } else { t.border }), - egui::StrokeKind::Inside, - ); - let ir = Rect::from_center_size(pos2(rr.left() + 16.0, rr.center().y), vec2(16.0, 16.0)); - let ink = if item.enabled { t.icon } else { t.border }; - if !item.icon.is_empty() { - icons::paint(&painter, ir, &item.icon, ink, t.icon_fill, t.accent); - } - painter.galley(pos2(rr.left() + 30.0, rr.center().y - galley.size().y / 2.0), galley, t.text); - if resp.clicked() && item.enabled { - picked = Some(item.clone()); - } - if item.enabled { - resp.on_hover_text(crate::i18n::tr_label(&item.shortcut).to_string()); - } - } + let _ = ui.allocate_exact_size(area.size(), Sense::hover()); + picked = crate::ui_kit::radial_menu(ui, c, &radial, hot).or(picked.take()); }); inside |= resp.response.contains_pointer(); list_place(c, list_height(&list), screen) @@ -1719,34 +1726,90 @@ pub fn show(app: &mut SolveApp, ctx: &egui::Context) { place(at, Vec2::ZERO, vec2(LIST_W, list_height(&list)), screen) }; - // Up/Down choose a row of the list, Enter runs it. - let (up, down, enter) = ctx.input(|i| (i.key_pressed(egui::Key::ArrowUp), i.key_pressed(egui::Key::ArrowDown), i.key_pressed(egui::Key::Enter))); - let usable: Vec = list.iter().enumerate().filter(|(_, i)| i.enabled && !i.is_sep() && !i.is_heading()).map(|(k, _)| k).collect(); - if up || down { - let at = app.menu.key_row.and_then(|r| usable.iter().position(|u| *u == r)); - let next = match (at, down) { - (None, true) => Some(0), - (None, false) => usable.len().checked_sub(1), - (Some(k), true) => Some((k + 1) % usable.len().max(1)), - (Some(k), false) => Some((k + usable.len().max(1) - 1) % usable.len().max(1)), - }; - app.menu.key_row = next.and_then(|k| usable.get(k).copied()); - } - if enter && let Some(item) = app.menu.key_row.and_then(|r| list.get(r)) { - picked = Some(item.clone()); + let had_submenu = app.menu.submenu.is_some(); + let enabled: Vec<_> = list.iter().map(|i| i.enabled && !i.is_sep() && !i.is_heading()).collect(); + if app.menu.submenu.is_none() { + let enter = crate::ui_kit::Menu::navigate(ctx, &enabled, &mut app.menu.key_row); + let right = ctx.input(|i| i.key_pressed(egui::Key::ArrowRight)); + if let Some(k) = app.menu.key_row + && let Some(item) = list.get(k) + { + if (right || enter) && !item.children.is_empty() { + app.menu.submenu = Some(k); + app.menu.submenu_key = item.children.iter().position(|c| c.enabled); + } else if enter { + picked = Some(item.clone()); + } + } + } else if ctx.input(|i| i.key_pressed(egui::Key::ArrowLeft)) { + app.menu.submenu = None; + app.menu.submenu_key = None; } + let mut submenu_row = None; let key_row = app.menu.key_row; let resp = crate::frame::area(egui::Id::new("sc_context_menu")).fixed_pos(list_at).constrain(true).order(egui::Order::Foreground).show(ctx, |ui| { - menu_frame(ui, |ui| { - for (k, item) in list.iter().enumerate() { - if let Some(p) = list_row_lit(ui, item, key_row == Some(k)) { - picked = Some(p); + if target == Target::Workspace { + picked = crate::ui_kit::workspace_menu(ui, &list, key_row, (screen.bottom() - list_at.y).max(160.0)).or(picked.take()); + } else { + menu_frame(ui, |ui| { + for (k, item) in list.iter().enumerate() { + if item.children.is_empty() { + if let Some(p) = list_row_lit(ui, item, key_row == Some(k)) { + picked = Some(p); + } + } else { + let row = kit_item(item, key_row == Some(k) || app.menu.submenu == Some(k)).show(ui); + if item.enabled && ((row.hovered() && ctx.input(|i| i.pointer.delta() != Vec2::ZERO)) || row.clicked()) { + if app.menu.submenu != Some(k) { + app.menu.submenu_key = None; + } + app.menu.submenu = Some(k); + } + if app.menu.submenu == Some(k) { + submenu_row = Some((k, row.rect)); + } + } + } + }); + } + }); + inside |= resp.response.contains_pointer() || resp.response.rect.contains(pointer.unwrap_or(Pos2::ZERO)); + + if let Some((k, row)) = submenu_row + && let Some(parent) = list.get(k) + { + let enabled: Vec<_> = parent.children.iter().map(|i| i.enabled && !i.is_sep() && !i.is_heading()).collect(); + if had_submenu + && crate::ui_kit::Menu::navigate(ctx, &enabled, &mut app.menu.submenu_key) + && let Some(child) = app.menu.submenu_key.and_then(|r| parent.children.get(r)) + { + picked = Some(child.clone()); + } + let sub = crate::ui_kit::Menu::submenu(ctx, egui::Id::new("sc_context_submenu"), row, list_height(&parent.children), |ui| { + egui::ScrollArea::vertical().max_height((screen.height() - 28.0).max(30.0)).show(ui, |ui| { + for (n, child) in parent.children.iter().enumerate() { + if child.is_sep() { + crate::ui_kit::Menu::separator(ui); + continue; + } + if child.is_heading() { + crate::ui_kit::Menu::heading(ui, &child.label); + continue; + } + // Child commands may share an id (swatches); preserve the parent handle + // and publish a distinct identity for every adjacent submenu action. + let handle = format!("{}:{}", child.id, child.label); + let mut row = kit_item(child, app.menu.submenu_key == Some(n)); + row.id = &handle; + if row.show(ui).clicked() && child.enabled { + picked = Some(child.clone()); } } }); }); - inside |= resp.response.contains_pointer() || resp.response.rect.contains(pointer.unwrap_or(Pos2::ZERO)); + inside |= sub.response.contains_pointer() || pointer.is_some_and(|p| sub.response.rect.contains(p)); + } let (primary, secondary, esc) = ctx.input(|i| { ( @@ -1767,72 +1830,51 @@ pub fn show(app: &mut SolveApp, ctx: &egui::Context) { } } -/// The frame every menu uses. +/// Shared kit surface; legacy callers retain their menu positioning and dispatch. pub fn menu_frame(ui: &mut egui::Ui, add: impl FnOnce(&mut egui::Ui) -> R) -> R { - let t = Tokens::get(); - egui::Frame::new() - .fill(t.panel) - .stroke(Stroke::new(1.0, t.border)) - .corner_radius(6.0) - .inner_margin(egui::Margin::symmetric(4, 4)) - .shadow(egui::Shadow { - offset: [0, 3], - blur: 12, - spread: 0, - color: Color32::from_black_alpha(if crate::theme::is_dark() { 110 } else { 50 }), - }) - .show(ui, |ui| { - ui.set_width(LIST_W - 10.0); - ui.spacing_mut().item_spacing.y = 0.0; - add(ui) - }) - .inner + crate::ui_kit::Menu::show(ui, LIST_W, add) +} + +pub fn button(ui: &mut egui::Ui, label: &str, icon: &str) -> egui::Response { + button_enabled(ui, label, icon, true) +} + +pub fn button_enabled(ui: &mut egui::Ui, label: &str, icon: &str, enabled: bool) -> egui::Response { + let mut item = crate::ui_kit::MenuItem::new(label, label, icon); + item.enabled = enabled; + item.show(ui) } -/// One list row; the item when it was clicked. pub fn list_row(ui: &mut egui::Ui, item: &Item) -> Option { list_row_lit(ui, item, false) } -/// A list row, drawn highlighted when `lit` (the keyboard's choice). pub fn list_row_lit(ui: &mut egui::Ui, item: &Item, lit: bool) -> Option { - let t = Tokens::get(); - let w = LIST_W - 10.0; if item.is_sep() { - let (r, _) = ui.allocate_exact_size(vec2(w, 7.0), Sense::hover()); - ui.painter().hline(r.x_range().shrink(6.0), r.center().y, Stroke::new(1.0, t.border)); + crate::ui_kit::Menu::separator(ui); return None; } if item.is_heading() { - let text = ui.painter().layout(crate::i18n::tr_label(&item.label).to_uppercase(), FontId::proportional(10.5), t.text_dim, w - 16.0); - let (r, _) = ui.allocate_exact_size(vec2(w, (text.size().y + 8.0).max(20.0)), Sense::hover()); - ui.painter().galley(pos2(r.left() + 8.0, r.top() + 4.0), text, t.text_dim); + crate::ui_kit::Menu::heading(ui, &item.label); return None; } - let (r, resp) = ui.allocate_exact_size(vec2(w, 24.0), if item.enabled { Sense::click() } else { Sense::hover() }); - crate::scenario::publish_handle(&format!("menu:{}", item.id), r.center()); - if item.enabled && (resp.hovered() || lit) { - ui.painter().rect_filled(r.shrink2(vec2(2.0, 1.0)), 4.0, t.hover); + let row = kit_item(item, lit); + (row.show(ui).clicked() && item.enabled).then(|| item.clone()) +} + +fn kit_item(item: &Item, lit: bool) -> crate::ui_kit::MenuItem<'_> { + crate::ui_kit::MenuItem { + id: &item.id, + label: &item.label, + icon: &item.icon, + shortcut: if item.shortcut == "current" { "" } else { &item.shortcut }, + enabled: item.enabled, + highlighted: lit, + danger: item.icon == "delete", + checked: (item.shortcut == "current").then_some(true), + swatch: item.swatch.map(|c| Color32::from_rgb(c[0], c[1], c[2])), + submenu: !item.children.is_empty(), } - let ink = if item.enabled { t.icon } else { t.border }; - if !item.icon.is_empty() { - icons::paint( - ui.painter(), - Rect::from_center_size(pos2(r.left() + 16.0, r.center().y), vec2(16.0, 16.0)), - &item.icon, - ink, - t.icon_fill, - t.accent, - ); - } - let text = if item.enabled { t.text } else { t.text_dim.gamma_multiply(0.75) }; - let display_label = crate::i18n::tr_label(&item.label); - ui.painter().text(pos2(r.left() + 32.0, r.center().y), Align2::LEFT_CENTER, display_label, FontId::proportional(13.0), text); - if !item.shortcut.is_empty() { - let display_shortcut = crate::i18n::tr_label(&item.shortcut); - ui.painter().text(pos2(r.right() - 10.0, r.center().y), Align2::RIGHT_CENTER, display_shortcut, FontId::proportional(11.5), t.text_dim); - } - (item.enabled && resp.clicked()).then(|| item.clone()) } fn show_rename(app: &mut SolveApp, ctx: &egui::Context) { @@ -1842,31 +1884,9 @@ fn show_rename(app: &mut SolveApp, ctx: &egui::Context) { return; } let Some(mut r) = app.menu.rename.take() else { return }; - let t = Tokens::get(); let mut done: Option = None; let resp = crate::frame::area(egui::Id::new("sc_rename")).fixed_pos(r.at).constrain(true).order(egui::Order::Foreground).show(ctx, |ui| { - menu_frame(ui, |ui| { - ui.add_space(2.0); - ui.label(egui::RichText::new(crate::i18n::tr_label("Rename")).size(11.0).color(t.text_dim)); - let te = ui.add(egui::TextEdit::singleline(&mut r.text).desired_width(200.0).id(egui::Id::new("sc_rename_text"))); - if !r.focused { - // Start with the whole name selected, ready to type over. - let id = egui::Id::new("sc_rename_text"); - if let Some(mut st) = egui::TextEdit::load_state(ui.ctx(), id) { - let n = r.text.chars().count(); - st.cursor.set_char_range(Some(egui::text::CCursorRange::two(egui::text::CCursor::new(0), egui::text::CCursor::new(n)))); - st.store(ui.ctx(), id); - } - te.request_focus(); - r.focused = true; - } - if te.lost_focus() { - done = Some(ui.input(|i| i.key_pressed(egui::Key::Enter))); - } - if ui.input(|i| i.key_pressed(egui::Key::Escape)) { - done = Some(false); - } - }) + done = crate::ui_kit::rename_menu(ui, &mut r.text, &mut r.focused); }); if ctx.input(|i| i.pointer.any_pressed()) && !resp.response.contains_pointer() && r.focused { done = Some(true); @@ -1890,66 +1910,6 @@ pub fn finish_rename(app: &mut SolveApp, text: Option<&str>, commit: bool) -> bo true } -fn show_props(app: &mut SolveApp, ctx: &egui::Context) { - let Some((title, v)) = app.menu.props.clone() else { return }; - let mut open = true; - let f = |x: &Value, k: &str| x.get(k).and_then(Value::as_f64).unwrap_or(f64::NAN); - crate::frame::window(ctx, format!("Properties: {title}"), crate::frame::Width::Normal) - .id(egui::Id::new("sc_props")) - .open(&mut open) - .resizable(false) - .collapsible(false) - .show(ctx, |ui| { - egui::Grid::new("sc_props_grid").num_columns(2).spacing([16.0, 4.0]).show(ui, |ui| { - let total = &v["total"]; - let bodies = v["bodies"].as_array().cloned().unwrap_or_default(); - if let [b] = bodies.as_slice() { - ui.label(crate::i18n::tr_label("Material")); - ui.label(b["material"].as_str().unwrap_or("Default")); - ui.end_row(); - ui.label(crate::i18n::tr_label("Density")); - ui.label(format!("{:.3} g/cm³", f(b, "density_g_cm3"))); - ui.end_row(); - } - ui.label(crate::i18n::tr_label("Mass")); - ui.label(format!("{:.3} g", f(total, "mass_g"))); - ui.end_row(); - ui.label(crate::i18n::tr_label("Volume")); - ui.label(crate::prefs::show_mm(app, f(total, "volume_mm3"), 3)); - ui.end_row(); - ui.label(crate::i18n::tr_label("Area")); - ui.label(crate::prefs::show_mm(app, f(total, "area_mm2"), 2)); - ui.end_row(); - let geometry = if total.get("center_of_mass").is_some() { Some(total) } else { bodies.first().filter(|_| bodies.len() == 1) }; - if let Some(b) = geometry { - if let Some(c) = b["center_of_mass"].as_array() { - let c: Vec = c.iter().map(|x| crate::prefs::show_mm_bare(app, x.as_f64().unwrap_or(f64::NAN))).collect(); - ui.label(crate::i18n::tr_label("Center of mass")); - ui.label(format!("({}) {}", c.join(", "), crate::prefs::unit_scale(&app.session.doc.units).1)); - ui.end_row(); - } - let (mn, mx) = (&b["bbox"]["min"], &b["bbox"]["max"]); - if let (Some(a), Some(z)) = (mn.as_array(), mx.as_array()) { - let d: Vec = a - .iter() - .zip(z) - .map(|(a, z)| crate::prefs::show_mm_bare(app, z.as_f64().unwrap_or(0.0) - a.as_f64().unwrap_or(0.0))) - .collect(); - ui.label(crate::i18n::tr_label("Bounding box")); - ui.label(format!("{} {}", d.join(" × "), crate::prefs::unit_scale(&app.session.doc.units).1)); - ui.end_row(); - } - } - ui.label(crate::i18n::tr_label("Faces / edges / vertices")); - ui.label(format!("{} / {} / {}", total["faces"], total["edges"], total["vertices"])); - ui.end_row(); - }); - }); - if !open { - app.menu.props = None; - } -} - #[cfg(test)] mod tests { use super::*; @@ -1977,7 +1937,7 @@ mod tests { #[test] fn disabled_radial_menu_does_not_capture_right_button_hold() { let mut app = SolveApp::new(solidcraft_engine::Session::default(), Default::default()); - let ctx = egui::Context::default(); + let ctx = crate::fonts::test_context(); let point = pos2(600.0, 400.0); app.viewport.mouse = Some(point); for (time, events) in [ @@ -2022,7 +1982,7 @@ mod tests { let p = list_place(c, 400.0, screen); let r = Rect::from_min_size(p, vec2(LIST_W, 400.0)); assert!(screen.contains_rect(r), "{at:?}: {r:?}"); - let ring = Rect::from_center_size(c, vec2(2.0 * (RX + 160.0), 2.0 * RY)); + let ring = Rect::from_center_size(c, vec2(2.0 * RX, 2.0 * RY)); assert!(!ring.intersects(r), "{at:?}: list {r:?} over ring {ring:?}"); } } @@ -2044,10 +2004,65 @@ mod tests { let screen = Rect::from_min_size(Pos2::ZERO, vec2(1200.0, 800.0)); for at in [pos2(2.0, 2.0), pos2(1199.0, 799.0), pos2(600.0, 400.0), pos2(-50.0, 900.0)] { let c = radial_center(at, screen); - for k in 0..DIRS { - let r = slot_rect(c, k, vec2(160.0, 28.0)); - assert!(screen.contains_rect(r), "{at:?} slot {k}: {r:?}"); - } + assert!(screen.contains_rect(Rect::from_center_size(c, vec2(2.0 * RX, 2.0 * RY)))); } } } + +#[cfg(test)] +mod workspace_menu_tests { + use super::*; + use crate::scenario::{Harness, rect_of}; + + #[test] + fn workspace_titles_use_one_semibold_text_run() { + let ctx = crate::fonts::test_context(); + let app = SolveApp::new(Default::default(), Default::default()); + let list = items(&app, &Target::Workspace); + let mut output = ctx.run_ui(egui::RawInput::default(), |ui| { + crate::ui_kit::workspace_menu(ui, &list, None, 1000.0); + }); + output.textures_delta.clear(); + let titles: Vec<_> = output + .shapes + .iter() + .filter_map(|s| match &s.shape { + egui::Shape::Text(text) if text.galley.text() == "Design" => Some(text), + _ => None, + }) + .collect(); + assert_eq!(titles.len(), 1, "workspace titles must never be drawn twice"); + assert_eq!(titles[0].galley.job.sections[0].format.font_id, crate::fonts::semibold(14.0)); + } + + #[test] + fn workspace_rows_keep_switching_handles_and_disabled_render_behavior() { + let mut h = Harness::new(); + h.call("ui.resize", json!({"width":1200,"height":1000})); + h.step(&json!({"click":{"handle":"ribbon:workspace"}})).unwrap(); + let opener = rect_of("ribbon:workspace").unwrap(); + let rows: Vec<_> = ["design", "render", "animation", "simulation", "manufacture", "drawing"] + .iter() + .map(|slug| rect_of(&format!("workspace:menu:{slug}")).unwrap()) + .collect(); + assert!(rows.windows(2).all(|pair| pair[0].bottom() <= pair[1].top())); + assert!(rows[0].top() > opener.bottom()); + assert_eq!(rows[0].width(), 450.0); + assert!(items(&h.app, &Target::Workspace).iter().skip(2).all(|item| !item.enabled)); + h.step(&json!({"click":{"handle":"workspace:menu:animation"}})).unwrap(); + assert!(!crate::render_workspace::active(&h.app)); + assert!(h.app.viewport.context_menu.is_some()); + h.step(&json!({"click":{"handle":"workspace:menu:render"}})).unwrap(); + assert!(crate::render_workspace::active(&h.app)); + h.step(&json!({"click":{"handle":"ribbon:workspace"}})).unwrap(); + h.step(&json!({"click":{"handle":"workspace:menu:design"}})).unwrap(); + assert!(!crate::render_workspace::active(&h.app)); + h.app.run("sketch.create", json!({"plane":"XY"})).unwrap(); + h.frames(2); + h.step(&json!({"click":{"handle":"ribbon:workspace"}})).unwrap(); + assert!(!items(&h.app, &Target::Workspace).iter().find(|i| i.id == "ui.workspace.render").unwrap().enabled); + h.step(&json!({"click":{"handle":"workspace:menu:render"}})).unwrap(); + assert!(!crate::render_workspace::active(&h.app)); + assert!(h.app.viewport.context_menu.is_some()); + } +} diff --git a/crates/ui-egui/src/control.rs b/crates/ui-egui/src/control.rs index 4720d5a7a..932bb7f7f 100644 --- a/crates/ui-egui/src/control.rs +++ b/crates/ui-egui/src/control.rs @@ -24,6 +24,7 @@ //! headless CPU render of the model with the current camera, in the window's theme, with the //! section the viewport shows (no window needed); the ground grid and the origin's axes as the //! window shows them, unless `grid` or `axes` says +//! - `ui.icon_audit {reset?, stop?}`: collect/drain requested icon names, resolved masters and placeholder flags; //! - `ui.menu {x?, y?, target?, close?}`: open a context menu at a point (the viewport's marking //! menu, or a browser menu with `target: {type: body|sketch|component, …}`); without a point, //! the open menu and its items. `ui.menuPick {item}` runs an item by id or label; @@ -367,12 +368,13 @@ fn dispatch(app: &mut SolveApp, ctx: &egui::Context, method: &str, p: &Value) -> } } match (serde_json::from_value::(cur), serde_json::from_value::(vis)) { - (Ok(u), Ok(v)) => { + (Ok(mut u), Ok(v)) => { if (u.tab == "RENDER") != crate::render_workspace::active(app) && let Err(e) = crate::render_workspace::enter(app, u.tab == "RENDER") { return err(e); } + u.ribbon_context = app.ui.ribbon_context.clone(); app.ui = u; app.session.visibility = v; ok(serde_json::to_value(&app.ui).unwrap_or_default()) @@ -406,6 +408,18 @@ fn dispatch(app: &mut SolveApp, ctx: &egui::Context, method: &str, p: &Value) -> ok(json!(app.cam)) } "ui.camera" => wrap(camera(app, p)), + "ui.palette" => { + if p.get("open").and_then(Value::as_bool) == Some(false) { + app.ui.palette_open = false; + app.sbox.text.clear(); + } else { + app.start("ui.palette"); + if let Some(query) = s("text") { + app.sbox.text = query.chars().take(crate::shortcut_box::MAX_QUERY).collect(); + } + } + ok(json!({"open": app.ui.palette_open, "text": app.sbox.text})) + } "ui.start" => { let Some(id) = s("command") else { return err("missing `command`") }; // `params`: what the dialog opens on. Refused: nothing starts, or the dialog closes. @@ -667,6 +681,16 @@ fn dispatch(app: &mut SolveApp, ctx: &egui::Context, method: &str, p: &Value) -> app.synthetic.push(egui::Event::Text(s("text").unwrap_or("").to_string())); ok(Value::Null) } + "ui.icon_audit" => { + if b("reset") { + crate::icon_svg::audit::start(); + } + let requested = crate::icon_svg::audit::take(); + if b("stop") { + crate::icon_svg::audit::stop(); + } + ok(json!({"requested": requested})) + } "ui.menu" => { if b("close") { crate::context_menu::close(app); @@ -956,7 +980,7 @@ mod tests { #[test] fn touchpad_text_prefix_does_not_collapse_queued_pointer_frames() { let mut app = SolveApp::new(Session::default(), Services::default()); - let ctx = egui::Context::default(); + let ctx = crate::fonts::test_context(); let (req, _) = ControlRequest::new("ui.text", json!({"text":"prefix"})); assert!(matches!(handle(&mut app, &ctx, &req), Outcome::Done(_))); for params in [json!({"x":10,"y":10,"shift":true}), json!({"x":20,"y":20,"alt":true}), json!({"x":30,"y":30})] { @@ -980,7 +1004,7 @@ mod tests { #[test] fn touchpad_automation_preserves_each_queued_moves_modifiers() { let mut app = SolveApp::new(Session::default(), Services::default()); - let ctx = egui::Context::default(); + let ctx = crate::fonts::test_context(); for params in [json!({"x":10,"y":10,"shift":true}), json!({"x":20,"y":20,"alt":true}), json!({"x":30,"y":30})] { let (req, _) = ControlRequest::new("ui.move", params); assert!(matches!(handle(&mut app, &ctx, &req), Outcome::Done(_))); @@ -1002,7 +1026,7 @@ mod tests { fn render(app: &mut SolveApp, path: &std::path::Path) -> Vec { let (req, _rx) = ControlRequest::new("ui.render", json!({"path": path.to_string_lossy(), "width": 200, "height": 140})); - match handle(app, &egui::Context::default(), &req) { + match handle(app, &crate::fonts::test_context(), &req) { Outcome::Done(v) => assert_eq!(v["ok"], true, "{v}"), Outcome::Screenshot { .. } => panic!("ui.render took a screenshot"), } @@ -1072,7 +1096,7 @@ mod tests { params[k.as_str()] = v.clone(); } let (req, _rx) = ControlRequest::new("ui.render", params); - match handle(app, &egui::Context::default(), &req) { + match handle(app, &crate::fonts::test_context(), &req) { Outcome::Done(v) => assert_eq!(v["ok"], true, "{v}"), Outcome::Screenshot { .. } => panic!("ui.render took a screenshot"), } @@ -1347,7 +1371,7 @@ mod tests { params["allow_paths"] = json!([root.to_string_lossy()]); } let (req, _rx) = ControlRequest::new(method, params); - match handle(&mut app, &egui::Context::default(), &req) { + match handle(&mut app, &crate::fonts::test_context(), &req) { Outcome::Done(v) => v, Outcome::Screenshot { path } => json!({"ok": true, "screenshot": path}), } diff --git a/crates/ui-egui/src/crash_ui.rs b/crates/ui-egui/src/crash_ui.rs index c95bb5f9d..44f8a8ebe 100644 --- a/crates/ui-egui/src/crash_ui.rs +++ b/crates/ui-egui/src/crash_ui.rs @@ -1,11 +1,10 @@ //! The Crash Reports window (Help > Crash Reports…): the reports `solidcraft_engine::crash` //! keeps on this computer, each with a reviewed issue draft. It opens by itself after a crash. -use egui::{RichText, vec2}; use solidcraft_engine::crash::{self, Summary}; use crate::SolveApp; -use crate::theme::Tokens; +use crate::ui_kit; #[derive(Default)] pub struct CrashUi { @@ -33,12 +32,24 @@ impl CrashUi { } fn kind_label(kind: &str) -> &'static str { - match kind { - "command_panic" => "Internal error in a command", - "kernel_panic_recovered" => "Kernel error (recovered)", - "unclean_exit" => "Closed unexpectedly", - _ => "Internal error", - } + crate::i18n::tr(match kind { + "command_panic" => "crash.kind_command", + "kernel_panic_recovered" => "crash.kind_kernel", + "unclean_exit" => "crash.kind_unclean", + _ => "crash.kind_internal", + }) +} + +fn report_time(r: &Summary) -> String { + let time = r.time.replace('T', " "); + let time = time.trim_end_matches('Z'); + if r.kind == "unclean_exit" { crate::i18n::format("crash.detected_time", &[("time", time)]) } else { format!("{time} UTC") } +} + +fn report_heading(r: &Summary) -> String { + let time = report_time(r); + let times = if r.count > 1 { format!(" ×{}", r.count) } else { String::new() }; + format!("{time} {}{times}", kind_label(&r.kind)) } /// The host found these new reports at startup: tell the user about real crashes (recovered @@ -50,80 +61,91 @@ pub fn announce(app: &mut SolveApp, fresh: &[Summary]) { } app.crashes.open = true; app.crashes.refresh(); - app.set_status("SolidCraft closed unexpectedly or hit an internal error last time. A crash report was saved (Help > Crash Reports…).", true); + let locale = crate::i18n::Locale::for_language(&app.preferences.language); + app.set_status(locale.text("crash.previous_session"), true); } pub fn show(app: &mut SolveApp, ctx: &egui::Context) { if !app.crashes.open { return; } - let t = Tokens::get(); - let mut open = true; let mut report: Option = None; let mut delete: Option> = None; - crate::frame::window(ctx, crate::i18n::tr_label("Crash Reports"), crate::frame::Width::Wide) - .id(egui::Id::new("sc_crash_reports")) - .open(&mut open) - .default_size(vec2(620.0, 420.0)) - .show(ctx, |ui| { - ui.label( - RichText::new( - "Crash reports stay on this computer and are never sent anywhere. Report… opens a draft you review before anything is shared.", - ) - .color(t.text_dim), - ); + let (closed, action) = ui_kit::Window::new(egui::Id::new("sc_crash_reports"), "bug_report", crate::i18n::tr_label("Crash Reports")) + .cards(2.0) + .actions("", crate::i18n::tr("ui.close"), None) + .show(ctx, true, |ui| { + ui.spacing_mut().item_spacing.y = crate::theme::Tokens::get().space_10; + let intro = ui_kit::text(ui, crate::i18n::tr("crash.intro"), ui_kit::Text::Hint("intro")); + crate::scenario::publish_rect("dialog:note:intro", intro.rect); if let Some(d) = app.crashes.dir.clone() { - // A long path is cut short (hover shows it all): it must not widen the window - // past its title bar. - ui.horizontal(|ui| { - if ui.small_button("Copy folder path").clicked() { + // A long path is cut short (hover shows it all): it must not widen the card. + ui_kit::path_chip(ui, &d, |ui| { + if ui_kit::icon_label_button(ui, crate::i18n::tr("crash.copy_folder"), "copy", true, false).clicked() { ctx.copy_text(d.clone()); } - ui.add(egui::Label::new(RichText::new(&d).monospace().size(11.0)).truncate()).on_hover_text(&d); }); } - ui.separator(); + // The list/empty-box top border replaces the old divider; retain its geometry alias. + crate::scenario::publish_rect( + "dialog:divider:reports", + egui::Rect::from_min_size(ui.next_widget_position(), egui::vec2(ui.available_width(), 1.0)), + ); if app.crashes.reports.is_empty() { - ui.label(crate::i18n::tr_label("No crash reports.")); + ui_kit::empty_box(ui, "none", crate::i18n::tr_label("No crash reports.")); } - egui::ScrollArea::vertical().max_height(320.0).show(ui, |ui| { - for r in &app.crashes.reports { - ui.horizontal(|ui| { - let times = if r.count > 1 { format!(" ×{}", r.count) } else { String::new() }; - ui.label( - RichText::new(format!("{} {}{times}", r.time.replace('T', " ").trim_end_matches('Z'), kind_label(&r.kind))).strong(), - ); - if let Some(c) = &r.command { - ui.label(RichText::new(c).monospace().size(11.0).color(t.text_dim)); + if !app.crashes.reports.is_empty() { + ui_kit::report_list( + ui, + "reports", + crate::theme::Tokens::get().control_height * 10.0 + crate::theme::Tokens::get().space_10 * 4.0, + |ui| { + let last = app.crashes.reports.len().saturating_sub(1); + for (index, r) in app.crashes.reports.iter().enumerate() { + let title = report_heading(r); + ui.push_id(&r.id, |ui| { + ui.spacing_mut().item_spacing.y = crate::theme::Tokens::get().space_6; + ui.add_space(crate::theme::Tokens::get().space_10); + ui_kit::report_header(ui, kind_label(&r.kind), r.count, &report_time(r), &title, |ui| { + if ui_kit::bin_button(ui, crate::i18n::tr("ui.delete")).clicked() { + delete = Some(Some(r.id.clone())); + } + ui_kit::icon_label_button(ui, crate::i18n::tr("crash.copy_path"), "copy", true, false) + .clicked() + .then(|| ctx.copy_text(r.path.clone())); + if ui_kit::icon_label_button(ui, crate::i18n::tr("crash.report"), "bug_report", true, false).clicked() { + report = Some(r.id.clone()); + } + }); + let mut detail = r.command.clone().unwrap_or_default(); + if r.replayable { + let sep = if detail.is_empty() { "" } else { " · " }; + detail = format!("{detail}{sep}{}", crate::i18n::tr("crash.replayable")); + } + if !detail.is_empty() { + ui_kit::text(ui, &detail, ui_kit::Text::MonoNote(&format!("detail:{}", r.id))); + } + ui_kit::text(ui, &r.message, ui_kit::Text::Report(&format!("message:{}", r.id), false)); + if r.kind == "unclean_exit" { + ui_kit::text(ui, crate::i18n::tr("crash.unclean_explanation"), ui_kit::Text::Note(&format!("unclean:{}", r.id))); + } + ui.add_space(crate::theme::Tokens::get().space_6); + if index != last { + ui_kit::report_divider(ui, &format!("end:{}", r.id)); + } + }); } - }); - ui.label(RichText::new(&r.message).size(12.0)); - ui.horizontal(|ui| { - if ui.small_button("Report…").clicked() { - report = Some(r.id.clone()); - } - if ui.small_button("Copy path").clicked() { - ctx.copy_text(r.path.clone()); - } - if ui.small_button("Delete").clicked() { - delete = Some(Some(r.id.clone())); - } - if r.replayable { - ui.label(RichText::new("replayable").size(11.0).color(t.text_dim)); - } - }); - ui.add_space(6.0); - } - }); + }, + ); + } if !app.crashes.note.is_empty() { - ui.label(RichText::new(&app.crashes.note).color(t.text_dim)); + ui_kit::text(ui, &app.crashes.note, ui_kit::Text::Note("note")); } - ui.separator(); - if !app.crashes.reports.is_empty() && ui.button(crate::i18n::tr_label("Delete all")).clicked() { + if ui_kit::icon_label_button(ui, crate::i18n::tr_label("Delete all"), "delete", !app.crashes.reports.is_empty(), true).clicked() { delete = Some(None); } }); - app.crashes.open = open; + app.crashes.open = !(closed || action == ui_kit::Action::Cancel); if let Some(id) = report && let Some(dir) = app.crashes.dir_path() { @@ -136,7 +158,7 @@ pub fn show(app: &mut SolveApp, ctx: &egui::Context) { && let Some(dir) = app.crashes.dir_path() { let n = crash::clear(&dir, which.as_deref()); - app.crashes.note = format!("Deleted {n} report(s)."); + app.crashes.note = crate::i18n::format("crash.deleted", &[("count", &n.to_string())]); app.crashes.refresh(); } } @@ -171,6 +193,48 @@ mod tests { d } + #[test] + fn an_old_unclean_exit_is_shown_as_detected_on_a_later_launch() { + let d = folder("old-session"); + let mut h = crate::scenario::Harness::new(); + h.app.preferences.language = "en".into(); + h.app.crashes.folder = Some(d.clone()); + let id = "20261012-162341-bb60791ed6692f1d"; + let path = d.join(id).join("report.json"); + let mut report: serde_json::Value = serde_json::from_slice(&std::fs::read(&path).unwrap()).unwrap(); + report["message"] = json!("SolidCraft 0.3.2 (started 2026-10-01T10:00:00Z) ended without a clean exit between commands"); + report["command"] = serde_json::Value::Null; + std::fs::write(&path, report.to_string()).unwrap(); + super::announce(&mut h.app, &solidcraft_engine::crash::list(&d)); + h.frames(6); + assert!(h.app.crashes.open, "unclean exits still alert the user"); + let status = &h.app.status.as_ref().unwrap().0; + assert!(status.contains("earlier SolidCraft session"), "{status}"); + assert!(status.contains("detected at startup"), "{status}"); + assert!(h.widget("Detected 2026-10-12 16:23:41 UTC Closed unexpectedly ×2").is_some()); + assert!(h.widget(report["message"].as_str().unwrap()).is_some(), "keep the original session start visible"); + assert!(h.widget(crate::i18n::tr("crash.unclean_explanation")).is_some()); + let _ = std::fs::remove_dir_all(&d); + } + + #[test] + fn a_panic_keeps_its_event_time_without_the_unclean_exit_explanation() { + let d = folder("panic-time"); + let mut h = crate::scenario::Harness::new(); + h.app.preferences.language = "en".into(); + h.app.crashes.folder = Some(d.clone()); + let path = d.join("20261012-162341-bb60791ed6692f1d").join("report.json"); + let mut report: serde_json::Value = serde_json::from_slice(&std::fs::read(&path).unwrap()).unwrap(); + report["kind"] = json!("command_panic"); + std::fs::write(&path, report.to_string()).unwrap(); + super::announce(&mut h.app, &solidcraft_engine::crash::list(&d)); + h.frames(6); + assert!(h.app.crashes.open); + assert!(h.widget("2026-10-12 16:23:41 UTC Internal error in a command ×2").is_some()); + assert!(h.widget(crate::i18n::tr("crash.unclean_explanation")).is_none()); + let _ = std::fs::remove_dir_all(&d); + } + #[test] fn a_crash_report_opens_a_reviewed_issue_draft_and_can_be_deleted() { let d = folder("draft"); @@ -192,7 +256,7 @@ mod tests { "solid.box", "solidcraft-cli crashes replay 20261012-162341-bb60791ed6692f1d", "Renderer: test", - "Happened 2 time(s)", + "Recorded 2 time(s)", ] { assert!(draft.body.contains(want), "missing {want:?} in {}", draft.body); } @@ -214,7 +278,7 @@ mod tests { h.frames(6); let window = h.ctx.memory(|m| m.area_rect(egui::Id::new("sc_crash_reports"))).unwrap(); // The frame's margins come on top of the content's maximum width. - assert!(window.width() <= crate::frame::WINDOW_WIDE_MAX_W + 40.0, "{} wide", window.width()); + assert!(window.width() <= 760.0 + 40.0, "{} wide", window.width()); let _ = std::fs::remove_dir_all(&d); } @@ -235,4 +299,51 @@ mod tests { super::announce(&mut h.app, &[quiet]); assert!(!h.app.crashes.open); } + + #[test] + fn inventory_actions_details_empty_state_and_keyboard_remain_reachable() { + let d = folder("inventory"); + let mut h = crate::scenario::Harness::new(); + h.app.crashes.folder = Some(d.clone()); + super::open(&mut h.app); + h.frames(5); + for handle in [ + "dialog:close", + "dialog:cancel", + "dialog:Close", + "dialog:button::Copy folder path", + "dialog:button::Report…", + "dialog:button::Copy path", + "dialog:button::Delete", + "dialog:button::Delete all", + ] { + assert!(crate::scenario::handle_at(handle).is_some(), "missing {handle}"); + } + for rect in [ + "dialog:note:intro", + "dialog:divider:reports", + "dialog:list:reports", + "dialog:note:detail:20261012-162341-bb60791ed6692f1d", + "dialog:report:message:20261012-162341-bb60791ed6692f1d", + ] { + assert!(crate::scenario::rect_of(rect).is_some(), "missing {rect}"); + } + let title = "Detected 2026-10-12 16:23:41 UTC Closed unexpectedly ×2"; + assert!(crate::scenario::handle_at(&format!("dialog:cell:{title}")).is_some()); + assert!(crate::scenario::handle_at(&format!("dialog:cell:{}", d.display())).is_some()); + h.step(&json!({"click":{"handle":"dialog:button::Copy folder path"}})).unwrap(); + h.step(&json!({"click":{"handle":"dialog:button::Copy path"}})).unwrap(); + h.step(&json!({"key":"Enter"})).unwrap(); + assert!(h.app.crashes.open, "Enter has no primary action"); + h.step(&json!({"click":{"handle":"dialog:button::Delete"}})).unwrap(); + h.frames(3); + assert!(h.app.crashes.reports.is_empty()); + assert!(crate::scenario::rect_of("dialog:note:none").is_some()); + assert!(crate::scenario::rect_of("dialog:note:note").is_some()); + h.step(&json!({"click":{"handle":"dialog:button::Delete all"}})).unwrap(); + assert!(h.app.crashes.reports.is_empty()); + h.step(&json!({"key":"Escape"})).unwrap(); + assert!(!h.app.crashes.open); + let _ = std::fs::remove_dir_all(d); + } } diff --git a/crates/ui-egui/src/delete.rs b/crates/ui-egui/src/delete.rs index 571e75cea..706b5ee20 100644 --- a/crates/ui-egui/src/delete.rs +++ b/crates/ui-egui/src/delete.rs @@ -2,11 +2,13 @@ //! the viewport or the browser goes in one undoable step through `selection.delete`. When it //! takes other features with it or makes some fail, a confirmation lists them first. -use egui::{RichText, vec2}; use serde_json::{Value, json}; use crate::SolveApp; -use crate::theme::Tokens; +use crate::ui_kit; + +/// Longest list of names the confirmation shows before "and n more". +const MAX_LISTED: usize = 20; /// A delete waiting for confirmation: its parameters and the dry run's report. #[derive(Clone, Debug)] @@ -110,55 +112,49 @@ pub fn confirm(app: &mut SolveApp, accept: bool) -> bool { true } -/// The confirmation window. +/// The confirmation card. pub fn show(app: &mut SolveApp, ctx: &egui::Context) { let Some(p) = app.menu.confirm.clone() else { return }; - let t = Tokens::get(); let list = |k: &str| -> Vec { p.report[k].as_array().map(|a| a.iter().filter_map(|x| x.as_str().map(str::to_string)).collect()).unwrap_or_default() }; let (deleted, fails) = (list("deleted"), list("would_fail")); - let mut answer: Option = None; - crate::frame::window(ctx, crate::i18n::tr_label("Delete"), crate::frame::Width::Normal) - .id(egui::Id::new("sc_delete_confirm")) - .collapsible(false) - .resizable(false) - .anchor(egui::Align2::CENTER_CENTER, vec2(0.0, -60.0)) - .show(ctx, |ui| { - ui.set_max_width(360.0); - if shared_occurrences(app, &p.params) { - ui.label(crate::i18n::tr_label("This child is shared. Deleting it removes it from every copy of its parent.")); + let shared = shared_occurrences(app, &p.params); + let (closed, action) = ui_kit::Confirm::new(egui::Id::new("sc_delete_confirm"), "delete", crate::i18n::tr_label("Delete")) + .tone(ui_kit::Tone::Danger) + .actions("Delete", "Cancel", None) + .show(ctx, true, |ui| { + if shared { + ui_kit::text( + ui, + crate::i18n::tr_label("This child is shared. Deleting it removes it from every copy of its parent."), + ui_kit::Text::Report("shared", false), + ); } - if !deleted.is_empty() { - ui.label(crate::i18n::tr_label("These features will be deleted:")); - for d in deleted.iter().take(20) { - ui.label(RichText::new(format!(" • {d}")).color(t.text)); + for (key, heading, names, error) in + [("deleted", "These features will be deleted:", &deleted, false), ("fails", "These features will fail:", &fails, true)] + { + if names.is_empty() { + continue; } - if deleted.len() > 20 { - ui.label(format!(" … and {} more", deleted.len() - 20)); + ui_kit::text(ui, crate::i18n::tr_label(heading), ui_kit::Text::Report(key, error)); + for name in names.iter().take(MAX_LISTED) { + ui_kit::text(ui, &format!(" • {name}"), ui_kit::Text::Report(&format!("{key}:{name}"), error)); } - } - if !fails.is_empty() { - ui.add_space(6.0); - ui.label(RichText::new(crate::i18n::tr_label("These features will fail:")).color(t.warning)); - for f in fails.iter().take(20) { - ui.label(RichText::new(format!(" • {f}")).color(t.warning)); + if names.len() > MAX_LISTED { + let more = (names.len() - MAX_LISTED).to_string(); + ui_kit::text( + ui, + &crate::i18n::format("delete.and_more", &[("count", &more)]), + ui_kit::Text::Report(&format!("{key}:more"), error), + ); } } - ui.add_space(8.0); - ui.horizontal(|ui| { - if ui.button("Delete").clicked() { - answer = Some(true); - } - if ui.button("Cancel").clicked() { - answer = Some(false); - } - }); - if ui.input(|i| i.key_pressed(egui::Key::Escape)) { - answer = Some(false); - } }); - if let Some(a) = answer { - confirm(app, a); + match action { + ui_kit::Action::Ok => drop(confirm(app, true)), + ui_kit::Action::Cancel => drop(confirm(app, false)), + _ if closed => drop(confirm(app, false)), + _ => {} } } diff --git a/crates/ui-egui/src/design_properties.rs b/crates/ui-egui/src/design_properties.rs index 7a5503205..696e0c4d2 100644 --- a/crates/ui-egui/src/design_properties.rs +++ b/crates/ui-egui/src/design_properties.rs @@ -3,17 +3,20 @@ //! the design. OK applies the edited fields through one `document.metadata.set` (one undo step); //! Cancel and the close button change nothing. File → Design Properties…, the Browser's //! Document Settings, the root component's menu and `ui.start` of `document.metadata` or -//! `document.metadata.set` open it. +//! `document.metadata.set` open it. [`show_object`] draws the Properties card (mass, volume, area, +//! centre of mass, bounding box, counts) of the body or component a menu asked about; both are +//! `ui_kit::Window` cards. -use egui::RichText; use serde_json::{Map, Value}; use solidcraft_engine::doc::metadata::{DESCRIPTION, WELL_KNOWN}; use crate::SolveApp; -use crate::theme::Tokens; +use crate::ui_kit; /// Longest preview of another tool's value in the list. const PREVIEW_CHARS: usize = 80; +/// Rows of other tools' data shown before the list scrolls. +const OTHERS_ROWS: f32 = 6.0; /// What is being typed; the properties themselves live in the document. pub struct DesignProperties { @@ -85,68 +88,86 @@ fn preview(v: &Value) -> String { /// Draw the window when it is open. Called once per frame. pub fn show(app: &mut SolveApp, ctx: &egui::Context) { let Some(mut d) = app.design_properties.take() else { return }; - let t = Tokens::get(); - let mut open = true; - let (mut ok, mut cancel) = (false, false); let metadata = app.session.doc.metadata.clone(); - let title = RichText::new(crate::i18n::tr_label("Design Properties")).strong().size(13.0); - crate::frame::window(ctx, title, crate::frame::Width::Normal) - .id(egui::Id::new("sc_design_properties")) - .open(&mut open) - .resizable(false) - .min_width(420.0) - .show(ctx, |ui| { - egui::Grid::new("sc_design_properties_grid").num_columns(2).spacing([12.0, 6.0]).show(ui, |ui| { - for (i, key) in WELL_KNOWN.iter().enumerate() { - ui.label(label(key)); - let Some(field) = d.fields.get_mut(i) else { continue }; - ui.vertical(|ui| { - let edit = - if *key == DESCRIPTION { egui::TextEdit::multiline(field).desired_rows(3) } else { egui::TextEdit::singleline(field) }; - ui.add(edit.desired_width(280.0)); - // Saved by another tool as something other than text: kept unless typed over. - if metadata.get(key).is_some() && metadata.text(key).is_none() && d.opened.get(i).is_some_and(String::is_empty) { - ui.label(RichText::new(crate::i18n::tr("ui.design_properties.not_text")).small().color(t.text_dim)); - } - }); - ui.end_row(); - } - }); - ui.add_space(4.0); - ui.label(RichText::new(crate::i18n::tr("ui.design_properties.exports")).small().color(t.text_dim)); - let others: Vec<(&String, &Value)> = metadata.others().collect(); - if !others.is_empty() { - ui.add_space(4.0); - egui::CollapsingHeader::new(format!("{} ({})", crate::i18n::tr("ui.design_properties.others"), others.len())) - .id_salt("sc_design_properties_others") - .show(ui, |ui| { - ui.label(RichText::new(crate::i18n::tr("ui.design_properties.others_note")).small().color(t.text_dim)); - egui::ScrollArea::vertical().max_height(160.0).show(ui, |ui| { - for (k, v) in others { - ui.label(RichText::new(k).monospace().size(12.0).color(t.text)); - ui.label(RichText::new(preview(v)).monospace().small().color(t.text_dim)); - } - }); - }); + let title = crate::i18n::tr_label("Design Properties"); + let (closed, action) = ui_kit::Window::new(egui::Id::new("sc_design_properties"), "settings", title).fields().show(ctx, true, |ui| { + for (i, key) in WELL_KNOWN.iter().enumerate() { + let label = label(key); + let Some(field) = d.fields.get_mut(i) else { continue }; + if *key == DESCRIPTION { + ui_kit::multiline_text_field(ui, label, egui::Id::new(("sc_design_properties", key)), field); + } else { + ui_kit::row(ui, label, |ui| ui_kit::text_field(ui, field, "")); } - if let Some(e) = &d.error { - ui.label(RichText::new(e).color(t.error)); + // Saved by another tool as something other than text: kept unless typed over. + if metadata.get(key).is_some() && metadata.text(key).is_none() && d.opened.get(i).is_some_and(String::is_empty) { + ui_kit::caption(ui, label, crate::i18n::tr("ui.design_properties.not_text")); } - ui.separator(); - // OK and Cancel flush right, as in every dialog. - ui.horizontal(|ui| { - ui.with_layout(egui::Layout::right_to_left(egui::Align::Center), |ui| { - cancel = ui.button(crate::i18n::tr("ui.cancel")).clicked(); - ok = ui.button(crate::i18n::tr("ui.heading_ok")).clicked(); + } + ui_kit::text(ui, crate::i18n::tr("ui.design_properties.exports"), ui_kit::Text::Note("exports")); + let others: Vec<(&String, &Value)> = metadata.others().collect(); + if !others.is_empty() { + let heading = format!("{} ({})", crate::i18n::tr("ui.design_properties.others"), others.len()); + ui_kit::section(ui, "sc_design_properties_others", &heading, false, |ui| { + ui_kit::text(ui, crate::i18n::tr("ui.design_properties.others_note"), ui_kit::Text::Note("others")); + egui::ScrollArea::vertical().max_height(ui_kit::row_height() * OTHERS_ROWS).show(ui, |ui| { + for (key, value) in others { + ui_kit::row(ui, key, |ui| ui_kit::text(ui, &preview(value), ui_kit::Text::Cell)); + } }); }); - }); - if !open || cancel || (ok && apply(app, &mut d)) { + } + if let Some(error) = &d.error { + ui_kit::text(ui, error, ui_kit::Text::Report("error", true)); + } + }); + if closed || action == ui_kit::Action::Cancel || (action == ui_kit::Action::Ok && apply(app, &mut d)) { return; } app.design_properties = Some(d); } +/// Draw the Properties window of the body or component the menu asked about (mass, volume, +/// area, centre of mass, bounding box and counts), when it is open. Close dismisses it. +pub fn show_object(app: &mut SolveApp, ctx: &egui::Context) { + let Some((title, v)) = app.menu.props.clone() else { return }; + let number = |x: &Value, k: &str| x.get(k).and_then(Value::as_f64).unwrap_or(f64::NAN); + let mut rows: Vec<(&str, String)> = Vec::new(); + let total = &v["total"]; + let bodies = v["bodies"].as_array().cloned().unwrap_or_default(); + if let [b] = bodies.as_slice() { + rows.push(("Material", b["material"].as_str().unwrap_or("Default").to_string())); + rows.push(("Density", format!("{:.3} g/cm³", number(b, "density_g_cm3")))); + } + rows.push(("Mass", format!("{:.3} g", number(total, "mass_g")))); + rows.push(("Volume", crate::prefs::show_mm(app, number(total, "volume_mm3"), 3))); + rows.push(("Area", crate::prefs::show_mm(app, number(total, "area_mm2"), 2))); + let geometry = if total.get("center_of_mass").is_some() { Some(total) } else { bodies.first().filter(|_| bodies.len() == 1) }; + if let Some(b) = geometry { + let unit = crate::prefs::unit_scale(&app.session.doc.units).1; + if let Some(c) = b["center_of_mass"].as_array() { + let c: Vec = c.iter().map(|x| crate::prefs::show_mm_bare(app, x.as_f64().unwrap_or(f64::NAN))).collect(); + rows.push(("Center of mass", format!("({}) {unit}", c.join(", ")))); + } + let (mn, mx) = (&b["bbox"]["min"], &b["bbox"]["max"]); + if let (Some(a), Some(z)) = (mn.as_array(), mx.as_array()) { + let d: Vec = + a.iter().zip(z).map(|(a, z)| crate::prefs::show_mm_bare(app, z.as_f64().unwrap_or(0.0) - a.as_f64().unwrap_or(0.0))).collect(); + rows.push(("Bounding box", format!("{} {unit}", d.join(" × ")))); + } + } + rows.push(("Faces / edges / vertices", format!("{} / {} / {}", total["faces"], total["edges"], total["vertices"]))); + let heading = crate::i18n::format("properties.title", &[("name", &title)]); + let (closed, action) = ui_kit::Window::new(egui::Id::new("sc_props"), "settings", &heading).actions("", "Close", None).show(ctx, true, |ui| { + for (label, value) in &rows { + ui_kit::row(ui, crate::i18n::tr_label(label), |ui| ui_kit::text(ui, value, ui_kit::Text::Cell)); + } + }); + if closed || action == ui_kit::Action::Cancel { + app.menu.props = None; + } +} + #[cfg(test)] mod tests { use serde_json::json; diff --git a/crates/ui-egui/src/dialog_descriptor.rs b/crates/ui-egui/src/dialog_descriptor.rs new file mode 100644 index 000000000..e04c04b10 --- /dev/null +++ b/crates/ui-egui/src/dialog_descriptor.rs @@ -0,0 +1,69 @@ +//! Typed records for dialogs whose defaults and scalar restoration are mechanical. +//! Selection, geometry, optional parameters and form rows stay with their callers. + +macro_rules! dialog_descriptors { + ( + $(#[$attr:meta])* $vis:vis enum $name:ident { + $( $variant:ident ($command:literal, $title:literal, + [$(($label:literal, $accept:expr, $many:expr)),* $(,)?], $feature:pat) { + $( $field:ident: $ty:ty = $default:expr => $restore:expr, )* + } => $params:expr; )* + ; custom { $($custom:tt)* } + } + ) => { + $(#[$attr])* $vis enum $name { + $( $variant { $($field: $ty,)* }, )* + $($custom)* + } + + impl $name { + pub(crate) fn simple_start(id: &str) -> Option<(Self, Vec)> { + let kind = match id { + $( $command => Self::$variant { $($field: $default,)* }, )* + _ => return None, + }; + let inputs = kind.simple_inputs(); + Some((kind, inputs)) + } + + pub(crate) fn simple_inputs(&self) -> Vec { + match self { + $( Self::$variant { .. } => vec![$(crate::selection::SelInput::new($label, $accept, $many)),*], )* + _ => Vec::new(), + } + } + + pub(crate) fn simple_metadata(&self) -> Option<(&'static str, &'static str)> { + match self { + $( Self::$variant { .. } => Some(($command, $title)), )* + _ => None, + } + } + + pub(crate) fn fill_simple_params(&self, params: &mut serde_json::Value) { + let scalars = match self { + $( Self::$variant { $($field,)* } => { + // Some fields have conditional emission in the explicit command builder. + let _ = ($($field,)*); + $params + }, )* + _ => return, + }; + if let (serde_json::Value::Object(params), serde_json::Value::Object(scalars)) = (params, scalars) { + for (key, value) in scalars { + params.entry(key).or_insert(value); + } + } + } + + pub(crate) fn simple_restore(feature: &solidcraft_engine::doc::FeatureKind) -> Option { + Some(match feature { + $( $feature => Self::$variant { $($field: $restore,)* }, )* + _ => return None, + }) + } + } + }; +} + +pub(crate) use dialog_descriptors; diff --git a/crates/ui-egui/src/dialogs.rs b/crates/ui-egui/src/dialogs.rs index 5e874f3de..59593d37d 100644 --- a/crates/ui-egui/src/dialogs.rs +++ b/crates/ui-egui/src/dialogs.rs @@ -2,9 +2,10 @@ //! inputs (geometry picked in the viewport, never typed), then runs its command; it never //! changes the design itself. Things selected before the command starts become its input. +use crate::ui_kit::choice_row; use std::hash::{Hash, Hasher}; -use egui::{Color32, RichText, Stroke, vec2}; +use egui::{RichText, vec2}; use serde_json::{Value, json}; use solidcraft_engine::Sel; use solidcraft_engine::Session; @@ -13,11 +14,16 @@ use solidcraft_engine::doc::{AxisRef, Direction, FeatureKind, FilletStyle, HoleK use solidcraft_engine::geom::{Aabb3, Vec3}; use crate::SolveApp; -use crate::selection::{self, AXES, Accept, BODIES, CURVES, EDGES, FACES, PLANAR_FACES, PLANES, PROFILES, SelInput}; +use crate::selection::{ + self, AXES, Accept, BODIES, CURVES, EDGES, FACES, PLANAR_FACES, PLANES, PROFILES, SelInput, SelectionExt as _, point_value as pt, polyline_mid, +}; use crate::theme::Tokens; use crate::tool_modifiers::{Audit, Scope, ToolModifiers}; use crate::viewport::Hit; +#[path = "dialogs_dense.rs"] +mod dense; + const SELECT_ONLY: &[Scope] = &[Scope::Selection, Scope::FeaturePreview]; const SELECT_MANIP: &[Scope] = &[Scope::Selection, Scope::Manipulator, Scope::FeaturePreview]; @@ -88,277 +94,278 @@ const THIN_ACCEPT: Accept = PROFILES | CURVES; const HOLE_TYPES: [&str; 3] = ["simple", "counterbore", "countersink"]; const HOLE_LABELS: [&str; 3] = ["Simple", "Counterbore", "Countersink"]; -#[derive(Clone, Debug)] -pub enum Kind { - /// Pick a plane or planar face; the sketch starts on it at once. - Sketch, - Extrude { - distance: String, - direction: usize, - operation: usize, - /// Into a body: cut; additions: join when a solid exists, otherwise new. - /// until the user picks one. - auto_op: bool, - /// The direction from the picked side and the latched operation (#1257). - smart: crate::smart_extrude::Smart, - /// The other side's distance (two sides). - distance2: String, - /// Taper angle (empty or zero: none). - taper: String, - /// An explicitly authored zero taper is still a model parameter. - taper_present: bool, - /// Optional distance beyond the selected end object. - to_offset: String, - /// Start offset from the profile plane (empty: start on the profile plane). - start: String, - /// Extent type All (through everything) instead of a distance. - all: bool, - /// Thin Extrude: a wall along the picked curves (or profiles' outlines). - thin: bool, - /// The wall thickness (inside, with Two Sides). - wall: String, - /// Wall location: an index into [`WALL_SIDES`]. - wall_side: usize, - /// The thickness outside, with Two Sides. - wall2: String, - }, - Revolve { - angle: String, - operation: usize, - /// An arbitrary stored line until the user deliberately picks a replacement. - axis: Option, - }, - Fillet { - radius: String, - chamfer: bool, - chain: bool, - /// Chamfer type: 0 equal distance, 1 two distances, 2 distance and angle; with the - /// second distance, the angle and which face the first distance is on. - ctype: usize, - distance2: String, - angle: String, - flip: bool, - }, - Shell { - thickness: String, - }, - Draft { - angle: String, - }, - Mirror, - /// Rectangular pattern of bodies: along one direction, optionally a second. - PatternRect { - count: String, - spacing: String, - count2: String, - spacing2: String, - }, - /// Circular pattern of bodies around an axis. - PatternCirc { - count: String, - angle: String, - }, - /// Loft through profiles of different sketches, in pick order; `rail_fit` how its guide - /// rails reshape the sections (an index into the sweep dialog's rail fits). - Loft { - operation: usize, - rail_fit: usize, - }, - /// Sweep a profile along a path of sketch curves. - Sweep { - operation: usize, - opts: crate::dialogs_sweep::SweepOpts, - }, - /// A construction plane offset from a plane. - OffsetPlane { - offset: String, - }, - /// Halfway between two planes or planar faces. - Midplane, - /// An imported mesh body rebuilt as editable faces (#3001). - MeshConvert { - tolerance: String, - }, - /// A construction axis, point or plane made from picks alone (#2474): input `i` is the - /// command's parameter `keys[i]`, and `t` (along a path) when it takes one. - Construct { - command: &'static str, - title: &'static str, - keys: Vec<&'static str>, - t: Option, - }, - /// A construction plane through an axis at an angle to a plane. - AnglePlane { - angle: String, - }, - /// A plane perpendicular to one selected path at a fractional distance. - PathPlane { - t: String, - sketch: Option, - }, - /// Split a body by a plane. - Split, - /// Scale bodies uniformly. - Scale { - factor: String, - }, - /// Move planar faces along their normals. - OffsetFaces { - distance: String, - }, - /// A cosmetic thread on a cylindrical face. - Thread { - designation: String, - length: String, - /// The last automatic size; a different value is a manual override. Keep automatic - /// features automatic when applying, even though their resolved size is visible. - suggested: Option, - /// The picks used for the suggestion, so an unchanged dialog does no geometry work. - of: Vec, - }, - /// A rib (one wall along open curves) or a web (a wall per curve). - Rib { - web: bool, - thickness: String, - depth: String, - flip: bool, - /// Grow along the sketch normal rather than across the plane. - normal: bool, - }, - /// Raise or sink profiles of a sketch on a face. - Emboss { - depth: String, - deboss: bool, - }, - /// Move planar faces onto a target plane or face. - ReplaceFace, - /// Take faces off a body; the neighbouring faces close the gap (#2167). - DeleteFaces, - /// Boundary Fill: the cells the tool bodies make (a point inside, a description, filled - /// or not), found again when the tools change. - BoundaryFill { - operation: usize, - cells: Vec<(Vec3, String, bool)>, - of: Vec, - }, - /// Move bodies so a face or point meets another. - Align { - flip: bool, - }, - /// Remove bodies from here on in the timeline. - Remove, - /// Pattern bodies along a path of sketch curves. - PathPattern { - count: String, - spacing: String, - }, - /// A pipe (round, optionally hollow) along sketch curves. - Pipe { - diameter: String, - wall: String, - }, - /// A stock block around bodies. - Stock { - margin: String, - }, - /// Physical material (and with it the appearance) of bodies. - Material { - index: usize, - }, - /// Section Analysis: cut the view by a plane, moved along its normal. - Section { - offset: String, - flip: bool, - }, - /// Measure one or two picked items (vertices, edges, faces): the result of the last - /// measurement and the items it was for. - Measure { - result: Option, - of: Vec, - /// The measure chosen in the panel (centre, min or max); `None` follows the result's - /// own default (centre where a round item gives one). - show: Option, - }, - /// Move bodies by a distance along X, Y and Z. - /// Move/Copy (see `dialogs_move`): the move type, X/Y/Z distances (Point to Position: the - /// target), X/Y/Z angles (Free Move) and the angle (Rotate). - Move { - mode: usize, - x: String, - y: String, - z: String, - rx: String, - ry: String, - rz: String, - angle: String, - }, - Hole { - diameter: String, - depth: String, - kind: usize, - cb_diameter: String, - cb_depth: String, - cs_diameter: String, - cs_angle: String, - opts: HoleOpts, - }, - Primitive { - cmd: &'static str, - fields: Vec<(&'static str, String)>, - operation: usize, - /// Where it goes: a picked point on a face or vertex, with the face's normal when the - /// face is planar. `None` keeps the command's own placement (the origin, or the edited - /// feature's). - at: Option<(Vec3, Option)>, - }, - Combine { - operation: usize, - keep_tools: bool, - }, - Params { - new_name: String, - new_expr: String, - }, - EditParam { - name: String, - expr: String, - }, - Rename { - feature: u64, - name: String, - }, - /// Delete a feature that others depend on. - ConfirmDelete { - features: Vec, - with: Vec, - fail: Vec, - }, - /// Joints and components (`dialogs_assembly`). - Assembly(crate::dialogs_assembly::Asm), - /// Sheet metal (`dialogs_sheet`). - Sheet(crate::dialogs_sheet::Sm), - /// Surface tools and Split Face (`dialogs_surface`). - Surface(crate::dialogs_surface::Surf), - SaveMesh(crate::dialogs_save_mesh::SaveMesh), - ViewDxf { - dashed: bool, - tolerance: f64, - }, - /// Plastic features (`dialogs_plastic`). - Plastic(crate::dialogs_plastic::Pl), - /// Appearance (`dialogs_appearance`). - Appearance(crate::dialogs_appearance::Ap), - /// Contact sets, motion studies, exploded views, configurations (`dialogs_motion`). - Motion(crate::dialogs_motion::Mo), - /// Insert Part from the standard parts library (`dialogs_parts`). - Part(crate::dialogs_parts::Pt), - PartSize(crate::dialogs_part_size::Resize), - /// Edit Text: a sketch text's content and placement (`sketch_text`). - Text(Box), - TextMove(crate::sketch_text_move::TextMove), - /// Sketch-space modify tools: scale and offset, and later fillet, chamfer, the patterns, - /// mirror and move (`sketch_modify_ui`). - SketchModify(crate::sketch_modify_ui::Mod), +crate::dialog_descriptor::dialog_descriptors! { + #[derive(Clone, Debug)] + pub enum Kind { + Shell("solid.shell", "SHELL", [("Faces/Body", FACES, true)], + FeatureKind::Shell { thickness, .. }) { + thickness: String = "2 mm".into() => thickness.to_string(), + } => json!({"thickness": thickness}); + Draft("solid.draft", "DRAFT", [("Faces", FACES, true), ("Neutral plane", PLANES | PLANAR_FACES, false)], + FeatureKind::Draft { angle, .. }) { + angle: String = "5 deg".into() => angle.to_string(), + } => json!({"angle": angle}); + OffsetPlane("construct.plane.offset", "OFFSET PLANE", [("Plane", PLANES | PLANAR_FACES, false)], + FeatureKind::ConstructionPlane { plane: PlaneRef::Offset { distance, .. } }) { + offset: String = "0 mm".into() => distance.to_string(), + } => json!({"offset": offset}); + AnglePlane("construct.plane.at_angle", "PLANE AT ANGLE", [("Plane", PLANES, false), ("Axis", AXES, false)], + FeatureKind::ConstructionPlane { plane: PlaneRef::AtAngle { angle, .. } }) { + angle: String = "45 deg".into() => angle.to_string(), + } => json!({"angle": angle}); + Scale("solid.scale", "SCALE", [("Bodies", BODIES, true)], + FeatureKind::Scale { factor, .. }) { + factor: String = "2".into() => factor.to_string(), + } => json!({"factor": factor}); + OffsetFaces("solid.offset_face", "OFFSET FACE", [("Faces", PLANAR_FACES, true)], + FeatureKind::OffsetFace { distance, .. }) { + distance: String = "2 mm".into() => distance.to_string(), + } => json!({"distance": distance}); + Stock("solid.bounding_solid", "STOCK", [("Bodies (all if none)", BODIES, true)], + FeatureKind::BoundingSolid { margin, .. }) { + margin: String = "2 mm".into() => margin.to_string(), + } => json!({"margin": margin}); + Pipe("solid.pipe", "PIPE", [("Path", CURVES, true)], + FeatureKind::Pipe { diameter, wall, .. }) { + diameter: String = "5 mm".into() => diameter.to_string(), + wall: String = String::new() => wall.as_deref().map(str::to_string).unwrap_or_default(), + } => json!({"diameter": diameter}); + Emboss("solid.emboss", "EMBOSS", [("Profiles", PROFILES, true), ("Target Face (optional)", FACES, false)], + FeatureKind::Emboss { depth, deboss, .. }) { + depth: String = "1 mm".into() => depth.to_string(), + deboss: bool = false => *deboss, + } => json!({"depth": depth, "mode": if *deboss { "deboss" } else { "emboss" }}); + ; custom { + /// Pick a plane or planar face; the sketch starts on it at once. + Sketch, + Extrude { + distance: String, + direction: usize, + operation: usize, + /// Into a body: cut; additions: join when a solid exists, otherwise new. + /// until the user picks one. + auto_op: bool, + /// The direction from the picked side and the latched operation (#1257). + smart: crate::smart_extrude::Smart, + /// The other side's distance (two sides). + distance2: String, + /// Taper angle (empty or zero: none). + taper: String, + /// An explicitly authored zero taper is still a model parameter. + taper_present: bool, + /// Optional distance beyond the selected end object. + to_offset: String, + /// Start offset from the profile plane (empty: start on the profile plane). + start: String, + /// Extent type All (through everything) instead of a distance. + all: bool, + /// Thin Extrude: a wall along the picked curves (or profiles' outlines). + thin: bool, + /// The wall thickness (inside, with Two Sides). + wall: String, + /// Wall location: an index into [`WALL_SIDES`]. + wall_side: usize, + /// The thickness outside, with Two Sides. + wall2: String, + }, + Revolve { + angle: String, + operation: usize, + /// An arbitrary stored line until the user deliberately picks a replacement. + axis: Option, + }, + Fillet { + radius: String, + chamfer: bool, + chain: bool, + /// Chamfer type: 0 equal distance, 1 two distances, 2 distance and angle; with the + /// second distance, the angle and which face the first distance is on. + ctype: usize, + distance2: String, + angle: String, + flip: bool, + }, + Mirror, + /// Rectangular pattern of bodies: along one direction, optionally a second. + PatternRect { + count: String, + spacing: String, + count2: String, + spacing2: String, + }, + /// Circular pattern of bodies around an axis. + PatternCirc { + count: String, + angle: String, + }, + /// Loft through profiles of different sketches, in pick order; `rail_fit` how its guide + /// rails reshape the sections (an index into the sweep dialog's rail fits). + Loft { + operation: usize, + rail_fit: usize, + }, + /// Sweep a profile along a path of sketch curves. + Sweep { + operation: usize, + opts: crate::dialogs_sweep::SweepOpts, + }, + /// Halfway between two planes or planar faces. + Midplane, + /// An imported mesh body rebuilt as editable faces (#3001). + MeshConvert { + tolerance: String, + }, + /// A construction axis, point or plane made from picks alone (#2474): input `i` is the + /// command's parameter `keys[i]`, and `t` (along a path) when it takes one. + Construct { + command: &'static str, + title: &'static str, + keys: Vec<&'static str>, + t: Option, + }, + /// A plane perpendicular to one selected path at a fractional distance. + PathPlane { + t: String, + sketch: Option, + }, + /// Split a body by a plane. + Split, + /// A cosmetic thread on a cylindrical face. + Thread { + designation: String, + length: String, + /// The last automatic size; a different value is a manual override. Keep automatic + /// features automatic when applying, even though their resolved size is visible. + suggested: Option, + /// The picks used for the suggestion, so an unchanged dialog does no geometry work. + of: Vec, + }, + /// A rib (one wall along open curves) or a web (a wall per curve). + Rib { + web: bool, + thickness: String, + depth: String, + flip: bool, + /// Grow along the sketch normal rather than across the plane. + normal: bool, + }, + /// Move planar faces onto a target plane or face. + DeleteFaces, + ReplaceFace, + /// Boundary Fill: the cells the tool bodies make (a point inside, a description, filled + /// or not), found again when the tools change. + BoundaryFill { + operation: usize, + cells: Vec<(Vec3, String, bool)>, + of: Vec, + }, + /// Move bodies so a face or point meets another. + Align { + flip: bool, + }, + /// Remove bodies from here on in the timeline. + Remove, + /// Pattern bodies along a path of sketch curves. + PathPattern { + count: String, + spacing: String, + }, + /// Physical material (and with it the appearance) of bodies. + Material { + index: usize, + }, + /// Section Analysis: cut the view by a plane, moved along its normal. + Section { + offset: String, + flip: bool, + }, + /// Measure one or two picked items (vertices, edges, faces): the result of the last + /// measurement and the items it was for. + Measure { + result: Option, + of: Vec, + /// The measure chosen in the panel (centre, min or max); `None` follows the result's + /// own default (centre where a round item gives one). + show: Option, + }, + /// Move bodies by a distance along X, Y and Z. + /// Move/Copy (see `dialogs_move`): the move type, X/Y/Z distances (Point to Position: the + /// target), X/Y/Z angles (Free Move) and the angle (Rotate). + Move { + mode: usize, + x: String, + y: String, + z: String, + rx: String, + ry: String, + rz: String, + angle: String, + }, + Hole { + diameter: String, + depth: String, + kind: usize, + cb_diameter: String, + cb_depth: String, + cs_diameter: String, + cs_angle: String, + opts: HoleOpts, + }, + Primitive { + cmd: &'static str, + fields: Vec<(&'static str, String)>, + operation: usize, + /// Where it goes: a picked point on a face or vertex, with the face's normal when the + /// face is planar. `None` keeps the command's own placement (the origin, or the edited + /// feature's). + at: Option<(Vec3, Option)>, + }, + Combine { + operation: usize, + keep_tools: bool, + }, + EditParam { + name: String, + expr: String, + }, + Rename { + feature: u64, + name: String, + }, + /// Delete a feature that others depend on. + ConfirmDelete { + features: Vec, + with: Vec, + fail: Vec, + }, + /// Joints and components (`dialogs_assembly`). + Assembly(crate::dialogs_assembly::Asm), + /// Sheet metal (`dialogs_sheet`). + Sheet(crate::dialogs_sheet::Sm), + /// Surface tools and Split Face (`dialogs_surface`). + Surface(crate::dialogs_surface::Surf), + SaveMesh(crate::dialogs_save_mesh::SaveMesh), + ViewDxf { + dashed: bool, + tolerance: f64, + }, + /// Plastic features (`dialogs_plastic`). + Plastic(crate::dialogs_plastic::Pl), + /// Appearance (`dialogs_appearance`). + Appearance(crate::dialogs_appearance::Ap), + /// Contact sets, motion studies, exploded views, configurations (`dialogs_motion`). + Motion(crate::dialogs_motion::Mo), + /// Insert Part from the standard parts library (`dialogs_parts`). + Part(crate::dialogs_parts::Pt), + PartSize(crate::dialogs_part_size::Resize), + /// Edit Text: a sketch text's content and placement (`sketch_text`). + Text(Box), + TextMove(crate::sketch_text_move::TextMove), + /// Sketch-space modify tools: scale and offset, and later fillet, chamfer, the patterns, + /// mirror and move (`sketch_modify_ui`). + SketchModify(crate::sketch_modify_ui::Mod), + } + } } /// The Single hole placement's input: places on planar faces. A pick on or near a sketch point @@ -400,8 +407,13 @@ pub struct Dialog { pub profile_selection_changed: bool, /// Give the on-canvas value box the keyboard (and select its text) on the next frame. pub focus: bool, - /// Folded to its header (the "−" glyph). + /// Folded to its header (the shared disclosure chevron). pub collapsed: bool, + reset_scroll: bool, + /// Transient display preference; never part of a command or a saved feature. + pub preview_enabled: bool, + /// Preserve Apply intent across asynchronous evaluation; never a command parameter. + repeat_after_apply: bool, /// Parameters the dialog doesn't show but the command needs (kept when editing). pub extra: serde_json::Map, /// What the inputs were when OK was refused: `error` stays only while they still are. @@ -527,6 +539,9 @@ impl Dialog { profile_selection_changed: false, focus: true, collapsed: false, + reset_scroll: true, + preview_enabled: true, + repeat_after_apply: false, extra: serde_json::Map::new(), refused: None, then_start: None, @@ -567,15 +582,12 @@ impl Dialog { "solid.fillet" => Dialog::new(fillet_kind("2 mm", false), vec![SelInput::new("Edges", EDGES | FACES, true)]), "solid.chamfer" => Dialog::new(fillet_kind("1 mm", true), vec![SelInput::new("Edges", EDGES | FACES, true)]), "solid.shell" => { - let mut d = Dialog::new(Kind::Shell { thickness: "2 mm".into() }, vec![SelInput::new("Faces/Body", FACES, true)]); + let (kind, inputs) = Kind::simple_start(id)?; + let mut d = Dialog::new(kind, inputs); // Faces joined smoothly to the picked ones too. d.extra.insert("tangent_chain".into(), json!(true)); d } - "solid.draft" => Dialog::new( - Kind::Draft { angle: "5 deg".into() }, - vec![SelInput::new("Faces", FACES, true), SelInput::new("Neutral plane", PLANES | PLANAR_FACES, false)], - ), "solid.mirror" => { Dialog::new(Kind::Mirror, vec![SelInput::new("Objects", BODIES, true), SelInput::new("Mirror Plane", PLANES | PLANAR_FACES, false)]) } @@ -583,10 +595,6 @@ impl Dialog { Kind::Rib { web: id == "solid.web", thickness: "2 mm".into(), depth: String::new(), flip: false, normal: false }, vec![SelInput::new("Curves", CURVES, true)], ), - "solid.emboss" => Dialog::new( - Kind::Emboss { depth: "1 mm".into(), deboss: false }, - vec![SelInput::new("Profiles", PROFILES, true), SelInput::new("Target Face (optional)", FACES, false)], - ), "solid.replace_face" => Dialog::new( Kind::ReplaceFace, vec![SelInput::new("Faces", PLANAR_FACES, true), SelInput::new("Target", PLANES | PLANAR_FACES, false)], @@ -608,11 +616,6 @@ impl Dialog { Kind::PathPattern { count: "4".into(), spacing: "20 mm".into() }, vec![SelInput::new("Objects", BODIES, true), SelInput::new("Path", CURVES, true)], ), - "solid.pipe" => Dialog::new(Kind::Pipe { diameter: "5 mm".into(), wall: String::new() }, vec![SelInput::new("Path", CURVES, true)]), - "solid.bounding_solid" => Dialog::new(Kind::Stock { margin: "2 mm".into() }, vec![SelInput::new("Bodies (all if none)", BODIES, true)]), - "construct.plane.offset" => { - Dialog::new(Kind::OffsetPlane { offset: "0 mm".into() }, vec![SelInput::new("Plane", PLANES | PLANAR_FACES, false)]) - } "mesh.convert" => Dialog::new(Kind::MeshConvert { tolerance: "0.05 mm".into() }, vec![SelInput::new("Mesh body", BODIES, false)]), "construct.plane.midplane" => Dialog::new( Kind::Midplane, @@ -628,16 +631,10 @@ impl Dialog { "construct.plane.along_path" => { Dialog::new(Kind::PathPlane { t: "0.5".into(), sketch: None }, vec![SelInput::new("Path", CURVES | EDGES, false)]) } - "construct.plane.at_angle" => Dialog::new( - Kind::AnglePlane { angle: "45 deg".into() }, - vec![SelInput::new("Plane", PLANES, false), SelInput::new("Axis", AXES, false)], - ), "solid.split_body" => Dialog::new( Kind::Split, vec![SelInput::new("Body to split", BODIES, false), SelInput::new("Splitting tool", PLANES | FACES | AXES, false)], ), - "solid.scale" => Dialog::new(Kind::Scale { factor: "2".into() }, vec![SelInput::new("Bodies", BODIES, true)]), - "solid.offset_face" => Dialog::new(Kind::OffsetFaces { distance: "2 mm".into() }, vec![SelInput::new("Faces", PLANAR_FACES, true)]), "solid.thread" => Dialog::new( Kind::Thread { designation: String::new(), length: String::new(), suggested: None, of: Vec::new() }, vec![SelInput::new("Cylindrical face", FACES, false)], @@ -727,9 +724,9 @@ impl Dialog { Kind::Combine { operation: 1, keep_tools: false }, vec![SelInput::new("Target Body", BODIES, false), SelInput::new("Tool Bodies", BODIES, true)], ), - "parameters.change" => Dialog::new(Kind::Params { new_name: String::new(), new_expr: String::new() }, vec![]), _ => { - let (kind, inputs) = crate::dialogs_assembly::start(app, id) + let (kind, inputs) = Kind::simple_start(id) + .or_else(|| crate::dialogs_assembly::start(app, id)) .or_else(|| crate::dialogs_sheet::start(app, id)) .or_else(|| crate::dialogs_surface::start(app, id)) .or_else(|| crate::dialogs_save_mesh::start(app, id)) @@ -844,6 +841,7 @@ impl Dialog { Dialog::new(Kind::Rename { feature, name: name.to_string() }, vec![]) } + #[cfg(test)] pub fn confirm_delete(feature: u64, with: Vec, fail: Vec) -> Dialog { Dialog::confirm_delete_many(vec![feature], with, fail) } @@ -962,8 +960,7 @@ impl Dialog { /// Dialogs holding a table get the wide limit. pub fn is_wide(&self) -> bool { - matches!(self.kind, Kind::Params { .. } | Kind::SketchModify(crate::sketch_modify_ui::Mod::PatternRect { .. })) - || (matches!(self.kind, Kind::PatternRect { .. }) && self.inputs.first().is_some_and(|i| i.accept == selection::FEATURES)) + (matches!(self.kind, Kind::PatternRect { .. }) && self.inputs.first().is_some_and(|i| i.accept == selection::FEATURES)) || matches!(&self.kind, Kind::Motion(k) if k.wide()) } @@ -1391,6 +1388,36 @@ pub(crate) fn take_snap_work() -> (usize, usize) { mod face_snap_tests { use super::*; + /// A planar face's plane is found once per model state: an open Section Analysis on a face + /// asks for it several times a frame, and each lookup tessellates the body. + #[test] + fn a_planar_face_is_looked_up_once_per_model_state() { + let mut s = Session::default(); + s.execute("solid.box", &json!({"length":40,"width":30,"height":20})).unwrap(); + let top = |s: &Session| { + let st = s.world_state(); + let b = st.bodies.first().unwrap(); + let faces = b.body.faces(1e-3).unwrap(); + let f = faces.iter().max_by(|a, b| a.centroid.z.total_cmp(&b.centroid.z)).unwrap(); + (b.name.clone(), f.index) + }; + let (body, face) = top(&s); + take_snap_work(); + let first = planar_face(&s, &body, face).expect("the top face is planar"); + for _ in 0..5 { + assert_eq!(planar_face(&s, &body, face), Some(first)); + } + assert_eq!(take_snap_work().0, 1, "the same model state looks the face up once"); + assert!((first.0.z - 20.0).abs() < 1e-9 && (first.1 - Vec3::Z).len() < 1e-9, "{first:?}"); + + // A changed model is looked at again. + s.execute("solid.box", &json!({"length":10,"width":10,"height":50,"operation":"join"})).unwrap(); + let (body, face) = top(&s); + let again = planar_face(&s, &body, face).expect("the new top face is planar"); + assert_eq!(take_snap_work().0, 1); + assert!((again.0.z - 50.0).abs() < 1e-9, "{again:?}"); + } + #[test] fn a_point_more_than_a_micrometre_off_a_sliver_is_off_the_face() { // A triangle with half-micrometre legs. Points 2 µm below its lower side and 1.6 µm past @@ -1443,30 +1470,42 @@ fn profiles_used(s: &Session, sketch: u64) -> bool { /// The plane of a planar body face: (point on it, unit normal). pub fn planar_face(s: &Session, body: &str, face: usize) -> Option<(Vec3, Vec3)> { + let st = s.world_state(); + let known = FACE_PLANES.with(|c| { + let c = c.borrow(); + c.0.as_ref().filter(|k| std::sync::Arc::ptr_eq(k, &st)).and_then(|_| c.1.iter().find(|(b, f, _)| b == body && *f == face).map(|x| x.2)) + }); + if let Some(found) = known { + return found; + } #[cfg(test)] SNAP_WORK.with(|w| w.set((w.get().0 + 1, w.get().1))); - let st = s.world_state(); - let b = st.body(body)?; - let tol = (b.body.size() * 1e-3).max(1e-3); - let f = b.body.faces(tol).ok()?.into_iter().find(|f| f.index == face)?; - Some((f.centroid, f.plane_normal?)) -} - -fn polyline_mid(pts: &[Vec3]) -> Vec3 { - let len: f64 = pts.windows(2).map(|w| w[0].dist(w[1])).sum(); - let mut acc = 0.0; - for w in pts.windows(2) { - let l = w[0].dist(w[1]); - if acc + l >= len * 0.5 && l > 0.0 { - return w[0].lerp(w[1], (len * 0.5 - acc) / l); + let found = st.body(body).and_then(|b| { + let tol = (b.body.size() * 1e-3).max(1e-3); + let f = b.body.faces(tol).ok()?.into_iter().find(|f| f.index == face)?; + Some((f.centroid, f.plane_normal?)) + }); + FACE_PLANES.with(|c| { + let mut c = c.borrow_mut(); + if !c.0.as_ref().is_some_and(|k| std::sync::Arc::ptr_eq(k, &st)) { + *c = (Some(st.clone()), Vec::new()); } - acc += l; - } - pts.first().copied().unwrap_or_default() + if c.1.len() >= 8 { + c.1.remove(0); + } + c.1.push((body.to_string(), face, found)); + }); + found } -fn pt(v: Vec3) -> Value { - json!([v.x, v.y, v.z]) +thread_local! { + /// The planar faces looked up last, with the model state they were found in (kept, so the + /// pointer stays its own). Each lookup tessellates the whole body, about 0.1 s for an + /// imported part of a few million triangles, and an open Section Analysis on a face asks + /// for its plane several times a frame. + #[allow(clippy::type_complexity)] + static FACE_PLANES: std::cell::RefCell<(Option>, Vec<(String, usize, Option<(Vec3, Vec3)>)>)> = + const { std::cell::RefCell::new((None, Vec::new())) }; } /// A plane input as a command parameter: an origin/construction plane name or a face plane. @@ -1481,78 +1520,32 @@ fn plane_value(s: &Session, sel: Option<&Sel>) -> Option { } } -/// A value field; true when Enter was pressed in it. -pub(crate) fn field(ui: &mut egui::Ui, s: &mut String) -> bool { - let r = ui.text_edit_singleline(s); - publish_row(&r); - crate::params_dialog::complete(ui, &r, s); - r.lost_focus() && ui.input(|i| i.key_pressed(egui::Key::Enter)) -} - -/// A checkbox row. Its row handle (`dialog:`) lets a scenario click it by the label -/// beside it, the way `field` already publishes one for a value field. -pub(crate) fn check(ui: &mut egui::Ui, on: &mut bool) { - let r = ui.checkbox(on, ""); - publish_row(&r); -} - -pub(crate) fn combo(ui: &mut egui::Ui, id: &str, labels: &[&str], sel: &mut usize) { - let row = ROW.with(|r| r.borrow().clone()); - let selected = labels.get(*sel).copied().map(tr).unwrap_or(""); - let r = egui::ComboBox::from_id_salt(id).selected_text(selected).width(FIELD_W).show_ui(ui, |ui| { - for (i, l) in labels.iter().enumerate() { - let item = ui.selectable_value(sel, i, tr(l)); - crate::scenario::publish_handle(&format!("dialog:{row}:{l}"), item.rect.center()); +/// Put non-empty optional values into the parameters. +pub(crate) fn put(p: &mut Value, list: &[(&str, &str)]) { + for (k, v) in list { + if !v.trim().is_empty() { + p[*k] = json!(v); } - }); - publish_row(&r.response); -} - -/// A mode choice as a row of icon buttons rather than a drop-down: every mode is on screen at -/// once, each drawn as the shape it makes, with its name as the tooltip. `labels` and `icons` -/// run in step; a mode with no icon gets the fallback square. Publishes the handles a combo -/// does, `dialog::