mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
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:
parent
83f0f5f9ef
commit
e56e677ec1
@ -13,6 +13,7 @@ if ( ! current_user_can('update_plugins') )
|
|||||||
wp_die(__('You do not have sufficient permissions to update plugins for this blog.'));
|
wp_die(__('You do not have sufficient permissions to update plugins for this blog.'));
|
||||||
|
|
||||||
function list_core_update( $update ) {
|
function list_core_update( $update ) {
|
||||||
|
global $wp_local_package;
|
||||||
$version_string = 'en_US' == $update->locale ?
|
$version_string = 'en_US' == $update->locale ?
|
||||||
$update->current : sprintf("%s–<strong>%s</strong>", $update->current, $update->locale);
|
$update->current : sprintf("%s–<strong>%s</strong>", $update->current, $update->locale);
|
||||||
$current = false;
|
$current = false;
|
||||||
@ -50,6 +51,8 @@ function list_core_update( $update ) {
|
|||||||
else
|
else
|
||||||
echo '<input id="undismiss" class="button" type="submit" value="' . esc_attr__('Bring back this update') . '" name="undismiss" />';
|
echo '<input id="undismiss" class="button" type="submit" value="' . esc_attr__('Bring back this update') . '" name="undismiss" />';
|
||||||
echo '</p>';
|
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>';
|
echo '</form>';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
textarea,
|
textarea,
|
||||||
input,
|
input,
|
||||||
select {
|
select {
|
||||||
@ -2996,6 +2995,12 @@ form.upgrade {
|
|||||||
margin-top: 8px;
|
margin-top: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
form.upgrade .hint {
|
||||||
|
font-style: italic;
|
||||||
|
font-size: 85%;
|
||||||
|
margin: -0.5em 0 2em 0;
|
||||||
|
}
|
||||||
|
|
||||||
#poststuff .inside .the-tagcloud {
|
#poststuff .inside .the-tagcloud {
|
||||||
margin: 5px 0 10px;
|
margin: 5px 0 10px;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
|
Loading…
Reference in New Issue
Block a user