Translatable command titles !391

merged merged by cmc on 2026-11-19 21:25 UTC · krz/orgstar:command-title-strings into main

Discussion

cmc
  • Sources/OrgApp/CommandTitles.swift: every command title as a String(localized:) literal, so scripts/sync-strings.sh extracts them. Generated by CommandTitleTests from EditorCommands.all (which includes Commands.everything) and the iOS palette's (id, title) pairs in EditorScreen.swift; the test fails when the file is stale. Rewrite with ORGSTAR_WRITE_COMMAND_TITLES=1 swift test --filter CommandTitleTests.
  • CommandTitle.localized (OrgCore) looks a title up in the main bundle. Used by the Mac palette (search matches the translated or English title), the Org, export, publish and clock menus, and the iOS palette.
  • Catalog: 247 titles added untranslated; 70 already-translated entries gain the comment, translations unchanged. Kept in the catalog's JSON format.

Not covered: command titles inside messages (MobileEditor.unavailable) and keymap hint labels.