mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 06:57:35 +01:00
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. Built from https://develop.svn.wordpress.org/trunk@59554 git-svn-id: http://core.svn.wordpress.org/trunk@58940 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ceb9b355bf
commit
988751f0bf
@ -354,7 +354,7 @@ class Custom_Background {
|
||||
<input type="file" id="upload" name="import" />
|
||||
<input type="hidden" name="action" value="save" />
|
||||
<?php wp_nonce_field( 'custom-background-upload', '_wpnonce-custom-background-upload' ); ?>
|
||||
<?php submit_button( __( 'Upload' ), '', 'submit', false ); ?>
|
||||
<?php submit_button( _x( 'Upload', 'verb' ), '', 'submit', false ); ?>
|
||||
</p>
|
||||
<p>
|
||||
<label for="choose-from-library-link"><?php _e( 'Or choose an image from your media library:' ); ?></label><br />
|
||||
|
@ -664,7 +664,7 @@ class Custom_Image_Header {
|
||||
<input type="file" id="upload" name="import" />
|
||||
<input type="hidden" name="action" value="save" />
|
||||
<?php wp_nonce_field( 'custom-header-upload', '_wpnonce-custom-header-upload' ); ?>
|
||||
<?php submit_button( __( 'Upload' ), '', 'submit', false ); ?>
|
||||
<?php submit_button( _x( 'Upload', 'verb' ), '', 'submit', false ); ?>
|
||||
</p>
|
||||
<?php
|
||||
$modal_update_href = add_query_arg(
|
||||
|
@ -60,7 +60,7 @@ class WP_Theme_Install_List_Table extends WP_Themes_List_Table {
|
||||
if ( 'search' === $tab ) {
|
||||
$tabs['search'] = __( 'Search Results' );
|
||||
}
|
||||
$tabs['upload'] = __( 'Upload' );
|
||||
$tabs['upload'] = _x( 'Upload', 'noun' );
|
||||
$tabs['featured'] = _x( 'Featured', 'themes' );
|
||||
//$tabs['popular'] = _x( 'Popular', 'themes' );
|
||||
$tabs['new'] = _x( 'Latest', 'themes' );
|
||||
|
@ -2277,11 +2277,11 @@ function media_upload_form( $errors = null ) {
|
||||
<label class="screen-reader-text" for="async-upload">
|
||||
<?php
|
||||
/* translators: Hidden accessibility text. */
|
||||
_e( 'Upload' );
|
||||
_ex( 'Upload', 'verb' );
|
||||
?>
|
||||
</label>
|
||||
<input type="file" name="async-upload" id="async-upload" />
|
||||
<?php submit_button( __( 'Upload' ), 'primary', 'html-upload', false ); ?>
|
||||
<?php submit_button( _x( 'Upload', 'verb' ), 'primary', 'html-upload', false ); ?>
|
||||
<a href="#" onclick="try{top.tb_remove();}catch(e){}; return false;"><?php _e( 'Cancel' ); ?></a>
|
||||
</p>
|
||||
<div class="clear"></div>
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.8-alpha-59553';
|
||||
$wp_version = '6.8-alpha-59554';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user