I18N: Improve translator comments.
* Add missing translator comments. * Fix placement of some translator comments. Translator comments should be on the line directly above the line containing the translation function call for optimal compatibility with various `.pot` file generation tools. The CS auto-fixing, which changed some inconsistent function calls to multi-line function calls, is part of the reason why this was no longer the case for a select group of translator comments. Includes minor code layout fixes. Polyglots, rejoice! All WordPress core files now have translator comments for all strings with placeholders! Props jrf, subrataemfluence, GaryJ, webdados, Dency, swissspidy, alvarogois, marcomartins, mihaiiceyro, vladwtz, niq1982, flipkeijzer, michielatyoast, chandrapatel, thrijith, joshuanoyce, FesoVik, tessak22, bhaktirajdev, cleancoded, dhavalkasvala, garrett-eclipse, bibliofille, socalchristina, priyankkpatel, 5hel2l2y, adamsilverstein, JeffPaul, pierlo, SergeyBiryukov. Fixes #44360. Built from https://develop.svn.wordpress.org/trunk@45926 git-svn-id: http://core.svn.wordpress.org/trunk@45737 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -111,7 +111,11 @@ if ( current_user_can( 'install_themes' ) ) {
|
||||
if ( is_multisite() ) {
|
||||
$help_install = '<p>' . __( 'Installing themes on Multisite can only be done from the Network Admin section.' ) . '</p>';
|
||||
} else {
|
||||
$help_install = '<p>' . sprintf( __( 'If you would like to see more themes to choose from, click on the “Add New” button and you will be able to browse or search for additional themes from the <a href="%s">WordPress Theme Directory</a>. Themes in the WordPress Theme Directory are designed and developed by third parties, and are compatible with the license WordPress uses. Oh, and they’re free!' ), __( 'https://wordpress.org/themes/' ) ) . '</p>';
|
||||
$help_install = '<p>' . sprintf(
|
||||
/* translators: %s: https://wordpress.org/themes/ */
|
||||
__( 'If you would like to see more themes to choose from, click on the “Add New” button and you will be able to browse or search for additional themes from the <a href="%s">WordPress Theme Directory</a>. Themes in the WordPress Theme Directory are designed and developed by third parties, and are compatible with the license WordPress uses. Oh, and they’re free!' ),
|
||||
__( 'https://wordpress.org/themes/' )
|
||||
) . '</p>';
|
||||
}
|
||||
|
||||
get_current_screen()->add_help_tab(
|
||||
@@ -167,6 +171,7 @@ wp_localize_script(
|
||||
'addNew' => __( 'Add New Theme' ),
|
||||
'search' => __( 'Search Installed Themes' ),
|
||||
'searchPlaceholder' => __( 'Search installed themes...' ), // placeholder (no ellipsis)
|
||||
/* translators: %d: number of themes */
|
||||
'themesFound' => __( 'Number of Themes found: %d' ),
|
||||
'noThemesFound' => __( 'No themes found. Try a different search.' ),
|
||||
),
|
||||
@@ -327,13 +332,18 @@ foreach ( $themes as $theme ) :
|
||||
<?php endif; ?>
|
||||
|
||||
<span class="more-details" id="<?php echo $aria_action; ?>"><?php _e( 'Theme Details' ); ?></span>
|
||||
<div class="theme-author"><?php printf( __( 'By %s' ), $theme['author'] ); ?></div>
|
||||
<div class="theme-author">
|
||||
<?php
|
||||
/* translators: %s: Theme author name */
|
||||
printf( __( 'By %s' ), $theme['author'] );
|
||||
?>
|
||||
</div>
|
||||
|
||||
<div class="theme-id-container">
|
||||
<?php if ( $theme['active'] ) { ?>
|
||||
<h2 class="theme-name" id="<?php echo $aria_name; ?>">
|
||||
<?php
|
||||
/* translators: %s: theme name */
|
||||
/* translators: %s: Theme name */
|
||||
printf( __( '<span>Active:</span> %s' ), $theme['name'] );
|
||||
?>
|
||||
</h2>
|
||||
@@ -546,8 +556,18 @@ if ( ! is_multisite() && current_user_can( 'edit_themes' ) && $broken_themes ) {
|
||||
<# if ( data.active ) { #>
|
||||
<span class="current-label"><?php _e( 'Current Theme' ); ?></span>
|
||||
<# } #>
|
||||
<h2 class="theme-name">{{{ data.name }}}<span class="theme-version"><?php printf( __( 'Version: %s' ), '{{ data.version }}' ); ?></span></h2>
|
||||
<p class="theme-author"><?php printf( __( 'By %s' ), '{{{ data.authorAndUri }}}' ); ?></p>
|
||||
<h2 class="theme-name">{{{ data.name }}}<span class="theme-version">
|
||||
<?php
|
||||
/* translators: %s: Theme version */
|
||||
printf( __( 'Version: %s' ), '{{ data.version }}' );
|
||||
?>
|
||||
</span></h2>
|
||||
<p class="theme-author">
|
||||
<?php
|
||||
/* translators: %s: Theme author link */
|
||||
printf( __( 'By %s' ), '{{{ data.authorAndUri }}}' );
|
||||
?>
|
||||
</p>
|
||||
|
||||
<# if ( data.hasUpdate ) { #>
|
||||
<div class="notice notice-warning notice-alt notice-large">
|
||||
@@ -558,7 +578,12 @@ if ( ! is_multisite() && current_user_can( 'edit_themes' ) && $broken_themes ) {
|
||||
<p class="theme-description">{{{ data.description }}}</p>
|
||||
|
||||
<# if ( data.parent ) { #>
|
||||
<p class="parent-theme"><?php printf( __( 'This is a child theme of %s.' ), '<strong>{{{ data.parent }}}</strong>' ); ?></p>
|
||||
<p class="parent-theme">
|
||||
<?php
|
||||
/* translators: %s: Theme name */
|
||||
printf( __( 'This is a child theme of %s.' ), '<strong>{{{ data.parent }}}</strong>' );
|
||||
?>
|
||||
</p>
|
||||
<# } #>
|
||||
|
||||
<# if ( data.tags ) { #>
|
||||
|
||||
Reference in New Issue
Block a user