Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • XPRO PARIS Friend
    #158814

    Hi,

    Is it possible to change time format to 24h instead of 12 in teline IV (last update in the top left corner), and get the date in french language ?

    Thank’s

    XPROPARIS
    Web, Development & Event Agency

    walkysss Friend
    #372044

    To get the the date in french , i will suggest you to install the french package : fr-FR_joomla_lang_full.1.5.20 – Install it and go in language manager and switch the french Lang as default then save

    2- To Change the Last updated :go in your : fr-FR.ini (language File) ( Im using CPANEL ) and change Last Updated to Last Update=Mise à jour

    Your fist question ..i dont know how .. i have to find it

    steinar Friend
    #372104

    Although I don’t know whether it is advisable, I can tell you what I did:

    In templates >> ja_teline_iv >> blocks >> topbar.php I removed the upper (ja-day clearfix) part and replaced it whith this:

    [PHP] <p class=”ja-day clearfix”>
    <?php
    echo(strftime(” %A %e %b %Y | week %V | day no %j “).”<br />”);
    ?>
    </p>
    [/PHP]

    This gives the following representation in your language:
    SUNDAY 16 JAN 2011 | WEEK 02 | DAY NO 016

    Addendum: I used a non-breaking space before and after the code inside the quotation marks, it looks better.

    The week number is according to international (ISO) standard, where the first Thursday in a given year always is in week number one. The United States have their own numbering systems and need to use either %U (for Sunday as first day in the week) or %w (for Monday as first day).

    The Last updated part I replaced whith:

    [PHP] <p class=”ja-updatetime”><span>
    <?php echo JText::_(‘ your translation of last updated ‘)?></span><em>

    <?php //echo T3Common::getLastUpdate(); ?>

    <?php
    $cet = T3Common::getLastUpdate();
    $cet = str_replace(” GMT”, “”, $cet);
    date_default_timezone_set(“CET”);
    $timestamp = strtotime($cet);
    date_default_timezone_set(“Europe/Paris”);
    $cet = date(“H.i.s “, $timestamp);
    echo $cet.””;
    ?>

    </em></p>[/PHP]

    This is not perfect, but it seems to work.
    🙂

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

This topic contains 3 replies, has 3 voices, and was last updated by  steinar 13 years, 10 months ago.

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