Home Forums Basel support forum Translation for Category search missing after update

Translation for Category search missing after update

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #128464

    taohi01
    Participant

    Hi there,
    after updating the theme:
    1.The translation for “product search” does not show up on the Version 4.8 anymore. It is only available in english on the frontend.
    2.Using gtranslate the frase “product search” will not be translated as the rest. This happens already on the actual installes version 4.7

    Best regards

    Klaus

    Attachments:
    You must be logged in to view attached files.
    #128494

    taohi01
    Participant

    Moving the files as suggested, did not resolve tehe issue…

    Best regards

    Klaus

    #128506

    Hello,

    Yes, we see the problem. We need more time to investigate the reason and fixing that. Now we are working on the issue we shall contact you as soon as we have the solution.

    Best Regards

    #128828

    Hello,

    Please follow the steps to get the fix:

    1. Please upload the file from this link: https://drive.google.com/file/d/17pRyCpJdReyl_wWyoTduwTUoQQqLkvGT/view?usp=sharing

    2. Upload it into this folder deleting the previous one wp-content\themes\basel\languages\basel.pot

    3. Find this file wp-content\themes\basel\inc\template-tags.php and replace the code shown on the screen: http://prntscr.com/o2s9ji

    basel_header_block_search_extended()
    
    switch ( $search_post_type ) {
    	case 'product':
    		$placeholder = esc_attr_x( 'Search for products', 'basel' );
    		$description = esc_html__( 'Start typing to see products you are looking for.', 'basel' );
    	break;
    
    	case 'portfolio':
    		$placeholder = esc_attr_x( 'Search for projects', 'basel' );
    		$description = esc_html__( 'Start typing to see projects you are looking for.', 'basel' );
    	break;
    
    	default:
    		$placeholder = esc_attr_x( 'Search for posts', 'basel' );
    		$description = esc_html__( 'Start typing to see posts you are looking for.', 'basel' );
    	break;
    }
    
    switch ( $search_post_type ) {
    	case 'product':
    		$placeholder = esc_attr_x( 'Search for products', 'placeholder', 'basel' );
    		$description = esc_html__( 'Start typing to see products you are looking for.', 'basel' );
    	break;
    
    	case 'portfolio':
    		$placeholder = esc_attr_x( 'Search for projects', 'placeholder', 'basel' );
    		$description = esc_html__( 'Start typing to see projects you are looking for.', 'basel' );
    	break;
    
    	default:
    		$placeholder = esc_attr_x( 'Search for posts', 'placeholder', 'basel' );
    		$description = esc_html__( 'Start typing to see posts you are looking for.', 'basel' );
    	break;
    }

    Synchronize the translations.

    Best Regards

Viewing 4 posts - 1 through 4 (of 4 total)