mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 04:34:31 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@45926 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1115,6 +1115,7 @@ function wp_default_scripts( &$scripts ) {
|
||||
// Error messages for Plupload.
|
||||
$uploader_l10n = array(
|
||||
'queue_limit_exceeded' => __( 'You have attempted to queue too many files.' ),
|
||||
/* translators: %s: File name */
|
||||
'file_exceeds_size_limit' => __( '%s exceeds the maximum upload size for this site.' ),
|
||||
'zero_byte_file' => __( 'This file is empty. Please try another.' ),
|
||||
'invalid_filetype' => __( 'Sorry, this file type is not permitted for security reasons.' ),
|
||||
@@ -1128,6 +1129,7 @@ function wp_default_scripts( &$scripts ) {
|
||||
'upload_failed' => __( 'Upload failed.' ),
|
||||
/* translators: 1: Opening link tag, 2: Closing link tag */
|
||||
'big_upload_failed' => __( 'Please try uploading this file with the %1$sbrowser uploader%2$s.' ),
|
||||
/* translators: %s: File name */
|
||||
'big_upload_queued' => __( '%s exceeds the maximum upload size for the multi-file uploader when used in your browser.' ),
|
||||
'io_error' => __( 'IO error.' ),
|
||||
'security_error' => __( 'Security error.' ),
|
||||
@@ -1136,6 +1138,7 @@ function wp_default_scripts( &$scripts ) {
|
||||
'dismiss' => __( 'Dismiss' ),
|
||||
'crunching' => __( 'Crunching…' ),
|
||||
'deleted' => __( 'moved to the trash.' ),
|
||||
/* translators: %s: File name */
|
||||
'error_uploading' => __( '“%s” has failed to upload.' ),
|
||||
);
|
||||
|
||||
@@ -1780,6 +1783,7 @@ function wp_default_scripts( &$scripts ) {
|
||||
'unknownError' => __( 'Something went wrong.' ),
|
||||
'connectionError' => __( 'Connection lost or the server is busy. Please try again later.' ),
|
||||
'nonceError' => __( 'An error has occurred. Please reload the page and try again.' ),
|
||||
/* translators: %s: Number of plugins */
|
||||
'pluginsFound' => __( 'Number of plugins found: %d' ),
|
||||
'noPluginsFound' => __( 'No plugins found. Try a different search.' ),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user