Add translation strings with polylang
-
hi, I need help! I have translated a real estate template called “freehold theme” with polylang and everything has gone quite well, the only problem is that there are two buttons that this template has by default in English and I am trying to use the polylang string translation to translate them, but this is not going well. The buttons I am referring to are “search” and “view listing” Following some instructions that i found in internet, i added the following strings in the functions.php of my theme:
pll_register_string (‘View listing’, ‘Ver más’); and pll_register_string (‘Search’, ‘Buscar’); after that the strings does appear correctly in the string translations panel to be translated to the languages I’m using on the site. But the problem is that the translation does not appear on the front of the website, nothing changes . As I see on the internet?I have also to add the call echo pll __ (‘Ver más’);? and echo pll __ (‘Buscar’); ?so that they appear properly translated,?but I don’t know where to add it exactly? . I don’t understand very well about strings and would be very grateful for any ?help. ThanksThe page I need help with: [log in to see the link]
- The topic ‘Add translation strings with polylang’ is closed to new replies.