title: Gettext translating in English but not in French
body: <p>so the issue is the following. I am converting a site from a content array for each language to a gettext site with 2 additional to the original languages.</p>
  
  <p>So my base language is es_MX and I have en_US and fr_FR translations.</p>
  
  <p>I use the following parameters in .htaccess to pass info on the locale:</p>
  
  <pre><code>RewriteRule     ^/?$            index.php?es=./&amp;en=./en/&amp;fr=./fr/&amp;locale=es_MX [L]
  RewriteRule     ^en/?$          index.php?es=./&amp;en=./en/&amp;fr=./fr/&amp;locale=en_US [L]
  RewriteRule     ^fr/?$          index.php?es=./&amp;en=./en/&amp;fr=./fr/&amp;locale=fr_FR [L]
  </code></pre>
  
  <p>So, when I check the $_GET parameters everything is received correctly.</p>
  
  <p><strong>Case 1: Default es_MX</strong></p>
  
  <pre><code>Array
  (
      [es] =&gt; ./
      [en] =&gt; ./en/
      [fr] =&gt; ./fr/
      [locale] =&gt; es_MX
  )
  </code></pre>
  
  <p><strong>Case 2: en_US</strong></p>
  
  <pre><code>Array
  (
      [es] =&gt; ./
      [en] =&gt; ./en/
      [fr] =&gt; ./fr/
      [locale] =&gt; en_US
  )
  </code></pre>
  
  <p><strong>Case 3: fr_FR</strong></p>
  
  <pre><code>Array
  (
      [es] =&gt; ./
      [en] =&gt; ./en/
      [fr] =&gt; ./fr/
      [locale] =&gt; fr_FR
  )
  </code></pre>
  
  <p>So, after that what I do in order to have several language variables for use at say social network plugins or attributes, I have the following conditions:</p>
  
  <pre><code>if(!$_GET["locale"] || $_GET["locale"] == "es_MX") {
      $locale = "es_MX";
      $locale_general = "es_LA";
      $lang = "es";
      $isolang = "es-419";
      $htlang = "es-MX";
  } else if($_GET["locale"] == "en_US") {
      $locale = "en_US";
      $locale_general = "en_US";
      $lang = "en";
      $isolang = "en";
      $htlang = "en-US";
  } else if($_GET["locale"] == "fr_FR") {
      $locale = "fr";
      $locale_general = "fr_FR";
      $lang = "fr";
      $isolang = "fr";
      $htlang = "fr-FR";
  }
  </code></pre>
  
  <p>After that I initialize the locale using:</p>
  
  <pre><code>putenv("LC_ALL=".$locale.".utf8");
  setlocale(LC_ALL, $locale.".utf8");
  bindtextdomain("hacienda", "./locale");
  bind_textdomain_codeset("hacienda", "UTF-8");
  textdomain("hacienda");
  </code></pre>
  
  <p>My locales are located at:
  - English (./locale/en_US/LC_MESSAGES/hacienda.mo)
  - French (./locale/fr_FR/LC_MESSAGES/hacienda.mo)</p>
  
  <p>I ran <code>exec("locale -a",$output)</code> and the site shows a bunch of locales among which are several fr_FR entries including fr_FR.utf8.</p>
  
  <p>The generated html is:</p>
  
  <pre><code>&lt;html class="no-js" lang="fr" xml:lang="fr" itemscope itemtype="http://schema.org/Hotel"&gt; &lt;!--&lt;![endif]--&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
  ...
  </code></pre>
  
  <p>I tried renaming the locale file also created a new one but it doesn't seem to get the french translations. Any idea what might be causing that?</p>