1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 16:29:17 +08:00

fix: 修改部分国际化内容 (#1670)

This commit is contained in:
zhengkunwang 2023-07-14 15:08:10 +08:00 committed by GitHub
parent 73a61933c5
commit 61a0244cfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 7 deletions

View File

@ -1318,7 +1318,7 @@ const message = {
startHelper: startHelper:
'After enabling the site, users can access the content of the site normally, do you want to continue? ', 'After enabling the site, users can access the content of the site normally, do you want to continue? ',
sitePath: 'Website Directory', sitePath: 'Website Directory',
siteAlias: 'Site Path Name', siteAlias: 'Site Alias',
primaryPath: 'Main directory', primaryPath: 'Main directory',
folderTitle: 'The main directory of the website mainly contains four folders', folderTitle: 'The main directory of the website mainly contains four folders',
wafFolder: 'Firewall Rules', wafFolder: 'Firewall Rules',
@ -1418,11 +1418,11 @@ const message = {
'The password is asymmetrically encrypted and cannot be echoed. Editing needs to reset the password', 'The password is asymmetrically encrypted and cannot be echoed. Editing needs to reset the password',
antiLeech: 'Anti-leech', antiLeech: 'Anti-leech',
extends: 'Extension', extends: 'Extension',
browserCache: 'browser cache', browserCache: 'Cache',
leechLog: 'Record anti-leech log', leechLog: 'Record anti-leech log',
accessDomain: 'Allowed domain names', accessDomain: 'Allowed domains',
leechReturn: 'Response resource', leechReturn: 'Response resource',
noneRef: 'Allow the source to be empty', noneRef: 'Allow empty source',
disable: 'not enabled', disable: 'not enabled',
disableLeechHelper: 'Whether to disable the anti-leech', disableLeechHelper: 'Whether to disable the anti-leech',
disableLeech: 'Disable anti-leech', disableLeech: 'Disable anti-leech',
@ -1616,6 +1616,7 @@ const message = {
raddr: 'Destination address/port', raddr: 'Destination address/port',
stopProcess: 'End', stopProcess: 'End',
stopProcessWarn: 'Are you sure you want to end this process (PID:{0})? ', stopProcessWarn: 'Are you sure you want to end this process (PID:{0})? ',
processName: 'ProcessName',
}, },
}; };

View File

@ -1531,6 +1531,7 @@ const message = {
raddr: '目標地址/端口', raddr: '目標地址/端口',
stopProcess: '結束', stopProcess: '結束',
stopProcessWarn: '是否確定結束此進程 (PID:{0})', stopProcessWarn: '是否確定結束此進程 (PID:{0})',
processName: '進程名稱',
}, },
}; };
export default { export default {

View File

@ -21,7 +21,7 @@
:type="activeTag === item.key ? 'primary' : ''" :type="activeTag === item.key ? 'primary' : ''"
:plain="activeTag !== item.key" :plain="activeTag !== item.key"
> >
{{ item.name }} {{ language == 'zh' || language == 'tw' ? item.name : item.key }}
</el-button> </el-button>
</div> </div>
</div> </div>
@ -271,6 +271,7 @@ import { getAge } from '@/utils/util';
import { useRouter } from 'vue-router'; import { useRouter } from 'vue-router';
import { MsgSuccess } from '@/utils/message'; import { MsgSuccess } from '@/utils/message';
import { toFolder } from '@/global/business'; import { toFolder } from '@/global/business';
import { useI18n } from 'vue-i18n';
const data = ref<any>(); const data = ref<any>();
const loading = ref(false); const loading = ref(false);
@ -308,6 +309,8 @@ const router = useRouter();
const activeName = ref(i18n.global.t('app.installed')); const activeName = ref(i18n.global.t('app.installed'));
const mode = ref('installed'); const mode = ref('installed');
const language = useI18n().locale.value;
const sync = () => { const sync = () => {
syncLoading.value = true; syncLoading.value = true;
SyncInstalledApp() SyncInstalledApp()

View File

@ -7,7 +7,7 @@
:rules="rules" :rules="rules"
ref="leechRef" ref="leechRef"
label-position="right" label-position="right"
label-width="120px" label-width="180px"
class="moblie-form" class="moblie-form"
> >
<el-form-item :label="$t('website.enableOrNot')"> <el-form-item :label="$t('website.enableOrNot')">

View File

@ -1,7 +1,7 @@
<template> <template>
<el-row :gutter="20" v-loading="loading"> <el-row :gutter="20" v-loading="loading">
<el-col :xs="24" :sm="18" :md="8" :lg="8" :xl="8"> <el-col :xs="24" :sm="18" :md="8" :lg="8" :xl="8">
<el-form ref="websiteForm" label-position="right" label-width="80px" :model="form" :rules="rules"> <el-form ref="websiteForm" label-position="right" label-width="150px" :model="form" :rules="rules">
<el-form-item :label="$t('website.primaryDomain')" prop="primaryDomain"> <el-form-item :label="$t('website.primaryDomain')" prop="primaryDomain">
<el-input v-model="form.primaryDomain" disabled></el-input> <el-input v-model="form.primaryDomain" disabled></el-input>
</el-form-item> </el-form-item>