Hide Forgot
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.63 Safari/537.31 Build Identifier: Example: A source string in plural form gets translated in a language with 2 plurals. It then changed to singular form. The second translated string will still sit in database and when pulling, that second string will be attempted to be written out and cause an error in client (if download from UI it will silently fail and output a halfway file). Reproducible: Always Steps to Reproduce: 1. Push a pot with one string in plural form 2. Pick a language that supports plural > 1 3. Translate the string and save 4. Change the pot and make the string singular 5. Pull from server Actual Results: Caused by: java.lang.RuntimeException: plural forms not enabled for this text flow: resId=af6517b78862e0ad1739e91f2daa35ba at org.zanata.adapter.po.PoWriter2.copyTFTContentsToMessage(PoWriter2.java:430) at org.zanata.adapter.po.PoWriter2.write(PoWriter2.java:306) at org.zanata.adapter.po.PoWriter2.writePoToFile(PoWriter2.java:206) Expected Results: Ignore the unused plural translation and maybe give a warning
committed into client/master: https://github.com/zanata/zanata-client/commit/d6289d38517da05134695014fa624e43576833ff and into common/master: https://github.com/zanata/zanata-common/commit/0b3adaaf88b96c4926dd4228b2389e3e5c0e3777
I think the relaxed data check should be optional, only enabled when it is needed (eg server returns inconsistent data). Failing the pull process is an important sign that something is wrong.
added new option --continue-after-error or -c to enable client continue on this plural error. client commit: https://github.com/zanata/zanata-client/commit/a75cbd3ccc77c3f1c5386a528a963f4aef7488f4 common commit: https://github.com/zanata/zanata-common/commit/2ad7a70050e5037d88bb18b2636448698edf8275
maven client option will be -Dzanata.continueAfterError
VERIFIED with Zanata version 3.0.4-SNAPSHOT (20130923-0021) and zanata-cli-3.1.2
Closing VERIFIED bugs for Zanata versions <= 3.1.