Skip to content

Commit

Permalink
Add i18n context for resolving invalid blocks (#10779)
Browse files Browse the repository at this point in the history
* Add i18n context for resolving invalid blocks

* Add translators comments based on feedback
  • Loading branch information
brandonpayton authored and youknowriad committed Oct 27, 2018
1 parent 87732a2 commit 9d33098
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* WordPress dependencies
*/
import { __ } from '@wordpress/i18n';
import { __, _x } from '@wordpress/i18n';
import { Button, Modal } from '@wordpress/components';
import { Component } from '@wordpress/element';
import {
Expand Down Expand Up @@ -45,7 +45,10 @@ export class BlockInvalidWarning extends Component {
if ( compare ) {
return (
<Modal
title={ __( 'Resolve Block' ) }
title={
// translators: Dialog title to fix block content
__( 'Resolve Block' )
}
onRequestClose={ this.onCompareClose }
className="editor-block-compare"
>
Expand All @@ -64,7 +67,10 @@ export class BlockInvalidWarning extends Component {
<Warning
actions={ [
<Button key="convert" onClick={ this.onCompare } isLarge isPrimary={ ! hasHTMLBlock }>
{ __( 'Resolve' ) }
{
// translators: Button to fix block content
_x( 'Resolve', 'imperative verb' )
}
</Button>,
hasHTMLBlock && (
<Button key="edit" onClick={ convertToHTML } isLarge isPrimary>
Expand Down

0 comments on commit 9d33098

Please sign in to comment.