Skip to content

Commit

Permalink
随缘新增汉化更新
Browse files Browse the repository at this point in the history
  • Loading branch information
vlssu committed Jul 10, 2023
1 parent d4b8f1f commit 84c3c15
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/Console/Commands/TelemetryCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class TelemetryCommand extends Command
{
protected $description = 'Displays all the data that would be sent to the Pterodactyl Telemetry Service if telemetry collection is enabled.';
protected $description = '如果启用遥测收集,则所有服务数据将通过匿名的方式发送到翼龙官方。';

protected $signature = 'p:telemetry';

Expand All @@ -27,7 +27,7 @@ public function __construct(private TelemetryCollectionService $telemetryCollect
*/
public function handle()
{
$this->output->info('Collecting telemetry data, this may take a while...');
$this->output->info('正在收集遥测数据,这可能需要一段时间......');

VarDumper::dump($this->telemetryCollectionService->collect());
}
Expand Down
4 changes: 2 additions & 2 deletions app/Console/Commands/User/DisableTwoFactorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

class DisableTwoFactorCommand extends Command
{
protected $description = 'Disable two-factor authentication for a specific user in the Panel.';
protected $description = '在面板中为特定用户禁用动态口令认证。';

protected $signature = 'p:user:disable2fa {--email= : The email of the user to disable 2-Factor for.}';
protected $signature = 'p:user:disable2fa {--email= : 要为其禁用动态口令认证的用户邮箱。}';

/**
* DisableTwoFactorCommand constructor.
Expand Down
2 changes: 1 addition & 1 deletion app/Jobs/Schedule/RunTaskJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function handle(
$backupService->setIgnoredFiles(explode(PHP_EOL, $this->task->payload))->handle($server, null, true);
break;
default:
throw new \InvalidArgumentException('Invalid task action provided: ' . $this->task->action);
throw new \InvalidArgumentException('提供的任务操作无效: ' . $this->task->action);
}
} catch (\Exception $exception) {
// If this isn't a DaemonConnectionException on a task that allows for failures
Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/Jobs/Schedule/RunTaskJobTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function testJobWithInvalidActionThrowsException()
$job = new RunTaskJob($task);

$this->expectException(\InvalidArgumentException::class);
$this->expectExceptionMessage('Invalid task action provided: foobar');
$this->expectExceptionMessage('提供的任务操作无效: foobar');
Bus::dispatchSync($job);
}

Expand Down

0 comments on commit 84c3c15

Please sign in to comment.