protected function saveChanges()
    {
        $this->line('');

        if (count($this->jobs) > 0) {
            $do = true;

            if ($this->config('ask_for_value') === false) {
                $do = ($this->ask('Do you wish to apply these changes now? [yes|no]') === 'yes');
            }

            if ($do === true) {
                $this->line('');
                $this->line('Save files:');

                foreach ($this->jobs as $file_lang_path => $file_content) {
                    file_put_contents($file_lang_path, $file_content);
                    $this->line("    <info>" . $this->getShortPath($file_lang_path));
                }

                $this->line('');
                $this->info('Process done!');
            }
            else {
                $this->comment('Process aborted. No file have been changed.');
            }
        }
        else {
            if ($this->has_new && ($this->is_dirty === true || $this->option('force')) === false) {
                $this->comment('Not all translations are up to date.');
            }
            else {
                $this->info('All translations are up to date.');
            }
        }

        $this->line('');
    }
protected function saveChanges()
    {
        $this->line('');

        if (count($this->jobs) > 0) {
            $do = true;

            if ($this->config('ask_for_value') === false) {
                $do = ($this->ask('Do you wish to apply these changes now? [yes|no]') === 'yes');
            }

            if ($do === true) {
                $this->line('');
                $this->line('Save files:');

                foreach ($this->jobs as $file_lang_path => $file_content) {
                    file_put_contents($file_lang_path, $file_content);
                    $this->line("    <info>" . $this->getShortPath($file_lang_path));
                }

                $this->line('');
                $this->info('Process done!');
            }
            else {
                $this->comment('Process aborted. No file have been changed.');
            }
        }
        else {
            if ($this->has_new && ($this->is_dirty === true || $this->option('force')) === false) {
                $this->comment('Not all translations are up to date.');
            }
            else {
                $this->info('All translations are up to date.');
            }
        }

        $this->line('');
    }
protected function saveChanges ( ) { $ this -> line ( '' ) ; if ( count ( $ this -> jobs ) > 0 ) { $ do = true ; if ( $ this -> config ( 'ask_for_value' ) === false ) { $ do = ( $ this -> ask ( 'Do you wish to apply these changes now? [yes|no]' ) === 'yes' ) ; } if ( $ do === true ) { $ this -> line ( '' ) ; $ this -> line ( 'Save files:' ) ; foreach ( $ this -> jobs as $ file_lang_path => $ file_content ) { file_put_contents ( $ file_lang_path , $ file_content ) ; $ this -> line ( "    <info>" . $ this -> getShortPath ( $ file_lang_path ) ) ; } $ this -> line ( '' ) ; $ this -> info ( 'Process done!' ) ; } else { $ this -> comment ( 'Process aborted. No file have been changed.' ) ; } } else { if ( $ this -> has_new && ( $ this -> is_dirty === true || $ this -> option ( 'force' ) ) === false ) { $ this -> comment ( 'Not all translations are up to date.' ) ; } else { $ this -> info ( 'All translations are up to date.' ) ; } } $ this -> line ( '' ) ; }
Save all changes made to the lemmas.

@return void
Save all changes made to the lemmas .