Keyword

Change date in my own language

More
8 years 3 months ago - 8 years 3 months ago #155036 by Marc
Change date in my own language was created by Marc
On my website I am using K2 and of course I also donwloaded the translation in my language (dutch). On the frontend the K2 is still using the english language for the dates in the articles, categories, etc. I don't know why this is not changed into my own language.

You can look at the website at: pvt.joomla-designers.nl/k2/category-view.html

Who can help me solve this problem please?
Last edit: 8 years 3 months ago by Krikor Boghossian.

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

  • Mohamed Abdelaziz
  • Mohamed Abdelaziz's Avatar
  • Offline
  • Platinum Member
  • Joomla Developer
More
8 years 3 months ago - 8 years 3 months ago #155037 by Mohamed Abdelaziz
Replied by Mohamed Abdelaziz on topic Change date in my own language
Hello,

I have fixed this issue for a client before, unfortunately it was long time ago since I did it, so I can't remember the details.

Anyway, somewhere in the template override file, you can use this to get the month name translated into your language:
setlocale(LC_TIME, 'nl_NL');
$month_name = date('F', mktime(0, 0, 0, $this->item->created));

Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store
Last edit: 8 years 3 months ago by Mohamed Abdelaziz.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 3 months ago #155055 by Krikor Boghossian
Replied by Krikor Boghossian on topic Change date in my own language
Never, EVER post credentials over the public forum unless it is a dummy registered user.

You can try re-downloading and reinstalling the language file in case something went wrong the initial file.

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