Skip to content

Commit c95d613

Browse files
authored
Refine English translation again and again (#7353)
1 parent 590238d commit c95d613

File tree

24 files changed

+121
-106
lines changed

24 files changed

+121
-106
lines changed

frontend/src/components/app-status/index.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div class="flex flex-wrap gap-4">
77
<el-tag effect="dark" type="success">{{ data.app }}</el-tag>
88
<Status :key="refresh" :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

1212
<div class="mt-0.5">
@@ -217,13 +217,13 @@ const onOperate = async (operation: string) => {
217217
const getTitle = (key: string) => {
218218
switch (key) {
219219
case 'openresty':
220-
return i18n.global.t('website.website');
220+
return i18n.global.t('website.website', 2);
221221
case 'mysql':
222-
return 'MySQL ' + i18n.global.t('menu.database');
222+
return 'MySQL ' + i18n.global.t('menu.database').toLowerCase();
223223
case 'postgresql':
224-
return 'PostgreSQL ' + i18n.global.t('menu.database');
224+
return 'PostgreSQL ' + i18n.global.t('menu.database').toLowerCase();
225225
case 'redis':
226-
return 'Redis ' + i18n.global.t('menu.database');
226+
return 'Redis ' + i18n.global.t('menu.database').toLowerCase();
227227
}
228228
};
229229

frontend/src/components/table-setting/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div>
3-
<el-popover placement="bottom-start" :width="240" trigger="click">
3+
<el-popover placement="bottom-start" :width="260" trigger="click">
44
<template #reference>
55
<el-button round class="timer-button">{{ $t('commons.table.tableSetting') }}</el-button>
66
</template>

frontend/src/lang/modules/en.ts

Lines changed: 74 additions & 70 deletions
Large diffs are not rendered by default.

frontend/src/lang/modules/tw.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ const message = {
321321
container: '容器',
322322
cronjob: '計劃任務',
323323
host: '主機',
324+
system: '系統',
324325
files: '文件',
325326
monitor: '監控',
326327
terminal: '終端',
@@ -1064,6 +1065,7 @@ const message = {
10641065
noClam: '未檢測到 ClamAV 服務,請參考官方文檔進行安裝!',
10651066
notStart: '當前未 ClamAV 服務,請先開啟!',
10661067
removeRecord: '刪除報告文件',
1068+
noRecords: '點擊“執行”按鈕開始掃描,掃描結果將會記錄在這裏。',
10671069
removeResultHelper: '刪除任務執行過程中生成的報告文件,以清理存儲空間。',
10681070
removeInfected: '刪除病毒文件',
10691071
removeInfectedHelper: '刪除任務檢測到的病毒文件,以確保伺服器的安全和正常運行。',
@@ -1967,7 +1969,7 @@ const message = {
19671969
disabled: '已停止',
19681970
startProxy: '開啟反向代理',
19691971
stopProxy: '關閉反向代理',
1970-
proxyFile: '源文',
1972+
sourceFile: '源文',
19711973
proxyHelper1: '訪問這個目錄時將會把目標URL的內容返回並顯示',
19721974
proxyPassHelper: '代理的站點,必須為可正常訪問的URL',
19731975
proxyHostHelper: '將域名添加到請求頭傳遞到代理服務器',

frontend/src/lang/modules/zh.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ const message = {
320320
container: '容器',
321321
cronjob: '计划任务',
322322
host: '主机',
323+
system: '系统',
323324
files: '文件',
324325
monitor: '监控',
325326
terminal: '终端',
@@ -1065,6 +1066,7 @@ const message = {
10651066
noClam: '未检测到 ClamAV 服务,请参考官方文档进行安装!',
10661067
notStart: '当前未开启 ClamAV 服务,请先开启!',
10671068
removeRecord: '删除报告文件',
1069+
noRecords: '点击“执行”按钮开始扫描,扫描结果将会记录在这里。',
10681070
removeResultHelper: '删除任务执行过程中生成的报告文件,以清理存储空间。',
10691071
removeInfected: '删除病毒文件',
10701072
removeInfectedHelper: '删除任务检测到的病毒文件,以确保服务器的安全和正常运行。',
@@ -1967,7 +1969,7 @@ const message = {
19671969
disabled: '已停止',
19681970
startProxy: '开启反向代理',
19691971
stopProxy: '关闭反向代理',
1970-
proxyFile: '源文',
1972+
sourceFile: '源文',
19711973
proxyHelper1: '访问这个目录时将会把目标URL的内容返回并显示',
19721974
proxyPassHelper: '代理的站点,必须为可正常访问的URL',
19731975
proxyHostHelper: '将域名添加到请求头传递到代理服务器',

frontend/src/routers/modules/host.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const hostRouter = {
77
redirect: '/hosts/security',
88
meta: {
99
icon: 'p-host',
10-
title: 'menu.host',
10+
title: 'menu.system',
1111
},
1212
children: [
1313
{

frontend/src/views/database/mysql/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@
227227
</el-card>
228228

229229
<div v-if="dbOptionsLocal.length === 0 && dbOptionsRemote.length === 0">
230-
<LayoutContent :title="'MySQL ' + $t('menu.database')" :divider="true">
230+
<LayoutContent :title="'MySQL ' + $t('menu.database').toLowerCase()" :divider="true">
231231
<template #main>
232232
<div class="app-warn">
233233
<div class="flex flex-col gap-2 items-center justify-center w-full sm:flex-row">

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
</el-card>
188188

189189
<div v-if="dbOptionsLocal.length === 0 && dbOptionsRemote.length === 0">
190-
<LayoutContent :title="'PostgreSQL ' + $t('menu.database')" :divider="true">
190+
<LayoutContent :title="'PostgreSQL ' + $t('menu.database').toLowerCase()" :divider="true">
191191
<template #main>
192192
<div class="app-warn">
193193
<div class="flex flex-col gap-2 items-center justify-center w-full sm:flex-row">

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div v-loading="loading">
33
<LayoutContent>
44
<template #title>
5-
<back-button name="PostgreSQL" :header="$t('database.remoteDB')" />
5+
<back-button name="PostgreSQL" :header="$t('database.remoteDB', 2)" />
66
</template>
77
<template #toolbar>
88
<div class="flex justify-between gap-2 flex-wrap sm:flex-row">

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
</div>
9797

9898
<div v-if="dbOptionsLocal.length === 0 && dbOptionsRemote.length === 0">
99-
<LayoutContent :title="'Redis ' + $t('menu.database')" :divider="true">
99+
<LayoutContent :title="'Redis ' + $t('menu.database').toLowerCase()" :divider="true">
100100
<template #main>
101101
<div class="app-warn">
102102
<div class="flex flex-col gap-2 items-center justify-center w-full sm:flex-row">

0 commit comments

Comments
 (0)