The myTheme part was only a prefix to the function name. Many of the WordPress functions are globals, so for avoiding collisions, I add the theme or plugin name as a prefix to my functions name. Anyway, it’s just the function name, so you can use ‘myTheme_bbPressTranslate’ and it should work.
Finally, I quit trying bbPress translation and installed phpBB. Thanks for letting me know about that update, I’ll study it. Registering twice, for commenting my blog and posting on my forum, it’s a good way for losing users.
I’m not using buddyPress now, but I’m sure your other post will eventually become very useful for me. Thanks!
Put this code on your theme’s functions.php file:
function myTheme_bbPressTranslate(){
bbpress()->load_textdomain();
}
add_action('get_header','myTheme_bbPressTranslate');
That will make bbPress to reload language files before the theme’s header.php file shows. At this time, Polylang has already switched the language and bbPress appears translated.
That doesn’t fix the problem I was explaining, so, if you use bbPress with buddyPress, you will have that same issue. Tell us how it worked for you!