[wp-trac] [WordPress Trac] #35668: Avoid using HTML tags in translation strings (wp-admin/credits.php)
WordPress Trac
noreply at wordpress.org
Thu Feb 4 19:39:56 UTC 2016
#35668: Avoid using HTML tags in translation strings (wp-admin/credits.php)
--------------------------+------------------------------
Reporter: ramiy | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Comment (by ramiy):
Option 6:
{{{
printf(
/* translators: %s: link to make.wordpress.org */
__( 'Want to see your name in lights on this page? %s.' ),
'<a href="' . esc_url( __( 'https://make.wordpress.org/' ) ) .
'">' . __( 'Get involved in WordPress' ) . '</a>'
);
}}}
I think that this is the best approach.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35668#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list