Skip to content

Commit

Permalink
fix(i18n): Fixed grammar
Browse files Browse the repository at this point in the history
Reported at Transifex.

Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
  • Loading branch information
rakekniven authored Jan 9, 2024
1 parent e9d69d4 commit 5e0770b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Controller/AOCSController.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function __construct(
*/
protected function handleError($e): DataResponse {
$this->logger->warning('An internal error or exception occurred: ['. $e->getCode() . ']' . $e->getMessage());
return new DataResponse(['message' => $this->n->t('An unexpected error occurred. More details can be found in the logs. Please reach out to your administrator.')], Http::STATUS_INTERNAL_SERVER_ERROR);
return new DataResponse(['message' => $this->n->t('An unexpected error occurred. More details can be found in the logs. Please reach out to your administration.')], Http::STATUS_INTERNAL_SERVER_ERROR);
}

/**
Expand All @@ -47,7 +47,7 @@ protected function handleError($e): DataResponse {
*/
protected function handlePermissionError(PermissionError $e): DataResponse {
$this->logger->warning('A permission error occurred: ['. $e->getCode() . ']' . $e->getMessage());
return new DataResponse(['message' => $this->n->t('An permission error occurred. More details can be found in the logs. Please reach out to your administrator.')], Http::STATUS_FORBIDDEN);
return new DataResponse(['message' => $this->n->t('A permission error occurred. More details can be found in the logs. Please reach out to your administration.')], Http::STATUS_FORBIDDEN);
}

/**
Expand All @@ -56,7 +56,7 @@ protected function handlePermissionError(PermissionError $e): DataResponse {
*/
protected function handleNotFoundError(NotFoundError $e): DataResponse {
$this->logger->warning('A not found error occurred: ['. $e->getCode() . ']' . $e->getMessage());
return new DataResponse(['message' => $this->n->t('An not found error occurred. More details can be found in the logs. Please reach out to your administrator.')], Http::STATUS_NOT_FOUND);
return new DataResponse(['message' => $this->n->t('A not found error occurred. More details can be found in the logs. Please reach out to your administration.')], Http::STATUS_NOT_FOUND);
}

}

0 comments on commit 5e0770b

Please sign in to comment.