Japanese plural translations not showing up in React editor
Description
Environment
Attachments
- 17 Nov 2016, 12:22 am
- 17 Nov 2016, 12:21 am
Activity
Former user 17 November 2016 at 02:37
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):
"Plural-Forms: nplurals=1; plural=0;\n"
An example plural string that is not displaying the translation in the editor:
msgid "1 Rule in this group"
msgid_plural "{{$count}} Rules in this group"
msgstr[0] "このグループの {{$count}} 件のルール"
Most likely is that the editor is attempting to display msgstr based on nplurals being 1, but it should be displaying msgstr[0].
Sean Flanigan 17 November 2016 at 01:16
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.
Former user 17 November 2016 at 00:39
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 17 November 2016 at 00:31
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.
Carlos Munoz 17 November 2016 at 00:24
still making changes... JIRA auto saves each field...
Details
Details
Assignee
Reporter
Labels
Tested Version/s
Components
Sprint
Fix versions
Affects versions
Priority

When using the new editor, Japanese translations do not appear.
Example:
Current editor:
New editor: