Hi,
my language is de_de.
On the details page for an recurring event, the first line says for example:
Dieser Termin läuft vom 8 Februar 2018 bis 29 März 2018 und findet das nächste Mal am 8. Februar 2018 18:15 statt.
There are some points missing, and there should be one additional word, it should be:
Dieser Termin läuft vom 8. Februar 2018 bis 29. März 2018 und findet das nächste Mal am 8. Februar 2018 um 18:15 statt.
Thanks,
Florian
Florian Werbinek
The datetime formatting is based on your site’s settings. You probably don’t want to change it there since it will potentially impact other parts of your site.
Alternatively you can edit the template in templates/event-meta-event-single.php (copy it to your theme and make the changes there to prevent an update from losing your changes).
The function call eo_get_event_datetime_format() on line 37 is what determines the date format, based on the site settings. You can specify the date and time formats as the second and third argument: e.g:
eo_get_event_datetime_format(get_the_ID(), 'j. F Y', ' um g:i ')
You can also change any of that text in the event information.
Stephen Harris
Hi Stephen,
I still try to solve this.
My WordPress formats are set to: Date: j. F Y Time: G:i
Standard output on a detail page is: Dieser Termin läuft vom 2 Mai 2018 bis 25 Juli 2018 und findet das nächste Mal am 9. Mai 2018 17:45 statt.
The most important issue are the missing dots for the first dates, it should be: …vom 2. Mai 2018 bis 25. Juli 2018 und… The third date is displayed correctly….
I also tried to add the “um” like you advised. But that leads to the following: Dieser Termin läuft vom 2 Mai 2018 bis 25 Juli 2018 und findet das nächste Mal am 9. Mai 2018 00000005 5:45 statt.
Please help… Thank you, Florian
-
This reply was modified 6 years, 6 months ago by Florian Werbinek.
Florian Werbinek
Stephen, can you please help?
Florian Werbinek
Hi Florian,
If adding text to the time format you need escape it with backslashes. Try \u\m
.
The first two date formats are hardcoded in the template. Copy event-meta-event-single.php
from the templates
directory into your theme and edit the string j F Y
to j. F Y
.
Stephen Harris
Hi Stephen,
both worked, thanks a lot!
I copied event-meta-event-single.php to my template root folder, and edited
eo_get_schedule_start( ‘j F Y’ ), eo_get_schedule_last( ‘j F Y’ ), $next )
->
eo_get_schedule_start( ‘j. F Y’ ), eo_get_schedule_last( ‘j F Y’ ), $next )
and
( eo_get_event_datetime_format() )
->
( eo_get_event_datetime_format(get_the_ID(), ‘j. F Y’, ‘ \u\m g:i ‘) )
which results in (example)
Dieser Kurs läuft vom 7. Mai 2018 bis 30 Juli 2018 und findet das nächste Mal am 11. Juni 2018 um 6:00 statt.
A lot of improvement for the german language version 🙂
Florian Werbinek