NPE and xml generation quirck when exporting plural forms

Description

We have been having problems with ts translations containing plural forms in zanata.

The interface proposes two plural forms inputs instead of one and if both are filled, the resulting translation cannot be downloaded with this error:

When removing the second plural form, the file can be downloaded but the generated xml is broken:

Environment

None

Assignee

Unassigned

Reporter

Benjamin Demarteau

Labels

None

Tested Version/s

None

Affects versions

Priority

unspecified
Configure