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/script-loader.php

    r45926 r45932  
    599599                        'meridiem'      => (object) $wp_locale->meridiem,
    600600                        'relative'      => array(
    601                             /* translators: %s: duration */
     601                            /* translators: %s: Duration. */
    602602                            'future' => __( '%s from now' ),
    603                             /* translators: %s: duration */
     603                            /* translators: %s: Duration. */
    604604                            'past'   => __( '%s ago' ),
    605605                        ),
     
    10651065        array(
    10661066            'noResults'    => __( 'No results found.' ),
    1067             /* translators: Number of results found when using jQuery UI Autocomplete */
     1067            /* translators: Number of results found when using jQuery UI Autocomplete. */
    10681068            'oneResult'    => __( '1 result found. Use up and down arrow keys to navigate.' ),
    1069             /* translators: %d: Number of results found when using jQuery UI Autocomplete */
     1069            /* translators: %d: Number of results found when using jQuery UI Autocomplete. */
    10701070            'manyResults'  => __( '%d results found. Use up and down arrow keys to navigate.' ),
    10711071            'itemSelected' => __( 'Item selected.' ),
     
    11161116    $uploader_l10n = array(
    11171117        'queue_limit_exceeded'      => __( 'You have attempted to queue too many files.' ),
    1118         /* translators: %s: File name */
     1118        /* translators: %s: File name. */
    11191119        'file_exceeds_size_limit'   => __( '%s exceeds the maximum upload size for this site.' ),
    11201120        'zero_byte_file'            => __( 'This file is empty. Please try another.' ),
     
    11281128        'http_error'                => __( 'HTTP error.' ),
    11291129        'upload_failed'             => __( 'Upload failed.' ),
    1130         /* translators: 1: Opening link tag, 2: Closing link tag */
     1130        /* translators: 1: Opening link tag, 2: Closing link tag. */
    11311131        'big_upload_failed'         => __( 'Please try uploading this file with the %1$sbrowser uploader%2$s.' ),
    1132         /* translators: %s: File name */
     1132        /* translators: %s: File name. */
    11331133        'big_upload_queued'         => __( '%s exceeds the maximum upload size for the multi-file uploader when used in your browser.' ),
    11341134        'io_error'                  => __( 'IO error.' ),
     
    11391139        'crunching'                 => __( 'Crunching…' ),
    11401140        'deleted'                   => __( 'moved to the trash.' ),
    1141         /* translators: %s: File name */
     1141        /* translators: %s: File name. */
    11421142        'error_uploading'           => __( '“%s” has failed to upload.' ),
    11431143    );
     
    13301330                    'saveError' => __( 'Something went wrong. Your change may not have been saved. Please try again. There is also a chance that you may need to manually fix and upload the file over FTP.' ),
    13311331                    'lintError' => array(
    1332                         /* translators: %d: error count */
     1332                        /* translators: %d: Error count. */
    13331333                        'singular' => _n( 'There is %d error which must be fixed before you can update this file.', 'There are %d errors which must be fixed before you can update this file.', 1 ),
    1334                         /* translators: %d: error count */
     1334                        /* translators: %d: Error count. */
    13351335                        'plural'   => _n( 'There is %d error which must be fixed before you can update this file.', 'There are %d errors which must be fixed before you can update this file.', 2 ), // @todo This is lacking, as some languages have a dedicated dual form. For proper handling of plurals in JS, see #20491.
    13361336                    ),
     
    14521452            /* translators: %s: Display name of the user who has taken over the changeset in customizer. */
    14531453            'takenOverMessage'        => __( '%s has taken over and is currently customizing.' ),
    1454             /* translators: %s: URL to the Customizer to load the autosaved version */
     1454            /* translators: %s: URL to the Customizer to load the autosaved version. */
    14551455            'autosaveNotice'          => __( 'There is a more recent autosave of your changes than the one you are previewing. <a href="%s">Restore the autosave</a>' ),
    14561456            'videoHeaderNotice'       => __( 'This theme doesn&#8217;t support video headers on this page. Navigate to the front page or another page that supports video headers.' ),
     
    14581458            'allowedFiles'            => __( 'Allowed Files' ),
    14591459            'customCssError'          => array(
    1460                 /* translators: %d: error count */
     1460                /* translators: %d: Error count. */
    14611461                'singular' => _n( 'There is %d error which must be fixed before you can save.', 'There are %d errors which must be fixed before you can save.', 1 ),
    1462                 /* translators: %d: error count */
     1462                /* translators: %d: Error count. */
    14631463                'plural'   => _n( 'There is %d error which must be fixed before you can save.', 'There are %d errors which must be fixed before you can save.', 2 ), // @todo This is lacking, as some languages have a dedicated dual form. For proper handling of plurals in JS, see #20491.
    14641464            ),
    14651465            'pageOnFrontError'        => __( 'Homepage and posts page must be different.' ),
    14661466            'saveBlockedError'        => array(
    1467                 /* translators: %s: number of invalid settings */
     1467                /* translators: %s: Number of invalid settings. */
    14681468                'singular' => _n( 'Unable to save due to %s invalid setting.', 'Unable to save due to %s invalid settings.', 1 ),
    1469                 /* translators: %s: number of invalid settings */
     1469                /* translators: %s: Number of invalid settings. */
    14701470                'plural'   => _n( 'Unable to save due to %s invalid setting.', 'Unable to save due to %s invalid settings.', 2 ), // @todo This is lacking, as some languages have a dedicated dual form. For proper handling of plurals in JS, see #20491.
    14711471            ),
     
    14731473            'themePreviewUnavailable' => __( 'Sorry, you can&#8217;t preview new themes when you have changes scheduled or saved as a draft. Please publish your changes, or wait until they publish to preview new themes.' ),
    14741474            'themeInstallUnavailable' => sprintf(
    1475                 /* translators: %s: URL to Add Themes admin screen */
     1475                /* translators: %s: URL to Add Themes admin screen. */
    14761476                __( 'You won&#8217;t be able to install new themes from here yet since your install requires SFTP credentials. For now, please <a href="%s">add themes in the admin</a>.' ),
    14771477                esc_url( admin_url( 'theme-install.php' ) )
     
    15411541                'warnCommentChanges'      => __( "Are you sure you want to do this?\nThe comment changes you made will be lost." ),
    15421542                'docTitleComments'        => __( 'Comments' ),
    1543                 /* translators: %s: comments count */
     1543                /* translators: %s: Comments count. */
    15441544                'docTitleCommentsCount'   => __( 'Comments (%s)' ),
    15451545            )
     
    15821582                'publishOnFuture'    => __( 'Schedule for:' ),
    15831583                'publishOnPast'      => __( 'Published on:' ),
    1584                 /* translators: 1: month, 2: day, 3: year, 4: hour, 5: minute */
     1584                /* translators: 1: Month, 2: Day, 3: Year, 4: Hour, 5: Minute. */
    15851585                'dateFormat'         => __( '%1$s %2$s, %3$s @ %4$s:%5$s' ),
    15861586                'showcomm'           => __( 'Show more comments' ),
     
    16141614            array(
    16151615                'submittedOn' => __( 'Submitted on:' ),
    1616                 /* translators: 1: month, 2: day, 3: year, 4: hour, 5: minute */
     1616                /* translators: 1: Month, 2: Day, 3: Year, 4: Hour, 5: Minute. */
    16171617                'dateFormat'  => __( '%1$s %2$s, %3$s @ %4$s:%5$s' ),
    16181618            )
     
    17071707                'ajax_nonce' => wp_create_nonce( 'updates' ),
    17081708                'l10n'       => array(
    1709                     /* translators: %s: Search string */
     1709                    /* translators: %s: Search query. */
    17101710                    'searchResults'            => __( 'Search results for &#8220;%s&#8221;' ),
    17111711                    'searchResultsLabel'       => __( 'Search Results' ),
     
    17171717                    'update'                   => __( 'Update' ),
    17181718                    'updateNow'                => __( 'Update Now' ),
    1719                     /* translators: %s: Plugin name and version */
     1719                    /* translators: %s: Plugin name and version. */
    17201720                    'pluginUpdateNowLabel'     => _x( 'Update %s now', 'plugin' ),
    17211721                    'updateFailedShort'        => __( 'Update Failed!' ),
    1722                     /* translators: %s: Error string for a failed update */
     1722                    /* translators: %s: Error string for a failed update. */
    17231723                    'updateFailed'             => __( 'Update Failed: %s' ),
    1724                     /* translators: %s: Plugin name and version */
     1724                    /* translators: %s: Plugin name and version. */
    17251725                    'pluginUpdatingLabel'      => _x( 'Updating %s...', 'plugin' ), // No ellipsis.
    1726                     /* translators: %s: Plugin name and version */
     1726                    /* translators: %s: Plugin name and version. */
    17271727                    'pluginUpdatedLabel'       => _x( '%s updated!', 'plugin' ),
    1728                     /* translators: %s: Plugin name and version */
     1728                    /* translators: %s: Plugin name and version. */
    17291729                    'pluginUpdateFailedLabel'  => _x( '%s update failed', 'plugin' ),
    1730                     /* translators: Accessibility text */
     1730                    /* translators: Accessibility text. */
    17311731                    'updatingMsg'              => __( 'Updating... please wait.' ), // No ellipsis.
    1732                     /* translators: Accessibility text */
     1732                    /* translators: Accessibility text. */
    17331733                    'updatedMsg'               => __( 'Update completed successfully.' ),
    1734                     /* translators: Accessibility text */
     1734                    /* translators: Accessibility text. */
    17351735                    'updateCancel'             => __( 'Update canceled.' ),
    17361736                    'beforeunload'             => __( 'Updates may not complete if you navigate away from this page.' ),
    17371737                    'installNow'               => __( 'Install Now' ),
    1738                     /* translators: %s: Plugin name */
     1738                    /* translators: %s: Plugin name. */
    17391739                    'pluginInstallNowLabel'    => _x( 'Install %s now', 'plugin' ),
    17401740                    'installing'               => __( 'Installing...' ),
     
    17421742                    'themeInstalled'           => _x( 'Installed!', 'theme' ),
    17431743                    'installFailedShort'       => __( 'Installation Failed!' ),
    1744                     /* translators: %s: Error string for a failed installation */
     1744                    /* translators: %s: Error string for a failed installation. */
    17451745                    'installFailed'            => __( 'Installation failed: %s' ),
    1746                     /* translators: %s: Plugin name and version */
     1746                    /* translators: %s: Plugin name and version. */
    17471747                    'pluginInstallingLabel'    => _x( 'Installing %s...', 'plugin' ), // no ellipsis
    1748                     /* translators: %s: Theme name and version */
     1748                    /* translators: %s: Theme name and version. */
    17491749                    'themeInstallingLabel'     => _x( 'Installing %s...', 'theme' ), // no ellipsis
    1750                     /* translators: %s: Plugin name and version */
     1750                    /* translators: %s: Plugin name and version. */
    17511751                    'pluginInstalledLabel'     => _x( '%s installed!', 'plugin' ),
    1752                     /* translators: %s: Theme name and version */
     1752                    /* translators: %s: Theme name and version. */
    17531753                    'themeInstalledLabel'      => _x( '%s installed!', 'theme' ),
    1754                     /* translators: %s: Plugin name and version */
     1754                    /* translators: %s: Plugin name and version. */
    17551755                    'pluginInstallFailedLabel' => _x( '%s installation failed', 'plugin' ),
    1756                     /* translators: %s: Theme name and version */
     1756                    /* translators: %s: Theme name and version. */
    17571757                    'themeInstallFailedLabel'  => _x( '%s installation failed', 'theme' ),
    17581758                    'installingMsg'            => __( 'Installing... please wait.' ),
    17591759                    'installedMsg'             => __( 'Installation completed successfully.' ),
    1760                     /* translators: %s: Activation URL */
     1760                    /* translators: %s: Activation URL. */
    17611761                    'importerInstalledMsg'     => __( 'Importer installed successfully. <a href="%s">Run importer</a>' ),
    1762                     /* translators: %s: Theme name */
     1762                    /* translators: %s: Theme name. */
    17631763                    'aysDelete'                => __( 'Are you sure you want to delete %s?' ),
    1764                     /* translators: %s: Plugin name */
     1764                    /* translators: %s: Plugin name. */
    17651765                    'aysDeleteUninstall'       => __( 'Are you sure you want to delete %s and its data?' ),
    17661766                    'aysBulkDelete'            => __( 'Are you sure you want to delete the selected plugins and their data?' ),
    17671767                    'aysBulkDeleteThemes'      => __( 'Caution: These themes may be active on other sites in the network. Are you sure you want to proceed?' ),
    17681768                    'deleting'                 => __( 'Deleting...' ),
    1769                     /* translators: %s: Error string for a failed deletion */
     1769                    /* translators: %s: Error string for a failed deletion. */
    17701770                    'deleteFailed'             => __( 'Deletion failed: %s' ),
    17711771                    'pluginDeleted'            => _x( 'Deleted!', 'plugin' ),
     
    17741774                    'activatePlugin'           => is_network_admin() ? __( 'Network Activate' ) : __( 'Activate' ),
    17751775                    'activateTheme'            => is_network_admin() ? __( 'Network Enable' ) : __( 'Activate' ),
    1776                     /* translators: %s: Plugin name */
     1776                    /* translators: %s: Plugin name. */
    17771777                    'activatePluginLabel'      => is_network_admin() ? _x( 'Network Activate %s', 'plugin' ) : _x( 'Activate %s', 'plugin' ),
    1778                     /* translators: %s: Theme name */
     1778                    /* translators: %s: Theme name. */
    17791779                    'activateThemeLabel'       => is_network_admin() ? _x( 'Network Activate %s', 'theme' ) : _x( 'Activate %s', 'theme' ),
    17801780                    'activateImporter'         => __( 'Run Importer' ),
    1781                     /* translators: %s: Importer name */
     1781                    /* translators: %s: Importer name. */
    17821782                    'activateImporterLabel'    => __( 'Run %s' ),
    17831783                    'unknownError'             => __( 'Something went wrong.' ),
    17841784                    'connectionError'          => __( 'Connection lost or the server is busy. Please try again later.' ),
    17851785                    'nonceError'               => __( 'An error has occurred. Please reload the page and try again.' ),
    1786                     /* translators: %s: Number of plugins */
     1786                    /* translators: %s: Number of plugins. */
    17871787                    'pluginsFound'             => __( 'Number of plugins found: %d' ),
    17881788                    'noPluginsFound'           => __( 'No plugins found. Try a different search.' ),
     
    19041904    $open_sans_font_url = '';
    19051905
    1906     /* translators: If there are characters in your language that are not supported
     1906    /*
     1907     * translators: If there are characters in your language that are not supported
    19071908     * by Open Sans, translate this to 'off'. Do not translate into your own language.
    19081909     */
     
    19101911        $subsets = 'latin,latin-ext';
    19111912
    1912         /* translators: To add an additional Open Sans character subset specific to your language,
     1913        /*
     1914         * translators: To add an additional Open Sans character subset specific to your language,
    19131915         * translate this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate into your own language.
    19141916         */
     
    19951997
    19961998    /*
    1997      * Translators: Use this to specify the proper Google Font name and variants
     1999     * translators: Use this to specify the proper Google Font name and variants
    19982000     * to load that is supported by your language. Do not translate.
    19992001     * Set to 'off' to disable loading.
     
    22962298                 * to the user, so it's left as an implication.
    22972299                 */
    2298                 /* translators: %s is the name of the city we couldn't locate.
     2300                /*
     2301                 * translators: %s is the name of the city we couldn't locate.
    22992302                 * Replace the examples with cities related to your locale. Test that
    23002303                 * they match the expected location and have upcoming events before
     
    23082311
    23092312                // This one is only used with wp.a11y.speak(), so it can/should be more brief.
    2310                 /* translators: %s: the name of a city */
     2313                /* translators: %s: The name of a city. */
    23112314                'city_updated'                    => __( 'City updated. Listing events near %s.' ),
    23122315            ),
Note: See TracChangeset for help on using the changeset viewer.