• Resolved wlegut

    (@wlegut)


    Hello,
    I found a bug in your plugin. I am using Loco translate plugin for strings translation. When i translated string “General cost” (part of the costs listing next to add to cart button) the part “( price / day )” disappeard. I also think that I found a solution to this problem.

    Inside the file “mwb-bookings-for-woocommerce/common/class-mwb-bookings-for-woocommerce-common.php” there is a function named mbfw_booking_total_listing_single_page. Inside of this function there is an if condition like this: if( "General Cost" == $title). This condition should be changed. I belive that it should be something like: if( $title == __( 'General Cost', 'mwb-bookings-for-woocommerce' )).

    Am i right?

Viewing 1 replies (of 1 total)
  • Plugin Author WP Swings

    (@wpswings)

    Hello,

    Its not bug its a translation issues and second thing about your solution , there is no sense to use escape function in if condition , we use escape function whenever we have to store value in any variable or we have to print something

    But yes thanks for pointing out this translation issue we will fix it in our next version.

    Regards,

Viewing 1 replies (of 1 total)
  • The topic ‘“General Cost” translation leads to functionality bug’ is closed to new replies.