I18N: Capitalize translator comments consistently, add trailing punctuation.

Includes minor code layout fixes.

See #44360.

git-svn-id: https://develop.svn.wordpress.org/trunk@45932 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2019-09-03 00:39:13 +00:00
parent aed8c497cb
commit 00b03f2a6f
361 changed files with 2050 additions and 1861 deletions
+10 -10
View File
@@ -58,17 +58,17 @@ wp_localize_script(
'upload' => __( 'Upload Theme' ),
'back' => __( 'Back' ),
'error' => sprintf(
/* translators: %s: support forums URL */
/* translators: %s: Support forums URL. */
__( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server&#8217;s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.' ),
__( 'https://wordpress.org/support/forums/' )
),
'tryAgain' => __( 'Try Again' ),
/* translators: %d: number of themes */
/* translators: %d: Number of themes. */
'themesFound' => __( 'Number of Themes found: %d' ),
'noThemesFound' => __( 'No themes found. Try a different search.' ),
'collapseSidebar' => __( 'Collapse Sidebar' ),
'expandSidebar' => __( 'Expand Sidebar' ),
/* translators: accessibility text */
/* translators: Accessibility text. */
'selectFeatureFilter' => __( 'Select one or more Theme features to filter by' ),
),
'installedThemes' => array_keys( $installed_themes ),
@@ -93,7 +93,7 @@ if ( $tab ) {
$help_overview =
'<p>' . sprintf(
/* translators: %s: Theme Directory URL */
/* translators: %s: Theme Directory URL. */
__( 'You can find additional themes for your site by using the Theme Browser/Installer on this screen, which will display themes from the <a href="%s">WordPress Theme Directory</a>. These themes are designed and developed by third parties, are available free of charge, and are compatible with the license WordPress uses.' ),
__( 'https://wordpress.org/themes/' )
) . '</p>' .
@@ -270,7 +270,7 @@ if ( $tab ) {
<span class="more-details"><?php _ex( 'Details &amp; Preview', 'theme' ); ?></span>
<div class="theme-author">
<?php
/* translators: %s: Theme author name */
/* translators: %s: Theme author name. */
printf( __( 'By %s' ), '{{ data.author }}' );
?>
</div>
@@ -281,7 +281,7 @@ if ( $tab ) {
<div class="theme-actions">
<# if ( data.installed ) { #>
<?php
/* translators: %s: Theme name */
/* translators: %s: Theme name. */
$aria_label = sprintf( _x( 'Activate %s', 'theme' ), '{{ data.name }}' );
?>
<# if ( data.activate_url ) { #>
@@ -294,7 +294,7 @@ if ( $tab ) {
<# } #>
<# } else { #>
<?php
/* translators: %s: Theme name */
/* translators: %s: Theme name. */
$aria_label = sprintf( __( 'Install %s' ), '{{ data.name }}' );
?>
<a class="button button-primary theme-install" data-name="{{ data.name }}" data-slug="{{ data.id }}" href="{{ data.install_url }}" aria-label="<?php echo esc_attr( $aria_label ); ?>"><?php _e( 'Install' ); ?></a>
@@ -325,7 +325,7 @@ if ( $tab ) {
<h3 class="theme-name">{{ data.name }}</h3>
<span class="theme-by">
<?php
/* translators: %s: Theme author name */
/* translators: %s: Theme author name. */
printf( __( 'By %s' ), '{{ data.author }}' );
?>
</span>
@@ -338,7 +338,7 @@ if ( $tab ) {
{{{ data.stars }}}
<a class="num-ratings" href="{{ data.reviews_url }}">
<?php
/* translators: %s: number of ratings */
/* translators: %s: Number of ratings. */
echo sprintf( __( '(%s ratings)' ), '{{ data.num_ratings }}' );
?>
</a>
@@ -348,7 +348,7 @@ if ( $tab ) {
<# } #>
<div class="theme-version">
<?php
/* translators: %s: Theme version */
/* translators: %s: Theme version. */
printf( __( 'Version: %s' ), '{{ data.version }}' );
?>
</div>