From 9cf1b25800c34545839e21c5787a0b115bc20f94 Mon Sep 17 00:00:00 2001 From: ilworkcn <1061372739@qq.com> Date: Mon, 27 Jun 2022 16:25:11 +0800 Subject: [PATCH 01/16] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=90=8E=E5=8F=B0?= =?UTF-8?q?=E6=B1=89=E5=8C=96=E8=A1=A5=E4=B8=81=E7=89=88=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit sc_v1.9.0_001 --- resources/views/admin/index.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/admin/index.blade.php b/resources/views/admin/index.blade.php index 6c1364a..a330893 100644 --- a/resources/views/admin/index.blade.php +++ b/resources/views/admin/index.blade.php @@ -32,7 +32,7 @@
@if ($version->isLatestPanel()) - You are running Pterodactyl Panel version {{ config('app.version') }}. Your panel is up-to-date! + You are running Pterodactyl Panel version {{ config('app.version') }}. 冰凌家汉化版本 sc_v1.9.1_001 @else Your panel is not up-to-date! The latest version is {{ $version->getPanel() }} and you are currently running version {{ config('app.version') }}. @endif From 0e376ebecf013a6e08736f913ecd6fdeb59862a2 Mon Sep 17 00:00:00 2001 From: ilworkcn <1061372739@qq.com> Date: Mon, 27 Jun 2022 16:38:34 +0800 Subject: [PATCH 02/16] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/scripts/components/auth/LoginContainer.tsx | 2 +- resources/scripts/components/auth/LoginFormContainer.tsx | 2 +- resources/scripts/components/elements/PageContentBlock.tsx | 4 ++-- .../scripts/components/server/backups/BackupContainer.tsx | 2 +- resources/scripts/components/server/users/UsersContainer.tsx | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/resources/scripts/components/auth/LoginContainer.tsx b/resources/scripts/components/auth/LoginContainer.tsx index 5af9eb6..3c479a6 100644 --- a/resources/scripts/components/auth/LoginContainer.tsx +++ b/resources/scripts/components/auth/LoginContainer.tsx @@ -74,7 +74,7 @@ const LoginContainer = ({ history }: RouteComponentProps) => { })} > {({ isSubmitting, setSubmitting, submitForm }) => ( - +
diff --git a/resources/scripts/components/auth/LoginFormContainer.tsx b/resources/scripts/components/auth/LoginFormContainer.tsx index 6ecf320..1611acd 100644 --- a/resources/scripts/components/auth/LoginFormContainer.tsx +++ b/resources/scripts/components/auth/LoginFormContainer.tsx @@ -50,7 +50,7 @@ export default forwardRef(({ title, ...props }, ref) => > Pterodactyl Software - which Sinicizated by + which Sinicizated by = ({ title, showFlashKey > Pterodactyl - which Sinicizated by + which Sinicizated by - iLwork.CN STUDIO ® + iLwork.CN STUDIO ®  © 2015 - {new Date().getFullYear()}

diff --git a/resources/scripts/components/server/backups/BackupContainer.tsx b/resources/scripts/components/server/backups/BackupContainer.tsx index 2bc13a7..701c848 100644 --- a/resources/scripts/components/server/backups/BackupContainer.tsx +++ b/resources/scripts/components/server/backups/BackupContainer.tsx @@ -63,7 +63,7 @@ const BackupContainer = () => {
{backupLimit > 0 && backups.backupCount > 0 && (

- 已为此服务器创建 {backups.backupCount} / {backupLimit} 个备份。. + 已为此服务器创建 {backups.backupCount} / {backupLimit} 个备份.

)} {backupLimit > 0 && backupLimit > backups.backupCount && ( diff --git a/resources/scripts/components/server/users/UsersContainer.tsx b/resources/scripts/components/server/users/UsersContainer.tsx index ab750d5..eaa0cc2 100644 --- a/resources/scripts/components/server/users/UsersContainer.tsx +++ b/resources/scripts/components/server/users/UsersContainer.tsx @@ -51,7 +51,7 @@ export default () => { {!subusers.length ? ( -

看起来您没有任何子用户。.

+

看起来您没有任何子用户.

) : ( subusers.map((subuser) => ) )} From d504c8325fb4ca849df471c69db78a4f97b5e936 Mon Sep 17 00:00:00 2001 From: ilworkcn <1061372739@qq.com> Date: Mon, 27 Jun 2022 16:40:27 +0800 Subject: [PATCH 03/16] ADMIN-API --- resources/views/admin/api/index.blade.php | 32 +++++++++++------------ resources/views/admin/api/new.blade.php | 24 ++++++++--------- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/resources/views/admin/api/index.blade.php b/resources/views/admin/api/index.blade.php index d863c57..024bc84 100644 --- a/resources/views/admin/api/index.blade.php +++ b/resources/views/admin/api/index.blade.php @@ -1,14 +1,14 @@ @extends('layouts.admin') @section('title') - Application API + 应用 API @endsection @section('content-header') -

Application APIControl access credentials for managing this Panel via the API.

+

应用 API通过 API 控制管理此面板的访问凭据.

@endsection @@ -17,18 +17,18 @@
-

Credentials List

+

凭证列表

- - - - + + + + @foreach($keys as $key) @@ -66,12 +66,12 @@ event.preventDefault(); swal({ type: 'error', - title: 'Revoke API Key', - text: 'Once this API key is revoked any applications currently using it will stop working.', + title: '删除 API 密钥', + text: '一旦此 API 密钥被删除,当前使用它的任何应用程序都将停止工作。', showCancelButton: true, allowOutsideClick: true, closeOnConfirm: false, - confirmButtonText: 'Revoke', + confirmButtonText: '删除', confirmButtonColor: '#d9534f', showLoaderOnConfirm: true }, function () { @@ -85,15 +85,15 @@ swal({ type: 'success', title: '', - text: 'API Key has been revoked.' + text: '此 API 密钥已被删除.' }); self.parent().parent().slideUp(); }).fail(function (jqXHR) { console.error(jqXHR); swal({ type: 'error', - title: 'Whoops!', - text: 'An error occurred while attempting to revoke this key.' + title: '离了个大谱!', + text: '删除此 API 密钥时发生错误,此操作无法继续进行.' }); }); }); diff --git a/resources/views/admin/api/new.blade.php b/resources/views/admin/api/new.blade.php index b5876ee..c8c327d 100644 --- a/resources/views/admin/api/new.blade.php +++ b/resources/views/admin/api/new.blade.php @@ -1,15 +1,15 @@ @extends('layouts.admin') @section('title') - Application API + 应用 API @endsection @section('content-header') -

Application APICreate a new application API key.

+

应用 API创建新的应用程序 API 密钥.

@endsection @@ -19,7 +19,7 @@
-

Select Permissions

+

选择权限

KeyMemoLast UsedCreated密钥 KEY备注上次使用于创建于
@@ -28,15 +28,15 @@ @endforeach @@ -48,14 +48,14 @@
- +
-

Once you have assigned permissions and created this set of credentials you will be unable to come back and edit it. If you need to make changes down the road you will need to create a new set of credentials.

+

一旦您分配了权限并创建了这组凭据,您将无法返回并对其进行编辑。 如果您需要在以后进行更改,则需要创建一组新的凭据.

From 51c2e5ca458a7cac2aba07900f0739d972e9b680 Mon Sep 17 00:00:00 2001 From: ilworkcn <1061372739@qq.com> Date: Mon, 27 Jun 2022 16:40:51 +0800 Subject: [PATCH 04/16] ADMIN-DB --- .../views/admin/databases/index.blade.php | 63 ++++++++++--------- .../views/admin/databases/view.blade.php | 59 ++++++++--------- 2 files changed, 62 insertions(+), 60 deletions(-) diff --git a/resources/views/admin/databases/index.blade.php b/resources/views/admin/databases/index.blade.php index df1d13b..77edba7 100644 --- a/resources/views/admin/databases/index.blade.php +++ b/resources/views/admin/databases/index.blade.php @@ -1,19 +1,20 @@ -{{-- Pterodactyl - Panel --}} +{{-- Pterodactyl - Panel which Sinicizated by iLwork.CN STUDIO --}} {{-- Copyright (c) 2015 - 2017 Dane Everitt --}} +{{-- Simplified Chinese Translation Copyright (c) 2021 - 2022 Ice Ling --}} {{-- This software is licensed under the terms of the MIT license. --}} {{-- https://opensource.org/licenses/MIT --}} @extends('layouts.admin') @section('title') - Database Hosts + 数据库主机 @endsection @section('content-header') -

Database HostsDatabase hosts that servers can have databases created on.

+

数据库主机服务器可以在其上创建数据库的数据库主机。

@endsection @@ -22,9 +23,9 @@
-

Host List

+

主机列表

- +
@@ -32,12 +33,12 @@
- - - - - - + + + + + + @foreach ($hosts as $host) @@ -51,7 +52,7 @@ @if(! is_null($host->node)) {{ $host->node->name }} @else - None + @endif @@ -68,42 +69,42 @@ diff --git a/resources/views/admin/databases/view.blade.php b/resources/views/admin/databases/view.blade.php index 184d6c7..cd4163f 100644 --- a/resources/views/admin/databases/view.blade.php +++ b/resources/views/admin/databases/view.blade.php @@ -1,19 +1,20 @@ -{{-- Pterodactyl - Panel --}} +{{-- Pterodactyl - Panel which Sinicizated by iLwork.CN STUDIO --}} {{-- Copyright (c) 2015 - 2017 Dane Everitt --}} +{{-- Simplified Chinese Translation Copyright (c) 2021 - 2022 Ice Ling --}} {{-- This software is licensed under the terms of the MIT license. --}} {{-- https://opensource.org/licenses/MIT --}} @extends('layouts.admin') @section('title') - Database Hosts → View → {{ $host->name }} + 数据库主机 → 详细信息 → {{ $host->name }} @endsection @section('content-header') -

{{ $host->name }}Viewing associated databases and details for this database host.

+

{{ $host->name }}查看此数据库主机的关联数据库和详细信息.

@endsection @@ -24,27 +25,27 @@
-

Host Details

+

主机详情

- +
- + -

The IP address or FQDN that should be used when attempting to connect to this MySQL host from the panel to add new databases.

+

尝试连接到此 MySQL 主机时应使用的 IP 地址或域名.

- + -

The port that MySQL is running on for this host.

+

MYSQL 主机运行开放的端口.

- + -

This setting does nothing other than default to this database host when adding a database to a server on the selected node.

+

此设置除了将数据库默认添加到所选节点上的服务器以外没有任何作用.

@@ -61,25 +62,25 @@
-

User Details

+

用户详情

- + -

The username of an account that has enough permissions to create new users and databases on the system.

+

具有足够权限在系统上创建新用户和数据库的帐户的用户名.

- + -

The password to the account defined. Leave blank to continue using the assigned password.

+

已定义帐户的密码。 留空以继续使用分配的密码.


-

The account defined for this database host must have the WITH GRANT OPTION permission. If the defined account does not have this permission requests to create databases will fail. Do not use the same account details for MySQL that you have defined for this panel.

+

连接此数据库主机所使用的账户 必须 具有 WITH GRANT OPTION 权限. 如果账户没有此权限将 无法 成功建立数据库. 不要为 MySQL 使用您为此面板使用的相同帐户详细信息.

@@ -90,16 +91,16 @@
-

Databases

+

数据库

{{ str_replace('_', ' ', title_case($resource)) }} - + - + - +
IDNameHostPortUsernameDatabasesNode名称地址端口用户名数据库节点
- - - - - + + + + + @foreach($databases as $database) @@ -111,11 +112,11 @@ @if($database->max_connections != null) @else - + @endif From 0f5b568c0c216db27fbbbc67acbdf5855aeec267 Mon Sep 17 00:00:00 2001 From: ilworkcn <1061372739@qq.com> Date: Mon, 27 Jun 2022 16:41:20 +0800 Subject: [PATCH 05/16] ADMIN-EGGS --- resources/views/admin/eggs/new.blade.php | 63 +++++++------- resources/views/admin/eggs/scripts.blade.php | 41 ++++----- .../views/admin/eggs/variables.blade.php | 69 +++++++-------- resources/views/admin/eggs/view.blade.php | 83 ++++++++++--------- 4 files changed, 130 insertions(+), 126 deletions(-) diff --git a/resources/views/admin/eggs/new.blade.php b/resources/views/admin/eggs/new.blade.php index 516ac86..57981e3 100644 --- a/resources/views/admin/eggs/new.blade.php +++ b/resources/views/admin/eggs/new.blade.php @@ -1,20 +1,21 @@ -{{-- Pterodactyl - Panel --}} +{{-- Pterodactyl - Panel which Sinicizated by iLwork.CN STUDIO --}} {{-- Copyright (c) 2015 - 2017 Dane Everitt --}} +{{-- Simplified Chinese Translation Copyright (c) 2021 - 2022 Ice Ling --}} {{-- This software is licensed under the terms of the MIT license. --}} {{-- https://opensource.org/licenses/MIT --}} @extends('layouts.admin') @section('title') - Nests → New Egg + 预设配置 @endsection @section('content-header') -

New EggCreate a new Egg to assign to servers.

+

新预设为服务器实例创建新预设.

@endsection @@ -24,43 +25,43 @@
-

Configuration

+

配置

- +
-

Think of a Nest as a category. You can put multiple Eggs in a nest, but consider putting only Eggs that are related to each other in each Nest.

+

官方将此功能定义为 Nest 和 Egg,为了中文语境下更方便理解,将其翻译为预设组和预设。

- + -

A simple, human-readable name to use as an identifier for this Egg. This is what users will see as their game server type.

+

一个简单的、易读的,用作此预设的标识符。 这是用户将看到的游戏服务器类型.

- + -

A description of this Egg.

+

预设的描述.

- + -

The docker images available to servers using this egg. Enter one per line. Users will be able to select from this list of images if more than one value is provided.

+

使用这个预设的服务器可用的 Docker 镜像。 每行输入一个。 如果提供了多个值,用户将能够从此图像列表中自行选择。

- + -

The default startup command that should be used for new servers created with this Egg. You can change this per-server as needed.

+

用于此预设创建的新服务器的默认启动命令。 您可以根据需要更改每个服务器。

@@ -70,51 +71,51 @@
-

Process Management

+

进程管理识别

-

All fields are required unless you select a separate option from the 'Copy Settings From' dropdown, in which case fields may be left blank to use the values from that option.

+

除非您从“复制设置自”下拉菜单中选择单独的选项,否则下方所有框框都是必填的,在使用复制设置情况下,框框可以留空以使用原预设中的值。

- + -

If you would like to default to settings from another Egg select it from the dropdown above.

+

如果您想默认使用另一个预设的设置,请从上面的下拉列表中选择它。

- + -

The command that should be sent to server processes to stop them gracefully. If you need to send a SIGINT you should enter ^C here.

+

应该发送到服务器进程以正常停止它们的命令。 如果你需要输出 SIGINT 你应该填入 ^C 于此。

- + -

This should be a JSON representation of where log files are stored, and whether or not the daemon should be creating custom logs.

+

这里应该用 JSON 格式语法来让系统判断是否进行日志记录并指定日志存储的位置。

- + -

This should be a JSON representation of configuration files to modify and what parts should be changed.

+

这里应该使用 JSON 格式语法来让系统判断更改那些配置文件以及更改何处。

- + -

This should be a JSON representation of what values the daemon should be looking for when booting a server to determine completion.

+

这里应该使用 JSON 格式语法来让系统判断服务端程序是否已正常启动完成。

diff --git a/resources/views/admin/eggs/scripts.blade.php b/resources/views/admin/eggs/scripts.blade.php index 9b82b6d..45f2fc2 100644 --- a/resources/views/admin/eggs/scripts.blade.php +++ b/resources/views/admin/eggs/scripts.blade.php @@ -1,19 +1,20 @@ -{{-- Pterodactyl - Panel --}} +{{-- Pterodactyl - Panel which Sinicizated by iLwork.CN STUDIO --}} {{-- Copyright (c) 2015 - 2017 Dane Everitt --}} +{{-- Simplified Chinese Translation Copyright (c) 2021 - 2022 Ice Ling --}} {{-- This software is licensed under the terms of the MIT license. --}} {{-- https://opensource.org/licenses/MIT --}} @extends('layouts.admin') @section('title') - Nests → Egg: {{ $egg->name }} → Install Script + 预设配置: {{ $egg->name }} → 安装程序 @endsection @section('content-header') -

{{ $egg->name }}Manage the install script for this Egg.

+

{{ $egg->name }}管理预设使用的安装程序.

- - - - + + + + @foreach ($locations as $location) @@ -58,26 +59,26 @@ diff --git a/resources/views/admin/locations/view.blade.php b/resources/views/admin/locations/view.blade.php index 2264ee6..055a9db 100644 --- a/resources/views/admin/locations/view.blade.php +++ b/resources/views/admin/locations/view.blade.php @@ -1,19 +1,20 @@ -{{-- Pterodactyl - Panel --}} +{{-- Pterodactyl - Panel which Sinicizated by iLwork.CN STUDIO --}} {{-- Copyright (c) 2015 - 2017 Dane Everitt --}} +{{-- Simplified Chinese Translation Copyright (c) 2021 - 2022 Ice Ling --}} {{-- This software is licensed under the terms of the MIT license. --}} {{-- https://opensource.org/licenses/MIT --}} @extends('layouts.admin') @section('title') - Locations → View → {{ $location->short }} + 节点服务器组 → 概览 → {{ $location->short }} @endsection @section('content-header')

{{ $location->short }}{{ str_limit($location->long, 75) }}

@endsection @@ -23,23 +24,23 @@
-

Location Details

+

服务器组详情

- +
- +
@@ -48,15 +49,15 @@
-

Nodes

+

节点服务器

ServerDatabase NameUsernameConnections FromMax Connections服务器数据库名用户名连接白名单最大连接数
{{ $database->max_connections }}Unlimited无限制 - +
IDShort CodeDescriptionNodesServers标识码描述节点服务器服务器实例
- - - + + + @foreach($location->nodes as $node) From 9d0b81bafb6ba608a66d9385f1228fae82fdeb5c Mon Sep 17 00:00:00 2001 From: ilworkcn <1061372739@qq.com> Date: Mon, 27 Jun 2022 16:42:15 +0800 Subject: [PATCH 07/16] ADMIN-MOUNTS --- resources/views/admin/mounts/index.blade.php | 65 ++++++++--------- resources/views/admin/mounts/view.blade.php | 75 ++++++++++---------- 2 files changed, 71 insertions(+), 69 deletions(-) diff --git a/resources/views/admin/mounts/index.blade.php b/resources/views/admin/mounts/index.blade.php index 067fe30..a59c6e4 100644 --- a/resources/views/admin/mounts/index.blade.php +++ b/resources/views/admin/mounts/index.blade.php @@ -1,5 +1,6 @@ -{{-- Pterodactyl - Panel --}} +{{-- Pterodactyl - Panel which Sinicizated by iLwork.CN STUDIO --}} {{-- Copyright (c) 2015 - 2017 Dane Everitt --}} +{{-- Simplified Chinese Translation Copyright (c) 2021 - 2022 Ice Ling --}} {{-- This software is licensed under the terms of the MIT license. --}} {{-- https://opensource.org/licenses/MIT --}} @@ -7,14 +8,14 @@ @extends('layouts.admin') @section('title') - Mounts + 存储挂载 @endsection @section('content-header') -

MountsConfigure and manage additional mount points for servers.

+

存储挂载配置和管理服务器的附加挂载点。

@endsection @@ -23,10 +24,10 @@
-

Mount List

+

挂载点列表

- +
@@ -35,12 +36,12 @@
- - - - - - + + + + + + @foreach ($mounts as $mount) @@ -70,77 +71,77 @@ - + diff --git a/resources/views/admin/mounts/view.blade.php b/resources/views/admin/mounts/view.blade.php index f53007f..40ad1ac 100644 --- a/resources/views/admin/mounts/view.blade.php +++ b/resources/views/admin/mounts/view.blade.php @@ -1,5 +1,6 @@ -{{-- Pterodactyl - Panel --}} +{{-- Pterodactyl - Panel which Sinicizated by iLwork.CN STUDIO --}} {{-- Copyright (c) 2015 - 2017 Dane Everitt --}} +{{-- Simplified Chinese Translation Copyright (c) 2021 - 2022 Ice Ling --}} {{-- This software is licensed under the terms of the MIT license. --}} {{-- https://opensource.org/licenses/MIT --}} @@ -7,14 +8,14 @@ @extends('layouts.admin') @section('title') - Mounts → View → {{ $mount->id }} + 存储挂载 → 概览 → {{ $mount->id }} @endsection @section('content-header')

{{ $mount->name }}{{ str_limit($mount->description, 75) }}

@endsection @@ -24,67 +25,67 @@
-

Mount Details

+

挂载点详情

- +
- +
- +
- +
- +
- +
read_only) checked @endif> - +
read_only) checked @endif> - +
- +
user_mountable) checked @endif> - +
user_mountable) checked @endif> - +
@@ -105,10 +106,10 @@
-

Eggs

+

预设

- +
@@ -116,7 +117,7 @@
IDNameFQDNServers名称域名服务器实例
IDNameSourceTargetEggsNodesServers名称原始路径挂载路径预设节点服务器
- + @@ -135,10 +136,10 @@
-

Nodes

+

节点服务器

- +
@@ -146,8 +147,8 @@
IDName名称
- - + + @@ -176,13 +177,13 @@ - +
IDNameFQDN名称域名