SOLVED: Date Formatting Typographically correct for German

Home Forums Calendar Products Events Calendar PRO SOLVED: Date Formatting Typographically correct for German

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #67228
    museumelmhorn
    Participant

    Hi 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.00

    NEED to BE State:
    3. November 2013 von 11.00–13.00 Uhr

    thanks for your help

    kind regards

    Steph

    #67523
    Barry
    Member

    Hi 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!

    #67626
    museumelmhorn
    Participant

    Hi 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 19

    what means redeclare?

    thanks

    Steph

    #67640
    Barry
    Member

    Hi 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?

    #67781
    museumelmhorn
    Participant

    Hi 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 well

    Beginn: 14. November 2013 17.00 Uhr
    Ende: 14. November 2013 19.00 Uhr

    Have you got a fix for that as well?

    thanks so much

    Steph

    #67803
    Barry
    Member

    How about this?

    #68155
    museumelmhorn
    Participant

    Works like a charm 🙂
    thanks a lot Barry

    #68162
    Barry
    Member

    Our pleasure 🙂

    #981171
    Support Droid
    Keymaster

    This 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.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘SOLVED: Date Formatting Typographically correct for German’ is closed to new replies.