[wp-trac] [WordPress Trac] #37585: Improved documentation in l10n.php
WordPress Trac
noreply at wordpress.org
Fri Aug 5 16:12:37 UTC 2016
#37585: Improved documentation in l10n.php
----------------------------+-------------------
Reporter: johnbillion | Owner:
Type: task (blessed) | Status: new
Priority: normal | Milestone: 4.7
Component: I18N | Version: 4.4
Severity: normal | Resolution:
Keywords: has-patch | Focuses: docs
----------------------------+-------------------
Changes (by johnbillion):
* keywords: => has-patch
Comment:
[attachment:37585.patch] does the following:
* Changes `$translations` to `$translation` in the `gettext` and
`gettext_with_context` filter parameters so they match those of `ngettext`
and `ngettext_with_context`. The singular form is the correct terminology.
* Adds example code that's actually useful to `_nx()`, `_nx_noop()`, and
`_n_noop()`.
* Simplifies example code in `_n()` and `translate_nooped_plural()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37585#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list