Skip to content

Commit

Permalink
汉化部分
Browse files Browse the repository at this point in the history
  • Loading branch information
vlssu authored Mar 5, 2023
1 parent 2820575 commit 0f9e396
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions app/Console/Commands/UpgradeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public function handle()
$this->line($this->getUrl());
}

if (version_compare(PHP_VERSION, '7.4.0') < 0) {
$this->error('无法执行自动升级。所需的最低 PHP 版本是 7.4.0,而你所用的是 [' . PHP_VERSION . '].');
if (version_compare(PHP_VERSION, '8.0.0') < 0) {
$this->error('无法执行自动升级。所需的最低 PHP 版本是 8.0.0,而你所用的是 [' . PHP_VERSION . '].');
}

$user = 'www-data';
Expand Down
4 changes: 2 additions & 2 deletions app/Console/Commands/User/MakeUserCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class MakeUserCommand extends Command
{
protected $description = 'Creates a user on the system via the CLI.';
protected $description = '通过 CLI 在系统上创建用户。';

protected $signature = 'p:user:make {--email=} {--username=} {--name-first=} {--name-last=} {--password=} {--admin=} {--no-password}';

Expand Down Expand Up @@ -40,7 +40,7 @@ public function handle()
}

$user = $this->creationService->handle(compact('email', 'username', 'name_first', 'name_last', 'password', 'root_admin'));
$this->table(['Field', 'Value'], [
$this->table(['字段', ''], [
['UUID', $user->uuid],
['Email', $user->email],
['用户名', $user->username],
Expand Down
9 changes: 4 additions & 5 deletions app/Console/RequiresDatabaseMigrations.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,17 @@ protected function showMigrationWarning(): void
$this->getOutput()->writeln('<options=bold>
| @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
| |
| Your database has not been properly migrated! |
| 您的数据库未正确迁移! |
| |
| @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |</>
You must run the following command to finish migrating your database:
您必须运行以下命令才能完成数据库迁移:
<fg=green;options=bold>php artisan migrate --step --force</>
You will not be able to use Pterodactyl Panel as expected without fixing your
database state by running the command above.
如果您不运行上述命令进行修复数据库你将无法正常使用 Pterodactyl 面板。
');

$this->getOutput()->error('You must correct the error above before continuing.');
$this->getOutput()->error('在继续之前,您必须更正上述错误。');
}
}

0 comments on commit 0f9e396

Please sign in to comment.