_n_noop example

$counts = wp_count_sites();

        $statuses = array(
            /* translators: %s: Number of sites. */
            'all'      => _nx_noop(
                'All <span class="count">(%s)</span>',
                'All <span class="count">(%s)</span>',
                'sites'
            ),

            /* translators: %s: Number of sites. */
            'public'   => _n_noop(
                'Public <span class="count">(%s)</span>',
                'Public <span class="count">(%s)</span>'
            ),

            /* translators: %s: Number of sites. */
            'archived' => _n_noop(
                'Archived <span class="count">(%s)</span>',
                'Archived <span class="count">(%s)</span>'
            ),

            /* translators: %s: Number of sites. */
            
array(
                'no_media_selected'          => __( 'No audio selected' ),
                'add_media'                  => _x( 'Add Audio', 'label for button in the audio widget' ),
                'replace_media'              => _x( 'Replace Audio', 'label for button in the audio widget; should preferably not be longer than ~13 characters long' ),
                'edit_media'                 => _x( 'Edit Audio', 'label for button in the audio widget; should preferably not be longer than ~13 characters long' ),
                'missing_attachment'         => sprintf(
                    /* translators: %s: URL to media library. */
                    __( 'That audio file cannot be found. Check your <a href="%s">media library</a> and make sure it was not deleted.' ),
                    esc_url( admin_url( 'upload.php' ) )
                ),
                /* translators: %d: Widget count. */
                'media_library_state_multi'  => _n_noop( 'Audio Widget (%d)', 'Audio Widget (%d)' ),
                'media_library_state_single' => __( 'Audio Widget' ),
                'unsupported_file_type'      => __( 'Looks like this is not the correct kind of file. Please link to an audio file instead.' ),
            )
        );
    }

    /** * Get schema for properties of a widget instance (item). * * @since 4.8.0 * * @see WP_REST_Controller::get_item_schema() * @see WP_REST_Controller::get_additional_fields() * @link https://core.trac.wordpress.org/ticket/35574 * * @return array Schema for properties. */
__( 'Security Releases' );

__( 'Maintenance and Security Release' );
__( 'Maintenance and Security Releases' );

/* translators: %s: WordPress version number. */
__( '<strong>Version %s</strong> addressed one security issue.' );
/* translators: %s: WordPress version number. */
__( '<strong>Version %s</strong> addressed some security issues.' );

/* translators: 1: WordPress version number, 2: Plural number of bugs. */
_n_noop(
    '<strong>Version %1$s</strong> addressed %2$s bug.',
    '<strong>Version %1$s</strong> addressed %2$s bugs.'
);

/* translators: 1: WordPress version number, 2: Plural number of bugs. Singular security issue. */
_n_noop(
    '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bug.',
    '<strong>Version %1$s</strong> addressed a security issue and fixed %2$s bugs.'
);

/* translators: 1: WordPress version number, 2: Plural number of bugs. More than one security issue. */
'no_media_selected'          => __( 'No media selected' ),
            'add_media'                  => _x( 'Add Media', 'label for button in the media widget' ),
            'replace_media'              => _x( 'Replace Media', 'label for button in the media widget; should preferably not be longer than ~13 characters long' ),
            'edit_media'                 => _x( 'Edit Media', 'label for button in the media widget; should preferably not be longer than ~13 characters long' ),
            'add_to_widget'              => __( 'Add to Widget' ),
            'missing_attachment'         => sprintf(
                /* translators: %s: URL to media library. */
                __( 'That file cannot be found. Check your <a href="%s">media library</a> and make sure it was not deleted.' ),
                esc_url( admin_url( 'upload.php' ) )
            ),
            /* translators: %d: Widget count. */
            'media_library_state_multi'  => _n_noop( 'Media Widget (%d)', 'Media Widget (%d)' ),
            'media_library_state_single' => __( 'Media Widget' ),
            'unsupported_file_type'      => __( 'Looks like this is not the correct kind of file. Please link to an appropriate file instead.' ),
        );

        return self::$l10n_defaults;
    }
}
array(
                'no_media_selected'          => __( 'No video selected' ),
                'add_media'                  => _x( 'Add Video', 'label for button in the video widget' ),
                'replace_media'              => _x( 'Replace Video', 'label for button in the video widget; should preferably not be longer than ~13 characters long' ),
                'edit_media'                 => _x( 'Edit Video', 'label for button in the video widget; should preferably not be longer than ~13 characters long' ),
                'missing_attachment'         => sprintf(
                    /* translators: %s: URL to media library. */
                    __( 'That video cannot be found. Check your <a href="%s">media library</a> and make sure it was not deleted.' ),
                    esc_url( admin_url( 'upload.php' ) )
                ),
                /* translators: %d: Widget count. */
                'media_library_state_multi'  => _n_noop( 'Video Widget (%d)', 'Video Widget (%d)' ),
                'media_library_state_single' => __( 'Video Widget' ),
                /* translators: %s: A list of valid video file extensions. */
                'unsupported_file_type'      => sprintf( __( 'Sorry, the video at the supplied URL cannot be loaded. Please check that the URL is for a supported video file (%s) or stream (e.g. YouTube and Vimeo).' ), '<code>.' . implode( '</code>, <code>.', wp_get_video_extensions() ) . '</code>' ),
            )
        );
    }

    /** * Get schema for properties of a widget instance (item). * * @since 4.8.0 * * @see WP_REST_Controller::get_item_schema() * @see WP_REST_Controller::get_additional_fields() * @link https://core.trac.wordpress.org/ticket/35574 * * @return array Schema for properties. */
