Viewing 15 posts - 1 through 15 (of 91 total)
  • Author
    Posts
  • kim8589 Friend
    #128004

    Hello Community,

    cam someone explain me, how can i translate the days in the login form, like monday etc. into my speach?

    *greets* Kim

    Sherlock Friend
    #247232

    Hi Kim8589 !
    You open index.php file find code section at bout line 111 :


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

    this code for display days. You can translate it by use switch command :


    <div class="ja-day">
    <?php
    $days = date ('l');
    switch ( $days) {
    case 'Monday' :
    echo "[monday of mylanguage]" ;
    break;
    .................
    }
    echo " <div>".date ('M')." ".date ('d').date ('S')."</div>";
    ?>
    </div>

    kim8589 Friend
    #247244

    Thanks m8! And how can i change the size of the login box ? cause now the date ist in 2 rows 🙁

    Greets!
    Kim

    adries Friend
    #247546

    Hello, in which index.php (map) can i find this code?

    I searched but couldn’t find it.:((
    Also i want to change the month notation in Dutch.

    Can you help me out?

    TIA Greetings Ton

    PGLion Friend
    #247548

    It’s here: public_html/templates/ja_teline_ii/index.php line 111

    adries Friend
    #247549

    Thank you PGLion,

    Do you know how to change the date(month) notation?

    TIA

    PGLion Friend
    #247553

    I am not a coder but managed to get this:

    <div class="ja-day">
    <?php
    $day = date("l");
    $daynum = date("j");
    $month = date("M");
    $year = date("Y");

    switch($day)
    {
    case "Monday": $day = "Maandag"; break;
    case "Tuesday": $day = "Dinsdag"; break;
    case "Wednesday": $day = "Woensdag"; break;
    case "Thursday": $day = "Donderdag"; break;
    case "Friday": $day = "Vrijdag"; break;
    case "Saturday": $day = "Zaterdag"; break;
    case "Sunday": $day = "Zondag"; break;
    default: $day = "Onbekend"; break;
    }

    switch($month)
    {
    case "January": $month = "Januari"; break;
    case "February": $month = "Februari"; break;
    case "March": $month = "Maart"; break;
    case "April": $month = "April"; break;
    case "May": $month = "Mei"; break;
    case "June": $month = "Juni"; break;
    case "July": $month = "Juli"; break;
    case "August": $month = "Augustus"; break;
    case "September": $month = "September"; break;
    case "October": $month = "Oktober"; break;
    case "November": $month = "November"; break;
    case "December": $month = "December"; break;
    default: $month = "Onbekend"; break;
    }

    echo $day . " " . $daynum . " " . $month . " " . $year;
    ?>
    </div>

    Can somebody check this and allign it properly?

    adries Friend
    #247557

    Wow, thanx PGLion,

    This works perfectcool:

    Greetings Ton

    apitsch Friend
    #247558

    Hi PGLion,
    yes your code works on my site. And here the code for the german language:

    <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>

    gozal Friend
    #247565

    here’s the french one

    Patrick

    <div class=”ja-day”>
    <?php
    $day = date(“l”);
    $daynum = date(“j”);
    $month = date(“M”);
    $year = date(“Y”);

    switch($day)
    {
    case “Monday”: $day = “Lundi”; break;
    case “Tuesday”: $day = “Mardi”; break;
    case “Wednesday”: $day = “Mercredi”; break;
    case “Thursday”: $day = “Jeudi”; break;
    case “Friday”: $day = “Vendredi”; break;
    case “Saturday”: $day = “Samedi”; break;
    case “Sunday”: $day = “Dimanche”; break;
    default: $day = “Onbekend”; break;
    }
    switch($month)
    {
    case “January”: $month = “Janvier”; break;
    case “February”: $month = “Fevrier”; break;
    case “March”: $month = “Mars”; break;
    case “April”: $month = “Avril”; break;
    case “May”: $month = “Mai”; break;
    case “June”: $month = “Juin”; break;
    case “July”: $month = “Juillet”; break;
    case “August”: $month = “Aout”; break;
    case “September”: $month = “Septembre”; break;
    case “October”: $month = “Octobre”; break;
    case “November”: $month = “Novembre”; break;
    case “December”: $month = “Decembre”; break;
    default: $month = “Onbekend”; break;
    }
    echo $day . ” ” . $daynum . ” ” . $month . ” ” . $year;
    ?>
    </div>

    kim8589 Friend
    #247570

    nice one thanks m8!

    Why is there an off-set, when i implement the code?

    Link : http://www.imaedia.de/gap.jpg

    Greets Kim!

    onboom Friend
    #247597

    Vietnamese code:
    [PHP]
    <div class=”ja-day”>
    <?php
    $day = date(“l”);
    $daynum = date(“j”);
    $month = date(“M”);
    $year = date(“Y”);

    switch($day)
    {
    case “Monday”: $day = “Thứ Hai”; break;
    case “Tuesday”: $day = “Thứ Ba”; break;
    case “Wednesday”: $day = “Thứ Tư”; break;
    case “Thursday”: $day = “Thứ Năm”; break;
    case “Friday”: $day = “Thứ Sáu”; break;
    case “Saturday”: $day = “Thứ Bảy”; break;
    case “Sunday”: $day = “Chủ Nhật”; break;
    default: $day = “Ngày”; break;
    }

    switch($month)
    {
    case “January”: $month = “Tháng 1”; break;
    case “February”: $month = “Tháng 2”; break;
    case “March”: $month = “Tháng 3”; break;
    case “April”: $month = “Tháng 4”; break;
    case “May”: $month = “Tháng 5”; break;
    case “June”: $month = “Tháng 6”; break;
    case “July”: $month = “Tháng 7”; break;
    case “August”: $month = “Tháng 8”; break;
    case “September”: $month = “Tháng 9”; break;
    case “October”: $month = “Tháng 10”; break;
    case “November”: $month = “Tháng 11”; break;
    case “December”: $month = “Tháng 12”; break;
    default: $month = “Tháng”; break;
    }

    echo $day . ” ” . $daynum . ” ” . $month . ” ” . $year;
    ?>
    </div>
    [/PHP]

    onboom Friend
    #247598

    Vietnamese – Tiếng Việt Nam:
    Fix update:
    [PHP]
    <div class=”ja-day”>
    <?php
    $day = date(“l”);
    $daynum = date(“j”);
    $month = date(“M”);
    $year = date(“Y”);

    switch($day)
    {
    case “Monday”: $day = “Thứ Hai, ngày”; break;
    case “Tuesday”: $day = “Thứ Ba, ngày”; break;
    case “Wednesday”: $day = “Thứ Tư, ngày”; break;
    case “Thursday”: $day = “Thứ Năm, ngày”; break;
    case “Friday”: $day = “Thứ Sáu, ngày”; break;
    case “Saturday”: $day = “Thứ Bảy, ngày”; break;
    case “Sunday”: $day = “Chủ Nhật, ngày”; break;
    default: $day = “Ngày”; break;
    }

    switch($month)
    {
    case “January”: $month = “Tháng 1, năm”; break;
    case “February”: $month = “Tháng 2, năm”; break;
    case “March”: $month = “Tháng 3, năm”; break;
    case “April”: $month = “Tháng 4, năm”; break;
    case “May”: $month = “Tháng 5, năm”; break;
    case “June”: $month = “Tháng 6, năm”; break;
    case “July”: $month = “Tháng 7, năm”; break;
    case “August”: $month = “Tháng 8, năm”; break;
    case “September”: $month = “Tháng 9, năm”; break;
    case “October”: $month = “Tháng 10, năm”; break;
    case “November”: $month = “Tháng 11, năm”; break;
    case “December”: $month = “Tháng 12, năm”; break;
    default: $month = “Tháng”; break;
    }

    echo $day . ” ” . $daynum . ” ” . $month . ” ” . $year;
    ?>
    </div>
    [/PHP]
    ————————————–
    Sample site here:
    Ja Teline II – Vietnamese

    PGLion Friend
    #247603

    <em>@Kim8589 51487 wrote:</em><blockquote>nice one thanks m8!

    Why is there an off-set, when i implement the code?

    Link : http://www.imaedia.de/gap.jpg

    Greets Kim!</blockquote>

    As said before, I am not a coder. When I posted this code I also wondered why this code is off-set. It’s a start but we need someone to fix it, not only the off-set but also color. Who can help?

    adries Friend
    #247606

    Hello to all,

    Does someone know how i can align the date with log-in?
    As you can see the date floats compared to the login.
    http://www.apbsquad.info/

    TIA,

    Greetings Ton

    I solved it moving this partical line:

    [PHP]echo $day . ” ” . $daynum . ” ” . $month . ” ” . $year;[/PHP]
    with some changes
    to:

    [PHP]<ul>
    <?php echo $day . ” ” . $daynum . ” ” . $month . ” ” . $year;?>

    <jdoc:include type=”modules” name=”ja-login” />
    <!–module search–>
    <?php if($this->countModules(‘user4’)) : ?>
    <jdoc:include type=”modules” name=”user4″ />
    <?php endif; ?>
    </ul>
    [/PHP]

Viewing 15 posts - 1 through 15 (of 91 total)

This topic contains 91 replies, has 47 voices, and was last updated by  juremmm 14 years ago.

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