Bug 1197928 - RFE: zanata-python-client should show Error "Plural-Forms in <locale>.po conflicts with server" when translator pushing a po file that contain a different plural forms
Summary: RFE: zanata-python-client should show Error "Plural-Forms in <locale>.po conf...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: zanata-python-client
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Sundeep Anand
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1184708
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-03 00:58 UTC by Ding-Yi Chen
Modified: 2021-05-12 06:37 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1197927
Environment:
Last Closed: 2021-05-12 06:37:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1197925 0 unspecified CLOSED RFE: Show Error "Plural-Forms in <locale>.po conflicts with server" when translator upload a po file that contain a diff... 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1197934 0 unspecified CLOSED Zanata doesn't validate pluralforms entry in source doc 2021-02-22 00:41:40 UTC

Internal Links: 1197925 1197934

Description Ding-Yi Chen 2015-03-03 00:58:55 UTC
+++ This bug was initially created as a clone of Bug #1197927 +++

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"

--- Additional comment from Ding-Yi Chen on 2015-03-03 10:58:06 EST ---

This bug addresses pushing with zanata-client, while Bug 1197925 address uploading with WebUI.

Comment 1 Ding-Yi Chen 2015-03-03 01:05:06 UTC
The actual command should be zanata instead of zanata-cli

Comment 3 Fedora End Of Life 2015-11-04 11:13:37 UTC
This message is a reminder that Fedora 21 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 21. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '21'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 21 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 4 Fedora End Of Life 2015-12-02 09:39:14 UTC
Fedora 21 changed to end-of-life (EOL) status on 2015-12-01. Fedora 21 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 5 Martin Kolman 2015-12-02 13:20:59 UTC
I think this is still relevant.

Also, could the proposed enhancement help catch issues like bug 1283599 ?

Comment 6 David Shea 2015-12-02 13:58:38 UTC
(In reply to Martin Kolman from comment #5)
> Also, could the proposed enhancement help catch issues like bug 1283599 ?

Yes. Changes in Plural-Forms should be extremely rare, so at the least this should be a very loud warning, whereas right now it's a silent surprise.

It would also be nice if either the client or the server could do some validation on Plural-Forms and reject invalid .po files.

Comment 7 Fedora Admin XMLRPC Client 2016-02-02 07:00:35 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 8 Sundeep Anand 2021-05-12 06:37:22 UTC
As https://fedora.zanata.org/ has been decommissioned, closing this!


Note You need to log in before you can comment on or make changes to this bug.