[Pkg-shadow-devel] [PATCH] man pages: dont muck around with config.xml

Nicolas François nicolas.francois at centraliens.net
Mon Sep 7 22:01:14 UTC 2009

Hello Mike,

On Sun, Aug 30, 2009 at 10:30:19PM +0200, nicolas.francois at centraliens.net wrote:
> This is a limitation of xml2po.
> It needs to be called with --expand-all-entities, but this unfortunately
> expand the config.xml entity, which forbid to change the configuration in
> the translated manpages.
> Removing the config.xml file before the generation of the POT and
> translated xml files permits to reuse the same PO file for each configure
> options.
> This can probably be fixed by
>  * moving the config.xml file
>  * generating all the translated xml
>  * moving back the config.xml file
>  * generating all the manpages
> I will have a look, but this might be tricky because of automake.

This did not work.

I applied the attached patch, which should behave correctly (not really
tested either with make -j or not). I.e. it should allow to
 * keep the variables in the POT and PO files
 * build the manpages with the expanded entities.
 * does not require screwing with config.xml

Best Regards,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shadow_man_config.xml.patch
Type: text/x-diff
Size: 4081 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-shadow-devel/attachments/20090908/91e7823a/attachment.patch>

More information about the Pkg-shadow-devel mailing list