w2c / ispconfig3_roundcube

ISPConfig3 plugins for Roundcube
https://www.web-wack.at
GNU General Public License v3.0
180 stars 63 forks source link

Autoreply calendar localization #19

Open aellert opened 10 years ago

aellert commented 10 years ago

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.

horfic commented 10 years ago

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.

sebj54 commented 10 years ago

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

horfic commented 10 years ago

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

sebj54 commented 10 years ago

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

gorankav commented 10 years ago

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.