From 2c7e409150e71fdaf2c2dda637ab9f1fa9375682 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Sun, 21 May 2017 20:43:36 +0000 Subject: [PATCH] Widgets: clarify some context information for translators. Props Italian polyglots team. Amends [40640]. See #32417, #39993, #39994, #39995. git-svn-id: https://develop.svn.wordpress.org/trunk@40812 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/widgets/class-wp-widget-media-audio.php | 6 +++--- src/wp-includes/widgets/class-wp-widget-media-image.php | 6 +++--- src/wp-includes/widgets/class-wp-widget-media-video.php | 6 +++--- src/wp-includes/widgets/class-wp-widget-media.php | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/wp-includes/widgets/class-wp-widget-media-audio.php b/src/wp-includes/widgets/class-wp-widget-media-audio.php index 46accaf4ed..569b620b0d 100644 --- a/src/wp-includes/widgets/class-wp-widget-media-audio.php +++ b/src/wp-includes/widgets/class-wp-widget-media-audio.php @@ -30,9 +30,9 @@ class WP_Widget_Media_Audio extends WP_Widget_Media { $this->l10n = array_merge( $this->l10n, array( 'no_media_selected' => __( 'No audio selected' ), - 'add_media' => _x( 'Add Audio', 'label for button in the audio widget; should not be longer than ~13 characters long' ), - 'replace_media' => _x( 'Replace Audio', 'label for button in the audio widget; should not be longer than ~13 characters long' ), - 'edit_media' => _x( 'Edit Audio', 'label for button in the audio widget; should not be longer than ~13 characters long' ), + 'add_media' => _x( 'Add Audio', 'label for button in the audio widget' ), + 'replace_media' => _x( 'Replace Audio', 'label for button in the audio widget; should preferably not be longer than ~13 characters long' ), + 'edit_media' => _x( 'Edit Audio', 'label for button in the audio widget; should preferably not be longer than ~13 characters long' ), 'missing_attachment' => sprintf( /* translators: placeholder is URL to media library */ __( 'We can’t find that audio file. Check your media library and make sure it wasn’t deleted.' ), diff --git a/src/wp-includes/widgets/class-wp-widget-media-image.php b/src/wp-includes/widgets/class-wp-widget-media-image.php index ca85696477..1998ff0c7c 100644 --- a/src/wp-includes/widgets/class-wp-widget-media-image.php +++ b/src/wp-includes/widgets/class-wp-widget-media-image.php @@ -30,9 +30,9 @@ class WP_Widget_Media_Image extends WP_Widget_Media { $this->l10n = array_merge( $this->l10n, array( 'no_media_selected' => __( 'No image selected' ), - 'add_media' => _x( 'Add Image', 'label for button in the image widget; should not be longer than ~13 characters long' ), - 'replace_media' => _x( 'Replace Image', 'label for button in the image widget; should not be longer than ~13 characters long' ), - 'edit_media' => _x( 'Edit Image', 'label for button in the image widget; should not be longer than ~13 characters long' ), + 'add_media' => _x( 'Add Image', 'label for button in the image widget' ), + 'replace_media' => _x( 'Replace Image', 'label for button in the image widget; should preferably not be longer than ~13 characters long' ), + 'edit_media' => _x( 'Edit Image', 'label for button in the image widget; should preferably not be longer than ~13 characters long' ), 'missing_attachment' => sprintf( /* translators: placeholder is URL to media library */ __( 'We can’t find that image. Check your media library and make sure it wasn’t deleted.' ), diff --git a/src/wp-includes/widgets/class-wp-widget-media-video.php b/src/wp-includes/widgets/class-wp-widget-media-video.php index 129e7b5fa4..5816286e06 100644 --- a/src/wp-includes/widgets/class-wp-widget-media-video.php +++ b/src/wp-includes/widgets/class-wp-widget-media-video.php @@ -30,9 +30,9 @@ class WP_Widget_Media_Video extends WP_Widget_Media { $this->l10n = array_merge( $this->l10n, array( 'no_media_selected' => __( 'No video selected' ), - 'add_media' => _x( 'Add Video', 'label for button in the video widget; should not be longer than ~13 characters long' ), - 'replace_media' => _x( 'Replace Video', 'label for button in the video widget; should not be longer than ~13 characters long' ), - 'edit_media' => _x( 'Edit Video', 'label for button in the video widget; should not be longer than ~13 characters long' ), + 'add_media' => _x( 'Add Video', 'label for button in the video widget' ), + 'replace_media' => _x( 'Replace Video', 'label for button in the video widget; should preferably not be longer than ~13 characters long' ), + 'edit_media' => _x( 'Edit Video', 'label for button in the video widget; should preferably not be longer than ~13 characters long' ), 'missing_attachment' => sprintf( /* translators: placeholder is URL to media library */ __( 'We can’t find that video. Check your media library and make sure it wasn’t deleted.' ), diff --git a/src/wp-includes/widgets/class-wp-widget-media.php b/src/wp-includes/widgets/class-wp-widget-media.php index bbe920db87..c76989c873 100644 --- a/src/wp-includes/widgets/class-wp-widget-media.php +++ b/src/wp-includes/widgets/class-wp-widget-media.php @@ -57,9 +57,9 @@ abstract class WP_Widget_Media extends WP_Widget { $l10n_defaults = array( 'no_media_selected' => __( 'No media selected' ), - 'add_media' => _x( 'Add Media', 'label for button in the media widget; should not be longer than ~13 characters long' ), - 'replace_media' => _x( 'Replace Media', 'label for button in the media widget; should not be longer than ~13 characters long' ), - 'edit_media' => _x( 'Edit Media', 'label for button in the media widget; should not be longer than ~13 characters long' ), + 'add_media' => _x( 'Add Media', 'label for button in the media widget' ), + 'replace_media' => _x( 'Replace Media', 'label for button in the media widget; should preferably not be longer than ~13 characters long' ), + 'edit_media' => _x( 'Edit Media', 'label for button in the media widget; should preferably not be longer than ~13 characters long' ), 'add_to_widget' => __( 'Add to Widget' ), 'missing_attachment' => sprintf( /* translators: placeholder is URL to media library */