ok. First I added this code to my child theme’s functions.php file:
load_plugin_textdomain( ‘buddypress’, get_template_directory().’/languages’ );
this are the url of my files that just verified with loco plugin and downloaded to these folders:
wp-content/themes/obgwp/languages/plugins/buddypress-en_US.po
wp-content/themes/obgwp/languages/plugins/buddypress-en_US.mo
and
wp-content/themes/obgwp/languages/buddypress-en_US.po
wp-content/themes/obgwp/languages/buddypress-en_US.mo
after that added it to my parent’s functions.php theme:
wp-content/languages/plugins/buddypress-en_US.po
wp-content/languages/plugins/buddypress-en_US.mo
Then I added this code to my child theme’s functions.php file too, did I needed to modify something here? I didn’t get any paths:
function debug_load_textdomain( $domain , $mofile ){
echo “Trying “,$domain,” at “,$mofile,”
\n”;
}
add_action(‘load_textdomain’,’debug_load_textdomain’);
and refreshed my site, this is what I got:
Warning: Missing argument 2 for debug_load_textdomain() in /home1/salt/public_html/openboardgame.com/members-site/wp-content/themes/OBGWP/functions.php on line 28
Trying Divi at
Warning: Missing argument 2 for debug_load_textdomain() in /home1/salt/public_html/openboardgame.com/members-site/wp-content/themes/OBGWP/functions.php on line 28
Trying bbpress at
Warning: Missing argument 2 for debug_load_textdomain() in /home1/salt/public_html/openboardgame.com/members-site/wp-content/themes/OBGWP/functions.php on line 28
Trying bbpress at
Warning: Missing argument 2 for debug_load_textdomain() in /home1/salt/public_html/openboardgame.com/members-site/wp-content/themes/OBGWP/functions.php on line 28
Trying bbpress at
Warning: Missing argument 2 for debug_load_textdomain() in /home1/salt/public_html/openboardgame.com/members-site/wp-content/themes/OBGWP/functions.php on line 28
Trying bbpress at
Warning: Missing argument 2 for debug_load_textdomain() in /home1/salt/public_html/openboardgame.com/members-site/wp-content/themes/OBGWP/functions.php on line 28
Trying rtmedia at
Warning: Missing argument 2 for debug_load_textdomain() in /home1/salt/public_html/openboardgame.com/members-site/wp-content/themes/OBGWP/functions.php on line 28
Trying rtmedia at
I don’t get a file path for any of them. Can you tell what is not working?
I got recommended to use a child theme generator plugin too, because maybe my child theme wasn’t properly created, but didn’t helped either.
I uploaded the site to test it there too with no luck. Maybe I can send you a user because its locked.
I really hope you can reply soon, I need to release this site today, don’t know what else to do.
Thanks!