<div>Hi Sean , </div><div><br></div><div>Sorry , i've re read my request and see some little confusion...</div><div><br></div><div>The duplicates keys are in different files , we have several files for a project.</div>
<div><br></div><div>It's a java project with .properties, i'm using Translate Toolkit prop2po to convert properties files to po files as this is more easy for translation. </div><div><br></div><div>Actually we send thoses files to translators and recommend to use poEdit for avoiding encoding problems .</div>
<div><br></div><div><br></div><div>Here is the detailled log </div><div><br></div><div><div>[INFO] pushing source doc [name=dashboard-std size=132] to server</div><div>.[INFO] >> REST Request: PUT => <a href="http://vm-traduction.lswe.priv/zanata/rest/projects/p/Test-project/iterations/i/1.0/r/dashboard-std?copyTrans=true&ext=gettext&ext=comment">http://vm-traduction.lswe.priv/zanata/rest/projects/p/Test-project/iterations/i/1.0/r/dashboard-std?copyTrans=true&ext=gettext&ext=comment</a></div>
<div>[INFO] >> Header: X-Version-No = [1.6.0-alpha-2]</div><div>[INFO] >> Header: X-Auth-User = [ghenry]</div><div>[INFO] >> Header: X-Auth-Token = [********************************]</div><div>[INFO] >> Header: Accept = [application/xml]</div>
<div>[INFO] >> Body: <ns2:resource type="FILE" xml:lang="fr" content-type="application/x-gettext" xmlns:ns2="<a href="http://zanata.org/namespace/api/">http://zanata.org/namespace/api/</a>" xmlns:ns3="<a href="http://zanata.org/namespace/api/gettext/">http://zanata.org/namespace/api/gettext/</a>"></div>
<div>    <name>dashboard-std</name></div><div>    <extensions></div><div>        <extension xsi:type="ns3:poHeaderExtension" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"></div>
<div>            <comment></comment></div><div>            <entries></div><div>                <entry key="Project-Id-Version">PACKAGE VERSION</entry></div><div>                <entry key="Report-Msgid-Bugs-To"></entry></div>
<div>                <entry key="POT-Creation-Date">2012-07-02 17:11+0200</entry></div><div>                <entry key="MIME-Version">1.0</entry></div><div>                <entry key="Content-Type">text/plain; charset=UTF-8</entry></div>
<div>                <entry key="Content-Transfer-Encoding">8bit</entry></div><div>            </entries></div><div>        </extension></div><div>    </extensions></div></div><div>
<br></div><div>{... some TextFlow entries ...}</div><div><br></div><div><div>        <ns2:text-flow xml:lang="fr" id="bd8ff7a0da15f60bb574e0ccb537cbf9"></div><div>            <content>Supprimer</content></div>
<div>            <plural>false</plural></div><div>            <extensions></div><div>                <extension xsi:type="ns3:potEntryHeader" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"></div>
<div>                    <context>action.remove</context></div><div>                    <flags/></div><div>                    <source-references></div><div>                        <sourcereference>action.remove</sourcereference></div>
<div>                    </source-references></div><div>                </extension></div><div>                <extension xsi:type="ns5:simpleCommentExtension" xml:space="preserve" xmlns:ns5="<a href="http://zanata.org/namespace/api/comment/">http://zanata.org/namespace/api/comment/</a>" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"></div>
<div>                    <value></value></div><div>                </extension></div><div>            </extensions></div><div>        </ns2:text-flow></div></div><div><br></div><div>{... some TextFlow entries ...}
</div><div><br></div><div><div>[INFO] pushing source doc [name=dashboardMessages size=800] to server</div><div>.[INFO] >> REST Request: PUT => <a href="http://vm-traduction.lswe.priv/zanata/rest/projects/p/Test-project/iterations/i/1.0/r/dashboardMessages?copyTrans=true&ext=gettext&ext=comment">http://vm-traduction.lswe.priv/zanata/rest/projects/p/Test-project/iterations/i/1.0/r/dashboardMessages?copyTrans=true&ext=gettext&ext=comment</a></div>
<div>[INFO] >> Header: X-Version-No = [1.6.0-alpha-2]</div><div>[INFO] >> Header: X-Auth-User = [ghenry]</div><div>[INFO] >> Header: X-Auth-Token = [********************************]</div><div>[INFO] >> Header: Accept = [application/xml]</div>
<div>[INFO] >> Body: <ns2:resource type="FILE" xml:lang="fr" content-type="application/x-gettext" xmlns:ns2="<a href="http://zanata.org/namespace/api/">http://zanata.org/namespace/api/</a>" xmlns:ns3="<a href="http://zanata.org/namespace/api/gettext/">http://zanata.org/namespace/api/gettext/</a>"></div>
<div>    <name>dashboardMessages</name></div><div>    <extensions></div><div>        <extension xsi:type="ns3:poHeaderExtension" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"></div>
<div>            <comment></comment></div><div>            <entries></div><div>                <entry key="Project-Id-Version">PACKAGE VERSION</entry></div><div>                <entry key="Report-Msgid-Bugs-To"></entry></div>
<div>                <entry key="POT-Creation-Date">2012-07-02 17:11+0200</entry></div><div>                <entry key="MIME-Version">1.0</entry></div><div>                <entry key="Content-Type">text/plain; charset=UTF-8</entry></div>
<div>                <entry key="Content-Transfer-Encoding">8bit</entry></div><div>            </entries></div><div>        </extension></div><div>    </extensions></div></div><div>
<br></div><div>{... some TextFlow entries ...}
</div><div><br></div><div><div>        <ns2:text-flow xml:lang="fr" id="bd8ff7a0da15f60bb574e0ccb537cbf9"></div><div>            <content>Supprimer</content></div><div>            <plural>false</plural></div>
<div>            <extensions></div><div>                <extension xsi:type="ns3:potEntryHeader" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"></div>
<div>                    <context>action.remove</context></div><div>                    <flags/></div><div>                    <source-references></div><div>                        <sourcereference>action.remove</sourcereference></div>
<div>                    </source-references></div><div>                </extension></div><div>                <extension xsi:type="ns5:simpleCommentExtension" xml:space="preserve" xmlns:ns5="<a href="http://zanata.org/namespace/api/comment/">http://zanata.org/namespace/api/comment/</a>" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"></div>
<div>                    <value></value></div><div>                </extension></div><div>            </extensions></div><div>        </ns2:text-flow></div></div><div><br></div><div>{... some TextFlow entries ...}
</div><div><br></div><div>Failed to execute goal org.zanata:zanata-maven-plugin:1.6.1-SNAPSHOT:push (default-cli) on project test: Zanata mojo exception: operation returned 400 (Bad Request): encountered TextFlow with duplicate ID bd8ff7a0da15f60bb574e0ccb537cbf9, uri: <a href="http://vm-traduction.lswe.priv/zanata/rest/projects/p/Test-project/iterations/i/1.0/r">http://vm-traduction.lswe.priv/zanata/rest/projects/p/Test-project/iterations/i/1.0/r</a>, annotations: [@javax.ws.rs.PUT(), @javax.ws.rs.Path(value={id})] -> [Help 1]</div>
<div><br></div><div>As you can see ,  the TextFlow ID is duplicated but between two different files , does the ID calculation take care about the file name ?</div><div><br></div><div><br></div><div><br></div><br><br><div class="gmail_quote">
2012/7/4 Sean Flanigan <span dir="ltr"><<a href="mailto:sflaniga@redhat.com" target="_blank">sflaniga@redhat.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On 2012-07-04 00:21, Gregoire Henry wrote:<br>
> Hello<br>
><br>
> using<br>
> server 1.6.1 (20120701-2315) (jdk 1.6.31, windows 2008,Mysql)<br>
> maven client : 1.6.1-SNAPSHOT<br>
><br>
> I'm trying to push some sources files (.pot) to the server , some of<br>
> this files have similar entries (same key for messages) , and the push<br>
> failled with a duplicate id .<br>
><br>
> Doe's it mean that we can't have files with same message key ? or is<br>
> this a bug ?<br>
><br>
><br>
> Thank's for your answers<br>
><br>
> Greg<br>
><br>
<br>
</div></div>The Gettext format doesn't support multiple entries in the same file<br>
which have the same msgid, unless they have different values for<br>
msgctxt.  Do the gettext tools like msgcat, msgfmt complain about this<br>
file too?<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Sean Flanigan<br>
<br>
Senior Software Engineer<br>
Engineering - Internationalisation<br>
Red Hat<br>
<br>
</font></span></blockquote></div><br>