Title: WooCommerce custom file path
Last modified: March 3, 2017

---

# WooCommerce custom file path

 *  Resolved [putcrun](https://wordpress.org/support/users/putcrun/)
 * (@putcrun)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/woocommerce-custom-file-path/)
 * Hi,
    Many thanks for this great plugin.. I use custom file path to keep my woocommerce
   translation safe as explained in the following link: [https://docs.woocommerce.com/document/woocommerce-localization/](https://docs.woocommerce.com/document/woocommerce-localization/)
   But, I can’t see this file path when I want to add a new translation language
   file via Loco Translate Is it possible to specify a custom location for languages
   files? Regards
    -  This topic was modified 9 years, 5 months ago by [putcrun](https://wordpress.org/support/users/putcrun/).

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

 *  Thread Starter [putcrun](https://wordpress.org/support/users/putcrun/)
 * (@putcrun)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/woocommerce-custom-file-path/#post-8870029)
 * 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](https://wordpress.org/support/users/timwhitlock/)
 * (@timwhitlock)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/woocommerce-custom-file-path/#post-8870038)
 * 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](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](https://wordpress.org/support/users/putcrun/)
 * (@putcrun)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/woocommerce-custom-file-path/#post-8873792)
 * 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, 5 months ago by [putcrun](https://wordpress.org/support/users/putcrun/).
    -  This reply was modified 9 years, 5 months ago by [putcrun](https://wordpress.org/support/users/putcrun/).
    -  This reply was modified 9 years, 5 months ago by [putcrun](https://wordpress.org/support/users/putcrun/).
 *  Plugin Author [Tim W](https://wordpress.org/support/users/timwhitlock/)
 * (@timwhitlock)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/woocommerce-custom-file-path/#post-8874255)
 * I showed you in my first reply how to add paths outside the plugin root.
 * `../../languages/woocommerce`
 * Did you try that?
 *  Thread Starter [putcrun](https://wordpress.org/support/users/putcrun/)
 * (@putcrun)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/woocommerce-custom-file-path/#post-8875935)
 * 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.

 * ![](https://ps.w.org/loco-translate/assets/icon-256x256.png?rev=1000676)
 * [Loco Translate](https://wordpress.org/plugins/loco-translate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/loco-translate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/loco-translate/)
 * [Active Topics](https://wordpress.org/support/plugin/loco-translate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/loco-translate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/loco-translate/reviews/)

## Tags

 * [woocomerce](https://wordpress.org/support/topic-tag/woocomerce/)

 * 5 replies
 * 2 participants
 * Last reply from: [putcrun](https://wordpress.org/support/users/putcrun/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/woocommerce-custom-file-path/#post-8875935)
 * Status: resolved