[wp-trac] Re: [WordPress Trac] #9673: sprintf() shortcuts
WordPress Trac
wp-trac at lists.automattic.com
Tue Apr 28 21:59:34 GMT 2009
#9673: sprintf() shortcuts
-------------------------+--------------------------------------------------
Reporter: wnorris | Owner: nbachiyski
Type: enhancement | Status: new
Priority: normal | Milestone: Unassigned
Component: i18n | Version: 2.8
Severity: normal | Keywords: i18n
-------------------------+--------------------------------------------------
Comment(by wnorris):
just thinking out loud a bit... perhaps allow the first argument to be a
string or an array of two strings (the string itself, and the domain).
Then the simple use case would be:
`_f( 'Author is %s', $author)`
and the slightly more complex would be
`_f( array('Author is %s', 'my-domain'), $author)`
Hmm, but then the second example here is inconsistent with the other
`_*()` functions, and is almost identical to simply calling
`sprintf( __('Author is %s', 'my-domain'), $author)`
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9673#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list