• I am using Favorites plugin, to allow my visitors to create a list of favorites, which they can then access whenever they want. In my site, I am using Polylang to translate my listings. Typically I can translate a string using the pll__() function.

    I would like to know in which file of your plugin, I need to add the pll__() function, in order to have my buttons strings translated to the languages I want. I know how to add the translated strings in Polylang, I just do not know which part of your code is responsible for reading my button string and showing it to the user.

    If you check the page I linked above, you will notice that the whole page is in French, except the text of your button, at the very bottom, which is in English (what I have entered in your settings), that’s what I need to translate to Greek and French.

    Any help would be greatly appreciated.

    Site: Latest WordPress, Listfy theme, FacetWP, wp-job-manager etc.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,
    did you find the solution ?
    Thanks
    Rémi

    • This reply was modified 7 years, 3 months ago by Hergé.

    Hi,
    If you add a file “wpml-config.xml” in plugin folder (/wp-content/plugins/favorites), with the code below inside:

    <wpml-config>
    	<admin-texts>
    		<key name='simplefavorites_display'>
    			<key name="buttontext" />
    			<key name="buttontextfavorited" />
    			<key name="clearfavorites" />
    			<key name="nofavorites" />
    			<key name="loadingindicator">
    				<key name="text" />
    			</key>	
    		</key>	
    	</admin-texts>
    </wpml-config>

    Thus, you could translate all you need at Polylang level.
    Best regards,
    Christophe.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Where to translate button text using Polylang’ is closed to new replies.