Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#37585 closed task (blessed) (fixed)

Improved documentation in l10n.php

Reported by: johnbillion's profile johnbillion Owned by: wonderboymusic's profile wonderboymusic
Milestone: 4.7 Priority: normal
Severity: normal Version: 4.4
Component: I18N Keywords: has-patch
Focuses: docs Cc:


Previously: #34127

Attachments (1)

37585.patch (5.5 KB) - added by johnbillion 7 years ago.

Download all attachments as: .zip

Change History (3)

7 years ago

#1 @johnbillion
7 years ago

  • Keywords has-patch added

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().

#2 @wonderboymusic
7 years ago

  • Owner set to wonderboymusic
  • Resolution set to fixed
  • Status changed from new to closed

In 38360:

L10N: improve accuracy of docs.

Props johnbillion.
Fixes #37585.

Note: See TracTickets for help on using tickets.