Skip to:
Content
Pages
Categories
Search
Top
Bottom

A page for entering your own translated words in the forum


  • Danishsard
    Participant

    @danishsard

    Many pages with bbpress forums cannot use their national texts because there is no accepted translation. In the forum settings there should be assumptions where you can enter the forum entries yourself, for example: new topic, reply, newest, etc.

    Also, there should be an option to pay out these beams with a description of how many votes are on a given topic (WHO’S WHOM FOR WHOM), and how many posts are in the topic and who last gave, it should also be to choose whether you want to see it.

    My site in Polish but is displayed in large numbers in English language because there is no transaction that awaits for years to be approved https://infomiasto.eu/forum/tematy/rozmowy/ so you would write the right words yourself.

Viewing 1 replies (of 1 total)

  • Robin W
    Moderator

    @robin-w

    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

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar