Viewing 16 post (of 16 total)
  • Author
    Posts
  • neoclub Friend
    #372812

    I should have come with a more elegant solution, pardon my noobiness, here’s how I could change the date into spanish:

    Edit file header.php inside /templates/ja_teline_iii_v2/blocks replacing:

    <p class="ja-day">
    <?php
    echo "<span class="day">".date ('l')."</span>";
    echo "<span class="date">, ".date ('M')." ".date ('d').date ('S')."</span>";
    ?>
    </p>

    with:

    <p class="ja-day">
    <?php
    function fecha ()
    {
    $vect=getdate();
    $vect_dia=array("Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado");
    $vect_mes=array("Diciembre","Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre");
    return $vect_dia[$vect[wday]]." ".$vect[mday]." de ".$vect_mes[$vect[mon]];
    }
    echo fecha()."<br>";
    ?></p>

    function from: http://refactormycode.com/codes/150-spanish-date-function

    !!! !!! !!!

    http://www.neoclubpress.com

Viewing 16 post (of 16 total)

This topic contains 16 replies, has 4 voices, and was last updated by  neoclub 13 years, 10 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum