Skip to content

Commit 72921d8

Browse files
chore: strings domain and cleanup
1 parent c1151b3 commit 72921d8

File tree

4 files changed

+16
-14
lines changed

4 files changed

+16
-14
lines changed

js/ActionPopup/SortableItem.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,11 +351,11 @@ const SortableItem = ({ propRef, loopIndex, item }) => {
351351
value: '',
352352
},
353353
{
354-
label: __('New Tab'),
354+
label: __('New Tab', 'feedzy-rss-feeds'),
355355
value: '_blank',
356356
},
357357
{
358-
label: __('Same Tab'),
358+
label: __('Same Tab', 'feedzy-rss-feeds'),
359359
value: '_self',
360360
},
361361
]}

js/FeedzyBlock/Editor.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -397,15 +397,15 @@ class Editor extends Component {
397397
(
398398
<div key="loading" className="wp-block-embed is-loading">
399399
<Spinner />
400-
<p>{ __( 'Fetching...', 'feedzy-rss-feeds' ) }</p>
400+
<p>{ __( 'Fetching', 'feedzy-rss-feeds' ) }</p>
401401
</div>
402402
):
403403
[
404404
<div className="feedzy-source-wrap">
405405
<TextControl
406406
type="url"
407407
className="feedzy-source"
408-
placeholder={ __( 'Enter URL or group of your feed here...', 'feedzy-rss-feeds' ) }
408+
placeholder={ __( 'Enter URL or group of your feed here', 'feedzy-rss-feeds' ) }
409409
onChange={ this.onChangeFeed }
410410
onKeyUp={ this.handleKeyUp }
411411
value={ this.props.attributes.feeds }
@@ -417,9 +417,9 @@ class Editor extends Component {
417417
type="submit"
418418
onClick={ this.loadFeed }
419419
>
420-
{ __( 'Load Feed' ) }
420+
{ __( 'Load Feed', 'feedzy-rss-feeds' ) }
421421
</Button>,
422-
<ExternalLink href={ this.getValidateURL() } title={ __( 'Validate Feed ', 'feedzy-rss-feeds' ) }>{ __( 'Validate ', 'feedzy-rss-feeds' ) }</ExternalLink>,
422+
<ExternalLink href={ this.getValidateURL() } title={ __( 'Validate Feed', 'feedzy-rss-feeds' ) }>{ __( 'Validate', 'feedzy-rss-feeds' ) }</ExternalLink>,
423423
( ! feedzyjs.isPro ) && (
424424
<div className="fz-source-upgrade-alert">
425425
<strong>{ __( 'NEW!', 'feedzy-rss-feeds' ) } </strong>
@@ -437,8 +437,9 @@ class Editor extends Component {
437437
),
438438
( this.state.error ) && <div>{ __( 'Feed URL is invalid or unreachable by WordPress SimplePie and will NOT display items.', 'feedzy-rss-feeds') }</div>,
439439
<p>
440-
{ __( 'Enter the full URL of the feed source you wish to display here, or the name of a group you\'ve created. Also you can add multiple URLs just separate them with a comma. You can manage your groups feed from ', 'feedzy-rss-feeds') }
441-
<a href="edit.php?post_type=feedzy_categories" title={ __( 'Feedzy Groups ', 'feedzy-rss-feeds' ) } target="_blank">{ __( 'here ', 'feedzy-rss-feeds' ) }</a>
440+
{ __( 'Enter the full URL of the feed source you wish to display here, or the name of a group you\'ve created. Also you can add multiple URLs just separate them with a comma. You can manage your groups feed from', 'feedzy-rss-feeds') }
441+
{' '}
442+
<a href="edit.php?post_type=feedzy_categories" title={ __( 'Feedzy Groups', 'feedzy-rss-feeds' ) } target="_blank">{ __( 'here', 'feedzy-rss-feeds' ) }</a>
442443
</p>
443444
] }
444445
</Placeholder>
@@ -534,7 +535,8 @@ class Editor extends Component {
534535
{ ( feedzyjs.isPro && item['media'] && item['media']['src'] ) && (
535536
<audio controls controlsList="nodownload">
536537
<source src={ item['media']['src'] } type={ item['media']['type'] } />
537-
{ __( 'Your browser does not support the audio element. But you can check this for the original link: ', 'feedzy-rss-feeds' ) }
538+
{ __( 'Your browser does not support the audio element. But you can check this for the original link:', 'feedzy-rss-feeds' ) }
539+
{ ' ' }
538540
<a href={ item['media']['src'] } >{ item['media']['src'] }</a>
539541
</audio>
540542
) }

js/FeedzyBlock/block.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ const { registerBlockType } = wp.blocks;
1818
* Register block
1919
*/
2020
export default registerBlockType( 'feedzy-rss-feeds/feedzy-block', {
21-
title: __( 'Feedzy RSS Feeds' ),
21+
title: __( 'Feedzy RSS Feeds', 'feedzy-rss-feeds' ),
2222
category: 'common',
2323
icon: 'rss',
2424
keywords: [
25-
__( 'Feedzy RSS Feeds' ),
26-
__( 'RSS' ),
27-
__( 'Feeds' ),
25+
__( 'Feedzy RSS Feeds', 'feedzy-rss-feeds' ),
26+
__( 'RSS', 'feedzy-rss-feeds' ),
27+
__( 'Feeds', 'feedzy-rss-feeds' ),
2828
],
2929
supports: {
3030
html: false,

js/FeedzyBlock/inspector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ class Inspector extends Component {
357357
value={this.props.attributes.thumb}
358358
options={[
359359
{
360-
label: __('Yes (without a fallback image)', 'feedzy-rss-feeds'),
360+
label: __('Yes (without a fallback image)', 'feedzy-rss-feeds'),
361361
value: 'auto',
362362
},
363363
{

0 commit comments

Comments
 (0)