Attached is a test PO-file which on load triggers an error and fails to load the project :
"java.lang.ArrayIndexOutOfBoundsException: Index 2 out of bounds for length 2"
Tested with OmegaT 5.2.0 and 5.7.0.
Please see the header comments in the attached PO-file.
I'm not sure what is exactly causing the error. But the error can be avoided by either removing "#:" line in the header, or by making the multi-line plural cases into single-line ones; however, in that case, the last two plural cases would be missing after the load.
Attached is the OmegaT log file resulting from the error.
Thanks. I've pushed PR that reproduce the case and has a fix.
https://github.com/omegat-org/omegat/pull/172
released 6.0