1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-02-28 19:14:13 +08:00

feat: Updated partial translations. (#7905)

This commit is contained in:
zhengkunwang 2025-02-19 13:38:51 +08:00 committed by GitHub
parent 4da557fada
commit b6dcf33114
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
14 changed files with 27 additions and 12 deletions

View File

@ -86,7 +86,7 @@ func (n NginxService) GetStatus() (response.NginxStatus, error) {
url = fmt.Sprintf("http://127.0.0.1:%v/nginx_status", httpPort)
}
res, err := http.Get(url)
if err != nil {
if err != nil || res.StatusCode > 300 {
return response.NginxStatus{}, err
}
defer res.Body.Close()

View File

@ -294,6 +294,7 @@ const message = {
executing: 'Executing',
installerr: 'Installation failed',
applyerror: 'Apply failed',
interrupt: 'Interrupted',
},
units: {
second: 'Second',
@ -337,7 +338,8 @@ const message = {
process: 'Process',
network: 'Network',
supervisor: 'Supervisor',
name: 'Tamper Proof',
tamper: 'Tamper-proof',
app: 'Application',
},
home: {
recommend: 'recommend',

View File

@ -288,6 +288,7 @@ const message = {
executing: '実行中',
installerr: 'インストールに失敗しました',
applyerror: '適用に失敗しました',
interrupt: '中断',
},
units: {
second: '2番目|2番目|',
@ -332,7 +333,8 @@ const message = {
process: 'プロセス|プロセス',
network: 'ネットワーク|ネットワーク',
supervisor: '監督者',
name: '改ざん',
tamper: '改ざん防止',
app: 'アプリケーション',
},
home: {
restart_1panel: 'パネルを再起動します',

View File

@ -289,6 +289,7 @@ const message = {
executing: '실행 ',
installerr: '설치 실패',
applyerror: '적용 실패',
interrupt: '중단됨',
},
units: {
second: ' | | ',
@ -333,7 +334,8 @@ const message = {
process: '프로세스 | 프로세스들',
network: '네트워크 | 네트워크들',
supervisor: '슈퍼바이저',
name: '변조 방지',
tamper: '변조 방지',
app: '애플리케이션',
},
home: {
restart_1panel: '패널 재시작',

View File

@ -295,6 +295,7 @@ const message = {
executing: 'Melaksanakan',
installerr: 'Pemasangan gagal',
applyerror: 'Permohonan gagal',
interrupt: 'Dihentikan',
},
units: {
second: 'saat | saat | saat',
@ -339,7 +340,8 @@ const message = {
process: 'Process | Processes',
network: 'Network | Networks',
supervisor: 'Supervisor',
name: 'Tamper Proof',
tamper: 'Bukti Pengubahsuaian',
app: 'Aplikasi',
},
home: {
restart_1panel: 'Mulakan semula panel',

View File

@ -293,6 +293,7 @@ const message = {
executing: 'Executando',
installerr: 'Falha na instalação',
applyerror: 'Falha na aplicação',
interrupt: 'Interrompido',
},
units: {
second: 'segundo | segundos | segundos',
@ -337,7 +338,8 @@ const message = {
process: 'Processo | Processos',
network: 'Rede | Redes',
supervisor: 'Supervisor',
name: 'Imunidade contra Modificação',
tamper: 'À prova de violação',
app: 'Aplicativo',
},
home: {
restart_1panel: 'Reiniciar painel',

View File

@ -289,6 +289,7 @@ const message = {
executing: 'Выполнение',
installerr: 'Ошибка установки',
applyerror: 'Ошибка применения',
interrupt: 'Прервано',
},
units: {
second: ' секунда | секунда | секунд',
@ -333,7 +334,8 @@ const message = {
process: 'Процесс | Процессы',
network: 'Сеть | Сети',
supervisor: 'Супервизор',
name: 'Защита от подмены',
tamper: 'Защита от несанкционированного доступа',
app: 'Приложение',
},
home: {
restart_1panel: 'Перезапустить панель',

View File

@ -288,6 +288,7 @@ const message = {
executing: '執行中',
installerr: '安裝失敗',
applyerror: '申請失敗',
interrupt: '中斷',
},
units: {
second: '秒',
@ -331,6 +332,7 @@ const message = {
network: '網絡',
supervisor: '進程守護',
tamper: '防篡改',
app: '應用',
},
home: {
recommend: '推薦',

View File

@ -286,6 +286,7 @@ const message = {
executing: '执行中',
installerr: '安装失败',
applyerror: '申请失败',
interrupt: '中断',
},
units: {
second: '秒',
@ -329,6 +330,7 @@ const message = {
network: '网络',
supervisor: '进程守护',
tamper: '防篡改',
app: '应用',
},
home: {
recommend: '推荐',

View File

@ -636,7 +636,6 @@ export function emptyLineFilter(str: string, spilt: string) {
return results.join(spilt);
}
// 文件类型映射
let fileTypes = {
image: ['.jpg', '.jpeg', '.png', '.bmp', '.gif', '.tiff', '.ico', '.svg', '.webp'],
compress: ['.zip', '.rar', '.gz', '.war', '.tgz', '.7z', '.tar.gz', '.tar', '.bz2', '.xz', '.tar.bz2', '.tar.xz'],

View File

@ -28,7 +28,7 @@
<el-input v-model.trim="req.name"></el-input>
</el-form-item>
<el-form-item :label="$t('app.version')" prop="version">
<el-select v-model="req.version" @change="getAppDetail(req.version)">
<el-select v-model="req.version" @change="getDetail(req.version)">
<el-option
v-for="(version, index) in appVersions"
:key="index"

View File

@ -13,7 +13,7 @@
<el-row>
<el-col :xs="24" :sm="20" :md="15" :lg="12" :xl="12">
<el-form-item :label="$t('app.defaultWebDomain')" prop="defaultDomain">
<el-input v-model="config.defaultDomain">
<el-input v-model="config.defaultDomain" disabled>
<template #prepend>
<el-select v-model="protocol" placeholder="Select" class="p-w-100" disabled>
<el-option label="HTTP" value="http://" />

View File

@ -62,7 +62,7 @@
<el-table-column
prop="status"
column-key="status"
:label="$t(commons.table.status)"
:label="$t('commons.table.status')"
:filters="[
{ text: 'LISTEN', value: 'LISTEN' },
{ text: 'ESTABLISHED', value: 'ESTABLISHED' },

View File

@ -2,7 +2,7 @@
<div class="p-w-400">
<el-descriptions border :column="1">
<div v-for="(resource, index) of data" :key="index">
<el-descriptions-item :label="$t('website.' + resource.type)">{{ resource.name }}</el-descriptions-item>
<el-descriptions-item :label="$t('menu.' + resource.type)">{{ resource.name }}</el-descriptions-item>
</div>
</el-descriptions>
<el-form