<div dir="ltr">Hi Daisy,<div><br></div><div>Thanks for your work.</div><div><br></div><div><div class="gmail_extra">2013/5/8 Ying Chun Guo <span dir="ltr"><<a href="mailto:guoyingc@cn.ibm.com" target="_blank">guoyingc@cn.ibm.com</a>></span><br>
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>
<p><span style="color:rgb(80,0,80)">> (1) PO file on Transifex is not synced with the document on github repository.</span><br></p><div class="im">
<tt><font>> <br>
> This is very simple. Updating source lang file in Transifex solves it.</font></tt><br>
<tt><font>> <br>
> PO file generated from openstack-manuals repository contains hyperlinks</font></tt><br>
<tt><font>> with the style of "<link xlink:title="...." xlink:href="....">.</font></tt><br>
<tt><font>> On the other hand, hyperlinks in PO file on Transifex have the style<br>
> without xlink</font></tt><br>
<tt><font>> (<link title="...." href="....">).</font></tt><br>
<tt><font>> It results in a situation where some paragraphs are still untranslated</font></tt><br>
<tt><font>> <br>
> I could not find the document without xlink hyperlinks in the <br>
> history of git repo.</font></tt><br>
<tt><font>> PO file on Transifex seems not to be generated from openstack-manuals repo.</font></tt><br>
<tt><font>> <br>
> Could you update Transifex source lang file?</font></tt><br>
<tt><font>> It can be easily done by tools/generatepot in the repo.</font></tt><br>
<tt><font>> </font></tt><br>
<br>
</div><tt><font>I think it's a bug of xml2po. "<link xlink:title=.. xlink:href=..>" in the source XML file</font></tt><br>
<tt><font>will be changed to "<link title=.. href=..>" in the generated PO file. </font></tt><br>
<tt><font>I'm debugging to find the solution now.</font></tt></div></blockquote><div><br></div><div style>Let me clarify what is the expected behavior.</div><div style>"<link xlink:title=.. xlink:href=..>" in source XML file should be converted to "<link title=.. href=..>". Is it expected?<br>
</div><div style><br></div><div style>I use Debian wheezy and Ubuntu 12.04/12.10.</div><div style>On Ubuntu 12.10 the version of gnome-doc-utils is 0.20.10-1.</div><div style>I get "<link xlink:title=.. xlink:href=..>" in The POT file generated by tools/generatepot (as Tomoyuki wrote).</div>
<div style><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><br>
<tt><font>But I cannot understand why it results in a situation that some para are still untranslated.</font></tt><br>
<tt><font>Can you explain more?</font></tt></div></blockquote><div><br></div><div style>I think the situation is very simple. My understanding is as follows:</div><div style>- xml2po in the repository generates msgid strings with xlink:title or xlink:href.</div>
<div style>- POT/PO file registered to Transifex contains msgid string without xlink.</div><div style> Thus PO file retrieved by "tx pull" contains "<link title=.. href=..>".</div><div style>- tools/generatedoc looks up msgid string with xlink, but there is no msgid string with xlink in the PO file.<br>
</div><div style><br></div><div style>As a result, paragraphs which contains <link ...> are still untranslated in the generated document (under generated/ja/openstack-ops/).</div><div style><br></div><div style>Thanks,</div>
<div style>Akihiro</div></div></div></div></div>