WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/03/2019 12:39:13 AM (2 months ago)
Author:
SergeyBiryukov
Message:

I18N: Capitalize translator comments consistently, add trailing punctuation.

Includes minor code layout fixes.

See #44360.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/capabilities.php

    r45812 r45932  
    8484            $post_type = get_post_type_object( $post->post_type );
    8585            if ( ! $post_type ) {
    86                 /* translators: 1: post type, 2: capability name */
     86                /* translators: 1: Post type, 2: Capability name. */
    8787                _doing_it_wrong( __FUNCTION__, sprintf( __( 'The post type %1$s is not registered, so it may not be reliable to check the capability "%2$s" against a post of that type.' ), $post->post_type, $cap ), '4.4.0' );
    8888                $caps[] = 'edit_others_posts';
     
    155155            $post_type = get_post_type_object( $post->post_type );
    156156            if ( ! $post_type ) {
    157                 /* translators: 1: post type, 2: capability name */
     157                /* translators: 1: Post type, 2: Capability name. */
    158158                _doing_it_wrong( __FUNCTION__, sprintf( __( 'The post type %1$s is not registered, so it may not be reliable to check the capability "%2$s" against a post of that type.' ), $post->post_type, $cap ), '4.4.0' );
    159159                $caps[] = 'edit_others_posts';
     
    224224            $post_type = get_post_type_object( $post->post_type );
    225225            if ( ! $post_type ) {
    226                 /* translators: 1: post type, 2: capability name */
     226                /* translators: 1: Post type, 2: Capability name. */
    227227                _doing_it_wrong( __FUNCTION__, sprintf( __( 'The post type %1$s is not registered, so it may not be reliable to check the capability "%2$s" against a post of that type.' ), $post->post_type, $cap ), '4.4.0' );
    228228                $caps[] = 'edit_others_posts';
     
    262262            $post_type = get_post_type_object( $post->post_type );
    263263            if ( ! $post_type ) {
    264                 /* translators: 1: post type, 2: capability name */
     264                /* translators: 1: Post type, 2: Capability name. */
    265265                _doing_it_wrong( __FUNCTION__, sprintf( __( 'The post type %1$s is not registered, so it may not be reliable to check the capability "%2$s" against a post of that type.' ), $post->post_type, $cap ), '4.4.0' );
    266266                $caps[] = 'edit_others_posts';
     
    10401040
    10411041// Dummy gettext calls to get strings in the catalog.
    1042 /* translators: user role for administrators */
     1042/* translators: User role for administrators. */
    10431043_x( 'Administrator', 'User role' );
    1044 /* translators: user role for editors */
     1044/* translators: User role for editors. */
    10451045_x( 'Editor', 'User role' );
    1046 /* translators: user role for authors */
     1046/* translators: User role for authors. */
    10471047_x( 'Author', 'User role' );
    1048 /* translators: user role for contributors */
     1048/* translators: User role for contributors. */
    10491049_x( 'Contributor', 'User role' );
    1050 /* translators: user role for subscriber */
     1050/* translators: User role for subscribers. */
    10511051_x( 'Subscriber', 'User role' );
Note: See TracChangeset for help on using the changeset viewer.