• When changing language, the attribute is not translated. See pictures:

    In the Netherlands it is ok:
    NL-OK

    In English not ok:
    EN not ok

    If I deactivate the “WooCommerce Show Attributes” plugin, the translation goes well.

    I hope you can solve this. Thanks in advance.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author isabel104

    (@isabel104)

    Thank you for the screenshots. Please allow me to ask a few questions so that I can investigate this issue.

    Are you using a translation plugin? Are you using WPML? For example, how did you get the attribute values translated in both Dutch and English? (The attribute values such as “Read tire” and “Trailer and Truck”)

    Thread Starter ns2006

    (@ns2006)

    I actually use WPML.

    Product attributes are translated with WPML.

    When deactivating the plugin they are well translated. See pictures.

    NL:
    NL OK

    EN:
    EN

    Thread Starter ns2006

    (@ns2006)

    Unfortunately, I still have no solution here. Can you help me?

    Thread Starter ns2006

    (@ns2006)

    ?

    Thread Starter ns2006

    (@ns2006)

    Can someone help me?

    I found the following on https://wpml.org/forums/topic/can-not-transalte-attribute-on-product-page/

    The following code needs to be added right after the line 156 in wp-content/plugins/woocommerce-show-attributes/woocommerce-show-attributes.php

    // WPML translation support
    if ( defined( 'ICL_LANGUAGE_CODE' ) ) {
        $translation = apply_filters( 'wpml_translate_single_string', $tax_label, 'WordPress', 'taxonomy singular name: '. $tax_label );
        $tax_label = ( ! empty( $translation ) ) ? $translation : $tax_label;
    }

    It worked for me

    Good luck

    Mustmedia`s code snippet worked like a charm for me.
    Maybe this should be added to the plugin, so we are updatesafe. ??

    Thread Starter ns2006

    (@ns2006)

    Thank you very much! This works well!

    But at the next update, it no longer works. Is there a solution here?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Attribute is not translated’ is closed to new replies.