Page MenuHomePhabricator

The TranslationOutput returned by a Domain object's translate method may include an array of citations
Open, Needs TriagePublic

Description

Each of the TargetOutput objects returned by a Domain object's translate method (one per translation target) includes a translation property, which in turn includes an array of Translation objects, each of which corresponds to a translation template and has a citation property, which may have a citation or be undefined depending on whether the template is applicable or not.

It may be convenient that the translation property includes a citations property, including an array of citations, on from each applicable translation template.

Making this an array would also be compatible with proposals suggesting that Web2Cit should return a citation for all applicable templates (not just the first one found).