• Resolved Mr.Mirko

    (@depaoli)


    Dear all,

    is it possible to change the texts shown within the event submission form by configuration somewhere in the Events-Manager settings in WordPress?

    Or do I have to change them within the php-files or language-files?

    I made changes to /wp-content/languages/plugins/events-manager-de_DE.po but they don’t apply.

    Kind regards

Viewing 12 replies - 1 through 12 (of 12 total)
  • Did you also replace the events-manager-de_DE.po file in wp-content/languages/plugins? WordPress first looks there before loading the translation file in the plugin itself.

    Thread Starter Mr.Mirko

    (@depaoli)

    Dear Patrick,

    thanks for your quick reply.

    Yes it is that file you mention I replaced:
    /wp-content/languages/plugins/events-manager-de_DE.po

    Doesn’t work.

    You wrote “also”: is there any other location where this file is usually put?

    Kind regards

    Oh sorry ??
    There are two locations that should have the same file:

    wp-content/languages/plugins/events-manager-de_DE.po
    wp-content/plugins/events-manager/includes/langs/events-manager-de_DE.po

    Btw, it’s best to use Poedit to edit the files. https://poedit.net/

    Thread Starter Mr.Mirko

    (@depaoli)

    I also replaced wp-content/plugins/events-manager/includes/langs/events-manager-de_DE.po now but still no changes…

    Hello,

    Could We perhaps know which specific text are you trying to replace? A screenshot would help also.

    There are some text that can be changed directly on backend also. Events > Settings > Bookings > Customize Feedback Messages

    Thread Starter Mr.Mirko

    (@depaoli)

    Dear Tim,

    here is the link to the submission form containing the texts I’d like to change: https://bvsc.apps-1and1.net/veranstaltungen/veranstaltung-empfehlen

    Kind regards

    Thread Starter Mr.Mirko

    (@depaoli)

    @timrv

    Dear Tim,

    if you look at the event submission form on the page https://bvsc.apps-1and1.net/veranstaltungen/veranstaltung-empfehlen you’ll find a term “Titel der Veranstaltung. Beispiel: Geburtstagsparty” (meaning “Title of the event. Example: Birthdayparty).

    If you search within all language files you’ll find only 2 that contain the word “Geburtstagsparty”:

    wp-content/languages/plugins/events-manager-de_DE.po
    wp-content/plugins/events-manager/includes/langs/events-manager-de_DE.po

    I replaced serveral words like also the word “Geburtstagsparty” within both files but no changes apply, as you can see…

    Plugin Support angelo_nwl

    (@angelo_nwl)

    another way is something like this

    
    function translate_attribute_text( $translated_text, $text, $domain ) {
            switch ( $translated_text ) {
                case 'Attributes' :
                    $translated_text = __( 'Event\'s Attributes', 'events-manager' );
                    break;
            }
        return $translated_text;
    }
    add_filter( 'gettext', 'translate_attribute_text', 20, 3 );
    
    • This reply was modified 6 years ago by angelo_nwl.
    Thread Starter Mr.Mirko

    (@depaoli)

    Thanks Angelo for your reply.

    I think it would be the proper solution to find out, why the translation file doesn’t work right away, what do you think?

    Thread Starter Mr.Mirko

    (@depaoli)

    Hello again,

    I’ve made a whole new installation of WordPress (5.0.3) with a simple theme and no plugins except events-manager.

    I’ve made changes to the French and Italian language files but they also don’t apply.

    Has anyone tried to change the language and change the texts of the submission form for that specific language?

    Kind regards

    Thread Starter Mr.Mirko

    (@depaoli)

    Hello again,

    since the website I was talking about in the beginning has been going live in the meantime completely without Events-Manager anyone can check the problem on my testing-website I mentioned before: https://s644016482.online.de/event-submission

    Kind regards

    Hello,

    There was a time on me where the file I’m translating from wp-content/languages/plugins/events-manager-*.po is not the updated version, Thus the translation is not working. (Code probably moved few lines or was transferred to a file)

    Have you checked it the file from your wp-content/languages/plugins/events-manager-de_DE.po is an updated version? If you’re not using a WPML, have you tried using Loco Translate Plugin?

    When opening the .po file, What specific line is the one you’re translating to?
    Something like “#: classes/em-categories-taxonomy.php:61”

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Where do I change the texts shown within the event submission form’ is closed to new replies.