Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi Ken,

    Im not too sure what you mean exactly, what are you trying to accomplish?

    Thread Starter Ken Nguyen

    (@kendy73)

    Hi, Stephan

    I mean, when I override a WooCommerce template, some default strings have text-domain is woocommerce, should I change the text-domain with my theme text-domain?

    To be honest with you I have no idea what you talking about, sorry. What template are you using? Can you maybe give me screenshot to give better understanding?

    Thread Starter Ken Nguyen

    (@kendy73)

    Hi Stephan,

    Please take a look at this https://screenshot.net/vqreiqn

    I want keep the Related Product string, but how about change text-domain woocommerce to my-theme-textdomain. Should I do it?

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Change it to your theme textdomain, since its included with your theme IMO.

    Thread Starter Ken Nguyen

    (@kendy73)

    Hi Mike

    Thank you!

    ??

    I think if you change it to your child-theme textdomain you have to include translations for that strings as well in your child theme. That does not sound logical to me if your are happy with using the translations from WooCommerce itself. WooCommerce registered the ‘woocommerce’ textdomain, so keeping this textdomain in your own woocommerce template files in your childtheme means these strings will use the main WooCommerce translation files.

    Please correct me if I’m wrong…

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Text-domain in overriding template files’ is closed to new replies.