- Posts: 4
COMMUNITY FORUM
K2 translate flatpickr backend calendar
- daniele
- Topic Author
- Offline
- New Member
Less
More
5 years 1 month ago #173282
by daniele
K2 translate flatpickr backend calendar was created 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
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
Please Log in or Create an account to join the conversation.
- daniele
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
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'
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.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
5 years 1 month ago #173346
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
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.
- JoomlaWorks
- Offline
- Admin
Less
More
- Posts: 6218
4 years 11 months ago #173777
by JoomlaWorks
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by JoomlaWorks on topic K2 translate flatpickr backend calendar
Fixed in v2.10.1, out tomorrow: github.com/getk2/k2/commit/9e42c950583fbefb7e9761a4d012a393eae2a414
Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.