File tree Expand file tree Collapse file tree 2 files changed +23
-2
lines changed
Potsky/LaravelLocalizationHelpers/Commands Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Original file line number Diff line number Diff 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 *
Original file line number Diff line number Diff line change 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
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.
You can’t perform that action at this time.
0 commit comments