Using revnumber in book.xml

Dongsheng Song dongsheng.song at gmail.com
Wed Apr 1 08:39:14 CDT 2009


2009/4/1 Jens Seidel <jensseidel at users.sf.net>:
> On Wed, Apr 01, 2009 at 04:27:47PM +0800, Dongsheng Song wrote:
>> Currently, we use entities from dynamic version.xml:
>>
>> <subtitle>(Compiled from &svn.l10n_revision;&ovn.version;)</subtitle>
>>
>> This works fine in XML based translation, but in PO based translation,
>> this string become fuzzy when every commit !
>>
>> On the other hand, we should use the  last changed version, not the latest
>> version, so I suggest use a replaceable macro, for example:
>>
>>     <subtitle>(Compiled from $svn.rev.id$)</subtitle>
>>
>> The Makefile replace $svn.rev.id$ with proper value at runtime.
>>
>> Any comments ?
>
> This works even simpler. Include all strings which change often and do not
> require translation (such as your &svn.rev.id;, static URLs, ...) into a
> special XML file which gets included in the document and tell po4a to simple
> ignore this file.
>
> No Makefile magic required.
>

Your method not suite for this case, because the string require translation,
here is the Chinese translation:

<subtitle>(编译自 $svn.rev.id$)</subtitle>

---
Dongsheng Song




More information about the svnbook-dev mailing list