• I want to translate the line
    “Comment by XYZ” to the German line “Kommentar von XYZ”.
    Okay, I found in file wp-comments.php the line with the word “by” – but the word “Comment” is not in the text (I think, it’s a variable):
    “<?php comment_type(); ?> by <?php comment_author_link() ?> “
    In which file (line-number) could I the word “Comment”?
    Thank you again!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Look in wp-config-extra.php …. I *think* that’s where it’s at.
    TG

    Thread Starter herby007

    (@herby007)

    Thank you for the answer – but there are only “smilies, weekdays and month names” …

    In the CVS, it’s in template-functions-comment.php, around line 32.

    In 1.0.2, it’s in template-functions.php, around line 1574 and 1603. Do a search in your text editor, there may be other instances.

    Thread Starter herby007

    (@herby007)

    Cena: Yes – line 1695 – Thank you!!!

    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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘For translation: where can I find the word “Comme’ is closed to new replies.