Open genofire opened 3 years ago
What would you expect?
A way to short Day depending on language. And if German to short it by two letters.
The translation now considers the configured length of day and month names. But it can only be set globally and not language dependent. Could you please manually install the latest version, try it and give me some feedback?
Hmm, that is the problem. We write artical and pages in multiple languages ...
OK, I understand. Do you also need adjustable date formats? And is it ok to just show the first n characters of the day or month name?
Edit: Could it be an option to use https://github.com/Karmalakas/grav-plugin-translate-date ? Then, I would think about removing the date translation from the events plugin and add the other plugin as dependency.
Could you please manually install https://github.com/Karmalakas/grav-plugin-translate-date and https://github.com/pikim/grav-plugin-events/tree/grav-plugin-translate-date and give it a try?
You'll have to adjust the short format in the language file of the translate-date plugin and it should work. Don't forget to update your custom twigs accordingly.
In German, the Weekday is shorted to 2 chars (instatt of 3):
https://github.com/pikim/grav-plugin-events/blob/836aff2f50c18959a9d0f7c8b9d3d32501b9f210/twig/DateTranslationExtension.php#L104-L107