Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Sorry I take sample code of .PO file, the real code in .POT file is as follow:

    #: templates/woocommerce/checkout/form-checkout.php:37
    msgctxt "Checkout: user timeline"
    msgid "Payment"
    msgstr ""
    
    #: templates/woocommerce/checkout/form-checkout.php:38
    msgctxt "Checkout: user timeline"
    msgid "Back to cart"
    msgstr ""

    Thanks for the answer, but I tried, but the $ labels payment and back_to_cart do not exist in the .POT, I added them in .POT using IDE Brackets, create the .PO and .MO, but it did not work.

    Code add to .POT file

    #: templates/woocommerce/checkout/form-checkout.php:37
    msgctxt "Checkout: user timeline"
    msgid "Payment"
    msgstr "Pago"
    
    #: templates/woocommerce/checkout/form-checkout.php:38
    msgctxt "Checkout: user timeline"
    msgid "Back to cart"
    msgstr "Volver al Carrito"

    neither using the plugin ” Loco Translate “, I finally had to change the texts directly in the code. While the plugin is updated, someone gives the correct instructions or I have enough time to continue with the analysis of this issue

    I Change in line 39 ‘Back to Cart’ by ‘Volver al Carrito’.

    'back_to_cart' => _x( 'Volver al Carrito', 'Frontend: button label', 'yith-woocommerce-multi-step-checkout' )

    And change line 125 ‘payment’ by ‘Informaci贸n de Pago’

    <h3 id="payment_heading"><?php _e( 'Informaci贸n de Pago', 'yith-woocommerce-multi-step-checkout' ); ?></h3>

    Archive “form-checkout.php”

    Line 30 (Translate issue with 2 last array items)

    $labels = apply_filters( 'yith_wcms_timeline_labels', array(
            'next'          => __( 'Next', 'yith-woocommerce-multi-step-checkout' ),
            'skip_login'    => __( 'Next', 'yith-woocommerce-multi-step-checkout' ),
            'prev'          => __( 'Previous', 'yith-woocommerce-multi-step-checkout' ),
            'login'         => _x( 'Login', 'Checkout: user timeline', 'yith-woocommerce-multi-step-checkout' ),
            'billing'       => _x( 'Billing', 'Checkout: user timeline', 'yith-woocommerce-multi-step-checkout' ),
            'shipping'      => _x( 'Shipping', 'Checkout: user timeline', 'yith-woocommerce-multi-step-checkout' ),
            'order'         => _x( 'Order Info', 'Checkout: user timeline', 'yith-woocommerce-multi-step-checkout' ),
            'payment'       => _x( 'Payment Info', 'Checkout: user timeline', 'yith-woocommerce-multi-step-checkout' ), 
            'back_to_cart'  => _x( 'Back to cart', 'Frontend: button label', 'yith-woocommerce-multi-step-checkout' )
        )
    );

    Line 125

    <h3 id="payment_heading"><?php _e( 'Payment', 'yith-woocommerce-multi-step-checkout' ); ?></h3>

    Line 138

    <a href="<?php echo wc_get_cart_url(); ?>" id="yith-wcms-back-to-cart-button" class="<?php echo $button_class ?>"><?php echo $labels['back_to_cart'] ?></a>

    I will try to add these 2 labels on .po and .mo files

    Hi there,

    let me know any news about this issue, please.

    • This reply was modified 7 years, 6 months ago by giowebmaster.
Viewing 4 replies - 1 through 4 (of 4 total)