[wp-trac] [WordPress Trac] #47040: i18n: Avoid using HTML tags in translation strings in theme install

WordPress Trac noreply at wordpress.org
Thu Apr 25 11:24:16 UTC 2019


#47040: i18n: Avoid using HTML tags in translation strings in theme install
---------------------------------------+------------------------------
 Reporter:  ramiy                      |       Owner:  SergeyBiryukov
     Type:  defect (bug)               |      Status:  assigned
 Priority:  normal                     |   Milestone:  Awaiting Review
Component:  Themes                     |     Version:
 Severity:  normal                     |  Resolution:
 Keywords:  has-screenshots has-patch  |     Focuses:  administration
---------------------------------------+------------------------------
Changes (by ramiy):

 * keywords:   => has-screenshots has-patch


Comment:

 In this case one string has screen reader text but the other one don't.

 I did two things:

 1. I moved the screen reader text HTML tags outside of the string.
 2. I added a screen reader text string to the second file to match the
 user experience.
 3. I added a `target="_blank"` to the other file.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47040#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list