array(
                'no_media_selected'          => __( 'No image selected' ),
                'add_media'                  => _x( 'Add Image', 'label for button in the image widget' ),
                'replace_media'              => _x( 'Replace Image', 'label for button in the image widget; should preferably not be longer than ~13 characters long' ),
                'edit_media'                 => _x( 'Edit Image', 'label for button in the image widget; should preferably not be longer than ~13 characters long' ),
                'missing_attachment'         => sprintf(
                    /* translators: %s: URL to media library. */
                    __( 'That image cannot be found. Check your <a href="%s">media library</a> and make sure it was not deleted.' ),
                    esc_url( admin_url( 'upload.php' ) )
                ),
                /* translators: %d: Widget count. */
                'media_library_state_multi'  => _n_noop( 'Image Widget (%d)', 'Image Widget (%d)' ),
                'media_library_state_single' => __( 'Image Widget' ),
            )
        );
    }

    /** * Get schema for properties of a widget instance (item). * * @since 4.8.0 * * @see WP_REST_Controller::get_item_schema() * @see WP_REST_Controller::get_additional_fields() * @link https://core.trac.wordpress.org/ticket/35574 * * @return array Schema for properties. */


/** * Register plural strings in POT file, but don't translate them. * * @since 2.5.0 * @deprecated 2.8.0 Use _n_noop() * @see _n_noop() */
function __ngettext_noop( ...$args ) { // phpcs:ignore PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore     _deprecated_function( __FUNCTION__, '2.8.0', '_n_noop()' );
    return _n_noop( ...$args );

}

/** * Retrieve all autoload options, or all options if no autoloaded ones exist. * * @since 1.0.0 * @deprecated 3.0.0 Use wp_load_alloptions()) * @see wp_load_alloptions() * * @return array List of all options. */
return $return;
    }

    // Juggle topic counts.     if ( isset( $args['topic_count_text'] ) ) {
        // First look for nooped plural support via topic_count_text.         $translate_nooped_plural = $args['topic_count_text'];
    } elseif ( ! empty( $args['topic_count_text_callback'] ) ) {
        // Look for the alternative callback style. Ignore the previous default.         if ( 'default_topic_count_text' === $args['topic_count_text_callback'] ) {
            /* translators: %s: Number of items (tags). */
            $translate_nooped_plural = _n_noop( '%s item', '%s items' );
        } else {
            $translate_nooped_plural = false;
        }
    } elseif ( isset( $args['single_text'] ) && isset( $args['multiple_text'] ) ) {
        // If no callback exists, look for the old-style single_text and multiple_text arguments.         // phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralSingle,WordPress.WP.I18n.NonSingularStringLiteralPlural         $translate_nooped_plural = _n_noop( $args['single_text']$args['multiple_text'] );
    } else {
        // This is the default for when no callback, plural, or argument is passed in.         /* translators: %s: Number of items (tags). */
        $translate_nooped_plural = _n_noop( '%s item', '%s items' );
    }

        )
    );

    register_post_status(
        'publish',
        array(
            'label'       => _x( 'Published', 'post status' ),
            'public'      => true,
            '_builtin'    => true, /* internal use only. */
            /* translators: %s: Number of published posts. */
            'label_count' => _n_noop(
                'Published <span class="count">(%s)</span>',
                'Published <span class="count">(%s)</span>'
            ),
        )
    );

    register_post_status(
        'future',
        array(
            'label'       => _x( 'Scheduled', 'post status' ),
            'protected'   => true,
            
Home | Imprint | This part of the site doesn't use cookies.