fix(i18n): correct broken keys and mistranslations in en-US/zh-Hant locales - #6746
Open
simpleqt wants to merge 2 commits into
Open
fix(i18n): correct broken keys and mistranslations in en-US/zh-Hant locales#6746simpleqt wants to merge 2 commits into
simpleqt wants to merge 2 commits into
Conversation
- README.md language switcher used href="/README_CN.md" and href="/README.md"; on GitHub absolute paths resolve against the domain, not the repo, so both 404. Drop the leading slash so they resolve to the sibling files in the repository root. - ui/public/tool/*/detail.md referenced screenshots via /admin/tool/img/*.jpg. The images actually live in ui/public/tool/img/ and the /admin/ prefix is host-absolute: it only happens to work in a default MaxKB deployment (ADMIN_PATH=/admin) and breaks on GitHub or any custom ADMIN_PATH. Replace with relative ../img/ paths that point at the real files in the repo.
…ocales - workflow.ts (en-US, zh-Hant): the showCondition/hideCondition keys contained an invisible U+200C zero-width non-joiner, so lookups from Constructor.vue fell through and the Visibility Setting dialog rendered the raw key instead of 'Show Condition'/'Hide Condition' - common.ts (en-US): task status STARTED was translated as 'Padding'; zh-CN/zh-Hant say 执行中/執行中 (Running) - workflow.ts (en-US): 'Iniiator' -> 'Initiator'; stray trailing quote in 'Restore Previous Version"' rendered on three workflow pages; 'Wireless loop' -> 'Infinite loop' (无限循环), consistent with infiniteLoop elsewhere in the same file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
All verified at HEAD:
ui/src/locales/lang/{en-US,zh-Hant}/workflow.ts: theshowCondition/hideConditionkeys contained an invisible U+200C zero-width non-joiner, so the lookups inConstructor.vue(workflow.nodes.baseNode.visibilitySetting.showCondition/hideCondition) fell through and the Visibility Setting dialog rendered the raw key instead of "Show Condition"/"Hide Condition". Removed the U+200C from both locales (zh-CN is clean).en-US/common.ts: task statusSTARTEDwas translated as 'Padding'; zh-CN/zh-Hant say 执行中/執行中 → 'Running'. Shown in the execution-record drawers.en-US/workflow.ts:initiator: 'Iniiator'→ 'Initiator' (column header in execution records)restoreVersion: 'Restore Previous Version"'— stray trailing quote rendered on three workflow pages'Wireless loop must have a Break node'→ 'Infinite loop...' (无限循环; the same file already uses 'Infinite Loop' forinfiniteLoop)