Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: A page for entering your own translated words in the forum

@robin-w

Moderator

this will let you change text if you need it – not as good as having an ‘accepted translation’ but better than English

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

function brexit_translate( $translated, $text, $domain ) {
	if ($domain == 'bbpress') {
     $words = array(
                        
                        'Topic' => 'New-word',
                         'topic' => 'new-word',
         );
     $translated = str_replace(  array_keys($words),  $words,  $translated );
	}
     return $translated;
}

just change what you need and add to in the middle section

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

Code Snippets

Skip to toolbar