diff --git a/packages/editor/src/components/post-comments/index.js b/packages/editor/src/components/post-comments/index.js index 75ca1ec0ee016c..c8fac57d00e09d 100644 --- a/packages/editor/src/components/post-comments/index.js +++ b/packages/editor/src/components/post-comments/index.js @@ -1,7 +1,7 @@ /** * WordPress dependencies */ -import { __ } from '@wordpress/i18n'; +import { __, _x } from '@wordpress/i18n'; import { RadioControl, __experimentalText as Text, @@ -18,7 +18,7 @@ const COMMENT_OPTIONS = [ { label: ( <> - { __( 'Open' ) } + { _x( 'Open', 'Adjective: e.g. "Comments are open"' ) } { __( 'Visitors can add new comments and replies.' ) } diff --git a/packages/editor/src/components/post-discussion/panel.js b/packages/editor/src/components/post-discussion/panel.js index 718754d56857aa..c539791d404dec 100644 --- a/packages/editor/src/components/post-discussion/panel.js +++ b/packages/editor/src/components/post-discussion/panel.js @@ -1,7 +1,7 @@ /** * WordPress dependencies */ -import { __ } from '@wordpress/i18n'; +import { __, _x } from '@wordpress/i18n'; import { Dropdown, Button, @@ -62,9 +62,11 @@ function PostDiscussionToggle( { isOpen, onClick } ) { let label; if ( commentStatus === 'open' ) { if ( pingStatus === 'open' ) { - label = __( 'Open' ); + label = _x( 'Open', 'Adjective: e.g. "Comments are open"' ); } else { - label = trackbacksSupported ? __( 'Comments only' ) : __( 'Open' ); + label = trackbacksSupported + ? __( 'Comments only' ) + : _x( 'Open', 'Adjective: e.g. "Comments are open"' ); } } else if ( pingStatus === 'open' ) { label = commentsSupported ? __( 'Pings only' ) : __( 'Pings enabled' ); diff --git a/packages/editor/src/components/site-discussion/index.js b/packages/editor/src/components/site-discussion/index.js index b80b44b1f59c13..b35ba9db476570 100644 --- a/packages/editor/src/components/site-discussion/index.js +++ b/packages/editor/src/components/site-discussion/index.js @@ -1,7 +1,7 @@ /** * WordPress dependencies */ -import { __ } from '@wordpress/i18n'; +import { __, _x } from '@wordpress/i18n'; import { useSelect, useDispatch } from '@wordpress/data'; import { store as coreStore } from '@wordpress/core-data'; import { @@ -25,7 +25,7 @@ const COMMENT_OPTIONS = [ { label: ( <> - { __( 'Open' ) } + { _x( 'Open', 'Adjective: e.g. "Comments are open"' ) } { __( 'Visitors can add new comments and replies.' ) }