Make WordPress Core


Ignore:
Timestamp:
09/03/2019 12:39:13 AM (5 years ago)
Author:
SergeyBiryukov
Message:

I18N: Capitalize translator comments consistently, add trailing punctuation.

Includes minor code layout fixes.

See #44360.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r45926 r45932  
    27302730            $response = array(
    27312731                'setting_validities' => $setting_validities,
    2732                 /* translators: %s: number of invalid settings */
     2732                /* translators: %s: Number of invalid settings. */
    27332733                'message'            => sprintf( _n( 'Unable to save due to %s invalid setting.', 'Unable to save due to %s invalid settings.', $invalid_setting_count ), number_format_i18n( $invalid_setting_count ) ),
    27342734            );
     
    38223822        if ( in_array( $id, $this->components, true ) ) {
    38233823            $message = sprintf(
    3824                 /* translators: 1: panel id, 2: link to 'customize_loaded_components' filter reference */
     3824                /* translators: 1: Panel ID, 2: Link to 'customize_loaded_components' filter reference. */
    38253825                __( 'Removing %1$s manually will cause PHP warnings. Use the %2$s filter instead.' ),
    38263826                $id,
     
    44684468    public function get_document_title_template() {
    44694469        if ( $this->is_theme_active() ) {
    4470             /* translators: %s: document title from the preview */
     4470            /* translators: %s: Document title from the preview. */
    44714471            $document_title_tmpl = __( 'Customize: %s' );
    44724472        } else {
    4473             /* translators: %s: document title from the preview */
     4473            /* translators: %s: Document title from the preview. */
    44744474            $document_title_tmpl = __( 'Live Preview: %s' );
    44754475        }
     
    48104810            'l10n'                   => array(
    48114811                'confirmDeleteTheme'   => __( 'Are you sure you want to delete this theme?' ),
    4812                 /* translators: %d: number of theme search results, which cannot currently consider singular vs. plural forms */
     4812                /* translators: %d: Number of theme search results, which cannot currently consider singular vs. plural forms. */
    48134813                'themeSearchResults'   => __( '%d themes found' ),
    4814                 /* translators: %d: number of themes being displayed, which cannot currently consider singular vs. plural forms */
     4814                /* translators: %d: Number of themes being displayed, which cannot currently consider singular vs. plural forms. */
    48154815                'announceThemeCount'   => __( 'Displaying %d themes' ),
    4816                 /* translators: %s: theme name */
     4816                /* translators: %s: Theme name. */
    48174817                'announceThemeDetails' => __( 'Showing details for theme: %s' ),
    48184818            ),
     
    50705070                    'description' => sprintf(
    50715071                        '<p>' . __( 'Site Icons are what you see in browser tabs, bookmark bars, and within the WordPress mobile apps. Upload one here!' ) . '</p>' .
    5072                         /* translators: %s: site icon size in pixels */
     5072                        /* translators: %s: Site icon size in pixels. */
    50735073                        '<p>' . __( 'Site Icons should be square and at least %s pixels.' ) . '</p>',
    50745074                        '<strong>512 &times; 512</strong>'
     
    52055205            if ( $width && $height ) {
    52065206                $control_description = sprintf(
    5207                     /* translators: 1: .mp4, 2: header size in pixels */
     5207                    /* translators: 1: .mp4, 2: Header size in pixels. */
    52085208                    __( 'Upload your video in %1$s format and minimize its file size for best results. Your theme recommends dimensions of %2$s pixels.' ),
    52095209                    '<code>.mp4</code>',
     
    52125212            } elseif ( $width ) {
    52135213                $control_description = sprintf(
    5214                     /* translators: 1: .mp4, 2: header width in pixels */
     5214                    /* translators: 1: .mp4, 2: Header width in pixels. */
    52155215                    __( 'Upload your video in %1$s format and minimize its file size for best results. Your theme recommends a width of %2$s pixels.' ),
    52165216                    '<code>.mp4</code>',
     
    52195219            } else {
    52205220                $control_description = sprintf(
    5221                     /* translators: 1: .mp4, 2: header height in pixels */
     5221                    /* translators: 1: .mp4, 2: Header height in pixels. */
    52225222                    __( 'Upload your video in %1$s format and minimize its file size for best results. Your theme recommends a height of %2$s pixels.' ),
    52235223                    '<code>.mp4</code>',
     
    55695569            esc_url( __( 'https://codex.wordpress.org/CSS' ) ),
    55705570            __( 'Learn more about CSS' ),
    5571             /* translators: accessibility text */
     5571            /* translators: Accessibility text. */
    55725572            __( '(opens in a new tab)' )
    55735573        );
     
    55845584            $section_description .= '<p>';
    55855585            $section_description .= sprintf(
    5586                 /* translators: 1: link to user profile, 2: additional link attributes, 3: accessibility text */
     5586                /* translators: 1: Link to user profile, 2: Additional link attributes, 3: Accessibility text. */
    55875587                __( 'The edit field automatically highlights code syntax. You can disable this in your <a href="%1$s" %2$s>user profile%3$s</a> to work in plain text mode.' ),
    55885588                esc_url( get_edit_profile_url() ),
     
    55905590                sprintf(
    55915591                    '<span class="screen-reader-text"> %s</span>',
    5592                     /* translators: accessibility text */
     5592                    /* translators: Accessibility text. */
    55935593                    __( '(opens in a new tab)' )
    55945594                )
Note: See TracChangeset for help on using the changeset viewer.