mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-09-10 08:35:29 +08:00
feat: 修改国际化
This commit is contained in:
parent
207da61520
commit
8074200996
9 changed files with 127 additions and 117 deletions
Binary file not shown.
|
@ -175,18 +175,18 @@ export default {
|
|||
project: 'Project',
|
||||
config: 'Config',
|
||||
firewall: 'Firewall',
|
||||
ssl: 'SSL',
|
||||
database: 'Database',
|
||||
container: 'Container',
|
||||
cronjob: 'Cronjob',
|
||||
host: 'Host',
|
||||
security: 'Security',
|
||||
files: 'File Management',
|
||||
files: 'File',
|
||||
monitor: 'Monitor',
|
||||
terminal: 'Terminal',
|
||||
settings: 'Setting',
|
||||
toolbox: 'Toolbox',
|
||||
logs: 'Log',
|
||||
ssl: 'Certificate',
|
||||
},
|
||||
home: {
|
||||
overview: 'Overview',
|
||||
|
@ -471,7 +471,7 @@ export default {
|
|||
repo: 'Repo',
|
||||
createRepo: 'Add repo',
|
||||
name: 'Name',
|
||||
protocol: 'protocol',
|
||||
protocol: 'Protocol',
|
||||
httpRepo: 'The http repository needs to restart the docker service to add credit',
|
||||
delInsecure: 'Deletion of credit',
|
||||
delInsecureHelper: 'docker service needs to be restarted to delete the credit. Do you want to delete it?',
|
||||
|
@ -648,21 +648,21 @@ export default {
|
|||
dir: 'Folder',
|
||||
upload: 'Upload',
|
||||
download: 'Download',
|
||||
fileName: 'File name',
|
||||
fileName: 'Dile name',
|
||||
search: 'Find',
|
||||
mode: 'Permission',
|
||||
owner: 'Owner',
|
||||
file: 'File',
|
||||
remoteFile: 'Remote download',
|
||||
share: 'Share',
|
||||
sync: 'Data synchronization',
|
||||
sync: 'Data Synchronization',
|
||||
size: 'Size',
|
||||
updateTime: 'Modification time',
|
||||
updateTime: 'Modification Time',
|
||||
open: 'Open',
|
||||
rename: 'Rename',
|
||||
role: 'Permission',
|
||||
info: 'Attribute',
|
||||
linkFile: 'Soft link file',
|
||||
linkFile: 'Soft link',
|
||||
terminal: 'Terminal',
|
||||
shareList: 'Share list',
|
||||
zip: 'Compressed',
|
||||
|
@ -671,19 +671,19 @@ export default {
|
|||
path: 'Path',
|
||||
public: 'Public',
|
||||
setRole: 'Set permissions',
|
||||
link: 'whether to link',
|
||||
link: 'Whether to link',
|
||||
rRole: 'Read',
|
||||
wRole: 'Write',
|
||||
xRole: 'Executable',
|
||||
name: 'Name',
|
||||
compress: 'Compression',
|
||||
deCompress: 'Decompression',
|
||||
compressType: 'Compression format',
|
||||
compressDst: 'Compression path',
|
||||
compress: 'Compress',
|
||||
deCompress: 'Decompress',
|
||||
compressType: 'Compress format',
|
||||
compressDst: 'Compress path',
|
||||
replace: 'Overwrite existing files',
|
||||
compressSuccess: 'Compressed successfully',
|
||||
deCompressSuccess: 'Decompression succeeded',
|
||||
deCompressDst: 'Decompression path',
|
||||
deCompressSuccess: 'Decompress succeeded',
|
||||
deCompressDst: 'Decompress path',
|
||||
linkType: 'Link Type',
|
||||
softLink: 'Soft link',
|
||||
hardLink: 'Hard link',
|
||||
|
@ -757,7 +757,7 @@ export default {
|
|||
safeEntranceHelper:
|
||||
'Panel management portal. You can log in to the panel only through a specified security portal, for example: onepanel',
|
||||
expirationTime: 'Expiration Time',
|
||||
unSetting: 'Not set',
|
||||
unSetting: 'Not Set',
|
||||
noneSetting:
|
||||
'Set the expiration time for the panel password. After the expiration, you need to reset the password',
|
||||
expirationHelper: 'If the password expiration time is [0] days, the password expiration function is disabled',
|
||||
|
@ -827,24 +827,24 @@ export default {
|
|||
},
|
||||
app: {
|
||||
app: 'Application',
|
||||
installName: 'installation name',
|
||||
installed: 'installed',
|
||||
all: 'all',
|
||||
version: 'version',
|
||||
installName: 'Name',
|
||||
installed: 'Installed',
|
||||
all: 'All',
|
||||
version: 'Version',
|
||||
detail: 'Details',
|
||||
install: 'Install',
|
||||
author: 'Author',
|
||||
source: 'source',
|
||||
sync: 'synchronous',
|
||||
source: 'Source',
|
||||
sync: 'Synchronous',
|
||||
appName: 'Application Name',
|
||||
status: 'status',
|
||||
container: 'container',
|
||||
status: 'Status',
|
||||
container: 'Container',
|
||||
restart: 'Restart',
|
||||
up: 'Start',
|
||||
down: 'Stop',
|
||||
name: 'name',
|
||||
name: 'Name',
|
||||
description: 'Description',
|
||||
delete: 'delete',
|
||||
delete: 'Delete',
|
||||
deleteWarn:
|
||||
'The delete operation will delete all data and backups together. This operation cannot be rolled back. Do you want to continue? ',
|
||||
syncSuccess: 'Sync successfully',
|
||||
|
@ -867,9 +867,9 @@ export default {
|
|||
checkTitle: 'Prompt',
|
||||
website: 'website',
|
||||
database: 'database',
|
||||
defaultConfig: 'Default configuration',
|
||||
defaultConfig: 'Default Configuration',
|
||||
defaultConfigHelper: 'It has been restored to the default configuration, it will take effect after saving',
|
||||
forceDelete: 'force delete',
|
||||
forceDelete: 'Force delete',
|
||||
forceDeleteHelper:
|
||||
'Forced deletion will ignore errors generated during the deletion process and eventually delete metadata',
|
||||
deleteBackup: 'Delete backup',
|
||||
|
@ -879,41 +879,42 @@ export default {
|
|||
param: 'parameter configuration',
|
||||
},
|
||||
website: {
|
||||
website: 'website',
|
||||
primaryDomain: 'primary domain name',
|
||||
otherDomains: 'other domain names',
|
||||
website: 'Website',
|
||||
primaryDomain: 'Primary Domain',
|
||||
otherDomains: 'Other Domains',
|
||||
type: 'Type',
|
||||
static: 'Static website',
|
||||
deployment: 'One-key deployment',
|
||||
static: 'Static',
|
||||
deployment: 'Deployment',
|
||||
supportUpType: 'Only support tar.gz files',
|
||||
zipFormat: 'tar.gz compressed package structure: test.tar.gz compressed package must contain website.json file',
|
||||
proxy: 'reverse proxy',
|
||||
alias: 'Code Name',
|
||||
remark: 'remark',
|
||||
group: 'group',
|
||||
proxy: 'Reverse Proxy',
|
||||
alias: 'Path Name',
|
||||
remark: 'Remark',
|
||||
group: 'Group',
|
||||
groupSetting: 'Group Management',
|
||||
createGroup: 'Create Group',
|
||||
app: 'Application',
|
||||
appNew: 'New application',
|
||||
appInstalled: 'Installed application',
|
||||
create: 'Create a website',
|
||||
delete: 'Delete website',
|
||||
deleteApp: 'Delete application',
|
||||
deleteBackup: 'Delete backup',
|
||||
domain: 'domain name',
|
||||
domainHelper: 'One domain name per line, support * and IP address, support domain name: port',
|
||||
port: 'port',
|
||||
addDomain: 'Add domain name',
|
||||
domainConfig: 'domain name settings',
|
||||
defaultDoc: 'default document',
|
||||
perserver: 'concurrency limit',
|
||||
appNew: 'New Application',
|
||||
appInstalled: 'Installed Application',
|
||||
create: 'Create Website',
|
||||
delete: 'Delete Website',
|
||||
deleteApp: 'Delete Application',
|
||||
deleteBackup: 'Delete Backup',
|
||||
domain: 'Domain',
|
||||
domainHelper: 'One domain per line, support * and IP address, support domain name: port',
|
||||
port: 'Port',
|
||||
addDomain: 'Add Domain',
|
||||
domainConfig: 'Domain Settings',
|
||||
defaultDoc: 'Default Document',
|
||||
perserver: 'Concurrency',
|
||||
perserverHelper: 'Limit the maximum concurrency of the current site',
|
||||
perip: 'Single IP limit',
|
||||
perip: 'Single IP',
|
||||
peripHelper: 'Limit the maximum number of concurrent access to a single IP',
|
||||
rate: 'flow limit',
|
||||
rate: 'Flow Limit',
|
||||
rateHelper: 'Limit the flow of each request (unit: KB)',
|
||||
limtHelper: 'Enable flow control',
|
||||
other: 'other',
|
||||
currentSSL: 'current certificate',
|
||||
other: 'Other',
|
||||
currentSSL: 'Current Certificate',
|
||||
dnsAccount: 'DNS Account',
|
||||
applySSL: 'Certificate Application',
|
||||
SSLList: 'Certificate List',
|
||||
|
@ -922,42 +923,42 @@ export default {
|
|||
manual: 'Manual parsing',
|
||||
key: 'Key',
|
||||
check: 'View',
|
||||
acmeAccountManage: 'Acme Account Management',
|
||||
acmeAccountManage: 'Acme Account',
|
||||
email: 'Email',
|
||||
addAccount: 'Add new account',
|
||||
acmeAccount: 'Acme Account',
|
||||
provider: 'Verification method',
|
||||
dnsCommon: 'Manual resolution',
|
||||
expireDate: 'Expiration time',
|
||||
brand: 'issuer',
|
||||
expireDate: 'Expiration Time',
|
||||
brand: 'Issuer',
|
||||
deploySSL: 'Deployment',
|
||||
deploySSLHelper: 'Are you sure to deploy the certificate? ',
|
||||
ssl: 'certificate',
|
||||
dnsAccountManage: 'DNS account management',
|
||||
ssl: 'Certificate',
|
||||
dnsAccountManage: 'DNS Account',
|
||||
renewSSL: 'Renew',
|
||||
renewHelper: 'Are you sure to renew the certificate? ',
|
||||
renewSuccess: 'Renew Certificate',
|
||||
config: 'Configuration',
|
||||
enableHTTPS: 'Enable HTTPS',
|
||||
aliasHelper: 'The code name is the folder name of the website directory',
|
||||
aliasHelper: 'Path Name is the folder name of the website directory',
|
||||
lastBackupAt: 'last backup time',
|
||||
null: 'none',
|
||||
nginxConfig: 'Nginx configuration',
|
||||
websiteConfig: 'Website Settings',
|
||||
basic: 'Basic',
|
||||
source: 'configuration file',
|
||||
source: 'Configuration',
|
||||
security: 'Security',
|
||||
backup: 'Backup',
|
||||
log: 'log',
|
||||
nginxPer: 'performance adjustment',
|
||||
neverExpire: 'never expire',
|
||||
protocol: 'protocol',
|
||||
log: 'Log',
|
||||
nginxPer: 'Performance Tuning',
|
||||
neverExpire: 'Never Expire',
|
||||
protocol: 'Protocol',
|
||||
setDefault: 'Set as default',
|
||||
default: 'Default',
|
||||
deleteHelper: 'Related application status is abnormal, please check',
|
||||
toApp: 'Go to the installed list',
|
||||
cycle: 'cycle',
|
||||
frequency: 'frequency',
|
||||
cycle: 'Cycle',
|
||||
frequency: 'Frequency',
|
||||
ccHelper:
|
||||
'Accumulatively request the same URL more than {1} times within {0} seconds, trigger CC defense, block this IP',
|
||||
seconds: 'seconds',
|
||||
|
@ -966,10 +967,10 @@ export default {
|
|||
fileExt: 'file extension',
|
||||
fileExtBlock: 'file extension blacklist',
|
||||
value: 'value',
|
||||
enable: 'open',
|
||||
proxyAddress: 'proxy address',
|
||||
enable: 'Enable',
|
||||
proxyAddress: 'Proxy Address',
|
||||
proxyHelper: 'Example: http://127.0.0.1:8080',
|
||||
forceDelete: 'force delete',
|
||||
forceDelete: 'Force Delete',
|
||||
forceDeleteHelper:
|
||||
'Forced deletion will ignore errors generated during the deletion process and eventually delete metadata',
|
||||
deleteAppHelper: 'Delete associated applications and application backups at the same time',
|
||||
|
@ -977,29 +978,29 @@ export default {
|
|||
deleteConfirmHelper:
|
||||
'The delete operation cannot be rolled back, please enter <span style="color:red"> "{0}" </span> to delete',
|
||||
staticPath: 'Corresponding main directory:',
|
||||
limit: 'limit scheme',
|
||||
limit: 'Scheme',
|
||||
blog: 'Forum/Blog',
|
||||
imageSite: 'picture site',
|
||||
downloadSite: 'download site',
|
||||
imageSite: 'Picture Site',
|
||||
downloadSite: 'Download Site',
|
||||
shopSite: 'Mall',
|
||||
doorSite: 'Portal',
|
||||
qiteSite: 'Enterprise',
|
||||
videoSite: 'Video',
|
||||
errLog: 'error log',
|
||||
accessLog: 'website log',
|
||||
errLog: 'Error Log',
|
||||
accessLog: 'Website Log',
|
||||
stopHelper:
|
||||
'After stopping the site, it will not be able to access normally, and the user will display the stop page of the current site when visiting. Do you want to continue? ',
|
||||
startHelper:
|
||||
'After enabling the site, users can access the content of the site normally, do you want to continue? ',
|
||||
sitePath: 'Website directory',
|
||||
siteAlias: 'Site code name',
|
||||
primaryPath: 'main directory',
|
||||
sitePath: 'Website Directory',
|
||||
siteAlias: 'Site Path Name',
|
||||
primaryPath: 'Main directory',
|
||||
folderTitle: 'The main directory of the website mainly contains four folders',
|
||||
wafFolder: 'Firewall Rules',
|
||||
indexFolder: 'Static website root directory',
|
||||
logFoler: 'website log',
|
||||
sslFolder: 'Website certificate',
|
||||
enableOrNot: 'whether to enable',
|
||||
enableOrNot: 'Enable',
|
||||
oldSSL: 'Select an existing certificate',
|
||||
manualSSL: 'manually import certificate',
|
||||
select: 'Select',
|
||||
|
@ -1018,7 +1019,7 @@ export default {
|
|||
SSLConfig: 'Certificate Settings',
|
||||
SSLProConfig: 'SSL protocol settings',
|
||||
supportProtocol: 'Supported protocol version',
|
||||
encryptionAlgorithm: 'encryption algorithm',
|
||||
encryptionAlgorithm: 'Rncryption Algorithm',
|
||||
notSecurity: '(not safe)',
|
||||
encryptHelper:
|
||||
"Let's Encrypt has a frequency limit for issuing certificates, but it is sufficient to meet normal needs. Too frequent operations will cause issuance failure. For specific restrictions, please see <a target='_blank' href='https://letsencrypt.org/zh-cn/docs /rate-limits/'>official document</a> ",
|
||||
|
@ -1028,13 +1029,17 @@ export default {
|
|||
data: 'data',
|
||||
ever: 'permanent',
|
||||
nextYear: 'One year later',
|
||||
allGroup: 'All groups',
|
||||
allGroup: 'All Groups',
|
||||
noLog: 'There are currently no logs...',
|
||||
defaultServer: 'default site',
|
||||
defaultServer: 'Default Site',
|
||||
noDefaulServer: 'Not set',
|
||||
defaultServerHelper:
|
||||
'After setting the default site, all unbound domain names and IPs are directed to the default site\n which can effectively prevent malicious analysis',
|
||||
restoreHelper: 'Are you sure to restore using this backup?',
|
||||
websiteDeploymentHelper: 'Create a website using an application deployed from 1Panel',
|
||||
websiteStatictHelper: 'Create a website directory on the host',
|
||||
websiteProxyHelper:
|
||||
'The proxy has existing services, for example, the machine has installed the halo service using port 8080, then the proxy address is http://127.0.0.1:8080',
|
||||
},
|
||||
nginx: {
|
||||
serverNamesHashBucketSizeHelper: 'The hash table size of the server name',
|
||||
|
@ -1051,12 +1056,13 @@ export default {
|
|||
reading: 'Number of requests (Reading)',
|
||||
writing: 'Number of Responses (Writing)',
|
||||
waiting: 'resident process (Waiting)',
|
||||
status: 'current status',
|
||||
nginxConfig: 'OpenResty settings',
|
||||
configResource: 'Configuration modification',
|
||||
saveAndReload: 'save and reload',
|
||||
status: 'Current Status',
|
||||
nginxConfig: 'OpenResty Settings',
|
||||
configResource: 'Configuration',
|
||||
saveAndReload: 'Save and Reload',
|
||||
},
|
||||
ssl: {
|
||||
create: 'Create Certificate',
|
||||
provider: 'Type',
|
||||
manualCreate: 'manually created',
|
||||
acmeAccount: 'Acme Account',
|
||||
|
@ -1066,10 +1072,10 @@ export default {
|
|||
type: 'Type',
|
||||
dnsResolveHelper: 'Please go to the DNS resolution service provider to add the following resolution records:',
|
||||
detail: 'Details',
|
||||
msg: 'Certificate Information',
|
||||
ssl: 'certificate',
|
||||
key: 'private key',
|
||||
startDate: 'effective time',
|
||||
msg: 'Information',
|
||||
ssl: 'Certificate',
|
||||
key: 'Private Key',
|
||||
startDate: 'Effective Time',
|
||||
organization: 'issuing organization',
|
||||
renewConfirm: 'Are you sure to renew? ',
|
||||
autoRenew: 'Automatic renewal',
|
||||
|
@ -1081,10 +1087,10 @@ export default {
|
|||
firewall: {
|
||||
ccDeny: 'CC Protection',
|
||||
ipWhiteList: 'IP Whitelist',
|
||||
ipBlockList: 'IP blacklist',
|
||||
ipBlockList: 'IP Blacklist',
|
||||
fileExtBlockList: 'File extension blacklist',
|
||||
urlWhiteList: 'URL whitelist',
|
||||
urlBlockList: 'URL blacklist',
|
||||
urlWhiteList: 'URL Whitelist',
|
||||
urlBlockList: 'URL Blacklist',
|
||||
argsCheck: 'GET parameter check',
|
||||
postCheck: 'POST parameter verification',
|
||||
cookieBlockList: 'Cookie Blacklist',
|
||||
|
|
|
@ -1048,9 +1048,9 @@ export default {
|
|||
nextYear: '一年后',
|
||||
allGroup: '所有分组',
|
||||
noLog: '当前没有日志...',
|
||||
defaulServer: '默认站点',
|
||||
defaultServer: '默认站点',
|
||||
noDefaulServer: '未设置',
|
||||
defaulServerHelper: '设置默认站点后,所有未绑定的域名和IP都被定向到默认站点\n可有效防止恶意解析',
|
||||
defaultServerHelper: '设置默认站点后,所有未绑定的域名和IP都被定向到默认站点\n可有效防止恶意解析',
|
||||
websiteDeploymentHelper: '使用从 1Panel 部署的应用创建网站',
|
||||
websiteStatictHelper: '在主机上创建网站目录',
|
||||
websiteProxyHelper:
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
<template>
|
||||
<el-drawer v-model="open" :before-close="handleClose" :title="$t('file.rename')" size="40%">
|
||||
<el-drawer v-model="open" size="40%">
|
||||
<template #header>
|
||||
<DrawerHeader :header="$t('file.rename')" :back="handleClose" />
|
||||
</template>
|
||||
<el-row>
|
||||
<el-col :span="22" :offset="1">
|
||||
<el-form
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="12" :offset="1">
|
||||
<el-col :span="14" :offset="1">
|
||||
<el-form
|
||||
ref="httpsForm"
|
||||
label-position="left"
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<el-form
|
||||
ref="websiteForm"
|
||||
label-position="right"
|
||||
label-width="80px"
|
||||
label-width="130px"
|
||||
:model="form"
|
||||
:rules="rules"
|
||||
:loading="loading"
|
||||
|
|
|
@ -4,7 +4,23 @@
|
|||
<DrawerHeader :header="$t('website.create')" :back="handleClose">
|
||||
<template #buttons>
|
||||
<span class="drawer-header-button">
|
||||
<template v-for="item in buttonList" :key="item.value">
|
||||
<template
|
||||
v-for="item in [
|
||||
{
|
||||
label: i18n.global.t('website.deployment'),
|
||||
value: 'deployment',
|
||||
},
|
||||
{
|
||||
label: i18n.global.t('website.static'),
|
||||
value: 'static',
|
||||
},
|
||||
{
|
||||
label: i18n.global.t('website.proxy'),
|
||||
value: 'proxy',
|
||||
},
|
||||
]"
|
||||
:key="item.value"
|
||||
>
|
||||
<el-button
|
||||
:class="website.type === item.value ? 'active-button' : ''"
|
||||
@click="website.type = item.value"
|
||||
|
@ -182,21 +198,6 @@ import Params from '@/views/app-store/detail/params/index.vue';
|
|||
import Check from '../check/index.vue';
|
||||
import { MsgSuccess } from '@/utils/message';
|
||||
|
||||
const buttonList = [
|
||||
{
|
||||
label: i18n.global.t('website.deployment'),
|
||||
value: 'deployment',
|
||||
},
|
||||
{
|
||||
label: i18n.global.t('website.static'),
|
||||
value: 'static',
|
||||
},
|
||||
{
|
||||
label: i18n.global.t('website.proxy'),
|
||||
value: 'proxy',
|
||||
},
|
||||
];
|
||||
|
||||
const websiteForm = ref<FormInstance>();
|
||||
const website = ref({
|
||||
primaryDomain: '',
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
<template>
|
||||
<el-drawer :close-on-click-modal="false" v-model="open" size="40%">
|
||||
<template #header>
|
||||
<DrawerHeader :header="$t('website.defaulServer')" :back="handleClose"></DrawerHeader>
|
||||
<DrawerHeader :header="$t('website.defaultServer')" :back="handleClose"></DrawerHeader>
|
||||
</template>
|
||||
<el-row>
|
||||
<el-col :span="22" :offset="1">
|
||||
<el-form label-position="top">
|
||||
<el-form-item :label="$t('website.defaulServer')">
|
||||
<el-form-item :label="$t('website.defaultServer')">
|
||||
<el-select v-model="defaultId" style="width: 100%">
|
||||
<el-option :value="0" :key="-1" :label="$t('website.noDefaulServer')"></el-option>
|
||||
<el-option
|
||||
|
@ -20,7 +20,7 @@
|
|||
</el-form>
|
||||
<el-alert :closable="false">
|
||||
<template #default>
|
||||
<span style="white-space: pre-line">{{ $t('website.defaulServerHelper') }}</span>
|
||||
<span style="white-space: pre-line">{{ $t('website.defaultServerHelper') }}</span>
|
||||
</template>
|
||||
</el-alert>
|
||||
</el-col>
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
{{ $t('website.group') }}
|
||||
</el-button>
|
||||
<el-button type="primary" plain @click="openDefault">
|
||||
{{ $t('website.defaulServer') }}
|
||||
{{ $t('website.defaultServer') }}
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
|
|
Loading…
Add table
Reference in a new issue