Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internationalize using flatpickr #38

Open
wants to merge 46 commits into
base: develop
Choose a base branch
from

Conversation

markpatton
Copy link
Contributor

@markpatton markpatton commented Sep 14, 2021

This pr demonstrates internationalization of the appointment plugin by replacing the use of datepicker and datetimepicker with flatpickr. Notably there are no server side changes. Only template and property updates. It requires updated macros from lutece-platform/lutece-core#252.

The pr attempts to be complete, but may not have tested every aspect. At the least i should be able to generate discussion. See the above pr for details on the macros.

On the administrative side, appointments can generally be created, managed, and viewed in a calendar in both English and French. There is still work to do including translating hard coded French and carefully examining all the date formatting and parsing. For example, every single time moment is used to parse a string, the expected format must be set.

Other changes include providing an English translation of appointment.properties as
webapp/WEB-INF/conf/plugins/appointment-en.properties which could be used in an override.

The commit history is a little messy, and we'd be happy to rewrite it.

hohll and others added 30 commits April 14, 2021 14:26
make adjustments for internationalization; spelling fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants