Title: Exclude does not work
Last modified: May 22, 2024

---

# Exclude does not work

 *  Resolved [senseis](https://wordpress.org/support/users/senseis/)
 * (@senseis)
 * [2 years ago](https://wordpress.org/support/topic/exclude-does-not-work-3/)
 * Hello,
 * My website has PDF Invoices & Packing Slips for WooCommerce (also a pro version)
   and I have translated the invoice with loco translate but it never really changed
   then I noticed that the website is using also a translatepress plugin for website
   pages translations and language switcher but the problem is that translatepress
   overrules loco translate and when I try to exclude the path to the PDF Invoices&
   Packing Slips for WooCommerce plugins it does not exclude them. I have tried 
   both with and without *
 * This is what I have in “Do not translate certain paths” with “Exclude Paths From
   Translation” window.
 * /wp-content/plugins/woocommerce-pdf-invoices-packing-slips/*
   /wp-content/plugins/
   woocommerce-pdf-ips-pro/*
 * ![](https://wordpress.org/6dd21483-884b-4a8b-b337-b8d991b302a9)

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

 *  Thread Starter [senseis](https://wordpress.org/support/users/senseis/)
 * (@senseis)
 * [2 years ago](https://wordpress.org/support/topic/exclude-does-not-work-3/#post-17774578)
 * Seems like “**Disable translation for gettext strings**” setting in debug does
   the thing but I am not sure if it’s the right way of fixing this?
 *  [Andrei](https://wordpress.org/support/users/andrei202/)
 * (@andrei202)
 * [2 years ago](https://wordpress.org/support/topic/exclude-does-not-work-3/#post-17785880)
 * Hey there,
 * Hello,
   ​Thank you for reaching out and providing detailed information about the
   issue you’re facing.​You’re correct in noting that the “Disable translation for
   gettext strings” setting can indeed influence the way translations are handled
   on your website. This setting is designed to exclude the gettext strings from
   being translated by TranslatePress. Therefore, by enabling it, you essentially
   allow other translation methods (like your Loco Translate plugin) to work without
   interference from TranslatePress.​However, this is not exactly a ‘fix’, rather
   it’s a way to allow both plugins to coexist without conflicting. If you are finding
   any specific strings that are not being translated correctly or any unexpected
   behavior even after enabling this setting, it would be great if you could provide
   us with more details (including screenshots if possible). We’d be happy to look
   in-depth into the issue and provide a more concrete solution.
 *  Thread Starter [senseis](https://wordpress.org/support/users/senseis/)
 * (@senseis)
 * [2 years ago](https://wordpress.org/support/topic/exclude-does-not-work-3/#post-17785919)
 * Well I did it in the most unpleasant way and literally wrote each string that
   I needed to exclude from TranslatePress in “Exclude Strings” and translated them
   with Loco Translate because TranslatePress does not offer to translate them individually
   in it’s “String Translation”. The strings are coming from PDF Invoices & Packing
   Slips for WooCommerce.

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

The topic ‘Exclude does not work’ is closed to new replies.

 * ![](https://ps.w.org/translatepress-multilingual/assets/icon.svg?rev=3166541)
 * [TranslatePress - Translate Multilingual sites with AI Translation](https://wordpress.org/plugins/translatepress-multilingual/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/translatepress-multilingual/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/translatepress-multilingual/)
 * [Active Topics](https://wordpress.org/support/plugin/translatepress-multilingual/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/translatepress-multilingual/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/translatepress-multilingual/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [senseis](https://wordpress.org/support/users/senseis/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/exclude-does-not-work-3/#post-17785919)
 * Status: resolved