Event submission form: string "Use saved" not translated

Home Forums Calendar Products Community Events Event submission form: string "Use saved" not translated

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #905203
    Rafael
    Participant

    Hello support
    I’m using WP in German and the TEC plugins are automatically translated, except on the event submission form in the venue details section the string “Use saved” is not translated. How can I fix that?

    PS: I’ve checked the community plugin’s .pot file and the string “use saved” is not there.

    #905306
    Geoff
    Member

    Hi there Rafael, welcome back to the forums. šŸ™‚

    Yeah, we rely heavily on the community to help provide translations so it’s very possible that particular string has not been translated.

    One possible option is to use a filter to translate the text. For example, try adding this to your theme’sĀ functions.php file:

    add_filter( 'gettext', 'my_event_change_venue_label', 20, 3 );
    
      function my_event_change_venue_label( $translated_text, $text, $domain ) {
        if ( $translated_text == 'Use Saved Venue:' && $domain == 'tribe-events-calendar' ) {
          $translated_text = __( 'Your Translated Text Goes Here!', 'tribe-events-calendar' );
      }
      return $translated_text;
    }

    If that doesn’t work, I would suggest posting a thread in our Translations forum. The community is fairly active and might be able to help with an updated .pot file that includes the string.

    Cheers!
    Geoff

    #905680
    Rafael
    Participant

    Hi Geoff, yes, I’m back. šŸ™‚
    Thanks for your prompt response. Unfortunately the code didn’t work. Do you have another idea, or should I start a thread in the Translation forum as you suggested?

    #905738
    Geoff
    Member

    Hi there Rafael, thanks for following up!

    Shoot, I thought that snippet would do the trick. It seems to work on my local installation, but perhaps there’s something else blocking it on yours. Sorry about that.

    Yes, the next best alternative will be to work with the Translations community. Of course, you’re welcome to add the string to the .pot file yourself, but otherwise hopefully someone in the community would be happy to pitch in. šŸ™‚

    I’ll go ahead and close this thread since we seem to have hit your question, but please feel free to hit us up with a new thread if any other questions pop up. We’d be happy to help.

    Cheers!
    Geoff

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Event submission form: string "Use saved" not translated’ is closed to new replies.