Skip to content

Commit 6507c51

Browse files
author
Marco Pereirinha
committed
Wording update
1 parent 3d35883 commit 6507c51

4 files changed

Lines changed: 17 additions & 7 deletions

File tree

php/templates/taxonomy-transformation-fields.php

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,23 @@
2020
<div class="cloudinary-collapsible">
2121
<div class="cloudinary-collapsible__toggle">
2222
<h2>
23-
<?php esc_html_e( 'Cloudinary transformations', 'cloudinary' ); ?>
23+
<?php
24+
// translators: The taxonomy label.
25+
echo esc_html( sprintf( __( 'Cloudinary %s transformations', 'cloudinary' ), $tax_labels->singular_name ) );
26+
?>
2427
</h2>
2528
<button type="button"><i class="dashicons dashicons-arrow-down-alt2"></i></button>
2629
</div>
2730
<div class="cloudinary-collapsible__content" style="display:none;">
2831
<div class="cld-more-details">
2932
<?php
30-
echo esc_html(
31-
sprintf(
32-
// translators: The taxonomy label.
33-
__( 'Additional transformations for this %s that will be appended to the globally defined Cloudinary transformations.', 'cloudinary' ),
34-
$tax_labels->singular_name
35-
)
33+
printf(
34+
// translators: %1$s is the taxonomy label, %2$s is the image settings link, %4$s is the video settings link. The %3$s is the closing tags for the links.
35+
esc_html__( 'Add these %1$s-specific transformations to the global Cloudinary transformations in the plugin\'s %2$simage%3$s and %4$svideo%3$s settings.', 'cloudinary' ),
36+
esc_html( $tax_labels->singular_name ),
37+
'<a href="' . esc_url( admin_url( 'admin.php?page=cloudinary_image_settings#text-image-settings.image-freeform' ) ) . '">',
38+
'</a>',
39+
'<a href="' . esc_url( admin_url( 'admin.php?page=cloudinary_video_settings#text-video-settings.video-freeform' ) ) . '">'
3640
)
3741
?>
3842
</div>

php/ui/component/class-text.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ protected function wrap( $struct ) {
4444
'cld-input-' . $this->type,
4545
);
4646

47+
if ( $this->setting->has_param( 'anchor' ) ) {
48+
$struct['attributes']['id'] = 'text-' . str_replace( '_', '-', $this->setting->get_slug() );
49+
}
50+
4751
return $struct;
4852
}
4953

ui-definitions/settings-image.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@
155155
'slug' => 'image_freeform',
156156
'title' => $transformations_title,
157157
'default' => '',
158+
'anchor' => true,
158159
'tooltip_text' => sprintf(
159160
// translators: The link to transformation reference.
160161
__(

ui-definitions/settings-video.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@
241241
'slug' => 'video_freeform',
242242
'title' => $transformations_title,
243243
'default' => '',
244+
'anchor' => true,
244245
'tooltip_text' => sprintf(
245246
// translators: The link to transformation reference.
246247
__(

0 commit comments

Comments
 (0)