Add locale upgrade hint. Props nbachiyski. fixes #8729

git-svn-id: https://develop.svn.wordpress.org/trunk@11273 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-05-11 19:44:21 +00:00
parent dd0ac1d1bc
commit 5406d9d5fa
2 changed files with 9 additions and 1 deletions

View File

@ -13,6 +13,7 @@ if ( ! current_user_can('update_plugins') )
wp_die(__('You do not have sufficient permissions to update plugins for this blog.'));
function list_core_update( $update ) {
global $wp_local_package;
$version_string = 'en_US' == $update->locale ?
$update->current : sprintf("%s&ndash;<strong>%s</strong>", $update->current, $update->locale);
$current = false;
@ -50,6 +51,8 @@ function list_core_update( $update ) {
else
echo '<input id="undismiss" class="button" type="submit" value="' . esc_attr__('Bring back this update') . '" name="undismiss" />';
echo '</p>';
if ( 'en_US' != $update->locale && ( !isset($wp_local_package) || $wp_local_package != $update->locale ) )
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>';
echo '</form>';
}

View File

@ -1,4 +1,3 @@
textarea,
input,
select {
@ -2996,6 +2995,12 @@ form.upgrade {
margin-top: 8px;
}
form.upgrade .hint {
font-style: italic;
font-size: 85%;
margin: -0.5em 0 2em 0;
}
#poststuff .inside .the-tagcloud {
margin: 5px 0 10px;
padding: 8px;