Home › Forums › Calendar Products › Events Calendar PRO › SOLVED: Date Formatting Typographically correct for German
- This topic has 8 replies, 3 voices, and was last updated 10 years, 10 months ago by
Support Droid.
-
AuthorPosts
-
September 23, 2013 at 5:13 am #67228
museumelmhorn
ParticipantHi at Tri.be,
I´ve been searching all over the lugin but an´t find the solution: I need to fix the way Dates are shown as well in den Event list on the page as well as in the widget. To be typographically correct I need a – long dash ( —) between the time without any space plus added “Uhr”. I do want to get rid of the @ in front of the Time.NOW State
3. November 2013 @ 11.00 – 13.00NEED to BE State:
3. November 2013 von 11.00–13.00 Uhrthanks for your help
kind regards
Steph
September 24, 2013 at 11:27 am #67523Barry
MemberHi Steph,
So you have a few options here. To try and catch this in both the list view and widget though you might use the tribe_events_event_schedule_details filter hook.
Here’s a slightly rough and ready example of a snippet you could use – it could definitely be polished up a little but might provide a starting point for you.
Thanks!
September 25, 2013 at 1:45 am #67626museumelmhorn
ParticipantHi Barry,
o.k. will start there but where in which file to apply this hook? (Never worked with any hooks before – more a Designer)
and where in the files? beginning? or a specific line?Aaaaah just found the first file: views/list/content.php in the Events Calendar Basic
and found some others as well it works for the first event but then says:
I pasted it before the first php brackets
atal error: Cannot redeclare customize_tribe_schedule_format() (previously declared in /www/htdocs/w01087b6/elmshorn/wp-content/plugins/the-events-calendar/views/list/single-event.php:15) in /www/htdocs/w01087b6/elmshorn/wp-content/plugins/the-events-calendar/views/list/single-event.php on line 19what means redeclare?
thanks
Steph
September 25, 2013 at 5:43 am #67640Barry
MemberHi Steph, apologies for not being clearer: the theme’s functions.php file, or else the functions.php in a child theme (if appropriate in your case), are acceptable homes for this code.
what means redeclare?
It means you’ve added the same function (a piece of code) twice. Generally speaking you should add it only once.
Does that help?
September 26, 2013 at 12:16 am #67781museumelmhorn
ParticipantHi Barry,
thanks that works great.
It problably was obvious to put it in the functions.php no worth mentioning…
Now the only problem left is in the single-event the Details box where the date with beginning and end are shown. There needs to go an “Uhr” after the time as wellBeginn: 14. November 2013 17.00 Uhr
Ende: 14. November 2013 19.00 UhrHave you got a fix for that as well?
thanks so much
Steph
September 26, 2013 at 5:50 am #67803Barry
MemberHow about this?
September 28, 2013 at 2:58 am #68155museumelmhorn
ParticipantWorks like a charm 🙂
thanks a lot BarrySeptember 28, 2013 at 7:23 am #68162Barry
MemberOur pleasure 🙂
July 7, 2015 at 6:28 am #981171Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘SOLVED: Date Formatting Typographically correct for German’ is closed to new replies.
