Make WordPress Core

Ticket #44360: 44360.wp-includes_theme_compat.patch

File 44360.wp-includes_theme_compat.patch, 4.2 KB (added by marcomartins, 7 years ago)

Fix translators comments in wp-includes/theme-compat folder

  • wp-includes/theme-compat/comments.php

    From eff0c5ddd50698b41c87a40885bfedd8be58baae Mon Sep 17 00:00:00 2001
    From: Marco Martins <marcomartins@fimdalinha.com>
    Date: Thu, 14 Jun 2018 16:10:53 +0300
    Subject: [PATCH] 44360 - wp-includes/theme-compat
    
    ---
     wp-includes/theme-compat/comments.php |  8 +++++---
     wp-includes/theme-compat/sidebar.php  | 12 ++++++------
     2 files changed, 11 insertions(+), 9 deletions(-)
    
    diff --git a/wp-includes/theme-compat/comments.php b/wp-includes/theme-compat/comments.php
    index 0f2e901..9736ff7 100644
    a b if ( post_password_required() ) { ?> 
    3333        <h3 id="comments">
    3434                <?php
    3535                if ( 1 == get_comments_number() ) {
    36                         /* translators: %s: post title */
    37                         printf( __( 'One response to %s' ), '&#8220;' . get_the_title() . '&#8221;' );
     36                        printf(
     37                                /* translators: %s: post title */
     38                                __( 'One response to %s' ), '&#8220;' . get_the_title() . '&#8221;'
     39                        );
    3840                } else {
    39                         /* translators: 1: number of comments, 2: post title */
    4041                        printf(
     42                                /* translators: 1: number of comments, 2: post title */
    4143                                _n( '%1$s response to %2$s', '%1$s responses to %2$s', get_comments_number() ),
    4244                                number_format_i18n( get_comments_number() ), '&#8220;' . get_the_title() . '&#8221;'
    4345                        );
  • wp-includes/theme-compat/sidebar.php

    diff --git a/wp-includes/theme-compat/sidebar.php b/wp-includes/theme-compat/sidebar.php
    index 45ef03d..64b5bb5 100644
    a b _deprecated_file( 
    4141                        <?php elseif ( is_category() ) : /* If this is a category archive */ ?>
    4242                                <p>
    4343                                <?php
    44                                 /* translators: %s: category name */
    4544                                        printf(
     45                                                /* translators: %s is the category name */
    4646                                                __( 'You are currently browsing the archives for the %s category.' ),
    4747                                                single_cat_title( '', false )
    4848                                        );
    _deprecated_file( 
    5252                        <?php elseif ( is_day() ) : /* If this is a daily archive */ ?>
    5353                                <p>
    5454                                <?php
    55                                 /* translators: 1: site link, 2: archive date */
    5655                                        printf(
     56                                                /* translators: 1: site link, 2: archive date */
    5757                                                __( 'You are currently browsing the %1$s blog archives for the day %2$s.' ),
    5858                                                sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ),
    5959                                                get_the_time( __( 'l, F jS, Y' ) )
    _deprecated_file( 
    6464                        <?php elseif ( is_month() ) : /* If this is a monthly archive */ ?>
    6565                                <p>
    6666                                <?php
    67                                 /* translators: 1: site link, 2: archive month */
    6867                                        printf(
     68                                                /* translators: 1: site link, 2: archive month */
    6969                                                __( 'You are currently browsing the %1$s blog archives for %2$s.' ),
    7070                                                sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ),
    7171                                                get_the_time( __( 'F, Y' ) )
    _deprecated_file( 
    7676                        <?php elseif ( is_year() ) : /* If this is a yearly archive */ ?>
    7777                                <p>
    7878                                <?php
    79                                 /* translators: 1: site link, 2: archive year */
    8079                                        printf(
     80                                                /* translators: 1: site link, 2: archive year */
    8181                                                __( 'You are currently browsing the %1$s blog archives for the year %2$s.' ),
    8282                                                sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ),
    8383                                                get_the_time( 'Y' )
    _deprecated_file( 
    8888                        <?php elseif ( is_search() ) : /* If this is a search result */ ?>
    8989                                <p>
    9090                                <?php
    91                                 /* translators: 1: site link, 2: search query */
    9291                                        printf(
     92                                                /* translators: 1: site link, 2: search query */
    9393                                                __( 'You have searched the %1$s blog archives for <strong>&#8216;%2$s&#8217;</strong>. If you are unable to find anything in these search results, you can try one of these links.' ),
    9494                                                sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ),
    9595                                                esc_html( get_search_query() )
    _deprecated_file( 
    100100                        <?php elseif ( isset( $_GET['paged'] ) && ! empty( $_GET['paged'] ) ) : /* If this set is paginated */ ?>
    101101                                <p>
    102102                                <?php
    103                                 /* translators: %s: site link */
    104103                                        printf(
     104                                                /* translators: %s: site link */
    105105                                                __( 'You are currently browsing the %s blog archives.' ),
    106106                                                sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) )
    107107                                        );