Loco Translate & Woocommerce: Selection of translation files
-
I have a problem when using Loco Translate with WooCommerce, with having the translated files update-save in /wp-content/languages/plugins/.
WooCommerce has it’s translations in /wp-content/plugins/woocommerce/i18n/languages/
In this folder there are 2 .pot files, woocommerce.pot and woocommerce-admin.pot and po/mo files for each language.
On the Loco management page only one .pot file is shown, woocommerce.pot, none of the files for admin translations show up. That’s ok for me as I only need to change translations in the frontend.I copied the po and mo file of the language I want to translate to the global folder /wp-content/languages/plugins/, it is recognized by Loco and changes to the file are saved correctly through Loco.
But when viewing the site, translations are still loaded from the standard language file in WooCommerce plugins folder and not from the custom file in the global folder.
Only when I delete the original file from Woocommerce folder, the custom/global file gets loaded. But this would have to be done every time there comes an update for WooCommerce.
Is there any way to change this, so translations always get loaded from the global folder if they exist there?
Many thanks in advance!
PS all language folders and files involved are chmod 777
- The topic ‘Loco Translate & Woocommerce: Selection of translation files’ is closed to new replies.