Files
OpenTerminal/src/shared/i18n/dicts/en/main.ts
T
Bill 35583b2c15 feat(lock): main-window lock screen; harden env gating, sandbox and ssh teardown
Lock screen (main-window overlay, no second window):
- scrypt password verifier in <userData>/lock.json (per-write salt,
  timingSafeEqual); salt/hash/password never leave the main process
- lock now / idle auto-lock / lock at startup, growing failure cooldown,
  lock flags persisted so a quit-and-relaunch cannot bypass the lock
- locked shell and body portals go inert while sessions keep running;
  menu accelerators (reload, DevTools, zoom) are swallowed while locked
- settings gains a Lock tab; all copy in zh-CN/zh-TW/en/ja

Security and stability:
- packaged builds ignore ELECTRON_RENDERER_URL / OT_UPDATE_URL (devEnv)
- renderer preload runs with sandbox: true
- unreadable known_hosts store fails closed instead of being overwritten
- connect-time secrets gated by the bookmark's auth method (connectPromptFor)
- ssh stream teardown is idempotent: PTY_EXIT broadcasts exactly once
- sysinfo polling is refcounted for split panes (forceStopPolling on close)
- session-log index entries are path-contained; settings store writes
  atomically with EPERM/EBUSY retry
- sync-changelog tolerates CRLF checkouts (was a silent no-op)
- retry ssh2 host-key generation (flaky malformed key, ~1/500)

Tests: lock-store + lock-controller suites; transport-death PTY_EXIT e2e;
GitHub Actions CI (typecheck + 10 offline tests + build)
2026-09-24 22:16:43 +08:00

60 lines
3.2 KiB
TypeScript

/** Namespace: main (main-process strings: tray, close prompt, updater). Owner: main process. */
const main: Record<string, string> = {
'main.tray.showWindow': 'Show main window',
'main.tray.closeAction': 'Close button action',
'main.tray.askEveryTime': 'Ask every time',
'main.tray.minimizeToTray': 'Minimize to tray',
'main.tray.exitDirectly': 'Exit directly',
'main.tray.exit': 'Exit',
'main.tray.balloonTitle': 'Minimized to tray',
'main.tray.balloonContent': 'Terminal sessions keep running in the background. Click the tray icon to restore the window.',
'main.tray.closeTitle': 'Close OpenTerminal',
'main.tray.closeMessage': 'Minimize to tray, or exit now?',
'main.tray.closeDetail': 'Minimizing to tray keeps your terminal sessions running.',
'main.tray.rememberChoice': 'Remember my choice, never ask again',
'main.updater.feedFailed': 'Gitea feed: {gitea}; GitHub: {github}',
'main.ssh.connectTimeout': 'Connection timed out ({host}:{port})',
'main.ssh.saveFingerprintFailed': 'Failed to save the host fingerprint: {detail}',
'main.ssh.knownHostsUnreadable': 'The known-hosts file (ssh_known_hosts.json) exists but could not be read. The connection was refused to protect the pinned fingerprints. Repair or delete the file and try again.',
'main.ssh.hostKeyRejected': 'The user rejected the host key',
'main.ssh.connectFailed': 'Connection failed {host}:{port}: {detail}',
'main.ssh.shellOpenFailed': 'Could not open the SSH shell ({host}:{port}): {detail}',
'main.ssh.initFailed': 'SSH connection initialization failed ({host}:{port}): {detail}',
'main.ssh.readKeyFailed': 'Could not read the private key file {path}: {detail}',
'main.sftp.sessionGone': 'The SSH session does not exist or has disconnected',
'main.sftp.deleteFailed': 'Delete failed: {detail}',
'main.sftp.invalidMode': 'Invalid permission value: {mode}',
'main.sftp.invalidUidGid': 'Invalid uid/gid',
'main.sftp.commandTimeout': 'Command timed out',
'main.sftp.commandExitCode': 'Command exited with code {code}',
'main.sftp.cancelled': 'Cancelled',
'main.zmodem.transferFailed': 'Transfer failed',
'main.zmodem.transferTimeout': 'Transfer timed out',
'main.zmodem.sendFailed': 'Sending failed',
'main.zmodem.uploadFailed': 'Upload failed',
'main.zmodem.receiveFailed': 'Receiving failed',
'main.zmodem.abnormal': 'ZMODEM transfer error',
'main.zmodem.cancelled': 'Cancelled',
'main.zmodem.offerTimedOut': 'No files selected, cancelled',
'main.zmodem.sessionInvalid': 'The session is no longer valid',
'main.zmodem.sessionCreateFailed': 'Could not establish the ZMODEM session',
'main.zmodem.noSaveDir': 'No save directory specified',
'main.zmodem.noFiles': 'No files selected',
'main.ipc.connectionMissing': 'Connection bookmark not found ({id})',
'main.sysinfo.sessionGone': 'SSH session is missing or disconnected',
'main.sysinfo.execFailed': 'SSH exec failed',
'main.sysinfo.pollTimeout': 'Monitoring command timed out',
'main.sysinfo.parseFailed': 'Parse failed: {message}',
'main.pty.serviceNotReady': 'SSH session service is not initialised yet',
'main.pty.missingConnectionId': 'SSH session is missing its connectionId',
'main.log.tuiOmitted': 'full-screen (TUI) output omitted'
}
export default main