Skip to content

Desktop Translator v0.5.1 — Selection examples

Latest

Choose a tag to compare

@Ldsystem Ldsystem released this 27 Aug 02:37
d07281e

Selection translations keep the containing sentence as a study example, and Chinese-to-English wordbook entries use English as the Related Words anchor. This patch omits the example when Accessibility does not expose the selected text, which avoids a crash on some Chrome and Electron surfaces.

What's new

  • Native selections capture the containing sentence when Accessibility exposes enough local text to identify it unambiguously.
  • Eligible wordbook entries persist that optional example and refresh it only when a later lookup supplies a new valid sentence. Context is never invented.
  • New Chinese-to-English vocabulary is stored as English source and Chinese translation, so Related Words stays English-led.
  • Related Words shows the saved sentence as its subtitle when one exists, keeps concise fallback copy otherwise, and no longer shows textbook provenance details.
  • Example capture now stays silent when Chrome or Electron expose only a partial accessible value.

Install

Download the .dmg and drag the app to Applications. The build is
universal: it runs natively on both Apple Silicon and Intel Macs.

These builds are not signed with an Apple Developer ID, so
macOS Gatekeeper will refuse the first launch. To allow it, run:

xattr -dr com.apple.quarantine "/Applications/Desktop Translator.app"

On first run, grant Accessibility permission when prompted, then
choose Google, Baidu, or Microsoft Translator in Settings and add
that provider's credentials. Vocabulary Study includes an offline
English to Simplified Chinese starter textbook.

The app is ad-hoc signed, so its code identity changes with every
release. After installing an update, macOS drops the old grant:
remove the stale entry in Privacy & Security → Accessibility and
add the new one.

Platform support

macOS (universal .dmg / .app) and Windows 10/11 x64 (NSIS
*_x64-setup.exe). Windows installers are not Authenticode
signed
. See docs/windows-signing-and-supply-chain.md.