Making WordPress.org


Ignore:
Timestamp:
01/09/2018 11:30:28 PM (6 years ago)
Author:
obenland
Message:

Main: Detach number of meetups from string

Allows for the number of meetups to change without having to translate the string again.

Props wolly.
Fixes #3288.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/front-page.php

    r6277 r6333  
    111111                <div class="container">
    112112                    <h2><?php _e( 'Community', 'wporg' ); ?></h2>
    113                     <p class="subheading"><?php _e( 'Hundreds of thousands of developers, content creators, and site owners gather at monthly meetups in 436 cities worldwide', 'wporg' ); ?>.</p>
     113                    <p class="subheading">
     114                        <?php
     115                        $meetups = 436;
     116
     117                        printf(
     118                            /* translators: Number of meetups. */
     119                            _n( 'Hundreds of thousands of developers, content creators, and site owners gather at monthly meetups in %s city worldwide.', 'Hundreds of thousands of developers, content creators, and site owners gather at monthly meetups in %s cities worldwide.', $meetups, 'wporg' ),
     120                            number_format_i18n( $meetups )
     121                        );
     122                        ?>
     123                    </p>
    114124                    <a class="button button-secondary button-large" href="https://make.wordpress.org/community/meetups-landing-page"><?php _e( 'Find a local WordPress community', 'wporg' ); ?></a>
    115125                </div>
Note: See TracChangeset for help on using the changeset viewer.