Translating "View page »"

  • Anonymous

    #6584

    Hi!

    I’m having problem changing this text. I tired to follow the instructions on this topic , but apparently it did not work. Should I translate the whole theme then, following what is said here . I’ve done my research the best that I could.

    Thank you all in advance!

    Asso-Roone

    Prasanna SP

    #34952

    Try this,

    function graphene_filter_gettext( $translated, $original, $domain ) {
    $strings = array(
    'View page »' => 'Here goes your translated string',
    );
    if ( ! empty( $strings[$original] ) ) {
    $translations = &get_translations_for_domain( $domain );
    $translated = $translations->translate( $strings[$original] );
    }
    return $translated;
    }
    add_filter( 'gettext', 'graphene_filter_gettext', 10, 3 );

    » is actually »

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.