Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1197927

Summary: RFE: zanata-client should show Error "Plural-Forms in <locale>.po conflicts with server" when translator pushing a po file that contain a different plural forms
Product: [Retired] Zanata Reporter: Ding-Yi Chen <dchen>
Component: Component-zanata-clientAssignee: Damian Jansen <djansen>
Status: CLOSED UPSTREAM QA Contact: Zanata-QA Mailling List <zanata-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: client-3.4CC: djansen, sflaniga, zanata-bugs, zanata-qa
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1197925
: 1197928 (view as bug list) Environment:
Last Closed: 2015-07-29 02:49:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1184708    
Bug Blocks:    

Description Ding-Yi Chen 2015-03-03 00:53:39 UTC
Description of problem:
When a translator upload a po file that contains Plural-Forms that is different from server (e.g. Bug 1197283), it should show following error message and stop the process:

"Plural-Forms in <locale>.po conflicts with server"

This should depends on Bug 1184708, so admin can specify the correct plural form.

Version-Release number of selected component (if applicable):
Zanata 3.5.1 (git-server-3.5.1) 
zanata-client-3.4.1

How reproducible:
Always

Steps to Reproduce:
1. In web UI, Set the Plural-Form of kn to: nplurals=2; plural=(n != 1);
2. From anaconda project: https://fedora.zanata.org/project/view/anaconda
3. Pull the kn.po with following command
   zanata-cli pull -t /tmp --locales kn
4. Change the Plural-From in kn.po to "nplurals=1; plural=0;"
5. Push the kn.po with following command
   zanata-cli push -t /tmp --locales kn

Actual results:
PluralsForm was updated to "nplurals=1; plural=0;"

Expected results:
Show error: "Plural-Forms in kn.po conflicts with server"

Comment 1 Ding-Yi Chen 2015-03-03 00:58:06 UTC
This bug addresses pushing with zanata-client, while Bug 1197925 address uploading with WebUI.

Comment 2 Zanata Migrator 2015-07-29 02:49:48 UTC
Migrated; check JIRA for bug status: http://zanata.atlassian.net/browse/ZNTA-219