Skip to content

Commit

Permalink
Merge pull request #41642 from nextcloud/Valdnet-patch-1
Browse files Browse the repository at this point in the history
Correct spelling of Brute Force and other fixes
  • Loading branch information
AndyScherzinger authored Nov 22, 2023
2 parents ca91eda + 0acd07c commit 83c6db4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
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

0 comments on commit 83c6db4

Please sign in to comment.