Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • simpsonix Friend
    #142832

    sorry, i have to open this thread, since it has already been answered. but unfortunately i didn’t get the answer. it would be great, if anybody could post the relevant part of the code. or explain in more detail where and what you have to change.

    and i have to mention that i only have english installation.
    i tried changing en-GB.ini but nothing happened

    my changes:
    DATE_FORMAT_LC=%A, %e %B %Y %H:%M
    DATE_FORMAT_LC1=%A, %d %B %Y
    DATE_FORMAT_LC2=%A, %d %B %Y %H:%M
    DATE_FORMAT_LC3=%d %B %Y
    DATE_FORMAT_LC4=%d.%m.%y
    DATE_FORMAT_JS1=y-m-d
    %Y-%M-%D=%Y-%m-%d
    %A, %B %E=%A, %B %e

    # Months

    JANUARY_SHORT=Jan
    JANUARY=Jänner
    FEBRUARY_SHORT=Feb
    FEBRUARY=Februar
    MARCH_SHORT=Mar
    MARCH=März
    APRIL_SHORT=Apr
    APRIL=April
    MAY_SHORT=Mai
    MAY=Mai

    and as you can see, i also changed the names of the months and days into german.

    what is still missing?

    thanks!

    stilpunkt Friend
    #311496
    simpsonix Friend
    #311550

    thanks for the answer. unfortunately it didn’t completely work on my site (ja tube). i attached the suggested code for german (see below), but what happened was that additional to the date next to the login (still in english), there appeared a second date (above the logo) in geman. plus: it didn’t say juli (for july) but “onbekend”, which was part of the code. what does onbekend mean?

    thats the code i used in index.php line 87:

    <div class=”ja-day”>
    <?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;
    default: $day = “Onbekend”; 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;
    default: $month = “Onbekend”; break;
    }

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

    help would really be appreciated.
    thanks in advance!

    hawver Friend
    #311551

    The reason the dates appear twice is because you left the original code in it.

    Step 1:
    You should remove the lines that contains the following code in index.php. That is the original date presentation
    <?php echo “<span>”.date (‘l’).” “.date (‘M’).” “.date (‘d’).date (‘S’).”</span>”; ?>

    Step 2
    You should add the following code at the same spot you removed the original source in step 1:

    <?php
    $day = date(“l”);
    $daynum = date(“j”);
    $month = date(“F”);
    $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;
    default: $day = “Onbekend”; 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;
    default: $month = “Onbekend”; break;
    }

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

    Step 3

    You can solve your second problem by changing. (already changed by step 2)

    $month = date(“M”);

    to

    $month = date(“F”);

    Good luck

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

This topic contains 4 replies, has 3 voices, and was last updated by  hawver 15 years, 4 months ago.

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