Skip to content

Commit

Permalink
Further corrections to text domain in block.js and edit.js.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Armstrong committed Dec 12, 2024
1 parent 9674073 commit 94e2c61
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 32 deletions.
8 changes: 4 additions & 4 deletions src/block/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ cloudflareStream.icon = wp.element.createElement(
*/
// phpcs:disable Generic.WhiteSpace.ScopeIndent.IncorrectExact,Generic.WhiteSpace.ScopeIndent.Incorrect
registerBlockType( 'cloudflare-stream/block-video', {
title: __( 'Cloudflare Stream Video', 'cloudflare-stream-wordpress' ),
title: __( 'Cloudflare Stream Video', 'cloudflare-stream' ),
icon: cloudflareStream.icon,
render_callback: 'cloudflare_stream_render_block',
category: 'embed',
keywords: [
__( 'Cloudflare', 'cloudflare-stream-wordpress' ),
__( 'Stream', 'cloudflare-stream-wordpress' ),
__( 'video', 'cloudflare-stream-wordpress' ),
__( 'Cloudflare', 'cloudflare-stream' ),
__( 'Stream', 'cloudflare-stream' ),
__( 'video', 'cloudflare-stream' ),
],
deprecated: [ deprecated_108 ],
attributes: {
Expand Down
56 changes: 28 additions & 28 deletions src/block/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ class CloudflareStreamEdit extends Component {
).html(
__(
'Upload Error: See the console for details.',
'cloudflare-stream-wordpress'
'cloudflare-stream'
)
);
jQuery( '.editor-media-placeholder__retry-button' ).show();
Expand Down Expand Up @@ -266,7 +266,7 @@ class CloudflareStreamEdit extends Component {
).html(
__(
'Upload Complete. Processing video.',
'cloudflare-stream-wordpress'
'cloudflare-stream'
)
);
progressLabel.text( '' );
Expand Down Expand Up @@ -304,7 +304,7 @@ class CloudflareStreamEdit extends Component {
).html(
__(
'Uploading your video.',
'cloudflare-stream-wordpress'
'cloudflare-stream'
)
);
block.uploadFromFiles( file );
Expand All @@ -316,7 +316,7 @@ class CloudflareStreamEdit extends Component {
sprintf(
__(
'Processing Error: %s',
'cloudflare-stream-wordpress'
'cloudflare-stream'
),
data.data
)
Expand Down Expand Up @@ -404,7 +404,7 @@ class CloudflareStreamEdit extends Component {
jQuery(
'.editor-media-placeholder .components-placeholder__instructions'
).html(
__( 'Processing your video', 'cloudflare-stream-wordpress' )
__( 'Processing your video', 'cloudflare-stream' )
);

const file = jQuery(
Expand Down Expand Up @@ -445,11 +445,11 @@ class CloudflareStreamEdit extends Component {
icon={ cloudflareStream.icon }
label={ __(
'Cloudflare Stream',
'cloudflare-stream-wordpress'
'cloudflare-stream'
) }
instructions={ __(
'Uploading your video.',
'cloudflare-stream-wordpress'
'cloudflare-stream'
) }
className="editor-media-placeholder"
>
Expand All @@ -476,7 +476,7 @@ class CloudflareStreamEdit extends Component {
} }
className="editor-media-placeholder__retry-button"
>
{ __( 'Retry', 'cloudflare-stream-wordpress' ) }
{ __( 'Retry', 'cloudflare-stream' ) }
</Button>
</Placeholder>
// phpcs:enable
Expand All @@ -491,11 +491,11 @@ class CloudflareStreamEdit extends Component {
icon={ cloudflareStream.icon }
label={ __(
'Cloudflare Stream',
'cloudflare-stream-wordpress'
'cloudflare-stream'
) }
instructions={ __(
'Processing your video.',
'cloudflare-stream-wordpress'
'cloudflare-stream'
) }
className="editor-media-placeholder"
>
Expand All @@ -517,15 +517,15 @@ class CloudflareStreamEdit extends Component {
icon="update"
label={ __(
'Retry',
'cloudflare-stream-wordpress'
'cloudflare-stream'
) }
onClick={ switchToEditing }
style={ {
display: 'none',
} }
className="editor-media-placeholder__retry-button"
>
{ __( 'Retry', 'cloudflare-stream-wordpress' ) }
{ __( 'Retry', 'cloudflare-stream' ) }
</Button>
</Placeholder>
// phpcs:enable
Expand All @@ -542,11 +542,11 @@ class CloudflareStreamEdit extends Component {
icon={ cloudflareStream.icon }
label={ __(
'Cloudflare Stream',
'cloudflare-stream-wordpress'
'cloudflare-stream'
) }
instructions={ __(
'Select a file from your library.',
'cloudflare-stream-wordpress'
'cloudflare-stream'
) }
>
<MediaUpload
Expand All @@ -557,15 +557,15 @@ class CloudflareStreamEdit extends Component {
<Button
label={ __(
'Stream Library',
'cloudflare-stream-wordpress'
'cloudflare-stream'
) }
onClick={ this.open }
className="editor-media-placeholder__browse-button"
>
{ ' ' }
{ __(
'Stream Library',
'cloudflare-stream-wordpress'
'cloudflare-stream'
) }
</Button>
) }
Expand All @@ -581,7 +581,7 @@ class CloudflareStreamEdit extends Component {
className="editor-media-placeholder__cancel-button"
>
{ ' ' }
{ __( 'Cancel', 'cloudflare-stream-wordpress' ) }
{ __( 'Cancel', 'cloudflare-stream' ) }
</Button>
</Placeholder>
// phpcs:enable
Expand All @@ -600,7 +600,7 @@ class CloudflareStreamEdit extends Component {
onChange={ switchToUploading }
accept="video/*"
>
{ __( 'Upload', 'cloudflare-stream-wordpress' ) }
{ __( 'Upload', 'cloudflare-stream' ) }
</FormFileUpload>
<MediaUpload
type="video"
Expand All @@ -610,31 +610,31 @@ class CloudflareStreamEdit extends Component {
<Button
label={ __(
'Stream Library',
'cloudflare-stream-wordpress'
'cloudflare-stream'
) }
onClick={ this.open }
className="editor-media-placeholder__browse-button"
>
{ ' ' }
{ __(
'Stream Library',
'cloudflare-stream-wordpress'
'cloudflare-stream'
) }
</Button>
) }
/>
<Button
isSecondary
icon="cancel"
label={ __( 'Cancel', 'cloudflare-stream-wordpress' ) }
label={ __( 'Cancel', 'cloudflare-stream' ) }
onClick={ switchFromEditing }
style={ {
display: 'none',
} }
className="editor-media-placeholder__cancel-button"
>
{ ' ' }
{ __( 'Cancel', 'cloudflare-stream-wordpress' ) }
{ __( 'Cancel', 'cloudflare-stream' ) }
</Button>
</Placeholder>
// phpcs:enable
Expand All @@ -649,7 +649,7 @@ class CloudflareStreamEdit extends Component {
className="components-icon-button components-toolbar__control"
label={ __(
'Edit video',
'cloudflare-stream-wordpress'
'cloudflare-stream'
) }
onClick={ switchToEditing }
icon="edit"
Expand All @@ -660,37 +660,37 @@ class CloudflareStreamEdit extends Component {
<PanelBody
title={ __(
'Video Settings',
'cloudflare-stream-wordpress'
'cloudflare-stream'
) }
>
<ToggleControl
label={ __(
'Autoplay',
'cloudflare-stream-wordpress'
'cloudflare-stream'
) }
onChange={ this.toggleAttribute( 'autoplay' ) }
checked={ autoplay }
/>
<ToggleControl
label={ __(
'Loop',
'cloudflare-stream-wordpress'
'cloudflare-stream'
) }
onChange={ this.toggleAttribute( 'loop' ) }
checked={ loop }
/>
<ToggleControl
label={ __(
'Muted',
'cloudflare-stream-wordpress'
'cloudflare-stream'
) }
onChange={ this.toggleAttribute( 'muted' ) }
checked={ muted }
/>
<ToggleControl
label={ __(
'Playback Controls',
'cloudflare-stream-wordpress'
'cloudflare-stream'
) }
onChange={ this.toggleAttribute( 'controls' ) }
checked={ controls }
Expand Down

0 comments on commit 94e2c61

Please sign in to comment.