test
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • valminor Friend
    #144795

    Hello:
    I want to know how can I change the local time in my language (Spanish) who show on the top of header.

    Thanks a lot.

    ljubi Friend
    #319380

    Hi @valminor, this hir is German version bat ……

    [PHP]Go to templatesja_teline_iiilayoutsblocksheader.php

    Search for:

    Code:

    <p class=”ja-day”>
    <?php
    echo “<span class=”day”>”.date (‘l’).”</span>”;
    echo “<span class=”date”>, “.date (‘M’).” “.date (‘d’).date (‘S’).”</span>”;
    ?>
    </p>

    And change to this:
    <?php
    $day = date(“l”);
    $daynum = date(“j”);
    $month = date(“M”);
    $year = date(“Y”);

    switch($day)
    {
    case “Monday”: $day = “Montag”; break;
    case “Tuesday”: $day = “Dienstag”; break;
    case “Wednesday”: $day = “Mittwoch”; break;
    case “Thursday”: $day = “Donnerstag”; break;
    case “Friday”: $day = “Freitag”; break;
    case “Saturday”: $day = “Samstag”; break;
    case “Sunday”: $day = “Sonntag”; break;
    }

    switch($month)
    {
    case “January”: $month = “Januar”; break;
    case “February”: $month = “Februar”; break;
    case “March”: $month = “Maerz”; break;
    case “April”: $month = “April”; break;
    case “May”: $month = “Mai”; break;
    case “June”: $month = “Juni”; break;
    case “July”: $month = “Juli”; break;
    case “August”: $month = “August”; break;
    case “September”: $month = “September”; break;
    case “October”: $month = “Oktober”; break;
    case “November”: $month = “November”; break;
    case “December”: $month = “Dezember”; break;
    }

    echo $day . “, ” . $daynum . “. ” . $month . ” ” . $year;
    ?>

    Too disable lastupdate, pull this line out:
    <p class=”ja-updatetime”><span>Last update:</span><em><?php echo JATemplateHelper::getLastUpdate(); ?></em></p>[/PHP]

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

This topic contains 2 replies, has 2 voices, and was last updated by  ljubi 15 years, 2 months ago.

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