Skip to content

Commit da5470e

Browse files
authored
Merge pull request #6235 from sba/4.3
2 parents 8833d22 + ea17779 commit da5470e

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

app/Views/errors/html/production.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44
<meta charset="UTF-8">
55
<meta name="robots" content="noindex">
66

7-
<title>Whoops!</title>
7+
<title><?= lang('Errors.whoops') ?></title>
88

9-
<style type="text/css">
9+
<style>
1010
<?= preg_replace('#[\r\n\t ]+#', ' ', file_get_contents(__DIR__ . DIRECTORY_SEPARATOR . 'debug.css')) ?>
1111
</style>
1212
</head>
1313
<body>
1414

1515
<div class="container text-center">
1616

17-
<h1 class="headline">Whoops!</h1>
17+
<h1 class="headline"><?= lang('Errors.whoops') ?></h1>
1818

19-
<p class="lead">We seem to have hit a snag. Please try again later...</p>
19+
<p class="lead"><?= lang('Errors.weHitASnag') ?></p>
2020

2121
</div>
2222

system/Language/en/Errors.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
/**
4+
* This file is part of CodeIgniter 4 framework.
5+
*
6+
* (c) CodeIgniter Foundation <[email protected]>
7+
*
8+
* For the full copyright and license information, please view
9+
* the LICENSE file that was distributed with this source code.
10+
*/
11+
12+
// Errors language settings
13+
return [
14+
'whoops' => 'Whoops!',
15+
'weHitASnag' => 'We seem to have hit a snag. Please try again later...',
16+
];

0 commit comments

Comments
 (0)