Plugin Author
Rik
(@betacore)
Hi Faster, you can edit the message in the Woo settings (admin.php?page=wc-settings). 🙂
When I edit the text in italian and I change the language of woocommerce admin, then I edit the english version of the text: it shows the same text in both language, so on the frontend it shows the same text in both language
Plugin Author
Rik
(@betacore)
Hm, that’s strange. I’m going to investigate this asap! Thanks for letting me know.
I’m not a programmer so I’m guessing… maybe this page can be useful:
https://wpml.org/documentation/support/language-configuration-files/
Plugin Author
Rik
(@betacore)
I will push a fixed version to the repo any minute now (doin’ some testing right now). The thing I’ve added is a checkbox for multilang support. This will make it just text instead of a field.
Now you can add text by using a translation plugin or translating it for everybody to use via the WP polyglot page.
Plugin Author
Rik
(@betacore)
Thanks Rik!!
So, If I need to change the original english text, then I need to edit the .po file: I’m right?
In my case i need to specify a different message because there are different rules about age.
Just to you know, my version of the text is that:
“The user declares to be of age according to the legislation applicable to the latter. The user also declares that whoever receives the alcoholic product will be of age according to the legislation applicable to it.”
It’s enough generic to be good for any law about age
(sorry for my bad english, I hope you understand anyway ;-))
Plugin Author
Rik
(@betacore)
Yes, that is the case. Now you can use a plugin like https://wordpress.org/plugins/loco-translate/ to translate sentences within the plugin. If you are for instance using multiple languages on your website you can edit this on a per language basis if you check the box “multilang support”.
hi Rik
Loco translate helps me to translate the admin interfsace texts of the plugin but not the custom text in woocommerce preferences…
I’ve to say that I found the solution! 🙂
I’ve created a xml file with this inside:
<wpml-config>
<admin-texts>
<key name="woocommerce_betawooage_checkboxemessage" />
<key name="woocommerce_betawooage_failuremessage" />
</admin-texts>
</wpml-config>
Thanks to this now I can translate correctly with WPML via the “strings translation” section (in the woocommerce preferences I set the first language, then I create the translation in english or other languages in the strings translation page of WPML plugin)
Again, thanks a lot for your plugin!
Plugin Author
Rik
(@betacore)
Oh that is awesome! Persistence is key! 🙂