<div>Hi Carlos and Sean </div><div><br></div><div>Thanks for your reply .</div><div><br></div><div>1.6.1-SNAPSHOT does the job , i can push my files on the server. </div><div><br></div><div>i've seen something strange , server doesn't accept files if i don't put en-US in the project languages, i try to set <zanata.sourceLang>fr-FR</zanata.sourceLang> in the mvn clietn properties as french is my primary language but it still refuse the files , if i put en-US as availlable language in the project the file is accepted .. </div>
<div><br></div><div><div>[WARNING] client API version is 1.6.0-alpha-2, but server API version is 1.5.0</div><div>[INFO] Server: <a href="http://srvbldbrn:8380/zanata/">http://srvbldbrn:8380/zanata/</a></div><div>[INFO] Project: test</div>
<div>[INFO] Version: 1.0</div><div>[INFO] Username: admin</div><div>[INFO] Project type: properties</div><div>[INFO] Source language: fr-FR</div><div>[INFO] Copy previous translations: true</div><div>[INFO] Merge type: auto</div>
<div>[INFO] Enable modules: false</div><div>[INFO] Include patterns:</div><div>[INFO] Exclude patterns:</div><div>[INFO] Default excludes: true</div><div>[INFO] Pushing source documents only</div><div>[INFO] Source directory (originals): C:\Projects\lefebvre\zanatatest\pot</div>
<div>[INFO] Found source document: analytique_entities</div><div>[INFO] pushing source doc [name=analytique_entities size=596] to server</div><div>. 0 secs</div><div>[INFO] ------------------------------------------------------------------------</div>
<div>[INFO] BUILD FAILURE</div><div>[INFO] ------------------------------------------------------------------------</div><div>[INFO] Total time: 2.828s</div><div>[INFO] Finished at: Thu Jun 28 10:22:52 CEST 2012</div><div>
[INFO] Final Memory: 9M/124M</div><div>[INFO] ------------------------------------------------------------------------</div><div>[ERROR] Failed to execute goal org.zanata:zanata-maven-plugin:1.6.1-SNAPSHOT:push (default-cli) on project test: Zanata mojo exception: operation returned 403 (Forbidden): Locale en-US is not enabled on this server. Please contact admin., uri: <a href="http://srvbldbrn:8380/zanata/rest/projects/p/test/iterat">http://srvbldbrn:8380/zanata/rest/projects/p/test/iterat</a></div>
<div>ions/i/1.0/r, annotations: [@javax.ws.rs.PUT(), @javax.ws.rs.Path(value={id})] -> [Help 1]</div></div><div><br></div><div><br></div><div>Anyway , i'll continue my tests </div><div><br></div><div>Regards </div>
<div><br></div><div><br></div><br><br><div class="gmail_quote">2012/6/28 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">
Hi Greg,<br>
<br>
As Carlos said, it's because the Maven client doesn't handle backslash<br>
characters.<br>
<br>
I've put in <a href="https://bugzilla.redhat.com/show_bug.cgi?id=836054" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=836054</a><br>
<br>
If you update the client version to 1.6.1-SNAPSHOT, it should fix the<br>
problem. Please let me know what you find.<br>
<br>
<br>
On an unrelated note: any time you end up with "pot" as part of the<br>
filename (eg "Found source document: pot\analytique_entities"), "pot"<br>
will end up in the output filename too. That's usually not what you<br>
want. If you have configured srcDir as "." (the default), you may want<br>
srcDir to be "pot" instead.<br>
<br>
Regards<br>
<br>
Sean.<br>
<div class="im"><br>
On 2012-06-28 00:29, Gregoire Henry wrote:<br>
> Hello<br>
> I'm trying to test zenata for my own project ..<br>
> I've succesfully setup zenata server on a win 2003 server<br>
> i've created a test project and added some language in it (fr,de)<br>
> I 'm trying to push some files from a test project using maven client<br>
> (1.5.0 and 1.6.0) . (test made with gettext .pot files and java<br>
> .properties files)<br>
><br>
> each push failled with the following error<br>
><br>
> C:\Projects\lefebvre\zanatatest>mvn zanata:push -B<br>
> [INFO] Scanning for projects...<br>
> [INFO]<br>
> [INFO]<br>
> ------------------------------------------------------------------------<br>
> [INFO] Building test 0.0.1-SNAPSHOT<br>
> [INFO]<br>
> ------------------------------------------------------------------------<br>
> [INFO]<br>
> [INFO] --- zanata-maven-plugin:1.5.0:push (default-cli) @ test ---<br>
> [WARNING] The POM for<br>
</div>> org.jboss.resteasy:resteasy-jaxb-provider:jar:<a href="http://2.1.0.GA" target="_blank">2.1.0.GA</a> <<a href="http://2.1.0.GA" target="_blank">http://2.1.0.GA</a>><br>
<div class="HOEnZb"><div class="h5">> is missing, no dependency information available<br>
> [INFO] Loading project config from<br>
> C:\Projects\lefebvre\zanatatest\zanata.xml<br>
> [INFO] Loading user config from C:\Projects\lefebvre\zanatatest\zanata.ini<br>
> [INFO] client API version: 1.5.0, server API version: 1.5.0<br>
> [INFO] Server: <a href="http://srvbldbrn:8380/zanata/" target="_blank">http://srvbldbrn:8380/zanata/</a><br>
> [INFO] Project: test<br>
> [INFO] Version: 1.0<br>
> [INFO] Username: admin<br>
> [INFO] Project type: properties<br>
> [INFO] Source language: fr<br>
> [INFO] Copy previous translations: true<br>
> [INFO] Merge type: auto<br>
> [INFO] Enable modules: false<br>
> [INFO] Include patterns:<br>
> [INFO] Exclude patterns:<br>
> [INFO] Default excludes: true<br>
> [INFO] Pushing source documents only<br>
> [INFO] Source directory (originals): C:\Projects\lefebvre\zanatatest<br>
> [INFO] Found source document: pot\analytique_entities<br>
> [INFO] pushing source doc [name=pot\analytique_entities size=596] to server<br>
> [INFO]<br>
> ------------------------------------------------------------------------<br>
> [INFO] BUILD FAILURE<br>
> [INFO]<br>
> ------------------------------------------------------------------------<br>
> [INFO] Total time: 2.465s<br>
> [INFO] Finished at: Wed Jun 27 16:11:54 CEST 2012<br>
> [INFO] Final Memory: 8M/121M<br>
> [INFO]<br>
> ------------------------------------------------------------------------<br>
> [ERROR] Failed to execute goal org.zanata:zanata-maven-plugin:1.5.0:push<br>
> (default-cli) on project test: Zanata mojo exception: operation returned<br>
> 400 (Bad Request): , uri:<br>
> <a href="http://srvbldbrn:8380/zanata/rest/projects/p/test/iterations/i/1.0/r" target="_blank">http://srvbldbrn:8380/zanata/rest/projects/p/test/iterations/i/1.0/r</a>,<br>
> annotations: [@javax.ws.rs.PUT(), @javax.ws.rs.Path(value=<br>
> {id})] -> [Help 1]<br>
> [ERROR]<br>
> [ERROR] To see the full stack trace of the errors, re-run Maven with the<br>
> -e switch.<br>
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.<br>
> [ERROR]<br>
> [ERROR] For more information about the errors and possible solutions,<br>
> please read the following articles:<br>
> [ERROR] [Help 1]<br>
> <a href="http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException" target="_blank">http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException</a><br>
> C:\Projects\lefebvre\zanatatest><br>
><br>
> Do i make something wrong ?<br>
><br>
> Is there is a relation with the warning about org.jboss.resteasy pom<br>
> missing ?<br>
><br>
> my zanata.xml file looks like<br>
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?><br>
> <config xmlns="<a href="http://zanata.org/namespace/config/" target="_blank">http://zanata.org/namespace/config/</a>"><br>
> <url><a href="http://xxxxxxx/zanata/" target="_blank">http://xxxxxxx/zanata/</a></url><br>
> <project>test</project><br>
> <project-version>1.0</project-version><br>
> <project-type>properties</project-type><br>
><br>
> <locales><br>
> <locale>de</locale><br>
> <locale>fr</locale><br>
> </locales><br>
><br>
> </config><br>
><br>
> Thanks for your help .<br>
><br>
> Greg<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Sean Flanigan<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
Senior Software Engineer<br>
Engineering - Internationalisation<br>
Red Hat<br>
</div></div></blockquote></div><br>