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