HomePhabricator

Add a `phutil_person()` wrapper for the string extractor

Description

Add a phutil_person() wrapper for the string extractor

Summary:
Ref T5267. When extracting strings, we can currently statically infer information about plurality (via PhutilNumber and phutil_count) but not about gendered variables.

This adds a marker for gendered variables. Usage will be:

pht(
  '%s stood silently.',
  phutil_person($variable));

The string extractor can then annotate this as gendered during extraction.

Also, use more consistent terms for grammatical gender.

Test Plan: arc unit, see next diff.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T5267

Differential Revision: https://secure.phabricator.com/D16822

Details

Provenance
epriestleyAuthored on Nov 8 2016, 3:29 PM
epriestleyPushed on Nov 8 2016, 4:32 PM
Reviewer
chad
Differential Revision
D16822: Add a `phutil_person()` wrapper for the string extractor
Parents
rPHU5dbc2a8e01f6: Add an optional pht() callback for collecting string frequencies
Branches
Unknown
Tags
Unknown
Tasks
T5267: Localize Phabricator
Build Status
Buildable 14401
Build 18758: Run Core Tests