[zanata-users] Help requested

Gregoire Henry ghynxmail at gmail.com
Thu Jun 28 09:31:22 UTC 2012


Hi Carlos and Sean

Thanks for your reply .

1.6.1-SNAPSHOT does the job , i can push my files on the server.

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
..

[WARNING] client API version is 1.6.0-alpha-2, but server API version is
1.5.0
[INFO] Server: http://srvbldbrn:8380/zanata/
[INFO] Project: test
[INFO] Version: 1.0
[INFO] Username: admin
[INFO] Project type: properties
[INFO] Source language: fr-FR
[INFO] Copy previous translations: true
[INFO] Merge type: auto
[INFO] Enable modules: false
[INFO] Include patterns:
[INFO] Exclude patterns:
[INFO] Default excludes: true
[INFO] Pushing source documents only
[INFO] Source directory (originals): C:\Projects\lefebvre\zanatatest\pot
[INFO] Found source document: analytique_entities
[INFO] pushing source doc [name=analytique_entities size=596] to server
. 0 secs
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2.828s
[INFO] Finished at: Thu Jun 28 10:22:52 CEST 2012
[INFO] Final Memory: 9M/124M
[INFO]
------------------------------------------------------------------------
[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:
http://srvbldbrn:8380/zanata/rest/projects/p/test/iterat
ions/i/1.0/r, annotations: [@javax.ws.rs.PUT(),
@javax.ws.rs.Path(value={id})] -> [Help 1]


Anyway , i'll continue my tests

Regards




2012/6/28 Sean Flanigan <sflaniga at redhat.com>

> Hi Greg,
>
> As Carlos said, it's because the Maven client doesn't handle backslash
> characters.
>
> I've put in https://bugzilla.redhat.com/show_bug.cgi?id=836054
>
> If you update the client version to 1.6.1-SNAPSHOT, it should fix the
> problem.  Please let me know what you find.
>
>
> On an unrelated note: any time you end up with "pot" as part of the
> filename (eg "Found source document: pot\analytique_entities"), "pot"
> will end up in the output filename too.  That's usually not what you
> want.  If you have configured srcDir as "." (the default), you may want
> srcDir to be "pot" instead.
>
> Regards
>
> Sean.
>
> On 2012-06-28 00:29, Gregoire Henry wrote:
> > Hello
> > I'm trying to test zenata for my own project ..
> > I've succesfully setup zenata server on a win 2003 server
> > i've created a test project and added some language in it (fr,de)
> > I 'm trying to push some files from a test project using maven client
> > (1.5.0 and 1.6.0) . (test made with  gettext .pot files and java
> > .properties files)
> >
> > each push failled with the following error
> >
> > C:\Projects\lefebvre\zanatatest>mvn  zanata:push -B
> > [INFO] Scanning for projects...
> > [INFO]
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Building test 0.0.1-SNAPSHOT
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO]
> > [INFO] --- zanata-maven-plugin:1.5.0:push (default-cli) @ test ---
> > [WARNING] The POM for
> > org.jboss.resteasy:resteasy-jaxb-provider:jar:2.1.0.GA <http://2.1.0.GA>
> > is missing, no dependency information available
> > [INFO] Loading project config from
> > C:\Projects\lefebvre\zanatatest\zanata.xml
> > [INFO] Loading user config from
> C:\Projects\lefebvre\zanatatest\zanata.ini
> > [INFO] client API version: 1.5.0, server API version: 1.5.0
> > [INFO] Server: http://srvbldbrn:8380/zanata/
> > [INFO] Project: test
> > [INFO] Version: 1.0
> > [INFO] Username: admin
> > [INFO] Project type: properties
> > [INFO] Source language: fr
> > [INFO] Copy previous translations: true
> > [INFO] Merge type: auto
> > [INFO] Enable modules: false
> > [INFO] Include patterns:
> > [INFO] Exclude patterns:
> > [INFO] Default excludes: true
> > [INFO] Pushing source documents only
> > [INFO] Source directory (originals): C:\Projects\lefebvre\zanatatest
> > [INFO] Found source document: pot\analytique_entities
> > [INFO] pushing source doc [name=pot\analytique_entities size=596] to
> server
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: 2.465s
> > [INFO] Finished at: Wed Jun 27 16:11:54 CEST 2012
> > [INFO] Final Memory: 8M/121M
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] Failed to execute goal org.zanata:zanata-maven-plugin:1.5.0:push
> > (default-cli) on project test: Zanata mojo exception: operation returned
> > 400 (Bad Request): , uri:
> > http://srvbldbrn:8380/zanata/rest/projects/p/test/iterations/i/1.0/r,
> > annotations: [@javax.ws.rs.PUT(), @javax.ws.rs.Path(value=
> > {id})] -> [Help 1]
> > [ERROR]
> > [ERROR] To see the full stack trace of the errors, re-run Maven with the
> > -e switch.
> > [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> > [ERROR]
> > [ERROR] For more information about the errors and possible solutions,
> > please read the following articles:
> > [ERROR] [Help 1]
> > http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> > C:\Projects\lefebvre\zanatatest>
> >
> > Do i make something wrong ?
> >
> > Is there is a relation with the warning about  org.jboss.resteasy pom
> > missing ?
> >
> > my zanata.xml file looks like
> > <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> > <config xmlns="http://zanata.org/namespace/config/">
> >     <url>http://xxxxxxx/zanata/</url>
> >     <project>test</project>
> >     <project-version>1.0</project-version>
> >     <project-type>properties</project-type>
> >
> >     <locales>
> >         <locale>de</locale>
> >         <locale>fr</locale>
> >     </locales>
> >
> > </config>
> >
> > Thanks for your help .
> >
> > Greg
>
>
> --
> Sean Flanigan
>
> Senior Software Engineer
> Engineering - Internationalisation
> Red Hat
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/zanata-users/attachments/20120628/9161b28c/attachment.htm>


More information about the zanata-users mailing list