mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Fixes #3254 add ability to override existing translation validation language in App
This reverts commit eeaa9221aec4ad63bf63236bc037190fd4a36495.
This commit is contained in:
parent
a18fdea70b
commit
caf0fce98d
4
app/Language/en/Validation.php
Normal file
4
app/Language/en/Validation.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
|
||||
// override core en language system validation or define your own en language validation message
|
||||
return [];
|
@ -338,7 +338,16 @@ class Language
|
||||
*/
|
||||
protected function requireFile(string $path): array
|
||||
{
|
||||
$files = Services::locator()->search($path);
|
||||
$files = Services::locator()->search($path);
|
||||
$files = array_merge(
|
||||
array_filter($files, function ($value) {
|
||||
return strpos($value, APPPATH) === false;
|
||||
}),
|
||||
array_filter($files, function ($value) {
|
||||
return strpos($value, APPPATH) === 0;
|
||||
})
|
||||
);
|
||||
|
||||
$strings = [];
|
||||
|
||||
foreach ($files as $file)
|
||||
|
Loading…
x
Reference in New Issue
Block a user