title: CakePHP automating i18n extract shell process from batch file
body: <p>To create default pot file for CakePHP 2.3 i18n, in windows I created a bat file like this.</p>
  
  <pre><code>CD F:\mywork\app\View
  F:\mywork\lib\Cake\Console\cake.bat i18n extract
  </code></pre>
  
  <p>But I get this error:</p>
  
  <pre><code>Your database configuration was not found. Take a moment to create one.
  ---------------------------------------------------------------
  Database Configuration:
  ---------------------------------------------------------------
  Name:
  [default] &gt;
  </code></pre>
  
  <p>But inside <code>app\Config\database.php</code> file I have database configurations and they work well. So I removed extract argument.  </p>
  
  <p>I created a new bat file like this.</p>
  
  <pre><code>CD F:\mywork\app\View
  F:\mywork\lib\Cake\Console\cake.bat i18n
  </code></pre>
  
  <p>When I run bat file, I get this:</p>
  
  <pre><code>[E]xtract POT file from sources
  [I]nitialize i18n database table
  [H]elp
  [Q]uit
  What would you like to do? (E/I/H/Q)
  </code></pre>
  
  <p>I select <strong>E</strong>. I get this:</p>
  
  <pre><code>Current paths: None
  What is the path you would like to extract?
  [Q]uit [D]one
  [F:\mywork\app\View\] &gt;
  </code></pre>
  
  <p>I press <strong>Enter</strong>. I get this:</p>
  
  <pre><code>Current paths: F:\mywork\app\View\
  What is the path you would like to extract?
  [Q]uit [D]one
  [D] &gt;
  </code></pre>
  
  <p>I press <strong>Enter</strong>. I get this:</p>
  
  <pre><code>Would you like to extract the messages from the CakePHP core? (y/n)
  [n] &gt;
  </code></pre>
  
  <p>I press <strong>Enter</strong>. I get this:</p>
  
  <pre><code>What is the path you would like to output?
  [Q]uit
  [F:\mywork\app\View\Locale] &gt;
  </code></pre>
  
  <p>I paste this: <code>F:\mywork\app\Locale\eng\LC_MESSAGES</code>.
  Than I get this:</p>
  
  <pre><code>Would you like to merge all domains strings into the default.pot file? (y/n)
  [n] &gt;
  </code></pre>
  
  <p>I press <strong>Enter</strong>. cake starts to process all View files. Creates pot file. Then I get this:</p>
  
  <pre><code>[E]xtract POT file from sources
  [I]nitialize i18n database table
  [H]elp
  [Q]uit
  What would you like to do? (E/I/H/Q)
  </code></pre>
  
  <p>I press <strong>Q</strong> and program ends.</p>
  
  <p>Is it possible to automatize this process ? Setting paths beforehand and not selecting options by hand ?</p>