mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-24 10:09:47 +01:00
I18N: Use a consistent pattern for translator comments for placeholders in wp-admin/includes/dashboard.php
.
See #41974. Built from https://develop.svn.wordpress.org/trunk@41641 git-svn-id: http://core.svn.wordpress.org/trunk@41475 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
10c46f5751
commit
6a2b59745e
@ -277,9 +277,9 @@ function wp_dashboard_right_now() {
|
|||||||
<li class="comment-count"><a href="edit-comments.php"><?php echo $text; ?></a></li>
|
<li class="comment-count"><a href="edit-comments.php"><?php echo $text; ?></a></li>
|
||||||
<?php
|
<?php
|
||||||
$moderated_comments_count_i18n = number_format_i18n( $num_comm->moderated );
|
$moderated_comments_count_i18n = number_format_i18n( $num_comm->moderated );
|
||||||
/* translators: Number of comments in moderation */
|
/* translators: %s: number of comments in moderation */
|
||||||
$text = sprintf( _nx( '%s in moderation', '%s in moderation', $num_comm->moderated, 'comments' ), $moderated_comments_count_i18n );
|
$text = sprintf( _nx( '%s in moderation', '%s in moderation', $num_comm->moderated, 'comments' ), $moderated_comments_count_i18n );
|
||||||
/* translators: Number of comments in moderation */
|
/* translators: %s: number of comments in moderation */
|
||||||
$aria_label = sprintf( _nx( '%s comment in moderation', '%s comments in moderation', $num_comm->moderated, 'comments' ), $moderated_comments_count_i18n );
|
$aria_label = sprintf( _nx( '%s comment in moderation', '%s comments in moderation', $num_comm->moderated, 'comments' ), $moderated_comments_count_i18n );
|
||||||
?>
|
?>
|
||||||
<li class="comment-mod-count<?php
|
<li class="comment-mod-count<?php
|
||||||
@ -392,12 +392,12 @@ function wp_network_dashboard_right_now() {
|
|||||||
$c_users = get_user_count();
|
$c_users = get_user_count();
|
||||||
$c_blogs = get_blog_count();
|
$c_blogs = get_blog_count();
|
||||||
|
|
||||||
/* translators: 1: Number of users on the network */
|
/* translators: %s: number of users on the network */
|
||||||
$user_text = sprintf( _n( '%s user', '%s users', $c_users ), number_format_i18n( $c_users ) );
|
$user_text = sprintf( _n( '%s user', '%s users', $c_users ), number_format_i18n( $c_users ) );
|
||||||
/* translators: 1: Number of sites on the network */
|
/* translators: %s: number of sites on the network */
|
||||||
$blog_text = sprintf( _n( '%s site', '%s sites', $c_blogs ), number_format_i18n( $c_blogs ) );
|
$blog_text = sprintf( _n( '%s site', '%s sites', $c_blogs ), number_format_i18n( $c_blogs ) );
|
||||||
|
|
||||||
/* translators: 1: Text indicating the number of sites on the network, 2: Text indicating the number of users on the network */
|
/* translators: 1: text indicating the number of sites on the network, 2: text indicating the number of users on the network */
|
||||||
$sentence = sprintf( __( 'You have %1$s and %2$s.' ), $blog_text, $user_text );
|
$sentence = sprintf( __( 'You have %1$s and %2$s.' ), $blog_text, $user_text );
|
||||||
|
|
||||||
if ( $actions ) {
|
if ( $actions ) {
|
||||||
@ -1207,7 +1207,7 @@ function wp_print_community_events_templates() {
|
|||||||
|
|
||||||
<script id="tmpl-community-events-attend-event-near" type="text/template">
|
<script id="tmpl-community-events-attend-event-near" type="text/template">
|
||||||
<?php printf(
|
<?php printf(
|
||||||
/* translators: %s is a placeholder for the name of a city. */
|
/* translators: %s: the name of a city */
|
||||||
__( 'Attend an upcoming event near %s.' ),
|
__( 'Attend an upcoming event near %s.' ),
|
||||||
'<strong>{{ data.location.description }}</strong>'
|
'<strong>{{ data.location.description }}</strong>'
|
||||||
); ?>
|
); ?>
|
||||||
@ -1258,7 +1258,7 @@ function wp_print_community_events_templates() {
|
|||||||
|
|
||||||
<# } else { #>
|
<# } else { #>
|
||||||
<?php printf(
|
<?php printf(
|
||||||
/* translators: meetup organization documentation URL. */
|
/* translators: %s: meetup organization documentation URL */
|
||||||
__( 'There aren’t any events scheduled near you at the moment. Would you like to <a href="%s">organize one</a>?' ),
|
__( 'There aren’t any events scheduled near you at the moment. Would you like to <a href="%s">organize one</a>?' ),
|
||||||
__( 'https://make.wordpress.org/community/handbook/meetup-organizer/welcome/' )
|
__( 'https://make.wordpress.org/community/handbook/meetup-organizer/welcome/' )
|
||||||
); ?>
|
); ?>
|
||||||
@ -1403,7 +1403,7 @@ function wp_dashboard_quota() {
|
|||||||
<ul>
|
<ul>
|
||||||
<li class="storage-count">
|
<li class="storage-count">
|
||||||
<?php $text = sprintf(
|
<?php $text = sprintf(
|
||||||
/* translators: number of megabytes */
|
/* translators: %s: number of megabytes */
|
||||||
__( '%s MB Space Allowed' ),
|
__( '%s MB Space Allowed' ),
|
||||||
number_format_i18n( $quota )
|
number_format_i18n( $quota )
|
||||||
);
|
);
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.9-alpha-41640';
|
$wp_version = '4.9-alpha-41641';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user