Making WordPress.org


Ignore:
Timestamp:
01/26/2016 11:41:27 PM (9 years ago)
Author:
coffee2code
Message:

W.org Showcase: Pass all strings through i18n functions.

Props ramiy, coffee2code.
Fixes #1507.

File:
1 edited

Legend:

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

    r1474 r2376  
    2626<?php if ( $_POST && ! $error ) : ?>
    2727    <div id="return">
    28     <h3>Submitted!</h3>
    29     <p>Thanks! You have successfully submitted a site for consideration to be added to the WordPress Showcase. If the site you submitted is added, you will be contacted via email within one week. We appreciate your interest in the WordPress Showcase! If you'd like to submit another site, head back to the <a href="http://wordpress.org/showcase/submit-a-wordpress-site/">submission form</a>.</p>
     28    <h3><?php _e( 'Submitted!', 'wporg-showcase' ); ?></h3>
     29    <p><?php printf( __( 'Thanks! You have successfully submitted a site for consideration to be added to the WordPress Showcase. If the site you submitted is added, you will be contacted via email within one week. We appreciate your interest in the WordPress Showcase! If you\'d like to submit another site, head back to the <a href="%s">submission form</a>.', 'wporg-showcase' ), 'https://wordpress.org/showcase/submit-a-wordpress-site/' ); ?></p>
    3030    </div>
    3131<?php endif; // $_POST && ! $error ?>
     
    4848?>
    4949
    50     <?php if ( $error ) : ?>       
    51         <h3 id="return">Whoops!</h3>
     50    <?php if ( $error ) : ?>
     51        <h3 id="return"><?php _e( 'Whoops!', 'wporg-showcase' ); ?></h3>
    5252       
    5353        <?php if ( strstr( $url, 'blogspot.com' ) || strstr( $url, 'blogger.com' ) ) : ?>
    54             <p>Please submit a WordPress blog URL. Blogspot/Blogger blogs are not accepted.</p>
     54            <p><?php _e( 'Please submit a WordPress blog URL. Blogspot/Blogger blogs are not accepted.', 'wporg-showcase' ); ?></p>
    5555   
    5656        <?php elseif ( $site_detected == "NO" ) : ?>
    57             <p>We didn't detect WordPress at the given URL. Please submit the URL of a site running WordPress.</p>
     57            <p><?php _e( 'We didn\'t detect WordPress at the given URL. Please submit the URL of a site running WordPress.', 'wporg-showcase' ); ?></p>
    5858       
    5959        <?php elseif ( $site_detected == "YES" && version_compare($site_version, $latest_release, '<' ) ) : ?>
    60             <p>We were unable to detect the latest version of WordPress at the given URL.
    61             We'd prefer submissions to the showcase to be running up-to-date versions of WordPress.</p>
    62             <p>If you're sure the site is running the latest version of WordPress, then please
    63             check the URL to make sure it's accurate, and that the URL you submit points directly
    64             to the location where WordPress is running.</p>
     60            <p><?php _e( 'We were unable to detect the latest version of WordPress at the given URL. We\'d prefer submissions to the showcase to be running up-to-date versions of WordPress.', 'wporg-showcase' ); ?></p>
     61            <p><?php _e( 'If you\'re sure the site is running the latest version of WordPress, then please check the URL to make sure it\'s accurate, and that the URL you submit points directly to the location where WordPress is running.', 'wporg-showcase' ); ?></p>
    6562       
    6663        <?php else : ?>
    67             <p>There seems to have been a problem with the information you entered. Please make sure
    68             all fields have data and resubmit.</p>
     64            <p><?php _e( 'There seems to have been a problem with the information you entered. Please make sure all fields have data and resubmit.', 'wporg-showcase' ); ?></p>
    6965   
    7066        <?php endif; ?>
     
    7571    <input type="hidden" name="comment_post_ID" value="<?php echo $post->ID; ?>" />
    7672
    77     <p><label for="submitname"><?php _e('Your Name'); ?></label><br />
     73    <p><label for="submitname"><?php _e( 'Your Name', 'wporg-showcase' ); ?></label><br />
    7874    <input type="text" name="submitname" id="submitname" class="text" value="<?php echo esc_attr( $submitname ); ?>" size="28" tabindex="1" /></p>
    7975
    80     <p><label for="email"><?php _e('Your E-mail'); ?></label><br />
     76    <p><label for="email"><?php _e( 'Your E-mail', 'wporg-showcase'); ?></label><br />
    8177    <input type="text" name="email" id="email" value="<?php echo esc_attr( $email ); ?>" size="28" tabindex="2" class="text" /></p>
    8278
    83     <p><label for="url"><?php _e('Site URL'); ?></label><br />
     79    <p><label for="url"><?php _e( 'Site URL', 'wporg-showcase' ); ?></label><br />
    8480    <input type="text" name="url" id="url" value="<?php echo esc_url( $url ); ?>" size="28" tabindex="3" class="text" /></p>
    8581
    86     <p><label for="owner"><?php _e("Do you own this site? (It's okay if you don't - we just want to know for contact purposes.)"); ?></label><br />
     82    <p><label for="owner"><?php _e( "Do you own this site? (It's okay if you don't - we just want to know for contact purposes.)", 'wporg-showcase' ); ?></label><br />
    8783    <select name="owner" id="owner">
    88         <option value="yes" <?php selected( $owner, 'yes' ); ?> ><?php _e( 'Yes' ); ?></option>
    89         <option value="no" <?php selected( $owner, 'no' ); ?> ><?php _e( 'No' ); ?></option>
     84        <option value="yes" <?php selected( $owner, 'yes' ); ?> ><?php _e( 'Yes', 'wporg-showcase' ); ?></option>
     85        <option value="no" <?php selected( $owner, 'no' ); ?> ><?php _e( 'No', 'wporg-showcase' ); ?></option>
    9086    </select>
    9187
    92     <p><label for="description"><?php _e( 'Please describe the site and, if applicable, the person or organization it represents.' ); ?></label><br />
     88    <p><label for="description"><?php _e( 'Please describe the site and, if applicable, the person or organization it represents.', 'wporg-showcase' ); ?></label><br />
    9389    <textarea name="description" id="description" cols="60" rows="4" tabindex="4" class="text"><?php echo esc_textarea( $description ); ?></textarea></p>
    9490
    95     <p><label for="why"><?php _e( 'What justifies this site being added to the WordPress Showcase? What makes it unique or interesting?' ); ?></label><br />
     91    <p><label for="why"><?php _e( 'What justifies this site being added to the WordPress Showcase? What makes it unique or interesting?', 'wporg-showcase' ); ?></label><br />
    9692    <textarea name="why" id="why" cols="60" rows="4" tabindex="5" class="text"><?php echo esc_textarea( $why ); ?></textarea></p>
    9793
    98     <p class="required">* All fields are required.</p>
     94    <p class="required"><?php _e( '* All fields are required.', 'wporg-showcase' ); ?></p>
    9995
    10096    <?php
     
    114110    ?>
    115111   
    116     <p><input id="submit" type="submit" tabindex="6" value="<?php _e('Submit Site'); ?>" class="button" /></p>
     112    <p><input id="submit" type="submit" tabindex="6" value="<?php esc_attr_e( 'Submit Site', 'wporg-showcase' ); ?>" class="button" /></p>
    117113    <?php do_action( 'comment_form', $post->ID ); ?>
    118114</form>
Note: See TracChangeset for help on using the changeset viewer.