google-code-export / flies

Automatically exported from code.google.com/p/flies
GNU Lesser General Public License v2.1
2 stars 0 forks source link

[python client] publican push --import-po does not handle msgId in po but not in pot. #277

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Check out HibernateCore/trunk
2. cd HibernateCore/trunk
3. Assume flies.xml looks like:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<config xmlns="http://flies.openl10n.net/config/v1/">
    <url>http://flies-devel.englab.bne.redhat.com/flies/</url>
    <project>HibernateCore</project>
    <project-version>trunk</project-version>
    <locales>
        <locale map-from="ja-JP">ja</locale>
        <locale map-from="zh-CN">zh-Hans</locale>
    </locales>
</config>

4.flies publican push --project-id=HibernateCore --project-version=trunk 
--import-po

What is the expected output?
All pot and po files are pushed successfully.

What do you see instead?
Error on big files, such as:

Push the content of HibernateCore/trunk/pot/content/configuration.pot to Flies 
server:                                                                         

Successfully pushed HibernateCore/trunk/pot/content/configuration.pot to the 
Flies server                                                                    

Push zh-CN translation to Flies server:                                         

error: Unexpected target: 4d6a3f74e498bd9eb5239e45b9805153                      

Push ja-JP translation to Flies server:                                         

error: Unexpected target: 4d6a3f74e498bd9eb5239e45b9805153            

What version of the client *and* server are you using? (Displayed at the
bottom of the web page; please include timestamp.) On what operating
system?
Server: 1.2-SNAPSHOT (20110304-1618)
Python client: 6ae38dc4dcbaef6ee61ea0d7cee9a9184ce0217b
(0.8.1)

Please use labels and text to provide additional information.

Original issue reported on code.google.com by dchen%re...@gtempaccount.com on 11 Mar 2011 at 6:53

GoogleCodeExporter commented 9 years ago
The "Unexpected target" means that server can not find textFlow which 'resId' 
is same to the 'resId' of textFlowTarget pushed to the server. The 'resId' is 
based on 'msgid' of the pot file and po file. I compared configuration.pot and 
configuration.po, in line 2193 of pot and line 3137 of po file, the content of 
'msgid' of entry in both files should be same, but actually they are 
difference. so it is not a error of python client, it should be a error of 
resource file and translation file. 

Also there is bug on the server side, it returns a wrong msgid for 
textFlowTarget that could not find corresponding textFlow. I will report 
another bug about that.     

Original comment by kent....@gmail.com on 13 Mar 2011 at 4:09

GoogleCodeExporter commented 9 years ago
Still, it will be great to show following message 
"msgId cannot be found in pot file, skipping (the message or the whole 
document)."
instead of showing the error and hash code.

Original comment by dchen%re...@gtempaccount.com on 14 Mar 2011 at 2:01