[wp-trac] [WordPress Trac] #34127: Update docblocks for l10n.php

WordPress Trac noreply at wordpress.org
Fri Oct 2 20:44:20 UTC 2015


#34127: Update docblocks for l10n.php
----------------------------+---------------------------
 Reporter:  johnbillion     |       Owner:  DrewAPicture
     Type:  task (blessed)  |      Status:  closed
 Priority:  normal          |   Milestone:  4.4
Component:  I18N            |     Version:
 Severity:  normal          |  Resolution:  fixed
 Keywords:  has-patch       |     Focuses:  docs
----------------------------+---------------------------
Changes (by DrewAPicture):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"34781"]:
 {{{
 #!CommitTicketReference repository="" revision="34781"
 Docs: Improve a variety of inline docs in wp-includes/l10n.php.

 * Corrects phrasing used in the descriptions for and filters in `_n()` and
 `_nx()`, particularly with regard to the use of 'singular' instead of
 'single' or '1', and 'plural' instead of 'not 1'.
 * Adds example usage to `_n()`, `_nx()`, `_nx_noop()`, and
 `translate_nooped_plural()`.
 * Adds hash notation `@return` doc for `_n_noop()` and `_nx_noop()`.
 * Adds missing default values for the optional `$domain` parameter in
 several places.

 Props johnbillion.
 Fixes #34127.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34127#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list