Skip to content

Commit e4e7810

Browse files
authored
Revert "Refine English translation (#8991)"
This reverts commit f843438.
1 parent 26852b6 commit e4e7810

File tree

66 files changed

+1020
-1122
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+1020
-1122
lines changed

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"vue-clipboard3": "^2.0.0",
5757
"vue-codemirror": "^6.1.1",
5858
"vue-demi": "^0.14.6",
59-
"vue-i18n": "^10.0.5",
59+
"vue-i18n": "^9.13.1",
6060
"vue-router": "^4.3.3",
6161
"vue-virtual-scroller": "^2.0.0-beta.8"
6262
},

frontend/src/components/group/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<DrawerPro v-model="open" :header="$t('commons.table.manageGroup')" @close="handleClose" size="large">
2+
<DrawerPro v-model="open" :header="$t('commons.table.group')" @close="handleClose" size="large">
33
<template #content>
44
<ComplexTable :data="data" @search="search()">
55
<template #toolbar>

frontend/src/components/v-charts/components/Line.vue

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import * as echarts from 'echarts';
77
import { GlobalStore } from '@/store';
88
import { computeSizeFromKBs, computeSizeFromKB, computeSizeFromMB } from '@/utils/util';
99
import { storeToRefs } from 'pinia';
10-
import i18n from '@/lang';
1110
const globalStore = GlobalStore();
1211
const { isDarkTheme } = storeToRefs(globalStore);
1312
@@ -154,35 +153,17 @@ function initChart() {
154153
switch (props.option.formatStr) {
155154
case 'KB/s':
156155
for (const item of datas) {
157-
res +=
158-
item.marker +
159-
' ' +
160-
item.seriesName +
161-
i18n.global.t('commons.colon') +
162-
computeSizeFromKBs(item.data) +
163-
'<br/>';
156+
res += item.marker + ' ' + item.seriesName + '' + computeSizeFromKBs(item.data) + '<br/>';
164157
}
165158
break;
166159
case 'KB':
167160
for (const item of datas) {
168-
res +=
169-
item.marker +
170-
' ' +
171-
item.seriesName +
172-
i18n.global.t('commons.colon') +
173-
computeSizeFromKB(item.data) +
174-
'<br/>';
161+
res += item.marker + ' ' + item.seriesName + '' + computeSizeFromKB(item.data) + '<br/>';
175162
}
176163
break;
177164
case 'MB':
178165
for (const item of datas) {
179-
res +=
180-
item.marker +
181-
' ' +
182-
item.seriesName +
183-
i18n.global.t('commons.colon') +
184-
computeSizeFromMB(item.data) +
185-
'<br/>';
166+
res += item.marker + ' ' + item.seriesName + '' + computeSizeFromMB(item.data) + '<br/>';
186167
}
187168
break;
188169
default:
@@ -191,7 +172,7 @@ function initChart() {
191172
item.marker +
192173
' ' +
193174
item.seriesName +
194-
i18n.global.t('commons.colon') +
175+
'' +
195176
item.data +
196177
props.option.formatStr +
197178
'<br/>';

frontend/src/lang/modules/en.ts

Lines changed: 801 additions & 790 deletions
Large diffs are not rendered by default.

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

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ const message = {
44
commons: {
55
true: '是',
66
false: '否',
7-
colon: ':',
8-
example: '例如:',
7+
example: '例:',
98
fit2cloud: '飞致云',
109
lingxia: '凌霞',
10+
colon: ': ',
1111
button: {
1212
run: '執行',
1313
prev: '上一步',
@@ -446,7 +446,7 @@ const message = {
446446
loadBackup: '導入備份',
447447
remoteAccess: '遠程訪問',
448448
remoteHelper: '多個 ip 以逗號分隔,例:172.16.10.111,172.16.10.112',
449-
remoteConnHelper: 'root 帳號遠程連接 MySQL 有安全風險,開啟需謹慎!',
449+
remoteConnHelper: 'root 帳號遠程連接 mysql 有安全風險,開啟需謹慎!',
450450
changePassword: '改密',
451451
changeConnHelper: '此操作將修改當前資料庫 {0},是否繼續?',
452452
changePasswordHelper: '當前數據庫已經關聯應用,修改密碼將同步修改應用中數據庫密碼,修改後重啟生效。',
@@ -464,7 +464,6 @@ const message = {
464464
passwordHelper: '無法獲取密碼,請修改',
465465
remote: '遠程',
466466
remoteDB: '遠程服務器',
467-
manageRemoteDB: '管理遠程服務器',
468467
createRemoteDB: '添加遠程服務器',
469468
unBindRemoteDB: '解綁遠程服務器',
470469
unBindForce: '強制解綁',
@@ -941,7 +940,6 @@ const message = {
941940
taskType: '任務類型',
942941
nextTime: '近 5 次執行',
943942
record: '報告',
944-
viewRecords: '查看報告',
945943
shell: 'Shell 腳本',
946944
log: '備份日誌',
947945
logHelper: '備份系統日誌',
@@ -1205,7 +1203,6 @@ const message = {
12051203
'ClamAV 的最低建議配置為:3 GiB 以上的 RAM,2.0 GHz 以上的單核 CPU,以及至少 5 GiB 的可用硬盤空間。',
12061204
notStart: '當前未 ClamAV 服務,請先開啟!',
12071205
removeRecord: '刪除報告文件',
1208-
noRecords: '點擊“執行”按鈕開始掃描,掃描結果將會記錄在這裏。',
12091206
removeResultHelper: '刪除任務執行過程中生成的報告文件,以清理存儲空間。',
12101207
removeInfected: '刪除病毒文件',
12111208
removeInfectedHelper: '刪除任務檢測到的病毒文件,以確保伺服器的安全和正常運行。',
@@ -1281,12 +1278,9 @@ const message = {
12811278
dir: '文件夾',
12821279
upload: '上傳',
12831280
download: '下載',
1284-
uploadFile: '@:file.upload@:file.file',
1285-
uploadDirectory: '@:file.upload@:file.dir',
12861281
fileName: '文件名',
12871282
search: '在當前目錄下查找',
12881283
mode: '權限',
1289-
editPermissions: '編輯@:file.mode',
12901284
owner: '所有者',
12911285
file: '文件',
12921286
remoteFile: '遠程下載',
@@ -1657,7 +1651,6 @@ const message = {
16571651
deleteHelper: '將刪除該快照的所有備份文件,包括第三方備份賬號中的文件。',
16581652
status: '快照狀態',
16591653
ignoreRule: '排除規則',
1660-
editIgnoreRule: '@:commons.button.edit@:setting.ignoreRule',
16611654
ignoreHelper: '快照時將使用該規則對 1Panel 數據目錄進行壓縮備份,請謹慎修改。',
16621655
ignoreHelper1: '一行一個,例: \n*.log\n/opt/1panel/cache',
16631656
panelInfo: '寫入 1Panel 基礎信息',
@@ -2178,7 +2171,7 @@ const message = {
21782171
disabled: '已停止',
21792172
startProxy: '開啟反向代理',
21802173
stopProxy: '關閉反向代理',
2181-
sourceFile: '源文',
2174+
proxyFile: '源文',
21822175
proxyHelper1: '訪問這個目錄時將會把目標URL的內容返回並顯示',
21832176
proxyPassHelper: '代理的站點,必須為可正常訪問的URL',
21842177
proxyHostHelper: '將域名添加到請求頭傳遞到代理服務器',
@@ -2485,11 +2478,8 @@ const message = {
24852478
addressHelper2: '多個 IP 或 IP 段 請用 "," 隔開:172.16.10.11,172.16.0.0/24',
24862479
allIP: '所有 IP',
24872480
portRule: '端口規則',
2488-
createPortRule: '@:commons.button.create@:firewall.portRule',
24892481
forwardRule: '端口轉發',
2490-
createForwardRule: '@:commons.button.create@:firewall.forwardRule',
24912482
ipRule: 'IP 規則',
2492-
createIpRule: '@:commons.button.create @:firewall.ipRule',
24932483
userAgent: 'User-Agent 過濾',
24942484
sourcePort: '來源端口',
24952485
targetIP: '目標 IP',
@@ -2597,7 +2587,6 @@ const message = {
25972587
laddr: '本地地址/端口',
25982588
raddr: '远程地址/端口',
25992589
stopProcess: '結束',
2600-
viewDetails: '查看詳情',
26012590
stopProcessWarn: '是否確定結束此進程 (PID:{0})?',
26022591
processName: '進程名稱',
26032592
},

frontend/src/lang/modules/zh.ts

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ const message = {
44
commons: {
55
true: '是',
66
false: '否',
7-
colon: ':',
87
example: '例:',
98
fit2cloud: '飞致云',
109
lingxia: '凌霞',
10+
colon: ': ',
1111
button: {
1212
run: '运行',
1313
prev: '上一步',
@@ -126,8 +126,8 @@ const message = {
126126
protocol: '协议',
127127
tableSetting: '列表设置',
128128
refreshRate: '刷新频率',
129-
selectColumn: '选择列',
130129
noRefresh: '不刷新',
130+
selectColumn: '选择列',
131131
local: '本地',
132132
serialNumber: '序号',
133133
},
@@ -444,7 +444,7 @@ const message = {
444444
loadBackup: '导入备份',
445445
remoteAccess: '远程访问',
446446
remoteHelper: '多个 ip 以逗号分隔,例:172.16.10.111,172.16.10.112',
447-
remoteConnHelper: 'root 帐号远程连接 MySQL 有安全风险,开启需谨慎!',
447+
remoteConnHelper: 'root 帐号远程连接 mysql 有安全风险,开启需谨慎!',
448448
changePassword: '改密',
449449
changeConnHelper: '此操作将修改当前数据库 {0},是否继续?',
450450
changePasswordHelper: '当前数据库已经关联应用,修改密码将同步修改应用中数据库密码,修改后重启生效。',
@@ -462,7 +462,6 @@ const message = {
462462
passwordHelper: '无法获取密码,请修改',
463463
remote: '远程',
464464
remoteDB: '远程服务器',
465-
manageRemoteDB: '管理远程服务器',
466465
createRemoteDB: '添加远程服务器',
467466
unBindRemoteDB: '解绑远程服务器',
468467
unBindForce: '强制解绑',
@@ -939,7 +938,6 @@ const message = {
939938
taskType: '任务类型',
940939
nextTime: '近 5 次执行',
941940
record: '报告',
942-
viewRecords: '查看报告',
943941
shell: 'Shell 脚本',
944942
log: '备份日志',
945943
logHelper: '备份系统日志',
@@ -1203,7 +1201,6 @@ const message = {
12031201
'ClamAV 的最低建议配置为:3 GiB 以上的 RAM,2.0 GHz 以上的单核 CPU,以及至少 5 GiB 的可用硬盘空间',
12041202
notStart: '当前未开启 ClamAV 服务,请先开启!',
12051203
removeRecord: '删除报告文件',
1206-
noRecords: '点击“执行”按钮开始扫描,扫描结果将会记录在这里。',
12071204
removeResultHelper: '删除任务执行过程中生成的报告文件,以清理存储空间。',
12081205
removeInfected: '删除病毒文件',
12091206
removeInfectedHelper: '删除任务检测到的病毒文件,以确保服务器的安全和正常运行。',
@@ -1280,7 +1277,6 @@ const message = {
12801277
fileName: '文件名',
12811278
search: '在当前目录下查找',
12821279
mode: '权限',
1283-
editPermissions: '编辑@:file.mode',
12841280
owner: '所有者',
12851281
file: '文件',
12861282
remoteFile: '远程下载',
@@ -1528,12 +1524,12 @@ const message = {
15281524
developerModeHelper: '获取 1Panel 的预览版本,以分享有关新功能和更新的反馈',
15291525

15301526
thirdParty: '第三方账号',
1531-
noTypeForCreate: '当前无可创建备份类型',
15321527
scope: '使用范围',
15331528
public: '公有',
15341529
publicHelper: '公有类型的备份账号会同步到各个子节点,子节点可以一起使用',
15351530
private: '私有',
15361531
privateHelper: '私有类型的备份账号只创建在当前节点上,仅供当前节点使用',
1532+
noTypeForCreate: '当前无可创建备份类型',
15371533
LOCAL: '服务器磁盘',
15381534
OSS: '阿里云 OSS',
15391535
S3: '亚马逊 S3 云存储',
@@ -1646,7 +1642,6 @@ const message = {
16461642
reRollback: '回滚快照失败',
16471643
deleteHelper: '将删除该快照的所有备份文件,包括第三方备份账号中的文件。',
16481644
ignoreRule: '排除规则',
1649-
editIgnoreRule: '@:commons.button.edit@:setting.ignoreRule',
16501645
ignoreHelper: '快照时将使用该规则对 1Panel 数据目录进行压缩备份,请谨慎修改。',
16511646
ignoreHelper1: '一行一个,例: \n*.log\n/opt/1panel/cache',
16521647
status: '快照状态',
@@ -2013,7 +2008,7 @@ const message = {
20132008
deleteApp: '删除应用',
20142009
deleteBackup: '删除备份',
20152010
domain: '域名',
2016-
domainHelper: '一行一个域名支持*和IP地址,支持"域名:端口"',
2011+
domainHelper: '一行一个域名,支持*和IP地址,支持域名:端口',
20172012
addDomain: '新增域名',
20182013
domainConfig: '域名设置',
20192014
defaultDoc: '默认文档',
@@ -2134,7 +2129,7 @@ const message = {
21342129
websiteDeploymentHelper: '使用从 1Panel 部署的应用创建网站',
21352130
websiteStatictHelper: '在主机上创建网站目录',
21362131
websiteProxyHelper:
2137-
'代理已有服务例如本机已安装使用 8080 端口的 halo 服务,那么代理地址为 http://127.0.0.1:8080',
2132+
'代理已有服务,例如本机已安装使用 8080 端口的 halo 服务,那么代理地址为 http://127.0.0.1:8080',
21382133
restoreHelper: '确认使用此备份恢复?',
21392134
wafValueHelper: '值',
21402135
runtimeProxyHelper: '使用从 1Panel 创建的运行环境',
@@ -2166,7 +2161,7 @@ const message = {
21662161
disabled: '已停止',
21672162
startProxy: '开启反向代理',
21682163
stopProxy: '关闭反向代理',
2169-
sourceFile: '源文',
2164+
proxyFile: '源文',
21702165
proxyHelper1: '访问这个目录时将会把目标URL的内容返回并显示',
21712166
proxyPassHelper: '代理的站点,必须为可正常访问的URL',
21722167
proxyHostHelper: '将域名添加到请求头传递到代理服务器',
@@ -2473,11 +2468,8 @@ const message = {
24732468
addressHelper2: '多个 IP 或 IP 段 请用 "," 隔开:172.16.10.11,172.16.0.0/24',
24742469
allIP: '所有 IP',
24752470
portRule: '端口规则',
2476-
createPortRule: '@:commons.button.create@:firewall.portRule',
24772471
forwardRule: '端口转发',
2478-
createForwardRule: '@:commons.button.create@:firewall.forwardRule',
24792472
ipRule: 'IP 规则',
2480-
createIpRule: '@:commons.button.create @:firewall.ipRule',
24812473
userAgent: 'User-Agent 过滤',
24822474
destination: '目的地',
24832475
sourcePort: '源端口',
@@ -2586,7 +2578,6 @@ const message = {
25862578
laddr: '本地地址/端口',
25872579
raddr: '远程地址/端口',
25882580
stopProcess: '结束',
2589-
viewDetails: '查看详情',
25902581
stopProcessWarn: '是否确定结束此进程 (PID:{0})?',
25912582
processName: '进程名称',
25922583
},

frontend/src/layout/components/Sidebar/components/SubItem.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<el-icon>
66
<SvgIcon :iconName="(subItem.meta?.icon as string)" />
77
</el-icon>
8-
<span>{{ $t(subItem.meta?.title as string, 2) }}</span>
8+
<span>{{ $t(subItem.meta?.title as string) }}</span>
99
</template>
1010
<SubItem :menuList="subItem.children" />
1111
</el-sub-menu>
@@ -15,7 +15,7 @@
1515
<SvgIcon :iconName="(subItem.meta?.icon as string)" />
1616
</el-icon>
1717
<template #title>
18-
<span>{{ $t(subItem.meta?.title as string, 2) }}</span>
18+
<span>{{ $t(subItem.meta?.title as string) }}</span>
1919
</template>
2020
</el-menu-item>
2121

@@ -24,8 +24,8 @@
2424
<SvgIcon :iconName="(subItem.meta?.icon as string)" />
2525
</el-icon>
2626
<template #title>
27-
<span v-if="subItem.meta?.icon">{{ $t(subItem.meta?.title as string, 2) }}</span>
28-
<span v-else style="margin-left: 10px">{{ $t(subItem.meta?.title as string, 2) }}</span>
27+
<span v-if="subItem.meta?.icon">{{ $t(subItem.meta?.title as string) }}</span>
28+
<span v-else style="margin-left: 10px">{{ $t(subItem.meta?.title as string) }}</span>
2929
</template>
3030
</el-menu-item>
3131
</template>

frontend/src/utils/util.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -521,17 +521,17 @@ export function getAge(d1: string): string {
521521

522522
let res = '';
523523
if (dayDiff > 0) {
524-
res += String(dayDiff) + ' ' + i18n.global.t('commons.units.day', dayDiff) + ' ';
524+
res += String(dayDiff) + ' ' + i18n.global.t('commons.units.day') + ' ';
525525
if (hours <= 0) {
526526
return res;
527527
}
528528
}
529529
if (hours > 0) {
530-
res += String(hours) + ' ' + i18n.global.t('commons.units.hour', hours);
530+
res += String(hours) + ' ' + i18n.global.t('commons.units.hour');
531531
return res;
532532
}
533533
if (minutes > 0) {
534-
res += String(minutes) + ' ' + i18n.global.t('commons.units.minute', minutes);
534+
res += String(minutes) + ' ' + i18n.global.t('commons.units.minute');
535535
return res;
536536
}
537537
return i18n.global.t('app.less1Minute');

frontend/src/views/app-store/apps/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<LayoutContent v-loading="loading" v-if="!showDetail" :title="$t('app.app', 2)">
2+
<LayoutContent v-loading="loading" v-if="!showDetail" :title="$t('app.app')">
33
<template #search>
44
<Tags @change="changeTag" />
55
</template>

frontend/src/views/app-store/installed/index.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,17 +228,15 @@
228228
class="d-description flex flex-wrap items-center justify-start gap-1.5"
229229
>
230230
<el-button class="mr-1" plain size="small">
231-
{{ $t('app.version') }}{{ $t('commons.colon')
232-
}}{{ installed.version }}
231+
{{ $t('app.version') }}:{{ installed.version }}
233232
</el-button>
234233
<el-button
235234
v-if="installed.httpPort > 0"
236235
class="mr-1"
237236
plain
238237
size="small"
239238
>
240-
{{ $t('app.busPort') }}{{ $t('commons.colon')
241-
}}{{ installed.httpPort }}
239+
{{ $t('app.busPort') }}:{{ installed.httpPort }}
242240
</el-button>
243241
<el-button v-if="installed.httpsPort > 0" plain size="small">
244242
{{ $t('app.busPort') }}:{{ installed.httpsPort }}

0 commit comments

Comments
 (0)