Bug 768875 - map-from in zanata.xml seems not working when pull
Summary: map-from in zanata.xml seems not working when pull
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: zanata-python-client
Version: 19
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
Assignee: anish
QA Contact: Ding-Yi Chen
URL:
Whiteboard:
Depends On:
Blocks: 768877
TreeView+ depends on / blocked
 
Reported: 2011-12-19 09:03 UTC by Akira TAGOH
Modified: 2014-12-20 00:16 UTC (History)
6 users (show)

Fixed In Version: zanata-python-client-1.3.18-1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-12-06 10:20:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
zanata.xml (2.25 KB, text/xml)
2011-12-19 09:14 UTC, Akira TAGOH
no flags Details

Description Akira TAGOH 2011-12-19 09:03:19 UTC
Description of problem:
I had modified zanata.xml as attached to pick up some missing locales for gettext-based project. but "zanata po pull" says no translation.

Version-Release number of selected component (if applicable):
zanata-python-client-1.3.1-1.fc15.noarch

How reproducible:
always

Steps to Reproduce:
1.check out imsettings POs from zanata with the attached zanata.xml
2.
3.
  
Actual results:
You can see the kind of logs from zanata like:
Retrieving zh_CN translation from server:
There is no zh_CN translation for imsettings

Expected results:
should pick up as expected to "map-from=" in zanata.xml

Additional info:
after that, I can see:
Writing po file to /home/tagoh/work/repo/imsettings/po/zh_CN.po

and it breaks the zh_CN.po with what it was success last time. I'll file a bug as a separate bug.

Comment 1 Akira TAGOH 2011-12-19 09:14:22 UTC
Created attachment 548515 [details]
zanata.xml

I forgot to attach the file.

Comment 2 David Mason 2011-12-21 01:26:35 UTC
I can see no zh-Hans-CN translations on the server for imsettings, so it looks like this bug is about breaking existing po files when there are no matching translations on the server, possibly only for mapped locales.

If so this is a duplicate of 768877

Comment 3 Akira TAGOH 2011-12-21 03:50:07 UTC
I intentionally filed both as a separate bug because I'm focusing on this that the python client seems not dealing with the "map-from=" in zanata.xml properly. given that Bug#768877 is fixed, I don't think the python client is working back for "map-from=" with that fix.

Comment 4 David Mason 2011-12-21 05:45:04 UTC

*** This bug has been marked as a duplicate of bug 768877 ***

Comment 5 Ding-Yi Chen 2012-02-23 04:44:32 UTC
Actually bug 768877 and this bug mention different thing.
While 768877 means empty po files should not be pulled, this bug actually means po files need to be pulled and save as map-from, thus split this bug again.

Comment 6 Ding-Yi Chen 2012-02-23 04:50:03 UTC
Copy from James comment on Bug 768877:

===========================================
Hi, 

I have make a commit to git-hub for zanata-python-client to fix this issue, if
there is no translation, or the locale is not enabled on the server, the client
will stop writing. Please check out the latest code for testing.

'map-from' actually works, but the client only display the locale name using on
the client side, doesn't output the process of mapping. So do you think we
should output more detail info for mapping process? like:

Mapping zh_CN to zh-Hans-CN
Retrieving zh-Hans-CN translation from server:
============================================
Yes, the output format you are suggesting is good.
So please fix it. :-)

Comment 7 Fedora End Of Life 2013-04-03 19:51:49 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle.
Changing version to '19'.

(As we did not run this process for some time, it could affect also pre-Fedora 19 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora19

Comment 8 Fedora Admin XMLRPC Client 2013-08-13 04:45:21 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 9 Fedora Admin XMLRPC Client 2014-07-11 07:00:47 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 10 Fedora Update System 2014-09-19 10:22:41 UTC
zanata-python-client-1.3.16-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/zanata-python-client-1.3.16-1.fc20

Comment 11 Fedora Update System 2014-09-19 10:23:01 UTC
zanata-python-client-1.3.16-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/zanata-python-client-1.3.16-1.fc21

Comment 12 Fedora Update System 2014-09-19 17:46:16 UTC
Package zanata-python-client-1.3.16-1.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing zanata-python-client-1.3.16-1.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-11155/zanata-python-client-1.3.16-1.fc21
then log in and leave karma (feedback).

Comment 13 Fedora Update System 2014-11-07 09:38:15 UTC
zanata-python-client-1.3.16-2.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/zanata-python-client-1.3.16-2.fc20

Comment 14 Fedora Update System 2014-11-07 09:38:37 UTC
zanata-python-client-1.3.16-2.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/zanata-python-client-1.3.16-2.fc21

Comment 15 Fedora Update System 2014-11-07 09:39:57 UTC
zanata-python-client-1.3.16-2.el7 has been submitted as an update for Fedora EPEL 7.
https://admin.fedoraproject.org/updates/zanata-python-client-1.3.16-2.el7

Comment 16 Fedora Update System 2014-12-03 07:57:08 UTC
zanata-python-client-1.3.18-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/zanata-python-client-1.3.18-1.fc20

Comment 17 Fedora Update System 2014-12-03 07:57:34 UTC
zanata-python-client-1.3.18-1.el7 has been submitted as an update for Fedora EPEL 7.
https://admin.fedoraproject.org/updates/zanata-python-client-1.3.18-1.el7

Comment 18 Fedora Update System 2014-12-03 07:57:57 UTC
zanata-python-client-1.3.18-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/zanata-python-client-1.3.18-1.fc21

Comment 19 Fedora Update System 2014-12-06 10:20:28 UTC
zanata-python-client-1.3.16-2.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 20 Fedora Update System 2014-12-12 04:35:54 UTC
zanata-python-client-1.3.18-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 21 Fedora Update System 2014-12-13 09:45:16 UTC
zanata-python-client-1.3.18-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 22 Fedora Update System 2014-12-20 00:16:27 UTC
zanata-python-client-1.3.18-1.el7 has been pushed to the Fedora EPEL 7 stable repository.  If problems still persist, please make note of it in this bug report.


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