[wp-trac] [WordPress Trac] #42032: Code Editor: Improve i18n

WordPress Trac noreply at wordpress.org
Fri Sep 29 10:39:33 UTC 2017


#42032: Code Editor: Improve i18n
----------------------------+-----------------
 Reporter:  SergeyBiryukov  |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  4.9
Component:  I18N            |    Version:
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------
 [41376] introduced this string in two places:
 {{{
 $content .= sprintf(
         /* translators: placeholder is link to user profile */
         __( 'The edit field automatically highlights code syntax. You can
 disable this in your %s to work in plain text mode.' ),
         sprintf(
                 ' <a href="%1$s" class="external-link"
 target="_blank">%2$s<span class="screen-reader-text">%3$s</span></a>',
                 esc_url( get_edit_profile_url() ),
                 __( 'user profile' ),
                 /* translators: accessibility text */
                 __( '(opens in a new window)' )
         )
 );
 }}}

 Translatable strings should not be split up like that due to structural
 differences in languages, see [comment:ticket:17609:3] and
 [comment:ticket:19099:1]. `'user profile'` should be a part of the
 original string.

 If the goal is to remove extra link attributes from the string, an
 additional placeholder should be used, like in [38082].

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


More information about the wp-trac mailing list