Skip to content

Commit

Permalink
Temporarily remove text domain from i18n strings, because we don't ha…
Browse files Browse the repository at this point in the history
…ve translation files available at the moment.

see #40
  • Loading branch information
benlk committed Aug 31, 2018
1 parent 5f1f919 commit f73f965
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions js/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
* This is the display title for your block, which can be translated with `i18n` functions.
* The block inserter will show this name.
*/
title: __( 'Pym Embed', 'pym-shortcode' ),
title: __( 'Pym Embed' ),

/**
* An icon property should be specified to make it easier to identify a block.
Expand Down Expand Up @@ -81,7 +81,7 @@
/**
* Describe the block for the block inspector
*/
description: __( 'Embed a webpage using NPR\'s Pym.js', 'pym-shortcode' ),
description: __( 'Embed a webpage using NPR\'s Pym.js' ),

/**
* Make the block easier to find by including keywords
Expand Down Expand Up @@ -114,10 +114,10 @@
icon: 'analytics'
},
),
__( 'Pym Child URL', 'pym-shortcode' )
__( 'Pym Child URL' )
],
value: props.attributes.src,
placeholder: __( 'What is the URL of your Pym child page?', 'pym-shortcode' ),
placeholder: __( 'What is the URL of your Pym child page?' ),
onChange: ( value ) => { props.setAttributes( { src: value } ); },
} )
),
Expand All @@ -130,26 +130,26 @@
*/
el( InspectorControls, {},
el( TextControl, {
label: __( 'Pym Child URL', 'pym-shortcode' ),
label: __( 'Pym Child URL' ),
value: props.attributes.src,
placeholder: __( 'What is the URL of your Pym child page?', 'pym-shortcode' ),
placeholder: __( 'What is the URL of your Pym child page?' ),
onChange: ( value ) => { props.setAttributes( { src: value } ); },
} ),
),
el( InspectorAdvancedControls, {},
el( TextControl, {
label: __( 'Parent element ID (optional)', 'pym-shortcode' ),
label: __( 'Parent element ID (optional)' ),
value: props.attributes.id,
onChange: ( value ) => { props.setAttributes( { id: value } ); },
help: __( 'The Pym block will automatically generate an ID for the parent element and use that to initiate the Pym embed. If your child page\'s code requires its parent to have a specific element ID, set that here.', 'pym-shortcode' ),
help: __( 'The Pym block will automatically generate an ID for the parent element and use that to initiate the Pym embed. If your child page\'s code requires its parent to have a specific element ID, set that here.' ),
} ),
el( TextControl, {
label: __( 'Pym.js source URL (optional)', 'pym-shortcode' ),
label: __( 'Pym.js source URL (optional)' ),
value: props.attributes.pymsrc,
onChange: ( value ) => { props.setAttributes( { pymsrc: value } ); },
} ),
el( TextControl, {
label: __( 'Pym Options', 'pym-shortcode' ),
label: __( 'Pym Options' ),
value: props.attributes.pymoptions,
onChange: ( value ) => { props.setAttributes( { pymoptions: value } ); },
// @todo make this translatable https://github.com/WordPress/gutenberg/blob/master/packages/i18n/README.md
Expand Down

0 comments on commit f73f965

Please sign in to comment.