From c522a308b9589cdf84009e0d136f5a6b81679270 Mon Sep 17 00:00:00 2001 From: John Niang Date: Wed, 18 Dec 2024 10:24:00 +0800 Subject: [PATCH] Refine English translation and UI style (#7399) --- frontend/src/lang/modules/en.ts | 17 ++- frontend/src/views/home/index.vue | 102 +++++++----------- .../src/views/host/firewall/port/index.vue | 2 +- 3 files changed, 45 insertions(+), 76 deletions(-) diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index d59c43ab8..5a3bc65fb 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -349,7 +349,7 @@ const message = { restart_system: 'Restart server', operationSuccess: 'Operation succeeded, rebooting, please refresh the browser manually later!', overview: 'Overview', - entranceHelper: `Security entrance isn't enabled. You can enable it in "Setting -> Security" to improve system security.`, + entranceHelper: `Security entrance isn't enabled. You can enable it in "Settings -> Security" to improve system security.`, appInstalled: 'Applications', systemInfo: 'System infomation', hostname: 'Hostname', @@ -1007,7 +1007,6 @@ const message = { fold: 'All contract', batchInput: 'Batch processing', quickCommand: 'Quick command | Quick commands', - // quickCommandHelper: 'Frequently used command list for quick selection at the bottom of the terminal interface.', quickCommandHelper: 'You can use the quick commands at the bottom of the "Terminals -> Terminals".', groupDeleteHelper: 'After the group is removed, all connections in the group will be migrated to the default group. Do you want to continue?', @@ -1857,13 +1856,13 @@ const message = { updateWarn: 'Update parameters need to rebuild the application, Do you want to continue? ', busPort: 'Port', syncStart: 'Start syncing! Please refresh the app store later', - advanced: 'Advanced Settings', + advanced: 'Advanced settings', cpuCore: 'core(s)', containerName: 'Container name', containerNameHelper: 'The container name will be automatically generated when not set', allowPort: 'External access', allowPortHelper: 'Allowing external port access will release the firewall port', - appInstallWarn: `The application dosn't expose the external access port by default. Click "Advanced Settings" to expose it.`, + appInstallWarn: `The application dosn't expose the external access port by default. Click "Advanced settings" to expose it.`, upgradeStart: 'Start upgrading! Please refresh the page later', toFolder: 'Open the installation directory', editCompose: 'Edit compose file', @@ -1873,7 +1872,7 @@ const message = { allReadyInstalled: 'Installed', installHelper: 'If you have image pull issues, configure image acceleration.', upgradeHelper: - 'Bring abnormal applications back to normal status before upgrading. If the upgrade fails, go to "Log" > "System Logs" to check the failure reason.', + 'Bring abnormal applications back to normal status before upgrading. If the upgrade fails, go to "Logs > System Logs" to check the failure reason.', installWarn: `External access has not been enabled, which prevents the application from being accessible via external networks. Do you want to continue?`, showIgnore: 'View ignored applications', cancelIgnore: 'Cancel ignore', @@ -2345,12 +2344,11 @@ const message = { accept: 'Accept', drop: 'Drop', source: 'Source', - anyWhere: 'AnyWhere', - address: 'Specified IP', + anyWhere: 'Any', + address: 'Specified IPs', addressHelper: 'Support IP address or IP segment', allow: 'Allow', deny: 'Deny', - // addressFormatError: 'Please enter a valid IP address!', addressFormatError: 'This field must be a valid IP address.', addressHelper1: 'Support IP address or IP range. For example, "172.16.10.11" or "172.16.10.0/24".', addressHelper2: 'For multiple IP addresses, separate with comma. For example, "172.16.10.11, 172.16.0.0/24".', @@ -2484,9 +2482,6 @@ const message = { uptime: 'Running time', notStartWarn: `Supervisor isn't started. Start it first.`, serviceName: 'Service name', - // initHelper: - // 'The initialization process will modify the configuration file, causing all existing daemon processes to stop, please confirm the risk in advance', - // initHelper: '尚未初始化 Supervisor ,请先初始化', initHelper: `Supervisor service isn't initialized. Click "Initialize" to initialize.`, serviceNameHelper: 'Supervisor service name managed by systemctl, usually supervisor or supervisord', restartHelper: diff --git a/frontend/src/views/home/index.vue b/frontend/src/views/home/index.vue index 274b452f0..24adc4ee3 100644 --- a/frontend/src/views/home/index.vue +++ b/frontend/src/views/home/index.vue @@ -170,20 +170,16 @@