Keyword

K2 translate flatpickr backend calendar

  • daniele
  • daniele's Avatar Topic Author
  • Offline
  • New Member
More
5 years 1 month ago #173282 by daniele
Hi,
K2 v 2.9.0 with italian language, all works fine, the only thing that is not translated is flatpickr calendar in backend like you can see in attachment image.

How can I translate moths and weeks in Italian language?

Thanks in advance
Attachments:

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

  • daniele
  • daniele's Avatar Topic Author
  • Offline
  • New Member
More
5 years 1 month ago #173307 by daniele
Replied by daniele on topic K2 translate flatpickr backend calendar
What translate method you refer?

The transations methods not work with that calendare because is an external calendar.

I solved useing this method if anyone need to know too:

components/com_k2/helpers/html.php

row 197 added cdn:
$document->addScript('cdnjs.cloudflare.com/ajax/libs/flatpickr/4.6.3/l10n/it.js');

media/k2/assets/js/k2.backend.js
row 738 added:
time_24hr: true,
locale: 'it'

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

More
5 years 1 month ago #173346 by JoomlaWorks
Replied by JoomlaWorks on topic K2 translate flatpickr backend calendar
This is the correct way Daniele and as I mentioned in my response to your other thread, it's something that was missing in K2. I'll make sure the option is there in K2 v2.10 when it's officially released.

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

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

  • daniele
  • daniele's Avatar Topic Author
  • Offline
  • New Member
More
5 years 1 month ago #173358 by daniele
Replied by daniele on topic K2 translate flatpickr backend calendar
I understand, thanks.

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

More
4 years 11 months ago #173777 by JoomlaWorks
Replied by JoomlaWorks on topic K2 translate flatpickr backend calendar

Fotis / 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