Make WordPress Core

Ticket #50278: 50278-i18n.diff

File 50278-i18n.diff, 1.2 KB (added by gziolo, 5 years ago)

Translation context added

  • src/wp-admin/includes/post.php

     
    21792179function get_block_categories( $post ) {
    21802180        $default_categories = array(
    21812181                array(
    2182                         'slug'  => 'common',
    2183                         'title' => __( 'Common Blocks' ),
     2182                        'slug'  => 'text',
     2183                        'title' => _x( 'Text', 'block category' ),
    21842184                        'icon'  => null,
    21852185                ),
    21862186                array(
    2187                         'slug'  => 'formatting',
    2188                         'title' => __( 'Formatting' ),
     2187                        'slug'  => 'media',
     2188                        'title' => _x( 'Media', 'block category' ),
    21892189                        'icon'  => null,
    21902190                ),
    21912191                array(
    2192                         'slug'  => 'layout',
    2193                         'title' => __( 'Layout Elements' ),
     2192                        'slug'  => 'design',
     2193                        'title' => _x( 'Design', 'block category' ),
    21942194                        'icon'  => null,
    21952195                ),
    21962196                array(
    21972197                        'slug'  => 'widgets',
    2198                         'title' => __( 'Widgets' ),
     2198                        'title' => _x( 'Widgets', 'block category' ),
    21992199                        'icon'  => null,
    22002200                ),
    22012201                array(
    22022202                        'slug'  => 'embed',
    2203                         'title' => __( 'Embeds' ),
     2203                        'title' => _x( 'Embeds', 'block category' ),
    22042204                        'icon'  => null,
    22052205                ),
    22062206                array(
    22072207                        'slug'  => 'reusable',
    2208                         'title' => __( 'Reusable Blocks' ),
     2208                        'title' => _x( 'Reusable Blocks', 'block category' ),
    22092209                        'icon'  => null,
    22102210                ),
    22112211        );