Japanese plural translations not showing up in React editor

Description

When using the new editor, Japanese translations do not appear.

Example:
Current editor:

New editor:

Environment

None

Activity

Show:
Carlos Munoz
November 17, 2016, 12:24 AM

still making changes... JIRA auto saves each field...

Sean Flanigan
November 17, 2016, 12:31 AM

still making changes... JIRA auto saves each field... 

You can get around that, to some extent, by using the Edit button (or type 'e') instead of inline editing.

David Mason
November 17, 2016, 12:39 AM

As a side note, it looks like the validators are incorrectly validating the Japanese form against the English singular form, when in this case it would be more appropriate to compare against the English plural form. We should probably review that, since a language with only one form is likely to always be better to validate against the English plural form than the English singular form.

Sean Flanigan
November 17, 2016, 1:16 AM

As a side note, it looks like the validators are incorrectly validating the Japanese form against the English singular form, when in this case it would be more appropriate to compare against the English plural form. We should probably review that, since a language with only one form is likely to always be better to validate against the English plural form than the English singular form.

Agreed.

David Mason
November 17, 2016, 2:37 AM

This can be reproduced in master branch using the same .pot and .po files.

The downloaded .po file has the following header, probably added by Zanata (not implicated in this error, just for reference):

An example plural string that is not displaying the translation in the editor:

Most likely is that the editor is attempting to display msgstr based on nplurals being 1, but it should be displaying msgstr[0].

Ready for Release

Assignee

David Mason

Reporter

Carlos Munoz

Labels

Tested Version/s

None

Components

Sprint

None

Fix versions

Affects versions

Priority

unspecified
Configure