[wp-trac] [WordPress Trac] #45151: Convert 'Sample Page', 'Hello World', and 'Privacy Policy' to block content

WordPress Trac noreply at wordpress.org
Wed Oct 24 20:29:08 UTC 2018

#45151: Convert 'Sample Page', 'Hello World', and 'Privacy Policy' to block content
 Reporter:  danielbachhuber                    |       Owner:  desrosj
     Type:  enhancement                        |      Status:  reopened
 Priority:  normal                             |   Milestone:  5.0
Component:  Upgrade/Install                    |     Version:
 Severity:  normal                             |  Resolution:
 Keywords:  has-patch fixed-5.0 needs-refresh  |     Focuses:
Changes (by desrosj):

 * keywords:  has-patch needs-testing 2nd-opinion fixed-5.0 => has-patch
     fixed-5.0 needs-refresh


 I am thinking that we can do better for the Sample Page content.

 The current solution can remain for the beta and will ensure that a new
 install will have the correct sample content, but it will not result in
 ideal strings for translators.

 After [43820], the string for translation would be:

 <!-- wp:paragraph -->
 <p>This is an example page. It's different from a blog post because it
 will stay in one place and will show up in your site navigation (in most
 themes). Most people start with an About page that introduces them to
 potential site visitors. It might say something like this:</p>
 <!-- /wp:paragraph -->

 <!-- wp:quote -->
 <blockquote class="wp-block-quote">
 <p>Hi there! I'm a bike messenger by day, aspiring actor by night, and
 this is my website. I live in Los Angeles, have a great dog named Jack,
 and I like piña coladas. (And gettin' caught in the rain.)</p>
 <!-- /wp:quote -- >

 Trusting the markup to be preserved in translations is not a good idea,
 especially with more complex HTML comments.

 I am proposing that we use numbered placeholder replacements containing
 the HTML comment and HTML tag to make translating these strings easier.

 Patch incoming.

Ticket URL: <https://core.trac.wordpress.org/ticket/45151#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list