Would a selectable menu display language (e.g. Simplified Chinese) be welcome? #2303
Labels
No labels
accessibility
autorelease: pending
autorelease: tagged
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
question
testing wanted
wontfix
No milestone
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Hookshot#2303
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The idea
Would a selectable menu display language be welcome?
I'd like to gauge interest before writing a larger change. Hookshot's in-game menu is currently English-only.
The game itself already ships Simplified Chinese (and other) text and CJK fonts, but the options menu drawn by
hookshot_vk.dllhas no way to change its own display language. Players who don't read English have to use acommunity patch that rewrites the compiled DLL.
Is upstream open to the menu having a selectable display language, at least English + Simplified Chinese,
with more languages addable later? If so, does the approach below look acceptable, or would you prefer a
different direction?
Proposed approach (draw-time translation)
strcmpcomparisons (ini_key(),is_motion_row(),cheat_value(...) == "On"), so they must not be renamed.en -> zhtable; atr(const char*)looks up the string at thedraw call only and returns the original pointer in English or when a string is untranslated. No comparisons
or keys ever see translated text, so saved settings and the cheat-toggle highlights keep working.
Languagetab after Debug holds oneEnglish / 简体中文row, applied at once (no restart), saved asmenu_langinhookshot_options.ini..bfttffaces. Theromfs.bfotffilesare never modified — replacing them crashes the guest font loader, so the plan is a
.bfotf→.bfttffilename fallback in
vk_game_font.hplus a font choice invk_imgui.cpp.Questions for you
gettext-style catalogs / a different structure?
.bfttffaces for the menu font, versus shipping a separate font?and Teleport pages follow-ups?
I have a working, compiling prototype on a
v2.1.0fork (56 draw sites, a generated 430-entry table, one smalltest). Happy to open it as a PR, rebase on
main, and split it however is easiest to review. No game data orgenerated files would be included.
This is a screenshot of part of the game menu after the localization is completed
Assisted-by: WorkBuddy (Claude) — drafting and code research.
Anything else
No response
支持支持 虽然我自己拿ai汉化了
嗯嗯,我反正自己fork了,以后有版本更新也可以一边同步最新版本,一边保持中文支持😄
Thanks for the report. Reports of the same problem are now collected in #1007, which lists this one with your details and links back here, so one fix closes them together and the open list stays readable. Follow #1007 for the fix, and add new details there (or here). If this turns out to be a separate problem it will be reopened.
@NotRexed OK,Thank you very much~~