Skip to content

Commit

Permalink
Merge pull request #2751 from burhandodhy/missing-textdomain
Browse files Browse the repository at this point in the history
Add missing text domain
  • Loading branch information
felipeelia authored May 10, 2022
2 parents 0f50880 + 915fd98 commit 8fc0cd5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 7 additions & 3 deletions assets/js/blocks/related-posts/Edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class Edit extends Component {
/>
</BlockControls>
<InspectorControls>
<PanelBody title={__('Related Post Settings')}>
<PanelBody title={__('Related Post Settings', 'elasticpress')}>
<QueryControls
numberOfItems={number}
onNumberOfItemsChange={(value) => setAttributes({ number: value })}
Expand All @@ -76,8 +76,12 @@ class Edit extends Component {

<div className={className}>
{displayPosts === false || displayPosts.length === 0 ? (
<Placeholder icon="admin-post" label={__('Related Posts')}>
{posts === false ? <Spinner /> : __('No related posts yet.')}
<Placeholder icon="admin-post" label={__('Related Posts', 'elasticpress')}>
{posts === false ? (
<Spinner />
) : (
__('No related posts yet.', 'elasticpress')
)}
</Placeholder>
) : (
<ul style={{ textAlign: alignment }}>
Expand Down
4 changes: 3 additions & 1 deletion assets/js/blocks/related-posts/block.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import Edit from './Edit';

const { __ } = wp.i18n;

const { registerBlockType } = wp.blocks;

registerBlockType('elasticpress/related-posts', {
title: 'Related Posts (ElasticPress)',
title: __('Related Posts (ElasticPress)', 'elasticpress'),
supports: {
align: true,
},
Expand Down

0 comments on commit 8fc0cd5

Please sign in to comment.