[Openstack-docs] some minor issues during ops-guide translation on Transifex

Ying Chun Guo guoyingc at cn.ibm.com
Thu May 9 20:16:10 UTC 2013


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.

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-docs/attachments/20130510/ddf1c575/attachment.html>


More information about the Openstack-docs mailing list