diff --git a/src/translation/en.json b/src/translation/en.json
index 0fc815133..f62d7ec10 100644
--- a/src/translation/en.json
+++ b/src/translation/en.json
@@ -287,7 +287,67 @@
}
},
"settings": {
- "title": "Settings"
+ "title": "Settings",
+ "appstoreAccount": {
+ "title": "Cloudron.io Account",
+ "description": "A Cloudron.io account is used to access the App Store and manage your subscription.",
+ "setupAction": "Setup Account",
+ "email": "Account Email",
+ "subscription": "Subscription",
+ "cloudronId": "Cloudron ID",
+ "subscriptionEndsAt": "Canceled and ends on",
+ "subscriptionSetupAction": "Setup Subscription",
+ "subscriptionChangeAction": "Change Subscription",
+ "subscriptionReactivateAction": "Reactivate Subscription"
+ },
+ "timezone": {
+ "title": "Time Zone",
+ "description": "The current timezone setting is {{ currentTimeZone.display }} .\nThis setting is used for scheduling backup and update tasks."
+ },
+ "updates": {
+ "title": "Updates",
+ "autoUpdateDisabled": "Automatic update for the platform and apps is disabled .",
+ "currentSchedule": "The current automatic update schedule for platform and apps is",
+ "version": "Platform version",
+ "showLogsAction": "Show Logs",
+ "changeScheduleAction": "Change Schedule",
+ "checkForUpdatesAction": "Check for Updates",
+ "updateAvailableAction": "Update Available",
+ "stopUpdateAction": "Stop Update"
+ },
+ "privateDockerRegistry": {
+ "title": "Private Docker Registry",
+ "description": "Cloudron can pull and install custom apps from a private docker registry.",
+ "subscriptionRequired": "This feature is only available in the paid plans.",
+ "setupSubscriptionAction": "Setup Subscription Now",
+ "server": "Server address",
+ "username": "Username",
+ "usernameNotSet": "Not set",
+ "configureAction": "Configure Registry"
+ },
+ "privateDockerRegistryDialog": {
+ "title": "Private Registry Configuration",
+ "email": "Email (Optional)",
+ "passwordToken": "Password/Token"
+ },
+ "updateScheduleDialog": {
+ "title": "Configure Automatic Update Schedule",
+ "disableCheckbox": "Disable Automatic Updates",
+ "enableCheckbox": "Enable Automatic Updates",
+ "selectOne": "Select at least one day and time",
+ "days": "Days",
+ "hours": "Hours",
+ "description": "Select the days and hours during which Cloudron will apply automatic platform and app updates. Please take care to not overlap this schedule with the backup schedule ."
+ },
+ "updateDialog": {
+ "title": "Update Cloudron to",
+ "blockingApps": "The apps below are blocking the update because they have pending actions:",
+ "blockingAppsInfo": "Please wait for the above operations to finish.",
+ "unstableWarning": "This update is a pre-release and not considered stable yet. Please update at your own risk.",
+ "changes": "Changes",
+ "skipBackupCheckbox": "Skip backup",
+ "updateAction": "Update"
+ }
},
"support": {
"title": "Support",
diff --git a/src/views/settings.html b/src/views/settings.html
index 9bfe34cc8..2c7874aa1 100644
--- a/src/views/settings.html
+++ b/src/views/settings.html
@@ -1,44 +1,42 @@
-
-
-
-
-
-
The apps below are blocking the update because they have pending actions:
-
-
Please wait for the above operations to finish.
-
-
-
-
-
-
- This update is a pre-release and not considered stable yet. Please update at your own risk.
-
-
Changes:
-
-
-
{{ update.error.generic }}
-
-
-
+
+
+
+
+
+
{{ 'settings.updateDialog.blockingApps' | tr }}
+
+
{{ 'settings.updateDialog.blockingAppsInfo' | tr }}
+
+
+
+
+
{{ 'settings.updateDialog.unstableWarning' | tr }}
+
{{ 'settings.updateDialog.changes' | tr }}:
+
+
+
{{ update.error.generic }}
+
+
+
+
@@ -46,7 +44,7 @@
@@ -97,7 +93,7 @@
@@ -141,7 +137,7 @@
-
Cloudron.io Account
+ {{ 'settings.appstoreAccount.title' | tr }}
@@ -154,19 +150,17 @@
-
- A Cloudron.io account is used to access the App Store and manage your subscription.
-
+
{{ 'settings.appstoreAccount.description' | tr }}
- Account Email
+ {{ 'settings.appstoreAccount.email' | tr }}
- Cloudron ID
+ {{ 'settings.appstoreAccount.cloudronId' | tr }}
{{ subscription.cloudronId }}
@@ -182,7 +176,7 @@
- Subscription
+ {{ 'settings.appstoreAccount.subscription' | tr }}
{{ subscription.plan.name }}
@@ -190,29 +184,26 @@
- Canceled and ends on {{ (subscription.cancel_at*1000) | prettyShortDate }}
+ {{ 'settings.appstoreAccount.subscriptionEndsAt' | tr }} {{ (subscription.cancel_at*1000) | prettyShortDate }}
-
Time Zone
+ {{ 'settings.timezone.title' | tr }}
-
- The current timezone setting is {{ timeZone.currentTimeZone.display }} .
- This setting is used for scheduling backup and update tasks.
-
+
{{ timeZone.error }}
@@ -223,25 +214,21 @@
-
- Saved
-
-
-
-
Save
+
+ {{ 'main.dialog.save' | tr }}
-
Updates
+ {{ 'settings.updates.title' | tr }}
- The current automatic update schedule for platform and apps is {{ prettyAutoUpdateSchedule(updateSchedule.currentPattern) }} .
- Automatic update for the platform and apps is disabled .
+ {{ 'settings.updates.currentSchedule' | tr }}{{ prettyAutoUpdateSchedule(updateSchedule.currentPattern) }}
+
@@ -249,7 +236,7 @@
- Platform version
+ {{ 'settings.updates.version' | tr }}
v{{ config.version }}
@@ -270,31 +257,28 @@
{{ update.message }}
- Change Schedule
-
- Check for Updates
-
- Update Available
- Stop Update
+ {{ 'settings.updates.changeScheduleAction' | tr }}
+ {{ 'settings.updates.checkForUpdatesAction' | tr }}
+ {{ 'settings.updates.updateAvailableAction' | tr }}
+ {{ 'settings.updates.stopUpdateAction' | tr }}
-
Private Docker Registry
+ {{ 'settings.privateDockerRegistry.title' | tr }}
- Cloudron can pull and install
custom apps from
- a private docker registry.
+
@@ -302,13 +286,13 @@
- Server address
+ {{ 'settings.privateDockerRegistry.server' | tr }}
{{ registryConfig.currentConfig.serverAddress || 'Not set' }}
@@ -317,10 +301,10 @@
- Username
+ {{ 'settings.privateDockerRegistry.username' | tr }}
- {{ registryConfig.currentConfig.username || registryConfig.currentConfig.email || 'Not set' }}
+ {{ registryConfig.currentConfig.username || registryConfig.currentConfig.email || ('settings.privateDockerRegistry.usernameNotSet' | tr) }}
@@ -328,7 +312,7 @@
- Configure Registry
+ {{ 'settings.privateDockerRegistry.configureAction' | tr }}
diff --git a/src/views/settings.js b/src/views/settings.js
index 3212d7fd4..18063f039 100644
--- a/src/views/settings.js
+++ b/src/views/settings.js
@@ -14,6 +14,10 @@ angular.module('Application').controller('SettingsController', ['$scope', '$loca
$scope.subscription = null;
$scope.subscriptionBusy = true;
+ $scope.translationLinks = {
+ customAppsLink: 'https://docs.cloudron.io/custom-apps/tutorial/'
+ };
+
// values correspond to cron days
$scope.cronDays = [
{ name: 'Sunday', value: 0 },