Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1141063
    Quantum
    Participant

    Hi,
    I have hunted around for a while but cant seem to find a straightforward answer on how to do this:
    I have edited some words in the woo-commerce language file and when overriding the default files it works fine. However i would like to put them in the child theme so when woo-commerce updated it doesn’t get overridden. How do i do this?
    I have taken these files: wp-content/languages/plugins/woocommerce-en_AU.mo (and the .po) and put them in here: wp-content/themes/x-child/languages/woocommerce-en_AU.mo.
    It isn’t working so what do i need to do?

    #1141080
    Christopher
    Moderator

    Hi there,

    Please check this thread : https://community.theme.co/forums/topic/woocommerce-translation/#post-371084

    Hope it helps.

    #1141174
    Quantum
    Participant

    Thanks but that is only for the main language files. I only need the woocommerce files with different wording so what is the straightforward way to do this?
    Surely there is a way to tell x theme to read woocommerce from the wp-content/themes/x-child/languages/woocommerce-en_AU.mo. file?

    #1141310
    Rad
    Moderator

    Hi there,

    X theme templates use __x__ text domain. If you wish to enable Woocommerce textdomain then you’ll have to change them directly within the templates.

    1. Copy this folder /x/woocommerce/ to your child theme (eg. /x-child/woocommerce/)

    2. Edit all files within folder and replace all instances of __x__ to woocommerce

    Example

    __( 'string', '__x__' ) to __( 'string', 'woocommerce' )

    3. You may need to edit x\framework\functions\global\plugins\woocommerce.php as well and replace textdomain when needed.

    Hope this helps.

  • <script> jQuery(function($){ $("#no-reply-1141063 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>