title: Translating PHP date() for Multilingual Site
body: <p>I'm trying to create a conditional translation of the PHP internal date() function.  Is it possible to somehow redefine the internal variables - e.g. - date('M'), date('y') etc so that different strings are fed into the remainder of the PHP function on the basis of this test:</p>
  
  <pre><code>if (ICL_LANGUAGE_CODE == 'fr') { }
  </code></pre>
  
  <p>The following is a working example of the code I'm using for a dates module.  Since <code>$date</code> is defined with many variables contained in this definition it's important to conditionally re-define the variables within PHP's <code>date()</code> first in order to avoid having to redefine the variable 100 times or more within each key.  </p>
  
  <pre><code>if($start &lt;= $end):
      if($start == $end):
          //Month Day, Year
          $date =  date('F', $start).' '.date('j',$start).', '.date('Y', $start);
      else:
          if($start_year == $end_year):
              if($start_month == $end_month):
  
                  //Month Day - Day, Year
                  $date = date('F', $start).' '.date('j',$start).' - '.date('j', $end).', '.date('Y', $start);
              else:
                  //Month Day - Month Day, Year
                  $date =  date('F', $start).' '.date('j',$start).' - '.date('F', $end).' '.date('j', $end).', '.date('Y', $start);
              endif;
          else:
              //Month Day, Year - Month Day, Year
              $date =  date('F', $start).' '.date('j',$start).', '.date('Y', $start).' - '.date('F', $end).' '.date('j', $end).', '.date('Y', $end);
          endif;
      endif;
  endif;
  </code></pre>