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.

Translating date on header

  • Felipe
  • Felipe's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 7 months ago #138420 by Felipe
Translating date on header was created by Felipe
Hello, in other post I asked where can I modify the date on the header, receiving a satisfying answer. But now I think I found a little bug related to the same issue, because the date format on the header can be changed, but not its language.

Regards,
Felipe Z.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 7 months ago #138421 by Krikor Boghossian
Replied by Krikor Boghossian on topic Translating date on header
The language strings are coming from the server.
You need to follow this tutorial to translate the date:

forum.codecall.net/topic/37493-translate-date-into-your-language/

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

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

  • Felipe
  • Felipe's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 7 months ago - 10 years 7 months ago #138422 by Felipe
Replied by Felipe on topic Translating date on header
Thanks Krikor.

Where should I put this code? On templates/kiji/index.php

Can I change the format to
echo $daynum.". ", $month." ", $day." ", $year;
That way I can display the date as:
Lunes, 14 de Abril de 2014

Regards,
Felipe

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 7 months ago #138423 by Krikor Boghossian
Replied by Krikor Boghossian on topic Translating date on header
Hello Felipe,

Placing it in index.php will work but I personally prefer to keep it clean. I would place it in includes/variations.php at the bottom, (Backup this file).
<?php echo ($day.",  " .$daynum." de ". $month." de ".$year); ?>
Try this instead

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

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

  • Felipe
  • Felipe's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 7 months ago #138424 by Felipe
Replied by Felipe on topic Translating date on header
Thanks again Krikor for the support, it stayed perfect.

Regards,
Fz

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 7 months ago #138425 by Krikor Boghossian
Replied by Krikor Boghossian on topic Translating date on header
You 're welcome :)

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

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


Powered by Kunena Forum