Making WordPress.org

Changeset 4426


Ignore:
Timestamp:
11/27/2016 08:07:40 AM (8 years ago)
Author:
dd32
Message:

Use _n() on some strings to aid with translation into languages such as Russian.

See #2268

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-forums/functions.php

    r4219 r4426  
    266266            $notice = sprintf(
    267267                /* translators: %d: number of hours */
    268                 __( 'This post has been held for moderation by our automated system. It will be reviewed within %d hours.', 'wporg-forums' ),
     268                _n( 'This post has been held for moderation by our automated system. It will be reviewed within %d hour.', 'This post has been held for moderation by our automated system. It will be reviewed within %d hours.', 72, 'wporg-forums' ),
    269269                72
    270270            );
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/header.php

    r3734 r4426  
    3232                    <p class="site-description">
    3333                        <?php
    34                         /* Translators: Total number of plugins. */
    35                         printf( __( 'Extend your WordPress experience with %s plugins.', 'wporg-plugins' ), number_format_i18n( wp_count_posts( 'plugin' )->publish ) );
     34                        $plugin_count = wp_count_posts( 'plugin' )->publish;
     35                        printf(
     36                            /* Translators: Total number of plugins. */
     37                            _n( 'Extend your WordPress experience with %s plugin.', 'Extend your WordPress experience with %s plugins.', $plugin_count, 'wporg-plugins' ),
     38                            number_format_i18n( $plugin_count )
     39                        );
    3640                        ?>
    3741                    </p>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/functions.php

    r4352 r4426  
    259259            $notice = sprintf(
    260260                /* translators: %d: number of hours */
    261                 __( 'This post has been held for moderation by our automated system. It will be reviewed within %d hours.', 'wporg-forums' ),
     261                _n( 'This post has been held for moderation by our automated system. It will be reviewed within %d hour.', 'This post has been held for moderation by our automated system. It will be reviewed within %d hours.', 72, 'wporg-forums' ),
    262262                72
    263263            );
Note: See TracChangeset for help on using the changeset viewer.