Skip to content

Commit 61dba8f

Browse files
author
rotimi
committed
Added locale entries for Http exception titles
1 parent fc15215 commit 61dba8f

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

tests/fake-smvc-app-root/config/languages/en_US.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,34 @@
2323
'base_controller_text_english' => 'English',
2424
'base_controller_text_french' => 'French',
2525

26+
'main_template_text_home' => "Home",
27+
'main_template_text_all_mvc_routes' => "All MVC Routes",
2628
'main_template_text_copyright_footer' => "Copyright no one at all. Go to town.",
2729
'main_template_text_header_1' => "Welcome to Your New Site",
2830
'main_template_text_tagline_p_start' => "This site is powered by the",
2931
'main_template_text_tagline_p_end' => "SlimPHP 4 Skeleton MVC App",
32+
33+
'default_application_error_title_text' => "SlimPHP 4 Skeleton MVC App Error",
34+
'default_application_error_title_description' => "A website error has occurred. Sorry for the temporary inconvenience.",
35+
'default_application_error_title_detailed_description' => "The application could not run because of the following error",
36+
37+
\Slim\Exception\HttpBadRequestException::class . '_title' => "400 Bad Request",
38+
\Slim\Exception\HttpForbiddenException::class . '_title' => "403 Forbidden",
39+
\Slim\Exception\HttpGoneException::class . '_title' => "410 Gone",
40+
\Slim\Exception\HttpInternalServerErrorException::class . '_title' => "500 Internal Server Error",
41+
\Slim\Exception\HttpMethodNotAllowedException::class . '_title' => "405 Method Not Allowed",
42+
\Slim\Exception\HttpNotFoundException::class . '_title' => "404 Not Found",
43+
\Slim\Exception\HttpNotImplementedException::class . '_title' => "501 Not Implemented",
44+
\Slim\Exception\HttpTooManyRequestsException::class . '_title' => "429 Too Many Requests",
45+
\Slim\Exception\HttpUnauthorizedException::class . '_title' => "401 Unauthorized",
46+
47+
\Slim\Exception\HttpBadRequestException::class . '_description' => "The server cannot or will not process the request due to an apparent client error.",
48+
\Slim\Exception\HttpForbiddenException::class . '_description' => "You are not permitted to perform the requested operation.",
49+
\Slim\Exception\HttpGoneException::class . '_description' => "The target resource is no longer available at the origin server.",
50+
\Slim\Exception\HttpInternalServerErrorException::class . '_description' => "Unexpected condition encountered preventing server from fulfilling request.",
51+
\Slim\Exception\HttpMethodNotAllowedException::class . '_description' => "The request method is not supported for the requested resource.",
52+
\Slim\Exception\HttpNotFoundException::class . '_description' => "The requested resource could not be found. Please verify the URI and try again.",
53+
\Slim\Exception\HttpNotImplementedException::class . '_description' => "The server does not support the functionality required to fulfill the request.",
54+
\Slim\Exception\HttpTooManyRequestsException::class . '_description' => "The client application has surpassed its rate limit, or number of requests they can send in a given period of time.",
55+
\Slim\Exception\HttpUnauthorizedException::class . '_description' => "The request requires valid user authentication.",
3056
];

tests/fake-smvc-app-root/config/languages/fr_CA.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,34 @@
2323
'base_controller_text_english' => 'Anglais',
2424
'base_controller_text_french' => 'Français',
2525

26+
'main_template_text_home' => "Maison",
27+
'main_template_text_all_mvc_routes' => "Toutes les routes MVC",
2628
'main_template_text_copyright_footer' => "Copyright personne du tout. Aller en ville.",
2729
'main_template_text_header_1' => "Bienvenue sur votre nouveau site",
2830
'main_template_text_tagline_p_start' => "Ce site est alimenté par",
2931
'main_template_text_tagline_p_end' => "l'application SlimPHP 4 Skeleton MVC",
32+
33+
'default_application_error_title_text' => "Erreur de l'application SlimPHP 4 Skeleton MVC",
34+
'default_application_error_title_description' => "Une erreur du site Web s'est produite. Désolé pour le désagrément temporaire.",
35+
'default_application_error_title_detailed_description' => "L'application n'a pas pu s'exécuter en raison de l'erreur suivante",
36+
37+
\Slim\Exception\HttpBadRequestException::class . '_title' => "400 Mauvaise demande",
38+
\Slim\Exception\HttpForbiddenException::class . '_title' => "403 Interdit",
39+
\Slim\Exception\HttpGoneException::class . '_title' => "410 Gone",
40+
\Slim\Exception\HttpInternalServerErrorException::class . '_title' => "500 Erreur de serveur interne",
41+
\Slim\Exception\HttpMethodNotAllowedException::class . '_title' => "405 Méthode non autorisée",
42+
\Slim\Exception\HttpNotFoundException::class . '_title' => "404 Non trouvé",
43+
\Slim\Exception\HttpNotImplementedException::class . '_title' => "501 Non mis en œuvre",
44+
\Slim\Exception\HttpTooManyRequestsException::class . '_title' => "429 Trop de demandes",
45+
\Slim\Exception\HttpUnauthorizedException::class . '_title' => "401 Non autorisé",
46+
47+
\Slim\Exception\HttpBadRequestException::class . '_description' => "Le serveur ne peut pas ou ne veut pas traiter la demande en raison d'une erreur client apparente.",
48+
\Slim\Exception\HttpForbiddenException::class . '_description' => "Vous n'êtes pas autorisé à effectuer l'opération demandée.",
49+
\Slim\Exception\HttpGoneException::class . '_description' => "La ressource cible n'est plus disponible sur le serveur d'origine.",
50+
\Slim\Exception\HttpInternalServerErrorException::class . '_description' => "Une condition inattendue s'est produite empêchant le serveur de répondre à la demande.",
51+
\Slim\Exception\HttpMethodNotAllowedException::class . '_description' => "La méthode de requête n'est pas prise en charge pour la ressource demandée.",
52+
\Slim\Exception\HttpNotFoundException::class . '_description' => "La ressource demandée est introuvable. Veuillez vérifier l'URI et réessayer.",
53+
\Slim\Exception\HttpNotImplementedException::class . '_description' => "Le serveur ne prend pas en charge les fonctionnalités requises pour répondre à la demande.",
54+
\Slim\Exception\HttpTooManyRequestsException::class . '_description' => "L'application client a dépassé sa limite de débit, ou le nombre de requêtes qu'elle peut envoyer au cours d'une période de temps donnée.",
55+
\Slim\Exception\HttpUnauthorizedException::class . '_description' => "La demande nécessite une authentification utilisateur valide.",
3056
];

0 commit comments

Comments
 (0)