Quantcast
Viewing all articles
Browse latest Browse all 11471

Nekomukuro on "[Plugin: Polylang] Function to get all translations of a string"

Hello,
I'm trying to modify a plugin I wrote so that it can work with Polylang, and I have added some user-defined strings to be translated, and that seems to work alright.
However, I'd like to do stuff with some of those translated strings in the plugin logic... long story short: I have a function where I need to retrieve all the translations of some specific user-defined string. I searched the documentation and only found pll__() which returns the translation for the current language... but I also need to retrieve the translation of that string for all the other languages too, and not only the current one.
Is this possible someway?

I hope this question hasn't been asked already, in that case I'm sorry, I tried to search but I had no luck.
Thanks in advance for any advice you can give me.

http://wordpress.org/extend/plugins/polylang/


Viewing all articles
Browse latest Browse all 11471

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>