Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to localize standard woocommerce widgets #830

Closed
EasyEl opened this issue Apr 29, 2020 · 4 comments
Closed

How to localize standard woocommerce widgets #830

EasyEl opened this issue Apr 29, 2020 · 4 comments

Comments

@EasyEl
Copy link

EasyEl commented Apr 29, 2020

Hey there,

I always struggle with standard widgets like this standard woocommerce product widget not translating product titles correctly (also happens in the order confirmation emails etc. but not as important).

Any idea on how to get those tiles translated?

Best,
Elmar

@EasyEl EasyEl closed this as completed Apr 29, 2020
@EasyEl
Copy link
Author

EasyEl commented Apr 29, 2020

Solution: I found out that the easiest way is to overwrite the template in a child theme and call __() in it.

@herrvigg
Copy link
Collaborator

herrvigg commented May 3, 2020

@EasyEl which template is it? Good if __() works as workaround but it would rather be a kind of temporary fix. Does this problem has something to do with #616 #755 ?

@herrvigg
Copy link
Collaborator

herrvigg commented May 3, 2020

Sorry i meant #755 which is about the WC widget, it could be related.

@EasyEl
Copy link
Author

EasyEl commented May 4, 2020

Yes, likely. I put a little pointer about templating for others in the related case. Not ideal but a quick fix. Widget was content-widget-product.php which displays products. The real issue is that some kind of caching seems to be going on. While I use caching systems (wp-fastest-cache + redis) the widget is excluded from it. Still it is getting cached and I don´t know why. So for now I disabled it.

Ill attach a few screenshots
Bildschirmfoto 2020-05-04 um 09 33 50
Bildschirmfoto 2020-05-04 um 09 34 14
Bildschirmfoto 2020-05-04 um 09 34 36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants