From bkearney at redhat.com Fri May 27 13:09:13 2011 From: bkearney at redhat.com (Bryan Kearney) Date: Fri, 27 May 2011 09:09:13 -0400 Subject: [zanata-users] Questions around setting up zanata using the python clients Message-ID: <4DDFA279.9020403@redhat.com> This will have a couple of things.. sorry about combining the issues: 1) Can you please update the unoffical rpms with an F14? Thanks! 2) I tried doing a make install from the code. Opened bug https://bugzilla.redhat.com/show_bug.cgi?id=708363 3) I have set up a new project. The project file is attached. My directory structure is flat.. it has the following in one directory: as.po de.po fr.po hi.po ja.po kn.po ml.po or.po pt.po ta.po zanata.xml zh_TW.po bn.po es.po gu.po it.po keys.pot ko.po mr.po pa.po ru.po te.po zh_CN.po I would like to push my po files and my pot up to the server. I am running zanata po push --srcdir . and getting the following. Any ideas? Loading zanata project config from: /home/bkearney/code/candlepin/proxy/po/zanata.xml Loading zanata/flies user config from: /home/bkearney/.config/zanata.ini zanata/flies server: https://translate.engineering.redhat.com zanata python client version: 1.2.3-24-g931b, zanata/flies server API version: 1.3 Project: candlepin Version: 0.3 Username: bkearney Source language: en-US Copy previous translations:True PO directory (originals):. Importing source documents only Traceback (most recent call last): File "/usr/bin/zanata", line 5, in pkg_resources.run_script('zanata-python-client==1.2.3-24-g931b', 'zanata') File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 467, in run_script self.require(requires)[0].run_script(script_name, ns) File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1200, in run_script execfile(script_filename, namespace, namespace) File "/usr/lib/python2.7/site-packages/zanata_python_client-1.2.3_24_g931b-py2.7.egg/EGG-INFO/scripts/zanata", line 24, in zanata.run() File "/usr/lib/python2.7/site-packages/zanata_python_client-1.2.3_24_g931b-py2.7.egg/zanataclient/zanata.py", line 953, in run program_name=os.path.split(sys.argv[0])[1], File "/usr/lib/python2.7/site-packages/zanata_python_client-1.2.3_24_g931b-py2.7.egg/zanataclient/command.py", line 310, in handle_program command(command_options, args) File "/usr/lib/python2.7/site-packages/zanata_python_client-1.2.3_24_g931b-py2.7.egg/zanataclient/zanata.py", line 737, in po_push push(command_options, args, "software") File "/usr/lib/python2.7/site-packages/zanata_python_client-1.2.3_24_g931b-py2.7.egg/zanataclient/zanata.py", line 905, in push filelist = publicanutil.get_file_list(tmlfolder, ".pot") File "/usr/lib/python2.7/site-packages/zanata_python_client-1.2.3_24_g931b-py2.7.egg/zanataclient/publicanutil.py", line 148, in get_file_list final_file_list+=self.get_file_list(full_path, type) File "/usr/lib/python2.7/site-packages/zanata_python_client-1.2.3_24_g931b-py2.7.egg/zanataclient/publicanutil.py", line 145, in get_file_list if full_path.endswith(file_type): TypeError: expected a character buffer object -- bk -------------- next part -------------- A non-text attachment was scrubbed... Name: zanata.xml Type: text/xml Size: 970 bytes Desc: not available URL: From ggainey at redhat.com Fri May 27 13:09:23 2011 From: ggainey at redhat.com (Grant Gainey) Date: Fri, 27 May 2011 09:09:23 -0400 (EDT) Subject: [zanata-users] Questions around setting up zanata using the python clients In-Reply-To: <4DDFA279.9020403@redhat.com> Message-ID: <635923645.748.1306501763463.JavaMail.root@zmail07.collab.prod.int.phx2.redhat.com> > 3) I have set up a new project. The project file is attached. My > directory structure is flat.. it has the following in one directory: > > as.po > de.po > fr.po > hi.po > ja.po > kn.po > ml.po > or.po > pt.po > ta.po > zanata.xml > zh_TW.po > bn.po > es.po > gu.po > it.po > keys.pot > ko.po > mr.po > pa.po > ru.po > te.po > zh_CN.po Interesting - I thought gettext wanted a layout like foo.pot es \ foo.po fr \ foo.po de \ foo.po I guess I "assumed" that layout was dictated by gettext - not so? G From bkearney at redhat.com Fri May 27 13:16:56 2011 From: bkearney at redhat.com (Bryan Kearney) Date: Fri, 27 May 2011 09:16:56 -0400 Subject: [zanata-users] Questions around setting up zanata using the python clients In-Reply-To: <635923645.748.1306501763463.JavaMail.root@zmail07.collab.prod.int.phx2.redhat.com> References: <635923645.748.1306501763463.JavaMail.root@zmail07.collab.prod.int.phx2.redhat.com> Message-ID: <4DDFA448.3040509@redhat.com> On 05/27/2011 09:09 AM, Grant Gainey wrote: > > > Interesting - I thought gettext wanted a layout like > > foo.pot > es > \ foo.po > fr > \ foo.po > de > \ foo.po > > I guess I "assumed" that layout was dictated by gettext - not so? > > G IANOAGTM (I am not a get text master) but we have java and a python project which has them flat. I have ruby project which uses the directory structure. -- bk