title: After adding detection of browser language, the language href anchor (hl) stops working
body: <p>I know how to detect language browser in PHP and also how to detect the language href anchor for switching to another.</p>
  
  <p>My old codes which doesn't have <code>locale_accept_from_http($_SERVER['HTTP_ACCEPT_LANGUAGE']);</code>:</p>
  
  <pre><code>if (isset($_GET['hl'])) 
  {
      $langOption = $_GET['hl'];
  } 
  
  else 
  {
      $langOption = '';
  }
  
  switch ($langOption):
    case 'ca':
      $language = 'cat';
      break;
    case 'el':
      $language = 'el';
      break;
    case 'en':
      $language = 'en';
      break;
    case 'en_GB':
      $language = 'en_GB';
      break;
    case 'es':
      $language = 'es';
      break;
    case 'fr':
      $language = 'fr';
      break;
    case 'ka':
      $language = 'ka';
      break;
    case 'nl':
      $language = 'nl';
      break;
    case 'pt_PT':
      $language = 'pt_PT';
      break;
    case 'pt_BR':
      $language = 'pt_BR';
      break;
    case 'ro':
      $language = 'ro';
      break;
    default:
      $language = 'pt_BR';
      break;
  endswitch;
  
  require_once("idiomas/{$language}.php");
  </code></pre>
  
  <p>These old codes worked very for language href anchors. Like:</p>
  
  <pre><code>&lt;a class="waves-effect" href="?hl=en_GB" name="en"&gt;English&lt;/a&gt;
  &lt;a class="waves-effect" href="?hl=pt_BR" name="pt_BR"&gt;Português Brasileiro&lt;/a&gt;
  </code></pre>
  
  <p>I changed to codes to condense, economise and shorten the codes. Here are new codes:</p>
  
  <pre><code>$language = locale_accept_from_http($_SERVER['HTTP_ACCEPT_LANGUAGE']);
  
  if (isset($_GET['hl'])) 
  {
      $lang = $_GET['hl'];
  
  }
  
  else 
  {
      $lang = '';
  }
  
  switch ($lang):
    case $language:
      $language = $language;
      break;
    default:
      $language = $language;
      break;
  endswitch;
  
  require_once("idiomas/{$language}.php");
  </code></pre>
  
  <p>Only the detection of browser language worked very well, but the language href anchors (hl) do not work, because if you switch to Portuguese, the page still in English. </p>
  
  <p>Similar like:</p>
  
  <pre><code>switch ($lang):
    case "en":
      $language = "en";
      break;
    case "en_GB":
      $language = "en_GB";
      break;
    case "pt_BR":
      $language = "pt_BR";
      break;
    case "pt_PT":
      $language = "pt_PT";
      break;
  endswitch;
  </code></pre>
  
  <p>But I wouldn't like to repeat these old codes. I want to keep condensing and shortening the same new codes.</p>