Making WordPress.org

Changeset 6887


Ignore:
Timestamp:
03/19/2018 04:59:18 AM (7 years ago)
Author:
dd32
Message:

Main: Always place the % sign within the translated string, as some languages need to move the positioning and spacing.

H/t tobifjellner.
See https://en.wikipedia.org/wiki/Percent_sign#Spacing
See #3046.

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

Legend:

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

    r6333 r6887  
    5050                    <?php
    5151                    printf(
    52                         /* translators: WordPress market share: 29%; */
    53                         __( '%s of the web uses WordPress, from hobby blogs to the biggest news sites online.', 'wporg' ),
    54                         WP_MARKET_SHARE . '%'
     52                        /* translators: WordPress market share: 30 - Note: The following percent sign is '%%' for escaping purposes; */
     53                        __( '%s%% of the web uses WordPress, from hobby blogs to the biggest news sites online.', 'wporg' ),
     54                        number_format_i18n( WP_MARKET_SHARE )
    5555                    );
    5656                    ?>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/inc/page-meta-descriptions.php

    r6879 r6887  
    3838        case 'page-about-features.php':
    3939            $title = esc_html__( 'WordPress Features', 'wporg' );
    40             /* translators: WordPress market share: 30%; */
    41             $desc  = sprintf( esc_html__( 'Discover why WordPress powers more than %s of the web. WordPress is a simple, flexible, user-friendly platform, with key features that include media management, SEO, and endless options for customization. More than 50,000 plugins extend the core functionality of WordPress even more. Build your site today.', 'wporg' ), WP_MARKET_SHARE . '%' );
     40            /* translators: 1: WordPress market share: 30 - Note: The following percent sign is '%%' for escaping purposes; 2: Number of WordPress.org hosted plugins; */
     41            $desc  = sprintf( esc_html__( 'Discover why WordPress powers more than %1$s%% of the web. WordPress is a simple, flexible, user-friendly platform, with key features that include media management, SEO, and endless options for customization. More than %2$s plugins extend the core functionality of WordPress even more. Build your site today.', 'wporg' ), number_format_i18n( WP_MARKET_SHARE ), number_format_i18n( 50000 ) );
    4242            break;
    4343
    4444        case 'page-about-history.php':
    4545            $title = esc_html__( 'The History of WordPress', 'wporg' );
    46             /* translators: WordPress market share: 30%; */
    47             $desc  = sprintf( esc_html__( 'WordPress currently powers more than %s of the web. How did it grow to become the world&#8217;s leading web publishing platform? Learn about the history of WordPress: an open source software project built by an active community of contributors who are passionate about collaboration, empowerment, and the open web.', 'wporg' ), WP_MARKET_SHARE . '%' );
     46            /* translators: WordPress market share: 30 - Note: The following percent sign is '%%' for escaping purposes; */
     47            $desc  = sprintf( esc_html__( 'WordPress currently powers more than %s%% of the web. How did it grow to become the world&#8217;s leading web publishing platform? Learn about the history of WordPress: an open source software project built by an active community of contributors who are passionate about collaboration, empowerment, and the open web.', 'wporg' ), number_format_i18n( WP_MARKET_SHARE ) );
    4848            break;
    4949
     
    8080        case 'page-about-security.php':
    8181            $title = esc_html__( 'WordPress is Secure', 'wporg' );
    82             /* translators: WordPress market share: 30%; */
    83             $desc  = sprintf( esc_html__( 'Why is WordPress recommended as a secure website-building solution? With a passionate open source community and an extensible, easy-to-use platform, WordPress provides flexible and secure options for all levels of users, from beginners to pros. Learn how WordPress guarantees the security of %s of the web.', 'wporg' ), WP_MARKET_SHARE . '%' );
     82            /* translators: WordPress market share: 30 - Note: The following percent sign is '%%' for escaping purposes; */
     83            $desc  = sprintf( esc_html__( 'Why is WordPress recommended as a secure website-building solution? With a passionate open source community and an extensible, easy-to-use platform, WordPress provides flexible and secure options for all levels of users, from beginners to pros. Learn how WordPress guarantees the security of %s%% of the web.', 'wporg' ), number_format_i18n( WP_MARKET_SHARE ) );
    8484            break;
    8585
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-features.php

    r6878 r6887  
    4444                    <p>
    4545                        <?php
    46                         /* translators: WordPress market share: 29%; */
    47                         printf( esc_html__( 'WordPress powers more than %s of the web &mdash; a figure that rises every day. Everything from simple websites, to blogs, to complex portals and enterprise websites, and even applications, are built with WordPress.', 'wporg' ), esc_html( WP_MARKET_SHARE . '%' ) );
     46                        /* translators: WordPress market share: 30 - Note: The following percent sign is '%%' for escaping purposes; */
     47                        printf( esc_html__( 'WordPress powers more than %s%% of the web &mdash; a figure that rises every day. Everything from simple websites, to blogs, to complex portals and enterprise websites, and even applications, are built with WordPress.', 'wporg' ), number_format_i18n( WP_MARKET_SHARE ) );
    4848                        ?>
    4949                    </p>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about.php

    r6879 r6887  
    103103                    <p>
    104104                        <?php
    105                         /* translators: 1: Link to b2/cafelog; 2: WordPress market share: 29%; */
    106                         printf( wp_kses_post( __( 'WordPress started in 2003 when Mike Little and Matt Mullenweg created a <a href="%1$s">fork of b2/cafelog</a>. The need for an elegant, well-architected personal publishing system was clear even then. Today, WordPress is built on PHP and MySQL, and licensed under the GPLv2. It is also the platform of choice for over %2$s of all sites across the web.', 'wporg' ) ), esc_url( 'https://www.whoishostingthis.com/resources/b2-cafelog/' ), esc_html( WP_MARKET_SHARE . '%' ) );
     105                        /* translators: 1: Link to b2/cafelog; 2: WordPress market share: 30 - Note: The following percent sign is '%%' for escaping purposes; */
     106                        printf( wp_kses_post( __( 'WordPress started in 2003 when Mike Little and Matt Mullenweg created a <a href="%1$s">fork of b2/cafelog</a>. The need for an elegant, well-architected personal publishing system was clear even then. Today, WordPress is built on PHP and MySQL, and licensed under the GPLv2. It is also the platform of choice for over %2$s%% of all sites across the web.', 'wporg' ) ), esc_url( 'https://www.whoishostingthis.com/resources/b2-cafelog/' ), number_format_i18n( WP_MARKET_SHARE ) );
    107107                        ?>
    108108                    </p>
Note: See TracChangeset for help on using the changeset viewer.