WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/01/2019 05:12:43 PM (7 weeks ago)
Author:
SergeyBiryukov
Message:

I18N: Improve translator comments.

  • Add missing translator comments.
  • Fix placement of some translator comments. Translator comments should be on the line directly above the line containing the translation function call for optimal compatibility with various .pot file generation tools. The CS auto-fixing, which changed some inconsistent function calls to multi-line function calls, is part of the reason why this was no longer the case for a select group of translator comments.

Includes minor code layout fixes.

Polyglots, rejoice! All WordPress core files now have translator comments for all strings with placeholders!

Props jrf, subrataemfluence, GaryJ, webdados, Dency, swissspidy, alvarogois, marcomartins, mihaiiceyro, vladwtz, niq1982, flipkeijzer, michielatyoast, chandrapatel, thrijith, joshuanoyce, FesoVik, tessak22, bhaktirajdev, cleancoded, dhavalkasvala, garrett-eclipse, bibliofille, socalchristina, priyankkpatel, 5hel2l2y, adamsilverstein, JeffPaul, pierlo, SergeyBiryukov.
Fixes #44360.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/theme-compat/sidebar.php

    r45602 r45926  
    4242                <p>
    4343                <?php
    44                 /* translators: %s: category name */
    4544                    printf(
     45                        /* translators: %s: category name */
    4646                        __( 'You are currently browsing the archives for the %s category.' ),
    4747                        single_cat_title( '', false )
     
    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' ) ),
     
    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' ) ),
     
    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' ) ),
     
    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' ) ),
     
    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' ) )
Note: See TracChangeset for help on using the changeset viewer.