Skip to content

Commit

Permalink
Adjust pre-publish section summary strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZebulanStanphill committed Sep 9, 2020
1 parent b441fb0 commit a781ba2
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions packages/editor/src/components/post-publish-panel/prepublish.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { get } from 'lodash';
import { __ } from '@wordpress/i18n';
import { PanelBody } from '@wordpress/components';
import { withSelect } from '@wordpress/data';
import { createInterpolateElement } from '@wordpress/element';

/**
* Internal dependencies
Expand Down Expand Up @@ -56,24 +55,30 @@ function PostPublishPanelPrepublish( {
<PanelBody
initialOpen={ false }
title={ __( 'Visibility' ) }
summary={ createInterpolateElement(
__( 'Set to <PostVisibilityLabel />.' ),
{
PostVisibilityLabel: <PostVisibilityLabel />,
}
) }
summary={
<>
{
/* translators: Describing the following as the current visibility. */
__( 'Set to:' )
}{ ' ' }
<PostVisibilityLabel />
</>
}
>
<PostVisibility />
</PanelBody>
<PanelBody
initialOpen={ false }
title={ __( 'Publish date' ) }
summary={ createInterpolateElement(
__( 'Set to <PostScheduleLabel />.' ),
{
PostScheduleLabel: <PostScheduleLabel />,
}
) }
summary={
<>
{
/* translators: Describing the following as the current publish date. */
__( 'Set to:' )
}{ ' ' }
<PostScheduleLabel />
</>
}
>
<PostSchedule />
</PanelBody>
Expand Down

0 comments on commit a781ba2

Please sign in to comment.