Viewing 15 replies - 1 through 15 (of 31 total)
  • Plugin Author Hyyan Abo Fakher

    (@hyyan)

    @lukablink activate the Shipping Classes Translations from plugin options page

    Thread Starter lukablink

    (@lukablink)

    Its activated. Still not working.

    The things that cannot be translated are shipping classes and payment methods.

    Plugin Author Hyyan Abo Fakher

    (@hyyan)

    Is polylang mangainge the shipping classes translations ? make sure in polylang settings page

    Thread Starter lukablink

    (@lukablink)

    Yes.

    As i said, everything is working exept shipping classes and payment methods.

    https://i59.tinypic.com/11lhao1.jpg
    https://i58.tinypic.com/14vso55.jpg

    Plugin Author Hyyan Abo Fakher

    (@hyyan)

    @lukablink I can see now thank for your valuable feedback

    Shipping Method names and Payment Methods names must be translated from polylang strings table , queued as feature request for next release.

    Thread Starter lukablink

    (@lukablink)

    Excellent.

    I hope it comes out soon.

    THX

    Hi Hyyan Abo Fakher,

    It’s any update on this subject for the next release?
    I’ve the same problem. When I’m with the other language selected once I try to proceed to the checkout the website turn for the default language checkout page. If I insist to force to the second language, everything appears translated but I’m unable to finish the order.

    So, this is solved with that update on the plugin? Can you tell when it will come out?

    Thank you so much.

    Hello, thanks again for this great plugin,

    same issue here, can you let us know if the update is still planned ?

    Thank you

    +1

    +1

    +1 for great plugin..

    In connection, payment instructions needs translation. for examle, if i enabled BACS as a checkout option, there is instruction that is saved within woocommerce settings.

    i notice that it’s hard to find where this is in the code to even to register it as a string translation. please make it so that instructions are translated or easily translated in the next release.

    +1 ??

    Hi,

    same problem here. Cart and Checkout are not translated.
    Is there a solution yet?

    Hi Hyyan,

    great work on this plugin. I think I mentioned before in other topics, but is never to often to thank you for sharing your work.

    In addition to Shipping Method names and Payment Methods names not being translated in Cart/Basket and Checkout pages, please be aware that when the Paypal method is selected, the translated Shipping Method name is passed to Paypal. Instead the Shipping Method name in the main WP language is passed.

    It’s any update on this subject for the next release?

    Cheers
    A

    Adding the below code to my child theme functions.php file solved my issues. Not sure if will work for you.

    /**
     * Fix Shipping method not translated by Woo_Poly
     */
    // In Cart and Checkout pages
    function tlc_translate_shipping_label( $label ) {
        return __( $label , 'woocommerce' );
    }
    add_filter( 'woocommerce_shipping_rate_label', 'tlc_translate_shipping_label', 10, 1 );
    
    // In My Accoutn page, Order Emails and Paypal request
    function tlc_translate_order_shipping_method( $implode, $instance ) {
    
        // Convert the imploded array again to an array that is easy to manipulate
        $shipping_methods = explode( ', ', $implode );
    
        // Array with translated shipping methods
        $translated = array();
    
        foreach ( $shipping_methods as $shipping ) {
    	// Polylang will take care of the translation
    	$translated[] = __( $shipping, 'woocommerce' );
        }
    
        // Implode array to string again
        $translated_implode = implode( ', ', $translated );
    
        return $translated_implode;
    };
    add_filter( 'woocommerce_order_shipping_method', 'tlc_translate_order_shipping_method', 10, 2 );
    
    /**
     * Fix Payment gateway and respective description not translated by Woo_Poly
     */
    function tlc_translate_payment_gateway_title( $title, $id ) {
        return __( $title , 'woocommerce' );
    }
    add_filter( 'woocommerce_gateway_title', 'tlc_translate_payment_gateway_title', 10, 2 );
    
    function tlc_translate_payment_gateway_description( $description, $id ) {
        return __( $description , 'woocommerce' );
    }
    add_filter( 'woocommerce_gateway_description', 'tlc_translate_payment_gateway_description', 10, 2 );
Viewing 15 replies - 1 through 15 (of 31 total)
  • The topic ‘Translating Shipping options and Payment options’ is closed to new replies.