Plugin Author
Chouby
(@chouby)
Hi!
I made a (very) quick test with Cherry Framework and the strings are loaded in the correct language.
Hi, thank you for your (absolutely) quick answer.
It appears that if i check ” The language is set from the directory name in pretty permalinks” instead to be set “by the content” it works ok. Still the content is in the correct language, which is strange.
Thanks once again.
Plugin Author
Chouby
(@chouby)
I see. Some plugins/themes are incompatible with the option “set the language by content”. The reason is that for doing so, Polylang defers translations loading and these plugins/themes preload strings much before they are displayed.
The plugin/theme expects:
* load translations
* store translations in an array
* display translations
And what happens when Polylang sets the language from content is:
* store (not translated) strings in an array
* load translations (deferred)
* display (not translated) strings from the array
So the plugin/theme conflicts with multilingual plugins offering the possibility to set the language from content. That’s one of the reason why Polylang provides the alternative to set the language from url.
Thanx once again, maybe you can add a line about this in the string documentation. Any way, your plugin is great. I have just sent a small donation 🙂