mvasicm (@mvasicm)

Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)

  • mvasicm
    Participant

    @mvasicm

    Im doing everything exactly according to your advice, but it still doesnt work. If you have a minute and take a look you will be the best.
    Thanks


    mvasicm
    Participant

    @mvasicm

    Am I right that I should put this code into functions.php file in my theme right?

    Im still getting english version.

    error message


    mvasicm
    Participant

    @mvasicm

    I changed syntax and the code is ok, but nothing happen on the page.

    //This function changes the text wherever it is quoted
    function change_translate_text( $translated_text ) {
    if ( $translated_text == “ERROR: Your topic needs a title.” ) {
    $translated_text = “CHYBA: Vaše téma musí mít název.”;
    }
    return $translated_text;
    }
    add_filter( ‘gettext’, ‘change_translate_text’, 20 );

    ?>


    mvasicm
    Participant

    @mvasicm

    Hello Robin,

    thanks for quick response.

    I tried to add manually into .po file, but it doesnt work I dont know why…

    #~ msgid “ERROR: Your topic needs a title.”
    #~ msgstr “CHYBA: Vaše téma musí mít název.”

    Then I tried your way, function file, but there seems to be error in your code. It says:

    Parse error: syntax error, unexpected ‘:’ in /data/web/virtuals/82697/virtual/www/domains/investplanet.cz/wp-content/themes/sahifa/functions.php on line 139

Viewing 4 replies - 1 through 4 (of 4 total)