Making WordPress.org

Changeset 10128


Ignore:
Timestamp:
08/07/2020 08:09:50 PM (4 years ago)
Author:
ryelle
Message:

Plugin Directory: Fix textdomain on block namespace check

See #5303

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-block-plugin-checker.php

    r10118 r10128  
    598598                __FUNCTION__,
    599599                'error',
    600                 // translators: %s is the block name.
    601                 sprintf( __( 'Found blocks with %d different namespaces: %s.', 'wporg-plugins' ), count( $namespaces ), '<code>' . implode( ', ', $namespaces ) . '</code>' ),
     600                sprintf(
     601                    // translators: %1$d is the number of namespaces, %2$s is the list of namespaces.
     602                    __( 'Found blocks with %1$d different namespaces: %2$s.', 'wporg-plugins' ),
     603                    count( $namespaces ),
     604                    '<code>' . implode( ', ', $namespaces ) . '</code>'
     605                ),
    602606                $namespaces
    603607            );
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-block-validator.php

    r10118 r10128  
    327327                return __( 'Larger plugins will take longer to install. This is more noticeable in the Block Directory, where the user expects blocks to be added immediately. Try reducing your file size by optimizing images & SVGs, only including the assets you need (images, fonts, etc), and using core-provided JavaScript libraries.', 'wporg-plugins' );
    328328            case 'check_for_multiple_namespaces':
    329                 return __( 'Block plugins should contain a single main block. Please ensure there are no extraneous blocks included by mistake.' );
     329                return __( 'Block plugins should contain a single main block. Any children blocks should use the same namespace prefix as the main block. Please ensure there are no extraneous blocks included by mistake.', 'wporg-plugins' );
    330330            // This is a special case, since multiple values may be collapsed.
    331331            case 'check_block_json_is_valid':
Note: See TracChangeset for help on using the changeset viewer.