Forum Replies Created
-
AuthorPosts
-
August 26th, 2016 at 21:10 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.August 26th, 2016 at 01:25 in reply to: No possibility to translate certain parts of the theme. #38621allfadr
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.
-
AuthorPosts