WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#37585 closed task (blessed) (fixed)

Improved documentation in l10n.php

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

Description

Previously: #34127

Attachments (1)

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

Download all attachments as: .zip

Change History (3)

@johnbillion
3 years ago

#1 @johnbillion
3 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
3 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.