Translation for empty car in inc/cart/class-cart.php not working

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #22156
    Ron Men
    Participant

    Hi WP Travel Team,

    in inc/cart/class-cart.php in function “cart_empty_message” isn’t translatable for now.
    To make it working I change the Source from:

    
    public function cart_empty_message() {
    	$url = get_post_type_archive_link( WP_TRAVEL_POST_TYPE );
    	echo ( __( sprintf( 'Your cart is empty please <a href="%s"> click here </a> to add trips.', $url ), 'wp-travel' ) );
    }
    

    to:

    
    public function cart_empty_message() {
    	$url = get_post_type_archive_link( WP_TRAVEL_POST_TYPE );
    	echo ( sprintf( __( 'Your cart is empty please <a href="%s"> click here </a> to add trips.', 'wp-travel' ), $url ) );
    }
    

    In this case we first get translation, if using multiple translations, and then we overwrite %s with URL to the list of travels.

    Regards
    RonMen

    #22163
    wensolutions
    Keymaster

    Hello @ronmen,

    The translation you have mentioned is the known issue and we will fix the issue and release the update soon.

    Hoping for your kind co-operation.

    Thank you.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘WP Travel’ is closed to new topics and replies.