Specific 'Lang' file to ignore
FilipKrizanic opened this issue · 1 comments
FilipKrizanic commented
In Laravel 5.1.x / 2.2.4
In laravel-localization-helpers.php is an array in which developer can specify which language file will be ignored.
Language files:
- ../../de/cms.php
- ../../en/cms.php
- ..e.t.c..
So if someone would want to filter only one cms.php under de/cms.php and would want all the other cms.php translation files to be untouched, then some additional conditions would have to be implemented.
specific file ignore Example:
'ignore_lang_files' => array( 'validation' , '/resources/lang/de/cms.php', ) ,
FilipKrizanic commented
Quick suggestion: LocalizationMissing.php could look like: (line 249 - 252)
- $file_lang_path = $dir_lang . DIRECTORY_SEPARATOR . $lang . DIRECTORY_SEPARATOR . $family . '.php';
- if ( in_array( $family , $this->ignore_lang_files ) || in_array( $this->manager->getShortPath($file_lang_path), $this->ignore_lang_files ) ){..}
{
Already tested and it works.