Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jeroen Sormani

    (@sormano)

    Hi Kathy,

    I’ve posted a code snippet here: https://www.ads-software.com/support/topic/translate-47?replies=3
    which allows you to change the texts

    Hope that helps ??

    Jeroen

    That’s awesome but got a question.
    I am using (from the link above)

    add_filter( 'wppp_ppp_text', 'wppp_custom_text', 10, 2 );
    function wppp_custom_text( $text, $value ) {
    
    	return '%s';
    
    }

    So i am able to get only the number.

    But what about the -1 option “All of the products” In spanish it says “Todos los” should say only “Todos”

    WHen I can get rid of “los” to get only “All” or “Todos”??

    Thanks!!!

    Plugin Author Jeroen Sormani

    (@sormano)

    Hi,

    I think you should be able to do something like:

    add_filter( 'wppp_ppp_text', 'wppp_custom_text', 10, 2 );
    function wppp_custom_text( $text, $value ) {
    	if ( $value == '-1' ) {
    		return 'Todos'
    	}
    	return '%s';
    
    }

    (untested code)

    Cheers,
    Jeroen

    Jeroen. You are Da Man!!!!

    This is the final code:

    add_filter( 'wppp_ppp_text', 'wppp_custom_text', 10, 2 );
    function wppp_custom_text( $text, $value ) {
    	if($value=='-1'){
    		return 'Todos';
    	}
    	return '%s';
    }

    Awesome. Many Many thanks!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change dropdown to capital letter’ is closed to new replies.