Skip to content

Commit 9452ec1

Browse files
committed
Refine English translation again and again (#7353)
1 parent 96a8938 commit 9452ec1

File tree

14 files changed

+94
-85
lines changed

14 files changed

+94
-85
lines changed

frontend/src/lang/modules/en.ts

Lines changed: 73 additions & 69 deletions
Large diffs are not rendered by default.

frontend/src/lang/modules/zh-Hant.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ const message = {
350350
container: '容器',
351351
cronjob: '計劃任務',
352352
system: '系統',
353+
system: '系統',
353354
files: '文件',
354355
monitor: '監控',
355356
terminal: '終端',
@@ -1206,6 +1207,7 @@ const message = {
12061207
'ClamAV 的最低建議配置為:3 GiB 以上的 RAM,2.0 GHz 以上的單核 CPU,以及至少 5 GiB 的可用硬盤空間。',
12071208
notStart: '當前未 ClamAV 服務,請先開啟!',
12081209
removeRecord: '刪除報告文件',
1210+
noRecords: '點擊“執行”按鈕開始掃描,掃描結果將會記錄在這裏。',
12091211
removeResultHelper: '刪除任務執行過程中生成的報告文件,以清理存儲空間。',
12101212
removeInfected: '刪除病毒文件',
12111213
removeInfectedHelper: '刪除任務檢測到的病毒文件,以確保伺服器的安全和正常運行。',
@@ -2178,7 +2180,7 @@ const message = {
21782180
disabled: '已停止',
21792181
startProxy: '開啟反向代理',
21802182
stopProxy: '關閉反向代理',
2181-
proxyFile: '源文',
2183+
sourceFile: '源文',
21822184
proxyHelper1: '訪問這個目錄時將會把目標URL的內容返回並顯示',
21832185
proxyPassHelper: '代理的站點,必須為可正常訪問的URL',
21842186
proxyHostHelper: '將域名添加到請求頭傳遞到代理服務器',

frontend/src/lang/modules/zh.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ const message = {
348348
container: '容器',
349349
cronjob: '计划任务',
350350
system: '系统',
351+
system: '系统',
351352
files: '文件',
352353
monitor: '监控',
353354
terminal: '终端',
@@ -1204,6 +1205,7 @@ const message = {
12041205
'ClamAV 的最低建议配置为:3 GiB 以上的 RAM,2.0 GHz 以上的单核 CPU,以及至少 5 GiB 的可用硬盘空间',
12051206
notStart: '当前未开启 ClamAV 服务,请先开启!',
12061207
removeRecord: '删除报告文件',
1208+
noRecords: '点击“执行”按钮开始扫描,扫描结果将会记录在这里。',
12071209
removeResultHelper: '删除任务执行过程中生成的报告文件,以清理存储空间。',
12081210
removeInfected: '删除病毒文件',
12091211
removeInfectedHelper: '删除任务检测到的病毒文件,以确保服务器的安全和正常运行。',
@@ -2166,7 +2168,7 @@ const message = {
21662168
disabled: '已停止',
21672169
startProxy: '开启反向代理',
21682170
stopProxy: '关闭反向代理',
2169-
proxyFile: '源文',
2171+
sourceFile: '源文',
21702172
proxyHelper1: '访问这个目录时将会把目标URL的内容返回并显示',
21712173
proxyPassHelper: '代理的站点,必须为可正常访问的URL',
21722174
proxyHostHelper: '将域名添加到请求头传递到代理服务器',

frontend/src/views/database/postgresql/remote/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div v-loading="loading">
3-
<LayoutContent :title="$t('database.remoteDB')" backName="PostgreSQL">
3+
<LayoutContent :title="$t('database.remoteDB', 2)" backName="PostgreSQL">
44
<template #leftToolBar>
55
<el-button type="primary" @click="onOpenDialog('create')">
66
{{ $t('database.createRemoteDB') }}

frontend/src/views/database/redis/remote/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div v-loading="loading">
3-
<LayoutContent :title="$t('database.remoteDB')" backName="Redis">
3+
<LayoutContent :title="$t('database.remoteDB', 2)" backName="Redis">
44
<template #leftToolBar>
55
<el-button type="primary" @click="onOpenDialog('create')">
66
{{ $t('database.createRemoteDB') }}

frontend/src/views/home/status/index.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
</template>
4848
</el-popover>
4949
<span class="input-help">
50-
( {{ formatNumber(currentInfo.cpuUsed) }} / {{ currentInfo.cpuTotal }} ) {{ $t('commons.units.core') }}
50+
( {{ formatNumber(currentInfo.cpuUsed) }} / {{ currentInfo.cpuTotal }} )
51+
{{ $t('commons.units.core', currentInfo.cpuTotal) }}
5152
</span>
5253
</el-col>
5354
<el-col :xs="12" :sm="12" :md="6" :lg="6" :xl="6" align="center">

frontend/src/views/toolbox/clam/record/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
</div>
147147
<div class="app-warn" v-show="!hasRecords">
148148
<div>
149-
<span>{{ $t('cronjob.noRecord') }}</span>
149+
<span>{{ $t('toolbox.clam.noRecords') }}</span>
150150
<div>
151151
<img src="@/assets/images/no_app.svg" />
152152
</div>

frontend/src/views/toolbox/ftp/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
</el-card>
2424
</div>
2525
<div v-if="form.isExist">
26-
<LayoutContent v-loading="loading" title="FTP" :class="{ mask: !form.isActive }">
26+
<LayoutContent v-loading="loading" :title="$t('toolbox.ftp.ftp', 2)" :class="{ mask: !form.isActive }">
2727
<template #leftToolBar>
2828
<el-button type="primary" @click="onOpenDialog('add')">
29-
{{ $t('commons.button.add') }} FTP
29+
{{ $t('commons.button.add') }} {{ $t('toolbox.ftp.ftp') }}
3030
</el-button>
3131
<el-button @click="onSync()">
3232
{{ $t('commons.button.sync') }}

frontend/src/views/toolbox/supervisor/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<el-card v-if="showStopped" class="mask-prompt">
44
<span>{{ $t('tool.supervisor.notStartWarn') }}</span>
55
</el-card>
6-
<LayoutContent :title="$t('tool.supervisor.list')" v-loading="loading">
6+
<LayoutContent :title="$t('tool.supervisor.list', 2)" v-loading="loading">
77
<template #app>
88
<SuperVisorStatus
99
@setting="setting"
@@ -14,7 +14,7 @@
1414
</template>
1515
<template v-if="showTable" #leftToolBar>
1616
<el-button type="primary" @click="openCreate" :disabled="showStopped">
17-
{{ $t('commons.button.create') + $t('tool.supervisor.list') }}
17+
{{ $t('commons.button.create') + $t('tool.supervisor.list').toLowerCase() }}
1818
</el-button>
1919
</template>
2020
<template #main v-if="showTable">
@@ -315,7 +315,7 @@ const buttons = [
315315
},
316316
},
317317
{
318-
label: i18n.global.t('website.proxyFile'),
318+
label: i18n.global.t('website.sourceFile'),
319319
click: function (row: HostTool.SupersivorProcess) {
320320
getFile(row.name, 'config');
321321
},

frontend/src/views/toolbox/supervisor/status/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div class="flex flex-wrap gap-4 ml-3">
77
<el-tag effect="dark" type="success">{{ 'Supervisor' }}</el-tag>
88
<Status class="mt-0.5" :key="data.status" :status="data.status"></Status>
9-
<el-tag>{{ $t('app.version') }}:{{ data.version }}</el-tag>
9+
<el-tag>{{ $t('app.version') }}{{ $t('commons.colon') }}{{ data.version }}</el-tag>
1010
</div>
1111
<div class="mt-0.5" v-if="!data.init">
1212
<el-button type="primary" v-if="data.status != 'running'" link @click="onOperate('start')">

0 commit comments

Comments
 (0)