Skip to content

Commit

Permalink
Traduit le message d'action de JavaScript
Browse files Browse the repository at this point in the history
  • Loading branch information
Donov4n committed May 2, 2021
1 parent 62b2ae1 commit 947b198
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/src/App/Controllers/AttributeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function getAll(Request $request, Response $response): Response

public function create(Request $request, Response $response): Response
{
$postData = $request->getParsedBody();
$postData = (array)$request->getParsedBody();
if (empty($postData)) {
throw new \InvalidArgumentException(
"Missing request data to process validation",
Expand Down
3 changes: 3 additions & 0 deletions server/src/locales/en/messages.php
Original file line number Diff line number Diff line change
Expand Up @@ -2698,4 +2698,7 @@

"label"
=> "Label",

"enable-javascript-message"
=> "Please enable JavaScript to use this application.",
];
3 changes: 3 additions & 0 deletions server/src/locales/fr/messages.php
Original file line number Diff line number Diff line change
Expand Up @@ -2700,4 +2700,7 @@

"label"
=> "Étiquette",

"enable-javascript-message"
=> "Veuillez activer JavaScript pour utiliser l'application.",
];
2 changes: 1 addition & 1 deletion server/src/views/webclient.twig
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<link rel="mask-icon" href="/img/icons/safari-pinned-tab.svg" color="#4DBA87">
</head>
<body>
<noscript><strong>Please enable JavaScript to continue.</strong></noscript>
<noscript><strong>{{ translate('enable-javascript-message') }}</strong></noscript>
<div id="app">
{{ include('blocks/loading.twig') }}
</div>
Expand Down

0 comments on commit 947b198

Please sign in to comment.