Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • file: wp-includes/template-functions-comment.php
    line: 160
    in the function comment_type() the words “comment”, “track-back” and “ping-back” are echoed. So if you put the tranlation-function _e() around the text you get the right tranlated text at “Comment by…” Here is a snippet of it with the three minor changes at the “echo”s:

    function comment_type($commenttxt = 'Comment', $trackbacktxt
    = 'Trackback',
    $pi
    global $comment;
    if (preg_match('|<trackback />|', $comment->comment_content))
    echo _e($trackbacktxt);
    elseif (preg_match('|<pingback />|', $comment->comment_content))
    echo _e($pingbacktxt);
    else
    echo _e($commenttxt);
    }

    Best regards
    Otti

    Hi folks,
    I got similar problems after using permalinks. Everything works fine inspite of the links in the calendar. The archive-links in the calendar are constructed wrong and break up at the first “%”. For example in my calendar:
    href="https://www.ortegalink.com/blog/cl/%"
    (Could be studied at https://www.ortegalink.com/blog/ )
    Did anyone fix the construction of the URL in the calendar-code? My research only directed me to the ./wp-include/template-functions-general.php (or something like this). I could imagine, that the function get_archive_link() could be buggy with permalinks.
    I would appreciate if anyone could post one patch for this problem.
    Thanks and best regards
    Otti

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