Make WordPress Core

Changeset 59554


Ignore:
Timestamp:
12/22/2024 07:13:23 PM (3 months ago)
Author:
audrasjb
Message:

I18n: Add translator context for various occurrences of "upload".

This changeset adds a noun or verb context to the various occurrences of "upload" in the admin, to make it easier for translators to differenciate these strings depending on the context.

Props timse201, wpgerd.
Fixes #62732.

Location:
trunk/src/wp-admin/includes
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-custom-background.php

    r58995 r59554  
    355355        <input type="hidden" name="action" value="save" />
    356356            <?php wp_nonce_field( 'custom-background-upload', '_wpnonce-custom-background-upload' ); ?>
    357             <?php submit_button( __( 'Upload' ), '', 'submit', false ); ?>
     357            <?php submit_button( _x( 'Upload', 'verb' ), '', 'submit', false ); ?>
    358358    </p>
    359359    <p>
  • trunk/src/wp-admin/includes/class-custom-image-header.php

    r58995 r59554  
    665665        <input type="hidden" name="action" value="save" />
    666666            <?php wp_nonce_field( 'custom-header-upload', '_wpnonce-custom-header-upload' ); ?>
    667             <?php submit_button( __( 'Upload' ), '', 'submit', false ); ?>
     667            <?php submit_button( _x( 'Upload', 'verb' ), '', 'submit', false ); ?>
    668668    </p>
    669669            <?php
  • trunk/src/wp-admin/includes/class-wp-theme-install-list-table.php

    r58745 r59554  
    6161            $tabs['search'] = __( 'Search Results' );
    6262        }
    63         $tabs['upload']   = __( 'Upload' );
     63        $tabs['upload']   = _x( 'Upload', 'noun' );
    6464        $tabs['featured'] = _x( 'Featured', 'themes' );
    6565        //$tabs['popular']  = _x( 'Popular', 'themes' );
  • trunk/src/wp-admin/includes/media.php

    r59497 r59554  
    22782278            <?php
    22792279            /* translators: Hidden accessibility text. */
    2280             _e( 'Upload' );
     2280            _ex( 'Upload', 'verb' );
    22812281            ?>
    22822282        </label>
    22832283        <input type="file" name="async-upload" id="async-upload" />
    2284         <?php submit_button( __( 'Upload' ), 'primary', 'html-upload', false ); ?>
     2284        <?php submit_button( _x( 'Upload', 'verb' ), 'primary', 'html-upload', false ); ?>
    22852285        <a href="#" onclick="try{top.tb_remove();}catch(e){}; return false;"><?php _e( 'Cancel' ); ?></a>
    22862286    </p>
Note: See TracChangeset for help on using the changeset viewer.