title: How to make contact form multilanguage
body: <p>So I have to make contact form multilingual, but im stuck for 7 hours already.
  SO i have to make ajax ok/error messages without duplicating code.</p>
  
  <pre><code> $language = $_GET["language"] OR $language == "en";
      $language = $_GET["language"] OR $language == "es";
      $language = $_GET["language"] OR $language == "pl";
  
      if ($language == "en") {
    $okMessage = 'Thank you, we will get back to you soon!';
    $errorMessage = 'There was an error while submitting the form. Please try again later';
  }
  if ($language == "pl") {
    $okMessage = 'Dziękujemy, skontaktujemy się niedługo';
    $errorMessage = 'W wiadomości pojawił się błąd, prosimy spróbować później';
  }
  if ($language == "es") {
    $okMessage = 'Gracias, nos pondremos en contacto con usted pronto!';
    $errorMessage = 'Hubo un error al enviar la solicitud. Por favor intente de nuevo.';
  }
  </code></pre>
  
  <p>So what i want my code to do is that when im on poland contact form page. like www.website.com/pl-contact-page.php?language=pl - it gives me error/success messages in poland</p>