i18n plurals fixes from nbachiyski. fixes #8142

git-svn-id: http://svn.automattic.com/wordpress/trunk@9668 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-11-13 20:59:32 +00:00
parent 83dce74554
commit 63c5ee4199
9 changed files with 17 additions and 13 deletions

View File

@ -9,7 +9,7 @@
.post-com-count {
background-image: url(../images/bubble_bg-rtl.gif);
}
#adminmenu li a #awaiting-mod {
#adminmenu li a #awaiting-mod, #adminmenu li a #update-plugins {
background-image: url(../images/comment-stalk-rtl.gif);
}
#upload-menu li.current {

View File

@ -448,11 +448,12 @@ body.press-this .ui-tabs-selected a:hover {
color: #d54e21;
}
#adminmenu li a #awaiting-mod {
#adminmenu li a #awaiting-mod, #adminmenu li a #update-plugins {
background-image: url(../images/comment-stalk-fresh.gif);
}
#adminmenu li a #awaiting-mod span,
#adminmenu li a #update-plugins span,
#sidemenu li a #update-plugins span,
#rightnow .reallynow,
#plugin-information .action-button {
@ -461,6 +462,7 @@ body.press-this .ui-tabs-selected a:hover {
}
#adminmenu li a:hover #awaiting-mod span,
#adminmenu li a:hover #update-plugins span,
#sidemenu li a:hover #update-plugins span {
background-color: #264761;
}

View File

@ -12,7 +12,7 @@
background-image: url(../images/bubble_bg-rtl.gif);
}
#adminmenu li a #awaiting-mod {
#adminmenu li a #awaiting-mod, #adminmenu li a #update-plugins {
background-image: url(../images/comment-stalk-rtl.gif);
}

View File

@ -461,11 +461,12 @@ body.press-this .ui-tabs-selected a:hover {
color: #d54e21;
}
#adminmenu li a #awaiting-mod {
#adminmenu li a #awaiting-mod, #adminmenu li a #update-plugins {
background-image: url(../images/comment-stalk-fresh.gif);
}
#adminmenu li a #awaiting-mod span,
#adminmenu li a #update-plugins span,
#sidemenu li a #update-plugins span,
#rightnow .reallynow,
#plugin-information .action-button {
@ -474,6 +475,7 @@ body.press-this .ui-tabs-selected a:hover {
}
#adminmenu li a:hover #awaiting-mod span,
#adminmenu li a:hover #update-plugins span,
#sidemenu li a:hover #update-plugins span {
background-color: #264761;
}

View File

@ -463,7 +463,7 @@ function install_plugin_information() {
<?php endif; if ( ! empty($api->tested) ) : ?>
<li><strong><?php _e('Compatible up to:') ?></strong> <?php echo $api->tested ?></li>
<?php endif; if ( ! empty($api->downloaded) ) : ?>
<li><strong><?php _e('Downloaded:') ?></strong> <?php printf('%s times', number_format_i18n($api->downloaded)) ?></li>
<li><strong><?php _e('Downloaded:') ?></strong> <?php printf(__ngettext('%s time', '%s times', $api->downloaded), number_format_i18n($api->downloaded)) ?></li>
<?php endif; if ( ! empty($api->slug) ) : ?>
<li><a target="_blank" href="http://wordpress.org/extend/plugins/<?php echo $api->slug ?>/"><?php _e('WordPress.org Plugin Page &#187;') ?></a></li>
<?php endif; if ( ! empty($api->homepage) ) : ?>

View File

@ -272,8 +272,7 @@ if ( $links ) {
$(document).ready(function(){
$('#doaction, #doaction2').click(function(){
if ( $('select[name^="action"]').val() == 'delete' ) {
var n = $('table.widefat input[type="checkbox"]:checked').length;
var m = n > 1 ? '<?php echo js_escape(__("You are about to delete the selected links.\n 'Cancel' to stop, 'OK' to delete.")); ?>' : '<?php echo js_escape(__("You are about to delete the selected link.\n 'Cancel' to stop, 'OK' to delete.")); ?>';
var m = '<?php echo js_escape(__("You are about to delete the selected links.\n 'Cancel' to stop, 'OK' to delete.")); ?>';
return showNotice.warn(m);
}
});

View File

@ -171,13 +171,14 @@ ul#adminmenu li.write-new-button a {
/* 1000 - 1300
=================================== */
#adminmenu a #awaiting-mod,
#adminmenu a #update-plugins,
#sidemenu li a #update-plugins {
background-position: -240px top;
}
#adminmenu li a:hover #awaiting-mod, #sidemenu li a:hover #update-plugins {
#adminmenu li a:hover #awaiting-mod, #adminmenu li a:hover #update-plugins, #sidemenu li a:hover #update-plugins {
background-position: -160px top;
}
#adminmenu li a #awaiting-mod span, #sidemenu li a #update-plugins span {
#adminmenu li a #awaiting-mod span, #adminmenu li a #update-plugins span, #sidemenu li a #update-plugins span {
right:auto;
left:0;
}

View File

@ -451,8 +451,7 @@ endif; // posts;
$(document).ready(function(){
$('#doaction, #doaction2').click(function(e){
if ( $('select[name^="action"]').val() == 'delete' ) {
var n = $('#the-list input[type="checkbox"]:checked').length;
var m = n > 1 ? '<?php echo js_escape(__("You are about to delete the selected attachments.\n 'Cancel' to stop, 'OK' to delete.")); ?>' : '<?php echo js_escape(__("You are about to delete the selected attachment.\n 'Cancel' to stop, 'OK' to delete.")); ?>';
var m = '<?php echo js_escape(__("You are about to delete the selected attachments.\n 'Cancel' to stop, 'OK' to delete.")); ?>';
return showNotice.warn(m);
} else if ( $('select[name^="action"]').val() == 'attach' ) {
e.preventDefault();

View File

@ -1117,6 +1117,7 @@ ul#adminmenu li.write-new-button a {
/* 2.6 */
#adminmenu a #awaiting-mod,
#adminmenu a #update-plugins,
#sidemenu li a #update-plugins {
position: absolute;
margin-top: 0.2em;
@ -1168,11 +1169,11 @@ strong .post-com-count {
background-position: center -3px;
}
#adminmenu li a:hover #awaiting-mod, #sidemenu li a:hover #update-plugins {
#adminmenu li a:hover #awaiting-mod, #adminmenu li a:hover #update-plugins, #sidemenu li a:hover #update-plugins {
background-position: -80px bottom;
}
#adminmenu li a #awaiting-mod span, #sidemenu li a #update-plugins span {
#adminmenu li a #awaiting-mod span, #adminmenu li a #update-plugins span, #sidemenu li a #update-plugins span {
top: -0.8em;
right: 0;
position: absolute;