WordPress.org

Make WordPress Core

Changeset 19140


Ignore:
Timestamp:
11/03/2011 11:55:03 PM (10 years ago)
Author:
nacin
Message:

Yank version numbers out of translated strings. TODO decide whether this should be major version only, which probably means about.php should also contain text about x.y vs x.y.z. see #18742.

Location:
trunk/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/about.php

    r19138 r19140  
    1313$parent_file = 'index.php';
    1414
     15list( $display_version ) = explode( '-', $wp_version );
     16
    1517include( './admin-header.php' );
    1618?>
    1719<div class="wrap about-wrap">
    1820
    19 <h1><?php _e( 'Welcome to WordPress 3.3!' ); ?></h1>
     21<h1><?php printf( __( 'Welcome to WordPress %s!' ), $display_version ); ?></h1>
    2022
    2123<div class="about-text"><?php _e( 'WordPress is web software you can use to create a beautiful website or blog. We like to say that WordPress is both free and priceless at the same time.' ); ?></div>
    2224
    23 <div class="wp-badge"><?php _e( 'Version 3.3' ); ?></div>
     25<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
    2426
    2527<h2 class="nav-tab-wrapper">
    2628    <a href="about.php" class="nav-tab nav-tab-active">
    27         <?php _e( 'What&#8217;s New in 3.3' ); ?>
     29        <?php printf( __( 'What&#8217;s New in %s' ), $display_version ); ?>
    2830    </a><a href="credits.php" class="nav-tab">
    2931        <?php _e( 'Credits' ); ?>
  • trunk/wp-admin/credits.php

    r19136 r19140  
    7979}
    8080
     81list( $display_version ) = explode( '-', $wp_version );
     82
    8183include( './admin-header.php' );
    8284?>
    8385<div class="wrap about-wrap">
    8486
    85 <h1><?php _e( 'Welcome to WordPress 3.3!' ); ?></h1>
     87<h1><?php printf( __( 'Welcome to WordPress %s!' ), $display_version ); ?></h1>
    8688
    8789<div class="about-text"><?php _e( 'WordPress is web software you can use to create a beautiful website or blog. We like to say that WordPress is both free and priceless at the same time.' ); ?></div>
    8890
    89 <div class="wp-badge"><?php _e( 'Version 3.3' ); ?></div>
     91<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
    9092
    9193<h2 class="nav-tab-wrapper">
    92     <a href="about.php" class="nav-tab">
    93         <?php _e( 'What&#8217;s New in 3.3' ); ?>
     94    <a href="about.php" class="nav-tab nav-tab-active">
     95        <?php printf( __( 'What&#8217;s New in %s' ), $display_version ); ?>
    9496    </a><a href="credits.php" class="nav-tab nav-tab-active">
    9597        <?php _e( 'Credits' ); ?>
  • trunk/wp-admin/freedoms.php

    r19136 r19140  
    1313$parent_file = 'index.php';
    1414
     15list( $display_version ) = explode( '-', $wp_version );
     16
    1517include( './admin-header.php' );
    1618?>
    1719<div class="wrap about-wrap">
    1820
    19 <h1><?php _e( 'Welcome to WordPress 3.3!' ); ?></h1>
     21<h1><?php printf( __( 'Welcome to WordPress %s!' ), $display_version ); ?></h1>
    2022
    2123<div class="about-text"><?php _e( 'WordPress is web software you can use to create a beautiful website or blog. We like to say that WordPress is both free and priceless at the same time.' ); ?></div>
    2224
    23 <div class="wp-badge"><?php _e( 'Version 3.3' ); ?></div>
     25<div class="wp-badge"><?php printf( __( 'Version %s' ), $display_version ); ?></div>
    2426
    2527<h2 class="nav-tab-wrapper">
    26     <a href="about.php" class="nav-tab">
    27         <?php _e( 'What&#8217;s New in 3.3' ); ?>
     28    <a href="about.php" class="nav-tab nav-tab-active">
     29        <?php printf( __( 'What&#8217;s New in %s' ), $display_version ); ?>
    2830    </a><a href="credits.php" class="nav-tab">
    2931        <?php _e( 'Credits' ); ?>
Note: See TracChangeset for help on using the changeset viewer.