Cotton code
362 lines · 19.9 KB · JSONRaw
{  "format_version": 1,  "id": "host",  "this_mac": {    "title": "This Mac",    "loading_title": "Reading what this Mac is doing…",    "loading_body": "The core answers as soon as the server has said where it is.",    "this_mac_heading": "This Mac",    "no_database_yet": "This Mac has no database yet.",    "first_run_question": "Is this your first device?",    "first_run_body": "Start a new database here, or join one you already have on another device. Either way this Mac serves your database itself — every device keeps a full copy and they agree with each other.",    "start_new_heading": "Start a new database",    "start_new_body": "A new, empty database is created on this disk and the server runs here. This Mac becomes its first approved device; every other device joins against it.",    "start_new_button": "Start a new database",    "join_heading": "Join my database",    "join_body": "Type the name of your database, or the address of the device that holds it. This Mac asks to join and shows six digits; approve them on a device that is already in.",    "join_field_label": "Database",    "join_placeholder": "acorn, or https://…",    "join_button": "Ask to join",    "join_waiting_heading": "Waiting to be let in",    "join_waiting_body": "Approve on a device that is already in.",    "join_cancel_button": "Cancel",    "join_already_waiting": "This Mac is already waiting to be approved.",    "join_pulling_heading": "Pulling your database",    "join_pulling_body": "Your database is copying to this Mac. This happens once, and it can take a few minutes on a big database — don't quit the app.",    "join_failed_heading": "This Mac could not finish joining",    "join_retry_button": "Try again",    "naming_heading": "Name your database",    "naming_body": "This is the address every other device dials. Letters, digits and hyphens.",    "naming_button": "Use this name",    "naming_checking": "Checking…",    "naming_free": "That name is free.",    "naming_taken": "Somebody already has that name.",    "naming_unknown": "This Mac could not reach the relay to check that name. Try again in a moment.",    "naming_invalid_fallback": "That is not a name the relay will take. Letters, digits and hyphens.",    "serving_note": "Your other devices reach the database through this Mac while it is serving. Every device holds a full copy, so nothing is lost while it is not.",    "restart_button": "Restart",    "name_heading": "The name of your database",    "name_body": "The name gives your database an address on the internet through the Cotton relay, so your phone and your assistants reach it from anywhere. It lives in the database itself, so every device uses the same one.",    "name_field_label": "Database name",    "name_placeholder": "e.g. acorn",    "name_button": "Save the name",    "name_restart_note": "Saved. Restart from Serving, on this Mac’s own page, for assistants to reach it at the new address.",    "leave_body": "This Mac forgets the address and deletes its copy of the database. Its device key is kept, so joining again makes it the same Mac to your other devices.",    "leave_button": "Leave",    "leave_anyway_button": "Leave anyway",    "sources_heading": "What this Mac reads",    "import_button": "Import",    "importing_button": "Reading…",    "full_disk_access_button": "Open Full Disk Access settings",    "pairing_heading": "Devices",    "pairing_intro": "Everything that can open your database, and anything waiting to join.",    "approve_button": "Yes, let it in",    "decline_button": "No",    "devices_heading": "Devices on this server",    "forget_button": "Forget",    "no_pending": "Nothing is waiting. On the other device, open Cotton and let it look for this Mac.",    "wrong_digits": "Those six digits don't match — read them again from the phone.",    "code_expired": "That request expired — ask from the device again.",    "no_devices": "No devices yet — the server writes this Mac's own row when it starts.",    "root_note": "This Mac is the root device of its own workspace — it cannot be revoked; leaving the server role is the way to remove it.",    "forget_note": "Forget ends a device's access here; what it already synced stays on it — a phone's passcode, Face ID and Find My are its own defences.",    "rebuilt_signature_note": "A rebuilt CottonDB carries a new code signature, and the Keychain asks again for each one.",    "this_mac_word": "This Mac",    "seen_now": "here now",    "backup_heading": "Backup",    "no_daily_copies": "Nothing is copied yet — this Mac serves no database.",    "recovery_key_heading": "Recovery key",    "recovery_key_covers": "This one key opens your passwords. It is minted when this Mac first starts its server.",    "backup_now_button": "Back up now",    "backup_checking_button": "Copying…",    "recovery_key_button": "Show the recovery key",    "recovery_key_confirm_title": "Show the recovery key?",    "recovery_key_confirm_body": "This is the one secret that opens your passwords. Anyone who has it can read every password in your database, and without it — if this Mac is lost — nobody can, including you. Keep it somewhere that is not this Mac.",    "recovery_key_confirm_button": "Show it",    "recovery_key_cancel_button": "Not now",    "recovery_key_hide_button": "Hide",    "copy_button": "Copy",    "session_host_approve_button": "Open Login Items",    "serving_line": {      "line": "Serving your database — it has no name yet",      "answering": "Serving your database — {name}",      "standby": "Standing by — another Mac answers for {name} right now",      "not_connected": "Not answering for {name} — this Mac is not connected to the relay",      "unknown": "Your database — {name}"    },    "leave_heading": {      "line": "Leave this database on this Mac",      "named": "Leave {name} on this Mac"    },    "source_name": {      "call_history": "Call history",      "whatsapp_link": "WhatsApp, linked"    },    "source_blurb": {      "call_history": "Calls your iPhone made and answered, as iCloud syncs them here.",      "whatsapp_link": "New WhatsApp messages as they arrive, with this Mac linked as a device."    },    "state_word": {      "no_permission": "Needs permission",      "not_found": "Nothing here",      "error": "Failed",      "reading": "Reading",      "ready": "Ready"    },    "source_state_line": {      "line": "This source could not be read.",      "no_permission": "macOS has not let CottonDB read this yet.",      "not_found": "Nothing to read on this Mac yet.",      "error": "Could not be read.",      "ready": "Ready to read.",      "rows": "{total} rows to read."    },    "pairing_refusal": {      "pairing_ambiguous": "Two phones are showing those same six digits — approve the one you mean from its own row."    },    "keychain_no_identity": {      "waiting": "The Keychain dialog was not answered in time when the app started, so this Mac has no device identity. Quit CottonDB, open it again, and click Always Allow on the Keychain dialog.",      "refused": "The Keychain would not hand over this Mac's device key (status {status}), so this Mac has no device identity. Quit CottonDB, open it again, and click Always Allow on the Keychain dialog."    },    "forgotten_word": {      "line": "forgotten"    },    "seen_line": {      "never": "not seen yet",      "unreadable": "last seen",      "on": "last seen {day}"    },    "platform_word": {      "ios": "iPhone",      "android": "Android",      "mac": "Mac",      "other": "device"    },    "keychain_note": {      "waiting": "macOS is asking whether CottonDB may use this Mac's device key, and the dialog has not been answered — so this Mac has no device identity today and no phone can be approved from it. The server started anyway and the relay line is unaffected. Answer the dialog with Always Allow, then quit CottonDB and open it again. Nothing was overwritten and nothing was minted.",      "refused": "macOS would not hand over this Mac's device key, so this Mac has no device identity today and no phone can be approved from it. Quit CottonDB and open it again, then choose Always Allow when macOS asks. Nothing was overwritten and nothing was minted."    },    "vault_key_note": {      "minted": "This Mac had no passwords key, so it made one. Your passwords stay locked here until the Mac that holds them shares the key again, which usually takes a few minutes. Nothing was lost: what is in your database is locked with the database's own key, not with this Mac's.",      "replaced": "This Mac's passwords key could not be a key, so it was replaced. Your passwords stay locked here until the Mac that holds them shares the key again. Nothing was lost: what is in your database is locked with the database's own key, not with this Mac's.",      "blocked": "This Mac's passwords key is there and macOS would not hand it over, so your passwords stay locked on this Mac today. Nothing was overwritten and nothing was minted. Quit CottonDB and open it again, then choose Always Allow when macOS asks.",      "waiting": "macOS is asking whether CottonDB may use this Mac's passwords key, and the dialog has not been answered — so your passwords stay locked on this Mac today. The server started anyway and everything else in your database is served normally. Answer the dialog with Always Allow, then quit CottonDB and open it again. Nothing was overwritten and nothing was minted.",      "refused": "macOS would not hand over this Mac's passwords key, so your passwords stay locked on this Mac today. The server started anyway and everything else in your database is served normally. Quit CottonDB and open it again, then choose Always Allow when macOS asks."    },    "join_pulling_of": "{read} of {whole}",    "progress_line": {      "open": "{read} read, {written} added so far.",      "of": "{read} of {total} read, {written} added so far."    },    "result_line": {      "counts": "{read} read, {written} added, {skipped} already here",      "counts_dropped": "{read} read, {written} added, {skipped} already here, {dropped} skipped",      "ok": "Last import {at} — {counts}.",      "stopped": "Last import {at} stopped — {counts}.",      "stopped_why": "Last import {at} stopped — {counts} — {why}."    },    "join_request_line": "\"{name}\" wants to join",    "digits_question": "Does it show {digits}?",    "photos_on_one_machine": {      "one": "{n} photo is on one machine only. A second Mac on this server copies them for you.",      "many": "{n} photos are on one machine only. A second Mac on this server copies them for you."    },    "pending_line": {      "asked": "asked {day}"    },    "device_line": {      "forgotten": "{who}, {reason}",      "forgotten_on": "{who}, {reason} on {day}",      "this_mac": "this Mac",      "root": "root device",      "approved": "approved {day}"    },    "vault_word": {      "can_open": "can open passwords",      "waiting": "waiting for the passwords key"    },    "daily_copy": {      "newest": "Newest copy {at}",      "none": "No copy yet",      "kept": "{n} kept"    },    "seconds": {      "one": "{n} second",      "many": "{n} seconds"    },    "minutes": {      "one": "{n} minute",      "many": "{n} minutes"    },    "hours": {      "one": "{n} hour",      "many": "{n} hours"    }  },  "windows": {    "settings_title": "Settings",    "connections_title": "Connections",    "pair_title": "Start or join",    "no_database": "No database on this Mac yet",    "no_database_body": "Start a database here, or join the one your phone already holds. Your records are on your phone; this Mac serves the database and runs its engines.",    "pair_button": "Start or join",    "server_heading": "Server",    "backup_heading": "Backup",    "join_requests_heading": "Waiting to join",    "approve_button": "Approve",    "decline_button": "Decline",    "settings_button": "Settings",    "connections_button": "Connections",    "restart_button": "Restart server",    "connections_body": "The connections of this database that wait for a sign-in. A site signs in on this Mac's own screen, in its own browser profile; a server's sign-in opens in your browser.",    "nothing_to_sign_in": "Nothing is waiting for a sign-in.",    "sign_in_button": "Sign in",    "sign_in_anyway_button": "Sign in anyway",    "sign_in_on_phone": "Sign this one in from Connections on your phone.",    "opened_on_this_mac": "Opened on this Mac.",    "opened_in_browser": "Opened in your browser.",    "something_went_wrong": "Something went wrong. Please try again.",    "switches_title": "This Mac",    "start_at_login": "Start at login",    "stay_awake": "Stay awake while plugged in",    "error_reports": "Send error reports",    "auto_updates": "Check for updates automatically",    "switches_unread": "This Mac's switches are read once its server names this device.",    "approved_the_copy_has": "Approved — the copy has not started yet.",    "claimed_the_database_is": "Claimed — the database is on this Mac.",    "joined_pulling_the_copy": "Joined — pulling the copy to this Mac.",    "opening_the_database_on": "Opening the database on this Mac…",    "the_join_could_not": "The join could not be finished.",    "the_join_says": "The join says “{stage}”.",    "join_waiting_digits": "Waiting for your phone to admit this Mac — compare {digits}.",    "join_waiting": "Waiting for your phone to admit this Mac.",    "can_be_tried_again": "{said} It can be tried again.",    "wants_to_join": "“{name}” wants to join",    "this_mac_s_database": "This Mac's database"  },  "update": {    "ci_jobs": {      "one": "{n} CI job is running on this Mac",      "many": "{n} CI jobs are running on this Mac"    },    "build_lock_held": "'{holder}' holds the build lock",    "phone_hold": {      "no_schema": "the feed item for {offered} names no store schema, so no phone build is known to follow it — the release lane stamps one (pnpm mac:phone-build)",      "no_phone_build": "{offered} carries store schema {schema} and the feed item names no phone build that can follow it — the release lane stamps one after the TestFlight upload (pnpm mac:phone-build)",      "behind": "{offered} carries store schema {schema}; the phone build the feed item names ({build}) carries only {phone_schema}, so a phone on it could not follow this Mac"    },    "waiting": {      "name_last": "waiting for {names} to update first — the Mac holding the household's name goes last",      "one_at_a_time": "waiting for {names} to update first — one Mac at a time"    },    "no_hand_over": {      "no_peer": "no other Mac is online on this build to hand the household to",      "not_asked": "the hand-over to {peer} could not be asked",      "refused": "the relay refused to hand the household to {peer}",      "refused_why": "the relay refused to hand the household to {peer}: {why}",      "no_answer": "the relay did not answer the hand-over to {peer} in time",      "not_serving": "this Mac was no longer the one serving",      "no_line": "this Mac has no line to the relay",      "other": "the hand-over to {peer} answered {outcome}"    }  },  "code": {    "heading": "Code",    "at_once_heading": "Sessions at once",    "folders_heading": "Repo folders",    "choose": "Choose…",    "forget": "Forget",    "not_set": "not set",    "sign_in": "Sign in",    "get_code": "Get the code here",    "install_tools": "Install Apple's command line tools",    "done": "Done",    "node_missing": "Codex needs Node.js — install it from nodejs.org, then come back",    "no_device": "This Mac has no device key yet, so there is no row to write the cap on — join a database first.",    "no_git": "No git was found on this Mac, so no folder can be checked. Install the Xcode Command Line Tools (xcode-select --install) or Homebrew git, then restart CottonDB.",    "no_repos": "No project on this database names a repository yet, so there is nothing to hold a folder for.",    "choose_the_folder_on": "Choose the folder on this Mac that holds {repo}.",    "cotton_holds_this_repository": "Cotton holds this repository here, so it can make the checkout at {target}.",    "folders_recorded": "Folders are recorded in {file}, beside your database at {dir}.",    "session_helper_last_reported": "Session helper {version} · last reported {sampled}.",    "session_helper": "Session helper {version}.",    "helper_unreported": "The session helper has not reported on this Mac yet.",    "helper_unreported_because": "The session helper has not reported on this Mac yet: it is {clause}.",    "agent_not_installed": "{agent} · not installed",    "agent_no_sign_in": "{agent}{version} · no sign-in seen yet",    "agent_signed_in": "{agent}{version} · signed in as {email}",    "taking": "Taking {cap} at once · {running} running.",    "taking_none": "Taking {cap} at once · {running} running. This Mac takes none."  },  "session_agent": {    "clause": {      "unsupported": "not available in this build",      "running": "running",      "never_registered": "not registered, so this Mac cannot run coding sessions. Open System Settings › General › Login Items and turn CottonDB on",      "turned_off": "turned off in System Settings › General › Login Items, so this Mac cannot run coding sessions",      "needs_approval": "waiting for your approval in System Settings › General › Login Items",      "missing": "missing from this app",      "not_installed": "not registered — this copy is {clause}",      "refused": "macOS refused to register it — {why}"    },    "sentence": "Session host: {clause}",    "update_pending": "update pending — {n} session(s) running, so this Mac's helper is left alone until the last one ends",    "no_helper": "this app carries no helper at {path}",    "helper_unasked": "the bundled helper could not be asked"  },  "menu": {    "a_device_wants_to": "A device wants to join…",    "connections": "Connections…",    "no_database_yet": "No database yet",    "not_serving_why": "Not serving — {error}",    "not_serving_bare": "Not serving",    "pulling_your_database": "Pulling your database…",    "quit": "Quit {app}",    "settings": "Settings…",    "standing_by": "Standing by",    "start_or_join": "Start or join…",    "starting": "Starting…",    "this_mac": "This Mac…",    "up_to_date": "Up to date",    "could_not_start": "{app} could not start its server",    "devices_want_to_join": "{n} devices want to join…",    "not_connected": "{name} · not connected to the relay",    "standing_by_named": "{name} · standing by — another Mac answers"  },  "backup": {    "no_recent_copy_on": "No recent copy on the backup disk"  },  "main_menu": {    "check_for_updates": "Check for updates…",    "connections": "Connections",    "edit": "Edit",    "quit": "Quit {app}",    "select_all": "Select All",    "settings": "Settings…",    "window": "Window"  },  "databases_page": {    "an_archived_database_is": "An archived database is moved here whole: its file and its media. A folder on an external disk works.",    "archive_folder": "Archive folder",    "choose_the_folder_archived": "Choose the folder archived databases are moved to. A folder on an external disk works.",    "choose": "Choose…",    "unnamed_database": "Unnamed database",    "use_the_default": "Use the default",    "last_changed": "last changed {day}"  },  "keys": {    "nothing_stored": "Nothing stored.",    "stored": "Stored — {what}.",    "testing": "Testing…",    "your_keys_live_in": "Your keys live in your database, sealed, so every Mac you have approved can spend them. Cotton never shows one back — paste a new one to replace it, or clear the field and save to take it away.",    "last_checked": "{stored} Last checked {day}.",    "paste_a_new_key": "paste a new key to replace it",    "paste_your_key": "paste your {label} key"  },  "settings": {    "api_keys": "API keys",    "reached_at": "Reached at",    "check_for_updates_2": "Check for updates",    "checking_for_updates": "Checking for updates"  }}