• Resolved road88

    (@road88)


    PHP Version: 7.4.25
    Wordpress Version: 6.1.1
    Plugin Version: 8.38
    Is Pro User: NO
    Current Theme: altea
    Website address: https://www.altea-si.com`

    Hi,
    Nice plug-ins, but I fail to configure it in french (the po/mo FR versions are currently in the directory, but they seems not to be effective). Is there an option to change the strings to another language ?
    Thanks for your help.
    Regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Northern Beaches Websites

    (@northernbeacheswebsites)

    Hi @road88,

    Thanks for your enquiry. Is your site set to French?

    You can also do this with a custom filter which you could add to your themes functions.php file. This looks like this:

    add_filter( 'gettext', 'change_text_idea_push', 20, 3 );
    function change_text_idea_push( $translated_text, $text, $domain ) {
     
        if ( is_singular() ) {
     
            switch ( $translated_text ) {
     
                case 'Create Board' :
     
                    $translated_text = __( 'Something else', 'ideapush' );
                    break;
     
                case 'Most Votes' :
     
                    $translated_text = __( 'Something else', 'ideapush' );
                    break;
    
    			case 'Edit' :
    
    				$translated_text = __( 'HELP', 'ideapush' );
    				break;
    
    			case 'ago' :
    
    				$translated_text = __( 'SOMETHING', 'ideapush' );
    				break;
    
    			case '%s months' :
    
    				$translated_text = __( 'SOMETHING', 'ideapush' );
    				break;
    
    			case '%s month' :
    
    				$translated_text = __( 'SOMETHING', 'ideapush' );
    				break;
    	}
     
        }
     
        return $translated_text;
    }

    You just need to change the case and translated text to what it is you want to translate.

    Thanks,

    Thread Starter road88

    (@road88)

    Hi,

    thanks a lot for your help.
    Everything OK !
    Best regards.

    Plugin Author Northern Beaches Websites

    (@northernbeacheswebsites)

    Fantastic to hear ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change language’ is closed to new replies.