• CVS version:
    wp-includes/template-functions-comment.php has these harcode texts:

    comments_number($zero='No Comments', $one='1 Comment', $more='% Comments', $number='')

    These texts (No Comments, 1 Comment, etc.) are into the code. (there are others “Comments” messages into the same wp-includes/template-functions-comment.php)
    ?can you move to the wp-comments.php file to be edited with the template?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Those will be abstracted into strings in a language file as part of the localization project.

    ysidoro, those are just the default strings. You can pass anything you want in any language as the arguments to comments_number().

    Thread Starter ysidoro

    (@ysidoro)

    Yes, you are rigth allusion. I have just modified the template to:

    <h2 id="comments"><?php comments_number($zero='Sin Comentarios', $one='1 Comentario', $more='% Comentarios', $number=''); ?>

    and works ok.
    Perhaps you can include this to the template wp-comments.php

    Thread Starter ysidoro

    (@ysidoro)

    I also modify wp-comments.php to include arguments to comment_type text:

    <cite><?php comment_type($commenttxt = 'Comentario', $trackbacktxt = 'Trackback', $pingbacktxt = 'Pingback'); ?>

    (perhaps would be very clear if you include the arguments into the default template) Thank you.

    There a a few other hard-coded english words, like some title attributes in anchor tags. For example the title saying “permalinks”, and the title for the categories saying “click to see all post in ___ (category)”.
    These are inside the functions (functions.php, if i recall), and are my main concern about localization. Those are the hard ones for the average user to dig.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Harcoded texts’ is closed to new replies.