• Resolved Watbube

    (@watbube)


    Hello wp community
    I tried to do the following

    “Occasionally, users may not want to use the word” events “in their calendar, and instead want to use something like” meetings. “With events 3.10 and beyond, you can do that with a brief snippet.

    The snippet below will change the “event” words, and “events” on your site. Copy the code into your theme’s function.php file. Be sure to match the change to the “meeting” and “meetings” the words that you want to use instead. ”

    <?php
    // Singular
    add_filter( ‘tribe_event_label_singular’, ‘event_display_name’ );
    function event_display_name() {
    return ‘Meeting’;
    }
    add_filter( ‘tribe_event_label_singular_lowercase’, ‘event_display_name_lowercase’ );
    function event_display_name_lowercase() {
    return ‘meeting’;
    }
    // Plural
    add_filter( ‘tribe_event_label_plural’, ‘event_display_name_plural’ );
    function event_display_name_plural() {
    return ‘Meetings’;
    }
    add_filter( ‘tribe_event_label_plural_lowercase’, ‘event_display_name_plural_lowercase’ );
    function event_display_name_plural_lowercase() {
    return ‘meetings’;
    }`

    Now I have the PHP Coad inserted into my topic-related function.php

    Then I got an error message and always in the 4 line of the newly inserted php Coad ( function event_display_name() {
    )

    Does someone have a solution for me?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Clifford Paulick

    (@cliffpaulick)

    Hi Watbube.

    Please reference https://theeventscalendar.com/knowledgebase/changing-the-word-events-to-something-else/ and let us know if that worked well for you.

    Thanks!

    mpfenninger

    (@mpfenninger)

    I have changed some wordings in german, but after an update of the calendar event the changes are gone. For example the word “Eintritt” should permanently be “Kurskosten”. How can I configure that?

    thank you ,michael

    GeoffBel

    (@geoffbel)

    Hey @mpfenninger,

    We are sorry to hear that your changes are gone.

    To prevent this from happening, you might want to store your language files in the /wp-content/languages/plugins/ folder.

    This will prevent your changes from being overwritten with updates.
    But that also means that you will need to manually update your po/mo files from the pot file everytime there is a plugin update.

    If you want to save some time and a lot of translation disappear, you can always download the very latest language files from here: https://translations.theeventscalendar.com/projects

    Let me know if that helps.

    Have a great day!

    Geoff B.

    Hey there! This thread has been inactive for a while so we’re going to go ahead and mark it Resolved. Please feel free to open a new thread if any other questions come up and we’d be happy to help. ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Changing the word ‘events’ to something else Php Schnipsel’ is closed to new replies.