Using revnumber in book.xml
Jens Seidel
jensseidel at users.sf.net
Wed Apr 1 06:44:38 CDT 2009
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.
Jens
More information about the svnbook-dev
mailing list