• Resolved ulicgn

    (@ulicgn)


    Hi,

    We can set specific slugs for event lists (instead of default /events) and single event pages (instead of /event/name-of-event… ) in the admin settings pages of TEC.
    However, since our site is german, we now have a slug named
    /veranstaltungsorte that is not configured anywhere. Doing a grep in the code base, the string is found in some *.mo translation files.

    This is undesired – we can’t have a mix of configured and automatically set up slugs but we want to configure them consistently – for all slugs, i.e. events, venues, organizers and whatever else may come up.
    How would we do that?
    Regards,

    Uli

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Darian

    (@d0153)

    Hi @ulicgn

    Thanks for reaching out. Let me help you with this one.

    To assist you more effectively, may I know the name of the plugin you are using for translations? Furthermore, it would be helpful if you could provide us with the link to your events page so that we can check the matter on our end.

    Thank you for your cooperation in advance.

    Plugin Support Darian

    (@d0153)

    Hi there,

    We haven’t heard from you in a while, so I’m going to mark this as resolved. Feel free to start a new thread if you have any more questions.

    Thread Starter ulicgn

    (@ulicgn)

    @d0153 I am awfully sorry I missed your response due to notifications being filtered out. The site is , currently, not public. Also, we do not have a specific translation plugin in place.

    The *.mo files I mentioned are in the events calendar directory so I figured that an automatic translation was happening.

    Meanwhile, I discovered this:

    https://theeventscalendar.com/extensions/change-labels-events-venues-organizers/

    Would you think that this is still usable, given that it is from 2017? Otherwise, are there filters for setting the venue singular/plural slugs like there are for setting the series slug (for which I found a filter hook ) ?

    REgards Uli

    Thread Starter ulicgn

    (@ulicgn)

    @d0153 nevermind – I looked into the Extensions source code and found the filters to use.

    For those finding this thread later: there are filters for venue, organizer and event labels, and if you dont need a gui for setting the slugs, pick one of the filters, and write your desired string into the return “whatever” string. Otherwise the extension may help.

                add_filter( 'tribe_event_label_singular', function ($label) { return ""; } );
                add_filter( 'tribe_event_label_singular_lowercase', function ($label) { return ""; } );
                add_filter( 'tribe_event_label_plural', function ($label) { return ""; } );
                add_filter( 'tribe_event_label_plural_lowercase', function ($label) { return ""; } );
    
                // Venues.
                add_filter( 'tribe_venue_label_singular', function ($label) { return ""; } );
                add_filter( 'tribe_venue_label_singular_lowercase', function ($label) { return ""; } );
                add_filter( 'tribe_venue_label_plural', function ($label) { return ""; } );
                add_filter( 'tribe_venue_label_plural_lowercase', function ($label) { return ""; } );
    
                // Organizers.
                add_filter( 'tribe_organizer_label_singular', function ($label) { return ""; } );
                add_filter( 'tribe_organizer_label_singular_lowercase', function ($label) { return ""; } );
                add_filter( 'tribe_organizer_label_plural', function ($label) { return ""; } );
                add_filter( 'tribe_organizer_label_plural_lowercase', function ($label) { return ""; } );
    Plugin Support Darian

    (@d0153)

    Hi @ulicgn

    It’s great to hear that you were able to find a workaround for the issue at hand. I sincerely appreciate you sharing your solution with us and I’m certain that it will prove to be beneficial to others who may encounter a similar challenge.

    If you have a moment to review, it would be greatly appreciated.

    https://www.ads-software.com/support/plugin/the-events-calendar/reviews/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Customizing ALL slugs – how?’ is closed to new replies.