Cotton code
661 lines · 24.6 KB · JSONRaw
{  "format_version": 1,  "id": "post",  "about": "Cotton Post's own words on Android and iPhone (assets/design/mail/DECISIONS.md and mail.html, the Stamp look). The words a screen reads directly; everything else arrives already in words in the core's mail.* answers, built from these lines.",  "app_name": "Post",  "store_name": "Cotton Post",  "tab": {    "mail": "Mail",    "senders": "Senders",    "files": "Files",    "you": "You"  },  "side": {    "open": "Open the side page",    "close": "Close the side page",    "inboxes": "Inboxes",    "all_inboxes": "All inboxes",    "places": "Places",    "labels": "Labels",    "drafts": "Drafts",    "sent": "Sent",    "archived": "Archived",    "bin": "Bin"  },  "first": {    "title": "Your mail, calmly",    "line": "People first, machines in their place, and every tap says what it did.",    "add": "Add your first account",    "kinds": {      "gmail": "Gmail",      "icloud": "iCloud",      "fastmail": "Fastmail",      "yahoo": "Yahoo",      "imap": "Other mail",      "domain": "Your own domain"    },    "kind_lines": {      "gmail": "With an app password",      "icloud": "With an app-specific password",      "fastmail": "With an app password",      "yahoo": "With an app password",      "imap": "Any server that speaks IMAP",      "domain": "Addresses on a domain you own"    },    "outlook": "Outlook.com: not yet"  },  "way": {    "title": "Who fetches your mail?",    "line": "Whichever you pick, each mail is sealed with your key before it's stored, and only your phones can open it.",    "phone": {      "title": "This phone fetches",      "line": "The password stays on this phone.",      "iphone": "New mail comes in when Post is open, or when your iPhone gives it a few minutes in the background. That can be minutes or hours late.",      "android": "Post keeps your mail fresh with a quiet notification that stays while it works."    },    "mac": {      "title": "This Mac fetches",      "line": "New mail arrives while your Mac is on. Needs Cotton for Mac and a Mac that stays awake.",      "kept": "The password is kept in your Mac's keychain."    },    "cotton": {      "title": "Cotton fetches for me",      "line": "New mail in seconds on every phone.",      "could": "While Cotton holds your app password, its server could open your whole {provider}, read it and send from it. It only fetches new mail, seals each one with your key as it arrives, and keeps nothing it can read.",      "kept": "Locked with a key only the server holds, because it has to use it. Only the fetcher uses it. It is never shown back, and never written to any log.",      "logged": "When it fetched, how many mails came, and what went wrong. Never a word of any mail, never the password."    },    "arrives": {      "title": "Arrives as it's sent",      "line": "Mail to this domain arrives at Cotton's server, which reads each mail once to seal it with your key, then keeps only the sealed copy. When you send, it sees the mail once to hand it on. It keeps nothing it can read."    },    "forget": {      "title": "Remove password",      "line": "Cotton stops fetching and deletes the password now. Mail already here stays. To be sure, also remove the app password at {provider}.",      "go": "Remove password",      "provider_page": "{provider} app passwords, here",      "keep": "Keep it",      "next": "Who fetches now?"    }  },  "status": {    "cotton": "Fetched by Cotton · new mail in seconds",    "mac": "Fetched by your Mac",    "mac_asleep": "Fetched by your Mac · Mac asleep since {time}",    "mac_offline": "Fetched by your Mac · Mac offline since {time}",    "phone": "Fetched by this phone · last checked {ago}",    "phone_other": "Fetched by {device}",    "refused": "Not fetching · {provider} refused the password",    "stopped": "Not fetching · {why}",    "arrives": "Arrives as it's sent",    "phone_here": "Fetched by this phone",    "no_way": "choose who fetches",    "cotton_stopped": "Cotton stopped fetching",    "phone_fetched": {      "zero": "Fetched by this phone · nothing new",      "other": "Fetched by this phone · {n} new"    },    "cotton_first": "Fetched by Cotton · first fetch coming",    "cotton_unknown": "Fetched by Cotton",    "cotton_failed": "Cotton couldn't fetch · {why}"  },  "history": {    "line": "Mail back to {month} · {held} of {total}",    "paused_offline": "Paused: you're offline",    "paused_mac_asleep": "Paused: your Mac is asleep",    "paused_mac_offline": "Paused: your Mac is offline"  },  "home": {    "title": "Inbox",    "search": {      "zero": "Search",      "one": "Search 1 mail",      "other": "Search {n} mails"    },    "people": "People",    "people_new": {      "zero": "",      "one": "1 new",      "other": "{n} new"    },    "waiting": "Waiting on you",    "waiting_asked": "Asked {ago}",    "reply": "Reply",    "open": "Open",    "machines": "From machines",    "machines_today": {      "zero": "None today",      "one": "1 today",      "other": "{n} today"    },    "write": "Write a mail",    "chips": {      "all": "All",      "people": "People",      "unread": "Unread",      "receipts": "Receipts",      "shops": "Shops",      "newsletters": "Newsletters",      "notices": "Notices"    }  },  "groups": {    "receipts": "Receipts and banks",    "shops": "Shops and offers",    "newsletters": "Newsletters",    "notices": "Notices",    "line": "{today} today, {inbox} in your Inbox in all",    "why": "Here because {rule}.",    "rule": {      "receipts": "its subject says order, receipt, invoice or statement",      "shops": "Gmail marked it Promotions",      "newsletters": "it comes from a list you can unsubscribe from",      "notices": "the address is a machine's, like noreply@"    },    "see_rules": "See the rules",    "mark_read": {      "other": "Mark {n} read"    },    "archive": {      "other": "Archive {n}"    }  },  "list": {    "select": "Select",    "selected": {      "one": "1 selected",      "other": "{n} selected"    },    "draft": "Draft",    "to": "To {address}",    "older": "Older mail comes when you're online.",    "no_subject": "(no subject)"  },  "thread": {    "you": "You",    "reply": "Reply",    "reply_all": "Reply all",    "forward": "Forward",    "quoted": "Show the quoted text",    "page": "Show the designed page",    "plain": "Show the plain text",    "to": "To {names}",    "cc": "Cc {names}",    "pictures": {      "off": "Pictures are off. Loading them tells {sender} you opened this, and roughly where you are.",      "load": "Load pictures",      "always": "Always for {sender}",      "always_on": "Pictures from {sender} load from now on.",      "always_off": "Pictures from {sender} wait to be asked again."    },    "attachment_kept": "On this phone",    "attachment_offline": "Can't fetch while offline",    "attachment_when": "When online",    "attachment_code": "Post won't open this kind of file. You can save it.",    "save": "Save",    "share": "Share",    "me": "me"  },  "act": {    "read": "Mark read",    "unread": "Mark unread",    "archive": "Archive",    "delete": "Delete",    "restore": "Bring back",    "delete_sender": "Delete all from this sender",    "unsubscribe": "Unsubscribe",    "block": "Block",    "open_sender": "Open sender",    "undo": "Undo",    "retry": "Retry",    "gone": "That mail is no longer here.",    "too_late": "Too late to undo: these mails are already being erased.",    "public_domain": "Not offered for {domain}: it is a public mail service, so it would take other people's mail too.",    "except_full": "Too many of these were moved back. Undo the whole act instead.",    "erasing_full": "This one can't come back: too many from this Delete already have, and the rest are being erased.",    "changed": "This list changed since you saw it. Look again, then mark them read."  },  "ask": {    "archive": {      "title": "Archive {n} mails from {sender}?",      "title_one": "Archive 1 mail from {sender}?",      "line": "They leave your Inbox and stay in Archived and in search. {provider} archives them too.",      "line_cotton_only": "They leave your Inbox and stay in Archived and in search.",      "go": "Archive {n}"    },    "many_senders": {      "line": "{domain} has {n} different senders here. Take mail from all {n}?",      "go": "Yes, all {n}"    },    "domain_senders": {      "one": "1 sender at {domain}",      "other": "{n} senders at {domain}"    },    "delete": {      "title": "Delete {n} mails from {sender}?",      "title_one": "Delete 1 mail from {sender}?",      "line": "They go to the Bin, here and in {provider}. You can bring any of them back for 30 days; after that they're gone for good.",      "line_cotton_only": "They go to the Bin. You can bring any of them back for 30 days; after that they're gone for good.",      "go": "Delete {n}"    },    "unsubscribe": {      "title": "Unsubscribe from {sender}?",      "line": "Post asks {sender} to stop, using the one-tap link they put in every mail.",      "line_mail": "Post asks {sender} to stop, by sending the mail they ask for from {address}.",      "also_archive": "Also archive the {n} in your Inbox",      "go": "Unsubscribe",      "none_title": "{sender} offers no one-tap unsubscribe",      "none_line": "Post can send what they write from now on straight to the Bin.",      "none_go": "Bin new mail from {sender}"    },    "block": {      "title": "Block {sender}?",      "line_address": "From now on, mail from {sender} goes straight to the Bin. They aren't told.",      "line_domain": "From now on, mail from any address at {domain} goes straight to the Bin. They aren't told.",      "also_delete": "Also delete the {n} already here",      "go": "Block"    },    "newest": "Newest",    "oldest": "Oldest",    "cancel": "Not now",    "more": {      "line": "{more} more came from {sender} since you looked. Nothing was {done}. You agreed to {agreed}, and there are now {now}.",      "all": "{act} {now}",      "only": "{act} only the {agreed}",      "not_now": "Not now"    }  },  "after": {    "archived": "Archived {n} from {sender}.",    "archived_one": "Archived.",    "archived_chosen": "Archived {n}.",    "emptied": "Emptied the Bin: {n} gone for good.",    "deleted": "Moved {n} to the Bin.",    "deleted_one": "Moved to the Bin.",    "restored": "Brought back {n}.",    "unsubscribed": "Asked {sender} to stop at {time}.",    "binning": "New mail from {sender} goes to the Bin from now on.",    "blocked": "Blocked {sender}.",    "read": "Marked {n} read.",    "unread": "Marked unread.",    "undone": "Undone.",    "gone": "That act is too old to undo here.",    "mailbox": {      "done": "Also {done} in {provider}.",      "waiting": "{provider} will follow in a moment.",      "mac": "{provider} will follow when your Mac is online.",      "failed": "Not {done} in {provider}: {why}"    },    "done_words": {      "archive": "archived",      "delete": "moved to the Bin",      "read": "marked read",      "unread": "marked unread",      "unsubscribe": "unsubscribed"    },    "undo_mailbox": {      "archive": "Back in your Inbox here. {provider} still has it archived.",      "delete": "Back here. {provider} still has it in its Trash.",      "read": "Unread again here. {provider} still shows it read.",      "unread": "Read again here. {provider} still shows it unread.",      "restore": "In the Bin again here."    },    "nothing_to_archive": "Nothing here to archive.",    "offline": "you're offline; do it again when you're back",    "waiting": {      "one": "1 more from them goes once this phone has caught up.",      "other": "{n} more from them go once this phone has caught up."    },    "not_covered": {      "one": "1 more from them has no arrival time on the server, so it stays where it is.",      "other": "{n} more from them have no arrival time on the server, so they stay where they are."    }  },  "senders": {    "title": "Senders",    "line": "Loudest first: lots of mail, little read",    "sort": {      "never_read": "Never read",      "most": "Most mail",      "people": "People",      "az": "A–Z"    },    "opened": "Opened {pct}",    "never_replied": "never replied",    "replied": "you replied",    "unsubscribed": "unsubscribed {year}",    "foot": {      "one": "1 sender · {people}.",      "other": "{n} senders · {people}."    },    "since": "since {month}",    "in_all": "mails in all",    "in_inbox": "in your Inbox",    "opened_label": "opened · {n}",    "said_never": "You've never replied. Last mail {when}.",    "said_replied": "You last replied {when}.",    "offers_unsubscribe": "It offers a one-tap unsubscribe.",    "addresses": "Addresses",    "act_lines": {      "archive": "from your Inbox",      "delete": "to the Bin, 30 days",      "unsubscribe": "one tap, offered",      "unsubscribe_none": "Bin new mail",      "block": "future mail to the Bin"    },    "address_hint": "Open an address to act on it alone.",    "merge": "Join with another sender",    "part": "Part again",    "rename": "Rename",    "blocked": "Blocked",    "blocked_count": "Blocked · {n}",    "unblock": "Unblock",    "empty": "No senders yet. They appear as mail arrives.",    "blocked_none": "No one is blocked.",    "people": {      "zero": "none are people you've written to",      "one": "1 is someone you've written to, and they're never on top",      "other": "{n} are people you've written to, and they're never on top"    },    "search": "Search senders",    "found_none": "No sender by that name or address.",    "mails": {      "one": "1 mail",      "other": "{n} mails"    }  },  "files": {    "title": "Files",    "kinds": {      "all": "All",      "pictures": "Pictures",      "documents": "Documents",      "sheets": "Sheets",      "other": "Other"    },    "from": "From {name} · {when}",    "empty": "No files yet. Every attachment anyone sends you will be here."  },  "search": {    "hint": "Search mail, people, files",    "people": "People",    "mail": "Mail",    "files": "Files",    "empty": "Nothing found for “{text}”."  },  "write": {    "new": "New mail",    "reply": "Reply",    "forward": "Forward",    "from": "From",    "from_why": "You last wrote to {name} from this address.",    "from_reply": "The address this mail came to.",    "to": "To",    "cc": "Cc",    "bcc": "Bcc",    "cc_bcc": "Cc, Bcc",    "subject": "Subject",    "body": "Write your mail",    "attach": "Attach",    "send": "Send",    "save": "Save draft",    "saved": "Draft saved",    "discard": "Discard draft",    "cancel": "Cancel",    "too_large": "{provider} takes up to {max}. This mail is {size}.",    "no_recipient": "Add someone to send it to.",    "not_yours": "{address} isn't one of your accounts. Choose who it's from.",    "bad_address": "“{address}” isn't an address.",    "quote_head": "On {when}, {name} wrote:",    "forward_head": "Forwarded mail\nFrom: {name} <{address}>\nDate: {when}\nSubject: {subject}",    "discarded": "Draft discarded",    "attachment_gone": "{name} isn't on this phone any more. Attach it again.",    "a_mailbox": "A mailbox",    "attachment_coming": "{name} isn't on this phone yet. Open it in the mail once, then send.",    "remove_file": "Remove {name}",    "photo": "Photo"  },  "send": {    "holding": {      "one": "Sending in 1 second",      "other": "Sending in {n} seconds"    },    "undo": "Undo",    "undone": "Back in Drafts. Nothing was sent.",    "waiting": "Waiting to send",    "waiting_mac": "Waiting to send · goes when your Mac is online",    "waiting_offline": "Waiting to send · goes when you're online",    "sending": "Sending",    "sent": "Sent {time}",    "failed": "Not sent · {why}",    "unknown": "Post couldn't tell whether this went. Check Sent: sent again, it may arrive twice.",    "retry": "Retry",    "too_late": "It has already gone.",    "closed": "Not sent: Post was closed",    "updated": "Not sent: Post was updated while it waited. Send it again.",    "went_kept": "This went as it was when you tapped Send. Your change is saved here and was not sent.",    "gone_unsaved": "This has already gone, so your change wasn't saved. Copy it before you leave.",    "busy": "Post is busy with this mail. Try again in a moment.",    "changed": "Not sent: it changed after Send. Send it again.",    "no_sender": "Add an account to send from"  },  "account": {    "title": "Accounts",    "add": "Add an account",    "address": "Address",    "password": "App password",    "password_hint": "16 letters from {provider}",    "how": "How to make one",    "steps": {      "gmail": [        "Open your Google Account, then Security.",        "Turn on 2-Step Verification if it's off.",        "Search for App passwords, make one called Post, and paste it here."      ]    },    "workspace": "Work and school Google accounts no longer allow app passwords.",    "checking": "Checking with {provider}…",    "wrong": "{provider} didn't accept that password. Check it and try again.",    "how_mail_arrives": "How mail arrives",    "signature": "Signature",    "name": "Your name on mail",    "tag": "Tag",    "remove": "Remove this account",    "remove_line": {      "zero": "Post stops fetching it.",      "one": "Post stops fetching it. The 1 mail already here stays until you delete it.",      "other": "Post stops fetching it. The {n} mails already here stay until you delete them."    },    "log": "What was written down",    "none": "No accounts yet.",    "host": "Mail server",    "smtp_host": "Sending server",    "held": "{address} is already here.",    "removed": "{address} is gone from Post. Its mail here stays until you delete it.",    "domain_way": "Mail to your own domain always arrives as it's sent.",    "no_password_held": "Cotton holds no password for this account.",    "cotton_offline": "Cotton fetches needs a connection to hand over the password. Try again when you're online.",    "cotton_not_ready": "Cotton fetches isn't ready on your Cotton yet. This phone or your Mac can fetch until it is.",    "log_fetched": {      "zero": "Nothing new",      "other": "Fetched {n}"    },    "log_stopped": "Stopped",    "log_failed": "Didn't fetch · {code}"  },  "domain": {    "title": "Domains",    "add": "Add a domain",    "domain": "Domain",    "addresses": {      "zero": "No addresses yet",      "one": "1 address",      "other": "{n} addresses"    },    "working": "mail in and out working",    "to_check": {      "one": "1 record still to check",      "other": "{n} records still to check"    },    "records": {      "dns": "Its DNS is on Cloudflare",      "approved": "Cloudflare: you approved",      "proof": "It's yours",      "mail_in": "Mail in",      "mail_in_line": "Mail to any address here comes to Post",      "sending": "Sending",      "sending_line": "Post may send as {domain}",      "spf": "SPF",      "dkim": "DKIM",      "dkim_line": "Proves a mail really came from you",      "dmarc": "DMARC"    },    "state": {      "done": "Verified",      "set": "Set",      "checking": "Checking",      "next": "Next",      "wrong": "Not right yet"    },    "keep_checking": "Leave this, it'll keep checking",    "server_reads": "What the server reads",    "new_address": "New address",    "alias": "Lands in {address}",    "plus": "Plus addresses",    "plus_line": "{example} lands in {address}",    "catch_all": "Anything else at {domain}",    "catch_all_on": "Lands in {address}",    "catch_all_off": "Bounces back as not found",    "remove_address": "Remove {address}?",    "remove_line": {      "zero": "Mail sent to it afterwards bounces back with “address not found”: nothing is dropped silently.",      "one": "Mail sent to it afterwards bounces back with “address not found”: nothing is dropped silently. The 1 mail it received stays.",      "other": "Mail sent to it afterwards bounces back with “address not found”: nothing is dropped silently. The {n} mails it received stay."    },    "remove_go": "Remove address",    "people_later": "People · later",    "people_later_line": "Give someone their own address here, with a mailbox only they can open.",    "offline": "Domains live on your Cotton: connect to see them.",    "none": "No domains yet.",    "unknown": "{domain} isn't one of your domains here.",    "remove": "Remove domain",    "remove_title": "Remove {domain}?",    "remove_domain_line": {      "zero": "Mail sent to it afterwards bounces back with “address not found”: nothing is dropped silently. Mail already here stays.",      "one": "Its address goes: mail sent to it afterwards bounces back with “address not found”, nothing dropped silently. Mail already here stays.",      "other": "Its {n} addresses go: mail sent to them afterwards bounces back with “address not found”, nothing dropped silently. Mail already here stays."    },    "removed": "Removed {domain}."  },  "you": {    "title": "You",    "accounts": "Accounts",    "signature": "Signature",    "notifications": "Notifications",    "notifications_line": "People only",    "rules": "Sorting rules",    "undo_send": "Undo send",    "undo_send_line": {      "one": "1 second",      "other": "{n} seconds"    },    "domains": "Domains",    "look": "Look",    "accounts_none": "None yet",    "accounts_many": "{n} accounts",    "signature_none": "None",    "notifications_people": "People only",    "notifications_everyone": "Every mail",    "notifications_none": "Off",    "rules_line": "Six rules, no exceptions yet",    "rules_exceptions": {      "one": "Six rules, 1 exception",      "other": "Six rules, {n} exceptions"    },    "undo_send_off": "Off",    "domains_none": "None yet",    "domains_many": {      "one": "1 address",      "other": "{n} addresses"    },    "sync": "Sync",    "privacy": "Privacy",    "privacy_line": "Sealed with your key; assistants read only when you allow",    "storage": "Storage",    "storage_line": "Every mail, sealed on this phone and in your Cotton",    "count": "{n} mails",    "count_one": "1 mail",    "count_none": "No mail yet",    "help": "Help",    "help_line": "How Post works, and who to ask",    "about": "About",    "about_line": "Your mail, sorted by written rules, sealed on your phone"  },  "rules": {    "title": "Sorting rules",    "line": "Post sorts by these rules, in this order. Nothing guesses.",    "list": [      "Someone you've written to is a person.",      "Someone in your contacts is a person.",      "An address like noreply@ or alerts@ is a machine.",      "Mail with an unsubscribe link is from a machine.",      "Mail Gmail marked Promotions is from a machine.",      "Mail that says order, receipt or statement is a receipt."    ],    "fallback": "When no rule fits, it goes to People: a missed friend costs more than a stray receipt.",    "yours": "Your exceptions",    "first_time": "{sender} is writing for the first time. Person or machine?",    "person": "Person",    "machine": "Machine",    "clear": "Let the rules decide"  },  "privacy": {    "sealed": "Every mail is sealed with your key before it's stored. Only your phones can open it.",    "way": "How each account's mail reaches Cotton is said on its own page.",    "email": "Like all email, a mail can be read by the mail servers it passes through on the way.",    "title": "Privacy"  },  "bin": {    "line": "Each goes for good 30 days after it was deleted.",    "empty_now": "Empty the Bin now · {n}",    "empty_ask": {      "one": "Empty the Bin? 1 mail goes for good now. This can't be undone.",      "other": "Empty the Bin? {n} mails go for good now. This can't be undone."    },    "empty_go": "Empty {n}"  },  "empty": {    "no_accounts": "No mail here yet. Add an account to bring it in.",    "inbox": "Nothing waiting. Your Inbox is empty.",    "drafts": "No drafts.",    "sent": "Nothing sent yet.",    "archived": "Nothing archived yet.",    "bin": "The Bin is empty.",    "unread": "Nothing unread."  },  "fail": {    "offline": "Offline. Read, write and archive as usual. It all goes through when you're back.",    "refused":"the mail server refused the password",    "closed": "the mail server closed the connection",    "said_no": "the mail server refused a request",    "unreachable": "couldn't reach the mail server"  },  "a11y": {    "unread": "Unread",    "person": "From a person",    "machine": "From a machine",    "attachment": "Has attachments",    "write": "Write a mail",    "franked": "Sent",    "clear": "Clear the search"  },  "link": {    "read": "Read here",    "sites": "Open in Sites…",    "missing": "Get Sites to keep this signed in.",    "refused": "Post opens only web links."  },  "edit": {    "save": "Save"  }}