Subject: Re: [wp-trac] [WordPress Trac] #37595: Better
titles for the Quick Draft dashboard widget



#37595: Better titles for the Quick Draft dashboard widget
-------------------------------------------------+-------------------------
Reporter: afercia | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting
Component: Administration | Review
Severity: normal | Version:
Keywords: has-screenshots good-first-bug has- | Resolution:
patch | Focuses: ui
-------------------------------------------------+-------------------------

Comment (by SergeyBiryukov):

Replying to [comment:4 sudar]:
> There is `_n` (https://codex.wordpress.org/Function_Reference/_n)
function which allows us to use different strings based on a variable
count.

It's not suitable in this case though, see
https://codex.wordpress.org/I18n_for_WordPress_Developers#Plurals:

Note that some languages use the singular form for other numbers (e.g.
21, 31 and so on, much like '21st', '31st' in English). If you would like
to special case the singular, check for it specifically:
{{{
if ( 1 === $count ) {
printf( esc_html__( 'Last thing!', 'my-text-domain' ), $count );
} else {
printf( esc_html( _n( '%d thing.', '%d things.', $count, 'my-text-
domain' ) ), $count );
}
}}}

[attachment:dashboard.patch] is correct in that sense, although it doesn't
quite do what the ticket suggests.

"My Drafts" is also an option, there's a related discussion in #26769
about "Your Profile" vs. "My Profile" (no consensus at this time though).
r>
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37595#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
_______________________________________________
wp-trac mailing list
[email protected]
http://lists.wordpress.org/mailman/listinfo/wp-trac



Programming list archiving by: Enterprise Git Hosting