Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/block-library/src/archives/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* WordPress dependencies
*/
import { archive as icon } from '@wordpress/icons';
import { __ } from '@wordpress/i18n';
import { __, _x } from '@wordpress/i18n';

/**
* Internal dependencies
Expand All @@ -15,7 +15,7 @@ const { name } = metadata;
export { metadata, name };

export const settings = {
title: __( 'Archives' ),
title: _x( 'Archives', 'block title' ),
description: __( 'Display a monthly archive of your posts.' ),
icon,
example: {},
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/audio/index.js
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 { audio as icon } from '@wordpress/icons';

/**
Expand All @@ -18,7 +18,7 @@ const { name } = metadata;
export { metadata, name };

export const settings = {
title: __( 'Audio' ),
title: _x( 'Audio', 'block title' ),
description: __( 'Embed a simple audio player.' ),
keywords: [
__( 'music' ),
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/block/index.js
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';

/**
* Internal dependencies
Expand All @@ -14,7 +14,7 @@ const { name } = metadata;
export { metadata, name };

export const settings = {
title: __( 'Reusable Block' ),
title: _x( 'Reusable Block', 'block title' ),
description: __(
'Create and save content to reuse across your site. Update the block, and the changes apply everywhere it’s used.'
),
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/button/index.js
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 as icon } from '@wordpress/icons';

/**
Expand All @@ -17,7 +17,7 @@ const { name } = metadata;
export { metadata, name };

export const settings = {
title: __( 'Button' ),
title: _x( 'Button', 'block title' ),
description: __(
'Prompt visitors to take action with a button-style link.'
),
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/buttons/index.js
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 as icon } from '@wordpress/icons';

/**
Expand All @@ -19,7 +19,7 @@ const { name } = metadata;
export { metadata, name };

export const settings = {
title: __( 'Buttons' ),
title: _x( 'Buttons', 'block title' ),
description: __(
'Prompt visitors to take action with a group of button-style links.'
),
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/calendar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* WordPress dependencies
*/
import { calendar as icon } from '@wordpress/icons';
import { __ } from '@wordpress/i18n';
import { __, _x } from '@wordpress/i18n';

/**
* Internal dependencies
Expand All @@ -15,7 +15,7 @@ const { name } = metadata;
export { metadata, name };

export const settings = {
title: __( 'Calendar' ),
title: _x( 'Calendar', 'block title' ),
description: __( 'A calendar of your site’s posts.' ),
icon,
keywords: [ __( 'posts' ), __( 'archive' ) ],
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/categories/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* WordPress dependencies
*/
import { category as icon } from '@wordpress/icons';
import { __ } from '@wordpress/i18n';
import { __, _x } from '@wordpress/i18n';

/**
* Internal dependencies
Expand All @@ -15,7 +15,7 @@ const { name } = metadata;
export { metadata, name };

export const settings = {
title: __( 'Categories' ),
title: _x( 'Categories', 'block title' ),
description: __( 'Display a list of all categories.' ),
icon,
example: {},
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/code/index.js
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 { code as icon } from '@wordpress/icons';

/**
Expand All @@ -17,7 +17,7 @@ const { name } = metadata;
export { metadata, name };

export const settings = {
title: __( 'Code' ),
title: _x( 'Code', 'block title' ),
description: __(
'Display code snippets that respect your spacing and tabs.'
),
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/column/index.js
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 { column as icon } from '@wordpress/icons';

/**
Expand All @@ -17,7 +17,7 @@ const { name } = metadata;
export { metadata, name };

export const settings = {
title: __( 'Column' ),
title: _x( 'Column', 'block title' ),
icon,
description: __( 'A single column within a columns block.' ),
edit,
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/columns/index.js
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 { columns as icon } from '@wordpress/icons';

/**
Expand All @@ -19,7 +19,7 @@ const { name } = metadata;
export { metadata, name };

export const settings = {
title: __( 'Columns' ),
title: _x( 'Columns', 'block title' ),
icon,
description: __(
'Add a block that displays content in multiple columns, then add whatever content blocks you’d like.'
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/cover/index.js
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 { cover as icon } from '@wordpress/icons';

/**
Expand All @@ -18,7 +18,7 @@ const { name } = metadata;
export { metadata, name };

export const settings = {
title: __( 'Cover' ),
title: _x( 'Cover', 'block title' ),
description: __(
'Add an image or video with a text overlay — great for headers.'
),
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/file/index.js
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 { file as icon } from '@wordpress/icons';

/**
Expand All @@ -17,7 +17,7 @@ const { name } = metadata;
export { metadata, name };

export const settings = {
title: __( 'File' ),
title: _x( 'File', 'block title' ),
description: __( 'Add a link to a downloadable file.' ),
icon,
keywords: [ __( 'document' ), __( 'pdf' ), __( 'download' ) ],
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/gallery/index.js
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 { gallery as icon } from '@wordpress/icons';

/**
Expand All @@ -18,7 +18,7 @@ const { name } = metadata;
export { metadata, name };

export const settings = {
title: __( 'Gallery' ),
title: _x( 'Gallery', 'block title' ),
description: __( 'Display multiple images in a rich gallery.' ),
icon,
keywords: [ __( 'images' ), __( 'photos' ) ],
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/group/index.js
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 { createBlock } from '@wordpress/blocks';
import { group as icon } from '@wordpress/icons';

Expand All @@ -18,7 +18,7 @@ const { name } = metadata;
export { metadata, name };

export const settings = {
title: __( 'Group' ),
title: _x( 'Group', 'block title' ),
icon,
description: __( 'Combine blocks into a group.' ),
keywords: [
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/heading/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { isEmpty } from 'lodash';
* WordPress dependencies
*/
import { heading as icon } from '@wordpress/icons';
import { __, sprintf } from '@wordpress/i18n';
import { __, _x, sprintf } from '@wordpress/i18n';

