title: Apache gettext windows does not work/translate
body: <p>I am new to gettext. </p>
  
  <p>Here is my setup:
  <strong>/Apache 2.2
  PHP 5.3.6
  Windows 7/</strong></p>
  
  <p>I have following code in the <strong>Apache/htdocs/test/index.php</strong></p>
  
  <pre><code>&lt;?php
      $language = 'de_DE'; 
      $translatefile = 'messages'; 
      setlocale(LC_ALL, $language);
      putenv("LANG=".$language); 
      bindtextdomain($translatefile, 'C:/locale'); 
      textdomain($translatefile); 
  
      echo gettext("Hello World!");
  ?&gt;
  </code></pre>
  
  <p>I used PoEdit to generate the necessary translations under <strong>locale/de_DE/LC_MESSAGES/messsages.po</strong> &amp; messages.mo The charset I used was <strong>UTF-8</strong></p>
  
  <p>When I visit <code>http://localhost/test</code>, the result is Hello World! when it should be Hall Welt!</p>
  
  <p>As a test, I opened command prompt and navigated to the test folder. Then I typed in </p>
  
  <pre><code>php index.php 
  </code></pre>
  
  <p>The result that appeared in the console was </p>
  
  <pre><code>Hall Welt!
  </code></pre>
  
  <p>I am not sure why it is not working with Apache.</p>