[Plugin: Polylang] Using pll_register_string and pll__e
-
Hellos,
I’m trying to translate some custom made strings. I am using the Twentyeleven theme.
I added
pll_register_string('Shopping cart', $shoppingcart);
to the functions.php. Then I tried to translate the string in the polylang menu. But for some reason I found the entry “Shopping cart” but it displayed no string. I typed the translations in to the fields and uploaded (the translations didn’t seem to have saved). After that I tried to call the string by using
pll__($shoppingcart)
in the header.php but to no avail.What am I doing wrong?
Thanks for assistance!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘[Plugin: Polylang] Using pll_register_string and pll__e’ is closed to new replies.