Plugin Author
Chouby
(@chouby)
I am sorry to disappoint you, but support of BuddyPress is far out of my scope for the moment. It is pure luck if something works. I have to make choices and prefer to go on working on WP core functionalities that Polylang does not support yet (media for example). I hope you will understand my point.
I’m facing the same problem. It’s seems that buddypress is too early to load textdomain when polylang is active.
[filter] override_load_textdomain
> Polylang break loading all the mofiles
[action] plugins_loaded
> buddypress register its nav_itens. In this point bp already use __() and _e() functions to name its components, but no mofile was loaded yet
[action] wp
> load mofiles, only since this point the translate will work. But it’s too later to translate most part of buddypress.
I’m looking a way to fix it. Any idea?
I changed this line on bp-core.php
from
add_action( 'bp_loaded', 'bp_setup_nav', 8 );
to
add_action( 'wp', 'bp_setup_nav', 80 );
I’m trying this for while. Let’s see if it breaks something.
Chouby, of course I want to thank you for the great plugin. I understand that your priorities for polylang lie elsewhere than buddypress-compatibility.
However, can you maybe give me a possible set-up how I can integrate polylang in buddypress by myself? I do not get it done.
Thank you very much!
Plugin Author
Chouby
(@chouby)
Sorry. I don’t know Buddypress at all. So I have no clue of what has to be done.
Thank you for your very quick response.
Instead of the lang value in the page-URL or the polylang-cookie, I would like to set the language on a page in a different way by using a function in the init.
Chouby, do you know a possibility? Can I manipulate polylang by a filter or function in the init?
Hi @carlla I saw your post about hiding wp-login, do you have any update about this matter?