Thread Starter
kwss
(@kwss)
First example:
“Earned %s”
How to change it to “Earned text”
Hi there,
Sorry for the long delay!
Since the %s is dynamic, and is replaced by the points label, loco translate cannot translate it.
If you simply need to change the label to something else, you can do so within the settings: https://d.pr/i/xU0fA3
However, if you need to translate the label into multiple languages, you would need to do so manually by filtering the label.
In v1.4.1, we added 2 new filters that you can hook into within your theme
xt_woopr_plural_points_label
xt_woopr_singlular_points_label
With these filters, you can modify or translate the label manually.
Hope this helps
Btw, if this is too complicated, you can use this free plugin to visually and easily translate any string on your site, including dynamic strings:
https://ww.wp.xz.cn/plugins/translatepress-multilingual/
Cheers