[wp-trac] [WordPress Trac] #27738: Customizer: Make header image strings ready for translation
WordPress Trac
noreply at wordpress.org
Wed Apr 9 18:33:21 UTC 2014
#27738: Customizer: Make header image strings ready for translation
--------------------------+--------------------
Reporter: ocean90 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.9
Component: Appearance | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+--------------------
Description changed by ocean90:
Old description:
> Related: #21785
>
> [source:trunk/src/wp-includes/class-wp-customize-control.php at 27985#L855]
>
> {{{
> <?php
> // @todo translate (and look to custom-header.php for inspiration)
> echo ( 'Personalize your site with your own header image.' ) . ' ';
> if ( $width && $height ) {
> printf( ( 'While you can crop images to your liking after
> clicking <strong>Add new</strong>, your theme recommends a header size of
> <strong>%d × %d</strong> pixels.' ), $width, $height );
> } elseif ( $width ) {
> printf( ( 'While you can crop images to your liking after
> clicking <strong>Add new</strong>, your theme recommends a header width
> of <strong>%d</strong> pixels.' ), $width );
> } else {
> printf( ( 'While you can crop images to your liking after
> clicking <strong>Add new</strong>, your theme recommends a header height
> of <strong>%d</strong> pixels.' ), $height );
> }
> ?>
> }}}
New description:
Related: #21785
[source:trunk/src/wp-includes/class-wp-customize-control.php at 27985#L855]
{{{
<?php
// @todo translate (and look to custom-header.php for inspiration)
echo ( 'Personalize your site with your own header image.' ) . ' ';
if ( $width && $height ) {
printf( ( 'While you can crop images to your liking after clicking
<strong>Add new</strong>, your theme recommends a header size of
<strong>%d × %d</strong> pixels.' ), $width, $height );
} elseif ( $width ) {
printf( ( 'While you can crop images to your liking after clicking
<strong>Add new</strong>, your theme recommends a header width of
<strong>%d</strong> pixels.' ), $width );
} else {
printf( ( 'While you can crop images to your liking after clicking
<strong>Add new</strong>, your theme recommends a header height of
<strong>%d</strong> pixels.' ), $height );
}
?>
}}}
Text in custom-header.php: [source:trunk/src/wp-admin/custom-
header.php at 27985#L511]
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27738#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list