diff --git a/src/translation/en.json b/src/translation/en.json index be031a6a0..278007163 100644 --- a/src/translation/en.json +++ b/src/translation/en.json @@ -319,7 +319,72 @@ "filterAllEvents": "All Events" }, "domains": { - "title": "Domains & Certs" + "title": "Domains & Certs", + "addDomain": "Add Domain", + "domain": "Domain", + "provider": "Provider", + "tooltipEdit": "Edit Domain", + "tooltipRemove": "Remove Domain", + "renewCerts": { + "title": "Renew certificates", + "description": "Cloudron renews Let's Encrypt certificates automatically. Use this option to trigger a renewal immediately.", + "renewAllAction": "Renew All Certs", + "showLogsAction": "Show Logs" + }, + "changeDashboardDomain": { + "title": "Change Dashboard Domain", + "description": "This will move the dashboard and the email server to the mysubdomain of the selected domain.", + "changeAction": "Change Domain", + "cancelAction": "Cancel", + "showLogsAction": "Show Logs" + }, + "subscriptionRequired": { + "title": "Subscription required", + "description": "To add more domains, please setup a paid plan.", + "setupAction": "Setup Subscription" + }, + "domainDialog": { + "addTitle": "Add Domain", + "editTitle": "Configure {{ domain }}", + "addDescription": "Adding a domain lets you install apps on subdomains of this domain. Email settings for the domain can be configured in the Email view.", + "domain": "Domain", + "provider": "DNS Provider", + "route53AccessKeyId": "Access Key Id", + "route53SecretAccessKey": "Secret Access Key", + "gcdnsServiceAccountKey": "Service Account Key", + "digitalOceanToken": "DigitalOcean Token", + "gandiApiKey": "Gandi API Key", + "goDaddyApiKey": "API Key", + "goDaddyApiSecret": "API Secret", + "cloudflareTokenType": "Token Type", + "cloudflareTokenTypeGlobalApiKey": "Global API Key", + "cloudflareTokenTypeApiToken": "API Token", + "cloudflareEmail": "Cloudflare Email", + "linodeToken": "Linode Token", + "nameComUsername": "Name.com Username", + "nameComApiToken": "API Token", + "namecheapUsername": "Namecheap Username", + "namecheapApiKey": "API Key", + "namecheapInfo": "The server IP needs to be whitelisted for this API Key.", + "linodeInfo": "Linode DNS average propagation time is 30 minutes. Installing apps & and getting a Let's Encrypt certificate will take a while.", + "manualInfo": "All DNS records have to be setup manually before each app installation.", + "wildcardInfo": "Setup A records for *.{{ newDomain || domain.domain }} and {{ newDomain || domain.domain }} to this server's IP.", + "letsEncryptInfo": "Let's Encrypt requires your server to be reachable on port 80", + "advancedAction": "Advanced settings...", + "zoneName": "Zone Name (Optional)", + "certProvider": "Certificate Provider", + "fallbackCert": "Fallback Certificate (optional)", + "fallbackCertInfo": "Certificates are automatically obtained and renewed from Let’s Encrypt. See the current rate limit here.\nThis wildcard certificate will be used should getting a Let’s Encrypt certificate fail. If not provided, an automatically generated self-signed certificate will be used as fallback.", + "fallbackCertCustomCert": "Custom Certificate", + "fallbackCertCustomCertInfo": "This wildcard certificate will be used for all apps on this domain. If not provided, a self-signed certificate will be automatically generated.", + "fallbackCertKeyPlaceholder": "Key", + "fallbackCertCertificatePlaceholder": "Certificate" + }, + "removeDialog": { + "title": "Really remove {{ domain }}?", + "description": "This will delete the domain {{ domain }}.", + "removeAction": "Remove" + } }, "notifications": { "title": "Notifications", diff --git a/src/views/domains.html b/src/views/domains.html index 1027f7b7a..b33902022 100644 --- a/src/views/domains.html +++ b/src/views/domains.html @@ -3,14 +3,14 @@ @@ -21,190 +21,166 @@ @@ -215,18 +191,16 @@ @@ -234,7 +208,7 @@
-

{{ 'domains.title' | tr }}

+

{{ 'domains.title' | tr }}

@@ -248,9 +222,9 @@ - - - + + + @@ -262,8 +236,8 @@ {{ prettyProviderName(domain) }} @@ -273,15 +247,13 @@
-

Renew certificates

+

{{ 'domains.renewCerts.title' | tr }}

-

- Cloudron renews Let's Encrypt certificates automatically. Use this option to trigger a renewal immediately. -

+

@@ -301,22 +273,20 @@

- - Show Logs + + {{ 'domains.renewCerts.showLogsAction' | tr }}
-

Change Dashboard Domain

+

{{ 'domains.changeDashboardDomain.title' | tr }}

-
-

- This will move the dashboard and the email server to the mysubdomain of the selected domain. -

+
+

@@ -339,9 +309,9 @@

- - - Show Logs + + + {{ 'domains.changeDashboardDomain.showLogsAction' | tr }}Show Logs
diff --git a/src/views/domains.js b/src/views/domains.js index 92d9a5913..a0b3f3584 100644 --- a/src/views/domains.js +++ b/src/views/domains.js @@ -11,6 +11,11 @@ angular.module('Application').controller('DomainsController', ['$scope', '$locat $scope.domains = []; $scope.ready = false; + $scope.translationLinks = { + linodeDocsLink: 'https://docs.cloudron.io/domains/#linode-dns', + customCertLink: 'https://docs.cloudron.io/certificates/#custom-certificates' + }; + $scope.openSubscriptionSetup = function () { Client.openSubscriptionSetup($scope.$parent.subscription); };
DomainActions{{ 'domains.domain' | tr }}{{ 'main.actions' | tr }}
- - + +