Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • gabrieldrach Friend
    #122295

    Hi,

    i want to change the display of “date (‘l’)” and “date (‘M’)” to spanish language.

    how can i do this?

    Thx

    Gabriel

    gabrieldrach Friend
    #228273

    Answer to myself:

    i supposed that is something to be done with configuration server side.

    but it is too much to me (at least by now).

    Solution: some php coding:

    $dia = “”;
    switch (date(‘l’)){
    case “Sunday”:
    $dia = “Domingo”;
    break;
    case “Monday”:
    $dia = “Lunes”;
    break;
    case “Tuesday”:
    $dia = “Martes”;
    break;
    case “Wednesday”:
    $dia = “Miercoles”;
    break;
    case “Thursday”:
    $dia = “Jueves”;
    break;
    case “Friday”:
    $dia = “Viernes”;
    break;
    case “Saturday”:
    $dia = “Sabado”;
    break;
    }

    // echo “<span>”.date (‘l’).”</span>”
    echo “<span>”.$dia.”</span>”;

    $mes = “”;
    switch (date(‘M’)) {
    case “Jan”:
    $mes = “Ene”;
    break;
    case “Apr”:
    $mes = “Abr”;
    break;
    case “Aug”:
    $mes = “Ago”;
    break;
    case “Dec”:
    $mes = “Dic”;
    break;
    }
    // echo ” <div>”.date (‘M’).” “.date (‘d’).date (‘S’).”</div>”
    echo ” <div>”.$mes.” “.date (‘d’).”</div>”;

    Hope this help someone else.

    Gabriel

    jrmuchacho Friend
    #229684

    Disculpa pero podrias decirme donde se hacen esos cambios?
    Gracias!

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 3 replies, has 2 voices, and was last updated by  jrmuchacho 17 years, 2 months ago.

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