Skip to content

영어 UI와 영어 스크린샷 - #10

Merged
knoxxr merged 17 commits into
mainfrom
ccr-da6cba6f-qulklh
Nov 20, 2026
Merged

knoxxr merged 17 commits into
mainfrom
ccr-da6cba6f-qulklh

Conversation

@knoxxr

@knoxxr knoxxr commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

내용

앱 전체를 영어로도 쓸 수 있게 했습니다(정보 메뉴 → 언어 / Language, 다시 시작하면 적용). 영어 앱 등록용 스크린샷 18장을 추가했습니다.

구조 (src/kstruct/i18n.py)

  • 코드의 한국어 원문을 tr("…")로 감싸고, 영어는 resources/i18n/en/*.json({한국어: English})에서 찾습니다. 값은 tr("부품 {name}", name=…).
  • 한국어 모드에서 tr은 원문 그대로 → 기존 화면·보고서·테스트가 바뀌지 않습니다(보고서 HTML은 강도·진동·좌굴·열 모두 바이트 단위로 동일 확인).
  • N_(): import 때 만들어지는 상수 표(보여 줄 때 tr), tr_data(): 내장 재료·기준 팩 이름(en/data.json), 사용자 입력 이름은 그대로.
  • 언어는 prefs.language() 또는 KSTRUCT_LANG=en. 도움말은 help/en.json(88개 항목, 없으면 한국어).

번역 범위

7단계 패널, 메인 창·메뉴·체크리스트·시작 화면, 판정·쉬운 설명·메모, 조건 설명 문장, PDF 보고서, 업데이트·정보·문제 보고·사용자 재료 창, 솔버·메시·가져오기 오류 메시지, 재료 설명·기준 팩 문구, 도움말 전체. 문장은 조각을 이어 붙이지 않고 문장 단위로 번역했습니다(영어 어순).

검사 (tests/test_i18n.py, 10개)

  • tr 밖에 남은 한글 리터럴(로그·docstring 제외), 영어가 없는 문구, {자리표시자} 불일치, 파일 간 같은 키의 다른 번역, 영어 도움말 누락·한글 잔존.
  • 영어 창으로 강도·진동·열 해석을 실제로 돌리고 7단계를 모두 돌며 위젯 글자·툴팁·목록·콤보·표·메뉴·색 막대 제목과 보고서 HTML에 한글이 하나라도 남으면 실패, 번역 누락 경고도 0이어야 통과.

함께 고친 것

  • 영어 라벨이 길어 측면 패널이 넘치던 것(최대 476 px, 한국어 399 px) → 라벨을 줄여 394 px 이내.
  • 한국어 문구 중 앱과 맞지 않던 것: 시작 화면·도움말의 "왼쪽의 7단계"(단계는 위쪽), 열 도움말의 "과도 해석은 지원하지 않습니다"(지원함), 피로 도움말의 표면 가정(설정 가능), 진동 메모의 '운전 진동수' → 실제 입력칸 이름 '운전 속도'.
  • 한국어 시작 화면 스크린샷 2장은 바뀐 문구로 다시 찍음.

스크린샷

docs/screenshots/en/1920x1080/, docs/screenshots/en/2880x1800/ (9장씩). packaging/all_store_screenshots.sh ko|en으로 언어별 전체 재생성, README에 영어 설명 문구 추가.

확인

  • CI와 같은 환경(PYVISTA_OFF_SCREEN=true xvfb-run)에서 전체 193 passed(한국어 183 + 언어 10), 라벨 수정 후 test_i18n·test_improvements 24 passed.
  • ruff check/format 통과.
  • 스크린샷 18장을 눈으로 확인(잘림·한글 잔존 없음).

Generated by Claude Code

Raise the release version to 0.2.0 (pyproject, RELEASE_VERSION, Inno Setup
default, lockfile) so the v0.2.0 tag matches and installed 0.1.0.x builds
are offered the update.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuHPqp7Wrrs8zF7CMvh
….2.1

The v0.2.0 tag build was the first CI run that got runners, and 28 UI tests
failed on Windows and Linux: the headless-display action sets
PYVISTA_OFF_SCREEN=true, so QtInteractor created no interactor and
plotter.iren was None. The viewer now always asks for an interactive one.

With that fixed, the UI tests crashed in VTK render() under Xvfb/Mesa after
about twenty windows: a closed window never released its OpenGL render
window. MainWindow.closeEvent now calls viewer.shutdown(), which stops the
animation timer and closes the plotter. Full suite with CI's environment:
183 passed.

The macOS job was cancelled the moment it was created (no runner), and the
release job needs every build job, so it was skipped. It now runs unless a
build failed, and refuses to publish an empty release.

Version 0.2.1 so the fixed commit gets a fresh tag instead of moving v0.2.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuHPqp7Wrrs8zF7CMvh
A manual run of the build workflow on main now builds as usual and the
release job creates the v<pyproject version> tag and the GitHub Release at
that commit (it refuses when the tag already exists). Tag pushes work as
before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuHPqp7Wrrs8zF7CMvh
…ux; 0.2.2

Windows CI failed test_contact_solver_reuses_the_factorization: the solver's
answer differed from a fresh factorization by 1.3e-6 of the peak displacement
(limit 1e-6). The Woodbury update alone is only as accurate as cond(S)*eps:
on the lap joint cond(S) ~ 8.5e5 left 8.3e-7, while two direct solves with
different orderings agree to 6e-10. One step of iterative refinement with the
same operator brings it to 9.3e-10; the step is kept only when it is a small
correction.

The v0.2.1 run still published a Release although the Windows build failed:
with one leg failed and another (macOS, no runner) cancelled,
needs.build.result reads 'cancelled'. The release job now also requires the
Windows installer and the Linux archive to be present.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuHPqp7Wrrs8zF7CMvh
…, checks

kstruct.i18n.tr(korean, **values) returns the Korean source unchanged (and
str.format-ed when values are given) or its English entry from
resources/i18n/en/*.json; N_() marks module-level constants, tr_data()
translates built-in data labels and leaves user-entered names alone. The
language is read from prefs (or KSTRUCT_LANG) when the main window starts;
the info menu gets a 언어 / Language submenu (applies after restart). Help
falls back to Korean per topic.

tests/test_i18n.py fails until the translation lands: it finds every Korean
literal outside tr()/N_()/log calls, every tr() text without an English
entry, mismatched placeholders, and missing English help topics.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuHPqp7Wrrs8zF7CMvh
test_i18n opens the window in English, solves the sample bracket (static,
modal, thermal), visits every step and fails on any Hangul in widget texts,
tooltips, list/combo/table items, menus, colour-bar titles or the report.
packaging/all_store_screenshots.sh ko|en shoots every scene at both sizes
(English into docs/screenshots/en/); README gets English captions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuHPqp7Wrrs8zF7CMvh
en.json mirrors all 88 topics of ko.json (same keys, HTML and related
links). In both languages: thermal help no longer says transient analysis is
unsupported, the steps are at the top (not on the left), and fatigue help
mentions the surface/reliability settings instead of assuming a machined
surface.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuHPqp7Wrrs8zF7CMvh
Report HTML in Korean is byte-identical to before for static, modal, buckling and
thermal runs. Also a test that catalog files agree on shared texts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuHPqp7Wrrs8zF7CMvh
…lver/data groups)

Snapshot of files the translation agents are still editing; completed by the
following commits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuHPqp7Wrrs8zF7CMvh
Module label tables are N_()-marked and shown through tr(); data and user labels
through tr_data(). Korean output unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuHPqp7Wrrs8zF7CMvh
…ument i18n

report/summary.py and describe.py build whole sentences per tr() text; verdict
labels translate on lookup. Shared keys get one English each (Part, Custom
material, Bolted joint); the singularity kind is translated where the main window
shows it. CLAUDE.md describes tr/N_/tr_data, the catalogs and the checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuHPqp7Wrrs8zF7CMvh
… top

Long English radio/checkbox/form labels made the step panels wider than the side
bar (up to 476 px vs 399 in Korean) and clipped text and help buttons; they are
shortened, with help and notes quoting the new labels. US spelling throughout.
The welcome text (both languages) now says the steps are at the top, and the
modal note names the 'operating speed' field as it is labelled.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuHPqp7Wrrs8zF7CMvh
All nine scenes at 1920x1080 and 2880x1800 shot with KSTRUCT_LANG=en; the Korean
welcome screenshots are reshot for the corrected 'steps at the top' text. Labels
that were clipped in the English shots are shorter (plastic strain field, mode
shape colour bar, mode list entries).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A9NzuHPqp7Wrrs8zF7CMvh
@knoxxr
knoxxr merged commit 2e22d1d into main Nov 20, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants