Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: BBpress 2.6.1 translations issue

@robin-w

Moderator

this is because 2.6 has changed some wording and context, and the new translations have not been made yet

to fix the above either use this

add_filter(  'gettext',  'rew_bbpress_translate', 20 , 3  );
add_filter(  'ngettext',  'rew_bbpress_translate' , 20 , 3 );

function rew_bbpress_translate( $translated, $text, $domain ) {
	if ($domain == 'bbpress') {
     $words = array(
                        
                        '%s day' => '%s jour',
						'%s days' => '%s jours',
						'Last Post' => 'Dernier message',
             );
     $translated = str_replace(  array_keys($words),  $words,  $translated );
	}
     return $translated;
}

Put this in your child theme’s function file – or use

Code Snippets

or use the translations tab in my style pack plugin

bbp style pack

Skip to toolbar