mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 17:20:07 +00:00
Decouple strings where the singular and plural form are not just the same string with different numbers, but essentially two different strings.
This allows for using proper plural forms in languages with more than two forms, and also resolves string conflicts when the same string is present in both singular and plural form. fixes #28502. git-svn-id: https://develop.svn.wordpress.org/trunk@31941 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -23,8 +23,16 @@ _deprecated_file( sprintf( __( 'Theme without %1$s' ), basename(__FILE__) ), '3.
|
||||
<!-- You can start editing here. -->
|
||||
|
||||
<?php if ( have_comments() ) : ?>
|
||||
<h3 id="comments"><?php printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number() ),
|
||||
number_format_i18n( get_comments_number() ), '“' . get_the_title() . '”' ); ?></h3>
|
||||
<h3 id="comments">
|
||||
<?php
|
||||
if ( 1 == get_comments_number() ) {
|
||||
printf( 'One Response to %2$s', '“' . get_the_title() . '”' );
|
||||
} else {
|
||||
printf( _n( '%1$s Response to %2$s', '%1$s Responses to %2$s', get_comments_number() ),
|
||||
number_format_i18n( get_comments_number() ), '“' . get_the_title() . '”' );
|
||||
}
|
||||
?>
|
||||
</h3>
|
||||
|
||||
<div class="navigation">
|
||||
<div class="alignleft"><?php previous_comments_link() ?></div>
|
||||
|
||||
Reference in New Issue
Block a user