[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Docs, indexterms and translation

From: Lübbe Onken <l.onken_at_rac.de>
Date: 2006-03-06 11:31:30 CET

Hi Folks (especially Simon),

A German user juzst rubbed my nose into a translation problem. Some
Paragraphs do not make it into the output docs, even if the translation is
in the .po file. I searched a bit and found the culprit. It's the usage of
<indexterm> tags inside paragraphs.

Example from tsvn_introduction:

---SNIP---
<sect1 id="tsvn-intro-features">
        <title>TortoiseSVN's Features</title>
        <para>
                What makes TortoiseSVN such a good Subversion client?
                Here's a short list of features.
        </para>
        <variablelist>
                <varlistentry>
                <term>Shell integration</term>
                <listitem>
                        <para>
                        <indexterm>
                                <primary>Windows shell</primary>
                        </indexterm>
                        <indexterm>
                                <primary>explorer</primary>
                        </indexterm>
                        TortoiseSVN integrates seamlessly into the Windows
shell
---SNIP---

Xsltproc profiles this <listitem> and xml2po.py extracts into:
---SNIP---
msgid "<indexterm significance=\"normal\"><primary>Windows
shell</primary></indexterm><indexterm
significance=\"normal\"><primary>explorer</primary></indexterm> TortoiseSVN
integrates seamlessly into the Windows shell....
---SNIP---

You see that after profiling, the <indexterm> tag looks like this:
<indexterm significance=\"normal\">...
Whereas the original does not have the significance="" attribute.

Since xml2po.py only does a simple string match when trying to translate the
original files paragraph by paragraph, it can't find a match.

I don't know if this significance="" attribute can be avoided. The only
solution that I see is to move all indexterms out of paragraphs. They don't
belong in there anyway.

Cheers
-Lübbe

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Mon Mar 6 11:32:27 2006

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.