Buy Now
Sign in

Datepicker short-days translation not working anymore

jj135 , February 11 2015
Answered
jj135

Hi! When I use this:

["Zo", "Ma", "Di", "Wo", "Do", "Vr", "Za"]

in the datepicker setup on the field 'Short Days' on the 'Advanced' tab of the element settings these days are not shown in the datepicker. The default (english) days are shown.



The Short Months value is used OK. The months are being translated.

In the HTML sourcecode of the form I do see:

data-shortdays="["Zo", "Ma", "Di", "Wo", "Do", "Vr", "Za"]"
data-shortmonths=["Jan","Feb","Mrt","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Dec"]



So both values are being used as data elements on the input. But only the months are shown in the datepicker with the data-shortmonth values. The data-shortdays values are not used, but the english days are shown.

I also tried to add these values to the 'Extra params' on the 'General' tab. But that did not work either for the short-days.

I believe this did work on the previous version of CF5. I am now using 5.0.5 on Joomla 3.3.6. I'm not absolutely sure, but I thinks this changed after the update to CF 5.0.5. I know I had this working a while ago...

Kind regards,
Jip


Attachments
datepicker_01.png
datepicker_01.png
(11.41 KiB)
271 Downloads/Views
datepicker_02.png
datepicker_02.png
(27.53 KiB)
261 Downloads/Views
admin

Hi Jip,

Thanks for the report, bug found and fixed for the next update!

Regards,
Max

Max
If your main question got answered then please mark the answer using the button!

jj135

Hi Max,

You're welcome. When can we expect the next update? I believe CF5 can also now be updated using the 'updates' of the Joomla extension manager?

admin

Yes, and the new update has been published yesterday, you should have an update notification in the Joomla admin now.

Max
If your main question got answered then please mark the answer using the button!

jj135

Excellent. I applied the update and the days are translated OK. :D

admin

8-)

Max
If your main question got answered then please mark the answer using the button!

admin

Hi Jip,

One more note, unfortunately a small glitch was found this morning, the textareas in the edit page wouldn't start a new line when you press "Enter", so a new update is supposed to be released shortly!

Regards,
Max

Max
If your main question got answered then please mark the answer using the button!

jj135

OK, thanks for the heads-up!

WoodyF4u

In the CFv5-editor of the date picker, I see this line:
List of days, can be used to translate the picker's days, e.g: ['Di', 'Lu', 'Ma', 'Me', 'Je', 'Ve', 'Sa']

But when I use that code, the translation is not correct.

At your FAQ you wrote the text with double quote and that's the correct way.
So is it possible to change that line in the next update of CF?

Best regards,
Wouter
The Netherlands

admin

Thanks Wouter, I have updated this!

Regards,
Max

Max
If your main question got answered then please mark the answer using the button!