HTTP_ACCEPT_LANGUAGE
<p>I created a PHP script that checks the HTTP_ACCEPT_LANGUAGE and loads the website using the appropriate language from the 1st two characters:</p>

<pre><code>          $http_lang = substr($_SERVER["HTTP_ACCEPT_LANGUAGE"],0,2);
      switch ($http_lang) {
        case 'en':
          $SESSION-&gt;conf['language'] = 'english';
          break;
        case 'es':
          $SESSION-&gt;conf['language'] = 'spanish';
          break;
        default:
          $SESSION-&gt;conf['language'] = $PREFS-&gt;conf['languages'][$SESSION-&gt;conf['language_id']];
      }
</code></pre>

<p>If I change the language to Spanish in Firefox the website loads in Spanish fine. However I have had several reports that people in Colombia see the website in english.</p>

<p>Details: 
"es-co" LCID = 9226 Spanish(Colombia)</p>

<p>Anyone have any ideas as to why this is happening? I thought this was the best way to check what language users support.</p>

<p>Thanks,
David</p>
