How does Polylang pick up translatable strings from my custom theme files?
-
I have created a basic theme from scratch and I have wrapped all the translatable texts in the
__e()
function.I have installed the Polylang plugin to have the website translated into Spanish but after going their their documentations and reading about it, I have understood that
1. I need to change all my
_e()
functions topll_e()
functions2. Register every single string inside my php files using the pll_register_string() function, meaning if i 500 translatable strings in my theme, I have to repeat the same strings and pass them as parameters inside the
pll_register_string()
function as well 500 times so that Polylang can pick them up and display them on the fronted and on the backend under Languages>String translations.Is this how this is done or am I doing something very wrong?
Thank you
- The topic ‘How does Polylang pick up translatable strings from my custom theme files?’ is closed to new replies.