title: I18n using PHP gettext()
body: <p>I am trying to translate my website using PHP gettext() for which I have implemented the following code:</p>
  
  <pre><code>if ( false === function_exists('gettext') ) {
      echo "You do not have the gettext library installed with PHP.";
      exit(1);
  }
  setlocale(LC_ALL, 'en_US.UTF-8');
  $localedir = dirname(__FILE__) . '/Locale';
  echo $localedir . ': ';
  bindtextdomain('messages', $localedir);
  
  textdomain('messages');
  echo gettext("Hello");
  exit(0);
  </code></pre>
  
  <p>But it doesnot seem to work because it is echoing the same string what I pass in gettext().</p>
  
  <p>I have created the *.po, *.mo files using poedit while following  <a href="https://blog.udemy.com/php-gettext/" rel="nofollow noreferrer">https://blog.udemy.com/php-gettext/</a> tutorial.</p>
  
  <p>The above code has been taken from <a href="https://github.com/nota-ja/php-gettext-example/blob/master/index.php" rel="nofollow noreferrer">https://github.com/nota-ja/php-gettext-example/blob/master/index.php</a></p>
  
  <p>But while having such solutions I am unable to translate the given content. Any kind of help will be appreciated.</p>
  
  <p>Thanks!</p>