mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@45926 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -24,7 +24,7 @@ get_current_screen()->add_help_tab(
|
||||
'title' => __( 'Overview' ),
|
||||
'content' => '<p>' . __( 'This screen contains the settings that affect the display of your content.' ) . '</p>' .
|
||||
'<p>' . sprintf(
|
||||
/* translators: %s: URL to Pages screen */
|
||||
/* translators: %s: URL to create a new page */
|
||||
__( 'You can choose what’s displayed on the homepage of your site. It can be posts in reverse chronological order (classic blog), or a fixed/static page. To set a static homepage, you first need to create two <a href="%s">Pages</a>. One will become the homepage, and the other will be where your posts are displayed.' ),
|
||||
'post-new.php?post_type=page'
|
||||
) . '</p>' .
|
||||
@@ -91,13 +91,20 @@ else :
|
||||
</p>
|
||||
<p><label>
|
||||
<input name="show_on_front" type="radio" value="page" class="tog" <?php checked( 'page', get_option( 'show_on_front' ) ); ?> />
|
||||
<?php printf( __( 'A <a href="%s">static page</a> (select below)' ), 'edit.php?post_type=page' ); ?>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %s: URL to Pages screen */
|
||||
__( 'A <a href="%s">static page</a> (select below)' ),
|
||||
'edit.php?post_type=page'
|
||||
);
|
||||
?>
|
||||
</label>
|
||||
</p>
|
||||
<ul>
|
||||
<li><label for="page_on_front">
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %s: select field to choose the front page */
|
||||
__( 'Homepage: %s' ),
|
||||
wp_dropdown_pages(
|
||||
array(
|
||||
@@ -114,6 +121,7 @@ else :
|
||||
<li><label for="page_for_posts">
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %s: select field to choose the page for posts */
|
||||
__( 'Posts page: %s' ),
|
||||
wp_dropdown_pages(
|
||||
array(
|
||||
|
||||
Reference in New Issue
Block a user