Skip to:
Content
Pages
Categories
Search
Top
Bottom

Cant’ translate some words in French

  • @vinnysud

    Participant

    Hey, sorry if it has been answered before…
    The are some words that don’t seem to be translated in French like “at” or “by” in the forum main page.
    Therefore i tried to translate them with loco translate, but the translation is written as 100% done, and I can’t find any correspondance in the translation file.

    issue

    What can I do ?

    Thanks a lot!

Viewing 7 replies - 1 through 7 (of 7 total)
  • @vinnysud

    Participant

    OK, I found the “at” parameter which was controlled by the bbpress style pack plugin.
    Still investigating for the “by”

    @robin-w

    Moderator

    you can always us this in your function file

    //This function changes the text wherever it is quoted
    function change_translate_text( $translated_text ) {
    	if ( $translated_text == 'old text' ) {
    	$translated_text = 'new text';
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'change_translate_text', 20 );

    so you would have

    //This function changes the text wherever it is quoted
    function change_translate_text( $translated_text ) {
    	if ( $translated_text == 'by' ) {
    	$translated_text = 'par';
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'change_translate_text', 20 );

    @vinnysud

    Participant

    Thanks for the workaround 😉
    In which file should I add this (so I don’t break anything) ?

    @robin-w

    Moderator

    put it in your theme’s functions file

    wp-content/themes/[your theme name]/functions.php

    @vinnysud

    Participant

    Sadly it does not seem to affect anything : I paste the function, and flush the dache (just to make sure, I still have the “by”

    @robin-w

    Moderator

    can you post an example of the exact text that it is appearing in

    @vinnysud

    Participant

    Solved by my template provider (with a custom css)

    .bbp-topic-freshness-author:before {
    content: ‘par ‘ !important;
    }

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