summaryrefslogtreecommitdiffstats
path: root/wp-includes/media-template.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/media-template.php')
-rw-r--r--wp-includes/media-template.php25
1 files changed, 13 insertions, 12 deletions
diff --git a/wp-includes/media-template.php b/wp-includes/media-template.php
index 21adc09..e0bd68a 100644
--- a/wp-includes/media-template.php
+++ b/wp-includes/media-template.php
@@ -159,7 +159,8 @@ function wp_print_media_templates() {
$alt_text_description = sprintf(
/* translators: 1: Link to tutorial, 2: Additional link attributes, 3: Accessibility text. */
__( '<a href="%1$s" %2$s>Learn how to describe the purpose of the image%3$s</a>. Leave empty if the image is purely decorative.' ),
- esc_url( 'https://www.w3.org/WAI/tutorials/images/decision-tree' ),
+ /* translators: Localized tutorial, if one exists. W3C Web Accessibility Initiative link has list of existing translations. */
+ esc_url( __( 'https://www.w3.org/WAI/tutorials/images/decision-tree/' ) ),
'target="_blank" rel="noopener"',
sprintf(
'<span class="screen-reader-text"> %s</span>',
@@ -483,7 +484,7 @@ function wp_print_media_templates() {
<# if ( data.fileLength && data.fileLengthHumanReadable ) { #>
<div class="file-length"><strong><?php _e( 'Length:' ); ?></strong>
- <span aria-hidden="true">{{ data.fileLength }}</span>
+ <span aria-hidden="true">{{ data.fileLengthHumanReadable }}</span>
<span class="screen-reader-text">{{ data.fileLengthHumanReadable }}</span>
</div>
<# } #>
@@ -729,7 +730,7 @@ function wp_print_media_templates() {
<# if ( data.fileLength && data.fileLengthHumanReadable ) { #>
<div class="file-length"><?php _e( 'Length:' ); ?>
- <span aria-hidden="true">{{ data.fileLength }}</span>
+ <span aria-hidden="true">{{ data.fileLengthHumanReadable }}</span>
<span class="screen-reader-text">{{ data.fileLengthHumanReadable }}</span>
</div>
<# } #>
@@ -839,7 +840,7 @@ function wp_print_media_templates() {
<?php esc_html_e( 'Right' ); ?>
</option>
<option value="none" selected>
- <?php esc_html_e( 'None' ); ?>
+ <?php esc_html_x( 'None', 'Alignment' ); ?>
</option>
</select>
</span>
@@ -866,7 +867,7 @@ function wp_print_media_templates() {
<option value="file">
<# } else { #>
<option value="none" selected>
- <?php esc_html_e( 'None' ); ?>
+ <?php esc_html_x( 'None', 'Embedded player type' ); ?>
</option>
<option value="file">
<# } #>
@@ -951,7 +952,7 @@ function wp_print_media_templates() {
<?php esc_html_e( 'Media File' ); ?>
</option>
<option value="none" <# if ( 'none' === wp.media.galleryDefaults.link ) { #>selected="selected"<# } #>>
- <?php esc_html_e( 'None' ); ?>
+ <?php esc_html_x( 'None', 'Media link target' ); ?>
</option>
</select>
</span>
@@ -1095,7 +1096,7 @@ function wp_print_media_templates() {
<?php esc_html_e( 'Right' ); ?>
</button>
<button class="button active" value="none">
- <?php esc_html_e( 'None' ); ?>
+ <?php esc_html_x( 'None', 'Alignment' ); ?>
</button>
</span>
</span>
@@ -1112,7 +1113,7 @@ function wp_print_media_templates() {
<?php esc_html_e( 'Custom URL' ); ?>
</button>
<button class="button active" value="none">
- <?php esc_html_e( 'None' ); ?>
+ <?php esc_html_x( 'None', 'Media URL' ); ?>
</button>
</span>
</span>
@@ -1159,7 +1160,7 @@ function wp_print_media_templates() {
<?php esc_html_e( 'Right' ); ?>
</button>
<button class="button active" value="none">
- <?php esc_html_e( 'None' ); ?>
+ <?php esc_html_x( 'None', 'Alignment' ); ?>
</button>
</span>
</span>
@@ -1235,7 +1236,7 @@ function wp_print_media_templates() {
<?php esc_html_e( 'Custom URL' ); ?>
</option>
<option value="none">
- <?php esc_html_e( 'None' ); ?>
+ <?php esc_html_x( 'None', 'Media URL' ); ?>
</option>
</select>
</span>
@@ -1355,7 +1356,7 @@ function wp_print_media_templates() {
<span class="button-group button-large" data-setting="preload">
<button class="button" value="auto"><?php _ex( 'Auto', 'auto preload' ); ?></button>
<button class="button" value="metadata"><?php _e( 'Metadata' ); ?></button>
- <button class="button active" value="none"><?php _e( 'None' ); ?></button>
+ <button class="button active" value="none"><?php _x( 'None', 'Preload type' ); ?></button>
</span>
</span>
</fieldset>
@@ -1454,7 +1455,7 @@ function wp_print_media_templates() {
<span class="button-group button-large" data-setting="preload">
<button class="button" value="auto"><?php _ex( 'Auto', 'auto preload' ); ?></button>
<button class="button" value="metadata"><?php _e( 'Metadata' ); ?></button>
- <button class="button active" value="none"><?php _e( 'None' ); ?></button>
+ <button class="button active" value="none"><?php _x( 'None', 'Preload type' ); ?></button>
</span>
</span>
</fieldset>