Skip to content

Commit 5406d9d

Browse files
committed
Add locale upgrade hint. Props nbachiyski. fixes WordPress#8729
git-svn-id: https://develop.svn.wordpress.org/trunk@11273 602fd350-edb4-49c9-b593-d223f7449a82
1 parent dd0ac1d commit 5406d9d

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

wp-admin/update-core.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
wp_die(__('You do not have sufficient permissions to update plugins for this blog.'));
1414

1515
function 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);
1819
$current = false;
@@ -50,6 +51,8 @@ function list_core_update( $update ) {
5051
else
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

5558
}

wp-admin/wp-admin.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
textarea,
32
input,
43
select {
@@ -2996,6 +2995,12 @@ form.upgrade {
29962995
margin-top: 8px;
29972996
}
29982997

2998+
form.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;
30013006
padding: 8px;

0 commit comments

Comments
 (0)