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

James Ni jni at redhat.com
Fri Aug 19 02:14:00 UTC 2011


Hi, Bryan

I am quite confused about your issues
So you running 'zanata publican push' under /home/bkearney/code/headpin/locale ?
And you running 'zanata publican pull' under same folder?

For current implementation, 'zanata publican pull' should always save translation to locale folder, say zh-CN, or ja-JP. It should works fine.
So could you give more info about issues or try the latest code again?
Maybe you can tell me the project you are working with and i can try to pull it and see what happens. 

I am on IRC #doc-i18n and #l10n channel, jni is my nickname, we could discuss this on IRC, thanks 

Best Regards

----- Original Message -----
> 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
> 
> _______________________________________________
> zanata-users mailing list
> zanata-users at redhat.com
> https://www.redhat.com/mailman/listinfo/zanata-users




More information about the zanata-users mailing list