Viewing 12 posts - 16 through 27 (of 27 total)
  • Author
    Posts
  • zorcolino Friend
    #219115

    Hello
    have successfully changed Day in Date on frontpage into German. Unfortunately, Days within news are still in English. Please help. I have no clues where to change code.
    Thank you for your help

    ErikThorsen Friend
    #219116

    @borisn

    You need to change this in the calendar settings I think. Do you have a Russian language file for the calendar? If not, you need to install a seperate russian language file for this.

    kachete Friend
    #220842

    This works for me

    Thanks i could see everithing in spanish

    Thanks you all

    Best regards

    geokir Friend
    #222332

    I have tried this in order to see date in Greek:

    <?php
    setlocale(LC_TIME, "gr_GR.UTF-8");
    echo "<span>".strftime ('%A')."</span>";
    echo " <div>".strftime ('%b')." ".strftime ('%d').strftime (' ')."</div>";
    ?>

    Also changed Time Offset, Country Locale in Global Configuration to greek settings but still nothing. I need to make a Greek language file for calendar? And whats the path for that?

    thanks

    dodoni Friend
    #223442

    <em>@mikeho1980 13220 wrote:</em><blockquote>
    <?php
    setlocale(LC_TIME, "zh_HK.UTF-8");
    echo "<span>".strftime ('%A')."</span>";
    echo " <div>".strftime ('%b')."<br />".strftime ('%e').strftime (' ')."</div>";
    ?>

    For UTF-8 website, add .UTF-8</blockquote>

    I have apllied exactly this lines of code but i still see english date.
    What can it be wrong?

    orpheus2510 Friend
    #224010

    <em>@zorcolino 14223 wrote:</em><blockquote>Hello
    have successfully changed Day in Date on frontpage into German. Unfortunately, Days within news are still in English. Please help. I have no clues where to change code.
    Thank you for your help</blockquote>

    Change the setlocale entry in the code of index.php to: LC_ALL, ‘de_DE@euro’, ‘de_DE’, ‘de’, ‘ge’.
    This is what is has to be:

    <div class=”ja-day”>
    <?php
    setlocale(LC_ALL, ‘de_DE@euro’, ‘de_DE’, ‘de’, ‘ge’);
    echo “<span>”.strftime (‘%A’).”</span>”;
    echo ” <div>”.strftime (‘%d.’).strftime (‘ %b’).” “.strftime (‘%Y’).strftime (‘ ‘).”</div>”;
    ?>
    </div>

    It works on my side.

    graemie Friend
    #227261

    Anyone know how I can set the date to display the correct day and date in Australia (Sydney)?

    I’ve changed the global settings to my timezone but that didn’t work.

    g.

    knaps Friend
    #227271

    I have made changes in the global configuration to offset for India

    It still doesn’t reflect.

    Please guide.

    jrmuchacho Friend
    #229685

    I changed mine to spanish and works fine! Thanks a lot! 😀

    danielcuiaba Friend
    #321345

    Hi friends,

    I want and need to change my language. I tryed the examples above, but nothing.

    I want to change for Brazilian Portuguese.

    Can you help me?

    Thank you.;)

    danielcuiaba Friend
    #321353

    Hi friends,

    I find the solution to change the language to portuguese.

    In templates>telineiii>layout>block>header.php

    Change this code:

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

    FOR THIS:

    <blockquote><p class=”ja-day”>
    <?php
    setlocale(LC_TIME, “pt_BR”);
    echo “<span>”.strftime (‘%A’).”</span>”;
    echo ” <span>”.strftime (‘%d.’).strftime (‘%b’).” “.strftime (‘%Y’).strftime (‘ ‘).”</span>”;
    ?>
    </p></blockquote>

    Look for this line:

    echo ” <span>”.strftime (‘%d.’).strftime (‘%b’).” “.strftime (‘%Y’).strftime (‘ ‘).”</span>

    Must be <span> not <div>

    Thank you.

    ambiental Friend
    #374862

    Hello Teline Fans,

    I’m using Teline IV J1.6 and the nice date layout in topbar is locked in english and may be a problem for other language users, because the layout may be different (d/m/y) and the day text is obvious different.

    Here’s my contribution!

    Open in your favorite editor the file templates/ja_teline_iv/blocks/topbar.php and look in the first lines

    Original Code
    [PHP] <p class=”ja-day clearfix”>
    <?php
    echo “<span class=”day”>”.date (‘D’).”</span>”;
    echo “<span class=”month”>”.date (‘m’).”</span>”;
    echo “<span class=”date”>”.date (‘d’).”</span>”;
    echo “<span class=”year”>”.date (‘Y’).”</span>”;
    ?>
    </p>[/PHP]

    New Code
    [PHP] <p class=”ja-day clearfix”>
    <?php
    setlocale(LC_TIME, ‘pt_BR’);
    echo “<span class=”day”>”.strftime(‘%a’).”</span>”;
    echo “<span class=”date”>”.strftime(‘%d’).”</span>”;
    echo “<span class=”month”>”.strftime(‘%m’).”</span>”;
    echo “<span class=”year”>”.strftime(‘%Y’).”</span>”;
    ?>
    </p>[/PHP]

    Don’t use LC_ALL and look for your prefix languages, “pt_BR” is my need (Brazilian Portuguese). More settings in the PHP Help:

    http://php.net/manual/en/function.setlocale.php
    http://php.net/manual/en/function.strftime.php

    Saludos!

    Haldor Omar

Viewing 12 posts - 16 through 27 (of 27 total)

This topic contains 27 replies, has 20 voices, and was last updated by  ambiental 13 years, 3 months ago.

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