Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Show full month, not abbreviated?

Show full month, not abbreviated? 14 years 7 months ago #7727

  • gtownwebdev
  • gtownwebdev's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 21
  • Thank you received: 0
I have an event posted with this date:

Jun 30, 2010

The client thinks "Jun" is a mistake and wants "June" spelled out. But I can't figure out where or how to do that. The "Date Format" dropdown gives some options for changing the date, but ALL of the non-numeric choices use "Mar" rather than "March" (so therefore we get "Jun" rather than "June"). Where does this come from?

I found two instances of "Jun" in dtregister.php and modified them, but the change isn't showing up on the site, so that must not be the right spot.

Using 2.6.5.

Help! :-)

Please Log in or Create an account to join the conversation.

Show full month, not abbreviated? 14 years 7 months ago #7728

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
Check the language file:

/language/en-GB/en-GB.com_dtregister.ini

Towards the bottom of the file, you will find a list of the month abbreviations. Change:

DT_JUN=JUN

to...

DT_JUN=JUNE

Please Log in or Create an account to join the conversation.

Show full month, not abbreviated? 14 years 7 months ago #7729

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
Also, be aware that the language file items apply just to the month filter that shows above the list of events. The date that shows in the list and on registration pages is based on php date formatting. To change this, you'll need to make a file modification:

/administrator/components/com_dtregister/view/config/tab.general.php

Search and you'll find about half-way down the date format options. The first four include the month name like this:
$format_list[] = JHTML::_('select.option','%b %d, %Y', 'Mar 5, 2009' );

$format_list[] = JHTML::_('select.option','%d %b %Y', '5 Mar 2009' );

$format_list[] = JHTML::_('select.option','%A, %b %d, %Y', 'Monday, Mar 5, 2009' );

$format_list[] = JHTML::_('select.option','%A, %d %b %Y', 'Monday, 5 Mar 2009' );

Wherever you see %b, change it to %B

That will cause the full month name to display instead of the abbreviation.

Please Log in or Create an account to join the conversation.

Show full month, not abbreviated? 14 years 7 months ago #7732

  • gtownwebdev
  • gtownwebdev's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 21
  • Thank you received: 0
I made both of those changes and was surprised to find they didn't help -- I was still seeing "Jun" (in the upcoming events module, next to the title of the event at the top of the registration form, and in the events plugin).

But your suggestion about modifying the language file gave me the clue to look in the core en-GB.ini file. The php date/time settings were OK, but I found the unwanted values listed for "JUNE_SHORT" etc. and when I modified THOSE, the dates on the site showed up properly. DTRegister must be using those (or JEvents is) ... ?

So, it's working now -- thank you!

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.682 seconds