From ghynxmail at gmail.com Tue Jul 3 14:21:37 2012 From: ghynxmail at gmail.com (Gregoire Henry) Date: Tue, 3 Jul 2012 16:21:37 +0200 Subject: [zanata-users] Push failled if two files have same message entries inside !! Message-ID: Hello using server 1.6.1 (20120701-2315) (jdk 1.6.31, windows 2008,Mysql) maven client : 1.6.1-SNAPSHOT I'm trying to push some sources files (.pot) to the server , some of this files have similar entries (same key for messages) , and the push failled with a duplicate id . Doe's it mean that we can't have files with same message key ? or is this a bug ? Thank's for your answers Greg -------------- next part -------------- An HTML attachment was scrubbed... URL: From sflaniga at redhat.com Wed Jul 4 06:04:36 2012 From: sflaniga at redhat.com (Sean Flanigan) Date: Wed, 04 Jul 2012 16:04:36 +1000 Subject: [zanata-users] Push failled if two files have same message entries inside !! In-Reply-To: References: Message-ID: <4FF3DCF4.2020102@redhat.com> On 2012-07-04 00:21, Gregoire Henry wrote: > Hello > > using > server 1.6.1 (20120701-2315) (jdk 1.6.31, windows 2008,Mysql) > maven client : 1.6.1-SNAPSHOT > > I'm trying to push some sources files (.pot) to the server , some of > this files have similar entries (same key for messages) , and the push > failled with a duplicate id . > > Doe's it mean that we can't have files with same message key ? or is > this a bug ? > > > Thank's for your answers > > Greg > The Gettext format doesn't support multiple entries in the same file which have the same msgid, unless they have different values for msgctxt. Do the gettext tools like msgcat, msgfmt complain about this file too? -- 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 Wed Jul 4 08:06:59 2012 From: ghynxmail at gmail.com (Gregoire Henry) Date: Wed, 4 Jul 2012 10:06:59 +0200 Subject: [zanata-users] Push failled if two files have same message entries inside !! In-Reply-To: <4FF3DCF4.2020102@redhat.com> References: <4FF3DCF4.2020102@redhat.com> Message-ID: Hi Sean , Sorry , i've re read my request and see some little confusion... The duplicates keys are in different files , we have several files for a project. 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. Actually we send thoses files to translators and recommend to use poEdit for avoiding encoding problems . Here is the detailled log [INFO] pushing source doc [name=dashboard-std size=132] to server .[INFO] >> REST Request: PUT => http://vm-traduction.lswe.priv/zanata/rest/projects/p/Test-project/iterations/i/1.0/r/dashboard-std?copyTrans=true&ext=gettext&ext=comment [INFO] >> Header: X-Version-No = [1.6.0-alpha-2] [INFO] >> Header: X-Auth-User = [ghenry] [INFO] >> Header: X-Auth-Token = [********************************] [INFO] >> Header: Accept = [application/xml] [INFO] >> Body: dashboard-std PACKAGE VERSION 2012-07-02 17:11+0200 1.0 text/plain; charset=UTF-8 8bit {... some TextFlow entries ...} Supprimer false action.remove action.remove {... some TextFlow entries ...} [INFO] pushing source doc [name=dashboardMessages size=800] to server .[INFO] >> REST Request: PUT => http://vm-traduction.lswe.priv/zanata/rest/projects/p/Test-project/iterations/i/1.0/r/dashboardMessages?copyTrans=true&ext=gettext&ext=comment [INFO] >> Header: X-Version-No = [1.6.0-alpha-2] [INFO] >> Header: X-Auth-User = [ghenry] [INFO] >> Header: X-Auth-Token = [********************************] [INFO] >> Header: Accept = [application/xml] [INFO] >> Body: dashboardMessages PACKAGE VERSION 2012-07-02 17:11+0200 1.0 text/plain; charset=UTF-8 8bit {... some TextFlow entries ...} Supprimer false action.remove action.remove {... some TextFlow entries ...} 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: http://vm-traduction.lswe.priv/zanata/rest/projects/p/Test-project/iterations/i/1.0/r, annotations: [@javax.ws.rs.PUT(), @javax.ws.rs.Path(value={id})] -> [Help 1] As you can see , the TextFlow ID is duplicated but between two different files , does the ID calculation take care about the file name ? 2012/7/4 Sean Flanigan > On 2012-07-04 00:21, Gregoire Henry wrote: > > Hello > > > > using > > server 1.6.1 (20120701-2315) (jdk 1.6.31, windows 2008,Mysql) > > maven client : 1.6.1-SNAPSHOT > > > > I'm trying to push some sources files (.pot) to the server , some of > > this files have similar entries (same key for messages) , and the push > > failled with a duplicate id . > > > > Doe's it mean that we can't have files with same message key ? or is > > this a bug ? > > > > > > Thank's for your answers > > > > Greg > > > > The Gettext format doesn't support multiple entries in the same file > which have the same msgid, unless they have different values for > msgctxt. Do the gettext tools like msgcat, msgfmt complain about this > file too? > > > > -- > Sean Flanigan > > Senior Software Engineer > Engineering - Internationalisation > Red Hat > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sflaniga at redhat.com Thu Jul 5 02:13:53 2012 From: sflaniga at redhat.com (Sean Flanigan) Date: Thu, 05 Jul 2012 12:13:53 +1000 Subject: [zanata-users] Push failled if two files have same message entries inside !! In-Reply-To: References: <4FF3DCF4.2020102@redhat.com> Message-ID: <4FF4F861.10808@redhat.com> That error means two textflows in the same document had the same ID. Are you sure the id bd8ff7a0da15f60bb574e0ccb537cbf9 (or "action.remove") only appears once in each document? On 2012-07-04 18:06, Gregoire Henry wrote: > Hi Sean , > > Sorry , i've re read my request and see some little confusion... > > The duplicates keys are in different files , we have several files for a > project. > > 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. > > Actually we send thoses files to translators and recommend to use poEdit > for avoiding encoding problems . > > > Here is the detailled log > > [INFO] pushing source doc [name=dashboard-std size=132] to server > .[INFO] >> REST Request: PUT => > http://vm-traduction.lswe.priv/zanata/rest/projects/p/Test-project/iterations/i/1.0/r/dashboard-std?copyTrans=true&ext=gettext&ext=comment > > [INFO] >> Header: X-Version-No = [1.6.0-alpha-2] > [INFO] >> Header: X-Auth-User = [ghenry] > [INFO] >> Header: X-Auth-Token = [********************************] > [INFO] >> Header: Accept = [application/xml] > [INFO] >> Body: content-type="application/x-gettext" > xmlns:ns2="http://zanata.org/namespace/api/" > xmlns:ns3="http://zanata.org/namespace/api/gettext/"> > dashboard-std > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > > PACKAGE VERSION > > 2012-07-02 17:11+0200 > 1.0 > text/plain; charset=UTF-8 > 8bit > > > > > {... some TextFlow entries ...} > > > Supprimer > false > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > action.remove > > > action.remove > > > xml:space="preserve" > xmlns:ns5="http://zanata.org/namespace/api/comment/" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > > > > > {... some TextFlow entries ...} > > [INFO] pushing source doc [name=dashboardMessages size=800] to server > .[INFO] >> REST Request: PUT => > http://vm-traduction.lswe.priv/zanata/rest/projects/p/Test-project/iterations/i/1.0/r/dashboardMessages?copyTrans=true&ext=gettext&ext=comment > > [INFO] >> Header: X-Version-No = [1.6.0-alpha-2] > [INFO] >> Header: X-Auth-User = [ghenry] > [INFO] >> Header: X-Auth-Token = [********************************] > [INFO] >> Header: Accept = [application/xml] > [INFO] >> Body: content-type="application/x-gettext" > xmlns:ns2="http://zanata.org/namespace/api/" > xmlns:ns3="http://zanata.org/namespace/api/gettext/"> > dashboardMessages > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > > PACKAGE VERSION > > 2012-07-02 17:11+0200 > 1.0 > text/plain; charset=UTF-8 > 8bit > > > > > {... some TextFlow entries ...} > > > Supprimer > false > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > action.remove > > > action.remove > > > xml:space="preserve" > xmlns:ns5="http://zanata.org/namespace/api/comment/" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > > > > > > {... some TextFlow entries ...} > > 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: > http://vm-traduction.lswe.priv/zanata/rest/projects/p/Test-project/iterations/i/1.0/r, > annotations: [@javax.ws.rs.PUT(), @javax.ws.rs.Path(value={id})] -> [Help 1] > > As you can see , the TextFlow ID is duplicated but between two > different files , does the ID calculation take care about the file name ? > > > > > > 2012/7/4 Sean Flanigan > > > On 2012-07-04 00:21, Gregoire Henry wrote: > > Hello > > > > using > > server 1.6.1 (20120701-2315) (jdk 1.6.31, windows 2008,Mysql) > > maven client : 1.6.1-SNAPSHOT > > > > I'm trying to push some sources files (.pot) to the server , some of > > this files have similar entries (same key for messages) , and the push > > failled with a duplicate id . > > > > Doe's it mean that we can't have files with same message key ? or is > > this a bug ? > > > > > > Thank's for your answers > > > > Greg > > > > The Gettext format doesn't support multiple entries in the same file > which have the same msgid, unless they have different values for > msgctxt. Do the gettext tools like msgcat, msgfmt complain about this > file too? > > > > -- > Sean Flanigan > > Senior Software Engineer > Engineering - Internationalisation > Red Hat > > -- 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 bkearney at redhat.com Tue Jul 17 20:56:21 2012 From: bkearney at redhat.com (Bryan Kearney) Date: Tue, 17 Jul 2012 16:56:21 -0400 Subject: [zanata-users] Looks like there is a new zanata Message-ID: <5005D175.70709@redhat.com> I am a member of hte ta-IN group, and I am a maintainer of a project. I notice when I select on a language (ta-IN) it is in read only mode. Is this because someone else has locked it? If so, how do I find out who has locked it? -- bk From sflaniga at redhat.com Wed Jul 18 01:41:40 2012 From: sflaniga at redhat.com (Sean Flanigan) Date: Wed, 18 Jul 2012 11:41:40 +1000 Subject: [zanata-users] Looks like there is a new zanata In-Reply-To: <5005D175.70709@redhat.com> References: <5005D175.70709@redhat.com> Message-ID: <50061454.3020301@redhat.com> On 2012-07-18 06:56, Bryan Kearney wrote: > I am a member of the ta-IN group, and I am a maintainer of a project. I > notice when I select on a language (ta-IN) it is in read only mode. Is > this because someone else has locked it? If so, how do I find out who > has locked it? Well, a project (or project version) can be marked read-only for all users by admin or by a project maintainer, so that's one way you can end up in read-only mode. We don't currently audit this action. Another way to find yourself in read-only mode if you don't have permission to translate the project/version in question (eg not in the locale team). Or if there's a bug in that determination, which I think you might have hit. We're looking into it. Is this the project? https://translate.zanata.org/zanata/iteration/view/cfse/1.0.1 -- 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 bkearney at redhat.com Wed Jul 18 12:04:50 2012 From: bkearney at redhat.com (Bryan Kearney) Date: Wed, 18 Jul 2012 08:04:50 -0400 Subject: [zanata-users] Looks like there is a new zanata In-Reply-To: <50061454.3020301@redhat.com> References: <5005D175.70709@redhat.com> <50061454.3020301@redhat.com> Message-ID: <5006A662.3080906@redhat.com> On 07/17/2012 09:41 PM, Sean Flanigan wrote: > On 2012-07-18 06:56, Bryan Kearney wrote: >> I am a member of the ta-IN group, and I am a maintainer of a project. I >> notice when I select on a language (ta-IN) it is in read only mode. Is >> this because someone else has locked it? If so, how do I find out who >> has locked it? > > Well, a project (or project version) can be marked read-only for all > users by admin or by a project maintainer, so that's one way you can end > up in read-only mode. We don't currently audit this action. > > Another way to find yourself in read-only mode if you don't have > permission to translate the project/version in question (eg not in the > locale team). Or if there's a bug in that determination, which I think > you might have hit. We're looking into it. > > Is this the project? > https://translate.zanata.org/zanata/iteration/view/cfse/1.0.1 > > No.. it is this one: https://translate.zanata.org/zanata/iteration/view/subscription-manager/1.0.X I am (1) the project owner and (2) in the ta_IN group. However, that language file is locked for me. -- bk From runab at redhat.com Thu Jul 19 07:11:43 2012 From: runab at redhat.com (Runa Bhattacharjee) Date: Thu, 19 Jul 2012 12:41:43 +0530 Subject: [zanata-users] Looks like there is a new zanata In-Reply-To: <5006A662.3080906@redhat.com> References: <5005D175.70709@redhat.com> <50061454.3020301@redhat.com> <5006A662.3080906@redhat.com> Message-ID: <5007B32F.9060807@redhat.com> On ?????? 18 ????? 2012 05:34 ???????, Bryan Kearney wrote: > https://translate.zanata.org/zanata/iteration/view/subscription-manager/1.0.X > > I am (1) the project owner and (2) in the ta_IN group. However, that > language file is locked for me. > Looks like this particular iteration is read-only for the language (even for admin) although it is marked as an 'ACTIVE' iteration. Is Tamil the only language that is affected? regards Runa -- blog: http://arrbee.wordpress.com irc: arrbee or runa_b on Freenode From sflaniga at redhat.com Thu Jul 19 07:21:23 2012 From: sflaniga at redhat.com (Sean Flanigan) Date: Thu, 19 Jul 2012 17:21:23 +1000 Subject: [zanata-users] Looks like there is a new zanata In-Reply-To: <5007B32F.9060807@redhat.com> References: <5005D175.70709@redhat.com> <50061454.3020301@redhat.com> <5006A662.3080906@redhat.com> <5007B32F.9060807@redhat.com> Message-ID: <5007B573.60705@redhat.com> On 2012-07-19 17:11, Runa Bhattacharjee wrote: > On ?????? 18 ????? 2012 05:34 ???????, Bryan Kearney wrote: > >> https://translate.zanata.org/zanata/iteration/view/subscription-manager/1.0.X >> >> I am (1) the project owner and (2) in the ta_IN group. However, that >> language file is locked for me. >> > > Looks like this particular iteration is read-only for the language (even for > admin) although it is marked as an 'ACTIVE' iteration. > > Is Tamil the only language that is affected? > > regards > Runa It can happen for any project/version/language where a read-only user (not a member of the relevant language team or project owner) opens the translation workspace before a read-write user does (eg project owner). This is caused by https://bugzilla.redhat.com/show_bug.cgi?id=841381 A fix is being tested now, and will be in Zanata 1.7. -- 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: