[zanata-users] how do I control the directory name for pull and push

Bryan Kearney bkearney at redhat.com
Thu Aug 18 12:24:42 UTC 2011


On 08/18/2011 08:08 AM, Bryan Kearney wrote:
> On 08/17/2011 09:55 PM, Ding Yi Chen wrote:
>>
>>
>> ----- Original Message -----
>>> On 08/18/2011 07:17 AM, Bryan Kearney wrote:
>>>> I have the following directory layout:
>>>>
>>>> /home/bkearney/code/headpin/locale
>>>>
>>>> in locale, I have
>>>> app.pot
>>>> es/app.po
>>>> fr/app.po
>>>>
>>>> If I want to load to the server, I seem to be able to do the
>>>> following:
>>>>
>>>>
>>>> zanata publican push --srcdir . --import-po
>>>>
>>>>
>>>> and it finds the *.po files fine. However, trying to do a po pull or
>>>> a
>>>> publican pull seems to want to put them into
>>>>
>>>> /home/bkearney/code/headpin/locale/po/
>>>>
>>>> is there a way to skip that po directory being added?
>>>
>>>
>>> I'm not so familiar with the python client, and I'm not sure which
>>> version you've got, but have you tried the --transdir (formerly
>>> --dstdir) option? If that doesn't help, you've probably found a bug in
>>> the client.
>>>
>>> In that case, for now I can only suggest that you use a symlink as a
>>> workaround. ("ln -s po .") Sorry. The new commands "zanata push" and
>>> "zanata pull" will have saner directory handling.
>>
>> This is reported as https://bugzilla.redhat.com/show_bug.cgi?id=730200
>> The one in Git is fixed, but the fix has not yet released.
>
>
> Will do the work around. Do you have an estimate on the next release for
> fedora?

I pulled the latest from git, did a make install, and I do not see that 
this is fixed. All of these seem to result in a po directory being used:

  zanata publican pull --dstdir .
  zanata publican pull --transdir .
  zanata po pull --dstdir .
  zanata po pull --transdir .

-- bk




More information about the zanata-users mailing list