WordPress.org

Making WordPress.org

Changeset 2225


Ignore:
Timestamp:
12/23/2015 08:41:21 PM (6 years ago)
Author:
coffee2code
Message:

Make home theme: Fix i18n handling.

  • Make all strings translatable.
  • Consistently use 'make-wporg' as text domain.

Fixes #1287.
Props ramiy.

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

Legend:

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

    r644 r2225  
    66    <div id="404" class="post 404">
    77
    8         <h2 class="section-title">Not Found</h2>
     8        <h2 class="section-title"><?php _e( 'Not Found', 'make-wporg' ); ?></h2>
    99        <article style="width:100%">
    10             <p>Are you looking to contribute to WordPress? Check out the <a href="//make.wordpress.org/">many ways to get involved</a>.</p>
     10            <p><?php _e( 'Are you looking to contribute to WordPress? Check out the <a href="//make.wordpress.org/">many ways to get involved</a>.', 'make-wporg' ); ?></p>
    1111        </article>
    1212    </div>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-makehome/archive-meeting.php

    r1982 r2225  
    22
    33<div class="wrapper">
    4     <h2 class="title"><?php _e('Upcoming WordPress Meetings','wporg'); ?></h2>
     4    <h2 class="title"><?php _e( 'Upcoming WordPress Meetings', 'make-wporg' ); ?></h2>
    55<table class="schedule">
    66    <thead>
    77        <tr>
    8         <th><?php _e('Team','wporg'); ?></th>
    9         <th><?php _e('Name','wporg'); ?></th>
    10         <th><?php _e('Next Meeting','wporg'); ?></th>
    11         <th><?php _e('Location','wporg'); ?></th>
     8        <th><?php _e( 'Team', 'make-wporg' ); ?></th>
     9        <th><?php _e( 'Name', 'make-wporg' ); ?></th>
     10        <th><?php _e( 'Next Meeting', 'make-wporg' ); ?></th>
     11        <th><?php _e( 'Location', 'make-wporg' ); ?></th>
    1212        </tr>
    1313    </thead>
     
    3535function wporg_makehome_time_converter_script() {
    3636    $timestrings = array(
    37         'months' => array(__('January'), __('February'), __('March'),__('April'),__('May'),__('June'),__('July'),__('August'),__('September'),__('October'),__('November'),     __('December')),
     37        'months' => array(
     38            __( 'January',   'make-wporg' ),
     39            __( 'February',  'make-wporg' ),
     40            __( 'March',     'make-wporg' ),
     41            __( 'April',     'make-wporg' ),
     42            __( 'May',       'make-wporg' ),
     43            __( 'June',      'make-wporg' ),
     44            __( 'July',      'make-wporg' ),
     45            __( 'August',    'make-wporg' ),
     46            __( 'September', 'make-wporg' ),
     47            __( 'October',   'make-wporg' ),
     48            __( 'November',  'make-wporg' ),
     49            __( 'December',  'make-wporg' )
     50        ),
    3851    );
    3952?>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-makehome/front-page.php

    r960 r2225  
    3030                    <?php the_content(); ?>
    3131                    <?php if ( $url ) : ?>
    32                         <p><a href="<?php echo esc_url( $url ); ?>">Learn more about <?php the_title(); ?> &raquo;</a></p>
     32                        <p><a href="<?php echo esc_url( $url ); ?>"><?php printf( __( 'Learn more about %s &raquo;', 'make-wporg' ), get_the_title() ); ?></a></p>
    3333                    <?php endif; ?>
    3434                </div>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-makehome/subhead.php

    r80 r2225  
    99        <form action="#" method="post">
    1010            <fieldset>
    11                 <label for="signup-email">Get news updates in your email:</label>
     11                <label for="signup-email"><?php _e( 'Get news updates in your email:', 'make-wporg' ); ?></label>
    1212                <input type="email" name="email" class="text" id="signup-email" />
    13                 <button type="submit" class="button button-primary">Sign Up</button>
     13                <button type="submit" class="button button-primary"><?php _e( 'Sign Up', 'make-wporg' ); ?></button>
    1414            </fieldset>
    1515        </form>
Note: See TracChangeset for help on using the changeset viewer.