allfadr

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: No possibility to translate certain parts of the theme. #38633
    allfadr
    Power User

    “The comment count you’re listing is not part of the form”
    Of course it isn’t. I’m not talking about the comments form any more: i understand now it’s not something a theme controls.
    I’m talking the comments section of a post. The theme controls its heading.

    I’m using Poedit. Bad choice?
    Poedit lists the ‘One comment’ string for translation, but not the ‘%1$s Comments’ string.

    in reply to: No possibility to translate certain parts of the theme. #38621
    allfadr
    Power User

    (You mean that it’s WordPress’ business to provide translations for them?
    OK. I’m brute-force-translating things in the corresponding WP PHP files, as a (hopefully) temporary solution (there’s no WP in my language).)

    …But this now must be a bug, no? =)
    The heading of the comments section of a post is controlled by the theme.
    There’s this function in “theme-comments.php”:

    function parabola_number_comments() { ?>
    <h3 id=”comments-title”>
    <?php printf( _n( ‘One Comment’, ‘%1$s Comments’, get_comments_number(), ‘parabola’ ), number_format_i18n( get_comments_number() )); ?> </h3> <?php }

    There’s no string in the .po file that corresponds to the ‘%1$s Comments’ argument. So only the ‘One Comment’ string can be translated, and if there are >1 comments, the heading is in English.

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