Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

Translation of the Date in the Logo area

  • BARBARA GERANAKI
  • BARBARA GERANAKI's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 11 months ago #137271 by BARBARA GERANAKI
Translation of the Date in the Logo area was created by BARBARA GERANAKI
My website is in Greek and I would like to keep the date but translated in Greek.
Is this possible?

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

More
10 years 11 months ago #137272 by Yiota
Replied by Yiota on topic Translation of the Date in the Logo area
Since you only need the Greek language for your site, you will have to make the following change in index.php file of your template

Locate this line
<div class="dateInput"><?php echo date("F j, Y, g:i a"); ?></div>
and replace it with this one
<div class="dateInput">
<?php setlocale(LC_ALL, 'el_GR.UTF-8');
$currentDate = strftime("%e %B %Y, %H:%M");  				  
 echo $currentDate; ?></div>

Note that the above code won't work if you need to use a multilanguage site.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • BARBARA GERANAKI
  • BARBARA GERANAKI's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 11 months ago #137273 by BARBARA GERANAKI
Replied by BARBARA GERANAKI on topic Translation of the Date in the Logo area
ok! That was really easy :-)
thank you

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


Powered by Kunena Forum