| 1 | package console |
| 2 | |
| 3 | // attributionURL is where C24's credit must link. DB-IP's licence requires |
| 4 | // the credit to link there, so the console page renders Attribution as an |
| 5 | // <a href> to this URL (Paul's ruling, 2026-10-03). |
| 6 | const attributionURL = "https://db-ip.com" |
| 7 | |
| 8 | // regionCopy is every console-page string the nearest-region feature |
| 9 | // shows (spec §19), as approved in the nearest-region copy record. Verbs |
| 10 | // are %s in the order each comment names. Change none of them without a |
| 11 | // new copy review. |
| 12 | type regionCopyStrings struct { |
| 13 | PickerLabel string // C1 |
| 14 | PickerHelp string // C2 |
| 15 | AutoOption string // C3: place |
| 16 | Unavailable string // C5 |
| 17 | StartsIn string // C7: place |
| 18 | CantStart string // C8: place |
| 19 | AuditCreated string // C21: app name, place |
| 20 | Attribution string // C24, rendered as a link to AttributionURL |
| 21 | AttributionURL string // C24's link target |
| 22 | } |
| 23 | |
| 24 | var regionCopy = regionCopyStrings{ |
| 25 | PickerLabel: "Region", |
| 26 | PickerHelp: "Where this app's instances run. We picked the region nearest to you. Choose another if most of your users are somewhere else.", |
| 27 | AutoOption: "%s (nearest to you)", |
| 28 | Unavailable: "That region can't take new apps right now. Choose another.", |
| 29 | StartsIn: "New instances start in %s, this app's region.", |
| 30 | CantStart: "New instances can't start in %s, this app's region, right now. Pass a region to place one elsewhere.", |
| 31 | AuditCreated: "created app %s in %s", |
| 32 | Attribution: "IP Geolocation by DB-IP", |
| 33 | AttributionURL: attributionURL, |
| 34 | } |
| 35 | |
| 36 | func (p page) RegionCopy() regionCopyStrings { return regionCopy } |
| 37 | |