Skip to content

Commit 2a1a127

Browse files
committed
fix: Add missing translation
1 parent 05495dd commit 2a1a127

File tree

5 files changed

+26
-4
lines changed

5 files changed

+26
-4
lines changed

system/Images/Handlers/ImageMagickHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ protected function supportedFormatCheck()
320320
switch ($this->image()->imageType) {
321321
case IMAGETYPE_WEBP:
322322
if (! in_array('WEBP', Imagick::queryFormats(), true)) {
323-
throw ImageException::forInvalidImageCreate(lang('images.webpNotSupported'));
323+
throw ImageException::forInvalidImageCreate(lang('Images.webpNotSupported'));
324324
}
325325
break;
326326
}

system/Language/en/Honeypot.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/**
6+
* This file is part of CodeIgniter 4 framework.
7+
*
8+
* (c) CodeIgniter Foundation <[email protected]>
9+
*
10+
* For the full copyright and license information, please view
11+
* the LICENSE file that was distributed with this source code.
12+
*/
13+
14+
// Honeypot language settings
15+
return [
16+
'noTemplate' => 'The HTML template for the Honeypot is not configured.',
17+
'noNameField' => 'The name of the Honeypot field has not been set.',
18+
'noHiddenValue' => 'The Honeypot should be invisible to humans.',
19+
'theClientIsABot' => 'The Honeypot client may be a bot.',
20+
];

system/Language/en/Router.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
// Router language settings
1515
return [
16-
'invalidParameter' => 'A parameter does not match the expected type.',
16+
'invalidParameterType' => 'A parameter does not match the expected type.',
1717
'missingDefaultRoute' => 'Unable to determine what should be displayed. A default route has not been specified in the routing file.',
1818
'invalidDynamicController' => 'A dynamic controller is not allowed for security reasons. Route handler: "{0}"',
19-
'invalidControllerName' => 'The namespace delimiter is a backslash (\), not a slash (/). Route handler: "{0}"',
19+
'invalidControllerName' => 'The namespace delimiter is a backslash (\\), not a slash (/). Route handler: "{0}"',
2020
];

system/Language/en/Security.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@
1717
'insecureCookie' => 'Attempted to send a secure cookie over a non-secure connection.',
1818

1919
// @deprecated
20-
'invalidSameSite' => 'The SameSite value must be None, Lax, Strict, or a blank string. Given: "{0}"',
20+
'invalidSameSite' => 'The SameSite value must be None, Lax, Strict, or a blank string. Given: "{0}"',
21+
'invalidSameSiteSetting' => 'The SameSite setting must be None, Lax, Strict, or a blank string. Given: {0}',
2122
];

system/Language/en/Time.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,5 @@
3232
'yesterday' => 'Yesterday',
3333
'tomorrow' => 'Tomorrow',
3434
'now' => 'Just now',
35+
'invalidHour' => 'The supplied hour "{0}" is outside the range of allowed hours (1-24).',
3536
];

0 commit comments

Comments
 (0)