test
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • schuller Friend
    #145960

    How a change date and last update in top page? This one:

    Thursday, Nov 12th / Last update:07:16:07 AM GMT

    And how i change: You are here: Home

    I need to change because i´ll go translater this item.

    I hope

    Tanks

    prakash Friend
    #323348

    Hi

    To change the date open this file
    templatesja_teline_iiilayoutsblocksheader.php

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

    <p class="ja-updatetime"><span><?php echo JText::_('Last update')?></span><em><?php echo $this->getLastUpdate(); ?></em></p>

    this defines the date and time.

    For changing You are here: open this file
    templatesja_teline_iiilayoutsblocksmainnav.php

    Find this

    <div class="ja-breadcrums">
    <strong><?php echo JText::_('You are here')?></strong> <jdoc:include type="module" name="breadcrumbs" />
    </div>

    This shows you the you are here…

    schuller Friend
    #323438

    Hi tanks.
    But i need chaneg for my country DATE, eg. Sexta, 13, Nov. Portuguese-Brazil.

    How do i do it?

    prakash Friend
    #323450

    To change the date to portuguese

    This method applies only if you do not have language set up and are using en language in Joomla config but the site is in Portuguese.

    in the language folder / en-GB / en-GB.ini

    There you will see date format just below that you have things like

    SAT=Sat
    SATURDAY=Saturday
    SUN=Sun
    SUNDAY=Sunday

    here you simply change it to say say like SATURDAY=Sexta

    now in the earlier code I showed you

    echo "<span class="day">".date ('l')."</span>";

    this will change… instead you will have to call date formats…

    <?php $now = &JFactory::getDate(); echo $now->toFormat('%A'); ?>

    For formats… in the en-GB on top you will see Date formats see what all you want to call and use the above code and just change the %

    Hope it answers your query

    schuller Friend
    #323454

    Hi,

    I have language set up in Portuguese and the file Pt-BR.ini and en-GB.ini are configured as shown below, but not show the correct date, in Potuguese method.

    Sáb
    SATURDAY=Sábado
    SUN=Dom
    SUNDAY=Domingo
    MON=Seg
    MONDAY=Segunda
    TUE=Ter
    TUESDAY=Terça
    WED=Qua
    WEDNESDAY=Quarta
    THU=Qui
    THURSDAY

    prakash Friend
    #323456

    hi,

    see the attached screen shot…

    This is how I achieved it…

    <p class="ja-day"><?php $now = &JFactory::getDate(); echo $now->toFormat('%A'); ?>
    <?php
    echo "<span class="day">".date ('l')."</span>";
    echo "<span class="date">, ".date ('M')." ".date ('d').date ('S')."</span>";
    ?>
    </p>

    Like I said you will need to remove this
    echo "<span class="day">".date ('l')."</span>";
    echo "<span class="date">, ".date ('M')." ".date ('d').date ('S')."</span>";

    and replace it with the JFactory code that I have mentioned in the first line

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

This topic contains 6 replies, has 2 voices, and was last updated by  prakash 15 years, 1 month ago.

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