[wp-trac] [WordPress Trac] #43434: Add sprintf function and target attribute in href
WordPress Trac
noreply at wordpress.org
Wed Feb 28 14:28:17 UTC 2018
#43434: Add sprintf function and target attribute in href
-------------------------------------+----------------------------
Reporter: mukesh27 | Owner:
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: General | Version: 4.9.4
Severity: normal | Resolution: wontfix
Keywords: i18n-change 2nd-opinion | Focuses: accessibility
-------------------------------------+----------------------------
Comment (by afercia):
@mukesh27 generally, it's a good practice to keep links out from the
translatable strings using sprintf() as gou suggested, but as
@SergeyBiryukov pointed out, all the links to the Codex pages need to be
translatable. Sometimes, the codex pages have versions in different
languages. Translators need a way to change the link to point to the one
in their language, if they want.
For example:
https://codex.wordpress.org/Users_Screen
https://codex.wordpress.org/zh-cn:%E7%94%A8%E6%88%B7%E9%A1%B5%E9%9D%A2
https://codex.wordpress.org/pt-br:SubPainel_Todos_os_Usu%C3%A1rios
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43434#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list