Skip to content

Commit cdc750e

Browse files
committed
it's nice to be important but it's more important to be nice
1 parent 33ca12b commit cdc750e

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

src/Potsky/LaravelLocalizationHelpers/Commands/LocalizationAbstract.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@ abstract class LocalizationAbstract extends Command
4444
*/
4545
protected $never_obsolete_keys = array();
4646

47+
/**
48+
* Never manage these lang files
49+
*
50+
* @var array
51+
*/
52+
protected $ignore_lang_files = array();
53+
4754
/**
4855
* Should comands display something
4956
*
@@ -62,6 +69,7 @@ public function __construct( Repository $configRepository )
6269
{
6370
$this->trans_methods = \Config::get('laravel-localization-helpers::config.trans_methods');
6471
$this->folders = \Config::get('laravel-localization-helpers::config.folders');
72+
$this->ignore_lang_files = \Config::get('laravel-localization-helpers::config.ignore_lang_files');
6573
$this->never_obsolete_keys = \Config::get('laravel-localization-helpers::config.never_obsolete_keys');
6674
$this->editor = \Config::get('laravel-localization-helpers::config.editor_command_line');
6775
parent::__construct();
@@ -209,7 +217,7 @@ protected function get_php_files($path)
209217
* Extract all translations from the provided file
210218
* Remove all translations containing :
211219
* - $ -> auto-generated translation cannot be supported
212-
* - :: -> package translations are not take in account
220+
* - :: -> package translations are not taken in account
213221
*
214222
* @param string $path the file path
215223
*

src/config/config.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,19 @@
2323
),
2424

2525

26+
/*
27+
|--------------------------------------------------------------------------
28+
| Lang file to ignore
29+
|--------------------------------------------------------------------------
30+
|
31+
| These lang files will not be written
32+
|
33+
*/
34+
'ignore_lang_files' => array(
35+
'validation',
36+
),
37+
38+
2639
/*
2740
|--------------------------------------------------------------------------
2841
| Methods or functions to search for
@@ -54,7 +67,7 @@
5467

5568
/*
5669
|--------------------------------------------------------------------------
57-
| Keywords for obssolete check
70+
| Keywords for obsolete check
5871
|--------------------------------------------------------------------------
5972
|
6073
| Localization::Missing will search lemmas in existing lang files.

0 commit comments

Comments
 (0)