From 0145548095312d975d9a88a3004f037ce412cb3e Mon Sep 17 00:00:00 2001 From: root Date: Sun, 26 Apr 2026 21:16:31 +0800 Subject: [PATCH] feat: chinese localization for backup page --- config/version | 2 +- web/html/settings.html | 22 ++++++++++----------- web/html/settings/backup.html | 36 +++++++++++++++++------------------ 3 files changed, 30 insertions(+), 30 deletions(-) diff --git a/config/version b/config/version index 907ce1bf..8208d814 100644 --- a/config/version +++ b/config/version @@ -1 +1 @@ -v1.8.0.3 +v1.8.0.4 diff --git a/web/html/settings.html b/web/html/settings.html index d9c87ca5..3f0b3cbe 100644 --- a/web/html/settings.html +++ b/web/html/settings.html @@ -110,7 +110,7 @@ {{ template "backup.html" . }} @@ -261,10 +261,10 @@ }, backupList: [], backupColumns: [ - { title: 'Filename', dataIndex: 'filename', key: 'filename' }, - { title: 'Timestamp', dataIndex: 'timestamp', key: 'timestamp', scopedSlots: { customRender: 'timestamp' } }, - { title: 'Size', dataIndex: 'size', key: 'size', scopedSlots: { customRender: 'size' } }, - { title: 'Actions', key: 'action', scopedSlots: { customRender: 'action' } } + { title: '文件名', dataIndex: 'filename', key: 'filename' }, + { title: '时间', dataIndex: 'timestamp', key: 'timestamp', scopedSlots: { customRender: 'timestamp' } }, + { title: '大小', dataIndex: 'size', key: 'size', scopedSlots: { customRender: 'size' } }, + { title: '操作', key: 'action', scopedSlots: { customRender: 'action' } } ], backupLoading: false, backupCreating: false, @@ -472,7 +472,7 @@ .then(msg => { this.backupList = msg.obj || []; }).catch(err => { - this.$message.error('Failed to load backups'); + this.$message.error('加载备份列表失败'); }).finally(() => { this.backupLoading = false; }); @@ -481,10 +481,10 @@ this.backupCreating = true; HttpUtil.post("/panel/api/server/backup") .then(msg => { - this.$message.success('Backup created successfully'); + this.$message.success('备份创建成功'); this.fetchBackups(); }).catch(err => { - this.$message.error('Backup failed'); + this.$message.error('备份失败'); }).finally(() => { this.backupCreating = false; }); @@ -492,16 +492,16 @@ restoreBackup(filename) { HttpUtil.post("/panel/api/server/restore/" + filename) .then(msg => { - this.$message.success('Restore completed'); + this.$message.success('恢复完成'); this.fetchBackups(); }).catch(err => { - this.$message.error('Restore failed'); + this.$message.error('恢复失败'); }); }, deleteBackup(filename) { HttpUtil.post("/panel/api/server/deleteBackup/" + filename) .then(msg => { - this.$message.success('Backup deleted'); + this.$message.success('备份已删除'); this.fetchBackups(); }).catch(err => { this.$message.error('Delete failed'); diff --git a/web/html/settings/backup.html b/web/html/settings/backup.html index 48a30744..25114a5c 100644 --- a/web/html/settings/backup.html +++ b/web/html/settings/backup.html @@ -1,33 +1,33 @@
- + - + - + - Every Hour - Every 12 Hours - Every Day - Every Week + 每小时 + 每12小时 + 每天 + 每周 - + - + @@ -37,17 +37,17 @@ - + - Create Backup Now + 立即备份 - Backup List + 备份列表 @@ -61,14 +61,14 @@