Make WordPress Core


Ignore:
Timestamp:
09/01/2019 05:12:43 PM (6 years 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/script-loader.php

    r45740 r45926  
    11161116    $uploader_l10n = array(
    11171117        'queue_limit_exceeded'      => __( 'You have attempted to queue too many files.' ),
     1118        /* translators: %s: File name */
    11181119        'file_exceeds_size_limit'   => __( '%s exceeds the maximum upload size for this site.' ),
    11191120        'zero_byte_file'            => __( 'This file is empty. Please try another.' ),
     
    11291130        /* translators: 1: Opening link tag, 2: Closing link tag */
    11301131        'big_upload_failed'         => __( 'Please try uploading this file with the %1$sbrowser uploader%2$s.' ),
     1132        /* translators: %s: File name */
    11311133        'big_upload_queued'         => __( '%s exceeds the maximum upload size for the multi-file uploader when used in your browser.' ),
    11321134        'io_error'                  => __( 'IO error.' ),
     
    11371139        'crunching'                 => __( 'Crunching…' ),
    11381140        'deleted'                   => __( 'moved to the trash.' ),
     1141        /* translators: %s: File name */
    11391142        'error_uploading'           => __( '“%s” has failed to upload.' ),
    11401143    );
     
    17811784                    'connectionError'          => __( 'Connection lost or the server is busy. Please try again later.' ),
    17821785                    'nonceError'               => __( 'An error has occurred. Please reload the page and try again.' ),
     1786                    /* translators: %s: Number of plugins */
    17831787                    'pluginsFound'             => __( 'Number of plugins found: %d' ),
    17841788                    'noPluginsFound'           => __( 'No plugins found. Try a different search.' ),
Note: See TracChangeset for help on using the changeset viewer.