WordPress.org

Make WordPress Core

Changeset 11670


Ignore:
Timestamp:
06/29/2009 08:26:16 PM (9 years ago)
Author:
ryan
Message:

Change update string to indicate if version is the original English one, or the local one. Props nbachiyski. fixes #10117 for 2.8.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.8/wp-admin/update-core.php

    r11499 r11670  
    1515function list_core_update( $update ) {
    1616    global $wp_local_package;
    17     $version_string = 'en_US' == $update->locale ?
     17    $version_string = ('en_US' == $update->locale && 'en_US' == get_locale() ) ?
    1818            $update->current : sprintf("%s&ndash;<strong>%s</strong>", $update->current, $update->locale);
    1919    $current = false;
     
    5454    if ( 'en_US' != $update->locale && ( !isset($wp_local_package) || $wp_local_package != $update->locale ) )
    5555        echo '<p class="hint">'.__('This localized version contains both the translation and various other localization fixes. You can skip upgrading if you want to keep your current translation.').'</p>';
     56    else if ( 'en_US' == $update->locale && get_locale() != 'en_US' ) {
     57        echo '<p class="hint">'.sprintf( __('You are about to install WordPress %s <strong>in English.</strong> There is a chance this upgrade will break your translation. You may prefer to wait for the localized version to be released.'), $update->current ).'</p>';
     58    }
    5659    echo '</form>';
    5760
Note: See TracChangeset for help on using the changeset viewer.