Skip to content

Commit e461acd

Browse files
committed
v1.2
1 parent f912a5d commit e461acd

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,3 +188,10 @@ php artisan localization:find -s -r "/.*me$/"
188188

189189
Use the github issue system to open a issue and ask for something.
190190

191+
## Change Log
192+
193+
### v1.2
194+
195+
- support for Laravel 5 (4.3)
196+
- add `ignore_lang_files` parameter in configuration file to ignore lang files (useful for `validation` file for example)
197+

src/Potsky/LaravelLocalizationHelpers/Commands/LocalizationMissing.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,14 @@ public function fire()
128128

129129
foreach ($lemmas_structured as $family => $array) {
130130

131+
if ( in_array( $family , $this->ignore_lang_files ) ) {
132+
if ( $this->option( 'verbose' ) ) {
133+
$this->line( '' );
134+
$this->info( " ! Skip lang file '$family' !" );
135+
}
136+
continue;
137+
}
138+
131139
$file_lang_path = $dir_lang . DIRECTORY_SEPARATOR . $lang . DIRECTORY_SEPARATOR . $family . '.php';
132140

133141
if ( $this->option( 'verbose' ) ) {

0 commit comments

Comments
 (0)