[Openstack-docs] some minor issues during ops-guide translation on Transifex
Akihiro MOTOKI
amotoki at gmail.com
Mon May 13 22:28:38 UTC 2013
Hi Daisy,
2013/5/10 Ying Chun Guo <guoyingc at cn.ibm.com>
> Hi, Akihiro
>
> I believe it's a bug of my scripts, not Transifex.
>
When generating POT files, the library I used to covert XML to POT will
> remove the namespace prefix from xlink:href and xlink:title.
> In the script of generating docbook, I put the namespace prefix of "href"
> back, but forget to do the same change to "title".
>
> Now I fixed it: https://review.openstack.org/#/c/28713/.
> When the fix is approved, you can check out and try in your local machine.
> I tried in my machine, it works well.
>
Thanks for updating.
I tested with the new script (the above fix), but the situation does not
change.
The following is what I did:
git clone https://github.com/openstack/openstack-manuals
(commit cb12e6a4007ada5cd2f3137e98213fd421db09f8)
cd openstack-manuals
tx pull -f -l ja -r openstack-manuals-i18n.openstack-ops
./tools/generatedocbook -l ja -b openstack-ops
I pasted the detail result at http://paste.openstack.org/show/37218/
Since the result after generatedocbook still contains "xlink:href",
the script seems to look for msgid string with xlink:href. (If needed i can
test with title vs xlink:title)
As you mentioned xml2po in the previous mail, I am afraid xml2po or some
other po processing does not work as expected.
What is the distribution and gnome-doc-utils you are using?
My main environment is Debian wheezy and I got the same result on Ubuntu
12.04 LTS.
Thanks,
Akihiro
>
>
> Please let me know if you have other problems. Thank you.
>
>
> Regards
> Ying Chun Guo (Daisy)
>
> Akihiro MOTOKI <amotoki at gmail.com> wrote on 2013/05/08 20:42:42:
>
> > Akihiro MOTOKI <amotoki at gmail.com>
> > 2013/05/08 20:42
> >
> > To
> >
> > Ying Chun Guo/China/IBM at IBMCN,
> >
> > cc
> >
> > "openstack-docs at lists.openstack.org" <openstack-docs at lists.openstack.org
> >
> >
> > Subject
> >
> > Re: [Openstack-docs] some minor issues during ops-guide translation
> > on Transifex
> >
> > Hi Daisy,
>
> >
> > Thanks for your work.
> >
> > 2013/5/8 Ying Chun Guo <guoyingc at cn.ibm.com>
> > > (1) PO file on Transifex is not synced with the document on github
> > repository.
> > >
> > > This is very simple. Updating source lang file in Transifex solves it.
> > >
> > > PO file generated from openstack-manuals repository contains hyperlinks
> > > with the style of "<link xlink:title="...." xlink:href="....">.
> > > On the other hand, hyperlinks in PO file on Transifex have the style
> > > without xlink
> > > (<link title="...." href="....">).
> > > It results in a situation where some paragraphs are still untranslated
> > >
> > > I could not find the document without xlink hyperlinks in the
> > > history of git repo.
> > > PO file on Transifex seems not to be generated from openstack-manuals
> repo.
> > >
> > > Could you update Transifex source lang file?
> > > It can be easily done by tools/generatepot in the repo.
> > >
>
> > I think it's a bug of xml2po. "<link xlink:title=.. xlink:href=..>"
> > in the source XML file
> > will be changed to "<link title=.. href=..>" in the generated PO file.
> > I'm debugging to find the solution now.
> >
> > Let me clarify what is the expected behavior.
> > "<link xlink:title=.. xlink:href=..>" in source XML file should be
> > converted to "<link title=.. href=..>". Is it expected?
> >
> > I use Debian wheezy and Ubuntu 12.04/12.10.
> > On Ubuntu 12.10 the version of gnome-doc-utils is 0.20.10-1.
> > I get "<link xlink:title=.. xlink:href=..>" in The POT file
> > generated by tools/generatepot (as Tomoyuki wrote).
> >
> >
> > But I cannot understand why it results in a situation that some para
> > are still untranslated.
> > Can you explain more?
> >
> > I think the situation is very simple. My understanding is as follows:
> > - xml2po in the repository generates msgid strings with xlink:title
> > or xlink:href.
> > - POT/PO file registered to Transifex contains msgid string without
> xlink.
> > Thus PO file retrieved by "tx pull" contains "<link title=.. href=..>".
> > - tools/generatedoc looks up msgid string with xlink, but there is
> > no msgid string with xlink in the PO file.
> >
> > As a result, paragraphs which contains <link ...> are still
> > untranslated in the generated document (under
> generated/ja/openstack-ops/).
> >
> > Thanks,
> > Akihiro
>
>
--
Akihiro MOTOKI <amotoki at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-docs/attachments/20130514/732c30a3/attachment-0001.html>
More information about the Openstack-docs
mailing list