Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct spelling of Brute Force and other fixes #41642

Merged
merged 5 commits into from
Nov 22, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions apps/settings/lib/SetupChecks/BruteForceThrottler.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function getCategory(): string {
}

public function getName(): string {
return $this->l10n->t('Bruteforce Throttle');
return $this->l10n->t('Brute Force Throttle');
}

public function run(): SetupResult {
Expand All @@ -62,12 +62,12 @@ public function run(): SetupResult {
}
} elseif ($this->throttler->showBruteforceWarning($address)) {
return SetupResult::error(
$this->l10n->t('Your remote address was identified as "%s" and is bruteforce throttled at the moment slowing down the performance of various requests. If the remote address is not your address this can be an indication that a proxy is not configured correctly.', [$address]),
$this->l10n->t('Your remote address was identified as "%s" and is brute force throttled at the moment slowing down the performance of various requests. If the remote address is not your address this can be an indication that a proxy is not configured correctly.', [$address]),
$this->urlGenerator->linkToDocs('admin-reverse-proxy')
);
} else {
return SetupResult::success(
$this->l10n->t('Your remote address "%s" is not bruteforce throttled.', [$address])
$this->l10n->t('Your remote address "%s" is not brute force throttled.', [$address])
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/settings/lib/SetupChecks/PhpDefaultCharset.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function run(): SetupResult {
if (strtoupper(trim(ini_get('default_charset'))) === 'UTF-8') {
return SetupResult::success('UTF-8');
} else {
return SetupResult::warning($this->l10n->t('PHP configuration option default_charset should be UTF-8'));
return SetupResult::warning($this->l10n->t('PHP configuration option "default_charset" should be UTF-8'));
}
}
}
4 changes: 2 additions & 2 deletions apps/settings/lib/SetupChecks/PhpOutputBuffering.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ public function getCategory(): string {
}

public function getName(): string {
return $this->l10n->t('PHP output_buffering option');
return $this->l10n->t('PHP "output_buffering" option');
}

public function run(): SetupResult {
$value = trim(ini_get('output_buffering'));
if ($value === '' || $value === '0') {
return SetupResult::success($this->l10n->t('Disabled'));
} else {
return SetupResult::error($this->l10n->t('PHP configuration option output_buffering must be disabled'));
return SetupResult::error($this->l10n->t('PHP configuration option "output_buffering" must be disabled'));
}
}
}
2 changes: 1 addition & 1 deletion apps/settings/lib/SetupChecks/SupportedDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function run(): SetupResult {
} elseif ($databasePlatform instanceof SqlitePlatform) {
$version = 'Sqlite';
} else {
return SetupResult::error($this->l10n->t('Unknown database plaform'));
return SetupResult::error($this->l10n->t('Unknown database platform'));
}
return SetupResult::success($version);
}
Expand Down
Loading