Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter putcrun

    (@putcrun)

    Meanwhile, I forgot to mention
    The file path I used for my translation:
    $mofile = WP_LANG_DIR . '/woocommerce/woocommerce-' . get_locale() . '.mo'

    Plugin Author Tim W

    (@timwhitlock)

    Yes, you can configure your bundle under the “Advanced” tab to use additional “Domain Paths”.

    See https://localise.biz/wordpress/plugin/manual/bundle-config#target

    As your path is outside the plugin root, you would have to enter “../../languages/woocommerce” (assuming that is correct for your system)

    Thread Starter putcrun

    (@putcrun)

    Hi Tim,
    Thanks for quick reply

    When I add to the “Domain path” like this:

    wp-content/languages/woocommerce

    Author row goes like this:

    plugins/woocommerce/wp-content/languages/woocommerce/woocommerce-<locale>.po

    Same results:

    Domain path:

    "wp-content/languages/woocommerce"

    Author row:

    plugins/woocommerce/"wp-content/languages/woocommerce"/woocommerce-<locale>.po

    • This reply was modified 9 years, 2 months ago by putcrun.
    • This reply was modified 9 years, 2 months ago by putcrun.
    • This reply was modified 9 years, 2 months ago by putcrun.
    Plugin Author Tim W

    (@timwhitlock)

    I showed you in my first reply how to add paths outside the plugin root.

    ../../languages/woocommerce

    Did you try that?

    Thread Starter putcrun

    (@putcrun)

    Hi Tim,
    Now it’s done, thanks
    Regards

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘WooCommerce custom file path’ is closed to new replies.