Portuguese Language for Date in Joomla, PHP

Asked

Viewed 368 times

2

I am working with a module of events in joomla and when showing the date of the event the same does in the English language. Has the following code in one of the module files:

<span itemprop="startDate"><?php echo JHtml::_('date', $item->params->get('ctm_start',''), 'DATE_FORMAT_LC3'); ?></span>
        -
        <span itemprop="endDate"><?php echo JHtml::_('date', $item->params->get('ctm_end',''), 'DATE_FORMAT_LC3'); ?></span>

Just by this code, I could bring the language to Portuguese from Brazil?

  • Hey, guys, somebody shine a light?

  • if my answer is right, mark it as correct, or at least give feedback.

1 answer

2

There is more than one way to do this. One of them would be to directly change the code you are pointing to, another is to override language.

Go to Joomla > Administrator > Extensions -> Language Manager > Blowing and then search for DATE_FORMAT_LC3 and replace it with a format you want to use.

The meaning of the digits can be seen in http://php.net/manual/en/function.date.php

Browser other questions tagged

You are not signed in. Login or sign up in order to post.