[wp-trac] [WordPress Trac] #36014: Move the aria-label text into a separate translation string

WordPress Trac noreply at wordpress.org
Mon Feb 29 19:16:33 UTC 2016


#36014: Move the aria-label text into a separate translation string
---------------------------+-----------------------------
 Reporter:  ramiy          |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  I18N           |    Version:
 Severity:  normal         |   Keywords:
  Focuses:  accessibility  |
---------------------------+-----------------------------
 Old string:

 * `<a href="%1$s" aria-label="Logged in as %2$s. Edit your
 profile.">Logged in as %2$s</a>. <a href="%3$s">Log out?</a>`

 New string:

 * `<a href="%1$s" aria-label="%2$s">Logged in as %3$s</a>. <a
 href="%4$s">Log out?</a>`

 ----

 The text inside '''aria-label''' attribute was replaced with a '''%2$s'''
 placeholder.

 This way the translation string is shorter and easier to translate.

 BTW, in other string translations we do the same.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36014>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list