diff --git a/README.md b/README.md index c5e3d77..d400326 100644 --- a/README.md +++ b/README.md @@ -188,3 +188,10 @@ php artisan localization:find -s -r "/.*me$/" Use the github issue system to open a issue and ask for something. +## Change Log + +### v1.2 + +- support for Laravel 5 (4.3) +- add `ignore_lang_files` parameter in configuration file to ignore lang files (useful for `validation` file for example) + diff --git a/src/Potsky/LaravelLocalizationHelpers/Commands/LocalizationMissing.php b/src/Potsky/LaravelLocalizationHelpers/Commands/LocalizationMissing.php index 958fddb..a893001 100644 --- a/src/Potsky/LaravelLocalizationHelpers/Commands/LocalizationMissing.php +++ b/src/Potsky/LaravelLocalizationHelpers/Commands/LocalizationMissing.php @@ -128,6 +128,14 @@ public function fire() foreach ($lemmas_structured as $family => $array) { + if ( in_array( $family , $this->ignore_lang_files ) ) { + if ( $this->option( 'verbose' ) ) { + $this->line( '' ); + $this->info( " ! Skip lang file '$family' !" ); + } + continue; + } + $file_lang_path = $dir_lang . DIRECTORY_SEPARATOR . $lang . DIRECTORY_SEPARATOR . $family . '.php'; if ( $this->option( 'verbose' ) ) {