Forums

Help for WHERE to translate.... (6 posts)

  1. hesleskaug
    Member
    Posted 2 years ago #

    Hello!

    This is a minor issue, but it's still an issue:)

    I have the recent/last comments widget in my sidebar. But it shows english text instead of norwegian that I tought I'd translated it to.

    It shows "usernmame" on "article" I want to translate "on"

    PICTURE:
    PIC

  2. henkholland
    Member
    Posted 2 years ago #

    Ok, here goes nothing. In wp-includes you find widget.php and on line 1402 it reads echo '<li class="recentcomments">' . sprintf(__('%1$s on %2$s'), get_comment_author_link(), '<a href="' . clean_url( get_comment_link($comment->comment_ID) ) . '">' . get_the_title($comment->comment_post_ID) . '</a>') . '</li>';

    You see the word "on" there, i think changing that one should do, but: this sort of changes will get lost after an update of the WP files unless you remember to save this file first and compare with the new one because it could have needed or usefull changes.

  3. hesleskaug
    Member
    Posted 2 years ago #

    I searched all over the widgets.php fil, but could not find there either. But thanks for the suggestion!

  4. henkholland
    Member
    Posted 2 years ago #

    So then your widget.php is different?
    I see it here: sprintf(__('%1$s on %2$s'),

  5. hesleskaug
    Member
    Posted 2 years ago #

    Hmm.... Maybe it's different in 2.8.1?

    Only thing i get up is 'before_widget' => '<li id="%1$s" class="widget %2$s">

    Thanks again for helping a newbee :)

  6. henkholland
    Member
    Posted 2 years ago #

    hmm, I am on holiday and still not using 2.8.1.
    Try finding the class declaration widget in your style.css ; either with a # or a . Or is there a widget.css somewhere.

Topic Closed

This topic has been closed to new replies.

About this Topic