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

pref(system): Optimize and upgrade related internationalization translations. (#7356)

This commit is contained in:
ssongliu 2024-12-12 23:57:50 +08:00 committed by GitHub
parent 1ff4f33ceb
commit 0d988bbd6a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 17 additions and 24 deletions

View File

@ -16,24 +16,25 @@
<el-divider v-if="!mobile" direction="vertical" /> <el-divider v-if="!mobile" direction="vertical" />
</div> </div>
<div class="flex flex-wrap items-center"> <div class="flex flex-wrap items-center">
<el-link :underline="false" type="primary" @click="toLxware"> <el-link :underline="false" class="-ml-2" type="primary" @click="toLxware">
{{ $t(globalStore.isIntl || !isProductPro ? 'license.community' : 'license.pro') }} {{ $t(globalStore.isIntl || !isProductPro ? 'license.community' : 'license.pro') }}
</el-link> </el-link>
<el-link :underline="false" class="version" type="primary" @click="copyText(version)"> <el-link :underline="false" class="version" type="primary" @click="copyText(version)">
{{ version }} {{ version }}
</el-link> </el-link>
<el-badge is-dot class="-mt-0.5" v-if="version !== 'Waiting' && globalStore.hasNewVersion"> <el-badge is-dot class="-mt-0.5" v-if="version !== 'Waiting' && globalStore.hasNewVersion">
<el-link :underline="false" type="primary" @click="onLoadUpgradeInfo"> <el-link class="ml-2" :underline="false" type="primary" @click="onLoadUpgradeInfo">
{{ $t('setting.hasNewVersion') }} {{ $t('commons.operate.update') }}
</el-link> </el-link>
</el-badge> </el-badge>
<el-link <el-link
v-if="version !== 'Waiting' && !globalStore.hasNewVersion" v-if="version !== 'Waiting' && !globalStore.hasNewVersion"
type="primary" type="primary"
:underline="false" :underline="false"
class="ml-2"
@click="onLoadUpgradeInfo" @click="onLoadUpgradeInfo"
> >
{{ $t('setting.upgradeCheck') }} {{ $t('commons.operate.update') }}
</el-link> </el-link>
<el-tag v-if="version === 'Waiting'" round style="margin-left: 10px"> <el-tag v-if="version === 'Waiting'" round style="margin-left: 10px">
{{ $t('setting.upgrading') }} {{ $t('setting.upgrading') }}
@ -200,6 +201,7 @@ onMounted(() => {
<style lang="scss" scoped> <style lang="scss" scoped>
.version { .version {
margin-left: 8px;
font-size: 14px; font-size: 14px;
color: var(--panel-color-primary-light-4); color: var(--panel-color-primary-light-4);
text-decoration: none; text-decoration: none;

View File

@ -1664,15 +1664,13 @@ const message = {
upgradeHelper: 'The upgrade requires restarting the 1Panel service. Do you want to continue?', upgradeHelper: 'The upgrade requires restarting the 1Panel service. Do you want to continue?',
noUpgrade: 'It is currently the latest version', noUpgrade: 'It is currently the latest version',
upgradeCheck: 'Check for updates',
upgradeNotes: 'Release note', upgradeNotes: 'Release note',
upgradeNow: 'Upgrade now', upgradeNow: 'Upgrade now',
source: 'Download source', source: 'Download source',
hasNewVersion: 'Update available',
about: 'About', about: 'About',
project: 'GitHub', project: 'GitHub',
issue: 'Feedback', issue: 'Issue',
doc: 'Official document', doc: 'Official document',
star: 'Star', star: 'Star',
description: 'Linux Server Panel', description: 'Linux Server Panel',
@ -1693,11 +1691,10 @@ const message = {
backupRecoverMessage: 'Please enter the compression or decompression password (leave blank to not set)', backupRecoverMessage: 'Please enter the compression or decompression password (leave blank to not set)',
}, },
license: { license: {
community: 'Community Edition: ', community: 'Free',
community2: 'Community Edition', pro: 'Pro',
pro: 'Professional Edition: ', trial: 'Trial',
trial: 'Trial Edition', office: 'Official',
office: 'Official Edition',
trialInfo: 'Version', trialInfo: 'Version',
authorizationId: 'Subscription authorization ID', authorizationId: 'Subscription authorization ID',
authorizedUser: 'Authorized user', authorizedUser: 'Authorized user',
@ -1721,7 +1718,7 @@ const message = {
technicalAdvice: 'Technical consultation', technicalAdvice: 'Technical consultation',
advice: 'Consultation', advice: 'Consultation',
indefinitePeriod: 'Indefinite Period', indefinitePeriod: 'Indefinite Period',
levelUpPro: 'Upgrade to Professional Edition', levelUpPro: 'Upgrade to Pro',
licenseSync: 'License Sync', licenseSync: 'License Sync',
knowMorePro: 'Learn More', knowMorePro: 'Learn More',
closeAlert: 'The current page can be closed in the panel settings', closeAlert: 'The current page can be closed in the panel settings',

View File

@ -1481,11 +1481,9 @@ const message = {
upgrading: '正在升級中請稍候...', upgrading: '正在升級中請稍候...',
upgradeHelper: '升級操作需要重啟 1Panel 服務是否繼續', upgradeHelper: '升級操作需要重啟 1Panel 服務是否繼續',
noUpgrade: '當前已經是最新版本', noUpgrade: '當前已經是最新版本',
upgradeCheck: '檢查更新',
upgradeNotes: '更新內容', upgradeNotes: '更新內容',
upgradeNow: '立即更新', upgradeNow: '立即更新',
source: '下載源', source: '下載源',
hasNewVersion: '有新版本',
safe: '安全', safe: '安全',
bindInfo: '監聽地址', bindInfo: '監聽地址',
@ -1583,9 +1581,8 @@ const message = {
backupRecoverMessage: '請輸入壓縮或解壓縮密碼留空則不設定', backupRecoverMessage: '請輸入壓縮或解壓縮密碼留空則不設定',
}, },
license: { license: {
community: '社區版', community: '社區版',
community2: '社區版', pro: '專業版',
pro: '專業版',
trial: '試用版', trial: '試用版',
office: '正式版', office: '正式版',
trialInfo: '版本', trialInfo: '版本',

View File

@ -1482,11 +1482,9 @@ const message = {
upgrading: '正在升级中请稍候...', upgrading: '正在升级中请稍候...',
upgradeHelper: '升级操作需要重启 1Panel 服务是否继续', upgradeHelper: '升级操作需要重启 1Panel 服务是否继续',
noUpgrade: '当前已经是最新版本', noUpgrade: '当前已经是最新版本',
upgradeCheck: '检查更新',
upgradeNotes: '更新内容', upgradeNotes: '更新内容',
upgradeNow: '立即更新', upgradeNow: '立即更新',
source: '下载源', source: '下载源',
hasNewVersion: '有新版本',
safe: '安全', safe: '安全',
bindInfo: '监听地址', bindInfo: '监听地址',
@ -1583,9 +1581,8 @@ const message = {
backupRecoverMessage: '请输入压缩或解压缩密码留空则不设置', backupRecoverMessage: '请输入压缩或解压缩密码留空则不设置',
}, },
license: { license: {
community: '社区版', community: '社区版',
community2: '社区版', pro: '专业版',
pro: '专业版',
trial: '试用版', trial: '试用版',
office: '正式版', office: '正式版',
trialInfo: '版本', trialInfo: '版本',

View File

@ -66,7 +66,7 @@
<span>{{ $t('setting.license') }}</span> <span>{{ $t('setting.license') }}</span>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<span>{{ $t('license.community2') }}</span> <span>{{ $t('license.community') }}</span>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>