Making WordPress.org


Ignore:
Timestamp:
02/24/2017 06:30:31 PM (9 years ago)
Author:
coffee2code
Message:

Plugin Directory: i18n cleanup.

Props SergeyBiryukov.
Fixes #2534.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-customizations.php

    r4401 r5001  
    8181
    8282                if ( $num_posts && $num_posts->publish ) {
    83                         $text             = sprintf( _n( '%s Plugin', '%s Plugins', $num_posts->publish ), number_format_i18n( $num_posts->publish ) );
     83                        $text             = sprintf( _n( '%s Plugin', '%s Plugins', $num_posts->publish, 'wporg-plugins' ), number_format_i18n( $num_posts->publish ) );
    8484                        $post_type_object = get_post_type_object( $post_type );
    8585
     
    198198                                'setting' => 'wporg-plugins',
    199199                                'code'    => 'plugins-bulk-rejected',
    200                                 'message' => sprintf( _n( '1 plugin rejected.', '%d plugins rejected.', $rejected, 'wporg-plugins' ), $rejected ),
     200                                'message' => sprintf( _n( '%d plugin rejected.', '%d plugins rejected.', $rejected, 'wporg-plugins' ), $rejected ),
    201201                                'type'    => 'updated',
    202202                        ) ) );
     
    528528                        'in_moderation'        => $counts->moderated,
    529529                        'i18n_comments_text'   => sprintf(
    530                                 _n( '%s Comment', '%s Comments', $counts->approved ),
     530                                _n( '%s Comment', '%s Comments', $counts->approved, 'wporg-plugins' ),
    531531                                number_format_i18n( $counts->approved )
    532532                        ),
    533533                        'i18n_moderation_text' => sprintf(
    534                                 _nx( '%s in moderation', '%s in moderation', $counts->moderated, 'comments' ),
     534                                _nx( '%s in moderation', '%s in moderation', $counts->moderated, 'comments', 'wporg-plugins' ),
    535535                                number_format_i18n( $counts->moderated )
    536536                        )
Note: See TracChangeset for help on using the changeset viewer.