Calendar locale variable
-
I have installed AEC and all works ok. Our site is available in two languages English / Welsh. This is provided by using the polylang plugin that allows two posts to be created and be assigned to either the English or Welsh language. I have edited po files for AEC and can get the Calendar to show in Welsh throughout apart from the drop down month datepicker. I can see that AEC_LOCALE is a constant and this picks up ‘en’ as the language. I have created a ‘plugins\ajax-event-calendar\js\i18n\jquery.ui.datepicker-cy.js’ file which works when pointed to directly using ‘wp_register_script(‘datepicker-locale’, AEC_URL . ‘js/i18n/jquery.ui.datepicker-cy’ . ‘.js’, array(‘jquery-ui-datepicker’), ‘1.8.5’, true);’When I toggle between the English and Welsh site I can see that ‘get_local()’ changes from ‘en’ to ‘cy’ but as the AEC_LOCALE is set already it will not change. Can this be changed so that AEC_LOCALE updates at runtime?
Thanks for any ideas.
The topic ‘Calendar locale variable’ is closed to new replies.