/**
* Internal dependencies
Expand All @@ -23,7 +23,7 @@ const { name } = metadata;
export { metadata, name };

export const settings = {
title: __( 'Heading' ),
title: _x( 'Heading', 'block title' ),
description: __(
'Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.'
),
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/html/index.js
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 { html as icon } from '@wordpress/icons';

/**
Expand All @@ -17,7 +17,7 @@ const { name } = metadata;
export { metadata, name };

export const settings = {
title: __( 'Custom HTML' ),
title: _x( 'Custom HTML', 'block title' ),
description: __( 'Add custom HTML code and preview it as you edit.' ),
icon,
keywords: [ __( 'embed' ) ],
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/image/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const { name } = metadata;
export { metadata, name };

export const settings = {
title: __( 'Image' ),
title: _x( 'Image', 'block title' ),
description: __( 'Insert an image to make a visual statement.' ),
icon,
keywords: [
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/latest-comments/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* WordPress dependencies
*/
import { comment as icon } from '@wordpress/icons';
import { __ } from '@wordpress/i18n';
import { __, _x } from '@wordpress/i18n';

/**
* Internal dependencies
Expand All @@ -15,7 +15,7 @@ const { name } = metadata;
export { metadata, name };

export const settings = {
title: __( 'Latest Comments' ),
title: _x( 'Latest Comments', 'block title' ),
description: __( 'Display a list of your most recent comments.' ),
icon,
keywords: [ __( 'recent comments' ) ],
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/latest-posts/index.js
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 { postList as icon } from '@wordpress/icons';

/**
Expand All @@ -15,7 +15,7 @@ const { name } = metadata;
export { metadata, name };

export const settings = {
title: __( 'Latest Posts' ),
title: _x( 'Latest Posts', 'block title' ),
description: __( 'Display a list of your most recent posts.' ),
icon,
keywords: [ __( 'recent posts' ) ],
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/list/index.js
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 { list as icon } from '@wordpress/icons';

/**
Expand All @@ -17,7 +17,7 @@ const { name } = metadata;
export { metadata, name };

export const settings = {
title: __( 'List' ),
title: _x( 'List', 'block title' ),
description: __( 'Create a bulleted or numbered list.' ),
icon,
keywords: [
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/media-text/index.js
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 { mediaAndText as icon } from '@wordpress/icons';

/**
Expand All @@ -18,7 +18,7 @@ const { name } = metadata;
export { metadata, name };

export const settings = {
title: __( 'Media & Text' ),
title: _x( 'Media & Text', 'block title' ),
description: __( 'Set media and words side-by-side for a richer layout.' ),
icon,
keywords: [ __( 'image' ), __( 'video' ) ],
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/missing/index.js
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 { getBlockType } from '@wordpress/blocks';

/**
Expand All @@ -17,7 +17,7 @@ export { metadata, name };

export const settings = {
name,
title: __( 'Unsupported' ),
title: _x( 'Unsupported', 'block title' ),
description: __( 'Your site doesn’t include support for this block.' ),
__experimentalLabel( attributes, { context } ) {
if ( context === 'accessibility' ) {
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/more/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const { name } = metadata;
export { metadata, name };

export const settings = {
title: _x( 'More', 'block name' ),
title: _x( 'More', 'block title' ),
description: __(
'Content before this block will be shown in the excerpt on your archives page.'
),
Expand Down
Loading