From ghynxmail at gmail.com Mon Feb 25 14:41:47 2013 From: ghynxmail at gmail.com (Gregoire Henry) Date: Mon, 25 Feb 2013 15:41:47 +0100 Subject: [zanata-users] Multiple file type per project Message-ID: hello folks ! is there a way to have multiple file type in a project ? We have some project with .properties and .po files to translate, as by now i can't see a way to use maven plugin to transfer several file types to our zanata server .. Thanks for answering .. Regards Greg -------------- next part -------------- An HTML attachment was scrubbed... URL: From ghynxmail at gmail.com Mon Feb 25 15:42:23 2013 From: ghynxmail at gmail.com (Gregoire Henry) Date: Mon, 25 Feb 2013 16:42:23 +0100 Subject: [zanata-users] Maven & pull request encoding specification Message-ID: Hello Folks, I use maven plugin (2.0.0) to fetch tranbslation from my zanata server (2.0.2) . When i use zanata:pull , files are received with ISO-8859-1 Encoding !!! is there a way to force encoding ? regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From ghynxmail at gmail.com Mon Feb 25 17:20:17 2013 From: ghynxmail at gmail.com (Gregoire Henry) Date: Mon, 25 Feb 2013 18:20:17 +0100 Subject: [zanata-users] Maven & pull request encoding specification Message-ID: Some other informations ... I'm working on windows server & client . Seems like the po writer use default system encoding for writing content , if i download the same .po from zanata instance , content is in UTF8. Also trying to set some maven properties like project.build.sourceEncoding but without success ... Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From pahuang at redhat.com Mon Feb 25 23:26:03 2013 From: pahuang at redhat.com (Patrick Huang) Date: Mon, 25 Feb 2013 18:26:03 -0500 (EST) Subject: [zanata-users] Multiple file type per project In-Reply-To: Message-ID: <944564445.8863700.1361834763187.JavaMail.root@redhat.com> Hi Greg, I am afraid for the time being, you will have to define individual versions for each type. i.e. under , create version 'master-po' and 'master-properties>. If all your source are under same folder, you may as well define individual zanata.xml file(give separate name for each version, i.e. zanata-po.xml and zanata-properties.xml). When using maven client to push or pull, you can override project config file by using -Dzamata.projectConfig=/path/to/your/zanata.xml i.e. mvn zanata:push -Dzanata.projectConfig=zanata-po.xml Having a script handy will save you from typing each time. You can override other properties like this at runtime as well. See output of mvn zanata:help -Ddetail -Dgoal=push Hope this help. Regards, Patrick Huang Senior Software Engineer Engineering - Internationalisation Red Hat ----- Original Message ----- From: "Gregoire Henry" To: zanata-users at redhat.com Sent: Tuesday, February 26, 2013 12:41:47 AM Subject: [zanata-users] Multiple file type per project hello folks ! is there a way to have multiple file type in a project ? We have some project with .properties and .po files to translate, as by now i can't see a way to use maven plugin to transfer several file types to our zanata server .. Thanks for answering .. Regards Greg _______________________________________________ zanata-users mailing list zanata-users at redhat.com https://www.redhat.com/mailman/listinfo/zanata-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sflaniga at redhat.com Mon Feb 25 23:39:30 2013 From: sflaniga at redhat.com (Sean Flanigan) Date: Tue, 26 Feb 2013 09:39:30 +1000 Subject: [zanata-users] Maven & pull request encoding specification In-Reply-To: References: Message-ID: <512BF632.3070309@redhat.com> Ah yes, the plugin should be setting the encoding to UTF-8, instead of assuming it. Would you mind submitting a bug? In the meantime, I think you can work around it by using the Maven option '-Dfile.encoding=UTF8' eg mvn -Dfile.encoding=UTF8 zanata:pull Alternatively, you could set the environment variable 'MAVEN_OPTS' to '-Dfile.encoding=UTF8', although that might affect other things in your Maven builds. On 26/02/13 01:42, Gregoire Henry wrote: > Hello Folks, > > I use maven plugin (2.0.0) to fetch tranbslation from my zanata server > (2.0.2) . > > When i use zanata:pull , files are received with ISO-8859-1 Encoding !!! > > is there a way to force encoding ? > > regards > > > _______________________________________________ > zanata-users mailing list > zanata-users at redhat.com > https://www.redhat.com/mailman/listinfo/zanata-users -- Sean Flanigan Senior Software Engineer Engineering - Internationalisation Red Hat -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 554 bytes Desc: OpenPGP digital signature URL: From ghynxmail at gmail.com Tue Feb 26 16:10:57 2013 From: ghynxmail at gmail.com (Gregoire Henry) Date: Tue, 26 Feb 2013 17:10:57 +0100 Subject: [zanata-users] Multiple file type per project In-Reply-To: <944564445.8863700.1361834763187.JavaMail.root@redhat.com> References: <944564445.8863700.1361834763187.JavaMail.root@redhat.com> Message-ID: Hello Thanks for answering , Ok, i suppose this should or will come in future release (...) , by the way i'll transform my property files to .po format . Regards 2013/2/26 Patrick Huang > Hi Greg, > > I am afraid for the time being, you will have to define individual > versions for each type. i.e. under , create version > 'master-po' and 'master-properties>. > If all your source are under same folder, you may as well define > individual zanata.xml file(give separate name for each version, i.e. > zanata-po.xml and zanata-properties.xml). > When using maven client to push or pull, you can override project config > file by using -Dzamata.projectConfig=/path/to/your/zanata.xml > i.e. mvn zanata:push -Dzanata.projectConfig=zanata-po.xml > > Having a script handy will save you from typing each time. You can > override other properties like this at runtime as well. See output of mvn > zanata:help -Ddetail -Dgoal=push > > Hope this help. > > Regards, > Patrick Huang > Senior Software Engineer > Engineering - Internationalisation > Red Hat > > ------------------------------ > *From: *"Gregoire Henry" > *To: *zanata-users at redhat.com > *Sent: *Tuesday, February 26, 2013 12:41:47 AM > *Subject: *[zanata-users] Multiple file type per project > > > hello folks ! > > is there a way to have multiple file type in a project ? > > We have some project with .properties and .po files to translate, as by > now i can't see a way to use maven plugin to transfer several file types to > our zanata server .. > > Thanks for answering .. > > Regards > > Greg > > _______________________________________________ > zanata-users mailing list > zanata-users at redhat.com > https://www.redhat.com/mailman/listinfo/zanata-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ghynxmail at gmail.com Tue Feb 26 16:40:20 2013 From: ghynxmail at gmail.com (Gregoire Henry) Date: Tue, 26 Feb 2013 17:40:20 +0100 Subject: [zanata-users] Questions about project management . Message-ID: Hello folks ! Sorry , perhaps this is a newby question ... I'm searching for how to manage some entities like project,version or users , i can't find any way to - delete a project / version / source file or translated file - add or delete a user Also , what if i have to add a new file to translate into an existing project , by using maven-plugin i read a warning saying that file that doesn't exist in my source directory will be deleted .. i don't want to try with this kind of warning ... Thanks Regards. Greg -------------- next part -------------- An HTML attachment was scrubbed... URL: From ghynxmail at gmail.com Tue Feb 26 17:26:48 2013 From: ghynxmail at gmail.com (Gregoire Henry) Date: Tue, 26 Feb 2013 18:26:48 +0100 Subject: [zanata-users] Maven & pull request encoding specification In-Reply-To: <512BF632.3070309@redhat.com> References: <512BF632.3070309@redhat.com> Message-ID: Hello Sean Thanks for your answer. The -Dfile.encoding=UTF-8 doesn't work , same with specifying encoding in pom.xml as a project properties ... By the way as i have to reformat .po file to .properties file this is not so annoying for me , but could be problematic for other .. bug submitted : https://bugzilla.redhat.com/show_bug.cgi?id=915886 Regards 2013/2/26 Sean Flanigan > Ah yes, the plugin should be setting the encoding to UTF-8, instead of > assuming it. Would you mind submitting a bug? > > In the meantime, I think you can work around it by using the Maven > option '-Dfile.encoding=UTF8' > eg mvn -Dfile.encoding=UTF8 zanata:pull > > Alternatively, you could set the environment variable 'MAVEN_OPTS' to > '-Dfile.encoding=UTF8', although that might affect other things in your > Maven builds. > > On 26/02/13 01:42, Gregoire Henry wrote: > > Hello Folks, > > > > I use maven plugin (2.0.0) to fetch tranbslation from my zanata server > > (2.0.2) . > > > > When i use zanata:pull , files are received with ISO-8859-1 Encoding !!! > > > > is there a way to force encoding ? > > > > regards > > > > > > _______________________________________________ > > zanata-users mailing list > > zanata-users at redhat.com > > https://www.redhat.com/mailman/listinfo/zanata-users > > > -- > Sean Flanigan > > Senior Software Engineer > Engineering - Internationalisation > Red Hat > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From camunoz at redhat.com Tue Feb 26 23:16:31 2013 From: camunoz at redhat.com (Carlos Munoz) Date: Wed, 27 Feb 2013 09:16:31 +1000 Subject: [zanata-users] Questions about project management . In-Reply-To: References: Message-ID: <512D424F.1060000@redhat.com> Hi Greg, You can manage Projects, versions and users once you log in to the system. Projects and versions can be created by any user (the user who creates a project will automatically become the project maintainer). Users may be added only by system administrators (any user with the 'admin' role basically). To do this, you just need to go to the Administration section (in the latest Zanata version this is under 'More' -> 'Administration'). Zanata does offer User, Project and version management via its REST API, but the preferred way to do it is as explained above. About your second question. When pushing your source files using the maven plugin, the plugin will identify the documents that need to be added or removed from the server (that's why you get a warning). If by any reason you remove a file and later want to re-add it, zanata will do so and will keep it's history as well. I suggest you take a look at which documents are being included in your plugin configuration (in the pom or command line args) and make sure zanata is collecting all the right ones. Let us know if you have other questions. Regards, Carlos A. Munoz Senior Software Engineer Engineering - Internationalisation Red Hat On 02/27/2013 02:40 AM, Gregoire Henry wrote: > Hello folks ! > > Sorry , perhaps this is a newby question ... > > > I'm searching for how to manage some entities like project,version or > users , i can't find any way to > > - delete a project / version / source file or translated file > - add or delete a user > > Also , what if i have to add a new file to translate into an existing > project , by using maven-plugin i read a warning saying that file that > doesn't exist in my source directory will be deleted .. i don't want to > try with this kind of warning ... > > > Thanks > > Regards. > > Greg > > > _______________________________________________ > zanata-users mailing list > zanata-users at redhat.com > https://www.redhat.com/mailman/listinfo/zanata-users From sflaniga at redhat.com Wed Feb 27 00:42:41 2013 From: sflaniga at redhat.com (Sean Flanigan) Date: Wed, 27 Feb 2013 10:42:41 +1000 Subject: [zanata-users] Questions about project management . In-Reply-To: References: Message-ID: <512D5681.8060906@redhat.com> On 27/02/13 02:40, Gregoire Henry wrote: > Hello folks ! > > Sorry , perhaps this is a newby question ... > > > I'm searching for how to manage some entities like project,version or > users , i can't find any way to > > - delete a project / version / source file or translated file Admin can mark projects or versions as "obsolete" from the project/version pages. Source/target files are deleted by pushing a new set of documents from the client, a set which does not include the unwanted file. We don't currently have a way of deleting documents using the web UI. > - add or delete a user Carlos covered this in his reply. > Also , what if i have to add a new file to translate into an existing > project , by using maven-plugin i read a warning saying that file that > doesn't exist in my source directory will be deleted .. i don't want to > try with this kind of warning ... The idea is that you should push with the same parameters (srcDir, transDir) each time. If you want to add a source file, just add it to the source directory (along with the existing source files) and push again. Documents will only be considered obsolete and deleted from the server if they are no longer found in the local directory. The client log will tell you if there are any obsolete documents. > > > Thanks > > Regards. > > Greg > > > _______________________________________________ > zanata-users mailing list > zanata-users at redhat.com > https://www.redhat.com/mailman/listinfo/zanata-users -- Sean Flanigan Senior Software Engineer Engineering - Internationalisation Red Hat -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 554 bytes Desc: OpenPGP digital signature URL: From pahuang at redhat.com Wed Feb 27 00:55:17 2013 From: pahuang at redhat.com (Patrick Huang) Date: Tue, 26 Feb 2013 19:55:17 -0500 (EST) Subject: [zanata-users] Questions about project management . In-Reply-To: <512D5681.8060906@redhat.com> Message-ID: <451103292.11174978.1361926517479.JavaMail.root@redhat.com> Actually in latest version of Zanata, there is a way to delete source document from web UI. Go to your project, if you are admin or project maintainer, you should see a button 'Source Docs' on each row in the versions table. Or if you go to a specific version, under Actions panel on the right, there is a link 'Source Documents'. Click one of them, you should see a table with delete button on each file. But as Sean mentioned, it's still best to make sure your local source repository matches up what's on server. So next time you push it won't create that unwanted file again. Patrick Huang Senior Software Engineer Engineering - Internationalisation Red Hat ----- Original Message ----- From: "Sean Flanigan" To: "Gregoire Henry" Cc: zanata-users at redhat.com Sent: Wednesday, February 27, 2013 10:42:41 AM Subject: Re: [zanata-users] Questions about project management . On 27/02/13 02:40, Gregoire Henry wrote: > Hello folks ! > > Sorry , perhaps this is a newby question ... > > > I'm searching for how to manage some entities like project,version or > users , i can't find any way to > > - delete a project / version / source file or translated file Admin can mark projects or versions as "obsolete" from the project/version pages. Source/target files are deleted by pushing a new set of documents from the client, a set which does not include the unwanted file. We don't currently have a way of deleting documents using the web UI. > - add or delete a user Carlos covered this in his reply. > Also , what if i have to add a new file to translate into an existing > project , by using maven-plugin i read a warning saying that file that > doesn't exist in my source directory will be deleted .. i don't want to > try with this kind of warning ... The idea is that you should push with the same parameters (srcDir, transDir) each time. If you want to add a source file, just add it to the source directory (along with the existing source files) and push again. Documents will only be considered obsolete and deleted from the server if they are no longer found in the local directory. The client log will tell you if there are any obsolete documents. > > > Thanks > > Regards. > > Greg > > > _______________________________________________ > zanata-users mailing list > zanata-users at redhat.com > https://www.redhat.com/mailman/listinfo/zanata-users -- Sean Flanigan Senior Software Engineer Engineering - Internationalisation Red Hat _______________________________________________ zanata-users mailing list zanata-users at redhat.com https://www.redhat.com/mailman/listinfo/zanata-users -------------- next part -------------- An HTML attachment was scrubbed... URL: From ghynxmail at gmail.com Wed Feb 27 20:40:28 2013 From: ghynxmail at gmail.com (Gregoire Henry) Date: Wed, 27 Feb 2013 21:40:28 +0100 Subject: [zanata-users] Questions about project management . In-Reply-To: <451103292.11174978.1361926517479.JavaMail.root@redhat.com> References: <512D5681.8060906@redhat.com> <451103292.11174978.1361926517479.JavaMail.root@redhat.com> Message-ID: Hi all Thanks for answering I'l try to take the latest version of Zanata . Ok for the way to delete/add files from src , i've also seen that i can add a unique src file using UI (dowload button) . i'm sure i'll be back after some more testing :-) Regards Greg 2013/2/27 Patrick Huang > Actually in latest version of Zanata, there is a way to delete source > document from web UI. > > Go to your project, if you are admin or project maintainer, you should see > a button 'Source Docs' on each row in the versions table. > Or if you go to a specific version, under Actions panel on the right, > there is a link 'Source Documents'. > Click one of them, you should see a table with delete button on each file. > > But as Sean mentioned, it's still best to make sure your local source > repository matches up what's on server. So next time you push it won't > create that unwanted file again. > > Patrick Huang > > Senior Software Engineer > Engineering - Internationalisation > Red Hat > > ------------------------------ > *From: *"Sean Flanigan" > *To: *"Gregoire Henry" > *Cc: *zanata-users at redhat.com > *Sent: *Wednesday, February 27, 2013 10:42:41 AM > *Subject: *Re: [zanata-users] Questions about project management . > > > On 27/02/13 02:40, Gregoire Henry wrote: > > Hello folks ! > > > > Sorry , perhaps this is a newby question ... > > > > > > I'm searching for how to manage some entities like project,version or > > users , i can't find any way to > > > > - delete a project / version / source file or translated file > > Admin can mark projects or versions as "obsolete" from the > project/version pages. > > Source/target files are deleted by pushing a new set of documents from > the client, a set which does not include the unwanted file. We don't > currently have a way of deleting documents using the web UI. > > > - add or delete a user > > Carlos covered this in his reply. > > > Also , what if i have to add a new file to translate into an existing > > project , by using maven-plugin i read a warning saying that file that > > doesn't exist in my source directory will be deleted .. i don't want to > > try with this kind of warning ... > > The idea is that you should push with the same parameters (srcDir, > transDir) each time. If you want to add a source file, just add it to > the source directory (along with the existing source files) and push > again. Documents will only be considered obsolete and deleted from the > server if they are no longer found in the local directory. The client > log will tell you if there are any obsolete documents. > > > > > > > Thanks > > > > Regards. > > > > Greg > > > > > > _______________________________________________ > > zanata-users mailing list > > zanata-users at redhat.com > > https://www.redhat.com/mailman/listinfo/zanata-users > > > -- > Sean Flanigan > > Senior Software Engineer > Engineering - Internationalisation > Red Hat > > > _______________________________________________ > zanata-users mailing list > zanata-users at redhat.com > https://www.redhat.com/mailman/listinfo/zanata-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: