[Support request] Translation

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Translation

This topic contains 1 reply, has 2 voices, and was last updated by  Tom 2 weeks, 2 days ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9805

    Jan
    Participant

    Where can i translate “Leave a comment”. I cannot find it is not in te language file.

    #9809

    Tom
    Keymaster

    Hi there,

    Are you not seeing it in your language here?: https://translate.wordpress.org/projects/wp-plugins/wp-show-posts/

    If you want to do it manually, try this function:

    add_filter( 'gettext', function( $text ) {
        if ( 'Leave a comment' === $text ) {
            $text = 'Your custom text';
        }
    
        return $text;
    } );
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.