• Resolved vs999

    (@vs999)


    Hello I need to change the text label at the checkout, I found this code in your old topic:

    function wc_billing_field_strings( $translated_text, $text, $domain ) {
    switch ( $translated_text ) {
    case ‘Billing details’ :
    $translated_text = __( ‘Info’, ‘woocommerce’ );
    break;
    }
    return $translated_text;
    }

    But it only works when I set WP in English language if I set WP in Italian language it won’t work.

    Could you help me?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hi @vs999,

    You can translate text within themes and plugins for separate languages in WordPress by using a free translation plugin like Loco Translate.

    This documentation below from WooCommerce.com describes translating WooCommerce in more detail.

    https://docs.woocommerce.com/document/woocommerce-localization/

    Thread Starter vs999

    (@vs999)

    Hi, thanks for the reply.
    I don’t need to translate that label i need to be able to customize it.
    That’s why I added the that code in my functions.php, and I was wondering why it works only in English WP.

    Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    You can use Loco Translate to change the text in your sites own languages. This will allow you to find a text phrase for both the English and Italian languages and change that for both of those.

    Thread Starter vs999

    (@vs999)

    Ok, Thanks.
    I decide to hide the label with CSS and I used Elementor for replace it.
    Thanks for the help. ??

    • This reply was modified 4 years, 2 months ago by vs999.
    • This reply was modified 4 years, 2 months ago by vs999.
    Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hey @vs999,

    That’s great to hear you found a solution to this ??

    I’m going to mark this as resolved – if you have any further questions, you can reopen it again if you need be.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Change Text-Label in checkout for non english WP’ is closed to new replies.