Skip to content

[codex] Add Simplified Chinese localization and input settings#74

Draft
kogekiplay wants to merge 2 commits into
hugeBlack:mainfrom
kogekiplay:codex/zh-hans-localization
Draft

[codex] Add Simplified Chinese localization and input settings#74
kogekiplay wants to merge 2 commits into
hugeBlack:mainfrom
kogekiplay:codex/zh-hans-localization

Conversation

@kogekiplay

@kogekiplay kogekiplay commented Jun 8, 2026

Copy link
Copy Markdown

Summary

  • Add Simplified Chinese (zh-Hans) localization resources without adding an English localization table, so existing English literals remain the fallback.
  • Localize dynamic UI strings that SwiftUI cannot resolve automatically from string variables.
  • Add direct-mode drag behavior settings: the default direct one-finger drag now sends mouse-wheel scrolling, while the previous immediate-drag behavior remains available via Settings.
  • Increase direct-mode scroll sensitivity and keep sub-step wheel accumulation for smoother small movements.
  • In direct scroll mode, long-press then move performs left-button drag/selection; long-press without moving sends a right-click, matching the existing two-finger tap behavior.
  • Add Copy/Paste controls to the in-session overlay. They now use a manual Shortcut Modifier setting: choose Control for Windows hosts and Command for Mac hosts.
  • In direct mode, hide the remote system cursor and show a simple semi-transparent white touch point only around touch start; it hides after click, long-press, scroll, or drag actions.
  • Add lightweight check scripts for required localization and input preference hooks, including guards against removed auto-keyboard and host auto-detection settings.

Validation

  • scripts/check_localizations.sh
  • scripts/check_input_preferences.sh
  • plutil -lint OpenParsec/zh-Hans.lproj/Localizable.strings
  • git diff --check
  • rg -n "hostMacOS|shortcutModifierForHost|autoShowKeyboard|Auto Show Keyboard|showKeyboardIfEnabledAfterTap" OpenParsec returned no matches
  • xcodebuild build -scheme OpenParsec -project OpenParsec.xcodeproj -sdk iphoneos -arch arm64 -configuration Release CODE_SIGN_IDENTITY= CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
  • xcodebuild archive -archivePath /Users/kogeki/dev/OpenParsec/build/archive -scheme OpenParsec -project OpenParsec.xcodeproj -sdk iphoneos -arch arm64 -configuration Release CODE_SIGN_IDENTITY= CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
  • /usr/bin/unzip -tq build/OpenParsec.ipa
  • codesign --verify --deep --strict --verbose=2 build/Payload/OpenParsec.app
  • plutil -extract GitCommitInfo raw -o - build/Payload/OpenParsec.app/Info.plist

Notes

  • The generated unsigned IPA contains Payload/OpenParsec.app/zh-Hans.lproj/Localizable.strings.
  • The generated IPA reports GitCommitInfo as Release (codex/zh-hans-localization/6e0efdf).
  • The existing build script still prints a non-fatal cp Resources/*.lproj warning because the repository has no Resources directory; this PR does not change that unrelated script behavior.

@kogekiplay kogekiplay changed the title [codex] Add Simplified Chinese localization [codex] Add Simplified Chinese localization and input settings Jun 8, 2026
@kogekiplay kogekiplay force-pushed the codex/zh-hans-localization branch 2 times, most recently from 668c118 to fe16152 Compare June 8, 2026 16:29
@kogekiplay kogekiplay force-pushed the codex/zh-hans-localization branch from fe16152 to 6e0efdf Compare June 8, 2026 16:49
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.

1 participant