Make WordPress Core


Ignore:
Timestamp:
12/22/2024 07:13:23 PM (13 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.