Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to overwrite Woocommerce translations

I'm using Woocommerce in a spanish WordPress website. There are two words that I'd like to change from Woocomerce spanish translation. I change them in the .po file (in wp-content/languages/plugins/) and it works, but whenever I upgrade the plugin and its translations, this file is overwritten and I loose my translations.

I've read the Woocommerce docs (section "Making your Localization upgrade safe"), but it just says where the .po file should be, and I'm respecting this.

Am I doing something wrong? Is there any way to overwrite these translations with mine, so they keep unchanged when I upgrade Woocommerce?

Thanks.

like image 284
mariogl Avatar asked Jun 17 '15 18:06

mariogl


2 Answers

"Making your Localization upgrade safe" section is correct, but it say nothing about filename - it must be with woocommerce- prefix, not just es_ES.mo.

So your solution is:

wp-content/languages/woocommerce/woocommerce-es_ES.mo

like image 56
Aleksey Deryagin Avatar answered Oct 13 '22 10:10

Aleksey Deryagin


In order to avoid overwriting, you should move your translations to /wp-content/languages/woocommerce/

like image 22
Pbinder Avatar answered Oct 13 '22 08:10

Pbinder