title: Get whole language file array
body: <p>I'm newbie in <strong>laravel 4.0</strong>.</p>
  
  <ul>
  <li>How to get the whole array from <code>lang/en/texts.php</code>?</li>
  <li>Is there a <code>Lang::getAll()</code> method?</li>
  </ul>
  
  <p>My goal is to generate keywords/description in my base controller, to fill them into the the meta tags and other places in the DOM in the master blade template. If my approach is completely wrong, please tell me!</p>
  
  <p>Generating the keywords and description from an associative array is NOT the problem, but the lack of knowledge about the framework. And, I was googling for quite a time before ending up here...</p>
  
  <p>Working with blade templates:
  This is my BaseController:</p>
  
  <pre><code>class HomeController extends BaseController {
  
      protected $layout = 'layouts.master';
      private $keyWords = array();
  
      private function getKeyWords () {
          // ???
  
      }
  
      public function getIndex() {
          return View::make('home')
              -&gt;with('errorcanvas', trans('texts.canvas'))
              -&gt;with('errortextwebgl', trans('texts.webgl'))
              ...;
      }
  
      ...
  
  }
  </code></pre>
  
  <hr>
  
  <p>I found something in the <a href="http://laravel.com/api/4.1/Illuminate/Translation/FileLoader.html" rel="noreferrer">API</a>:</p>
  
  <p><code>Illuminate\Translation\FileLoader load()</code> which loads the messages with a given <code>locale</code>
  ...</p>