From pahuang at redhat.com Tue May 3 01:34:39 2016 From: pahuang at redhat.com (Patrick Huang) Date: Tue, 3 May 2016 11:34:39 +1000 Subject: [zanata-devel] Zanata and questions In-Reply-To: <893f4cb42b7a494580ef0910fe7e06c9@corp.ovh.com> References: <893f4cb42b7a494580ef0910fe7e06c9@corp.ovh.com> Message-ID: Hi Jean, If nobody has answered your question privately already (I just came back from holiday) here it is: No we don't support arbitrary XML file (only Zanata specific XML format). But we do support HTML and plain text file type and your content looks like can be converted to HTML or txt. Both of which falls under file project type. So you zanata.xml will have file and when you push, you use command like: zanata-cli push --src-dir . --file-types "PLAIN_TEXT[txt]" or zanata-cli push --src-dir . --file-types "HTML[html;htm]" and don't forget to change source directory accordingly. On Wed, Apr 6, 2016 at 6:42 PM, Jean Yim wrote: > Hi all! > Thanks for your answers! [image: 😊] > > > I see David... So, we can't translate XML ? Because, I tried to upload one > directly by the app, with the file configuration's format. > > But Zanata told me the xml was "no content". > > > I tried with this file : > > Zanata > Jean > Translate > Let's translate! > > > > > We can't translate XML ? > > > For the client : > I didn't understand than it was for Zanata specific XML... So I tried to > use the option "file" format but it is unknow from the client.. > > [ERROR] Execution failed: unknown project type: file > > > (Sorry for my bad english, I'm not a very good speaker... From France) > > Cheers, > > Jean > > > ------------------------------ > *De :* David Mason > *Envoy? :* mercredi 6 avril 2016 07:27 > *? :* Alex Eng > *Cc :* Jean Yim; zanata-devel at redhat.com > > *Objet :* Re: [zanata-devel] Zanata and questions > > Hi Jean, > > The XML project type is for Zanata's specific XML format. It is used > mainly for testing of the API since it is the format that the command-line > clients use to send translations that are extracted from different file > formats. Unless you have XML that was created by the Zanata client, the > "XML" project type will not work for you. > > If you let us know which XML structure your translations use, or which > tool was used to generate them, we can help to find the right configuration > for you to use. > > > > Cheers, > > David Mason > Software Engineer > L10n Engineering > > Red Hat, Asia-Pacific Pty Ltd > Level 1, 193 North Quay > Brisbane 4000 > > On Wed, Apr 6, 2016 at 7:49 AM, Alex Eng wrote: > >> Is it possible to attached your zanata.xml file and also our project >> files that you wish to push? >> >> >> --------------------------------------------- >> >> Alex Eng >> Senior Software Engineer >> Globalisation Tools Engineering >> DID: +61 3514 8262 >> Mobile: +614 2335 3457 >> >> Red Hat, Asia-Pacific Pty Ltd >> Level 1, 193 North Quay >> Brisbane 4000 >> Office: +61 7 3514 8100 >> Fax: +61 7 3514 8199 >> Website: www.redhat.com >> >> On Wed, Apr 6, 2016 at 2:23 AM, Jean Yim wrote: >> >>> Hi, >>> >>> I got a question again.. Sorry.. >>> >>> >>> I'm trying to upload a xml file on Zanata. >>> >>> But, with the client I got this error : >>> >>> [ERROR] Execution failed: javax.xml.bind.UnmarshalException: >>> unexpected element >>> (uri:"http://zanata.org/namespace/config/", local:"config"). >>> Expected elements are >>> <{http://zanata.org/namespace/api/gettext/}header-entry>, >>> <{http://zanata.org/namespace/api/}person>, >>> <{http://zanata.org/namespace/api/gettext/}po-target-header>, >>> <{http://zanata.org/namespace/api/gettext/}pot-entry-header>, >>> <{http://zanata.org/namespace/api/}resource>, >>> <{http://zanata.org/namespace/api/}translations> >>> >>> >>> I followed all the instructions... My project is set on xml etc... >>> >>> >>> Again, I tried to upload it by the application, but still, "upload >>> failed" >>> >>> And I tested with a project type "file" and "xml" >>> >>> >>> Could you help me.. ? >>> >>> Thanks! >>> >>> >>> ------------------------------ >>> *De :* zanata-devel-bounces at redhat.com >>> de la part de Jean Yim >>> *Envoy? :* mardi 5 avril 2016 15:31 >>> *? :* Alex Eng >>> *Cc :* zanata-devel at redhat.com >>> *Objet :* Re: [zanata-devel] Zanata and questions >>> >>> >>> Just for you to know. I found the answer. >>> >>> In fact, when you run the install.sh he will dl the zanata.war >>> >>> But the zanata.war isn't good anymore, the link has moved. >>> >>> I fix that on my server but I think it's a big issue for beginners. >>> >>> >>> >>> >>> ------------------------------ >>> *De :* Jean Yim >>> *Envoy? :* mardi 5 avril 2016 10:18 >>> *? :* Alex Eng >>> *Cc :* zanata-devel at redhat.com >>> *Objet :* RE: [zanata-devel] Zanata and questions >>> >>> >>> Ps : >>> This is the error : >>> >>> Caused by: java.util.zip.ZipException: error in opening zip file >>> at java.util.zip.ZipFile.open(Native Method) >>> [rt.jar:1.8.0_72-internal] >>> at java.util.zip.ZipFile.(ZipFile.java:219) >>> [rt.jar:1.8.0_72-internal] >>> at java.util.zip.ZipFile.(ZipFile.java:149) >>> [rt.jar:1.8.0_72-internal] >>> at java.util.zip.ZipFile.(ZipFile.java:163) >>> [rt.jar:1.8.0_72-internal] >>> at org.jboss.vfs.VFSUtils.unzip(VFSUtils.java:874) >>> [jboss-vfs-3.2.9.Final.jar:3.2.9.Final] >>> at org.jboss.vfs.VFS.mountZipExpanded(VFS.java:504) >>> [jboss-vfs-3.2.9.Final.jar:3.2.9.Final] >>> at org.jboss.vfs.VFS.mountZipExpanded(VFS.java:533) >>> [jboss-vfs-3.2.9.Final.jar:3.2.9.Final] >>> at >>> org.jboss.as.server.deployment.DeploymentMountProvider$Factory$ServerDeploymentRepositoryImpl.mountDeploymentContent(DeploymentMountProvider.java:108) >>> [wildfly-server-1.0.1.Final.jar:1.0.1.Final] >>> at >>> org.jboss.as.server.deployment.module.DeploymentRootMountProcessor.deploy(DeploymentRootMountProcessor.java:91) >>> [wildfly-server-1.0.1.Final.jar:1.0.1.Final] >>> >>> >>> >>> ------------------------------ >>> *De :* Jean Yim >>> *Envoy? :* mardi 5 avril 2016 10:12 >>> *? :* Alex Eng >>> *Cc :* zanata-devel at redhat.com >>> *Objet :* RE: [zanata-devel] Zanata and questions >>> >>> >>> Perfect, thank you very much for the answer! >>> >>> >>> Also, I'm trying to install it on a debian serv. I use Wildfly 9 and >>> OpenJdk 8. >>> >>> But it seems to have a problem... >>> >>> When I run Wildfly, he can't load Zanata.war because of a problem in >>> opening/reading zip in a java method. >>> >>> Do you have an idea ? (Maybe try oracle java..) >>> >>> >>> Thanks you again! >>> >>> Jean >>> >>> >>> ------------------------------ >>> *De :* Alex Eng >>> *Envoy? :* lundi 4 avril 2016 23:03 >>> *? :* Jean Yim >>> *Cc :* zanata-devel at redhat.com >>> *Objet :* Re: [zanata-devel] Zanata and questions >>> >>> >>> On Mon, Apr 4, 2016 at 7:45 PM, Jean Yim wrote: >>> >>>> I read than Zanata support partially XML, txt, etc... >>>> >>>> Is it really a problem or it's ok ? >>>> >>> Zanata supports different project types. >>> http://docs.zanata.org/en/release/user-guide/projects/project-types/ >>> >>> XML/Xliff - Because it's a rare project type, and multiple types of >>> standard used for this project type, we implemented based on our knowledge >>> of the standard. But feel free to file an issue to us you find bug with >>> this project type. >>> We haven't received concern or issue from the user of these project type >>> but again, we've got limited user on these project type. >>> >>>> Finally, the translation memory can be trained with xliff files ? If >>>> yes, how ? (I didn't see it in the doc..) >>>> >>> Not sure if I understand your question correctly; >>> - If you asking about if translation uploaded in xliff project type will >>> be used as translation memory in Zanata, then yes. >>> All translations uploaded and updated in Zanata will be part of our >>> translation memory. (all translations in our database) >>> >>> >>> >>> --------------------------------------------- >>> >>> Alex Eng >>> Senior Software Engineer >>> Globalisation Tools Engineering >>> DID: +61 3514 8262 >>> Mobile: +614 2335 3457 >>> >>> Red Hat, Asia-Pacific Pty Ltd >>> Level 1, 193 North Quay >>> Brisbane 4000 >>> Office: +61 7 3514 8100 >>> Fax: +61 7 3514 8199 >>> Website: www.redhat.com >>> >> >> >> _______________________________________________ >> zanata-devel mailing list >> zanata-devel at redhat.com >> https://www.redhat.com/mailman/listinfo/zanata-devel >> > > > _______________________________________________ > zanata-devel mailing list > zanata-devel at redhat.com > https://www.redhat.com/mailman/listinfo/zanata-devel > -- Patrick Huang Senior Software Engineer Engineering - Internationalisation Red Hat, Asia-Pacific Pty Ltd Level 1, 193 North Quay Brisbane 4000 Office: +61 7 3514 8278 Fax: +61 7 3514 8199 IRC: pahuang github: github.com/huangp Website: www.redhat.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: OutlookEmoji-&#X1f60a.png Type: image/png Size: 488 bytes Desc: not available URL: