Make WordPress Core

Changeset 11273


Ignore:
Timestamp:
05/11/2009 07:44:21 PM (16 years ago)
Author:
ryan
Message:

Add locale upgrade hint. Props nbachiyski. fixes #8729

Location:
trunk/wp-admin
Files:
2 edited

Legend:

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

    r11245 r11273  
    1414
    1515function list_core_update( $update ) {
     16    global $wp_local_package;
    1617    $version_string = 'en_US' == $update->locale ?
    1718            $update->current : sprintf("%s&ndash;<strong>%s</strong>", $update->current, $update->locale);
     
    5152            echo '<input id="undismiss" class="button" type="submit" value="' . esc_attr__('Bring back this update') . '" name="undismiss" />';
    5253    echo '</p>';
     54    if ( 'en_US' != $update->locale && ( !isset($wp_local_package) || $wp_local_package != $update->locale ) )
     55        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>';
    5356    echo '</form>';
    5457
  • trunk/wp-admin/wp-admin.css

    r11224 r11273  
    1 
    21textarea,
    32input,
     
    29972996}
    29982997
     2998form.upgrade .hint {
     2999    font-style: italic;
     3000    font-size: 85%;
     3001    margin: -0.5em 0 2em 0;
     3002}
     3003
    29993004#poststuff .inside .the-tagcloud {
    30003005    margin: 5px 0 10px;
Note: See TracChangeset for help on using the changeset viewer.