mxCalendar
mxCalendar copied to clipboard
Putting date name in lexicon
Would be great to be able to have the date names in other laguages, ie: January, Febuary, etc.
thanks
this should be happening based on your PHP localization settings and in the manager for the repeating events on the weekly option the day labels are driven via language file. Can you tell me more about your setup and what you seeing where?
For me all dates are in the correct language. (Dutch)
Yes based on my PHP localization it's working, but probably cause I'm new with Modx revo, when making a multi language site, I'll have to set PHP localization for each language?
There are a few things you'd want to do depending on how your building out the multi-lingual site. Are you using different context in Revo or are you using multiple TVs for each language in a single context, or possibly another option? That will determine how the switch is made.
In short the PHP setlocal() method to change the localization so that not only text, but also characters, etc. are formatted properly for the language. This could be done in a plug-in or if only need on calendar pages a snippet that is called before mxCalendar to change it based on the language option. Those are just two quick methods, but other options exist that my be better depending on the answer to the above question.
Thank for the great information, I think I would prefere to use a single context so I can do something like Yams in evo, so my client don't have to edit 1 page per language but only one ressources.
p.s. sory for my english I don't often have the oportunities to practice :)