[Po4a-devel]Make attribute translation more flexible

Martin Quinson martin.quinson at loria.fr
Sat Jul 23 05:53:30 UTC 2005


On Fri, Jul 01, 2005 at 11:30:28AM +0200, Francois Gouget wrote:
> 
> 
> Further it would be nice to add the same capabilities to Xml.pm but I 
> had trouble figuring out how so it will go in a separate patch.

Jordi, any comment?

> Changelog:
> 
>  * lib/Locale/Po4a/Sgml.pm
> 
>    Francois Gouget <fgouget at codeweavers.com>
>    Add a 'qualify' option to denote which attributes should get an 
> msgid  'qualified' by the attribute name.
>    Don't qualify the lang attribute for consistency with Xml.pm
>    Rename the 'attribute' option to 'attributes' for consistency with 
> Xml.pm.

I applied this one to my local copy, I'll try to think to commit it next
time I go online.

Actually, I changed it a bit:

> +=item qualify
> +
> +A space separated list of attributes for which the translation must be
> +qualified by the attribute name. Note that this setting only takes effect
> +if the attribute is specified in the 'attributes' list too.

Now, it's set into the 'attributes' list automatically if not done manually
(in context ".*").

Thanks, Mt.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/po4a-devel/attachments/20050723/877ad356/attachment.pgp


More information about the Po4a-devel mailing list