Forum Support

Shape 5
March 29, 2024, 05:25:24 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Date function in other languages.  (Read 493 times)
aviva
Jr. Member
**
Offline Offline

Posts: 3



« on: April 23, 2009, 08:30:13 AM »

There have been several questions on how to change the date on top to a different language.
I did it as follows:
Replace <?php echo date("l");?>, <?php echo date("F j, Y");?>
in the index.php
With <?php echo JHTML::_('date', 'now', JText::_('DATE_FORMAT_LC')) ?>

It's using the Joomla DATE_FORMAT_LC as defined in the language ini file, ie pl-PL.ini, nl-NL.ini, fr-FR.ini, en-GB.ini, en-US.ini etc.

This is my first post so I though to keep it positive  Wink.
Hint for the Shape5 team: why not make this standard? It will work for any language and avoid many questions and frustrations  Cool.
« Last Edit: April 23, 2009, 08:34:54 AM by aviva » Logged
jonahh
Administrator
*****
Offline Offline

Posts: 23789



WWW
« Reply #1 on: April 24, 2009, 02:45:36 PM »

Thanks for the tip!  We've updated the downloads to reflect this change.
Logged

Jonah Hall
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
ylevel
Jr. Member
**
Offline Offline

Posts: 27



« Reply #2 on: December 06, 2011, 07:54:24 AM »

Seems it hasn't been implemented yet - I had this tip working on Joomla 1.7.3 - thanks :-)
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.