Add locale upgrade hint. Props nbachiyski. fixes #8729

git-svn-id: http://svn.automattic.com/wordpress/trunk@11273 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan
2009-05-11 19:44:21 +00:00
parent 83f0f5f9ef
commit e56e677ec1
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>';
}