title: PHP gettext() not translating strings
body: <p>I am trying to implement gettext() for building a multi-lingual PHP web app.</p>
  <p>Here's what I did:</p>
  <ol>
  <li><p>Installed GNU gettext package in C:\Program Files</p>
  </li>
  <li><p>Installed POedit</p>
  </li>
  <li><p>Checked my php.ini file, and gettext was enabled</p>
  <p><code>extension=php_gettext.dll</code></p>
  </li>
  <li><p>Checked if gettext() is installed using function_exists()</p>
  </li>
  <li><p>Set folder structure : test-project/locale/en_US/LC_MESSAGES/</p>
  </li>
  <li><p>Created the translation files using POedit</p>
  </li>
  <li><p>Checked translation files have been generated properly, i.e., messages.po and messages.mo</p>
  </li>
  </ol>
  <p>I was following this tutorial: <a href="https://blog.udemy.com/php-gettext/" rel="nofollow noreferrer">https://blog.udemy.com/php-gettext/</a></p>
  <p>Here's my .po file:</p>
  <pre><code>msgid &quot;&quot;
  msgstr &quot;&quot;
  &quot;Project-Id-Version: \n&quot;
  &quot;POT-Creation-Date: 2017-06-09 15:45+0530\n&quot;
  &quot;PO-Revision-Date: 2017-06-09 17:07+0530\n&quot;
  &quot;Last-Translator: \n&quot;
  &quot;Language-Team: \n&quot;
  &quot;MIME-Version: 1.0\n&quot;
  &quot;Content-Type: text/plain; charset=UTF-8\n&quot;
  &quot;Content-Transfer-Encoding: 8bit\n&quot;
  &quot;X-Generator: Poedit 2.0.2\n&quot;
  &quot;X-Poedit-Basepath: .\n&quot;
  &quot;Plural-Forms: nplurals=2; plural=(n != 1);\n&quot;
  &quot;Language: en_US\n&quot;
  
  # Test1
  msgid &quot;Hello&quot;
  msgstr &quot;Hallo&quot;
  </code></pre>
  <p>Here's my .php file</p>
  <pre><code>$language = &quot;en_US&quot;;
  putenv(&quot;LANG=&quot;.$language);
  setlocale(LC_ALL, $language);
  
  //Set the text domain as messages
  $domain = &quot;messages&quot;;
  bindtextdomain($domain, &quot;Locale&quot;);
  textdomain($domain);
  
  echo gettext(&quot;Hello&quot;);
  </code></pre>
  <p>Any kind of help would be appreciable.</p>