w2c/ispconfig3_roundcube

Autoreply calendar localization

Opened this issue · 5 comments

I can't find a way to translate the autoreply calendar. I'd like to have French translation for months, days and date format dd-mm-yy instead of yy-mm-dd.
A quick and dirty way would be to edit skins/classic/js/jquery.ui.datetime.min.js.
Is there a better way to do it ?

Thanks for your answser.

hi,
well i would not change the format, as its currently used by ispconfig and the roundcube plugin itself.

so when you change it, you would need to change it in the plugin, but its an interessting enhancement and i will try to implement a way to set the date format.

Hi,

Why not adding lang variables for calendar display? jQuery UI datepicker is already doing this in Roundcube, so you just have to use jQuery UI configuration.

For time/date format, it is a bit more complicated. Adding an hidden input with current format could be a solution. Then, you could use a custom format in the text input.

Best regards

great idea, this is not the jqueryui datepicker, its a plugin called datetime picker. It adds also the time to it.

Yes, I knew that. I suggested you to use datepicker options with the datetime picker plugin. You can see an example of the lang file right there: https://code.google.com/p/jquery-ui/source/browse/branches/labs/datepicker2/ui/i18n/jquery.ui.datepicker-fr.js?r=3875

Hi,
I have the same issue.
Each plugin shall use the datetime formats defined by the roundcube user settings.

A comment on the autoreply module - would it be possible to popup the calendar above the field and not below - on a widescreen portable, I can't date after second week / after 18th Jan.